This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, profiling]: Fix MEM_REF causing inapproriate address takenerror



This was the bug causing spec to fail to compile a couple cases where they had


register int *he;

a = &he[5];

I incorrectly marked the he part as the addressable thing.
this is true for array_ref, where the array is an aggregate, and thus, you are effectivly saying the whole array is in the register.
This isn't true at all for mem_ref, which is on a pointer, and thus, you are taking the address of some part of what it points to.


Bootstrapped and regtested on i686-pc-linux-gnu.
Committed to tree-profiling branch.

Friends don't let friends use register,
Dan

Attachment: fixmemref.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]