aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2018-05-23 10:23:24 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-05-23 10:23:24 +0000
commit026733d84e1f13ec9fdfc124d5d727fcce64e91c (patch)
treecf3d2ff150c4e3a8fdacd899b48463e44dfcadd1 /gcc/tree-ssa-copy.c
parentaeaa0347e94b1dfa040809b3b098fcc0474d45f7 (diff)
downloadgcc-026733d84e1f13ec9fdfc124d5d727fcce64e91c.zip
gcc-026733d84e1f13ec9fdfc124d5d727fcce64e91c.tar.gz
gcc-026733d84e1f13ec9fdfc124d5d727fcce64e91c.tar.bz2
[Ada] Crash processing Valid_Scalars whose evaluation is always true
The compiler blows up generating code associated with occurrences of attribute Valid_Scalars whose evaluation is always true. After this patch the following test compiles fine. 2018-05-23 Javier Miranda <miranda@adacore.com> gcc/ada/ * sem_attr.adb (Valid_Scalars): Do not invoke Error_Attr_P to report the warning on occurrences of this attribute whose evaluation is always true (since that subprogram aborts processing the attribute). In addition, replace the node by its boolean result 'True' (required because the backend has no knowledge of this attribute). gcc/testsuite/ * gnat.dg/valid_scalars1.adb: New testcase. From-SVN: r260591
Diffstat (limited to 'gcc/tree-ssa-copy.c')
0 files changed, 0 insertions, 0 deletions