diff options
Diffstat (limited to 'sys-devel/gcc/files/4.3.3/aix-force-pthread.patch')
-rw-r--r-- | sys-devel/gcc/files/4.3.3/aix-force-pthread.patch | 316 |
1 files changed, 0 insertions, 316 deletions
diff --git a/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch b/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch deleted file mode 100644 index b38cc2fcd3..0000000000 --- a/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch +++ /dev/null @@ -1,316 +0,0 @@ -diff -ru gcc/config/rs6000.orig/aix41.h gcc/config/rs6000/aix41.h ---- gcc/config/rs6000.orig/aix41.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix41.h 2009-07-31 14:25:19 +0200 -@@ -39,7 +39,7 @@ - #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\ - %{ansi: -D_ANSI_C_SOURCE}\ - %{mpe: -I/usr/lpp/ppe.poe/include}\ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT MASK_NEW_MNEMONICS -@@ -69,8 +69,8 @@ - #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\ - %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\ -- %{!pthread: -lc}" -+ %{pthread:} -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\ -+ " - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -83,8 +83,8 @@ - %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\ - %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\ - %{!mpe:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC - and "cror 31,31,31" for POWER architecture. */ -diff -ru gcc/config/rs6000.orig/aix43.h gcc/config/rs6000/aix43.h ---- gcc/config/rs6000.orig/aix43.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix43.h 2009-07-31 14:25:50 +0200 -@@ -105,7 +105,7 @@ - %{ansi: -D_ANSI_C_SOURCE}\ - %{maix64: -D__64BIT__}\ - %{mpe: -I/usr/lpp/ppe.poe/include}\ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - /* The GNU C++ standard library requires that these macros be - defined. */ -@@ -114,7 +114,7 @@ - "-D_ALL_SOURCE \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT MASK_NEW_MNEMONICS -@@ -145,8 +145,8 @@ - %{p:-L/lib/profiled -L/usr/lib/profiled}\ - %{!maix64:%{!shared:%{g*:-lg}}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread:-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\ -- %{!pthread:-lc}" -+ %{pthread:}-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\ -+ " - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -158,8 +158,8 @@ - #define STARTFILE_SPEC "%{!shared:\ - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\ - %{!maix64:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */ - -diff -ru gcc/config/rs6000.orig/aix51.h gcc/config/rs6000/aix51.h ---- gcc/config/rs6000.orig/aix51.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix51.h 2009-07-31 14:26:13 +0200 -@@ -101,7 +101,7 @@ - %{ansi: -D_ANSI_C_SOURCE} \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - /* The GNU C++ standard library requires that these macros be - defined. */ -@@ -110,7 +110,7 @@ - "-D_ALL_SOURCE \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT MASK_NEW_MNEMONICS -@@ -141,7 +141,7 @@ - %{p:-L/lib/profiled -L/usr/lib/profiled}\ - %{!maix64:%{!shared:%{g*:-lg}}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread:-lpthreads} -lc" -+ %{pthread:}-lpthreads -lc" - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -153,8 +153,8 @@ - #define STARTFILE_SPEC "%{!shared:\ - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\ - %{!maix64:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */ - -diff -ru gcc/config/rs6000.orig/aix52.h gcc/config/rs6000/aix52.h ---- gcc/config/rs6000.orig/aix52.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix52.h 2009-07-31 14:26:31 +0200 -@@ -100,7 +100,7 @@ - %{ansi: -D_ANSI_C_SOURCE} \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - /* The GNU C++ standard library requires that these macros be - defined. Synchronize with libstdc++ os_defines.h. */ -@@ -109,7 +109,7 @@ - "-D_ALL_SOURCE \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS) -@@ -144,7 +144,7 @@ - %{p:-L/lib/profiled -L/usr/lib/profiled}\ - %{!maix64:%{!shared:%{g*:-lg}}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread:-lpthreads} -lc" -+ %{pthread:}-lpthreads -lc" - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -156,8 +156,8 @@ - #define STARTFILE_SPEC "%{!shared:\ - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\ - %{!maix64:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */ - -diff -ru gcc/config/rs6000.orig/aix53.h gcc/config/rs6000/aix53.h ---- gcc/config/rs6000.orig/aix53.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix53.h 2009-07-31 14:26:47 +0200 -@@ -102,7 +102,7 @@ - %{ansi: -D_ANSI_C_SOURCE} \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - /* The GNU C++ standard library requires that these macros be - defined. Synchronize with libstdc++ os_defines.h. */ -@@ -111,7 +111,7 @@ - "-D_ALL_SOURCE \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS) -@@ -140,7 +140,7 @@ - %{p:-L/lib/profiled -L/usr/lib/profiled}\ - %{!maix64:%{!shared:%{g*:-lg}}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread:-lpthreads} -lc" -+ %{pthread:}-lpthreads -lc" - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -152,8 +152,8 @@ - #define STARTFILE_SPEC "%{!shared:\ - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\ - %{!maix64:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */ - -diff -ru gcc/config/rs6000.orig/aix61.h gcc/config/rs6000/aix61.h ---- gcc/config/rs6000.orig/aix61.h 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/aix61.h 2009-07-31 14:27:02 +0200 -@@ -103,7 +103,7 @@ - %{ansi: -D_ANSI_C_SOURCE} \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - /* The GNU C++ standard library requires that these macros be - defined. Synchronize with libstdc++ os_defines.h. */ -@@ -112,7 +112,7 @@ - "-D_ALL_SOURCE -D__COMPATMATH__ \ - %{maix64: -D__64BIT__} \ - %{mpe: -I/usr/lpp/ppe.poe/include} \ -- %{pthread: -D_THREAD_SAFE}" -+ %{pthread:} -D_THREAD_SAFE" - - #undef TARGET_DEFAULT - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS) -@@ -141,7 +141,7 @@ - %{p:-L/lib/profiled -L/usr/lib/profiled}\ - %{!maix64:%{!shared:%{g*:-lg}}}\ - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\ -- %{pthread:-lpthreads} -lc" -+ %{pthread:}-lpthreads -lc" - - #undef LINK_SPEC - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\ -@@ -153,8 +153,8 @@ - #define STARTFILE_SPEC "%{!shared:\ - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\ - %{!maix64:\ -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\ -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}" -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\ -+ }}" - - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */ - -diff -ru gcc/config/rs6000.orig/t-aix43 gcc/config/rs6000/t-aix43 ---- gcc/config/rs6000.orig/t-aix43 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/t-aix43 2009-07-31 14:29:20 +0200 -@@ -10,13 +10,13 @@ - echo '#define FLOAT' > fp-bit.c - cat $(srcdir)/config/fp-bit.c >> fp-bit.c - --# Build the libraries for pthread and all of the -+# Build the libraries for all of the - # different processor models - --MULTILIB_OPTIONS = pthread \ -+MULTILIB_OPTIONS = \ - mcpu=common/mcpu=power/mcpu=powerpc/maix64 - --MULTILIB_DIRNAMES = pthread \ -+MULTILIB_DIRNAMES = \ - common power powerpc ppc64 - - MULTILIB_MATCHES = mcpu?power=mcpu?power \ -@@ -46,7 +46,7 @@ - SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \ - @multilib_flags@ @shlib_objs@ -lc \ -- `case @multilib_dir@ in \ -+ `case pthread@multilib_dir@ in \ - *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \ - *) echo -lc ;; esac` ; \ - rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \ -@@ -61,7 +61,7 @@ - $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \ - $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \ - $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/ --SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac` -+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac` - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver - SHLIB_NM_FLAGS = -Bpg -X32_64 -diff -ru gcc/config/rs6000.orig/t-aix52 gcc/config/rs6000/t-aix52 ---- gcc/config/rs6000.orig/t-aix52 2009-07-31 14:24:20 +0200 -+++ gcc/config/rs6000/t-aix52 2009-07-31 14:29:38 +0200 -@@ -10,12 +10,12 @@ - echo '#define FLOAT' > fp-bit.c - cat $(srcdir)/config/fp-bit.c >> fp-bit.c - --# Build the libraries for pthread and all of the -+# Build the libraries for all of the - # different processor models - --MULTILIB_OPTIONS = pthread maix64 -+MULTILIB_OPTIONS = maix64 - --MULTILIB_DIRNAMES = pthread ppc64 -+MULTILIB_DIRNAMES = ppc64 - - MULTILIB_MATCHES = - -@@ -27,7 +27,7 @@ - SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \ - @multilib_flags@ @shlib_objs@ -lc \ -- `case @multilib_dir@ in \ -+ `case pthread@multilib_dir@ in \ - *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \ - *) echo -lc ;; esac` ; \ - rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \ -@@ -42,7 +42,7 @@ - $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \ - $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \ - $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/ --SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac` -+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac` - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver - SHLIB_NM_FLAGS = -Bpg -X32_64 |