diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-08 20:54:07 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-08 20:54:07 +0000 |
commit | e8602e56969d864c43ed44dc6b2dc7d4e597a1f6 (patch) | |
tree | f37df892d870d138dc0e3460f96264fd2648883e /gcc/c-common.c | |
parent | ca58dfe18f025197cdd785cfcae594ca1da748e4 (diff) | |
download | gcc-e8602e56969d864c43ed44dc6b2dc7d4e597a1f6.tar.gz |
* langhooks.h: New file.
* Makefile.in (OBJS): Added langhooks.o.
(c-lang.o): Depend on langhooks.h.
(c-common.o): Don't depend on tree-inline.h.
(tree-inline.o): Depend on toplev.h.
(langhooks.o): New rule.
* c-common.c: Don't include tree-inline.h.
(c_mark_lang_decl): Mark argument c as unused.
(c_common_lang_init): Don't initialize hooks here.
* c-lang.c: Include langhooks.h, then override some macros.
(lang_hooks): Initialize with macros in langhooks.h.
(c_init): Don't initialize hooks here.
* toplev.c (struct lang_hooks_for_tree_inlining): New struct.
(struct lang_hooks): Add tree_inlining. Refer to langhooks.h.
* tree-inline.c: Include toplev.h. Don't define hook variables.
* tree-inline.h: Don't define hook types nor declare hook
variables. Move macros to...
* langhooks.c: ... new file, as functions. Adjust all callers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46096 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index da90224d89f..73bfcf0ea2a 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -22,7 +22,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "config.h" #include "system.h" #include "tree.h" -#include "tree-inline.h" #include "flags.h" #include "toplev.h" #include "output.h" @@ -3330,7 +3329,7 @@ mark_stmt_tree (p) void c_mark_lang_decl (c) - struct c_lang_decl *c; + struct c_lang_decl *c ATTRIBUTE_UNUSED; { } @@ -3831,8 +3830,6 @@ c_common_lang_init () if (flag_bounds_check < 0) flag_bounds_check = flag_bounded_pointers; - lang_anon_aggr_type_p = anon_aggr_type_p; - /* Special format checking options don't work without -Wformat; warn if they are used. */ if (warn_format_y2k && !warn_format) |