This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with your new SRA code
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 1 Jul 04 08:49:10 EDT
- Subject: Problem with your new SRA code
It causes Ada not to bootstrap for me anymore.
Compile the Ada front end file cstand.adb and look at the SRA dump for
bin_op_types. This is an array that's being initialized with a CONSTRUCTOR
and used exactly once, as the prefix of an ARRAY_REF with a variable index.
Because of that reference, this should not have been scalarized at all, but
if it was going to be scalarized, it needed to have been copied back for that
reference. I suspect the VIEW_CONVERT_EXPR is causing the confusion. This is
the same as a bug that I'd fixed in the original SRA, but both you and I
thought it would not be a problem in the new code. It looks like we were
both wrong!