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]

[PATCH] Fix PR bootstrap/40788 / problem with location in builtins.c:gimplify_va_arg_expr


Hi,

As suggested by Richard on the PR:

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

I tested that the following patch and it restores c,ada bootstrap on
sparc --with-cpu=v8

Ok to commit?

Laurent

2009-08-11  Richard Guenther  <rguenther@suse.de>
	
	PR bootstrap/40788
	* builtins.c (gimplify_va_arg_expr): Do not call 
        SET_EXPR_LOCATION.

Index: gcc/builtins.c
===================================================================
--- gcc/builtins.c	(revision 150589)
+++ gcc/builtins.c	(working copy)
@@ -5104,7 +5104,6 @@
 	return GS_ALL_DONE;
 
       *expr_p = targetm.gimplify_va_arg_expr (valist, type, pre_p, post_p);
-      SET_EXPR_LOCATION (*expr_p, loc);
       return GS_OK;
     }
 }




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