Commit 773076a5 by Eric Botcazou Committed by Eric Botcazou

re PR ada/83091 (ICE with -g in arm-eabi compilation)

	PR ada/83091
	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not build a variant
	type for the implementation type of a packed array.

From-SVN: r255125
parent d69f1ec7
2017-11-23 Eric Botcazou <ebotcazou@adacore.com>
PR ada/83091
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not build a variant
type for the implementation type of a packed array.
2017-11-23 Mike Stump <mikestump@comcast.net> 2017-11-23 Mike Stump <mikestump@comcast.net>
Eric Botcazou <ebotcazou@adacore.com> Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -4568,7 +4568,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) ...@@ -4568,7 +4568,11 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
? ALIAS_SET_COPY : ALIAS_SET_SUPERSET); ? ALIAS_SET_COPY : ALIAS_SET_SUPERSET);
} }
if (Treat_As_Volatile (gnat_entity)) /* Finally get to the appropriate variant, except for the implementation
type of a packed array because the GNU type might be further adjusted
when the original array type is itself processed. */
if (Treat_As_Volatile (gnat_entity)
&& !Is_Packed_Array_Impl_Type (gnat_entity))
{ {
const int quals const int quals
= TYPE_QUAL_VOLATILE = TYPE_QUAL_VOLATILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment