aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/switch-c.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/switch-c.adb')
-rw-r--r--gcc/ada/switch-c.adb4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ada/switch-c.adb b/gcc/ada/switch-c.adb
index cd647da..34d5b08 100644
--- a/gcc/ada/switch-c.adb
+++ b/gcc/ada/switch-c.adb
@@ -312,7 +312,9 @@ package body Switch.C is
-- Not allowed if previous -gnatR given
- if List_Representation_Info /= 0 then
+ if List_Representation_Info /= 0
+ or else List_Representation_Info_Mechanisms
+ then
Osint.Fail
("-gnatc not allowed since -gnatR given previously");
end if;