]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Don't crash on ghost packages when emitting CUDA symbols in ALI files
authorGhjuvan Lacambre <lacambre@adacore.com>
Mon, 14 Mar 2022 08:58:52 +0000 (09:58 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 16 May 2022 08:42:05 +0000 (08:42 +0000)
commit9eb55045f8d22919c47b38809afbcad7ad9a38d5
tree8bcb47b7f6312bac89633ede04b072d06481b0b9
parentf29e9e88965ade628873182a866bb26830994217
[Ada] Don't crash on ghost packages when emitting CUDA symbols in ALI files

Before this commit, a GNAT compiled with assertions would crash when
attempting to emit CUDA symbols in ALI files for spark_mode/ghost
packages, whose content is a single null statement.

gcc/ada/

* lib-writ.adb (Output_CUDA_Symbols): Check for null packages.
gcc/ada/lib-writ.adb