1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Fix build of amd64-gcc6 and i386-gcc6 with LLVM 11.

clang errors when assigning NULL (nullptr) to a bool.

Reviewed by:	zeising
Differential Revision:	https://reviews.freebsd.org/D26222
This commit is contained in:
John Baldwin 2020-08-31 18:07:17 +00:00
parent f522970ecf
commit 42de78b14c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547202
2 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= gcc
PORTVERSION= 6.5.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= GCC/releases/gcc-${DISTVERSION}
PKGNAMEPREFIX= ${TARGETARCH}-

View File

@ -0,0 +1,11 @@
--- gcc/config/i386/i386.c.orig 2020-08-28 09:37:26.849947000 -0700
+++ gcc/config/i386/i386.c 2020-08-28 09:37:51.260814000 -0700
@@ -8747,7 +8747,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)
{