diff options
Diffstat (limited to 'gcc/config/v850')
-rw-r--r-- | gcc/config/v850/v850-c.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/gcc/config/v850/v850-c.c b/gcc/config/v850/v850-c.c index a7acf99fd51..cbb86cdd426 100644 --- a/gcc/config/v850/v850-c.c +++ b/gcc/config/v850/v850-c.c @@ -64,9 +64,11 @@ static int pop_data_area (v850_data_area data_area) { if (data_area_stack == NULL) - warning (0, "#pragma GHS endXXXX found without previous startXXX"); + warning (OPT_Wpragmas, "#pragma GHS endXXXX found without " + "previous startXXX"); else if (data_area != data_area_stack->data_area) - warning (0, "#pragma GHS endXXX does not match previous startXXX"); + warning (OPT_Wpragmas, "#pragma GHS endXXX does not match " + "previous startXXX"); else { data_area_stack_element * elem; @@ -144,7 +146,7 @@ ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) if (type == CPP_COMMA) repeat = 1; else if (type != CPP_EOF) - warning (0, "junk at end of #pragma ghs section"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs section"); if (streq (sect, "data")) kind = GHS_SECTION_KIND_DATA; else if (streq (sect, "text")) kind = GHS_SECTION_KIND_TEXT; @@ -176,7 +178,7 @@ ghs_pragma_section (cpp_reader * pfile ATTRIBUTE_UNUSED) return; bad: - warning (0, "malformed #pragma ghs section"); + warning (OPT_Wpragmas, "malformed #pragma ghs section"); return; reset: @@ -195,7 +197,7 @@ ghs_pragma_interrupt (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs interrupt"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs interrupt"); mark_current_function_as_interrupt (); } @@ -206,7 +208,7 @@ ghs_pragma_starttda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs starttda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs starttda"); push_data_area (DATA_AREA_TDA); } @@ -217,7 +219,7 @@ ghs_pragma_startsda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs startsda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs startsda"); push_data_area (DATA_AREA_SDA); } @@ -228,7 +230,7 @@ ghs_pragma_startzda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs startzda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs startzda"); push_data_area (DATA_AREA_ZDA); } @@ -239,7 +241,7 @@ ghs_pragma_endtda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs endtda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs endtda"); pop_data_area (DATA_AREA_TDA); } @@ -250,7 +252,7 @@ ghs_pragma_endsda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs endsda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs endsda"); pop_data_area (DATA_AREA_SDA); } @@ -261,7 +263,7 @@ ghs_pragma_endzda (cpp_reader * pfile ATTRIBUTE_UNUSED) tree x; if (c_lex (&x) != CPP_EOF) - warning (0, "junk at end of #pragma ghs endzda"); + warning (OPT_Wpragmas, "junk at end of #pragma ghs endzda"); pop_data_area (DATA_AREA_ZDA); } |