[patch, libfortran] Fix PR 80687l build failure on nvptx

Thomas Koenig tkoenig@netcologne.de
Tue May 9 17:35:00 GMT 2017


Hello world,

the attached patch hopefully fixes the build failure on nvptx introduced
by my recent matmul library patch.  It uses malloc/free if VLAs do not
work.

Thomas S., does this fix the problem?

Tested on x86_64 to make sure that the matmul tests still pass;
full regression test still in progress.

OK for trunk if the nvptx problem is fixed and regression-tests pass?

Regards

	Thomas

2017-05-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/80687
	* acinclude.m4 (LIBGFOR_CHECK_VLA):  New macro.
	* configure.ac: Use it.
	* config.h.in:  Regenerated.
	* configure:  Regenerated.
	* m4/matmul_internal.m4:  'matmul_name`:  Use
	malloc/free instead of VLA if HAVE_VLA is undefined.
	t1 to a VLA of the required size.
         * generated/matmul_c10.c: Regenerated.
         * generated/matmul_c16.c: Regenerated.
         * generated/matmul_c4.c: Regenerated.
         * generated/matmul_c8.c: Regenerated.
         * generated/matmul_i1.c: Regenerated.
         * generated/matmul_i16.c: Regenerated.
         * generated/matmul_i2.c: Regenerated.
         * generated/matmul_i4.c: Regenerated.
         * generated/matmul_i8.c: Regenerated.
         * generated/matmul_r10.c: Regenerated.
         * generated/matmul_r16.c: Regenerated.
         * generated/matmul_r4.c: Regenerated.
         * generated/matmul_r8.c: Regenerated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 49490 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20170509/f02cf926/attachment.bin>


More information about the Fortran mailing list