This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46942] x86_64 parameter passing unnecessary sign/zero extends
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Dec 2010 17:26:21 +0000
- Subject: [Bug target/46942] x86_64 parameter passing unnecessary sign/zero extends
- Auto-submitted: auto-generated
- References: <bug-46942-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46942
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-12-14 17:26:11 UTC ---
If the conclusion is that the callee can rely on the caller having done
the extension then you need to watch out for security issues in the kernel
syscall ABI when building with a compiler that generates code relying on
this.
http://lkml.org/lkml/2007/6/4/376
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0029
If there were target-specific aspects to the fix to that security issue,
they may not have included x86_64 changes.