decl.c: Include diagnostic-core.h.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 3 Feb 2013 11:53:02 +0000 (11:53 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 3 Feb 2013 11:53:02 +0000 (11:53 +0000)
* gcc-interface/decl.c: Include diagnostic-core.h.
(gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
is set on the entity.
<E_Record_Type>: Likewise.
* gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).

From-SVN: r195694

gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in
gcc/ada/gcc-interface/decl.c

index ec58e95cb8fa78952c1ddb85ec4e00ab1858ba26..58b30a2e30562f016cb8bb46f708c14af5daedcf 100644 (file)
@@ -1,3 +1,11 @@
+2013-02-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/decl.c: Include diagnostic-core.h.
+       (gnat_to_gnu_entity) <E_Array_Type>: Sorry if Reverse_Storage_Order
+       is set on the entity.
+       <E_Record_Type>: Likewise.
+       * gcc-interface/Make-lang.in (ada/decl.o): Add $(DIAGNOSTIC_CORE_H).
+
 2013-01-29  Ben Brosgol  <brosgol@adacore.com>
 
        * gnat_rm.texi: Fixed typos. Minor edits.
index 03f3f7b0c01e6477f247c0c487bedd4918571278..96e1611a1de8412fc2a7217907ff15eca0a2dcd6 100644 (file)
@@ -986,8 +986,8 @@ ada/cuintp.o : ada/gcc-interface/cuintp.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
        $(COMPILER) -c $(ALL_COMPILERFLAGS) -I.. $(ALL_CPPFLAGS) $< -o $@
 
 ada/decl.o : ada/gcc-interface/decl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-   $(TM_H) $(TREE_H) $(FLAGS_H) toplev.h $(TARGET_H) \
-   $(TREE_INLINE_H) ada/gcc-interface/ada.h ada/types.h ada/atree.h \
+   $(TM_H) $(TREE_H) $(FLAGS_H) toplev.h $(TARGET_H) $(TREE_INLINE_H) \
+   $(DIAGNOSTIC_CORE_H) ada/gcc-interface/ada.h ada/types.h ada/atree.h \
    ada/elists.h ada/namet.h ada/nlists.h ada/repinfo.h ada/snames.h \
    ada/stringt.h ada/uintp.h ada/fe.h ada/sinfo.h ada/einfo.h $(ADA_TREE_H) \
    ada/gcc-interface/gigi.h gt-ada-decl.h
index d6729f7ab08c543bd52cf1f85edc90f8c1542ce6..56b64a3c3436c3aa4f2aacdb270c5238730aedbe 100644 (file)
@@ -33,6 +33,7 @@
 #include "ggc.h"
 #include "target.h"
 #include "tree-inline.h"
+#include "diagnostic-core.h"
 
 #include "ada.h"
 #include "types.h"
@@ -2244,6 +2245,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
        for (index = ndim - 1; index >= 0; index--)
          {
            tem = build_nonshared_array_type (tem, gnu_index_types[index]);
+           if (Reverse_Storage_Order (gnat_entity))
+             sorry ("non-default Scalar_Storage_Order");
            TYPE_MULTI_ARRAY_P (tem) = (index > 0);
            if (array_type_has_nonaliased_component (tem, gnat_entity))
              TYPE_NONALIASED_COMPONENT (tem) = 1;
@@ -2957,6 +2960,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
        gnu_type = make_node (tree_code_for_record_type (gnat_entity));
        TYPE_NAME (gnu_type) = gnu_entity_name;
        TYPE_PACKED (gnu_type) = (packed != 0) || has_rep;
+       if (Reverse_Storage_Order (gnat_entity))
+         sorry ("non-default Scalar_Storage_Order");
 
        if (!definition)
          {