This is the mail archive of the gcc-bugs@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]

[Bug middle-end/38360] [4.3/4.4 regression] ICE in gimple_op, at gimple.h:1636



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-12-02 00:37 -------
Caused by:
------------------------------------------------------------------------
r122018 | sandra | 2007-02-15 15:50:49 -0800 (Thu, 15 Feb 2007) | 862 lines

There used to be a validate_arglist in fold_builtin_fputs but that has been
removed in that revision.

   /* Verify the arguments in the original call.  */
-  if (!validate_arglist (arglist, POINTER_TYPE, POINTER_TYPE, VOID_TYPE))
-    return 0;
+  if (!validate_arg (arg0, POINTER_TYPE)
+      || !validate_arg (arg1, POINTER_TYPE))
+    return NULL_TREE;


So we no longer validate that the fputs builtin has the correct argument
types/number any more in tree-ssa-ccp.c's ccp_fold_builtin.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.3.3


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


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