This is the mail archive of the gcc-bugs@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]

V850 cross compiler produces erronous assembler code


Hello,

I tried to build a (NEC) V850-elf cross compiler on cygnus gcc 2.95.3-5
(cygwin special)
from the gcc-3.0 source code. When building newlib-1.9.0 i get an error
compiling
assert.c


Using the preprocessed code it looks like this

$ /tools/H-i686-pc-cygwin/v850-elf/bin/gcc.exe -g -c assert.i
/cygdrive/c/TEMP/ccuxWgEi.s: Assembler messages:
/cygdrive/c/TEMP/ccuxWgEi.s:140: Error: undefined symbol _ in operation
/cygdrive/c/TEMP/ccuxWgEi.s:140: Error: undefined symbol _impure_ptr in
operation


this is the generated assembler code line

.LM2:
        ld.w sdaoff(_&_impure_ptr)[gp],r10
        .stabn 68,0,56,.LM3-___assert

the preprocessed code and the assembler code are attached.

Is there a workaround possible?

Thank you for your help

Yours sincerely
Knopp

 <<assert.i>>  <<assert.s>> 

assert.i

assert.s


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