Commit f9f6b7df by Graham Stott Committed by Graham Stott

attribs.c (handle_deprecated_attribute): constify WHAT.


        * attribs.c (handle_deprecated_attribute): constify WHAT.
        * diagnostic.c (warn_deprecated_use): Add braces, fixes
        dangling else warning and constify WHAT.
        * except.h (struct function, struct inline_remap): Move
        struct tag forward defs before all prototypes.
        (duplicate_eh_regions): Whitespace.

From-SVN: r48799
parent 4a692617
2002-01-12 Graham Stott <grahams@redhat.com>
* attribs.c (handle_deprecated_attribute): constify WHAT.
* diagnostic.c (warn_deprecated_use): Add braces, fixes
dangling else warning and constify WHAT.
* except.h (struct function, struct inline_remap): Move
struct tag forward defs before all prototypes.
(duplicate_eh_regions): Whitespace.
2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
......
......@@ -1148,7 +1148,7 @@ handle_deprecated_attribute (node, name, args, flags, no_add_attrs)
{
tree type = NULL_TREE;
int warn = 0;
char *what = NULL;
const char *what = NULL;
if (DECL_P (*node))
{
......
......@@ -1526,6 +1526,7 @@ warn_deprecated_use (node)
tree node;
{
if (node && warn_deprecated_decl)
{
if (DECL_P (node))
{
warning ("`%s' is deprecated (declared at %s:%d)",
......@@ -1534,7 +1535,7 @@ warn_deprecated_use (node)
}
else if (TYPE_P (node))
{
char *what = NULL;
const char *what = NULL;
tree decl = TYPE_STUB_DECL (node);
if (TREE_CODE (TYPE_NAME (node)) == IDENTIFIER_NODE)
......@@ -1560,4 +1561,5 @@ warn_deprecated_use (node)
warning ("type is deprecated");
}
}
}
}
......@@ -26,6 +26,9 @@ struct varray_head_tag;
#define varray_type struct varray_head_tag *
#endif
struct function;
struct inline_remap;
/* Per-function EH data. Used only in except.c, but GC and others
manipulate pointers to the opaque type. */
......@@ -127,11 +130,7 @@ extern rtx expand_builtin_frob_return_addr PARAMS ((tree));
extern rtx expand_builtin_dwarf_fp_regnum PARAMS ((void));
extern void expand_builtin_eh_return PARAMS ((tree, tree));
extern void expand_eh_return PARAMS ((void));
extern rtx get_exception_pointer PARAMS ((struct function *));
struct function;
struct inline_remap;
extern int duplicate_eh_regions PARAMS ((struct function *,
struct inline_remap *));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment