[Bug ipa/61916] Internal compiler error in symtab_nonoverwritable_alias with -O2

2015-03-02 Thread ktietz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61916

Kai Tietz ktietz at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ktietz at gcc dot gnu.org
 Resolution|--- |DUPLICATE

--- Comment #8 from Kai Tietz ktietz at gcc dot gnu.org ---
Already fixed. A dup of 64212

*** This bug has been marked as a duplicate of bug 64212 ***


[Bug ipa/61916] Internal compiler error in symtab_nonoverwritable_alias with -O2

2015-03-01 Thread steve at sk2 dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61916

--- Comment #7 from Stephen Kitt steve at sk2 dot org ---
Created attachment 34913
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34913action=edit
Pre-processed source reproducing the bug


[Bug ipa/61916] Internal compiler error in symtab_nonoverwritable_alias with -O2

2015-03-01 Thread steve at sk2 dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61916

Stephen Kitt steve at sk2 dot org changed:

   What|Removed |Added

 CC||steve at sk2 dot org

--- Comment #6 from Stephen Kitt steve at sk2 dot org ---
Hi,

I believe I have a minimal reproducer for this, courtesy of Jakub Wilk
(reported at https://bugs.debian.org/779526 against gcc-mingw-w64). This is
with gcc 4.9.2 targeting i686-w64-mingw32, so not quite the same target but the
error is at the same line:

% i686-w64-mingw32-gcc badsymtab.c 
badsymtab.c:9:1: internal compiler error: in symtab_nonoverwritable_alias, at
symtab.c:1252
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.
Preprocessed source stored into /tmp/user/1000/ccMPGb9z.out file, please attach
this to your bugreport.

I'm attaching the pre-processed source.

The compiler is configured as follows:

% i686-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-w64-mingw32/4.9-win32/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr
--includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--libexecdir='/usr/lib/gcc-mingw-w64' --disable-maintainer-mode
--disable-dependency-tracking --prefix=/usr --enable-shared --enable-static
--disable-multilib --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --libdir=/usr/lib --enable-libstdcxx-time=yes
--with-tune=generic --enable-version-specific-runtime-libs
--enable-fully-dynamic-string --enable-libgomp
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-lto --with-plugin-ld
--enable-threads=win32 --program-suffix=-win32
--program-prefix=i686-w64-mingw32- --target=i686-w64-mingw32
--with-as=/usr/bin/i686-w64-mingw32-as --with-ld=/usr/bin/i686-w64-mingw32-ld
Thread model: win32
gcc version 4.9.2 (GCC)


[Bug ipa/61916] Internal compiler error in symtab_nonoverwritable_alias with -O2

2014-09-18 Thread timothygu99 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61916

--- Comment #4 from Timothy Gu timothygu99 at gmail dot com ---
Any news on this?


[Bug ipa/61916] Internal compiler error in symtab_nonoverwritable_alias with -O2

2014-09-18 Thread timothygu99 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61916

--- Comment #5 from Timothy Gu timothygu99 at gmail dot com ---
I have found another file that triggers this:

# i686-pc-mingw32.static-gcc -v -save-temps -O2 tclsqlite.c
Using built-in specs.
COLLECT_GCC=i686-pc-mingw32.static-gcc
COLLECT_LTO_WRAPPER=/root/Timothys_sandbox/mxe/usr/libexec/gcc/i686-pc-mingw32.static/4.9.1/lto-wrapper
Target: i686-pc-mingw32.static
Configured with:
/root/Timothys_sandbox/mxe/tmp-gcc-i686-pc-mingw32.static/gcc-4.9.1/configure
--target=i686-pc-mingw32.static --build=x86_64-unknown-linux-gnu
--prefix=/root/Timothys_sandbox/mxe/usr
--libdir=/root/Timothys_sandbox/mxe/usr/lib
--enable-languages=c,c++,objc,fortran --enable-version-specific-runtime-libs
--with-gcc --with-gnu-ld --with-gnu-as --disable-nls --disable-shared
--disable-multilib --without-x --disable-win32-registry --enable-threads=win32
--disable-libgomp --with-cloog=/root/Timothys_sandbox/mxe/usr
--with-gmp=/root/Timothys_sandbox/mxe/usr
--with-isl=/root/Timothys_sandbox/mxe/usr
--with-mpc=/root/Timothys_sandbox/mxe/usr
--with-mpfr=/root/Timothys_sandbox/mxe/usr
--with-as=/root/Timothys_sandbox/mxe/usr/bin/i686-pc-mingw32.static-as
--with-ld=/root/Timothys_sandbox/mxe/usr/bin/i686-pc-mingw32.static-ld
--with-nm=/root/Timothys_sandbox/mxe/usr/bin/i686-pc-mingw32.static-nm
--disable-sjlj-exceptions
Thread model: win32
gcc version 4.9.1 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O2' '-mtune=generic'
'-march=pentiumpro'
 /root/Timothys_sandbox/mxe/usr/libexec/gcc/i686-pc-mingw32.static/4.9.1/cc1 -E
-quiet -v tclsqlite.c -mtune=generic -march=pentiumpro -O2 -fpch-preprocess -o
tclsqlite.i
ignoring nonexistent directory
/root/Timothys_sandbox/mxe/usr/lib/gcc/i686-pc-mingw32.static/4.9.1/../../../../i686-pc-mingw32.static/sys-include
#include ... search starts here:
#include ... search starts here:
 /root/Timothys_sandbox/mxe/usr/lib/gcc/i686-pc-mingw32.static/4.9.1/include

/root/Timothys_sandbox/mxe/usr/lib/gcc/i686-pc-mingw32.static/4.9.1/include-fixed

/root/Timothys_sandbox/mxe/usr/lib/gcc/i686-pc-mingw32.static/4.9.1/../../../../i686-pc-mingw32.static/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O2' '-mtune=generic'
'-march=pentiumpro'
 /root/Timothys_sandbox/mxe/usr/libexec/gcc/i686-pc-mingw32.static/4.9.1/cc1
-fpreprocessed tclsqlite.i -quiet -dumpbase tclsqlite.c -mtune=generic
-march=pentiumpro -auxbase tclsqlite -O2 -version -o tclsqlite.s
GNU C (GCC) version 4.9.1 (i686-pc-mingw32.static)
compiled by GNU C version 4.8.1, GMP version 6.0.0, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (GCC) version 4.9.1 (i686-pc-mingw32.static)
compiled by GNU C version 4.8.1, GMP version 6.0.0, MPFR version 3.1.2,
MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 95b02311e7569b5d473f7ceccfa71955
../pkgs/sqlite3.8.0/generic/tclsqlite3.c:3109:1: internal compiler error: in
symtab_nonoverwritable_alias, at symtab.c:1252
0x65b414 symtab_nonoverwritable_alias(symtab_node*)
   
/root/Timothys_sandbox/mxe/tmp-gcc-i686-pc-mingw32.static/gcc-4.9.1/gcc/symtab.c:1252
0x7a0081 function_and_variable_visibility
   
/root/Timothys_sandbox/mxe/tmp-gcc-i686-pc-mingw32.static/gcc-4.9.1/gcc/ipa.c:1101
0x7a0826 whole_program_function_and_variable_visibility
   
/root/Timothys_sandbox/mxe/tmp-gcc-i686-pc-mingw32.static/gcc-4.9.1/gcc/ipa.c:1306
0x7a0826 execute
   
/root/Timothys_sandbox/mxe/tmp-gcc-i686-pc-mingw32.static/gcc-4.9.1/gcc/ipa.c:1350
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

This file comes from tcl8.6.1/pkgs/sqlite3.8.0/generic/tclsqlite3.c.

Again, this is not reproducible with -O1, therefore it is an optimizer problem.