public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109398] New: libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions]
@ 2023-04-04  8:01 marxin at gcc dot gnu.org
  2023-04-11 12:22 ` [Bug other/109398] " rguenth at gcc dot gnu.org
  2024-03-02  8:17 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-04-04  8:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109398
           Summary: libiberty/sha1.c:234:11: warning: defining a type
                    within 'offsetof' is a Clang extension
                    [-Wgnu-offsetof-extensions]
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: ian at airs dot com
  Target Milestone: ---

I noticed the following Clang warning that is based on:
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm

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

* [Bug other/109398] libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions]
  2023-04-04  8:01 [Bug c/109398] New: libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions] marxin at gcc dot gnu.org
@ 2023-04-11 12:22 ` rguenth at gcc dot gnu.org
  2024-03-02  8:17 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-04-11 12:22 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |other
           Keywords|                            |build

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Looks like a possible build issue with non-GCC host compilers (but nobody
complained since 2008 when it was introduced).  Should be easy to refactor
with a local type though, just not as nicely encapsulated in 'alignof'.

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

* [Bug other/109398] libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions]
  2023-04-04  8:01 [Bug c/109398] New: libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions] marxin at gcc dot gnu.org
  2023-04-11 12:22 ` [Bug other/109398] " rguenth at gcc dot gnu.org
@ 2024-03-02  8:17 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-02  8:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this might not be a clang extension after all. see
https://github.com/llvm/llvm-project/issues/83658 (and DE-137 discussion in the
meeting minutes: https://www.open-std.org/JTC1/sc22/wg14/www/docs/n3167.pdf ).

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

end of thread, other threads:[~2024-03-02  8:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04  8:01 [Bug c/109398] New: libiberty/sha1.c:234:11: warning: defining a type within 'offsetof' is a Clang extension [-Wgnu-offsetof-extensions] marxin at gcc dot gnu.org
2023-04-11 12:22 ` [Bug other/109398] " rguenth at gcc dot gnu.org
2024-03-02  8:17 ` 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).