]> git.ipfire.org Git - thirdparty/gcc.git/commit
langhooks.h: New file.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 8 Oct 2001 20:54:07 +0000 (20:54 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 8 Oct 2001 20:54:07 +0000 (20:54 +0000)
commit69dcadffbabaf5fd3b0fa3f14b5de097c40a2751
treef37df892d870d138dc0e3460f96264fd2648883e
parent19551f2985c293a1041a0e7755627e87eb1559b7
langhooks.h: New file.

* 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.

From-SVN: r46096
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/c-lang.c
gcc/langhooks.c [new file with mode: 0644]
gcc/langhooks.h [new file with mode: 0644]
gcc/toplev.h
gcc/tree-inline.c
gcc/tree-inline.h