aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/accessibility.adb
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2023-08-10 15:39:01 -0700
committerMarc Poulhiès <poulhies@adacore.com>2023-09-05 13:05:13 +0200
commitbed30418f910df5ea605b7f5ee4b86a6ab7e9411 (patch)
tree593e6724edab2dad16a1aeccfafd6660683322b2 /gcc/ada/accessibility.adb
parent46644c3fd7c2c6baf1bfde0734bfd50975faa1c4 (diff)
downloadgcc-bed30418f910df5ea605b7f5ee4b86a6ab7e9411.zip
gcc-bed30418f910df5ea605b7f5ee4b86a6ab7e9411.tar.gz
gcc-bed30418f910df5ea605b7f5ee4b86a6ab7e9411.tar.bz2
ada: Spurious warning about negative modular literal
If -gnatw.m is enabled, the compiler generates a warning if a unary minus operator of a modular type is applied to an integer literal. This warning was being incorrectly generated in some cases where no integer literal is present in the source code. gcc/ada/ * sem_res.adb (Resolve_Unary_Op): In deciding whether to emit a warning about a modular type's unary minus operator being applied to an integer literal, ignore integer literals for which Comes_From_Source is False.
Diffstat (limited to 'gcc/ada/accessibility.adb')
0 files changed, 0 insertions, 0 deletions