diff options
author | Steve Baird <baird@adacore.com> | 2022-12-14 09:54:08 -0800 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-01-05 15:29:58 +0100 |
commit | 0776fec1557f60e256cd18a5456ee5ad04cf4262 (patch) | |
tree | d5bee5865e85e69c8fe1120c83511f1c9df812d1 /gcc/rust | |
parent | 0a8824f7025c2fae0dd11131043e3029c9ccadec (diff) | |
download | gcc-0776fec1557f60e256cd18a5456ee5ad04cf4262.zip gcc-0776fec1557f60e256cd18a5456ee5ad04cf4262.tar.gz gcc-0776fec1557f60e256cd18a5456ee5ad04cf4262.tar.bz2 |
ada: Better error message for bad Discard_Names configuration pragma
When a pragma Discard_Names is used as a configuration pragma, it does not
take an argument. If an argument is given, the resulting error message was
incorrect and confusing.
gcc/ada/
* sem_prag.adb (Analyze_Pragma): Fix Is_Configuration_Pragma
function to handle case where the pragma's parent is an
N_Aspect_Specification node. In analyzing a Discard_Names pragma,
do not assume that a nonzero number of arguments implies that the
pragma is not a configuration pragma; that assumption only holds
for legal programs.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions