diff options
author | John Wehle <john@feith.com> | 2001-10-10 04:43:56 +0000 |
---|---|---|
committer | John Wehle <wehle@gcc.gnu.org> | 2001-10-10 04:43:56 +0000 |
commit | b999aaebe7bf967d66b6c3cdd5755c4ae7ef0ea2 (patch) | |
tree | 73ff8ef02f980b47a16558f910cb4079ed7b3b6e | |
parent | 09eaf5a5ffff7716755bc0009866f9706aa2bd50 (diff) | |
download | gcc-b999aaebe7bf967d66b6c3cdd5755c4ae7ef0ea2.zip gcc-b999aaebe7bf967d66b6c3cdd5755c4ae7ef0ea2.tar.gz gcc-b999aaebe7bf967d66b6c3cdd5755c4ae7ef0ea2.tar.bz2 |
rs6000.c (rs6000_emit_load_toc_table): Don't strdup the toc label.
* rs6000.c (rs6000_emit_load_toc_table): Don't
strdup the toc label.
(create_TOC_reference): Likewise.
From-SVN: r46141
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f0465c..aea1bde 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 10 00:41:29 EDT 2001 John Wehle (john@feith.com) + + * rs6000.c (rs6000_emit_load_toc_table): Don't + strdup the toc label. + (create_TOC_reference): Likewise. + 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz> * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9025619..d05a16f 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -5795,7 +5795,7 @@ rs6000_emit_load_toc_table (fromprolog) rtx tocsym; static int reload_toc_labelno = 0; - tocsym = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (toc_label_name)); + tocsym = gen_rtx_SYMBOL_REF (Pmode, toc_label_name); ASM_GENERATE_INTERNAL_LABEL (buf, "LCG", reload_toc_labelno++); symF = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (buf)); @@ -5872,7 +5872,7 @@ create_TOC_reference(symbol) gen_rtx_REG (Pmode, TOC_REGISTER), gen_rtx_CONST (Pmode, gen_rtx_MINUS (Pmode, symbol, - gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (toc_label_name))))); + gen_rtx_SYMBOL_REF (Pmode, toc_label_name)))); } #if TARGET_AIX |