This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: powerpc assembly problem


Eric Olsen wrote:
I'm using binutils 2.15, gcc 3.3.4. When assembling the following, ...

    /* Relocate galileo's regs */
    lwi    r25,(GT64260_INTERNAL_SPACE_DEFAULT_ADDR+GT64260_INTERNAL_SPACE_DECODE)


Using -E, I see that this this preprocess to:


       # Load immediate word, has to be done with 2 instructions
       .macro lwi reg,val
       lis \reg,\val@H
       ori \reg,\reg,\val@L
       .endm

       .globl pumadn1_init
pumadn1_init:
       li 20,0
       li 23,20


lwi 25,(0x80000000 +0x0068)


When I change  lwi 25,(0x80000000 +0x0068) to lwi 25,(0x80000000+0x0068)
(that is, I remove the space before the + sign), it assembles.

Maybe the cpp should not add the space, and as should be okay with it.

You might want to ask on the binutils or gcc mailing lists if you don't get an answer here... - Dan

--
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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