aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-md.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-04-16 14:38:54 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-19 14:05:32 +0000
commit0d9583573b7fbb4ee3fc769f962dfdde8684d795 (patch)
tree3f7847b93c28fad28799f6b770fba926284c8946 /gcc/read-md.cc
parenteac0a28825a82b914fc319a3827a1b89e577f1b9 (diff)
downloadgcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.zip
gcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.tar.gz
gcc-0d9583573b7fbb4ee3fc769f962dfdde8684d795.tar.bz2
[Ada] Remove redundant marking of illegal pragma with error posted
We flag illegal pragma Elaborate with a call to Error_Msg on the pragma argument, which in turn calls Set_Error_Posted on the enclosing statement, i.e. on the pragma itself. The explicit call to Set_Error_Posted on the pragma itself was redundant. Cleanup related to handling of illegal code when detecting uninitialized scalar objects. gcc/ada/ * sem_prag.adb (Analyze_Pragma): Remove redundant call to Set_Error_Posted.
Diffstat (limited to 'gcc/read-md.cc')
0 files changed, 0 insertions, 0 deletions