Commit 3d63de24 by Alan Modra Committed by Alan Modra

re PR other/12315 (ICE using -p with functions returning structs)

	PR 12315
	* final.c (profile_function): Allow for NULL svrtx.

From-SVN: r73165
parent f8ef3ed1
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
}
......
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