[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 11/24] tcg/optimize: Use tcg_constant_internal with constant f
From: |
Richard Henderson |
Subject: |
Re: [PULL 11/24] tcg/optimize: Use tcg_constant_internal with constant folding |
Date: |
Mon, 18 Jan 2021 11:03:02 -1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 1/18/21 10:17 AM, Laurent Vivier wrote:
> This commit breaks the build of my hello world test program with
> mips64el/stretch guest
> (and I guess some others too).
>
> cat > $CHROOT/tmp/hello.c <<EOF
> #include <stdio.h>
> int main(void)
> {
> printf("Hello World!\n");
> return 0;
> }
> EOF
>
> unshare --time --ipc --uts --pid --fork --kill-child --mount --mount-proc
> --root \
> $CHROOT gcc /tmp/hello.c -o /tmp/hello
> /tmp/hello.c:1:0: internal compiler error: Segmentation fault
> #include <stdio.h>
>
> executable file is not ELF
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
>
> # gcc --version
> gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> Any idea?
Working on it:
https://bugs.launchpad.net/bugs/1912065
There's a temp hack in there that may work for you. With no change, you'll see
an assert instead of a segv if you --enable-debug-tcg.
r~
- [PULL 08/24] tcg: Introduce TYPE_CONST temporaries, (continued)
- [PULL 08/24] tcg: Introduce TYPE_CONST temporaries, Richard Henderson, 2021/01/13
- [PULL 09/24] tcg/optimize: Improve find_better_copy, Richard Henderson, 2021/01/13
- [PULL 10/24] tcg/optimize: Adjust TempOptInfo allocation, Richard Henderson, 2021/01/13
- [PULL 13/24] tcg: Use tcg_constant_i32 with icount expander, Richard Henderson, 2021/01/13
- [PULL 12/24] tcg: Convert tcg_gen_dupi_vec to TCG_CONST, Richard Henderson, 2021/01/13
- [PULL 19/24] tcg: Add tcg_reg_alloc_dup2, Richard Henderson, 2021/01/13
- [PULL 11/24] tcg/optimize: Use tcg_constant_internal with constant folding, Richard Henderson, 2021/01/13
[PULL 14/24] tcg: Use tcg_constant_{i32,i64} with tcg int expanders, Richard Henderson, 2021/01/13
[PULL 15/24] tcg: Use tcg_constant_{i32,i64} with tcg plugins, Richard Henderson, 2021/01/13
[PULL 18/24] tcg: Remove movi and dupi opcodes, Richard Henderson, 2021/01/13
[PULL 16/24] tcg: Use tcg_constant_{i32,i64,vec} with gvec expanders, Richard Henderson, 2021/01/13
[PULL 22/24] tcg/ppc: Use tcg_constant_vec with tcg vec expanders, Richard Henderson, 2021/01/13
[PULL 20/24] tcg/i386: Use tcg_constant_vec with tcg vec expanders, Richard Henderson, 2021/01/13
[PULL 21/24] tcg: Remove tcg_gen_dup{8,16,32,64}i_vec, Richard Henderson, 2021/01/13
[PULL 17/24] tcg/tci: Add special tci_movi_{i32,i64} opcodes, Richard Henderson, 2021/01/13
[PULL 23/24] tcg/aarch64: Use tcg_constant_vec with tcg vec expanders, Richard Henderson, 2021/01/13
[PULL 24/24] decodetree: Open files with encoding='utf-8', Richard Henderson, 2021/01/13