public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/114742] New: invalid use of '__ieee128' in <ext/numeric_traits.h> and <format>
@ 2024-04-16 13:16 mkretz at gcc dot gnu.org
  2024-04-16 13:19 ` [Bug libstdc++/114742] " redi at gcc dot gnu.org
  2024-04-16 13:22 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mkretz at gcc dot gnu.org @ 2024-04-16 13:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114742

            Bug ID: 114742
           Summary: invalid use of '__ieee128' in <ext/numeric_traits.h>
                    and <format>
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mkretz at gcc dot gnu.org
  Target Milestone: ---

https://compiler-explorer.com/z/K3GYY7Msc

Testcase:

#include <bit>
#include <format>

Compile on power64le with -O2 -std=c++23 -mcpu=power6 and optionally with 
-mlong-double-64

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

* [Bug libstdc++/114742] invalid use of '__ieee128' in <ext/numeric_traits.h> and <format>
  2024-04-16 13:16 [Bug libstdc++/114742] New: invalid use of '__ieee128' in <ext/numeric_traits.h> and <format> mkretz at gcc dot gnu.org
@ 2024-04-16 13:19 ` redi at gcc dot gnu.org
  2024-04-16 13:22 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2024-04-16 13:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114742

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-04-16
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think we need something like this in <bits/c++config.h>

#ifndef __VSX__
# undef _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT
#endif

Otherwise we might set the ALT128_COMPAT macro during configure, but then it
becomes invalidated during compilation of user code if they "downgrade" to
something that doesn't support ieee128, using -mcpu=power6 and/or
-mlong-double-64

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

* [Bug libstdc++/114742] invalid use of '__ieee128' in <ext/numeric_traits.h> and <format>
  2024-04-16 13:16 [Bug libstdc++/114742] New: invalid use of '__ieee128' in <ext/numeric_traits.h> and <format> mkretz at gcc dot gnu.org
  2024-04-16 13:19 ` [Bug libstdc++/114742] " redi at gcc dot gnu.org
@ 2024-04-16 13:22 ` redi at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2024-04-16 13:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114742

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Mathias noted that still fails with -mcpu=power7

Checking for _ARCH_PWR8 or __POWER8_VECTOR__ instead works.

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

end of thread, other threads:[~2024-04-16 13:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 13:16 [Bug libstdc++/114742] New: invalid use of '__ieee128' in <ext/numeric_traits.h> and <format> mkretz at gcc dot gnu.org
2024-04-16 13:19 ` [Bug libstdc++/114742] " redi at gcc dot gnu.org
2024-04-16 13:22 ` 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).