re PR other/12315 (ICE using -p with functions returning structs)
PR 12315 * final.c (profile_function): Allow for NULL svrtx. From-SVN: r73165
This commit is contained in:
parent
f8ef3ed189
commit
3d63de248f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-11-01 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR 12315
|
||||
* final.c (profile_function): Allow for NULL svrtx.
|
||||
|
||||
2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
* pa.c (pa_select_section): Use new style declaration.
|
||||
|
|
|
@ -1437,7 +1437,7 @@ profile_function (FILE *file ATTRIBUTE_UNUSED)
|
|||
function_section (current_function_decl);
|
||||
|
||||
#if defined(ASM_OUTPUT_REG_PUSH)
|
||||
if (sval && GET_CODE (svrtx) == REG)
|
||||
if (sval && svrtx != NULL_RTX && GET_CODE (svrtx) == REG)
|
||||
ASM_OUTPUT_REG_PUSH (file, REGNO (svrtx));
|
||||
#endif
|
||||
|
||||
|
@ -1468,7 +1468,7 @@ profile_function (FILE *file ATTRIBUTE_UNUSED)
|
|||
#endif
|
||||
|
||||
#if defined(ASM_OUTPUT_REG_PUSH)
|
||||
if (sval && GET_CODE (svrtx) == REG)
|
||||
if (sval && svrtx != NULL_RTX && GET_CODE (svrtx) == REG)
|
||||
ASM_OUTPUT_REG_POP (file, REGNO (svrtx));
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue