diff options
author | Jeff Law <law@gcc.gnu.org> | 1993-12-16 14:14:18 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1993-12-16 14:14:18 -0700 |
commit | ba0bfdacea4838d2b8d9c2f66d399837533de99d (patch) | |
tree | 9aa8818e0c8168a9d9b2a878ff8d359d92718abf | |
parent | 9deb7b7ca4e052241f9c16bbef28b8da337ef691 (diff) | |
download | gcc-ba0bfdacea4838d2b8d9c2f66d399837533de99d.zip gcc-ba0bfdacea4838d2b8d9c2f66d399837533de99d.tar.gz gcc-ba0bfdacea4838d2b8d9c2f66d399837533de99d.tar.bz2 |
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
-rw-r--r-- | gcc/config/pa/pa.c | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 7fafda7..d31794e 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 4d7b087..00a704a 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. |