[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2022-01-26 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 Martin Sebor changed: What|Removed |Added Assignee|msebor at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2021-05-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid Target|hurd fre

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread fabian-gcc at kloetzl dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 --- Comment #5 from kloetzl --- Sorry for missing out the details, here goes: I work in a Debian Hurd 20290705 image using qemu. The example file is given above. Compiling with `gcc -Wall -Wextra ifunc.c` produces the following error. error: i

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #4

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread fabian-gcc at kloetzl dot info
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 --- Comment #3 from kloetzl --- Hm, I feared that this would be the answer I would get. This makes GCCs __has_attribute much less useful than Clangs version where the docs state: “This function-like macro takes a single identifier argument that

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 --- Comment #2 from Andrew Pinski --- I think the docs are clear here too: The special operator __has_attribute (operand) may be used in ‘#if’ and ‘#elif’ expressions to test whether the attribute referenced by its operand is recognized by GCC.

[Bug preprocessor/93419] __has_attribute(ifunc) false positive on hurd and kfreebsd

2020-01-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93419 --- Comment #1 from Andrew Pinski --- __has_attribute(ifunc) is true as the attribute is supported all the way through the compiler up to the point where it gets emitted. Really __has_attribute is a bad execuse for not doing proper feature testi