Commit 0b778f9f by Bernd Edlinger Committed by Bernd Edlinger

re PR middle-end/89544 (Argument marshalling incorrectly assumes stack slots are…

re PR middle-end/89544 (Argument marshalling incorrectly assumes stack slots are naturally aligned.)

2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR middle-end/89544
        * gcc.target/arm/unaligned-argument-3.c: New test.

From-SVN: r274987
parent 70cdb21e
2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR middle-end/89544
* gcc.target/arm/unaligned-argument-3.c: New test.
2019-08-27 Marek Polacek <polacek@redhat.com> 2019-08-27 Marek Polacek <polacek@redhat.com>
PR c++/81676 - bogus -Wunused warnings in constexpr if. PR c++/81676 - bogus -Wunused warnings in constexpr if.
......
/* { dg-do compile } */
/* { dg-require-effective-target arm_arm_ok } */
/* { dg-options "-marm -mno-unaligned-access -O3" } */
typedef int __attribute__((aligned(1))) s;
void x(char*, s*);
void f(char a, s f)
{
x(&a, &f);
}
/* { dg-final { scan-assembler-times "str\t\[^\\n\]*\\\[sp\\\]" 1 } } */
/* { dg-final { scan-assembler-times "str\t\[^\\n\]*\\\[sp, #3\\\]" 0 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment