* tree-sra.c (try_instantiate_multiple_fields): Early return
if field has POINTER_TYPE.
testsuite/
* gnat.dg/fatp_sra.adb: New test.
From-SVN: r134982
+2008-05-06 Olivier Hainque <hainque@adacore.com>
+
+ * tree-sra.c (try_instantiate_multiple_fields): Early return
+ if field has POINTER_TYPE.
+
2008-05-06 Kai Tietz <kai.tietz@onevision.com>
* config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
+2008-05-06 Olivier Hainque <hainque@adacore.com>
+
+ * gnat.dg/fatp_sra.adb: New test.
+
2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/36141
--- /dev/null
+-- { dg-do compile }
+-- { dg-options "-gnatp -O1" }
+
+procedure Fatp_Sra is
+
+ function X return String is
+ begin
+ return "X";
+ end;
+
+ function Letter return String is
+ begin
+ return X;
+ end;
+begin
+ null;
+end;
tree type, var;
struct sra_elt *block;
+ /* Point fields are typically best handled as standalone entities. */
+ if (POINTER_TYPE_P (TREE_TYPE (f)))
+ return f;
+
if (!is_sra_scalar_type (TREE_TYPE (f))
|| !host_integerp (DECL_FIELD_OFFSET (f), 1)
|| !host_integerp (DECL_FIELD_BIT_OFFSET (f), 1)