Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla

Bug 308

Summary: cc1d: internal compiler error: in eval_builtin, at d/d-frontend.cc:475
Product: GDC Reporter: Cecil Ward <cecil>
Component: gdcAssignee: Iain Buclaw <ibuclaw>
Status: NEW ---    
Severity: critical    
Priority: ---    
Version: 7.x   
Hardware: ARM   
OS: Linux   
Attachments: D source code compiled

Description Cecil Ward 2018-10-02 05:34:18 CEST
Created attachment 101 [details]
D source code compiled

Arm 32-bit, Ubuntu 18.04

gdc -frelease -O3 -S -c  pow.d

Compiler fails with error message:

cc1d: internal compiler error: in eval_builtin, at d/d-frontend.cc:475Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
Comment 1 Cecil Ward 2018-10-02 05:48:48 CEST
Also fails with v8.x for Aarch64 target running on x64 machine

cc1d: internal compiler error: in eval_builtin, at d/d-frontend.cc:475
linux-vdso.so.1: Permission denied
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
Compiler returned: 1
Comment 2 Cecil Ward 2018-10-02 05:52:22 CEST
Is all good in gdc v6.x target x64 for example.
Comment 3 Iain Buclaw 2018-10-21 01:25:14 CEST
I can't say that I can reproduce this on master for both ARM and x86_64.

Looking at what hits eval_builtin, it would appear to be ICEing because __builtin_expect is not recognized as a built-in.