From: hjl Date: Thu, 27 Mar 2008 18:52:18 +0000 (+0000) Subject: 2008-03-27 H.J. Lu X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=4f0ebb163fbb4415cf305ae2fc46757c7d1dd272;hp=37bc930d0411dc1436654cb32f3333eac55e5e5d 2008-03-27 H.J. Lu PR target/35657 * config/i386/i386.c (ix86_function_arg_boundary): Align decimal floating point to its natural boundary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133649 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 529c23062a2..5c80fc941fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-27 H.J. Lu + + PR target/35657 + * config/i386/i386.c (ix86_function_arg_boundary): Align + decimal floating point to its natural boundary. + 2008-03-27 Richard Guenther PR middle-end/35716 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3dfb301962c..84a54d78bb0 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -4577,7 +4577,8 @@ ix86_function_arg_boundary (enum machine_mode mode, tree type) 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