This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

PATCH: Fix ada/a-numaux-x86.adb syntax error


Trying to bootstrap current mainline on Solaris 10/x86 with the native
tools (i.e. Sun as, ld) failed to compile a-numaux-x86.adb:

$ ../../xgcc -B../../ -c -g -O2 -fPIC      -W -Wall -gnatpg  a-numaux.adb -o a-numaux.o
Assembler: a-numaux.o
        "/var/tmp//ccVl3Oj1.s", line 1427 : Syntax error

This line is

	fdivp   %st(1)

while elsewhere we have

	fdivp	%st, %st(1)

The following patch fixes this and allows the bootstrap to complete (with a
problem compiling g-catiio.adb described in PR ada/18301).  Testsuite
results are at

	http://gcc.gnu.org/ml/gcc-testresults/2004-11/msg00201.html

Ok for mainline?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


2004-10-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* a-numaux-x86.adb (Tan): Fix fdivp syntax.

Index: a-numaux-x86.adb
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/a-numaux-x86.adb,v
retrieving revision 1.3
diff -u -p -r1.3 a-numaux-x86.adb
--- a-numaux-x86.adb	6 Jul 2004 13:57:30 -0000	1.3
+++ a-numaux-x86.adb	4 Nov 2004 19:13:32 -0000
@@ -500,7 +500,7 @@ package body Ada.Numerics.Aux is
                   Inputs   => Double'Asm_Input  ("0", Reduced_X));
          else
             Asm (Template  => "fsincos" & NL
-                            & "fdivp   %%st(1)" & NL
+                            & "fdivp   %%st, %%st(1)" & NL
                             & "fchs",
                   Outputs  => Double'Asm_Output ("=t", Result),
                   Inputs   => Double'Asm_Input  ("0", Reduced_X));


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