From 007544681e4ff0e113e104e63fc499fdba0004c0 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 13 Sep 2005 23:29:31 +0000 Subject: [PATCH] linux64.h (DBX_OUTPUT_BRAC): Treat function name passed as NAME as if it were label at start of function code. * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name passed as NAME as if it were label at start of function code. From-SVN: r104245 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/linux64.h | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90007c4d4bf0..79973924aee1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-09-14 Alan Modra + + * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name + passed as NAME as if it were label at start of function code. + 2005-09-13 Kaz Kojima * config/sh/sh.md (*movv4sf_i): Add general register cases to diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h index 31bf8ac86ed3..1c4dc1f312ab 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -494,10 +494,19 @@ while (0) { \ const char *s; \ dbxout_begin_stabn (BRAC); \ - assemble_name (FILE, NAME); \ - putc ('-', FILE); \ s = XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0); \ - rs6000_output_function_entry (FILE, s); \ + /* dbxout_block passes this macro the function name as NAME, \ + assuming that it is the function code start label. In our \ + case, the function name is the OPD entry. dbxout_block is \ + broken, hack around it here. */ \ + if (NAME == s) \ + putc ('0', FILE); \ + else \ + { \ + assemble_name (FILE, NAME); \ + putc ('-', FILE); \ + rs6000_output_function_entry (FILE, s); \ + } \ putc ('\n', FILE); \ } \ while (0) -- 2.47.2