public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/35657] TDmode isn't aligned at 128bit when passing to a function Date: Tue, 25 Mar 2008 00:42:00 -0000 [thread overview] Message-ID: <20080325004212.21284.qmail@sourceware.org> (raw) In-Reply-To: <bug-35657-682@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from hjl dot tools at gmail dot com 2008-03-25 00:42 ------- This patch will align DFP to its natural boundary. Index: gcc/config/i386/i386.c =================================================================== --- gcc/config/i386/i386.c (revision 1917) +++ gcc/config/i386/i386.c (working copy) @@ -4609,7 +4609,8 @@ ix86_function_arg_boundary (enum machine align = GET_MODE_ALIGNMENT (mode); if (align < PARM_BOUNDARY) align = PARM_BOUNDARY; - if (!TARGET_64BIT) + /* Decimal floating point is aligned to its natural boundary. */ + if (!TARGET_64BIT && !VALID_DFP_MODE_P (mode)) { /* i386 ABI defines all arguments to be 4 byte aligned. We have to make an exception for SSE modes since these require 128bit -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35657
next prev parent reply other threads:[~2008-03-25 0:42 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-03-21 17:43 [Bug target/35657] New: " hjl dot tools at gmail dot com 2008-03-21 20:54 ` [Bug target/35657] " ubizjak at gmail dot com 2008-03-22 0:27 ` hjl dot tools at gmail dot com 2008-03-25 0:42 ` hjl dot tools at gmail dot com [this message] 2008-03-27 18:53 ` hjl at gcc dot gnu dot org 2008-03-27 18:57 ` hjl at gcc dot gnu dot org 2008-03-27 19:06 ` hjl dot tools at gmail dot com 2008-04-29 18:07 ` [Bug target/35657] [4.3] " ubizjak at gmail dot com 2008-04-29 18:07 ` ubizjak at gmail dot com 2008-04-29 18:44 ` [Bug target/35657] [4.3] Alignments of DFP types aren't consistent hjl dot tools at gmail dot com 2008-04-30 20:56 ` hjl dot tools at gmail dot com 2008-05-01 14:15 ` [Bug target/35657] " hjl dot tools at gmail dot com 2008-05-05 22:50 ` hjl dot tools at gmail dot com 2008-05-06 15:42 ` hjl at gcc dot gnu dot org 2008-05-08 19:12 ` hjl at gcc dot gnu dot org 2008-05-08 19:13 ` hjl dot tools at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080325004212.21284.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).