public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46996] New: xgcc: Internal error: Illegal instruction (program cc1)
@ 2010-12-17 21:25 cryintothebluesky at googlemail dot com
  2010-12-17 21:30 ` [Bug c/46996] " cryintothebluesky at googlemail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cryintothebluesky at googlemail dot com @ 2010-12-17 21:25 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: xgcc: Internal error: Illegal instruction (program
                    cc1)
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: cryintothebluesky@googlemail.com
              Host: x86_64--netbsd
            Target: x86_64--netbsd
             Build: x86_64--netbsd


Building gcc on NetBSD-5.1 x86_64 results in the following:

/bin/ksh ../../gcc-4.5.2/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
echo timestamp > s-attrtab
/home/roman/gcc_build/build/gcc.build/./prev-gcc/xgcc
-B/home/roman/gcc_build/build/gcc.build/./prev-gcc/
-B/opt/gcc4/x86_64--netbsd/bin/ -B/opt/gcc4/x86_64--netbsd/bin/
-B/opt/gcc4/x86_64--netbsd/lib/ -isystem /opt/gcc4/x86_64--netbsd/include
-isystem /opt/gcc4/x86_64--netbsd/sys-include    -c  -g -O2 -gtoggle -DIN_GCC  
-W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H
-I. -I. -I../../gcc-4.5.2/gcc -I../../gcc-4.5.2/gcc/.
-I../../gcc-4.5.2/gcc/../include -I../../gcc-4.5.2/gcc/../libcpp/include
-I/opt/gcc4/include -I/opt/gcc4/include -I/opt/gcc4/include 
-I../../gcc-4.5.2/gcc/../libdecnumber -I../../gcc-4.5.2/gcc/../libdecnumber/dpd
-I../libdecnumber     insn-attrtab.c -o insn-attrtab.o
xgcc: Internal error: Illegal instruction (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
gmake[3]: *** [insn-attrtab.o] Error 1
rm gcc.pod
gmake[3]: Leaving directory `/home/roman/gcc_build/build/gcc.build/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/home/roman/gcc_build/build/gcc.build'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory `/home/roman/gcc_build/build/gcc.build'
gmake: *** [all] Error 2

Output of xgcc -v -save-temps

Reading specs from /home/roman/gcc_build/build/gcc.build/./prev-gcc/specs
COLLECT_GCC=/home/roman/gcc_build/build/gcc.build/./prev-gcc/xgcc
COLLECT_LTO_WRAPPER=/home/roman/gcc_build/build/gcc.build/./prev-gcc/lto-wrapper
Target: x86_64--netbsd
Configured with: ../gcc-4.5.2/configure --prefix=/opt/gcc4
--build=x86_64--netbsd --host=x86_64--netbsd --target=x86_64--netbsd
--enable-languages=c,c++ --enable-shared --enable-threads=posix
--enable-__cxa_atexit --disable-nls 
--disable-multilib --with-gmp=/opt/gcc4 --with-mpfr=/opt/gcc4
--with-mpc=/opt/gcc4
Thread model: posix
gcc version 4.5.2 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps'
'-B/home/roman/gcc_build/build/gcc.build/./prev-gcc/'
'-B/opt/gcc4/x86_64--netbsd/bin/' '-B/opt/gcc4/x86_64--netbsd/bin/'
'-B/opt/gcc4/x86_64--netbsd/lib/' '-isystem' '/opt/gcc4/x86_64--net
bsd/include' '-isystem' '/opt/gcc4/x86_64--netbsd/sys-include' '-c' '-g' '-O2'
'-gtoggle' '-DIN_GCC' '-W' '-Wall' '-Wwrite-strings' '-Wcast-qual'
'-Wstrict-prototypes' '-Wmissing-prototypes' '-Wmissing-format-attribute'
'-pedant
ic' '-Wno-long-long' '-Wno-variadic-macros' '-Wno-overlength-strings'
'-Wold-style-definition' '-Wc++-compat' '-DHAVE_CONFIG_H' '-I.' '-I.'
'-I../../gcc-4.5.2/gcc' '-I../../gcc-4.5.2/gcc/.'
'-I../../gcc-4.5.2/gcc/../include' '-I
../../gcc-4.5.2/gcc/../libcpp/include' '-I/opt/gcc4/include'
'-I/opt/gcc4/include' '-I/opt/gcc4/include'
'-I../../gcc-4.5.2/gcc/../libdecnumber'
'-I../../gcc-4.5.2/gcc/../libdecnumber/dpd' '-I../libdecnumber' '-o'
'insn-attrtab.
o' '-mtune=generic' '-march=x86-64'
 /home/roman/gcc_build/build/gcc.build/./prev-gcc/cc1 -E -quiet -v -I. -I.
