diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2003-12-22 19:06:24 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2003-12-22 11:06:24 -0800 |
commit | 67b288631bdb10c1f7901cbff09654bd3cc17434 (patch) | |
tree | d7dda43ade31a28b40bf0fa9772f815d207f3f7c /gcc | |
parent | 499b568fe12465d6d18be42bccfa3adc6fd14d9f (diff) | |
download | gcc-67b288631bdb10c1f7901cbff09654bd3cc17434.zip gcc-67b288631bdb10c1f7901cbff09654bd3cc17434.tar.gz gcc-67b288631bdb10c1f7901cbff09654bd3cc17434.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-decl.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0f92a3..a24bbad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,10 @@ +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> + * config/rs6000/rs6000.c (legitimate_offset_address_p): Correct check for the legitimate offset when memory of DImode/DFmode/TFmode/TImode mode is being referenced and target diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 65e7176..db04a87 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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; /* 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; if (MAIN_NAME_P (DECL_NAME (fndecl)) && flag_hosted) @@ -6226,7 +6226,7 @@ void 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); } |