8000 [MIPS] ICE: libgcc2.c:271:1: error: unrecognizable insn with -march=gs464 · Issue #40 · loongson-community/gcc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MIPS] ICE: libgcc2.c:271:1: error: unrecognizable insn with -march=gs464 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
FlyGoat opened this issue Sep 29, 2018 · 5 comments
Open
Assignees
Milestone

Comments

@FlyGoat
Copy link
Member
FlyGoat commented Sep 29, 2018
...
../../../libgcc/libgcc2.c: In function '__absvti2':
../../../libgcc/libgcc2.c:271:1: error: unrecognizable insn:
 }
 ^
(insn/f 68 67 69 4 (parallel [
            (set (mem/c:DI (plus:DI (reg/f:DI 29 $sp)
                        (const_int 8 [0x8])) [1  S8 A64])
                (reg:DI 31 $31))
            (set (mem/c:DI (reg/f:DI 29 $sp) [1  S8 A64])
                (reg:DI 28 $28))
        ]) "../../../libgcc/libgcc2.c":257 -1
     (expr_list:REG_DEAD (reg:DI 31 $31)
        (expr_list:REG_FRAME_RELATED_EXPR (parallel [
                    (set/f (mem/c:DI (plus:DI (reg/f:DI 29 $sp)
                                (const_int 8 [0x8])) [1  S8 A64])
                        (reg:DI 31 $31))
                    (set/f (mem/c:DI (reg/f:DI 29 $sp) [1  S8 A64])
                        (reg:DI 28 $28))
                ])
            (nil))))
during RTL pass: cprop_hardreg
../../../libgcc/libgcc2.c:271:1: internal compiler error: in extract_insn, at recog.c:2304

Can be reproduced if bootstrap GCC is newer than GCC-6.

Workaround by using GCC-5 or GCC-6 as bootstrap but we still have to find the root cause.

@FlyGoat FlyGoat added this to the gcc-8-branch milestone Sep 29, 2018
@FlyGoat FlyGoat self-assigned this Sep 29, 2018
@xiangzhai
Copy link

Workaround by using GCC-5

Verify bootstrap with gcc-5.5?

@FlyGoat
8000 Copy link
Member Author
FlyGoat commented Sep 29, 2018

Workaround by using GCC-5

Verify bootstrap with gcc-5.5?

Yes.. Built a cross toolchain.

@FlyGoat
Copy link
Member Author
FlyGoat commented Sep 29, 2018

Maybe we can try build without libgcc and test via DejaGnu to locate the issue in to specific case?

@FlyGoat
Copy link
Member Author
FlyGoat commented Sep 29, 2018

GCC configured as
../configure --target=mips64el-redhat-linux --prefix=/opt/godson-toolchain --with-arch=gs464 --with-abi=64 --disable-nls --disable-libatomic --disable-libgomp --disable-libmpx --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --disable-multilib --disable-decimal-float --disable-threads --disable-libatomic --disable-libgomp --disable-libmpx --disable-libquadmath --disable-libssp --disable-libvtv --disable-shared --disable-libgcc --enable-languages=c,c++

fails almost all the test with ICE... Bootstrap is GCC-8.2.1 on Archlinux...

@xiangzhai
Copy link

fails almost all the test with ICE... Bootstrap is GCC-8.2.1

emm... ditto! bootstrap with gcc-9-dev on fc25.x86_64

FlyGoat added a commit that referenced this issue Oct 14, 2018
Patch from Chenghua Xu <xuchenghua@loongson.cn>
This sould solve: #40

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
FlyGoat added a commit that referenced this issue Oct 14, 2018
Patch from Chenghua Xu <xuchenghua@loongson.cn>
This sould solve: #40

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0