public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Using glibc headers with non-GCC compilers which define _Float32 etc.
@ 2023-04-03  8:07 Florian Weimer
  2023-04-03  8:43 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Weimer @ 2023-04-03  8:07 UTC (permalink / raw)
  To: libc-alpha

We have a downstream bug that points out that if __GNUC__ is not
defined, glibc assumes that it's necessary to define _Float32 as a
typedef to float:

  glibc: _FloatN and _FloatNx problem if _GNUC__ is not defined
  <https://bugzilla.redhat.com/show_bug.cgi?id=2183212>

That does not work if the compiler already defines _Float32.

What should we do about this?  The suggestion to provide the definition
for __STDC_WANT_IEC_60559_TYPES_EXT__ requires additional glibc header
file changes, I think.  Other headers assume that _Float32 is available,
one way or another, and if __STDC_WANT_IEC_60559_TYPES_EXT__ is defined
and the compiler does not _Float32 (say Clang, or old GCC), then those
headers will break.

Thanks,
Florian


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-03  9:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03  8:07 Using glibc headers with non-GCC compilers which define _Float32 etc Florian Weimer
2023-04-03  8:43 ` Andreas Schwab
2023-04-03  9:03   ` Florian Weimer
2023-04-03  9:10     ` Andreas Schwab
2023-04-03  9:54       ` Florian Weimer

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).