[Bug c/82323] circular ifunc attribute on a function definition silently accepted

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 19 14:19:00 GMT 2018


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
I've noticed that C++ FE can handle the problem #1:

./xg++ -B. ~/Programming/testcases/pr82323.c
/home/marxin/Programming/testcases/pr82323.c:2:1: error: ‘int foo()’ defined
both normally and as ‘ifunc’ attribute
 foo (void) { return 0; }
 ^~~

I tried to look at the and I'm leaving this PR to somebody more skilled with
FE.


More information about the Gcc-bugs mailing list