On Fri, Jun 6, 2014 at 9:47 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
>> 2014-05-28 Richard Biener <rguent...@suse.de> >> >> PR tree-optimization/61335 >> * tree-vrp.c (vrp_visit_phi_node): If the compare of old and >> new range fails, drop to varying. >> >> * gfortran.dg/pr61335.f90: New testcase. > > This testcase triggers SIGFPE on alpha due to the use of denormal > operand. Maybe uninitialized value is used in line 48? SIGFPE also triggers at the same place on x86_64 with unmasked FPE exceptions (compile with -O0). (gdb) b main Breakpoint 1 at 0x401602: file /home/uros/gcc-svn/trunk/gcc/testsuite/gfortran.dg/pr61335.f90, line 115. (gdb) r Starting program: /home/uros/test/pr61335.exe warning: no loadable sections found in added symbol-file system-supplied DSO at 0x2aaaaaaab000 Breakpoint 1, main (argc=1, argv=0x7fffffffd88e) at /home/uros/gcc-svn/trunk/gcc/testsuite/gfortran.dg/pr61335.f90:115 115 USE cp_units (gdb) i r mxcsr mxcsr 0x1f80 [ IM DM ZM OM UM PM ] (gdb) set $mxcsr=0x1000 (gdb) i r mxcsr mxcsr 0x1000 [ PM ] (gdb) c Continuing. Program received signal SIGFPE, Arithmetic exception. 0x0000000000400b60 in cp_units::cp_unit_create (string=<error reading variable: Cannot access memory at address 0x401c47>, _string=5) at /home/uros/gcc-svn/trunk/gcc/testsuite/gfortran.dg/pr61335.f90:49 49 kind_id=cp_ukind_none 0x0000000000400b57 <+95>: mov -0x28(%rbp),%eax 0x0000000000400b5a <+98>: mov %eax,-0x280(%rbp) => 0x0000000000400b60 <+104>: cvttss2si -0x280(%rbp),%ecx (gdb) i r mxcsr mxcsr 0x1021 [ IE PE PM ] Uros.