From: Jeff Law Date: Thu, 16 Dec 1993 21:14:18 +0000 (-0700) Subject: pa.c (output_function_prologue): Reverse last change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba0bfdacea4838d2b8d9c2f66d399837533de99d;p=gcc.git pa.c (output_function_prologue): Reverse last change. * 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 --- diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 7fafda7ae2f..d31794efc11 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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. */ diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 4d7b0873f25..00a704a35d3 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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.