This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix SRA and initializers



On Jan 3, 2005, at 3:57 PM, Richard Henderson wrote:


On Sun, Jan 02, 2005 at 11:38:53AM -0500, Andrew Pinski wrote:
OK? Bootstrapped and tested on ppc-darwin and made sure
the above testcase still passes.

Since you havn't given me a testcase I can try for myself, see if the following works.

This almost worked, I had to change to make sure that we don't dereference a null pointer; *list_p could be empty and not point any where. After that fix, I was able to bootstrap with the patch.

Thanks,
Andrew Pinski

I changed:
+ if (ret)
to
if (ret && *list_p)

+    {
+      tree_stmt_iterator i;
+      size_t old, new, j;
+
+      old = num_referenced_vars;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]