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]

[mn10300, installed] remove broken LIB_SPEC


-pthread doesn't get -lpthread linked in on am33_2.0-linux-gnu.  The
default definition in gcc/config/linux.h works fine, so I'm just
taking the redundant and incorrect defs out from mn10300/linux.h.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>
	* config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
	redundant, incorrect definitions.

Index: gcc/config/mn10300/linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mn10300/linux.h,v
retrieving revision 1.4
diff -u -p -r1.4 linux.h
--- gcc/config/mn10300/linux.h 26 Jan 2005 02:04:47 -0000 1.4
+++ gcc/config/mn10300/linux.h 7 Feb 2005 08:08:00 -0000
@@ -40,20 +40,6 @@
      %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
    %{static:-static}"
 
-#undef  LIB_SPEC
-#define LIB_SPEC \
-  "%{shared: -lc} \
-   %{!shared: %{pthread:-lpthread} \
-     %{profile:-lc_p} %{!profile: -lc}}"
-
-#undef  STARTFILE_SPEC
-#define STARTFILE_SPEC \
-  "%{!shared: \
-     %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
-		       %{!p:%{profile:gcrt1.o%s} \
-			 %{!profile:crt1.o%s}}}} \
-   crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
-
 #undef  TARGET_SWITCHES
 #define TARGET_SWITCHES	\
   {{ "am33",		-0x4,	N_("Target the AM33 processor") }, \
-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

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