Skip to content
Snippets Groups Projects
Commit 08bdc2ac authored by Andre Vehreschild's avatar Andre Vehreschild
Browse files

Fortran: Fix build on solaris [PR107635]

libgfortran/ChangeLog:

	PR fortran/107635
	* caf/single.c: Replace alloca with __builtin_alloca.
parent 8293b9e4
No related branches found
No related tags found
No related merge requests found
......@@ -672,12 +672,12 @@ _gfortran_caf_transfer_between_remotes (
if (!scalar_transfer)
{
const size_t desc_size = sizeof (*transfer_desc);
transfer_desc = alloca (desc_size);
transfer_desc = __builtin_alloca (desc_size);
memset (transfer_desc, 0, desc_size);
transfer_ptr = transfer_desc;
}
else if (opt_dst_charlen)
transfer_ptr = alloca (*opt_dst_charlen * src_size);
transfer_ptr = __builtin_alloca (*opt_dst_charlen * src_size);
else
{
buffer = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment