diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2008-03-27 18:52:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2008-03-27 11:52:18 -0700 |
commit | c84555eb6dbd6d1ba4faccca6ccabde13f0c3ce6 (patch) | |
tree | c7d4402863edfe8bfc94e35411e18beaf8ebe6e0 | |
parent | 75f8beae9795785e425c3d8dce5360a2b7ad1812 (diff) | |
download | gcc-c84555eb6dbd6d1ba4faccca6ccabde13f0c3ce6.zip gcc-c84555eb6dbd6d1ba4faccca6ccabde13f0c3ce6.tar.gz gcc-c84555eb6dbd6d1ba4faccca6ccabde13f0c3ce6.tar.bz2 |
re PR target/35657 (Alignments of DFP types aren't consistent)
2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
PR target/35657
* config/i386/i386.c (ix86_function_arg_boundary): Align
decimal floating point to its natural boundary.
From-SVN: r133649
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 529c230..5c80fc9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-27 H.J. Lu <hongjiu.lu@intel.com> + + PR target/35657 + * config/i386/i386.c (ix86_function_arg_boundary): Align + decimal floating point to its natural boundary. + 2008-03-27 Richard Guenther <rguenther@suse.de> PR middle-end/35716 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3dfb301..84a54d7 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 |