From: Alan Modra Date: Tue, 13 Sep 2005 23:29:31 +0000 (+0000) Subject: linux64.h (DBX_OUTPUT_BRAC): Treat function name passed as NAME as if it were label... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=007544681e4ff0e113e104e63fc499fdba0004c0;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90007c4d4bf..79973924aee 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 31bf8ac86ed..1c4dc1f312a 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)