This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: fix gcc/config/cris/linux.h CRIS_LINK_SUBTARGET_SPEC


Without this, I can't build against an installed tree, which'd
make it a regression, methinks.

For the record, I get these regressions for
crisv32-axis-linux-gnu (using old glibc-2.2-based libraries)
compared to crisv32-axis-elf of r143488:

g++.sum g++.dg/torture/pr31863.C
gcc.sum gcc.c-torture/execute/stdarg-3.c
libstdc++.sum 20_util/shared_ptr/thread/default_weaktoshared.cc
libstdc++.sum 20_util/shared_ptr/thread/mutex_weaktoshared.cc
libstdc++.sum 25_algorithms/inplace_merge/1.cc
libstdc++.sum 25_algorithms/inplace_merge/check_type.cc
libstdc++.sum tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc
libstdc++.sum tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc


gcc:
	* config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
	Translate -B-options to -rpath-link.  Correct existing
	rpath-link and conditionalize on !nostdlib.

Index: gcc/config/cris/linux.h
===================================================================
--- gcc/config/cris/linux.h	(revision 144996)
+++ gcc/config/cris/linux.h	(working copy)
@@ -110,7 +110,8 @@ along with GCC; see the file COPYING3.  
 #undef CRIS_LINK_SUBTARGET_SPEC
 #define CRIS_LINK_SUBTARGET_SPEC \
  "-mcrislinux\
-  -rpath-link include/asm/../..%s\
+  %{B*:-rpath-link %*}\
+  %{!nostdlib:-rpath-link ../sys-include/asm/../../lib%s}\
   %{shared} %{static}\
   %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
   %{!shared:%{!static:\

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]