On Wed, Feb 05, 2014 at 05:09:31PM +0100, Uros Bizjak wrote: > On Wed, Feb 5, 2014 at 4:50 PM, Rainer Orth <r...@cebitec.uni-bielefeld.de> > wrote: > > gcc.target/i386/avx512f-vrndscaless-2.c currently FAILs on Solaris 9/x86 > > with gas: > > > > FAIL: gcc.target/i386/avx512f-vrndscaless-2.c (test for excess errors) > > Excess errors: > > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/i386/avx512f-vrndscaless-2. > > c:21:14: warning: incompatible implicit declaration of built-in function > > 'floorf > > ' [enabled by default] > > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/i386/avx512f-vrndscaless-2. > > c:24:14: warning: incompatible implicit declaration of built-in function > > 'ceilf' > > [enabled by default] > > > > The platform lacks C99 support, but this can easily be avoided by using > > the builtins instead. The following patch does just that; tested > > with the appropriate runtest invocation on i386-pc-solaris2.9 and > > x86_64-unknown-linux-gnu. > > Let's solve this in the way sse4_1-floorf-vec.c solves it and simply add > > extern float floorf (float);
Won't that break if math.h defines floorf as a macro? You'd at least need then extern float (floorf) (float); Jakub