public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/111654] New: Introduce clang's invalid-noreturn warning
@ 2023-10-01 13:09 tanksherman27 at gmail dot com
  2023-10-02  9:41 ` [Bug c/111654] " manu at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tanksherman27 at gmail dot com @ 2023-10-01 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111654
           Summary: Introduce clang's invalid-noreturn warning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tanksherman27 at gmail dot com
  Target Milestone: ---

Created attachment 56022
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56022&action=edit
Patch to add invalid-noreturn to gcc

clang has a toggleable warning flag named invalid-noreturn for noreturn
functions that return either implicitly or explicitly, while gcc has different
warnings for both explicit and implicit cases. We should add this warning (with
an extra level of tuneability since unlike clang gcc has different warnings for
each) for compatibility with clang, and for utility purposes since code may
desire to mark functions as noreturn even though it may (in the compiler's
point of view) return

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

end of thread, other threads:[~2024-05-26 12:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-01 13:09 [Bug driver/111654] New: Introduce clang's invalid-noreturn warning tanksherman27 at gmail dot com
2023-10-02  9:41 ` [Bug c/111654] " manu at gcc dot gnu.org
2023-10-02 10:17 ` tanksherman27 at gmail dot com
2023-10-02 10:22 ` sjames at gcc dot gnu.org
2023-10-02 12:46 ` manu at gcc dot gnu.org
2023-10-02 23:21 ` egallager at gcc dot gnu.org
2023-10-18  8:12 ` tanksherman27 at gmail dot com
2024-05-26 12:18 ` tanksherman27 at gmail dot com

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