public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/91092] Error on implicit function declarations by default
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-25 1:20 ` egallager at gcc dot gnu.org
2022-09-12 20:18 ` sam at gentoo dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-09-25 1:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #20 from Eric Gallager <egallager at gcc dot gnu.org> ---
So, Apple turned on -Werror=implicit-function-declaration on by default for
their version of clang that ships with macOS, and in response, the MacPorts
project has added features to scan the config.log files of ports built with it
for instances of -Werror=implicit-function-declaration and report them. As
expected, it does indeed turn up a lot of results, but work is being done to
fix them all, producing patches for the configure scripts in many cases.
Upstream projects will just need to apply these patches in order to be ready.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/91092] Error on implicit function declarations by default
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 1:20 ` [Bug c/91092] Error on implicit function declarations by default egallager at gcc dot gnu.org
@ 2022-09-12 20:18 ` sam at gentoo dot org
2023-12-01 7:12 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: sam at gentoo dot org @ 2022-09-12 20:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
--- Comment #21 from Sam James <sam at gentoo dot org> ---
Followers of this bug may be interested to learn:
1. Clang has made this change in LLVM 15 (as well as some other related
changes:
https://releases.llvm.org/15.0.0/tools/clang/docs/ReleaseNotes.html#improvements-to-clang-s-diagnostics);
2. There's discussion ongoing at
https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
wrt the breakage to configure scripts.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/91092] Error on implicit function declarations by default
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 1:20 ` [Bug c/91092] Error on implicit function declarations by default egallager at gcc dot gnu.org
2022-09-12 20:18 ` sam at gentoo dot org
@ 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 8:20 ` sjames at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-01 7:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
--- Comment #22 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:55e94561e97ed0bce4774aa1c6b5d5d82209a379
commit r14-6033-g55e94561e97ed0bce4774aa1c6b5d5d82209a379
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Dec 1 08:10:13 2023 +0100
c: Turn -Wimplicit-function-declaration into a permerror
In the future, it may make sense to avoid cascading errors from
the implicit declaration, especially its assumed int return type.
This change here only changes the kind of the diagnostic, not
its wording or consequences.
gcc/
* doc/invoke.texi (Warning Options): Document changes.
gcc/c/
PR c/91092
PR c/96284
* c-decl.cc (implicit_decl_permerror): Rename from
implicit_decl_warning. Call permerror_opt instead of
pedwarn and warning_at.
(implicitly_declare): Adjust callers.
gcc/testsuite/
* gcc.dg/permerror-default.c (implicit_function_declaration):
Expect the new permerror.
* gcc.dg/permerror-system.c: Likewise.
* c-c++-common/spellcheck-reserved.c (test, test_2): Expect
error instead of warning.
(f): Expect error instead of warning.
* gcc.dg/Wimplicit-function-declaration-c99.c: Compile with
-fpermissive due to expected warning.
* gcc.dg/Wimplicit-function-declaration-c99-2.c: New test.
Copied from gcc.dg/Wimplicit-function-declaration-c99.c.
Expect error.
* gcc.dg/missing-header-fixit-1.c: Compile with -fpermissive
due to expect error.
* gcc.dg/missing-header-fixit-1a.c: New test. Copied from
gcc.dg/missing-header-fixit-1.c, but expect error.
* gcc.dg/missing-header-fixit-2.c: Compile with -fpermissive
due to expect error.
* gcc.dg/missing-header-fixit-2a.c: New test. Copied from
gcc.dg/missing-header-fixit-2.c, but expect error.
* gcc.dg/missing-header-fixit-4.c: Compile with -fpermissive
due to expect error.
* gcc.dg/missing-header-fixit-4a.c: New test. Copied from
gcc.dg/missing-header-fixit-4.c, but expect error.
* gcc.dg/missing-header-fixit-5.c: Compile with -fpermissive
due to expect error.
* gcc.dg/missing-header-fixit-5a.c: New test. Copied from
gcc.dg/missing-header-fixit-5.c, but expect error.
* gcc.dg/pr61852.c: Expect implicit-function-declaration
error instead of warning.
* gcc.dg/spellcheck-identifiers-2.c: Compile with
-fpermissive due to expected warnings.
* gcc.dg/spellcheck-identifiers-2a.c: New test. Copied
from gcc.dg/spellcheck-identifiers-2a.c. Expect errors.
* gcc.dg/spellcheck-identifiers-3.c: Compile with
-fpermissive due to expected warnings.
* gcc.dg/spellcheck-identifiers-3a.c: New test. Copied
from gcc.dg/spellcheck-identifiers-2a.c. Expect errors.
* gcc.dg/spellcheck-identifiers-4.c: Compile with
-fpermissive due to expected warnings.
* gcc.dg/spellcheck-identifiers-4a.c: New test. Copied
from gcc.dg/spellcheck-identifiers-2a.c. Expect error.
* gcc.dg/spellcheck-identifiers.c: Compile with
-fpermissive due to expected warnings.
* gcc.dg/spellcheck-identifiers-1a.c: New test. Copied
from gcc.dg/spellcheck-identifiers.c. Expect errors.
* gcc.target/aarch64/sve/acle/general-c/ld1sh_gather_1.c (f1):
Expect error.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_index_1.c:
(f1): Likewise.
*
gcc.target/aarch64/sve/acle/general-c/load_ext_gather_index_restricted_1.c:
(f1): Likewise.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_1.c:
(f1): Likewise.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_2.c:
(f1): Likewise.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_3.c:
(f1): Likewise.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_4.c:
(f1): Likewise.
* gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_5.c:
(f1): Likewise.
*
gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_restricted_1.c:
(f1): Likewise.
*
gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_restricted_2.c:
(f1): Likewise.
*
gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_restricted_3.c:
(f1): Likewise.
*
gcc.target/aarch64/sve/acle/general-c/load_ext_gather_offset_restricted_4.c:
(f1): Likewise.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/91092] Error on implicit function declarations by default
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
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 8:20 ` sjames at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: fw at gcc dot gnu.org @ 2023-12-01 7:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
Florian Weimer <fw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #23 from Florian Weimer <fw at gcc dot gnu.org> ---
Fixed for GCC 14.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/91092] Error on implicit function declarations by default
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2023-12-01 7:15 ` fw at gcc dot gnu.org
@ 2023-12-01 8:20 ` sjames at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-12-01 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91092
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-12-01 8:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91092-4@http.gcc.gnu.org/bugzilla/>
2021-09-25 1:20 ` [Bug c/91092] Error on implicit function declarations by default egallager at gcc dot gnu.org
2022-09-12 20:18 ` sam at gentoo dot org
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 8:20 ` sjames 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).