This is the mail archive of the gcc-bugs@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]

[Bug middle-end/50716] Segmentation fault caused by misaligned vector access


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

Artem Shinkarov <artyom.shinkaroff at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |artyom.shinkaroff at gmail
                   |                            |dot com

--- Comment #2 from Artem Shinkarov <artyom.shinkaroff at gmail dot com> 2011-10-13 19:51:36 UTC ---
(In reply to comment #1)
> I think vec has an alignment requirement which makes the testcase invalid.

Ok, but in that case the compiler should say something to the user.  Rejecting
such a code could be a first step.

However, in general I think that the compiler should analyse the code and
figure our which instruction suits in the given situation.  If alignment can be
evaluated -- aligned move, unaligned move otherwise.


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