[RFH] [tree-ssa] disabling lowering for &a->b causes ICE

Andrew Pinski pinskia@physics.uc.edu
Sun Feb 15 08:04:00 GMT 2004


When I disable the lowering of &a->b in the C or C++ front-ends, I get 
an
ICE because for some reason a SSA_NAME made it through to expand.  This
patch should be used to solve PR 14029 when this is ICE is fixed.

The test-case I get the ICE with:
struct a
{
int i;
};
int *h(struct a *b)
{
   return &b->i;
}

This works at -O0 because there is no rewrite into SSA.
I need help figuring out why the variable is not rewrote out of SSA.

The patch which I used, this is also the patch to change offsetof to a 
builtin and
lower that only to make sure that offsetof is a constant as it needs to 
be.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: offset_disable_lower.diff.txt
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040215/8d1e9311/attachment.txt>
-------------- next part --------------


Attached also is the optimized dump, I know that there is no partition 
map for the variable
but I do not know why.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ttt.c.t46.optimized
Type: application/octet-stream
Size: 1869 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040215/8d1e9311/attachment.obj>


More information about the Gcc mailing list