[Bug tree-optimization/19333] [4.0 Regression] Compilation SEGFAULTs with -O1 -finline-functions on the x86_64 architecture.

steven at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 27 16:06:00 GMT 2005


------- Additional Comments From steven at gcc dot gnu dot org  2005-01-27 16:05 -------
In that case, isn't the following patch enough (modulo testing, doc 
fixes, and test cases)? 
 
 
 
Index: c-decl.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v 
retrieving revision 1.627 
diff -u -3 -p -r1.627 c-decl.c 
--- c-decl.c    27 Jan 2005 12:38:25 -0000      1.627 
+++ c-decl.c    27 Jan 2005 16:04:20 -0000 
@@ -4142,9 +4142,9 @@ grokdeclarator (const struct c_declarato 
                itype = build_range_type (sizetype, size_zero_node, 
NULL_TREE); 
              } 
 
-           /* If pedantic, complain about arrays of incomplete types.  */ 
-           if (pedantic && !COMPLETE_TYPE_P (type)) 
-             pedwarn ("array type has incomplete element type"); 
+           /* Complain about arrays of incomplete types.  */ 
+           if (!COMPLETE_TYPE_P (type)) 
+             error ("array type has incomplete element type"); 
 
            /* Build the array type itself, then merge any constancy 
               or volatility into the target type.  We must do it in 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsm28 at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list