-I../../gcc-4.5.2/gcc -I../../gcc-4.5.2/gcc/. -I../../gcc-4.5.2/gcc/../include
-I../../gcc-4.5.2/gcc/../libcpp/include -I/opt/gcc4/include -I/opt/gcc4/in
clude -I/opt/gcc4/include -I../../gcc-4.5.2/gcc/../libdecnumber
-I../../gcc-4.5.2/gcc/../libdecnumber/dpd -I../libdecnumber -iprefix
/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/x86_64--netbsd/4.5.2/
-isystem /home/
roman/gcc_build/build/gcc.build/./prev-gcc/include -isystem
/home/roman/gcc_build/build/gcc.build/./prev-gcc/include-fixed -DIN_GCC
-DHAVE_CONFIG_H -isystem /opt/gcc4/x86_64--netbsd/include -isystem
/opt/gcc4/x86_64--netbsd/sys-
include insn-attrtab.c -mtune=generic -march=x86-64 -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -
Wold-style-definition -Wc++-compat -g -gtoggle -fworking-directory -O2
-fpch-preprocess -o insn-attrtab.i
ignoring nonexistent directory "/opt/gcc4/x86_64--netbsd/include"
ignoring nonexistent directory "/opt/gcc4/x86_64--netbsd/sys-include"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/x86_64--netbsd/4.5.2/include"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/x86_64--netbsd/4.5.2/include-fixed"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/x86_64--netbsd/4.5.2/../../../../x86_64--netbsd/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/../../include"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/../../lib/gcc/x86_64--netbsd/4.5.2/include"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/../../lib/gcc/x86_64--netbsd/4.5.2/include-fixed"
ignoring nonexistent directory
"/home/roman/gcc_build/build/gcc.build/prev-gcc/../lib/gcc/../../lib/gcc/x86_64--netbsd/4.5.2/../../../../x86_64--netbsd/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../gcc-4.5.2/gcc/."
ignoring duplicate directory "/opt/gcc4/include"
ignoring duplicate directory "/opt/gcc4/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../gcc-4.5.2/gcc
 ../../gcc-4.5.2/gcc/../include
 ../../gcc-4.5.2/gcc/../libcpp/include
 /opt/gcc4/include
 ../../gcc-4.5.2/gcc/../libdecnumber
 ../../gcc-4.5.2/gcc/../libdecnumber/dpd
 ../libdecnumber
 /home/roman/gcc_build/build/gcc.build/./prev-gcc/include
 /home/roman/gcc_build/build/gcc.build/./prev-gcc/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps'
'-B/home/roman/gcc_build/build/gcc.build/./prev-gcc/'
'-B/opt/gcc4/x86_64--netbsd/bin/' '-B/opt/gcc4/x86_64--netbsd/bin/'
'-B/opt/gcc4/x86_64--netbsd/lib/' '-isystem' '/opt/gcc4/x86_64--net
bsd/include' '-isystem' '/opt/gcc4/x86_64--netbsd/sys-include' '-c' '-g' '-O2'
'-gtoggle' '-DIN_GCC' '-W' '-Wall' '-Wwrite-strings' '-Wcast-qual'
'-Wstrict-prototypes' '-Wmissing-prototypes' '-Wmissing-format-attribute'
'-pedant
ic' '-Wno-long-long' '-Wno-variadic-macros' '-Wno-overlength-strings'
'-Wold-style-definition' '-Wc++-compat' '-DHAVE_CONFIG_H' '-I.' '-I.'
'-I../../gcc-4.5.2/gcc' '-I../../gcc-4.5.2/gcc/.'
'-I../../gcc-4.5.2/gcc/../include' '-I
../../gcc-4.5.2/gcc/../libcpp/include' '-I/opt/gcc4/include'
'-I/opt/gcc4/include' '-I/opt/gcc4/include'
'-I../../gcc-4.5.2/gcc/../libdecnumber'
'-I../../gcc-4.5.2/gcc/../libdecnumber/dpd' '-I../libdecnumber' '-o'
'insn-attrtab.
o' '-mtune=generic' '-march=x86-64'
 /home/roman/gcc_build/build/gcc.build/./prev-gcc/cc1 -fpreprocessed
insn-attrtab.i -quiet -dumpbase insn-attrtab.c -mtune=generic -march=x86-64
-auxbase-strip insn-attrtab.o -g -gtoggle -O2 -W -Wall -Wwrite-strings
-Wcast-qual 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wc++-compat -version -o insn-attrtab.s
GNU C (GCC) version 4.5.2 (x86_64--netbsd)
        compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.5.2 (x86_64--netbsd)
        compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ec37ad6b3d82b753ed7f5d0aa27a0e1f
