public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mikpe at it dot uu.se" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/57340] New: [4.9 regression] stage2 miscompiles build/genconditions on armv5tel-linux-gnueabi breaking bootstrap
Date: Mon, 20 May 2013 20:26:00 -0000	[thread overview]
Message-ID: <bug-57340-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 57340
           Summary: [4.9 regression] stage2 miscompiles
                    build/genconditions on armv5tel-linux-gnueabi breaking
                    bootstrap
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mikpe at it dot uu.se

Attempting to bootstrap gcc-4.9-20130519 on armv5tel-linux-gnueabi fails with:

/mnt/scratch/objdir49/./prev-gcc/xg++ -B/mnt/scratch/objdir49/./prev-gcc/
-B/mnt/scratch/install49/armv5tel-unknown-linux-gnueabi/bin/ -nostdinc++
-B/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-B/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs
-I/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/include/armv5tel-unknown-linux-gnueabi
-I/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/include
-I/mnt/scratch/gcc-4.9-20130519/libstdc++-v3/libsupc++
-L/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-L/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror   -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I/mnt/scratch/gcc-4.9-20130519/gcc
-I/mnt/scratch/gcc-4.9-20130519/gcc/build
-I/mnt/scratch/gcc-4.9-20130519/gcc/../include
-I/mnt/scratch/gcc-4.9-20130519/gcc/../libcpp/include 
-I/mnt/scratch/gcc-4.9-20130519/gcc/../libdecnumber
-I/mnt/scratch/gcc-4.9-20130519/gcc/../libdecnumber/dpd -I../libdecnumber
-I/mnt/scratch/gcc-4.9-20130519/gcc/../libbacktrace    \
        -o build/genconditions.o
/mnt/scratch/gcc-4.9-20130519/gcc/genconditions.c
/mnt/scratch/objdir49/./prev-gcc/xg++ -B/mnt/scratch/objdir49/./prev-gcc/
-B/mnt/scratch/install49/armv5tel-unknown-linux-gnueabi/bin/ -nostdinc++
-B/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-B/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs
-I/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/include/armv5tel-unknown-linux-gnueabi
-I/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/include
-I/mnt/scratch/gcc-4.9-20130519/libstdc++-v3/libsupc++
-L/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/src/.libs
-L/mnt/scratch/objdir49/prev-armv5tel-unknown-linux-gnueabi/libstdc++-v3/libsupc++/.libs
  -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Werror   -DHAVE_CONFIG_H
-DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o build/genconditions \
    build/genconditions.o build/rtl.o build/read-rtl.o build/ggc-none.o
build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o
build/read-md.o build/errors.o .././libiberty/libiberty.a
build/genconditions /mnt/scratch/gcc-4.9-20130519/gcc/config/arm/arm.md >
tmp-condmd.c
/bin/sh: line 1:  4055 Segmentation fault      build/genconditions
/mnt/scratch/gcc-4.9-20130519/gcc/config/arm/arm.md > tmp-condmd.c
make[3]: *** [s-conditions] Error 139
make[3]: Leaving directory `/mnt/scratch/objdir49/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/mnt/scratch/objdir49'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/scratch/objdir49'
make: *** [bootstrap] Error 2

Running it in gdb it seems to have followed a NULL function pointer or code
label:

> cd gcc
> gdb build/genconditions
...
(gdb) run /mnt/scratch/gcc-4.9-20130519/gcc/config/arm/arm.md > tmp-condmd.c
Starting program: /mnt/scratch/objdir49/gcc/build/genconditions
/mnt/scratch/gcc-4.9-20130519/gcc/config/arm/arm.md > tmp-condmd.c

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x000101b8 in init_rtx_reader_args_cb(int, char**, bool (*)(char const*))
()
#2  0x00008ec4 in main ()

This is a regression from gcc-4.9-20130512 which bootstrapped fine on the same
system.  And build/genconditions was built earlier during stage1 by the system
compiler, and that binary didn't SEGV.


             reply	other threads:[~2013-05-20 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20 20:26 mikpe at it dot uu.se [this message]
2013-05-21  9:10 ` [Bug bootstrap/57340] " rguenth at gcc dot gnu.org
2013-05-22 15:15 ` ramana at gcc dot gnu.org
2013-05-22 15:20 ` ramana at gcc dot gnu.org
2013-05-22 15:54 ` ramana at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-57340-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).