From: Julian Brown Date: Mon, 23 May 2022 13:19:10 +0000 (-0700) Subject: Fortran: Typo/unicode-o fixes X-Git-Tag: upstream/13.1.0~2370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e7d2b2d22c509abbd0a59840fae7c4ed26d273b;p=platform%2Fupstream%2Fgcc.git Fortran: Typo/unicode-o fixes This patch fixes a minor typo in dump output and a stray unicode character in a comment. 2022-06-01 Julian Brown 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. --- diff --git a/gcc/fortran/dump-parse-tree.cc b/gcc/fortran/dump-parse-tree.cc index 5ae72dc..ae8ca6f 100644 --- a/gcc/fortran/dump-parse-tree.cc +++ b/gcc/fortran/dump-parse-tree.cc @@ -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) diff --git a/gcc/fortran/trans-openmp.cc b/gcc/fortran/trans-openmp.cc index 395bcc9..45b136d 100644 --- a/gcc/fortran/trans-openmp.cc +++ b/gcc/fortran/trans-openmp.cc @@ -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)