2 msgAMD dual core opetron optimization
4 msgGCC 4.2.0 RC2 Building
1 msgFW: Trying To Reach You Monday

[doc,patch] Fortran compiler on Ultrix and clob...
\ FX Coudert (29 Apr 2007)
. \ John David Anglin (29 Apr 2007)

3 msghow to start using gcc on windows
5 msgA problem with the loop structure
1 msgdebugging quality and gcc
1 msgGCC 4.2.0: Still planning on RC1, etc.
1 msggcc-4.3-20070427 is now available
1 msgGomp in mainline is broken
3 msgmismatch in parameter of builtin_ffs?
7 msgRe: Performance analysis of Polyhedron/gas_dyn
2 msgHow to handle g++.dg/warn/multiple-overflow-war...
1 msgIntel IEEE 754r Decimal Floating-Point BID Libr...
1 msgC++ front end: NON_DEPENDENT_EXPR and lvalue_p_1
1 msg[LWOW] INWESTYCYJNE INTERESY W UKRAINIE : 12-13...
6 msg[ARM optimization back-end] Strange bug in MySQL
2 msgBug 29609
1 msgFwd: Enums and gcc's long long
21 msgSuccessfull Build of gcc on Cygwin WinXp SP2
Subject:[doc,patch] Fortran compiler on Ultrix and clobbered registers
Group:Gcc
From:FX Coudert
Date:29 Apr 2007


I noted in the GCC docs (see for example http://gcc.gnu.org/
onlinedocs/gcc/Interoperation.html) that we have the following text
in the section "Known Causes of Trouble with GCC":

> On Ultrix, the Fortran compiler expects registers 2 through 5 to be
> saved by function calls. However, the C compiler uses conventions
> compatible with BSD Unix: registers 2 through 5 may be clobbered by
> function calls.
>
> GCC uses the same convention as the Ultrix C compiler. You can use
> these options to produce code compatible with the Fortran compiler:
> -fcall-saved-r2 -fcall-saved-r3 -fcall-saved-r4 -fcall-
> saved-r5

That code was initially committed to gcc/gcc.texi in 1997 (it's now
in gcc/doc/gcc.texi). As there have been a few changes on the
compiler since that time, I wonder if it's still true, and still
useful to have that comment there. As there is no ultrix maintainer
(though it's still listed as a supported platform), I'm CCing the VAX
maintainers: can you comment on the usefulness of this part of the doc?

So, unless someone can raise a reason against it, I'd like to propose
the patch below to remove it. Built and tested on i686-linux (make
info && make html). OK for mainline?

FX





Index: gcc/doc/trouble.texi
===================================================================
--- gcc/doc/trouble.texi (revision 124144)
+++ gcc/doc/trouble.texi (working copy)
@@ -234,20 +234,6 @@ you cannot successfully use @samp{$} in
to a restriction in the IBM assembler. GAS supports these
identifiers.
-@cindex VAX calling convention
-@cindex Ultrix calling convention
-@item
-@opindex fcall-saved
-On Ultrix, the Fortran compiler expects registers 2 through 5 to be
saved
-by function calls. However, the C compiler uses conventions compatible
-with BSD Unix: registers 2 through 5 may be clobbered by function
calls.
-
-GCC uses the same convention as the Ultrix C compiler. You can use
-these options to produce code compatible with the Fortran compiler:
-
-@smallexample
--fcall-saved-r2 -fcall-saved-r3 -fcall-saved-r4 -fcall-saved-r5
-@end smallexample
@end itemize
@node Incompatibilities


© 2004-2008 readlist.com