public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3804] [Ada] Allow more cases of import with Relaxed_RM_Semantics
@ 2021-09-22 15:10 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-09-22 15:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:326b74705c26a52226bc737cc94be584dd2505e1
commit r12-3804-g326b74705c26a52226bc737cc94be584dd2505e1
Author: Arnaud Charlet <charlet@adacore.com>
Date: Thu Jul 15 17:31:11 2021 +0000
[Ada] Allow more cases of import with Relaxed_RM_Semantics
gcc/ada/
* sem_prag.adb (Process_Import_Or_Interface): Relax error when
Relaxed_RM_Semantics.
Diff:
---
gcc/ada/sem_prag.adb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb
index 9cad55d9cc2..0228717d707 100644
--- a/gcc/ada/sem_prag.adb
+++ b/gcc/ada/sem_prag.adb
@@ -9532,7 +9532,11 @@ package body Sem_Prag is
Process_Import_Predefined_Type;
- else
+ -- Emit an error unless Relaxed_RM_Semantics since some legacy Ada
+ -- compilers may accept more cases, e.g. JGNAT allowed importing
+ -- a Java package.
+
+ elsif not Relaxed_RM_Semantics then
if From_Aspect_Specification (N) then
Error_Pragma_Arg
("entity for aspect% must be object, subprogram "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-22 15:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 15:10 [gcc r12-3804] [Ada] Allow more cases of import with Relaxed_RM_Semantics Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).