public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
@ 2015-04-19 15:40 redi at gcc dot gnu.org
2015-04-19 15:45 ` [Bug libstdc++/65806] " redi at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-04-19 15:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
Bug ID: 65806
Summary: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and
__STDC_CONSTANT_MACROS
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Host: *-*-netbsd5.1
Target: *-*-netbsd5.1
Build: *-*-netbsd5.1
Contrary to the requirements of the C++ standard, <stdint.h> on NetBSD 5.1 only
defines its helper macros conditionally:
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
#include <machine/int_limits.h>
#endif
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
#include <machine/int_const.h>
#endif
This causes lots of test failures like:
/home/jwakely/src/gcc/libstdc++-v3/include/ext/random.tcc:69:52: error:
'UINT32_C' was not declared in this scope
Maybe we should make <bits/c++config.h> define those macros for targets that
incorrectly think they are required.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/65806] NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
2015-04-19 15:40 [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS redi at gcc dot gnu.org
@ 2015-04-19 15:45 ` redi at gcc dot gnu.org
2015-06-22 10:17 ` redi at gcc dot gnu.org
2015-09-16 0:26 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-04-19 15:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's fixed in NetBSD 7:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/stdint.h?rev=1.7&content-type=text/x-cvsweb-markup&only_with_tag=MAIN
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/65806] NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
2015-04-19 15:40 [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS redi at gcc dot gnu.org
2015-04-19 15:45 ` [Bug libstdc++/65806] " redi at gcc dot gnu.org
@ 2015-06-22 10:17 ` redi at gcc dot gnu.org
2015-09-16 0:26 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-22 10:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Hmm, why doesn't GCC's own stdint.h solve this? It does:
# if defined __cplusplus && __cplusplus >= 201103L
# undef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS
# undef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
# endif
# include_next <stdint.h>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/65806] NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
2015-04-19 15:40 [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS redi at gcc dot gnu.org
2015-04-19 15:45 ` [Bug libstdc++/65806] " redi at gcc dot gnu.org
2015-06-22 10:17 ` redi at gcc dot gnu.org
@ 2015-09-16 0:26 ` redi at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-16 0:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-09-16
Ever confirmed|0 |1
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> Hmm, why doesn't GCC's own stdint.h solve this?
Because gcc/Makefile has:
# How to handle <stdint.h>.
USE_GCC_STDINT = none
which is because gcc/config.gcc never sets it. Easy to fix ...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-16 0:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-19 15:40 [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS redi at gcc dot gnu.org
2015-04-19 15:45 ` [Bug libstdc++/65806] " redi at gcc dot gnu.org
2015-06-22 10:17 ` redi at gcc dot gnu.org
2015-09-16 0:26 ` redi 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).