diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2004-01-05 09:37:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2004-01-05 09:37:02 +0000 |
commit | f614987783f01c11da3c9ea09311404a18f4a6c6 (patch) | |
tree | 078985001ae1284e55bddf83530b7699db67b35e /gcc/coverage.c | |
parent | 816bc01fa3902979e7cfa1b776e939d0d78a6fe7 (diff) | |
download | gcc-f614987783f01c11da3c9ea09311404a18f4a6c6.zip gcc-f614987783f01c11da3c9ea09311404a18f4a6c6.tar.gz gcc-f614987783f01c11da3c9ea09311404a18f4a6c6.tar.bz2 |
re PR c++/12945 (MIPS g++.old-deja/g++.abi/ptrflags.C fails.)
PR target/12945
* coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
for counter labels.
* config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
(mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
(mips_symbol_insns): Don't trust the local/global classification.
(m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
(override_options): Make -mabicalls -fno-unit-at-a-time imply
-mno-explicit-relocs.
(mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
between local and global symbols.
From-SVN: r75422
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index 8b43d6a..05e1814 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -374,6 +374,7 @@ coverage_counter_alloc (unsigned counter, unsigned num) ASM_GENERATE_INTERNAL_LABEL (buf, "LPBX", counter + 1); ctr_labels[counter] = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (buf)); + SYMBOL_REF_FLAGS (ctr_labels[counter]) = SYMBOL_FLAG_LOCAL; } fn_b_ctrs[counter] = fn_n_ctrs[counter]; fn_n_ctrs[counter] += num; |