diff gcc/config/v850/v850-c.c @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents a06113de4d67
children f6334be47118
line wrap: on
line diff
--- a/gcc/config/v850/v850-c.c	Sun Feb 07 18:28:00 2010 +0900
+++ b/gcc/config/v850/v850-c.c	Fri Feb 12 23:39:51 2010 +0900
@@ -1,5 +1,6 @@
 /* v850 specific, C compiler specific functions.
-   Copyright (C) 2000, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003, 2005, 2007, 2009
+   Free Software Foundation, Inc.
    Contributed by Jeff Law (law@cygnus.com).
 
 This file is part of GCC.
@@ -114,13 +115,14 @@
 void
 ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED)
 {
-  int repeat;
+  int repeat = 0;
 
   /* #pragma ghs section [name = alias [, name = alias [, ...]]] */
   do
     {
       tree x;
       enum cpp_ttype type;
+      tree sect_ident;
       const char *sect, *alias;
       enum GHS_section_kind kind;
       
@@ -129,7 +131,10 @@
       if (type == CPP_EOF && !repeat)
 	goto reset;
       else if (type == CPP_NAME)
-	sect = IDENTIFIER_POINTER (x);
+	{
+	  sect_ident = x;
+	  sect = IDENTIFIER_POINTER (sect_ident);
+	}
       else
 	goto bad;
       repeat = 0;
@@ -162,7 +167,7 @@
       else if (streq (sect, "zbss"))    kind = GHS_SECTION_KIND_ZDATA;
       else
 	{
-	  warning (0, "unrecognized section name \"%s\"", sect);
+	  warning (0, "unrecognized section name %qE", sect_ident);
 	  return;
 	}