[Bug tree-optimization/26264] Extraneous warning with __builtin_stdarg_start and optimization

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 13 18:59:00 GMT 2006



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-13 18:59 -------
This patch will fix the problem:
Index: gimplify.c
===================================================================
--- gimplify.c  (revision 110916)
+++ gimplify.c  (working copy)
@@ -1984,7 +1984,8 @@ gimplify_call_expr (tree *expr_p, tree *
        }

       if (DECL_BUILT_IN_CLASS (decl) == BUILT_IN_NORMAL
-         && DECL_FUNCTION_CODE (decl) == BUILT_IN_VA_START)
+         && (DECL_FUNCTION_CODE (decl) == BUILT_IN_VA_START
+             || DECL_FUNCTION_CODE (decl) == BUILT_IN_STDARG_START))
         {
          if (!arglist || !TREE_CHAIN (arglist))
            {



But I don't know why GCC still has __builtin_stdarg_start.


-- 


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



More information about the Gcc-bugs mailing list