[Bug rtl-optimization/79571] [5/6/7 Regression] ICE in Max. number of generated reload insns per insn is achieved (90)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 1 12:55:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79571
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Cleaned up and further reduced testcase that still ICEs with -O2 -mno-sse:
struct A { int b; int *c; } a;
struct B { struct A *d; };
void
foo (unsigned int x)
{
struct B b = (struct B) { (struct A *) (__UINTPTR_TYPE__) (x & ~3) };
a = *b.d;
}
Might be even valid if say the caller makes sure to mmap the pointer in the
first 4GB and then casts to unsigned.
More information about the Gcc-bugs
mailing list