public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3483] fortran: Rename TRUE/FALSE to true/false in *.cc files
@ 2023-08-25 13:44 Uros Bizjak
  0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2023-08-25 13:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:54cc21eaf5f3eb7f7a508919a086f6c8bf5c4c17

commit r14-3483-g54cc21eaf5f3eb7f7a508919a086f6c8bf5c4c17
Author: Uros Bizjak <ubizjak@gmail.com>
Date:   Fri Aug 25 10:22:11 2023 +0200

    fortran: Rename TRUE/FALSE to true/false in *.cc files
    
    gcc/fortran/ChangeLog:
    
            * match.cc (gfc_match_equivalence): Rename TRUE/FALSE to true/false.
            * module.cc (check_access): Ditto.
            * primary.cc (match_real_constant): Ditto.
            * trans-array.cc (gfc_trans_allocate_array_storage): Ditto.
            (get_array_ctor_strlen): Ditto.
            * trans-common.cc (find_equivalence): Ditto.
            (add_equivalences): Ditto.

Diff:
---
 gcc/fortran/match.cc        | 4 ++--
 gcc/fortran/module.cc       | 4 ++--
 gcc/fortran/primary.cc      | 4 ++--
 gcc/fortran/trans-array.cc  | 4 ++--
 gcc/fortran/trans-common.cc | 8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/gcc/fortran/match.cc b/gcc/fortran/match.cc
index ba23bcd96923..c926f38058f6 100644
--- a/gcc/fortran/match.cc
+++ b/gcc/fortran/match.cc
@@ -5788,7 +5788,7 @@ gfc_match_equivalence (void)
 	goto syntax;
 
       set = eq;
-      common_flag = FALSE;
+      common_flag = false;
       cnt = 0;
 
       for (;;)
@@ -5829,7 +5829,7 @@ gfc_match_equivalence (void)
 
 	  if (sym->attr.in_common)
 	    {
-	      common_flag = TRUE;
+	      common_flag = true;
 	      common_head = sym->common_head;
 	    }
 
diff --git a/gcc/fortran/module.cc b/gcc/fortran/module.cc
index 95fdda6b2aac..c07e9dc9ba21 100644
--- a/gcc/fortran/module.cc
+++ b/gcc/fortran/module.cc
@@ -5744,9 +5744,9 @@ check_access (gfc_access specific_access, gfc_access default_access)
     return true;
 
   if (specific_access == ACCESS_PUBLIC)
-    return TRUE;
+    return true;
   if (specific_access == ACCESS_PRIVATE)
-    return FALSE;
+    return false;
 
   if (flag_module_private)
     return default_access == ACCESS_PUBLIC;
diff --git a/gcc/fortran/primary.cc b/gcc/fortran/primary.cc
index 0bb440b85a91..d3aeeb893628 100644
--- a/gcc/fortran/primary.cc
+++ b/gcc/fortran/primary.cc
@@ -530,13 +530,13 @@ match_real_constant (gfc_expr **result, int signflag)
   seen_dp = 0;
   seen_digits = 0;
   exp_char = ' ';
-  negate = FALSE;
+  negate = false;
 
   c = gfc_next_ascii_char ();
   if (signflag && (c == '+' || c == '-'))
     {
       if (c == '-')
-	negate = TRUE;
+	negate = true;
 
       gfc_gobble_whitespace ();
       c = gfc_next_ascii_char ();
diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc
index 951cecfa5d59..90a7d4e9aef3 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -1121,7 +1121,7 @@ gfc_trans_allocate_array_storage (stmtblock_t * pre, stmtblock_t * post,
     {
       /* A callee allocated array.  */
       gfc_conv_descriptor_data_set (pre, desc, null_pointer_node);
-      onstack = FALSE;
+      onstack = false;
     }
   else
     {
@@ -2481,7 +2481,7 @@ get_array_ctor_strlen (stmtblock_t *block, gfc_constructor_base base, tree * len
   gfc_constructor *c;
   bool is_const;
 
-  is_const = TRUE;
+  is_const = true;
 
   if (gfc_constructor_first (base) == NULL)
     {
diff --git a/gcc/fortran/trans-common.cc b/gcc/fortran/trans-common.cc
index c83b6f930ebc..91a98b30b8da 100644
--- a/gcc/fortran/trans-common.cc
+++ b/gcc/fortran/trans-common.cc
@@ -1048,7 +1048,7 @@ find_equivalence (segment_info *n)
   gfc_equiv *e1, *e2, *eq;
   bool found;
 
-  found = FALSE;
+  found = false;
 
   for (e1 = n->sym->ns->equiv; e1; e1 = e1->next)
     {
@@ -1083,7 +1083,7 @@ find_equivalence (segment_info *n)
 	    {
 	      add_condition (n, eq, e2);
 	      e2->used = 1;
-	      found = TRUE;
+	      found = true;
 	    }
 	}
     }
@@ -1102,11 +1102,11 @@ static void
 add_equivalences (bool *saw_equiv)
 {
   segment_info *f;
-  bool more = TRUE;
+  bool more = true;
 
   while (more)
     {
-      more = FALSE;
+      more = false;
       for (f = current_segment; f; f = f->next)
 	{
 	  if (!f->sym->equiv_built)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-25 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 13:44 [gcc r14-3483] fortran: Rename TRUE/FALSE to true/false in *.cc files Uros Bizjak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).