[Ada] Bump secondary stack alignment factor in full runtimes

Pierre-Marie de Rodat derodat@adacore.com
Fri Jun 12 08:35:46 GMT 2020

Use Standard'Maximum_Alignment * 2 unconditionally to accommodate
possible requirements by user code compiled with specific cpu/arch
options such as -mavx on x86 targets, which Gigi assumes the SS can

Such options influence what Standard'Maximum_Alignment returns and are
typically not used when s-secsta is compiled for the runtime.

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

2020-06-12  Olivier Hainque  <hainque@adacore.com>


	* libgnat/s-secsta.ads (Memory_Alignment): New constant, memory
	alignment for chunks and allocated blocks. Initialize to
	Standard'Maximum_Alignment * 2.
	(Chunk_Memory): Use it.
	* libgnat/s-secsta.adb (Round_Up): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1794 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200612/4cb83f22/attachment-0001.bin>

More information about the Gcc-patches mailing list