summaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-05 09:37:02 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-05 09:37:02 +0000
commit198a19fa69a4949aed8816eb70e1e2b8f9bc3d35 (patch)
tree078985001ae1284e55bddf83530b7699db67b35e /gcc/coverage.c
parentcaf3415ed5a31058325d60507f2e83e4d5057f42 (diff)
downloadgcc-198a19fa69a4949aed8816eb70e1e2b8f9bc3d35.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75422 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index 8b43d6af24e..05e18149c51 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;