This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81854] weak alias of an incompatible symbol accepted
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Sep 2017 10:15:50 +0000
- Subject: [Bug c/81854] weak alias of an incompatible symbol accepted
- Auto-submitted: auto-generated
- References: <bug-81854-4@http.gcc.gnu.org/bugzilla/>
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)
^~~~~~~~~~