[Ada] Do not clear Is_True_Constant flag on imported constants

Pierre-Marie de Rodat derodat@adacore.com
Fri Jun 18 08:38:26 GMT 2021


The flag is first set on them as for any other constants but then
cleared when the import pragma is processed.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* sem_prag.adb (Process_Import_Or_Interface): Do not
	artificially record a possible modification for a constant.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1006 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210618/8c832acb/attachment-0001.bin>


More information about the Gcc-patches mailing list