Re: [AD] Problems with gcc 3.1 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Peter wrote:
> On 25 Oct 2001, salvador <salvador@xxxxxxxxxx> wrote:
> >
> > I don't know if this will solve gcc 3.1 case where the compiler
> > itself says the function is a *built-in* one. I didn't check it in
> > detail but the message implies that's a function the compiler knows
> > even when no header defines it. It looks like gcc treats it like
> > case, for, bool, etc.
>
> If you have gcc 3.1, can you test it please? I don't see why `fsqrt'
> needs to be "built-in", whatever that means (ok, some optimisations
> could probably be had).
It looks like gcc 3.1 really takes it as an internal thing:
<---------- test.c program
int fsqrt(int a)
{
return 1;
}
<----------
Command line: "gcc -c test.c"
Output from gcc:
test.c:2: warning: conflicting types for built-in function `fsqrt'
gcc -v
Reading specs from h:/dj/bin/../lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR
--enable-languages=c,c++,f77,objc --disable-nls
Thread model: single
gcc version 3.1 20010927 (experimental)
A grep in the directory where gcc stores their magic headers doesn't show
any explicit definition:
grep fsqrt h:/dj/lib/gcc-lib/djgpp/3.1/include
It doesn't apply to 3.0.1.
I tested "gcc -V 3.01 -c test.c" and worked.
I also tested it with 3.0.2 and doesn't affect. So that's a problem with the
3.1 branch, but I think it is based on some standard and we should avoid
future problems.
SET
P.S.
gcc 3.0.1 reports:
Reading specs from h:/dj/lib/gcc-lib/djgpp/3.01/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR
--enable-languages=c,c++,f77,objc --disable-nls
Thread model: single
gcc driver version 3.0.2 executing gcc version 3.0.1
And 3.0.2:
Reading specs from h:/dj/lib/gcc-lib/djgpp/3.02/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR
--enable-languages=c,c++,f77,objc --disable-nls
Thread model: single
gcc version 3.0.2
All compiled by Andris Pavenis.
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set@xxxxxxxxxx set@xxxxxxxxxx
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013