Hi, I am trying to compile bootrom on power PC (8360) for vxWorks (version 5.4). When compiling romInit.S I am getting following errors
./romInit.s:437: Error: too many positional arguments ../romInit.s:453: Error: too many positional arguments ../romInit.s:453: Error: too many positional arguments ../romInit.s:457: Error: too many positional arguments ../romInit.s:457: Error: too many positional arguments ../romInit.s:481: Error: too many positional arguments ../romInit.s:481: Error: too many positional arguments ../romInit.s:485: Error: too many positional arguments ../romInit.s:485: Error: too many positional arguments ../romInit.s:500: Error: too many positional arguments ../romInit.s:500: Error: too many positional arguments The reason is it is not taking space around the operator in a macro definition ex: li r3, A where as A is defined as #define A (a + b) looks like we need to remove spaces around operator #define A (a+b) I can write a script to remove this. But this will reduce visibility Is there any fix for this problem in later versions? thanks aparna -- Summary: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file Product: gcc Version: 3.4.5 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: inline-asm AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aparna dot upadhya at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340