This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR61335


On Fri, Jun 6, 2014 at 10:07 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Fri, Jun 6, 2014 at 9:47 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
>
>>> 2014-05-28  Richard Biener  <rguenther@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).

Attached patch initializes problematic array to zero instead of
uninitialized value.

2014-06-17  Uros Bizjak  <ubizjak@gmail.com>

    * gfortran.dg/pr61335.f90 (cp_unit_create): Initialize
    unit_id and kind_id to zero.

Tested on alphaev68-linux-gnu and x86_64-linux-gnu.

OK for mainline?

Uros.

Index: gfortran.dg/pr61335.f90
===================================================================
--- gfortran.dg/pr61335.f90     (revision 211723)
+++ gfortran.dg/pr61335.f90     (working copy)
@@ -45,8 +45,8 @@
     LOGICAL                                  :: failure

     failure=.FALSE.
-    unit_id=cp_units_none
-    kind_id=cp_ukind_none
+    unit_id=0
+    kind_id=0
     power=0
     i_low=1
     i_high=1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]