Fortran: Typo/unicode-o fixes
authorJulian Brown <julian@codesourcery.com>
Mon, 23 May 2022 13:19:10 +0000 (06:19 -0700)
committerJulian Brown <julian@codesourcery.com>
Fri, 23 Dec 2022 10:50:33 +0000 (10:50 +0000)
This patch fixes a minor typo in dump output and a stray unicode character
in a comment.

2022-06-01  Julian Brown  <julian@codesourcery.com>

gcc/fortran/
* dump-parse-tree.cc (show_attr): Fix OMP-UDR-ARTIFICIAL-VAR typo.
* trans-openmp.cc (gfc_trans_omp_array_section): Replace stray unicode
m-dash character with hyphen.

gcc/fortran/dump-parse-tree.cc
gcc/fortran/trans-openmp.cc

index 5ae72dc..ae8ca6f 100644 (file)
@@ -894,7 +894,7 @@ show_attr (symbol_attribute *attr, const char * module)
   if (attr->pdt_string)
     fputs (" PDT-STRING", dumpfile);
   if (attr->omp_udr_artificial_var)
-    fputs (" OMP-UDT-ARTIFICIAL-VAR", dumpfile);
+    fputs (" OMP-UDR-ARTIFICIAL-VAR", dumpfile);
   if (attr->omp_declare_target)
     fputs (" OMP-DECLARE-TARGET", dumpfile);
   if (attr->omp_declare_target_link)
index 395bcc9..45b136d 100644 (file)
@@ -2494,7 +2494,7 @@ gfc_trans_omp_array_section (stmtblock_t *block, gfc_omp_namelist *n,
        = gfc_conv_descriptor_data_get (decl);
       /* This purposely does not include GOMP_MAP_ALWAYS_POINTER.  The extra
         cast prevents gimplify.cc from recognising it as being part of the
-        struct  and adding an 'alloc: for the 'desc.data' pointer, which
+        struct - and adding an 'alloc: for the 'desc.data' pointer, which
         would break as the 'desc' (the descriptor) is also mapped
         (see node4 above).  */
       if (ptr_kind == GOMP_MAP_ATTACH_DETACH)