public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
@ 2008-02-24 3:03 aparna dot upadhya at gmail dot com
2008-02-24 4:15 ` [Bug preprocessor/35340] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: aparna dot upadhya at gmail dot com @ 2008-02-24 3:03 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
@ 2008-02-24 4:15 ` pinskia at gcc dot gnu dot org
2008-02-24 11:01 ` aparna dot upadhya at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-02-24 4:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-24 04:15 -------
I don't think this is a bug. How are you invoking GCC?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|blocker |normal
Component|inline-asm |preprocessor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
2008-02-24 4:15 ` [Bug preprocessor/35340] " pinskia at gcc dot gnu dot org
@ 2008-02-24 11:01 ` aparna dot upadhya at gmail dot com
2008-02-24 11:15 ` schwab at suse dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: aparna dot upadhya at gmail dot com @ 2008-02-24 11:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from aparna dot upadhya at gmail dot com 2008-02-24 11:00 -------
(In reply to comment #1)
> I don't think this is a bug. How are you invoking GCC?
Hi ,
Thanks for the reply. Pls find attached make output
gcc.c3.4.5-p1.ppc -mcpu=860 -ansi -nostdinc -O2 -fno-builtin -I../h -I.
-I/vob/t10/target/config/all -I/vob/t10/target/h -I/vob/t10/target/src/config
-I/vob/t10/target/src/drv -DCPU=PPC860 -g -x assembler-with-cpp -c -o
romInit.o ../romInit.s
*** Error code 1
../romInit.s:397: Error: too many positional arguments
../romInit.s:414: Error: too many positional arguments
../romInit.s:414: Error: too many positional arguments
../romInit.s:418: Error: too many positional arguments
This error comes only when compiling ".s" files
thanks
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
2008-02-24 4:15 ` [Bug preprocessor/35340] " pinskia at gcc dot gnu dot org
2008-02-24 11:01 ` aparna dot upadhya at gmail dot com
@ 2008-02-24 11:15 ` schwab at suse dot de
2008-02-24 11:57 ` aparna dot upadhya at gmail dot com
2008-02-24 14:04 ` aparna dot upadhya at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: schwab at suse dot de @ 2008-02-24 11:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from schwab at suse dot de 2008-02-24 11:14 -------
The error is emitted by the assembler, this has nothing to do with the
preprocessor.
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
` (2 preceding siblings ...)
2008-02-24 11:15 ` schwab at suse dot de
@ 2008-02-24 11:57 ` aparna dot upadhya at gmail dot com
2008-02-24 14:04 ` aparna dot upadhya at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: aparna dot upadhya at gmail dot com @ 2008-02-24 11:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from aparna dot upadhya at gmail dot com 2008-02-24 11:56 -------
(In reply to comment #3)
> The error is emitted by the assembler, this has nothing to do with the
> preprocessor.
yes, but this error is not displayed by 2.95.3 GAS. I am trying to migrate from
2.95.3 to 3.4.5. Is there anything I am missing when configuring GCC ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug preprocessor/35340] Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
` (3 preceding siblings ...)
2008-02-24 11:57 ` aparna dot upadhya at gmail dot com
@ 2008-02-24 14:04 ` aparna dot upadhya at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: aparna dot upadhya at gmail dot com @ 2008-02-24 14:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from aparna dot upadhya at gmail dot com 2008-02-24 14:03 -------
(In reply to comment #3)
> The error is emitted by the assembler, this has nothing to do with the
> preprocessor.
Hi,
This is the dupplicate of the bug "Bugzilla Bug 1070 " which is still in Open
state. Sorry to open under a wrong component
thanks
aparna
--
aparna dot upadhya at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aparna dot upadhya at gmail
| |dot com, nickc at redhat dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35340
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-02-24 14:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-24 3:03 [Bug inline-asm/35340] New: Space around the operator of a macro definition gives "too many positional arguments" when compiling an .S file aparna dot upadhya at gmail dot com
2008-02-24 4:15 ` [Bug preprocessor/35340] " pinskia at gcc dot gnu dot org
2008-02-24 11:01 ` aparna dot upadhya at gmail dot com
2008-02-24 11:15 ` schwab at suse dot de
2008-02-24 11:57 ` aparna dot upadhya at gmail dot com
2008-02-24 14:04 ` aparna dot upadhya at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).