Skip to content

Commit

Permalink
PR libstdc++/36101, PR libstdc++/42813
Browse files Browse the repository at this point in the history
[toplevel]:
	* configure.ac (target_configdirs): Substitute.
	* Makefile.def: Bootstrap target module libgomp.
	Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
	* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
	(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
	* configure, Makefile.in: Regenerate.
libstdc++-v3:
	* acinclude.m4: (enable_parallel): Test ${TARGET_CONFIGDIRS} instead of
	loking for omp.h .
	* configure: Regenerate.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156172 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
amylaar committed Jan 22, 2010
1 parent ed7c247 commit 1fda336
Show file tree
Hide file tree
Showing 9 changed files with 593 additions and 11 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2010-01-22 Joern Rennecke <amylaar@spamcop.net>

PR libstdc++/36101, PR libstdc++/42813
* configure.ac (target_configdirs): Substitute.
* Makefile.def: Bootstrap target module libgomp.
Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
* configure, Makefile.in: Regenerate.

2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>

* MAINTAINERS: Adjust my details.
Expand Down
6 changes: 5 additions & 1 deletion Makefile.def
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ target_modules = { module= boehm-gc; };
target_modules = { module= qthreads; };
target_modules = { module= rda; };
target_modules = { module= libada; };
target_modules = { module= libgomp; lib_path=.libs; };
target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };

// These are (some of) the make targets to be done in each subdirectory.
// Not all; these are the ones which don't have special options.
Expand Down Expand Up @@ -547,6 +547,10 @@ dependencies = { module=all-target-libobjc; on=all-target-libiberty; };
dependencies = { module=all-target-libobjc; on=all-target-boehm-gc; };
dependencies = { module=all-target-libstdc++-v3; on=all-target-libiberty; };
dependencies = { module=configure-target-libstdc++-v3; on=configure-target-libgomp; };
// parallel_list.o and parallel_settings.o depend on omp.h, which is
// generated by the libgomp configure. Unfortunately, due to the use of
// recursive make, we can't be that specific.
dependencies = { module=all-target-libstdc++-v3; on=configure-target-libgomp; };

// Target modules in the 'src' repository.
lang_env_dependencies = { module=examples; };
Expand Down
564 changes: 560 additions & 4 deletions Makefile.in

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Makefile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ EXTRA_BUILD_FLAGS = \

# This is the list of directories to built for the host system.
SUBDIRS = @configdirs@
TARGET_CONFIGDIRS = @target_configdirs@
# This is set by the configure script to the arguments to use when configuring
# directories built for the host system.
HOST_CONFIGARGS = @host_configargs@
Expand Down Expand Up @@ -287,7 +288,8 @@ BASE_TARGET_EXPORTS = \
@if gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
@endif gcc-bootstrap
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
TARGET_CONFIGDIRS="$(TARGET_CONFIGDIRS)"; export TARGET_CONFIGDIRS;

RAW_CXX_TARGET_EXPORTS = \
$(BASE_TARGET_EXPORTS) \
Expand Down
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ CC_FOR_BUILD
AS_FOR_BUILD
AR_FOR_BUILD
target_configargs
target_configdirs
configdirs
host_configargs
build_configdirs
Expand Down Expand Up @@ -7949,6 +7950,7 @@ done




# Target module lists & subconfigure args.


Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,7 @@ AC_SUBST(build_configdirs)
# Host module lists & subconfigure args.
AC_SUBST(host_configargs)
AC_SUBST(configdirs)
AC_SUBST(target_configdirs)

# Target module lists & subconfigure args.
AC_SUBST(target_configargs)
Expand Down
7 changes: 7 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2010-01-22 Joern Rennecke <amylaar@spamcop.net>

PR libstdc++/36101, PR libstdc++/42813
* acinclude.m4: (enable_parallel): Test ${TARGET_CONFIGDIRS} instead of
loking for omp.h .
* configure: Regenerate.

2010-01-21 Jonathan Wakely <jwakely.gcc@gmail.com>

PR libstdc++/42201
Expand Down
4 changes: 2 additions & 2 deletions libstdc++-v3/acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2023,10 +2023,10 @@ AC_DEFUN([GLIBCXX_ENABLE_PARALLEL], [
# See if configured libgomp/omp.h exists. (libgomp may be in
# noconfigdirs but not explicitly disabled.)
if test -f $glibcxx_builddir/../libgomp/omp.h; then
if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
enable_parallel=yes;
else
AC_MSG_NOTICE([$glibcxx_builddir/../libgomp/omp.h not found])
AC_MSG_NOTICE([target-libgomp not built])
fi
AC_MSG_CHECKING([for parallel mode support])
Expand Down
6 changes: 3 additions & 3 deletions libstdc++-v3/configure
Original file line number Diff line number Diff line change
Expand Up @@ -17056,11 +17056,11 @@ $as_echo "$enable_libstdcxx_debug" >&6; }

# See if configured libgomp/omp.h exists. (libgomp may be in
# noconfigdirs but not explicitly disabled.)
if test -f $glibcxx_builddir/../libgomp/omp.h; then
if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
enable_parallel=yes;
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: $glibcxx_builddir/../libgomp/omp.h not found" >&5
$as_echo "$as_me: $glibcxx_builddir/../libgomp/omp.h not found" >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: target-libgomp not built" >&5
$as_echo "$as_me: target-libgomp not built" >&6;}
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parallel mode support" >&5
Expand Down

0 comments on commit 1fda336

Please sign in to comment.