OSDN Git Service

PR 12315
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 2003 00:48:50 +0000 (00:48 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 1 Nov 2003 00:48:50 +0000 (00:48 +0000)
* final.c (profile_function): Allow for NULL svrtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73165 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/final.c

index 90e6b6e..a4ca9c7 100644 (file)
@@ -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.
index 20ceff8..f8750e9 100644 (file)
@@ -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
 }