[Bug optimization/13954] [tree-ssa] SRA does not work for classes that use inheritance
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 31 21:23:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list