diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-01-09 19:25:19 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-01-09 19:25:19 +0100 |
commit | e83b8e2e24490f634383aa882c6e39e3e6469fab (patch) | |
tree | 37c967d0243784a67a421818ebbbd738909d5f3c /gcc/tree.h | |
parent | b5f58ba3318e02aeaa60864fe9ae112f41b6d497 (diff) | |
download | gcc-e83b8e2e24490f634383aa882c6e39e3e6469fab.zip gcc-e83b8e2e24490f634383aa882c6e39e3e6469fab.tar.gz gcc-e83b8e2e24490f634383aa882c6e39e3e6469fab.tar.bz2 |
re PR target/58115 (testcase gcc.target/i386/intrinsics_4.c failure)
PR target/58115
* tree-core.h (struct target_globals): New forward declaration.
(struct tree_target_option): Add globals field.
* tree.h (TREE_TARGET_GLOBALS): Define.
(prepare_target_option_nodes_for_pch): New prototype.
* target-globals.h (struct target_globals): Define even if
!SWITCHABLE_TARGET.
* tree.c (prepare_target_option_node_for_pch,
prepare_target_option_nodes_for_pch): New functions.
* config/i386/i386.h (SWITCHABLE_TARGET): Define.
* config/i386/i386.c: Include target-globals.h.
(ix86_set_current_function): Instead of doing target_reinit
unconditionally, use save_target_globals_default_opts and
restore_target_globals.
c-family/
* c-pch.c (c_common_write_pch): Call
prepare_target_option_nodes_for_pch.
From-SVN: r206478
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2695,9 +2695,14 @@ extern tree build_optimization_node (struct gcc_options *opts); #define TREE_TARGET_OPTION(NODE) \ (&TARGET_OPTION_NODE_CHECK (NODE)->target_option.opts) +#define TREE_TARGET_GLOBALS(NODE) \ + (TARGET_OPTION_NODE_CHECK (NODE)->target_option.globals) + /* Return a tree node that encapsulates the target options in OPTS. */ extern tree build_target_option_node (struct gcc_options *opts); +extern void prepare_target_option_nodes_for_pch (void); + #if defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 2007) inline tree |