https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121618

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
Created attachment 62165
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62165&action=edit
gensupport.ii.xz

(gdb) bt
#0  read_md_rtx (info=0xfffeee74, info@entry=0xfffeee6c) at
/root/git/gcc/gcc/gensupport.cc:3289
#1  0x00012340 in main (argc=<optimized out>, argv=<optimized out>) at
/root/git/gcc/gcc/genconditions.cc:227
(gdb) x/i $pc
=> 0x206a8 <_Z11read_md_rtxP11md_rtx_info+136>: ldrb    r1, [r2]

gensupport.o is miscompiled.

```
/tmp/bisect-gcc-bld/./prev-gcc/xg++ -B/tmp/bisect-gcc-bld/./prev-gcc/
-B/tmp/bisect-gcc-pfx/armv7a-unknown-linux-gnueabihf/bin/ -nostdinc++
-B/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/src/.libs
-B/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/libsupc++/.libs

-I/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/include/armv7a-unknown-linux-gnueabihf
 -I/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/include
 -I/root/git/gcc/libstdc++-v3/libsupc++
-L/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/src/.libs
-L/tmp/bisect-gcc-bld/prev-armv7a-unknown-linux-gnueabihf/libstdc++-v3/libsupc++/.libs
-c   -g -O2 -time=/tmp/bisect-gcc-bld/time.log -fno-checking -DIN_GCC   
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings  -DHAVE_CONFIG_H  -DGENERATOR_FILE
-I. -Ibuild -I/root/git/gcc/gcc -I/root/git/gcc/gcc/build
-I/root/git/gcc/gcc/../include  -I/root/git/gcc/gcc/../libcpp/include         
-o build/gensupport.o /root/git/gcc/gcc/gensupport.cc -save-temps
```

Reply via email to