diff options
author | David Edelsohn <dje@gcc.gnu.org> | 2008-10-15 08:23:55 -0400 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2008-10-15 08:23:55 -0400 |
commit | ee06c6a59e447dd8eef90cd4caac05402cf32df4 (patch) | |
tree | 1b2c780421da8cfa5c7c460e21fa7cc634af1f3b /gcc/xcoffout.h | |
parent | 307233c206c8853cb277f7e62b14c99fb695b6be (diff) | |
download | gcc-ee06c6a59e447dd8eef90cd4caac05402cf32df4.zip gcc-ee06c6a59e447dd8eef90cd4caac05402cf32df4.tar.gz gcc-ee06c6a59e447dd8eef90cd4caac05402cf32df4.tar.bz2 |
re PR c++/35483 (GCC on AIX doesn't support dollar in symbols name.)
PR target/35483
Based on patches by Laurent Vivier.
* xcoffout.h (DBX_FINISH_STABS): Translate dollar sign to underscore.
* config/rs6000/rs6000-protos.h (rs6000_xcoff_strip_dollar): Declare.
* config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Translate
dollar sign to underscore.
(ASM_OUTPUT_EXTERNAL): Same.
(ASM_OUTPUT_LABELREF): New.
* config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): New.
* config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Define.
* config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Define.
* config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Define.
* config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Define.
From-SVN: r141134
Diffstat (limited to 'gcc/xcoffout.h')
-rw-r--r-- | gcc/xcoffout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h index be6d2a2..2143192 100644 --- a/gcc/xcoffout.h +++ b/gcc/xcoffout.h @@ -84,7 +84,7 @@ along with GCC; see the file COPYING3. If not see fputs (_p+1, asm_out_file); \ else \ for (; *_p != '[' && *_p; _p++) \ - putc (*_p, asm_out_file); \ + putc (*_p != '$' ? *_p : '_', asm_out_file); \ } \ else \ output_addr_const (asm_out_file, ADDR); \ |