[Bug target/46644] Built-in memcpy() does not test for unaligned destination address on ARM

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 24 20:09:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46644

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-11-24 19:33:48 UTC ---
In this case it is purely programmer's screw up.
If the pointers aren't properly aligned, then they should be uint16_t
__attribute__((aligned (1))) or similar pointers, not uint16_t pointers.



More information about the Gcc-bugs mailing list