This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2 AArch64]: Re: [PATCH AArch64]: Add constraint letter for stack_protect_test pattern.
- From: Matthias Klose <doko at ubuntu dot com>
- To: James Greenhalgh <james dot greenhalgh at arm dot com>, Andrew Pinski <pinskia at gmail dot com>
- Cc: Venkataramanan Kumar <venkataramanan dot kumar at linaro dot org>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Patch Tracking <patch at linaro dot org>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, steve dot mcintyre at linaro dot org
- Date: Thu, 18 Sep 2014 00:57:28 +0200
- Subject: Re: [PATCH v2 AArch64]: Re: [PATCH AArch64]: Add constraint letter for stack_protect_test pattern.
- Authentication-results: sourceware.org; auth=none
- References: <CAJK_mQ1NB7gfroQuAi+H_+TXzb51KPaMK2EsEoFFswvTL4fCFQ at mail dot gmail dot com> <20140904081855 dot GA18028 at arm dot com> <CA+=Sn1nnBPtYycQTri3-7_P6KjyQjgYQ_+KCUODoqaK=NaVJoA at mail dot gmail dot com> <20140916220344 dot GA31613 at arm dot com> <54198936 dot 5030106 at ubuntu dot com>
Am 17.09.2014 um 15:14 schrieb Matthias Klose:
> Am 17.09.2014 um 00:03 schrieb James Greenhalgh:
>> If you have any other suggestions, or if "=&r" is actually correct and
>> I am misreading the documentation please let me know.
>
> with this patch I see a lot of ICEs in the testsuite for test cases built with
> -O3 (and a build defaulting to -fstack-protector-strong by default), all of the
> form:
>
> Executing on host: /home/doko/gcc/4.9/gcc-4.9-4.9.1/build/gcc/xgcc
> -B/home/doko/gcc/4.9/gcc-4.9-4.9.1/build/gcc/ -fno-diagnostics-show-caret -fdia
> gnostics-color=never -O3 -fomit-frame-pointer -funroll-all-loops
> -finline-functions -w -c -o 900116-1.o /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/g
> cc/testsuite/gcc.c-torture/compile/900116-1.c (timeout = 300)
> spawn /home/doko/gcc/4.9/gcc-4.9-4.9.1/build/gcc/xgcc
> -B/home/doko/gcc/4.9/gcc-4.9-4.9.1/build/gcc/ -fno-diagnostics-show-caret
> -fdiagnostics-color
> =never -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -w -c -o
> 900116-1.o /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/gcc/testsuite/gcc.c-
> torture/compile/900116-1.c
> /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/gcc/testsuite/gcc.c-torture/compile/900116-1.c:
> In function 'zloop':
> /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/gcc/testsuite/gcc.c-torture/compile/900116-1.c:14:1:
> error: insn does not satisfy its constraints:
> (insn 228 225 230 9 (parallel [
> (set (reg:DI 1 x1 [279])
> (unspec:DI [
> (mem/v/f/c:DI (plus:DI (reg/f:DI 31 sp)
> (const_int 24 [0x18])) [4 D.2626+0 S8 A64])
> (mem/v/f/c:DI (reg/f:DI 2 x2 [277]) [4
> __stack_chk_guard+0 S8 A64])
> ] UNSPEC_SP_TEST))
> (clobber (reg:DI 2 x2 [320]))
> ])
> /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/gcc/testsuite/gcc.c-torture/compile/900116-1.c:14
> 741 {stack_protect_test_di}
> (expr_list:REG_DEAD (reg/f:DI 13 x13 [277])
> (expr_list:REG_UNUSED (reg:DI 2 x2 [320])
> (nil))))
> /home/doko/gcc/4.9/gcc-4.9-4.9.1/src/gcc/testsuite/gcc.c-torture/compile/900116-1.c:14:1:
> internal compiler error: in copyprop_hardreg_forward_1, at regcprop.c:775
> Please submit a full bug report,
> with preprocessed source if appropriate.
>
> for now only tested with the 4.9 linaro branch, now testing with trunk.
seen with trunk r215323 as well, after disabling itm (--disable-libitm) which
currently doesn't seem to build.
Matthias