Processed: Re: Bug#805616: gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler error)

2015-11-26 Thread Debian Bug Tracking System
Processing control commands:

> severity -1 important
Bug #805616 [gcc-4.9] gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler 
error)
Severity set to 'important' from 'grave'
> tags -1 upstream
Bug #805616 [gcc-4.9] gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler 
error)
Added tag(s) upstream.
> forwarded -1 https://gcc.gnu.org/PR68572
Bug #805616 [gcc-4.9] gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler 
error)
Set Bug forwarded-to-address to 'https://gcc.gnu.org/PR68572'.

-- 
805616: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805616
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#805616: gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler error)

2015-11-26 Thread Matthias Klose

Control: severity -1 important
Control: tags -1 upstream
Control: forwarded -1 https://gcc.gnu.org/PR68572

can be worked around by using -O1.



Bug#805616: gcc-4.9: GCC++ 4.9 compiler had ICE (internal compiler error)

2015-11-21 Thread Andreas Beckmann
verified in g++-4.9 built from svn:

$ g++-4.9.x -v -std=gnu++11 -fno-strict-aliasing -O2 -c 805616..ii
Using built-in specs.
COLLECT_GCC=/opt/software/x86_64/gcc-4.9.x/bin/g++-4.9.x
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4_9-branch/configure 
--prefix=/opt/software/x86_64/gcc-4.9.x --program-suffix=-4.9.x 
--enable-languages=c,c++,fortran --enable-checking
Thread model: posix
gcc version 4.9.4 20151121 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-fno-strict-aliasing' '-O2' '-c' 
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
 
/opt/software/x86_64/gcc-4.9.x/libexec/gcc/x86_64-unknown-linux-gnu/4.9.4/cc1plus
 -fpreprocessed 805616..ii -quiet -dumpbase 805616..ii -mtune=generic 
-march=x86-64 -auxbase 805616. -O2 -std=gnu++11 -version -fno-strict-aliasing 
-o /tmp/ccmf892Y.s
GNU C++ (GCC) version 4.9.4 20151121 (prerelease) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.4 20151121 (prerelease), GMP version 
6.0.0, MPFR version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.9.4 20151121 (prerelease) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.4 20151121 (prerelease), GMP version 
6.0.0, MPFR version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: c8476ec2ebe2d7bd0e72dc80313e75a7
In file included from 
/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/gfx/skia/skia/include/effects/SkLayerRasterizer.h:13:0,
 from 
/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/gfx/2d/DrawTargetSkia.cpp:24,
 from 
/home/ishikawa/objdir-tb3/gfx/2d/Unified_cpp_gfx_2d0.cpp:83:
/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/gfx/skia/skia/include/core/SkRasterizer.h:
 In member function ‘virtual void mozilla::gfx::DrawTargetTiled::PopClip()’:
/new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/gfx/skia/skia/include/core/SkRasterizer.h:21:7:
 internal compiler error: Segmentation fault
0xb78fff crash_signal
../../gcc-4_9-branch/gcc/toplev.c:337
0x9a1669 is_gimple_reg_type
../../gcc-4_9-branch/gcc/gimple-expr.h:75
0x9a1669 is_gimple_val(tree_node*)
../../gcc-4_9-branch/gcc/gimple-expr.c:814
0xb9e35d verify_types_in_gimple_min_lval
../../gcc-4_9-branch/gcc/tree-cfg.c:3007
0xb9e35d verify_types_in_gimple_reference
../../gcc-4_9-branch/gcc/tree-cfg.c:3149
0xba12d0 verify_gimple_assign_single
../../gcc-4_9-branch/gcc/tree-cfg.c:4004
0xba12d0 verify_gimple_assign
../../gcc-4_9-branch/gcc/tree-cfg.c:4183
0xba12d0 verify_gimple_stmt
../../gcc-4_9-branch/gcc/tree-cfg.c:4417
0xba7cad verify_gimple_in_cfg(function*)
../../gcc-4_9-branch/gcc/tree-cfg.c:4882
0xace5d2 execute_function_todo
../../gcc-4_9-branch/gcc/passes.c:1853
0xacef33 execute_todo
../../gcc-4_9-branch/gcc/passes.c:1887
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

There are several google hits for
  "segmentation fault is_gimple_reg_type"
  "segmentation fault is_gimple_reg_type is_gimple_val"
but all with different backtraces
  "segmentation fault is_gimple_reg_type is_gimple_val 
verify_types_in_gimple_min_lval"
gets no results at all, so this seems to be a new PR :-)


Minimizing the example to something managable ... and understood by different 
compiler versions as well

4.9.4 (SVN): segfault
4.9.3-5 (Debian): segfault
4.8.5-1 (Debian): pass
4.7.4-3 (Debian): compile error
5.2.1-23 (Debian): segfault, different backtrace


$ g++-4.9.x -v -std=gnu++11 -O2 -c 805616_min.hM.min.ii
Using built-in specs.
COLLECT_GCC=/opt/software/x86_64/gcc-4.9.x/bin/g++-4.9.x
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4_9-branch/configure 
--prefix=/opt/software/x86_64/gcc-4.9.x --program-suffix=-4.9.x 
--enable-languages=c,c++,fortran --enable-checking
Thread model: posix
gcc version 4.9.4 20151121 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-O2' '-c' '-shared-libgcc' 
'-mtune=generic' '-march=x86-64'
 
/opt/software/x86_64/gcc-4.9.x/libexec/gcc/x86_64-unknown-linux-gnu/4.9.4/cc1plus
 -fpreprocessed 805616_min.hM.min.ii -quiet -dumpbase 805616_min.hM.min.ii 
-mtune=generic -march=x86-64 -auxbase 805616_min.hM.min -O2 -std=gnu++11 
-version -o /tmp/ccdwpTpg.s
GNU C++ (GCC) version 4.9.4 20151121 (prerelease) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.4 20151121 (prerelease), GMP version 
6.0.0, MPFR version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.9.4 20151121 (prerelease) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.9.4 20151121 (prerelease), GMP version 
6.0.0, MPFR version 3.1.3, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=30 --param