This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80162] [5/6/7 Regression] ICE on invalid code (address of register variable)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 24 Mar 2017 09:36:58 +0000
- Subject: [Bug target/80162] [5/6/7 Regression] ICE on invalid code (address of register variable)
- Auto-submitted: auto-generated
- References: <bug-80162-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80162
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Ugh, but that patch breaks:
typedef int v8 __attribute__ ((vector_size (32)));
register v8 u asm ("xmm7");
int
foo (int i)
{
return u[i];
}
int
bar (void)
{
return u[5];
}
We could perhaps add an optional argument to
c_mark_addressable/cxx_mark_addressable that would be true when called to build
ARRAY_REF (in that case we wouldn't want to see through VCEs) and when actually
taking address (in that case we do want that).