pa.c (output_function_prologue): Reverse last change.
authorJeff Law <law@gcc.gnu.org>
Thu, 16 Dec 1993 21:14:18 +0000 (14:14 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Dec 1993 21:14:18 +0000 (14:14 -0700)
        * pa.c (output_function_prologue): Reverse last change.  Output
        both the function label and the .PROC here.
        * pa.h (ASM_DECLARE_FUNCTION_NAME): Do not output the function
        label or the .PROC here.

From-SVN: r6246

gcc/config/pa/pa.c
gcc/config/pa/pa.h

index 7fafda7ae2f53b13062a2d2cfb6f8259d1a10b71..d31794efc11a3dffb6bc5478ce799a572c521d38 100644 (file)
@@ -1988,6 +1988,12 @@ output_function_prologue (file, size)
      FILE *file;
      int size;
 {
+  /* The function's label and associated .PROC must never be
+     separated and must be output *after* any profiling declarations
+     to avoid changing spaces/subspaces within a procedure.  */
+  ASM_OUTPUT_LABEL (file, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));
+  fputs ("\t.PROC\n", file);
+
   /* hppa_expand_prologue does the dirty work now.  We just need
      to output the assembler directives which denote the start
      of a function.  */
index 4d7b0873f251af7604bf2cf7a53a9a7f61f772a0..00a704a35d3e2cf6dc494615603bbd72763526eb 100644 (file)
@@ -931,9 +931,7 @@ extern enum cmp_type hppa_branch_type;
             else if (fntype != void_type_node)                         \
               fprintf (FILE, ",RTNVAL=GR");                            \
             fputs ("\n", FILE);                                        \
-          }                                                            \
-        ASM_OUTPUT_LABEL (FILE, NAME);                                 \
-        fputs ("\t.PROC\n", FILE);} while (0)
+          }} while (0)
 
 /* This macro generates the assembly code for function entry.
    FILE is a stdio stream to output the code to.