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



Richard Biener <rguenth at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

      Known to work|                            |4.7.2

   Target Milestone|---                         |4.8.1

            Summary|ICE: Segmentation fault in  |[4.8/4.9 Regression] ICE:

                   |add_field_for_reduction     |Segmentation fault in

                   |with                        |add_field_for_reduction

                   |-ftree-parallelize-loops=2  |with

                   |-fipa-pta                   |-ftree-parallelize-loops=2

                   |                            |-fipa-pta

      Known to fail|                            |4.8.0



--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-05-06 
12:09:42 UTC ---

Index: gcc/tree-parloops.c

===================================================================

--- gcc/tree-parloops.c (revision 198625)

+++ gcc/tree-parloops.c (working copy)

@@ -964,9 +964,9 @@ add_field_for_reduction (reduction_info

 {



   struct reduction_info *const red = *slot;

-  tree var = SSA_NAME_VAR (gimple_assign_lhs (red->reduc_stmt));

-  tree field = build_decl (gimple_location (red->reduc_stmt),

-                          FIELD_DECL, DECL_NAME (var), TREE_TYPE (var));

+  tree var = gimple_assign_lhs (red->reduc_stmt);

+  tree field = build_decl (gimple_location (red->reduc_stmt), FIELD_DECL,

+                          SSA_NAME_IDENTIFIER (var), TREE_TYPE (var));



   insert_field_into_struct (type, field);

Reply via email to