re PR target/60034 ("invalid expression as operand" in aarch64 inline asm)

PR target/60034
* aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
section anchor.

PR target/60034
* gcc.target/aarch64/pr60034.c: New file.

From-SVN: r208949
This commit is contained in:
Kugan Vivekanandarajah 2014-03-30 22:41:59 +00:00 committed by Kugan Vivekanandarajah
parent 429749e23b
commit 6c031d8dfd
4 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
PR target/60034
* aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
section anchor.
2014-03-30 Uros Bizjak <ubizjak@gmail.com>
* config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.

View File

@ -3196,6 +3196,9 @@ aarch64_classify_address (struct aarch64_address_info *info,
}
else if (SYMBOL_REF_DECL (sym))
align = DECL_ALIGN (SYMBOL_REF_DECL (sym));
else if (SYMBOL_REF_HAS_BLOCK_INFO_P (sym)
&& SYMBOL_REF_BLOCK (sym) != NULL)
align = SYMBOL_REF_BLOCK (sym)->alignment;
else
align = BITS_PER_UNIT;

View File

@ -1,3 +1,8 @@
2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
PR target/60034
* gcc.target/aarch64/pr60034.c: New file.
2014-03-29 Adam Butcher <adam@jessamine.co.uk>
PR c++/60626

View File

@ -0,0 +1,10 @@
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -O" } */
static unsigned long global_max_fast;
void __libc_mallopt (int param_number, int value)
{
__asm__ __volatile__ ("# %[_SDT_A21]" :: [_SDT_A21] "nor" ((global_max_fast)));
global_max_fast = 1;
}