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



             Bug #: 56398

           Summary: [4.8 Regression] ICE (Segmentation fault) in

                    dominated_by_p

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: tree-optimization

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: d...@gcc.gnu.org





Created attachment 29498

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29498

preprocessed source



works with the 4.7 branch, fails with trunk 20130217. lowering optimization to

-O2 avoids the issue.



$ g++ -c -g -O3 vtkLargeInteger.ii

/home/packages/tmp/ice/vtk-5.8.0/Common/vtkLargeInteger.cxx: In function 'long

int vtkpow(long int, long int)':

/home/packages/tmp/ice/vtk-5.8.0/Common/vtkLargeInteger.cxx:36:6: internal

compiler error: Segmentation fault

 long vtkpow(long a, long b)

      ^

Please submit a full bug report,

with preprocessed source if appropriate.



Program received signal SIGSEGV, Segmentation fault.

0x00000000006ea65b in dominated_by_p(cdi_direction, basic_block_def const*,

basic_block_def const*) ()

(gdb) bt

#0  0x00000000006ea65b in dominated_by_p(cdi_direction, basic_block_def const*,

basic_block_def const*) ()

#1  0x0000000000a2e450 in ?? ()

#2  0x0000000000a30101 in ?? ()

#3  0x0000000000a31b26 in vect_do_peeling_for_loop_bound(_loop_vec_info*,

tree_node**, unsigned int, bool) ()

#4  0x0000000000a22404 in vect_transform_loop(_loop_vec_info*) ()

#5  0x0000000000a3ac3b in vectorize_loops() ()

#6  0x0000000000860919 in execute_one_pass(opt_pass*) ()

#7  0x0000000000860cf5 in execute_pass_list(opt_pass*) ()

#8  0x0000000000860d07 in execute_pass_list(opt_pass*) ()

#9  0x0000000000860d07 in execute_pass_list(opt_pass*) ()

#10 0x00000000006c03be in ?? ()

#11 0x00000000006c1977 in compile() ()

#12 0x00000000006c1d9a in finalize_compilation_unit() ()

#13 0x0000000000595fe9 in cp_write_global_declarations() ()

#14 0x00000000008eee8d in ?? ()

#15 0x00000000008f08fa in toplev_main(int, char**) ()

#16 0x00007ffff6c55a55 in __libc_start_main (main=0x533f50 <main>, argc=15,

ubp_av=0x7fffffffe508, init=<optimized out>, fini=<optimized out>, 

    rtld_fini=<optimized out>, stack_end=0x7fffffffe4f8) at libc-start.c:260

#17 0x00000000005341b9 in _start ()

Reply via email to