Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2c701c01
Commit
2c701c01
authored
Jul 09, 2002
by
Tim Josling
Committed by
Tim Josling
Jul 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treelang updates for new attrib regime.
From-SVN: r55344
parent
4d5be58b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
gcc/treelang/ChangeLog
+10
-0
gcc/treelang/treetree.c
+8
-2
No files found.
gcc/treelang/ChangeLog
View file @
2c701c01
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,
...
...
gcc/treelang/treetree.c
View file @
2c701c01
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment