diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 19:03:35 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-12 19:03:35 +0000 |
commit | 3b9c3a165502b5f44f2ea84940f1347101b32a05 (patch) | |
tree | 62ef72086ece76b905d83fddffb7913f0ad12b2e /gcc/target-globals.c | |
parent | 92358f621cf465812aca483cdadba83345de6c0c (diff) | |
download | gcc-3b9c3a165502b5f44f2ea84940f1347101b32a05.tar.gz |
gcc/
* Makefile.in (target-globals.o): Depend on builtins.h.
* builtins.h: New file.
* builtins.c: Include builtins.h.
(default_target_builtins): New variable.
(this_target_builtins): New conditional variable.
(apply_args_mode, apply_result_mode): Redefine as macros.
* target-globals.h (this_target_builtins): Declare.
(target_globals): Add a builtins field.
(restore_target_globals): Copy the builtins field to
this_target_builtins.
* target-globals.c: Include builtins.h.
(default_target_globals): Initialize the builtins field.
(save_target_globals): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162105 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-globals.c')
-rw-r--r-- | gcc/target-globals.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c index 9d3d6666fff..cca93a53f91 100644 --- a/gcc/target-globals.c +++ b/gcc/target-globals.c @@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see #include "libfuncs.h" #include "cfgloop.h" #include "ira-int.h" +#include "builtins.h" #if SWITCHABLE_TARGET struct target_globals default_target_globals = { @@ -50,7 +51,8 @@ struct target_globals default_target_globals = { &default_target_libfuncs, &default_target_cfgloop, &default_target_ira, - &default_target_ira_int + &default_target_ira_int, + &default_target_builtins }; struct target_globals * @@ -70,6 +72,7 @@ save_target_globals (void) g->cfgloop = XCNEW (struct target_cfgloop); g->ira = XCNEW (struct target_ira); g->ira_int = XCNEW (struct target_ira_int); + g->builtins = XCNEW (struct target_builtins); restore_target_globals (g); target_reinit (); return g; |