Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3 Use bools with bool. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/cec732ac1110
branches:  trunk
changeset: 359463:cec732ac1110
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Feb 11 13:50:15 2018 +0000

description:
Use bools with bool. NFCI.

>From Henning Petersen in PR toolchain/53009.
(I completed for the rest of the function. Similar code exists in GCC trunk.)

diffstat:

 external/gpl3/gcc.old/dist/gcc/config/i386/i386.c |  6 +++---
 external/gpl3/gcc/dist/gcc/config/i386/i386.c     |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r bca06d24a0c8 -r cec732ac1110 external/gpl3/gcc.old/dist/gcc/config/i386/i386.c
--- a/external/gpl3/gcc.old/dist/gcc/config/i386/i386.c Sun Feb 11 13:31:17 2018 +0000
+++ b/external/gpl3/gcc.old/dist/gcc/config/i386/i386.c Sun Feb 11 13:50:15 2018 +0000
@@ -7465,7 +7465,7 @@
                         HOST_WIDE_INT words)
 {
   int res = 0;
-  bool error_p = NULL;
+  bool error_p = false;
 
   switch (mode)
     {
@@ -7499,12 +7499,12 @@
 
     case DFmode:
       if (cum->float_in_sse == -1)
-       error_p = 1;
+       error_p = true;
       if (cum->float_in_sse < 2)
        break;
     case SFmode:
       if (cum->float_in_sse == -1)
-       error_p = 1;
+       error_p = true;
       if (cum->float_in_sse < 1)
        break;
       /* FALLTHRU */
diff -r bca06d24a0c8 -r cec732ac1110 external/gpl3/gcc/dist/gcc/config/i386/i386.c
--- a/external/gpl3/gcc/dist/gcc/config/i386/i386.c     Sun Feb 11 13:31:17 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/i386/i386.c     Sun Feb 11 13:50:15 2018 +0000
@@ -8686,7 +8686,7 @@
                         HOST_WIDE_INT words)
 {
   int res = 0;
-  bool error_p = NULL;
+  bool error_p = false;
 
   if (TARGET_IAMCU)
     {
@@ -8731,12 +8731,12 @@
 
     case DFmode:
       if (cum->float_in_sse == -1)
-       error_p = 1;
+       error_p = true;
       if (cum->float_in_sse < 2)
        break;
     case SFmode:
       if (cum->float_in_sse == -1)
-       error_p = 1;
+       error_p = true;
       if (cum->float_in_sse < 1)
        break;
       /* FALLTHRU */



Home | Main Index | Thread Index | Old Index