c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
* c-pragma.c (apply_pragma_weak): Don't use warning_with_decl. * toplev.h (warning): Remove attribute. From-SVN: r69585
This commit is contained in:
parent
b99f39de82
commit
308ca868d3
|
@ -1,3 +1,8 @@
|
|||
2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||
|
||||
* c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
|
||||
* toplev.h (warning): Remove attribute.
|
||||
|
||||
2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||
|
||||
* c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
|
||||
|
|
|
@ -275,7 +275,8 @@ apply_pragma_weak (tree decl, tree value)
|
|||
if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl)
|
||||
&& !DECL_WEAK (decl) /* don't complain about a redundant #pragma */
|
||||
&& TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)))
|
||||
warning_with_decl (decl, "applying #pragma weak `%s' after first use results in unspecified behavior");
|
||||
warning ("%Happlying #pragma weak '%D' after first use results "
|
||||
"in unspecified behavior", &DECL_SOURCE_LOCATION (decl), decl);
|
||||
|
||||
declare_weak (decl);
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ extern void _fatal_insn (const char *, rtx, const char *, int, const char *)
|
|||
#endif
|
||||
extern void internal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
|
||||
ATTRIBUTE_NORETURN;
|
||||
extern void warning (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
|
||||
extern void warning (const char *, ...);
|
||||
extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
|
||||
extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
|
||||
ATTRIBUTE_NORETURN;
|
||||
|
|
Loading…
Reference in New Issue