This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43292] New: Bogus TYPE_ADDR_SPACE access
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2010 16:03:29 -0000
- Subject: [Bug middle-end/43292] New: Bogus TYPE_ADDR_SPACE access
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
expr.c:expand_expr_real_1
case TARGET_MEM_REF:
{
addr_space_t as = TYPE_ADDR_SPACE (TREE_TYPE (exp));
struct mem_address addr;
doesn't make sense. TREE_TYPE (exp) is the type of the access, not
the pointer-type used for it.
--
Summary: Bogus TYPE_ADDR_SPACE access
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: spu-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43292