This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/61656] Undefined behavior in classify_argument
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Jul 2014 16:10:11 +0000
- Subject: [Bug target/61656] Undefined behavior in classify_argument
- Auto-submitted: auto-generated
- References: <bug-61656-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61656
--- Comment #6 from UroÅ Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #5)
> then it uses movq %rsi, ... and the patch doesn't change anything on that.
> If you want to use movl %esi, ... in foo in this testcase, more changes are
> needed of course.
This is allowed, as long as we don't use movl on a DImode value. So, your
proposed patch avoids undefined issue, while optimizes memory access a bit.