Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: gcc/gcc/config/v850/v850-c.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/config/v850/v850.c ('k') | gcc/gcc/config/vax/openbsd1.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « gcc/gcc/config/v850/v850.c ('k') | gcc/gcc/config/vax/openbsd1.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698