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]

Problem in ARM Branch Syntax



Hi all,


I have a ADS macro defined in a file something like this:
==================================
MACRO Q_ADD $reg1,$reg2,$reg3
ADDS $reg1, $reg2, $reg3
BVC {pc} + 0x0C =======================>> Problemetic Line
MVNGT $reg1, #0x80000000
MOVLT $reg1, #0x80000000
MEND
===================================


When I try to port the code onto gcc, it gives a linking error as "undefined reference to pc"
I tried many alternatives but was not successful.


Can anyone tell me how this be changed to suit gcc??

TIA
Regds
Ketan



"Destiny is not a matter of chance, it is a matter of choice; it is not a thing to be waited for, it is a thing to be achieved."
----William Jennings Bryan



------ 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]