diff mbox

[4.8,AArch64] Backport r207785 from trunk: Fix PCH on AArch64, (PR pch/60010)

Message ID 551535EF.908@arm.com
State New
Headers show

Commit Message

Alan Lawrence March 27, 2015, 10:50 a.m. UTC
Original post https://gcc.gnu.org/ml/gcc-patches/2014-01/msg02096.html

Tested check-gcc on aarch64-none-linux-gnu (native), fixes all variants of
gcc.dg/pch/largefile.c (below).

Ok?

Cheers, Alan

gcc/ChangeLog:

         Backport r207785 from mainline
         2014-01-31  Kyle McMartin <kyle@redhat.com>

                 PR pch/60010
                 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.

-----
Tests that now work, but didn't before:

gcc.dg/pch/largefile.c   -O0  assembly comparison
gcc.dg/pch/largefile.c   -O1  assembly comparison
gcc.dg/pch/largefile.c   -O2  assembly comparison
gcc.dg/pch/largefile.c   -O3 -fomit-frame-pointer  assembly comparison
gcc.dg/pch/largefile.c   -O3 -g  assembly comparison
gcc.dg/pch/largefile.c   -Os  assembly comparison
gcc.dg/pch/largefile.c  -O0 -g assembly comparison
largefile.c   -O0  -I. -Dwith_PCH (test for excess errors)
largefile.c   -O1  -I. -Dwith_PCH (test for excess errors)
largefile.c   -O2  -I. -Dwith_PCH (test for excess errors)
largefile.c   -O3 -fomit-frame-pointer  -I. -Dwith_PCH (test for excess errors)
largefile.c   -O3 -g  -I. -Dwith_PCH (test for excess errors)
largefile.c   -Os  -I. -Dwith_PCH (test for excess errors)
largefile.c  -O0 -g -I. -Dwith_PCH (test for excess errors)

Old tests that failed, that have disappeared: (Eeek!)

largefile.c   -O0  -I. -Dwith_PCH (internal compiler error)
largefile.c   -O1  -I. -Dwith_PCH (internal compiler error)
largefile.c   -O2  -I. -Dwith_PCH (internal compiler error)
largefile.c   -O3 -fomit-frame-pointer  -I. -Dwith_PCH (internal compiler error)
largefile.c   -O3 -g  -I. -Dwith_PCH (internal compiler error)
largefile.c   -Os  -I. -Dwith_PCH (internal compiler error)
largefile.c  -O0 -g -I. -Dwith_PCH (internal compiler error)
diff mbox

Patch

commit 39f9a388f15e12f43e3f59c314325cc087eab377
Author: Alan Lawrence <alalaw01@moonshot1-dsg-1.cambridge.arm.com>
Date:   Tue Mar 10 12:20:12 2015 +0000

    Kyle McMartin patch

diff --git a/gcc/config/host-linux.c b/gcc/config/host-linux.c
index 1f10823..0774ecf 100644
--- a/gcc/config/host-linux.c
+++ b/gcc/config/host-linux.c
@@ -86,6 +86,8 @@ 
 # define TRY_EMPTY_VM_SPACE	0x60000000
 #elif defined(__mc68000__)
 # define TRY_EMPTY_VM_SPACE	0x40000000
+#elif defined(__aarch64__)
+# define TRY_EMPTY_VM_SPACE	0x1000000000
 #elif defined(__ARM_EABI__)
 # define TRY_EMPTY_VM_SPACE     0x60000000
 #elif defined(__mips__) && defined(__LP64__)