You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subject: [PATCH] Revert GCC change about turning -Wimplicit-function-declaration into errors
5
+
6
+
Unfortunately, the new behavior breaks the compilation of some GCC dependencies and even GCC itself when building for very old targets.
7
+
8
+
This is due to these platforms lacking support for some required standard library functions and APIs: Until GCC 13, the compiler always fell back to a built-in alternative in case one of those functions was missing (see https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html). The compiler, however, used to just issue an "implicit function declaration" warning for the usage of those builtins. Since this warning is now treated as an error, this simply made the compilation fail.
9
+
---
10
+
gcc/c/c-decl.cc | 10 +++++-----
11
+
1 file changed, 5 insertions(+), 5 deletions(-)
12
+
13
+
diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
14
+
index 0e52f2176..dde2b207c 100644
15
+
--- a/gcc/c/c-decl.cc
16
+
+++ b/gcc/c/c-decl.cc
17
+
@@ -3566,7 +3566,7 @@ pushdecl (tree x)
18
+
or NULL_TREE. */
19
+
20
+
static void
21
+
-implicit_decl_permerror (location_t loc, tree id, tree olddecl)
22
+
+implicit_decl_warning (location_t loc, tree id, tree olddecl)
23
+
{
24
+
if (!warn_implicit_function_declaration)
25
+
return;
26
+
@@ -3583,13 +3583,13 @@ implicit_decl_permerror (location_t loc, tree id, tree olddecl)
0 commit comments