This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] FYI: Patch for bootstrap
- From: Laurent GUERBY <laurent at guerby dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 15 Jun 2005 23:34:37 +0200
- Subject: [Ada] FYI: Patch for bootstrap
Not for inclusion, but for people wanting to bootstrap Ada
here is what is currently needed (at least on x86_64-linux).
-O0 g-socket is PR22019
wrapv is PR21959
-O0 gnattools is PR22033
Laurent
Index: gcc/ada/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/Makefile.in,v
retrieving revision 1.117
diff -u -r1.117 Makefile.in
--- gcc/ada/Makefile.in 16 May 2005 11:58:43 -0000 1.117
+++ gcc/ada/Makefile.in 15 Jun 2005 21:22:10 -0000
@@ -1998,6 +1998,10 @@
$(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
$< $(OUTPUT_OPTION)
+g-socket.o : g-socket.adb g-socket.ads
+ $(CC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
+ $< $(OUTPUT_OPTION)
+
# force debugging information on a-except.o so that it is always
# possible to set conditional breakpoints on exceptions.
# use -O1 otherwise gdb isn't able to get a full backtrace on mips targets.
Index: gcc/ada/misc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/misc.c,v
retrieving revision 1.102
diff -u -r1.102 misc.c
--- gcc/ada/misc.c 1 Jun 2005 02:51:11 -0000 1.102
+++ gcc/ada/misc.c 15 Jun 2005 21:22:10 -0000
@@ -339,6 +339,8 @@
/* Uninitialized really means uninitialized in Ada. */
flag_zero_initialized_in_bss = 0;
+ flag_wrapv = 1;
+
return CL_Ada;
}
Index: gnattools/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gnattools/Makefile.in,v
retrieving revision 1.4
diff -u -r1.4 Makefile.in
--- gnattools/Makefile.in 30 Mar 2005 08:56:55 -0000 1.4
+++ gnattools/Makefile.in 15 Jun 2005 21:22:10 -0000
@@ -81,7 +81,7 @@
# Variables for gnattools1, native
TOOLS_FLAGS_TO_PASS_1= \
"CC=../../xgcc -B../../" \
- "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
+ "CFLAGS=$(CFLAGS) $(WARN_CFLAGS) -O0" \
"LDFLAGS=$(LDFLAGS)" \
"ADAFLAGS=$(ADAFLAGS)" \
"INCLUDES=$(INCLUDES_FOR_SUBDIR)" \