public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/65281] New: Lots of macros using non-reserved names in gthr headers
@ 2015-03-02 18:11 redi at gcc dot gnu.org
2015-03-02 18:15 ` [Bug libgcc/65281] " redi at gcc dot gnu.org
2024-04-08 22:40 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-02 18:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65281
Bug ID: 65281
Summary: Lots of macros using non-reserved names in gthr
headers
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
See Bug 64885 comment 6 (referring to libgcc/gthr-single.h and others):
Note the UNUSED macro (whether function-like or not) certainly doesn't belong
to headers included from STL headers either.
It should have been __gthr_unused or something similar.
and Bug 64885 comment 7:
Ditto the header guards like
GCC_GTHR_POSIX_H
GCC_GTHR_SINGLE_H
GCC_GTHR_H
and macros like
GTHREAD_USE_WEAK
HIDE_EXPORTS
This breaks valid programs such as:
#define UNUSED 1
#include <mutex>
int main() { }
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/65281] Lots of macros using non-reserved names in gthr headers
2015-03-02 18:11 [Bug libgcc/65281] New: Lots of macros using non-reserved names in gthr headers redi at gcc dot gnu.org
@ 2015-03-02 18:15 ` redi at gcc dot gnu.org
2024-04-08 22:40 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-02 18:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65281
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-03-02
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/65281] Lots of macros using non-reserved names in gthr headers
2015-03-02 18:11 [Bug libgcc/65281] New: Lots of macros using non-reserved names in gthr headers redi at gcc dot gnu.org
2015-03-02 18:15 ` [Bug libgcc/65281] " redi at gcc dot gnu.org
@ 2024-04-08 22:40 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-08 22:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65281
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually HIDE_EXPORTS has been handled as _GLIBCXX_HIDE_EXPORTS for a long time
now.
And UNUSED has also been handled as _GLIBCXX_UNUSED too for a long time (since
2001).
This is all handled by the code in libstdc++/include/Makefile.in which does the
renaming there.
I don't see any references in libstdc++ usage where it places a macro in
non-implementation space.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-08 22:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 18:11 [Bug libgcc/65281] New: Lots of macros using non-reserved names in gthr headers redi at gcc dot gnu.org
2015-03-02 18:15 ` [Bug libgcc/65281] " redi at gcc dot gnu.org
2024-04-08 22:40 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).