Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc in emit_push_insn(), ignore align...



details:   https://anonhg.NetBSD.org/src/rev/fcd78d882ee1
branches:  trunk
changeset: 770258:fcd78d882ee1
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Oct 09 21:17:33 2011 +0000

description:
in emit_push_insn(), ignore alignment if we don't have a type.
works around a gcc ICE on m68k.  from mrg.

diffstat:

 external/gpl3/gcc/dist/gcc/expr.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 02945ea35835 -r fcd78d882ee1 external/gpl3/gcc/dist/gcc/expr.c
--- a/external/gpl3/gcc/dist/gcc/expr.c Sun Oct 09 21:16:00 2011 +0000
+++ b/external/gpl3/gcc/dist/gcc/expr.c Sun Oct 09 21:17:33 2011 +0000
@@ -3764,7 +3764,8 @@
   xinner = x;
 
   if (mode == BLKmode
-      || (STRICT_ALIGNMENT && align < GET_MODE_ALIGNMENT (mode)))
+      || (STRICT_ALIGNMENT && align < GET_MODE_ALIGNMENT (mode)
+         && type != NULL_TREE))
     {
       /* Copy a block into the stack, entirely or partially.  */
 



Home | Main Index | Thread Index | Old Index