Commit 2c701c01 by Tim Josling Committed by Tim Josling

Treelang updates for new attrib regime.

From-SVN: r55344
parent 4d5be58b
2002-07-09 Tim Josling <tej@melbpc.org.au>
Support new attributes regime (Fix for PR c++/7099).
* treetree.c (handle_format_attribute): Return NULL_TREE instead
of aborting.
(top level): Define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES as the standard C routines.
2002-06-21 Andreas Jaeger <aj@suse.de> 2002-06-21 Andreas Jaeger <aj@suse.de>
* Make-lang.in (treelang/tree1.o, treelang/treetree.o, * Make-lang.in (treelang/tree1.o, treelang/treetree.o,
......
...@@ -119,6 +119,12 @@ int warn_format_zero_length = 0; ...@@ -119,6 +119,12 @@ int warn_format_zero_length = 0;
#define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size #define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size
#undef LANG_HOOKS_PARSE_FILE #undef LANG_HOOKS_PARSE_FILE
#define LANG_HOOKS_PARSE_FILE treelang_parse_file #define LANG_HOOKS_PARSE_FILE treelang_parse_file
#undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
#define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE c_common_attribute_table
#undef LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
#define LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE c_common_format_attribute_table
#undef LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES
#define LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES c_insert_default_attributes
/* Hook routines and data unique to treelang. */ /* Hook routines and data unique to treelang. */
...@@ -996,7 +1002,7 @@ cpp_errors (cpp_reader *pfile ATTRIBUTE_UNUSED) ...@@ -996,7 +1002,7 @@ cpp_errors (cpp_reader *pfile ATTRIBUTE_UNUSED)
abort (); abort ();
} }
/* Should not be called for treelang. */ /* Dummy called by C. */
tree tree
handle_format_attribute (tree *node ATTRIBUTE_UNUSED, handle_format_attribute (tree *node ATTRIBUTE_UNUSED,
...@@ -1005,7 +1011,7 @@ handle_format_attribute (tree *node ATTRIBUTE_UNUSED, ...@@ -1005,7 +1011,7 @@ handle_format_attribute (tree *node ATTRIBUTE_UNUSED,
int flags ATTRIBUTE_UNUSED, int flags ATTRIBUTE_UNUSED,
bool *no_add_attrs ATTRIBUTE_UNUSED) bool *no_add_attrs ATTRIBUTE_UNUSED)
{ {
abort (); return NULL_TREE;
} }
/* Should not be called for treelang. */ /* Should not be called for treelang. */
......
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