https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Martin Sebor changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #23 from Martin Sebor ---
Author: msebor
Date: Mon Oct 28 22:46:28 2019
New Revision: 277544
URL: https://gcc.gnu.org/viewcvs?rev=277544&root=gcc&view=rev
Log:
PR c/66970 - Add __has_builtin() macro
gcc/ChangeLog:
PR c/6697
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Martin Sebor changed:
What|Removed |Added
Keywords||patch
Target Milestone|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #21 from Jonathan Wakely ---
Clang is changing __has_builtin so it recognizes all function-like built-ins,
not just the ones starting with "__builtin_". See
https://reviews.llvm.org/D66100
This means __has_builtin yields true for al
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
frankhb1989 at gmail dot com changed:
What|Removed |Added
CC||frankhb1989 at gmail dot co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #19 from Allan Jensen ---
(In reply to felix from comment #18)
> So even if this feature is adopted as-is, it will necessitate some changes
> in the documentation. And while I can sympathise with claims that this
> behaviour is surpri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #18 from felix ---
Proper built-ins are ordinary identifiers subject to ordinary name resolution
and shadowing, so the 'keyword built-in' case is impossible. If you don't know
if (or don't want to depend on the fact that) a given buil
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #17 from Jonathan Wakely ---
(In reply to felix from comment #7)
> I made the feature closely mimic The Other Compiler's behaviour: only
> function built-ins are recognised. This includes generic functions like
> __builtin_add_overflo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #16 from Martin Sebor ---
No progress yet but I agree and I'm still planning to work on it for GCC 10.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #15 from Nick Desaulniers ---
Any progress Martin? Just to keep beating the dead horse...
Forgetting other compilers for a minute, __has_builtin allows for feature
detection which is much better than compiler version checks which ar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #14 from Eric Gallager ---
(In reply to Martin Sebor from comment #13)
> Let me look into this request for GCC 10.
It's GCC 10 now.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Martin Sebor changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #12 from Eric Gallager ---
(In reply to Jonathan Wakely from comment #11)
> (In reply to felix from comment #7)
> > I made the feature closely mimic The Other Compiler's behaviour: only
> > function built-ins are recognised. This incl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #11 from Jonathan Wakely ---
(In reply to felix from comment #7)
> I made the feature closely mimic The Other Compiler's behaviour: only
> function built-ins are recognised. This includes generic functions like
> __builtin_add_overflo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #10 from Eric Gallager ---
(In reply to H. Peter Anvin from comment #9)
> Can I please second this request? This would be extremely useful in the
> Linux kernel, *and* it would be extremely useful in any code that for
> whatever reaso
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
H. Peter Anvin changed:
What|Removed |Added
CC||hpa at zytor dot com
--- Comment #9 fro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
felix changed:
What|Removed |Added
CC||felix.von.s at posteo dot de
--- Comment #7 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Jason Merrill changed:
What|Removed |Added
Status|ASSIGNED|NEW
Assignee|jason at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Jason Merrill changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
kim.walisch at gmail dot com changed:
What|Removed |Added
CC||kim.walisch at gmail dot co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Allan Jensen changed:
What|Removed |Added
CC||linux at carewolf dot com
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Julian Taylor changed:
What|Removed |Added
CC||jtaylor.debian at googlemail
dot c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
--- Comment #4 from Jonathan Wakely ---
(In reply to Julian Taylor from comment #3)
> Similarly useful would be the related __has_attribute, those especially tend
> to cause a huge mess of version number checks.
That's already supported: https:/
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Andy Lutomirski changed:
What|Removed |Added
CC||luto at mit dot edu
--- Comment #2 fro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66970
Andrew Pinski changed:
What|Removed |Added
Component|preprocessor|c
--- Comment #1 from Andrew Pinski ---
26 matches
Mail list logo