Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 308 - cc1d: internal compiler error: in eval_builtin, at d/d-frontend.cc:475
Summary: cc1d: internal compiler error: in eval_builtin, at d/d-frontend.cc:475
Status: NEW
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: 7.x
Hardware: ARM Linux
: --- critical
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2018-10-02 05:34 CEST by Cecil Ward
Modified: 2023-01-07 21:02 CET (History)
0 users

See Also:


Attachments
D source code compiled (2.92 KB, application/octet-stream)
2018-10-02 05:34 CEST, Cecil Ward
Details

Note You need to log in before you can comment on or make changes to this bug.
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.