public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gcc-in-cxx] Fix builtins.c for C++
@ 2008-07-02  5:47 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2008-07-02  5:47 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

I committed this patch to the gcc-in-cxx branch to fix builtins.c for
C++.

Ian


2008-07-01  Ian Lance Taylor  <iant@google.com>

	* builtins.c (expand_builtin_profile_func): Rename local variable
	this to this_func.
	(validate_arglist): Pass int rather than enum to va_arg.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Fix builtins.c for C++ --]
[-- Type: text/x-patch, Size: 1088 bytes --]

Index: builtins.c
===================================================================
--- builtins.c	(revision 137267)
+++ builtins.c	(working copy)
@@ -5513,18 +5513,18 @@ expand_builtin_sprintf (tree exp, rtx ta
 static rtx
 expand_builtin_profile_func (bool exitp)
 {
-  rtx this, which;
+  rtx this_func, which;
 
-  this = DECL_RTL (current_function_decl);
-  gcc_assert (MEM_P (this));
-  this = XEXP (this, 0);
+  this_func = DECL_RTL (current_function_decl);
+  gcc_assert (MEM_P (this_func));
+  this_func = XEXP (this_func, 0);
 
   if (exitp)
     which = profile_function_exit_libfunc;
   else
     which = profile_function_entry_libfunc;
 
-  emit_library_call (which, LCT_NORMAL, VOIDmode, 2, this, Pmode,
+  emit_library_call (which, LCT_NORMAL, VOIDmode, 2, this_func, Pmode,
 		     expand_builtin_return_addr (BUILT_IN_RETURN_ADDRESS,
 						 0),
 		     Pmode);
@@ -10810,7 +10810,7 @@ validate_arglist (const_tree callexpr, .
 
   do
     {
-      code = va_arg (ap, enum tree_code);
+      code = (enum tree_code) va_arg (ap, int);
       switch (code)
 	{
 	case 0:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-02  5:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-02  5:47 [gcc-in-cxx] Fix builtins.c for C++ Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).