Index: gcc/gcc/config/v850/v850-c.c |
diff --git a/gcc/gcc/config/v850/v850-c.c b/gcc/gcc/config/v850/v850-c.c |
index dc0082cf6efeda571bd308aad2497d3f7c898a58..0d53a72db5cc88a7f18ef043be4bf2acb6bd3e39 100644 |
--- a/gcc/gcc/config/v850/v850-c.c |
+++ b/gcc/gcc/config/v850/v850-c.c |
@@ -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 @@ mark_current_function_as_interrupt (void) |
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 @@ ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) |
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 @@ ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) |
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; |
} |