xgcc: Internal error: Illegal instruction (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/46996] xgcc: Internal error: Illegal instruction (program cc1)
  2010-12-17 21:25 [Bug c/46996] New: xgcc: Internal error: Illegal instruction (program cc1) cryintothebluesky at googlemail dot com
@ 2010-12-17 21:30 ` cryintothebluesky at googlemail dot com
  2010-12-17 21:44 ` hjl.tools at gmail dot com
  2010-12-18  0:17 ` cryintothebluesky at googlemail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cryintothebluesky at googlemail dot com @ 2010-12-17 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from cryintothebluesky at googlemail dot com 2010-12-17 21:30:32 UTC ---
Created attachment 22804
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22804
gzipped gcc/insn-attrtab.i file


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/46996] xgcc: Internal error: Illegal instruction (program cc1)
  2010-12-17 21:25 [Bug c/46996] New: xgcc: Internal error: Illegal instruction (program cc1) cryintothebluesky at googlemail dot com
  2010-12-17 21:30 ` [Bug c/46996] " cryintothebluesky at googlemail dot com
@ 2010-12-17 21:44 ` hjl.tools at gmail dot com
  2010-12-18  0:17 ` cryintothebluesky at googlemail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2010-12-17 21:44 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2010.12.17 21:44:10
     Ever Confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-17 21:44:10 UTC ---
Please run cc1 under gdb and show us the "Illegal instruction".


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/46996] xgcc: Internal error: Illegal instruction (program cc1)
  2010-12-17 21:25 [Bug c/46996] New: xgcc: Internal error: Illegal instruction (program cc1) cryintothebluesky at googlemail dot com
  2010-12-17 21:30 ` [Bug c/46996] " cryintothebluesky at googlemail dot com
  2010-12-17 21:44 ` hjl.tools at gmail dot com
@ 2010-12-18  0:17 ` cryintothebluesky at googlemail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cryintothebluesky at googlemail dot com @ 2010-12-18  0:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from cryintothebluesky at googlemail dot com 2010-12-18 00:16:48 UTC ---
(In reply to comment #2)
> Please run cc1 under gdb and show us the "Illegal instruction".

I think the illegal instruction is caused by stack overflow:

gdb prev-gcc/cc1 gcc/cc1.core

Core was generated by `cc1'.
Program terminated with signal 4, Illegal instruction.
#0  0x0000000000cde521 in gimplify_expr (expr_p=0x7f7ffba88df0, 
    pre_p=0x7f7fffe04730, post_p=0x7f7fffe00c08, 
    gimple_test_f=0xc1c425 <is_gimple_lvalue>, fallback=2)
    at /usr/include/stdio.h:442
442             if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c !=
'\n'))

... Many other frames

#1667 0x0000000000cd371a in gimplify_stmt (stmt_p=0x7f7ffc2d1598, 
    seq_p=0x7f7fffffa8a8) at /usr/include/stdio.h:442
#1668 0x0000000000ce51d1 in gimplify_body (body_p=0x7f7ffc2d1598, 
    fndecl=0x7f7ffc2d1500, do_parms=1 '\001') at /usr/include/stdio.h:442
#1669 0x0000000000ce5872 in gimplify_function_tree (fndecl=0x7f7ffc2d1500)
    at /usr/include/stdio.h:442
#1670 0x0000000001f3d4d3 in cgraph_analyze_function (node=0x7f7ffbc6b4e0)
    at /usr/include/stdio.h:442
#1671 0x0000000001f3da3a in cgraph_analyze_functions ()
    at /usr/include/stdio.h:442
#1672 0x0000000001f3dea5 in cgraph_finalize_compilation_unit ()
    at /usr/include/stdio.h:442
#1673 0x00000000004fa8c7 in c_write_global_declarations ()
    at /usr/include/stdio.h:442
#1674 0x000000000128b201 in compile_file () at /usr/include/stdio.h:442
#1675 0x000000000128d37c in do_compile () at /usr/include/stdio.h:442
#1676 0x000000000128d443 in toplev_main (argc=52, argv=0x7f7fffffabe0)
    at /usr/include/stdio.h:442
#1677 0x00000000006c5be3 in main (argc=52, argv=0x7f7fffffabe0)
    at /usr/include/stdio.h:442
(gdb)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-12-18  0:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-17 21:25 [Bug c/46996] New: xgcc: Internal error: Illegal instruction (program cc1) cryintothebluesky at googlemail dot com
2010-12-17 21:30 ` [Bug c/46996] " cryintothebluesky at googlemail dot com
2010-12-17 21:44 ` hjl.tools at gmail dot com
2010-12-18  0:17 ` cryintothebluesky at googlemail dot com

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).