NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/53009: GCC6: bool variable is initialized with NULL (i386.c)



>Number:         53009
>Category:       toolchain
>Synopsis:       GCC6: bool variable is initialized with NULL (i386.c)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 11 07:25:00 +0000 2018
>Originator:     Henning Petersen
>Release:        netbsd-current
>Organization:
>Environment:
>Description:
Bool variable is initialized with NULL (i386.c)
>How-To-Repeat:

>Fix:
diff -u -u -p -r1.15 i386.c
--- external/gpl3/gcc/dist/gcc/config/i386/i386.c	2 Feb 2018 03:41:04 -0000	1.15
+++ external/gpl3/gcc/dist/gcc/config/i386/i386.c	11 Feb 2018 07:07:56 -0000
@@ -8686,7 +8686,7 @@ function_arg_advance_32 (CUMULATIVE_ARGS
 			 HOST_WIDE_INT words)
 {
   int res = 0;
-  bool error_p = NULL;
+  bool error_p = false;
 
   if (TARGET_IAMCU)
     {



Home | Main Index | Thread Index | Old Index