]> git.ipfire.org Git - thirdparty/gcc.git/commit
Ada: Fix ICE in fld_incomplete_type_of when building GtkAda with LTO (2)
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Dec 2025 19:50:09 +0000 (20:50 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 22 Dec 2025 19:52:03 +0000 (20:52 +0100)
commitf5b2f72eb0e17345ba4c8203e80fce5baa5f3574
treee71da50deadcc8dad22f376425d210325221b8bd
parent3b066c183949bfde30ec2221d6bb4bd32ebd01c4
Ada: Fix ICE in fld_incomplete_type_of when building GtkAda with LTO (2)

The change incorrectly resets the alias set of the old pointer/reference,
which leads to the miscompilation of a few ACATS tests on some platforms.

gcc/ada/
PR ada/123060
* gcc-interface/utils.cc (update_pointer_to): Preserve the alias
sets present on the old pointer and old reference, if any.
gcc/ada/gcc-interface/utils.cc