c-common.c (format_attribute_table): Remove decl.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sat, 22 Sep 2001 15:13:42 +0000 (15:13 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 22 Sep 2001 15:13:42 +0000 (11:13 -0400)
* c-common.c (format_attribute_table): Remove decl.
* tree.h (format_attribute_table, lang_attribute_table): New decls.
(lang_attribute_common): Likewise.

From-SVN: r45754

gcc/ChangeLog
gcc/c-common.c
gcc/tree.h

index 1a0e10c99608873434ab1f2fc04615408771cda0..e3f1a65bac87520faf7ad75e80e44d7dd96757e4 100644 (file)
@@ -1,5 +1,9 @@
 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * c-common.c (format_attribute_table): Remove decl.
+       * tree.h (format_attribute_table, lang_attribute_table): New decls.
+       (lang_attribute_common): Likewise.
+
        * function.c (fix_lexical_address): Use set_mem_alias_set.
        (expand_function_start): Likewise.
        * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
index fd1aef1f3cce54febec9b1f0cacd3e795aead5aa..74a55525015525223ab650e0ebf98b08af319196 100644 (file)
@@ -3784,8 +3784,6 @@ static const struct attribute_spec c_format_attribute_table[] =
   { NULL,                     0, 0, false, false, false, NULL }
 };
 
-extern const struct attribute_spec *format_attribute_table;
-
 /* Do the parts of lang_init common to C and C++.  */
 void
 c_common_lang_init ()
index 8bec94f7ced433ad78b040b95d5e85fd008eeaf9..b95a4aaca40f7bc6c3c547e2a65381d349c6164e 100644 (file)
@@ -2907,8 +2907,26 @@ extern rtx emit_line_note                PARAMS ((const char *, int));
 extern int setjmp_call_p               PARAMS ((tree));
 
 /* In attribs.c.  */
+
+/* Process the attributes listed in ATTRIBUTES and install them in *NODE,
+   which is either a DECL (including a TYPE_DECL) or a TYPE.  If a DECL,
+   it should be modified in place; if a TYPE, a copy should be created
+   unless ATTR_FLAG_TYPE_IN_PLACE is set in FLAGS.  FLAGS gives further
+   information, in the form of a bitwise OR of flags in enum attribute_flags
+   from tree.h.  Depending on these flags, some attributes may be
+   returned to be applied at a later stage (for example, to apply
+   a decl attribute to the declaration rather than to its type).  */
 extern tree decl_attributes            PARAMS ((tree *, tree, int));
 
+/* Table of machine-independent attributes for checking formats, if used.  */
+extern const struct attribute_spec *format_attribute_table;
+
+/* Table of machine-independent attributes for a particular language.  */
+extern const struct attribute_spec *lang_attribute_table;
+
+/* Flag saying whether common language attributes are to be supported.  */
+extern int lang_attribute_common;
+
 /* In front end.  */
 
 extern int mark_addressable            PARAMS ((tree));