svn commit: r545751 - head/lang/gcc7/files
Gerald Pfeifer
gerald at FreeBSD.org
Sat Aug 22 09:06:02 UTC 2020
Author: gerald
Date: Sat Aug 22 09:06:01 2020
New Revision: 545751
URL: https://svnweb.freebsd.org/changeset/ports/545751
Log:
Fix the build with clang 11.
This was fixed upstream as part of a larger commit on May 6th 2017,
and dim@ now encountered the same and fixed the specific issue for
our GCC 7 port. Newer versions should not exhibit this.
(See the new files/patch-gcc_config_i386_i386.c for more details.)
PR: 248755
Submitted by: dim
Added:
head/lang/gcc7/files/patch-gcc_config_i386_i386.c (contents, props changed)
Added: head/lang/gcc7/files/patch-gcc_config_i386_i386.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/gcc7/files/patch-gcc_config_i386_i386.c Sat Aug 22 09:06:01 2020 (r545751)
@@ -0,0 +1,31 @@
+This fixes
+
+/wrkdirs/usr/ports/lang/gcc7/work/gcc-7.5.0/gcc/config/i386/i386.c:9631:8: error: cannot initialize a variable of type 'bool' with an rvalue of type 'nullptr_t'
+ bool error_p = NULL;
+ ^ ~~~~
+
+and comes from upstream as part of
+
+ commit 9f36390d429502f0a0dee20bda5b4870da948f6a
+ Author: Uros Bizjak <ubizjak at gmail.com>
+ Date: Sat May 6 09:01:51 2017 +0200
+
+ i386.c (ext_80387_constant_init): Do not explicitly initialize to zero.
+
+ * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
+ initialize to zero.
+ (init_regs): Remove declaration.
+ (function_arg_advance_32): Initialize error_p as boolean variable.
+
+--- UTC
+--- gcc/config/i386/i386.c.orig 2019-11-01 20:30:26 UTC
++++ gcc/config/i386/i386.c
+@@ -9628,7 +9628,7 @@ function_arg_advance_32 (CUMULATIVE_ARGS *cum, machine
+ HOST_WIDE_INT words)
+ {
+ int res = 0;
+- bool error_p = NULL;
++ bool error_p = false;
+
+ if (TARGET_IAMCU)
+ {
More information about the svn-ports-all
mailing list