Commit 67b28863 by Andrew Pinski Committed by Andrew Pinski

c-decl.c (finish_function): Change order of checks.

2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>

	* c-decl.c (finish_function): Change order of checks.
	(c_expand_body): Likewise.

From-SVN: r74941
parent 499b568f
2003-12-22 Andrew Pinski <pinskia@physics.uc.edu>
* c-decl.c (finish_function): Change order of checks.
(c_expand_body): Likewise.
2003-12-22 Fariborz Jahanian <fjahanian@apple.com> 2003-12-22 Fariborz Jahanian <fjahanian@apple.com>
* config/rs6000/rs6000.c (legitimate_offset_address_p): Correct * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct
check for the legitimate offset when memory of check for the legitimate offset when memory of
DImode/DFmode/TFmode/TImode mode is being referenced and target DImode/DFmode/TFmode/TImode mode is being referenced and target
......
...@@ -6088,12 +6088,12 @@ finish_function (void) ...@@ -6088,12 +6088,12 @@ finish_function (void)
} }
} }
if (DECL_INITIAL (fndecl) != error_mark_node && DECL_INITIAL (fndecl)) if (DECL_INITIAL (fndecl) && DECL_INITIAL (fndecl) != error_mark_node)
BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl; BLOCK_SUPERCONTEXT (DECL_INITIAL (fndecl)) = fndecl;
/* Must mark the RESULT_DECL as being in this function. */ /* Must mark the RESULT_DECL as being in this function. */
if (DECL_RESULT (fndecl) != error_mark_node && DECL_RESULT (fndecl)) if (DECL_RESULT (fndecl) && DECL_RESULT (fndecl) != error_mark_node)
DECL_CONTEXT (DECL_RESULT (fndecl)) = fndecl; DECL_CONTEXT (DECL_RESULT (fndecl)) = fndecl;
if (MAIN_NAME_P (DECL_NAME (fndecl)) && flag_hosted) if (MAIN_NAME_P (DECL_NAME (fndecl)) && flag_hosted)
...@@ -6226,7 +6226,7 @@ void ...@@ -6226,7 +6226,7 @@ void
c_expand_body (tree fndecl) c_expand_body (tree fndecl)
{ {
if (DECL_INITIAL (fndecl) != error_mark_node && DECL_INITIAL (fndecl)) if (DECL_INITIAL (fndecl) && DECL_INITIAL (fndecl) != error_mark_node)
c_expand_body_1 (fndecl, 0); c_expand_body_1 (fndecl, 0);
} }
......
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