aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.c
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2021-12-08 23:24:13 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-01-07 16:24:08 +0000
commit57136d60c69d4ac5c189fd7d5150227179cff79e (patch)
treeef412002cf1b8556459bd567c061e95b8f3e6f6c /gcc/ada/gcc-interface/decl.c
parentc8e99971b643c1b0610175bba047cd789c571c74 (diff)
downloadgcc-57136d60c69d4ac5c189fd7d5150227179cff79e.zip
gcc-57136d60c69d4ac5c189fd7d5150227179cff79e.tar.gz
gcc-57136d60c69d4ac5c189fd7d5150227179cff79e.tar.bz2
[Ada] Fix inconsistent quoting in messages about compile-time errors
gcc/ada/ * exp_ch4.adb (Raise_Accessibility_Error): Move exception name to the message string; move << control characters to the end, for consistency. * sem_ch6.adb (Analyze_Function_Return): Likewise. * sem_util.adb (Compile_Time_Constraint_Error): Likewise. * gcc-interface/decl.c (gnat_to_gnu_entity): Remove quotes around Storage_Error. * gcc-interface/trans.c (gnat_to_gnu): Remove quotes around Constraint_Error. gcc/testsuite/ * gnat.dg/aggr26.adb: Update expected error message.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r--gcc/ada/gcc-interface/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index af6b6bd..8c0703a 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -1400,7 +1400,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
if (TREE_CODE (TYPE_SIZE_UNIT (gnu_alloc_type)) == INTEGER_CST
&& !valid_constant_size_p (TYPE_SIZE_UNIT (gnu_alloc_type)))
- post_error ("??`Storage_Error` will be raised at run time!",
+ post_error ("??Storage_Error will be raised at run time!",
gnat_entity);
gnu_expr