This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Trunk: undefined reference to `__builtin_cos'
- To: gcc at gcc dot gnu dot org
- Subject: Trunk: undefined reference to `__builtin_cos'
- From: toon at moene dot indiv dot nluug dot nl
- Date: 17 Mar 2001
Mark Mitchell wrote:
> This patch fixes a latent bug uncovered by my recent changes to
> DECL_RTL, and spotted by Loren. The C++ front-end, unlike the C
> front-end, was trying to emit debugging information for __FUNCTION__,
> which doesn't work well.
Ah, yes - but it doesn't fix the bug I originally posted under this
subject:
toon@super:~/g77-bugs$ cat aaa.f
print*,cos(1.0)
end
toon@super:~/g77-bugs$ /usr/snp/bin/g77 aaa.f
/tmp/ccWvdBI4.o: In function `MAIN__':
/tmp/ccWvdBI4.o(.text+0x34): undefined reference to `__builtin_cos'
/tmp/ccWvdBI4.o(.text+0x38): undefined reference to `__builtin_cos'
collect2: ld returned 1 exit status
[ This time, it's on the trunk ]
Mark, you updated the Fortran Frontend in your lazy DECL_RTL patch - are
you sure it is correct ?
TIA,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)