This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/81854] weak alias of an incompatible symbol accepted


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81854

--- Comment #11 from Uroš Bizjak <ubizjak at gmail dot com> ---
gcc.target/i386/pr80732.c fails with:

pr80732.c:46:8: warning: ‘f2’ ‘ifunc’ resolver should return a function pointer
[-Wattributes]
 double f2(double a, double b, double c) __attribute__((ifunc("f2_resolve")));
        ^~
pr80732.c:37:14: note: resolver declaration here
 static void *f2_resolve(void)
              ^~~~~~~~~~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]