diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-04-16 14:38:54 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-19 14:05:32 +0000 |
commit | 0d9583573b7fbb4ee3fc769f962dfdde8684d795 (patch) | |
tree | 3f7847b93c28fad28799f6b770fba926284c8946 /gcc/read-md.cc | |
parent | eac0a28825a82b914fc319a3827a1b89e577f1b9 (diff) | |
download | gcc-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