* config/i386/i386.c (ix86_force_to_memory): Always use
SImode push for HImode in -m32.
(ix86_free_from_memory): Likewise.
* gcc.dg/pr25023.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108537
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-12-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/25023
+ * config/i386/i386.c (ix86_force_to_memory): Always use
+ SImode push for HImode in -m32.
+ (ix86_free_from_memory): Likewise.
+
2005-12-14 Richard Sandiford <richard@codesourcery.com>
* gcc/config/arm/arm.md: Provide a big-endian version of the
}
break;
case HImode:
- /* It is better to store HImodes as SImodes. */
- if (!TARGET_PARTIAL_REG_STALL)
- operand = gen_lowpart (SImode, operand);
+ /* Store HImodes as SImodes. */
+ operand = gen_lowpart (SImode, operand);
/* FALLTHRU */
case SImode:
emit_insn (
if (mode == DImode || TARGET_64BIT)
size = 8;
- else if (mode == HImode && TARGET_PARTIAL_REG_STALL)
- size = 2;
else
size = 4;
/* Use LEA to deallocate stack space. In peephole2 it will be converted
+2005-12-14 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/25023
+ * gcc.dg/pr25023.c: New test.
+
2005-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.old-deja/g++.brendan/redecl1.C,
--- /dev/null
+/* PR debug/25023 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+/* { dg-options "-O2 -mtune=i686" { target { { i?86-*-* || x86_64-*-* } && ilp32 } } } */
+
+extern unsigned char v;
+
+float
+foo (void)
+{
+ return v;
+}