[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1016701: gdc-12: internal compiler error: in add_stack_var, at cfgexpand.cc:476



Excerpts from Reiner Herrmann's message of August 5, 2022 6:44 pm:
> Package: gdc-12
> Version: 12.1.0-7
> Severity: important
> 
> Hi,
> 
> when compiling src:ii-esu (1.0a.dfsg2-1) with gdc instead of ldc, gdc is crashing with
> the following trace:
> 
>> gdc -o ii-esu -freport-bug -Iimport -Isrc -Wdeprecated -frelease -g -O2 -ffile-prefix-map=/tmp/debian/ii-esu/ii-esu=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now import/SDL.d import/SDL_active.d import/SDL_audio.d import/SDL_byteorder.d import/SDL_cdrom.d import/SDL_copying.d import/SDL_endian.d import/SDL_error.d import/SDL_events.d import/SDL_getenv.d import/SDL_joystick.d import/SDL_keyboard.d import/SDL_keysym.d import/SDL_keysym_.d import/SDL_mixer.d import/SDL_mouse.d import/SDL_mutex.d import/SDL_quit.d import/SDL_rwops.d import/SDL_syswm.d import/SDL_thread.d import/SDL_timer.d import/SDL_types.d import/SDL_version_.d import/SDL_video.d import/bulletml.d import/opengl.d import/openglu.d src/es/basis.d src/es/boot.d src/es/cloneable.d src/es/enemy.d src/es/field.d src/es/gamemanager.d src/es/mainloop.d src/es/mouse.d src/es/moving.d src/es/pointer.d src/es/rand.d src/es/screen.d src/es/shape.d src/es/ship.d src/es/shot.d src/es/sound.d src/es/stage.d -lSDL -lGL -lSDL_mixer
>> d21: warning: command-line option ‘-Wformat=1’ is valid for C/C++/ObjC/ObjC++ but not for D
>> d21: warning: ‘-Werror=’ argument ‘-Werror=format-security’ is not valid for D
>> d21: warning: command-line option ‘-Wdate-time’ is valid for C/C++/Fortran/ObjC/ObjC++ but not for D
>> during GIMPLE pass: local-fnsummary
>> In function ‘_d_HookTraceImpl’:
>> d21: internal compiler error: in add_stack_var, at cfgexpand.cc:476
>> 0x76e8af add_stack_var
>> 	../../src/gcc/cfgexpand.cc:476
>> 0xa0363c expand_one_var
>> 	../../src/gcc/cfgexpand.cc:1824
>> 0xa03730 estimated_stack_frame_size(cgraph_node*)
>> 	../../src/gcc/cfgexpand.cc:2103
>> 0xc187cf compute_fn_summary(cgraph_node*, bool)
>> 	../../src/gcc/ipa-fnsummary.cc:3108
>> 0xc18b59 compute_fn_summary_for_current
>> 	../../src/gcc/ipa-fnsummary.cc:3237
>> 0xc18b59 execute
>> 	../../src/gcc/ipa-fnsummary.cc:4852
>> Please submit a full bug report, with preprocessed source.
>> Please include the complete backtrace with any bug report.
>> See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
> 
> See also the build log on salsa CI [0].
> Because of this crash I switched ii-esu to build with ldc instead of gdc [1], which works
> without problems (though it is available for less architectures).
> 

Reduced and raised bug report in gcc.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106555

Iain.


Reply to: