Hello,
I found an error in g77 documentation.
Sorry for wrting to this mail address, but I did not find anywhere in
the bug reporting documentation how to report a bug on
the...documentation itself
In particular, here:
http://gcc.gnu.org/onlinedocs/gcc-3.2.3/g77/Floating-point-Exception-Handling.html#Floating-point%20Exception%20Handling
where it states:
"...
gcc -o libtrapfpe.a trapfpe.c
and then use it by adding -trapfpe to the g77 command line when linking
..."
Whe I try it I get
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
/tmp/ccC12cnM.o(.text+0xc): In function `trapfpe':
: undefined reference to `feenableexcept'
collect2: ld returned 1 exit status
This is due to the fact that gcc does not produce an archive on the fly.
One should do:
gcc -c trapfpe.c
ar rv libtrapfpe.a trapfpe.o
Also linking is quoted incorrectly in the documentation.
It should at least be
"...-ltrapfpe..."
^
If there's a way I can contribute directly to the docs, please let me
know. I'd gladly do it, just to give my 2 cents worth to the great GNU
project.
many thanks and best regards
--
Matteo Boschini
GPG Key Fingerprint: 63E4 AD0B 6F24 2345 789E 17AA BE94 CC44 CA7D E81E
"Pardon our formality: we're computer scientists" (Lutz & Ascher)