Patch6: %{name}-info.patch
Patch7: %{name}-ada-link-new-libgnat.patch
# -- stolen patches from RH --
+Patch10: gcc32-ada-link.patch
Patch11: gcc32-attr-visibility.patch
Patch12: gcc32-attr-visibility2.patch
Patch13: gcc32-attr-visibility3.patch
Patch39: gcc32-sparc-sll1.patch
Patch40: gcc32-test-rh65771.patch
Patch41: gcc32-test-rotate.patch
+Patch42: gcc32-tls-dwarf2.patch
+Patch43: gcc32-tls.patch
+Patch44: gcc32-tls2.patch
+Patch45: gcc32-tls3.patch
+Patch46: gcc32-tls4.patch
+Patch47: gcc32-tls5.patch
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: fileutils >= 4.0.41
%patch5 -p1
%patch7 -p1
+%patch10 -p1
%patch11
%patch12
%patch13
%patch39
%patch40
%patch41
+%patch42
+%patch43
+%patch44
+%patch45
+%patch46
+%patch47
%patch6 -p1
ifeq ($(strip $(filter-out mips sgi irix%,$(targ))),)
ifeq ($(strip $(filter-out mips sgi irix6%,$(targ))),)
LIBGNAT_TARGET_PAIRS = \
-@@ -2179,9 +2242,12 @@
+@@ -2179,6 +2242,9 @@
gnatlib: ../stamp-gnatlib1 ../stamp-gnatlib2
# ../xgcc -B../ -dD -E ../tconfig.h $(INCLUDES) > rts/tconfig.h
+ $(MV) *.o save/
$(MAKE) -C rts CC="../../xgcc -B../../" \
INCLUDES="$(INCLUDES_FOR_SUBDIR) -I./../.." \
-- CFLAGS="$(GNATLIBCFLAGS) $(LIBGCC2_CFLAGS) -DIN_RTS" \
-+ CFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -DIN_RTS" \
- ADA_CFLAGS="$(GNATLIBCFLAGS)" \
- srcdir=$(fsrcdir) \
- -f ../Makefile $(LIBGNAT_OBJS)
+ CFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -DIN_RTS" \
@@ -2192,6 +2258,8 @@
srcdir=$(fsrcdir) \
-f ../Makefile \
$(RM) rts/libgnat$(arext) rts/libgnarl$(arext)
$(AR) $(AR_FLAGS) rts/libgnat$(arext) \
$(addprefix rts/,$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS))
-@@ -2279,16 +2347,16 @@
- gnatlib-shared-default:
- $(MAKE) $(FLAGS_TO_PASS) \
- GNATLIBFLAGS="$(GNATLIBFLAGS)" \
-- GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(LIBGCC2_CFLAGS)" \
-+ GNATLIBCFLAGS="$(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS)" \
- THREAD_KIND="$(THREAD_KIND)" \
- gnatlib
- $(RM) rts/libgnat$(soext) rts/libgnarl$(soext)
-- cd rts; ../../xgcc -B../../ -shared $(LIBGCC2_CFLAGS) \
-+ cd rts; ../../xgcc -B../../ -shared -shared-libgcc $(TARGET_LIBGCC2_CFLAGS) \
- -o libgnat-$(LIBRARY_VERSION)$(soext) $(SO_OPTS)libgnat-$(LIBRARY_VERSION)$(soext) \
+@@ -2288,7 +2358,7 @@
$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) $(MISCLIB) -lm
-- cd rts; ../../xgcc -B../../ -shared $(LIBGCC2_CFLAGS) \
-+ cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
+ cd rts; ../../xgcc -B../../ -shared $(TARGET_LIBGCC2_CFLAGS) \
-o libgnarl-$(LIBRARY_VERSION)$(soext) $(SO_OPTS)libgnarl-$(LIBRARY_VERSION)$(soext) \
- $(GNATRTL_TASKING_OBJS) $(THREADSLIB)
+ $(GNATRTL_TASKING_OBJS) $(THREADSLIB) ./libgnat-$(LIBRARY_VERSION)$(soext)
* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
-- * This file contains 142 fixup descriptions.
-+ * This file contains 143 fixup descriptions.
+- * This file contains 151 fixup descriptions.
++ * This file contains 152 fixup descriptions.
*
* See README for more information.
*
*
* List of all fixes
*/
--#define REGEX_COUNT 151
-+#define REGEX_COUNT 152
+-#define REGEX_COUNT 163
++#define REGEX_COUNT 164
#define MACH_LIST_SIZE_LIMIT 279
--#define FIX_COUNT 142
-+#define FIX_COUNT 143
+-#define FIX_COUNT 151
++#define FIX_COUNT 152
/*
* Enumerate the fixes