aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-09-14 09:41:36 +0200
committerEric Botcazou <ebotcazou@adacore.com>2021-09-14 09:42:43 +0200
commitf1f5b1fbbbe6662ce59bb177374c53ac6148f21e (patch)
tree72971751268020e274123896a8bac5ef4f07bbe9 /gcc/ada/gcc-interface/utils.c
parentebcdd004edfcd79788e044ac2a4e4d7bb3e01888 (diff)
downloadgcc-f1f5b1fbbbe6662ce59bb177374c53ac6148f21e.zip
gcc-f1f5b1fbbbe6662ce59bb177374c53ac6148f21e.tar.gz
gcc-f1f5b1fbbbe6662ce59bb177374c53ac6148f21e.tar.bz2
Give more informative error message for by-reference types
Recent compilers enforce more strictly the RM C.6(18) clause, which says that volatile record types are by-reference types. This changes the typical error message now given in these cases. gcc/ada/ * gcc-interface/decl.c (gnat_to_gnu_entity) <is_type>: Declare new constant. Adjust error message issued by validate_size in the case of by-reference types. (validate_size): Always use the error strings passed by the caller.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions