This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13954] [tree-ssa] SRA does not work for classes that use inheritance
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2004 21:23:56 -0000
- Subject: [Bug optimization/13954] [tree-ssa] SRA does not work for classes that use inheritance
- References: <20040131211533.13954.dann@godzilla.ics.uci.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 21:23 -------
Confirmed, the problem here is more complicated:
Cannot scalarize variable param because it must live in memory
Cannot scalarize variable local because it must live in memory
Cannot scalarize variable MT.3 because it must live in memory
The problem here is that:
void copystruct1(teststruct) (param)
{
struct
{
double d;
char f1;
} * local.0;
struct
{
double d;
char f1;
} * param.1;
char T.2;
{
struct teststruct local;
param.f1 = 0;
local.0 = (struct
{
double d;
char f1;
} *)&local;
param.1 = (struct
{
double d;
char f1;
} *)¶m;
*local.0 = *param.1;
{
T.2 = local.f1;
if (T.2 != 0)
{
{
link_error ();
}
}
else
{
}
}
}
}
Which means it does not using the right structs assigning or something werid is going on.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |pessimizes-code
Last reconfirmed|0000-00-00 00:00:00 |2004-01-31 21:23:56
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13954