[Bug ada/40631] New: [4.5 Regression] bootstrap with Ada fails on __gnat_backtrace warning on mips-linux

laurent at guerby dot net gcc-bugzilla@gcc.gnu.org
Fri Jul 3 10:58:00 GMT 2009


/n/51/guerby/build/./prev-gcc/xgcc -B/n/51/guerby/build/./prev-gcc/
-B/mnt/lemote/home/loongson/install-trunk-149181/mips64el-unknown-linux-gnu/bin/
-B/mnt/lemote/home/loongson/install-trunk-149181/mips64el\
-unknown-linux-gnu/bin/
-B/mnt/lemote/home/loongson/install-trunk-149181/mips64el-unknown-linux-gnu/lib/
-isystem
/mnt/lemote/home/loongson/install-trunk-149181/mips64el-unknown-linux-gnu/include
-isystem /\
mnt/lemote/home/loongson/install-trunk-149181/mips64el-unknown-linux-gnu/sys-include
   -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes  -Wmissing-format-\
attribute -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -I. -Iada
-I../../trunk/gcc -I../../trunk/gcc/ada -I../../trun\
k/gcc/../include -I../../trunk/gcc/../libcpp/include
-I/opt/cfarm/gmp-4.2.4-n32/include -I/opt/cfarm/mpfr-2.3.2-n32/include
-I../../trunk/gcc/../libdecnumber -I../../trunk/gcc/../libdecnumber/dpd
-I../libde\
cnumber    \
              -I. -Iada -I../../trunk/gcc -I../../trunk/gcc/ada
-I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include
-I/opt/cfarm/gmp-4.2.4-n32/include -I/opt/cfarm/mpfr-2.3.2-n32/include -I../.\
./trunk/gcc/../libdecnumber -I../../trunk/gcc/../libdecnumber/dpd
-I../libdecnumber   -fno-omit-frame-pointer ../../trunk/gcc/ada/tracebak.c -o
ada/tracebak.o
cc1: warnings being treated as errors
../../trunk/gcc/ada/tracebak.c: In function '__gnat_backtrace':
../../trunk/gcc/ada/tracebak.c:497:1: error: old-style function definition
make[3]: *** [ada/tracebak.o] Error 1
make[3]: Leaving directory `/home/guerby/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/guerby/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/guerby/build'
make: *** [bootstrap] Error 2

I'm testing the patch below, will commit as obvious if it works

Index: gcc/ada/tracebak.c
===================================================================
--- gcc/ada/tracebak.c  (revision 149204)
+++ gcc/ada/tracebak.c  (working copy)
@@ -494,12 +494,11 @@
  *------------------------------*/

 int
-__gnat_backtrace (array, size, exclude_min, exclude_max, skip_frames)
-     void **array ATTRIBUTE_UNUSED;
-     int size ATTRIBUTE_UNUSED;
-     void *exclude_min ATTRIBUTE_UNUSED;
-     void *exclude_max ATTRIBUTE_UNUSED;
-     int skip_frames ATTRIBUTE_UNUSED;
+__gnat_backtrace (void **array ATTRIBUTE_UNUSED,
+                  int size ATTRIBUTE_UNUSED,
+                  void *exclude_min ATTRIBUTE_UNUSED,
+                  void *exclude_max ATTRIBUTE_UNUSED,
+                  int skip_frames ATTRIBUTE_UNUSED)
 {
   return 0;
 }


-- 
           Summary: [4.5 Regression] bootstrap with Ada fails on
                    __gnat_backtrace warning on mips-linux
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: laurent at guerby dot net
        ReportedBy: laurent at guerby dot net
 GCC build triplet: mips-linux
  GCC host triplet: mips-linux
GCC target triplet: mips-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40631



More information about the Gcc-bugs mailing list