[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2017-11-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

Eric Gallager  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #9 from Eric Gallager  ---
(In reply to Eric Gallager from comment #8)
> (In reply to Matt Hargett from comment #7)
> > I get this when trying to compile scummvm with LTO and whole-program:
> > 
> > $ /usr/lib/gcc-snapshot/bin/g++ --version
> > 
> > g++ (Ubuntu/Linaro 20110813-1ubuntu1) 4.7.0 20110813 (experimental) [trunk
> > revision 177733]
> > 
> > 
> > $ CC=/usr/lib/gcc-snapshot/bin/gcc CXX=/usr/lib/gcc-snapshot/bin/g++
> > CFLAGS="-Ofast -flto" CXXFLAGS="-Ofast -flto" LDFLAGS="-flto
> > -fwhole-program" ./configure
> > 
> > [...]
> > 
> > $ make -j9
> > 
> > [...]
> > 
> > 
> > RANLIB   base/libbase.a
> > LINK scummvm
> > lto1: internal compiler error: in generate_canonical_option, at
> > opts-common.c:303
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See  for instructions.
> > lto-wrapper: /usr/lib/gcc-snapshot/bin/g++ returned 1 exit status
> > /usr/bin/ld.bfd.real: lto-wrapper failed
> > collect2: error: ld returned 1 exit status
> > 
> > 
> > Removing -fwhole-program and changing the CXXFLAGS to -O1 doesn't change the
> > behaviour. I can attach a tarball if downloading the latest scummvm tarball
> > is too bothersome.
> > 
> 
> If there's too many files to attach preprocessed source for each of them,
> could you at least post a link to the scummvm tarball you used?

Closing due to no response; can't reproduce bugs without a proper testcase.

[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2017-08-01 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org

--- Comment #8 from Eric Gallager  ---
(In reply to Matt Hargett from comment #7)
> I get this when trying to compile scummvm with LTO and whole-program:
> 
> $ /usr/lib/gcc-snapshot/bin/g++ --version
> 
> g++ (Ubuntu/Linaro 20110813-1ubuntu1) 4.7.0 20110813 (experimental) [trunk
> revision 177733]
> 
> 
> $ CC=/usr/lib/gcc-snapshot/bin/gcc CXX=/usr/lib/gcc-snapshot/bin/g++
> CFLAGS="-Ofast -flto" CXXFLAGS="-Ofast -flto" LDFLAGS="-flto
> -fwhole-program" ./configure
> 
> [...]
> 
> $ make -j9
> 
> [...]
> 
> 
> RANLIB   base/libbase.a
> LINK scummvm
> lto1: internal compiler error: in generate_canonical_option, at
> opts-common.c:303
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See  for instructions.
> lto-wrapper: /usr/lib/gcc-snapshot/bin/g++ returned 1 exit status
> /usr/bin/ld.bfd.real: lto-wrapper failed
> collect2: error: ld returned 1 exit status
> 
> 
> Removing -fwhole-program and changing the CXXFLAGS to -O1 doesn't change the
> behaviour. I can attach a tarball if downloading the latest scummvm tarball
> is too bothersome.
> 

If there's too many files to attach preprocessed source for each of them, could
you at least post a link to the scummvm tarball you used?

[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-08-18 Thread matt at use dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

Matt Hargett matt at use dot net changed:

   What|Removed |Added

 CC||matt at use dot net

--- Comment #7 from Matt Hargett matt at use dot net 2011-08-18 18:28:04 UTC 
---
I get this when trying to compile scummvm with LTO and whole-program:

$ /usr/lib/gcc-snapshot/bin/g++ --version

g++ (Ubuntu/Linaro 20110813-1ubuntu1) 4.7.0 20110813 (experimental) [trunk
revision 177733]


$ CC=/usr/lib/gcc-snapshot/bin/gcc CXX=/usr/lib/gcc-snapshot/bin/g++
CFLAGS=-Ofast -flto CXXFLAGS=-Ofast -flto LDFLAGS=-flto -fwhole-program
./configure

[...]

$ make -j9

[...]


RANLIB   base/libbase.a
LINK scummvm
lto1: internal compiler error: in generate_canonical_option, at
opts-common.c:303
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-snapshot/README.Bugs for instructions.
lto-wrapper: /usr/lib/gcc-snapshot/bin/g++ returned 1 exit status
/usr/bin/ld.bfd.real: lto-wrapper failed
collect2: error: ld returned 1 exit status


Removing -fwhole-program and changing the CXXFLAGS to -O1 doesn't change the
behaviour. I can attach a tarball if downloading the latest scummvm tarball is
too bothersome.

Note that I'm not using that dump-ipa-graph option at all.


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-06 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

--- Comment #3 from joseph at codesourcery dot com joseph at codesourcery dot 
com 2011-06-06 09:07:54 UTC ---
On Sun, 5 Jun 2011, andi-gcc at firstfloor dot org wrote:

 FWIW I just commented out the offending assert and the option works
 now. 
 
 Is that the correct fix?

No, that's certainly wrong.  The caller of generate_canonical_option 
should never be passing an argument to an option that doesn't take one.


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2011.06.06 10:34:36
 Ever Confirmed|0   |1

--- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2011-06-06 
10:34:36 UTC ---
Waiting for sth like a testcase or more investigation.


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-06 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

--- Comment #5 from Andi Kleen andi-gcc at firstfloor dot org 2011-06-06 
10:39:32 UTC ---
If you use my command line and just supply any random object files
for the ones specified it should reproduce I think.

If not i'll upload my builddir, but it's large.


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

--- Comment #6 from Richard Guenther rguenth at gcc dot gnu.org 2011-06-06 
10:44:43 UTC ---
Can you provide source for random object files?


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-05 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

--- Comment #2 from Andi Kleen andi-gcc at firstfloor dot org 2011-06-05 
23:43:07 UTC ---
FWIW I just commented out the offending assert and the option works
now. 

Is that the correct fix?


[Bug other/49284] -fdump-ipa-cgraph leads to ICE in generate_canonical_option, at opts-common.c:303

2011-06-04 Thread andi-gcc at firstfloor dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49284

--- Comment #1 from Andi Kleen andi-gcc at firstfloor dot org 2011-06-04 
22:13:34 UTC ---
Some investigation:

This depends heavily on the command line used.

A simple test with a hello world works.

On my kernel build when I strip the lto link command line down I get
the error with

gcc47 -fdump-cgraph-ipa -nostdlib -fuse-linker-plugin -flto=jobserver
-fwhole-program -Wl,-m,elf_x86_64 -Wl,--build-id -o .tmp_vmlinux1
-Wl,-T,arch/x86/kernel/vmlinux.lds arch/x86/kernel/head_64.o
arch/x86/kernel/head_64.o

and not with (last file deleted)

gcc47 -fdump-cgraph-ipa -nostdlib -fuse-linker-plugin -flto=jobserver
-fwhole-program -Wl,-m,elf_x86_64 -Wl,--build-id -o .tmp_vmlinux1
-Wl,-T,arch/x86/kernel/vmlinux.lds arch/x86/kernel/head_64.o