This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problems with labels


Hi,

I'm trying to adjust an already existing target port of gcc-2.95.2 to gcc-4.1.0 and I came to a point where I could use some help. Everything seams fine until xgcc tries to compile libgcc2.c, then I get the following error messages:

libgcc2.s: Assembler messages:
libgcc2.s:52: Error: unknown pseudo-op: `.lm_0'
libgcc2.s:61: Error: unknown pseudo-op: `.lm_1'
libgcc2.s:83: Error: unknown pseudo-op: `.lm_2'
libgcc2.s:89: Error: unknown pseudo-op: `.lm_3'
libgcc2.s:95: Error: unknown pseudo-op: `.lm_4'
libgcc2.s:98: Error: unknown pseudo-op: `.lm_5'
libgcc2.s:103: Error: unknown pseudo-op: `.lm_6'
libgcc2.s:115: Error: unknown pseudo-op: `.lm_7'
libgcc2.s:121: Error: unknown pseudo-op: `.lm_8'
libgcc2.s:127: Error: unknown pseudo-op: `.lm_9'
libgcc2.s:133: Error: unknown pseudo-op: `.lm_10'
libgcc2.s:139: Error: unknown pseudo-op: `.lm_11'

I have looked into the assembler file, and found out that those are actually labels which are missing ":" at the end and that the labels are redundant. Here is the part of the file:

.global ___muldi3
   ___muldi3:
        .stabd 46,0,0
             .stabd  68,0,511
.LM_0
.LM_0:

        #BEGIN PROLOGUE
        frame L14, L4
        #END PROLOGUE
.LBB_2:
.LBB_3:
             .stabd  68,0,514
.LM_1
.LM_1:
       mov L8 , L1
       mov L7 , L3
       shri L8 , 16

I have found out that the correct labels are written out by the hook TARGET_ASM_INTERNAL_LABEL and the faulty ones are the result of the output from the macro ASM_GENERATE_INTERNAL_LABEL, but I cannot figure out why the latter ones gets written out at all.

Best regards

Andrija


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]