aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-map-tests.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2019-07-01 13:37:11 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-07-01 13:37:11 +0000
commitd8f8b16648d012d68ccb148a808c9a404960ea20 (patch)
tree94968be63058385a8167d7cccdbab83574357188 /gcc/hash-map-tests.c
parent9d8aaa4e00958418c01a4aee5a08261108eaf997 (diff)
downloadgcc-d8f8b16648d012d68ccb148a808c9a404960ea20.zip
gcc-d8f8b16648d012d68ccb148a808c9a404960ea20.tar.gz
gcc-d8f8b16648d012d68ccb148a808c9a404960ea20.tar.bz2
[Ada] Crash on improper pragma Weak_External
This patch adds a guard on the use of pragma Weak_External. This pragma affects link-time addresses of entities, and does not apply to types. Previous to this patch the compiler would abort on a misuse of the pragma. 2019-07-01 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * sem_prag.adb (Analyze_Pragma, case Weak_External): Pragma only applies to entities with run-time addresses, not to types. gcc/testsuite/ * gnat.dg/weak3.adb, gnat.dg/weak3.ads: New testcase. From-SVN: r272876
Diffstat (limited to 'gcc/hash-map-tests.c')
0 files changed, 0 insertions, 0 deletions