aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/primary.c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-01-16 08:50:57 +0100
committerTobias Burnus <tobias@codesourcery.com>2020-01-16 08:50:57 +0100
commitc35a3046247c495509610b50c7a85683d540811a (patch)
tree330563b37abe5109f2834b61a9593807f05c231e /gcc/fortran/primary.c
parent03647d2e26176bb874460b67deab0c30aa715d59 (diff)
downloadgcc-c35a3046247c495509610b50c7a85683d540811a.zip
gcc-c35a3046247c495509610b50c7a85683d540811a.tar.gz
gcc-c35a3046247c495509610b50c7a85683d540811a.tar.bz2
PR93253 – Document BOZ changes, make it friendlier in legacy code
PR fortran/93253 * check.c (gfc_invalid_boz): Mention -fallow-invalid-boz in the error message. * gfortran.texi (BOZ literal constants): List another missing extension and refer to -fallow-invalid-boz. * lang.opt (fallow-invalid-boz): Also mention 'X' in the help text as it is not covered by the previous wording. * primary.c (match_boz_constant): Tweak wording such that it is clear how to fix the nonstandard use. PR fortran/93253 * fortran.dg/boz_7.f90: Updated dg-error.
Diffstat (limited to 'gcc/fortran/primary.c')
-rw-r--r--gcc/fortran/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/primary.c b/gcc/fortran/primary.c
index e2b6fcb..07b8ac0 100644
--- a/gcc/fortran/primary.c
+++ b/gcc/fortran/primary.c
@@ -433,7 +433,7 @@ match_boz_constant (gfc_expr **result)
if (x_hex
&& gfc_invalid_boz ("Hexadecimal constant at %L uses "
- "nonstandard syntax", &gfc_current_locus))
+ "nonstandard X instead of Z", &gfc_current_locus))
return MATCH_ERROR;
old_loc = gfc_current_locus;