Commit e8449dec by Christian Bruel

arm-c.c (arm_reset_previous_fndecl): Style fix and typo.

2016-02-04  Christian Bruel  <christian.bruel@st.com>

	* config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
	* config/arm/arm.c (arm_set_current_function): Likewise.

From-SVN: r233129
parent 61f727fe
2016-02-04 Christian Bruel <christian.bruel@st.com>
* config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
* config/arm/arm.c (arm_set_current_function): Likewise.
2016-02-04 Jakub Jelinek <jakub@redhat.com> 2016-02-04 Jakub Jelinek <jakub@redhat.com>
Ilya Enkovich <enkovich.gnu@gmail.com> Ilya Enkovich <enkovich.gnu@gmail.com>
H.J. Lu <hongjiu.lu@intel.com> H.J. Lu <hongjiu.lu@intel.com>
......
...@@ -195,6 +195,7 @@ arm_cpu_cpp_builtins (struct cpp_reader * pfile) ...@@ -195,6 +195,7 @@ arm_cpu_cpp_builtins (struct cpp_reader * pfile)
/* Hook to validate the current #pragma GCC target and set the arch custom /* Hook to validate the current #pragma GCC target and set the arch custom
mode state. If ARGS is NULL, then POP_TARGET is used to reset mode state. If ARGS is NULL, then POP_TARGET is used to reset
the options. */ the options. */
static bool static bool
arm_pragma_target_parse (tree args, tree pop_target) arm_pragma_target_parse (tree args, tree pop_target)
{ {
...@@ -243,7 +244,7 @@ arm_pragma_target_parse (tree args, tree pop_target) ...@@ -243,7 +244,7 @@ arm_pragma_target_parse (tree args, tree pop_target)
/* Don't warn for macros that have context sensitive values depending on /* Don't warn for macros that have context sensitive values depending on
other attributes. other attributes.
See warn_of_redefinition, Reset after cpp_create_definition. */ See warn_of_redefinition, reset after cpp_create_definition. */
tree acond_macro = get_identifier ("__ARM_NEON_FP"); tree acond_macro = get_identifier ("__ARM_NEON_FP");
C_CPP_HASHNODE (acond_macro)->flags |= NODE_CONDITIONAL ; C_CPP_HASHNODE (acond_macro)->flags |= NODE_CONDITIONAL ;
...@@ -267,7 +268,6 @@ arm_pragma_target_parse (tree args, tree pop_target) ...@@ -267,7 +268,6 @@ arm_pragma_target_parse (tree args, tree pop_target)
function basis in arm_set_current_function. */ function basis in arm_set_current_function. */
if (cur_tree == target_option_default_node) if (cur_tree == target_option_default_node)
save_restore_target_globals (cur_tree); save_restore_target_globals (cur_tree);
} }
return true; return true;
......
...@@ -29769,6 +29769,7 @@ save_restore_target_globals (tree new_tree) ...@@ -29769,6 +29769,7 @@ save_restore_target_globals (tree new_tree)
} }
/* Invalidate arm_previous_fndecl. */ /* Invalidate arm_previous_fndecl. */
void void
arm_reset_previous_fndecl (void) arm_reset_previous_fndecl (void)
{ {
...@@ -29778,6 +29779,7 @@ arm_reset_previous_fndecl (void) ...@@ -29778,6 +29779,7 @@ arm_reset_previous_fndecl (void)
/* Establish appropriate back-end context for processing the function /* Establish appropriate back-end context for processing the function
FNDECL. The argument might be NULL to indicate processing at top FNDECL. The argument might be NULL to indicate processing at top
level, outside of any function scope. */ level, outside of any function scope. */
static void static void
arm_set_current_function (tree fndecl) arm_set_current_function (tree fndecl)
{ {
...@@ -29791,7 +29793,7 @@ arm_set_current_function (tree fndecl) ...@@ -29791,7 +29793,7 @@ arm_set_current_function (tree fndecl)
tree new_tree = DECL_FUNCTION_SPECIFIC_TARGET (fndecl); tree new_tree = DECL_FUNCTION_SPECIFIC_TARGET (fndecl);
/* If current function has no attributes but previous one did, /* If current function has no attributes but previous one did,
use the default node." */ use the default node. */
if (! new_tree && old_tree) if (! new_tree && old_tree)
new_tree = target_option_default_node; new_tree = target_option_default_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment