re PR rtl-optimization/21956 (useless symbols in object files)

2005-06-29  Caroline Tice  <ctice@apple.com>

        Fix PR 21956
        * varasm.c (assemble_start_function):  Add "L" to beginning of
        local labels, so assembler & linker treat them as local.

From-SVN: r101432
This commit is contained in:
Caroline Tice 2005-06-29 17:47:31 +00:00 committed by Caroline Tice
parent 3af9ac15a9
commit affb0e06f4
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-06-29 Caroline Tice <ctice@apple.com>
Fix PR 21956
* varasm.c (assemble_start_function): Add "L" to beginning of
local labels, so assembler & linker treat them as local.
2005-06-29 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp

View File

@ -1234,13 +1234,13 @@ assemble_start_function (tree decl, const char *fnname)
first_function_block_is_cold = false;
if (flag_reorder_blocks_and_partition)
{
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "HOTB", const_labelno);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "LHOTB", const_labelno);
cfun->hot_section_label = ggc_strdup (tmp_label);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "COLDB", const_labelno);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "LCOLDB", const_labelno);
cfun->cold_section_label = ggc_strdup (tmp_label);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "HOTE", const_labelno);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "LHOTE", const_labelno);
cfun->hot_section_end_label = ggc_strdup (tmp_label);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "COLDE", const_labelno);
ASM_GENERATE_INTERNAL_LABEL (tmp_label, "LCOLDE", const_labelno);
cfun->cold_section_end_label = ggc_strdup (tmp_label);
const_labelno++;
}