> On 2012-06-06, at 10:11 PM, t-rexky wrote:
>
>> Compiling with the stage 2 xgcc -Wall or -Wunused generates an endless list of warnings of the following type:
>>
>> <built-in>:0: warning: '__builtin_acos' declared 'static' but never defined
>> <built-in>:0: warning: 'acos' declared 'static' but never defined
>>
>> t-rexky
>>
On 07/06/12 04:22, t-rexky wrote:
> Hello again,
>
> I completed the bootstrap process ignoring the stage 2 compiler warning. The stage 3 compiler generates the same warnings,
> but it does create good executable code. I am currently running a make check-gcc that will take many hours on a 68040.
>
> I am completely baffled by what could make gcc generate the warnings below for all declared functions, including the built-ins.
> I would be very grateful for any suggestions or ideas.
>
> Thank you!
Have you tried building a program which uses acos or __builtin_acos?
Eg.
#include <math.h>
#include <stdio.h>
int main() {
printf("%lf\n", acos(0.5));
return 0;
}
#include <math.h>
#include <stdio.h>
int main() {
printf("%lf\n", __builtin_acos(0.5));
return 0;
}
(the first one may need to link with -lm, but not the second)
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]