public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/96284] Outdated C features should be made errors with newer standards
Date: Fri, 01 Dec 2023 07:12:29 +0000	[thread overview]
Message-ID: <bug-96284-4-eJFXkUO9Pb@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-96284-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@gcc.gnu.org>:

https://gcc.gnu.org/g:4ecfa6c4a9df19b364cbdf6d9de5f0b98c22bd8f

commit r14-6036-g4ecfa6c4a9df19b364cbdf6d9de5f0b98c22bd8f
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Dec 1 08:10:13 2023 +0100

    c: Turn -Wreturn-mismatch into a permerror

    gcc/

            * doc/invoke.texi (Warning Options): Document that
            -Wreturn-mismatch is a permerror in C99 and later.

    gcc/c/

            PR c/96284
            * c-typeck.cc (c_finish_return): Use permerrors
            for OPT_Wreturn_mismatch diagnostics.

    gcc/testsuite/

            * gcc.dg/permerror-default.c (return_mismatch_1)
            (return_mismatch_2): Expect new permerror.
            * gcc.dg/permerror-gnu89-nopermissive.c (return_mismatch_1):
            Likewise.
            * gcc.dg/permerror-system.c: Likewise.
            * gcc.dg/20030906-1.c: Compile with -fpermissive due to
            expected -Wreturn-mismatch error.
            * gcc.dg/20030906-1a.c: New test.  Copied from
            gcc.dg/20030906-1.c.  Expect the error.
            * gcc.dg/20030906-2.c: Compile with -fpermissive due to
            expected -Wreturn-mismatch error.
            * gcc.dg/20030906-2a.c: New test.  Copied from
            gcc.dg/20030906-2.c.  Expect the error.
            * gcc.dg/Wreturn-mismatch-1.c: Compile with -fpermissive due to
            expected -Wreturn-mismatch error.
            * gcc.dg/Wreturn-mismatch-1a.c: New test.  Copied from
            gcc.dg/Wreturn-mismatch-1.c.  Expect the error.
            * gcc.dg/Wreturn-mismatch-2.c: Compile with -fpermissive due to
            expected -Wreturn-mismatch error.
            * gcc.dg/Wreturn-mismatch-2a.c: New test.  Copied from
            gcc.dg/Wreturn-mismatch-2.c.  Expect the error.
            * gcc.dg/diagnostic-range-bad-return.c: Compile with
            -fpermissive due to expected -Wreturn-mismatch error.
            * gcc.dg/diagnostic-range-bad-return-2.c: New test.
            Copied from gcc.dg/diagnostic-range-bad-return.c.  Expect the
            error.
            * gcc.dg/pr105635-2.c: Expect -Wreturn-mismatch error.
            * gcc.dg/pr23075.c: Build with -fpermissive due to
            expected -Wreturn-mismatch error.
            * gcc.dg/pr23075-2.c: New test.  Copied from gcc.dg/pr23075.c.
            Expect the error.
            * gcc.dg/pr29521.c: Compile with -fpermissive due to expected
            -Wreturn-mismatch error.
            * gcc.dg/pr29521-a.c: New test. Copied from gcc.dg/pr29521.c.
            Expect error.
            * gcc.dg/pr67730.c: Compile with -fpermissive due to expected
            -Wreturn-mismatch error.
            * gcc.dg/pr67730-a.c: New test.  Copied from
            gcc.dg/pr67730-a.c.  Expect error.
            * gcc.target/powerpc/conditional-return.c: Compile with
            -fpermissive due to expected -Wreturn-mismatch error.

  parent reply	other threads:[~2023-12-01  7:12 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 13:16 [Bug c/96284] New: " david at westcontrol dot com
2020-07-22 14:09 ` [Bug c/96284] " rguenth at gcc dot gnu.org
2020-07-22 14:51 ` redi at gcc dot gnu.org
2020-07-22 17:18 ` msebor at gcc dot gnu.org
2020-07-22 17:33 ` msebor at gcc dot gnu.org
2020-07-28  5:57 ` egallager at gcc dot gnu.org
2020-07-28  7:20 ` david at westcontrol dot com
2020-07-28  7:39 ` fw at gcc dot gnu.org
2021-12-15  7:01 ` egallager at gcc dot gnu.org
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org [this message]
2023-12-01  7:12 ` cvs-commit at gcc dot gnu.org
2023-12-01  7:15 ` fw at gcc dot gnu.org
2023-12-01  7:15 ` fw at gcc dot gnu.org
2023-12-01  8:21 ` sjames at gcc dot gnu.org
2023-12-01  8:21 ` sjames at gcc dot gnu.org
2023-12-01  8:41 ` david at westcontrol dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-96284-4-eJFXkUO9Pb@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).