This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/39954] [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c
- 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: 18 Jan 2010 11:24:03 -0000
- Subject: [Bug middle-end/39954] [4.5 Regression] Revision 146817 caused unaligned access in gcc.dg/torture/pr26565.c
- References: <bug-39954-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #28 from rguenth at gcc dot gnu dot org 2010-01-18 11:24 -------
Btw, get_pointer_alignment should get passed an access type to put it into
context. For alignment of say INDIRECT_REFs it would be the pointed-to type
but for function arguments in general it needs to be 'char' if you don't know
anything about the kind of the accesses the function does. That would be
the default/fallback align get_pointer_alignment has to assume.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39954