This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc with -O2 -mpa-risc-2-0
- To: gcc-help at gcc dot gnu dot org
- Subject: gcc with -O2 -mpa-risc-2-0
- From: Eric Legrand <eric dot legrand at airsys dot thomson-csf dot com>
- Date: Wed, 28 Mar 2001 15:55:58 +0200
- Organization: Thales
Hello,
I use gcc 2.95.2 with gas as it is recommended
in INSTALL file. My gas version is 2.10.
When I compile the source joined hereafter with
"-c -O2 -mpa-risc-2-0" options, it
failed with the error message:
/var/tmp/ccY1tBtT.s: Assembler messages:
/var/tmp/ccY1tBtT.s:36: Error: Invalid operands
If I add ".LEVEL 2.0" in the generated assembly file
and assemble it manually it works (I wonder why gcc
remove .LEVEL directive when assembler is gas...).
Does anybody know if it works with later versions?
Best regards from France.
float f(float x)
{
float a=3, b=1;
return a*x + b;
}
begin:vcard
n:Legrand;Eric
tel;fax:+33 1 40 84 18 59
tel;work:+33 1 40 84 49 16
x-mozilla-html:FALSE
org:Thales Air Operations;BGAD/TAO/PC/CEPR
adr:;;7/9 rue des Mathurins;BAGNEUX CEDEX;;92221;FRANCE
version:2.1
email;internet:eric.legrand@airsys.thomson-csf.com
x-mozilla-cpt:;-7088
fn:Eric Legrand
end:vcard