~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/18/18d9da35e2ee4847f23dc29ffb2bbde6bf011d36.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Fix PR target/60034 (AArch64), taken from the trunk.
 
2
 
 
3
gcc/
 
4
 
 
5
2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
6
 
 
7
        PR target/60034
 
8
        * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
 
9
        section anchor.
 
10
 
 
11
gcc/testsuite/
 
12
 
 
13
2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
14
 
 
15
        PR target/60034
 
16
        * gcc.target/aarch64/pr60034.c: New file.
 
17
 
 
18
--- a/src/gcc/testsuite/gcc.target/aarch64/pr60034.c
 
19
+++ b/src/gcc/testsuite/gcc.target/aarch64/pr60034.c
 
20
@@ -0,0 +1,10 @@
 
21
+/* { dg-do compile } */
 
22
+/* { dg-options "-std=gnu99 -O" } */
 
23
+
 
24
+static unsigned long global_max_fast;
 
25
+
 
26
+void __libc_mallopt (int param_number, int value)
 
27
+{
 
28
+ __asm__ __volatile__ ("# %[_SDT_A21]" :: [_SDT_A21] "nor" ((global_max_fast)));
 
29
+ global_max_fast = 1;
 
30
+}
 
31
--- a/src/gcc/config/aarch64/aarch64.c
 
32
+++ b/src/gcc/config/aarch64/aarch64.c
 
33
@@ -3196,6 +3196,9 @@
 
34
                }
 
35
              else if (SYMBOL_REF_DECL (sym))
 
36
                align = DECL_ALIGN (SYMBOL_REF_DECL (sym));
 
37
+             else if (SYMBOL_REF_HAS_BLOCK_INFO_P (sym)
 
38
+                      && SYMBOL_REF_BLOCK (sym) != NULL)
 
39
+               align = SYMBOL_REF_BLOCK (sym)->alignment;
 
40
              else
 
41
                align = BITS_PER_UNIT;
 
42