[PATCH] Support simd function declarations via a pre-include.

Jakub Jelinek jakub@redhat.com
Mon Nov 19 12:33:00 GMT 2018


On Mon, Nov 19, 2018 at 01:15:43PM +0100, Martin Liška wrote:
> 2018-11-15  Martin Liska  <mliska@suse.cz>
> 
> 	* config/gnu-user.h (TARGET_F951_OPTIONS): New.
> 	* gcc.c (find_fortran_preinclude_file): New function
> 	to handle Fortran pre-include.
> 
> gcc/fortran/ChangeLog:
> 
> 2018-11-15  Martin Liska  <mliska@suse.cz>
> 
> 	* decl.c (gfc_match_gcc_builtin): New function.
> 	* gfortran.h (struct vect_builtin_tuple): New.
> 	(gfc_adjust_builtins): Likewise.
> 	* lang-specs.h (TARGET_F951_OPTIONS): New.
> 	(F951_OPTIONS): Use it.
> 	* lang.opt: Add new option -fpre-include.
> 	* match.h (gfc_match_gcc_builtin): Declare new function.
> 	* parse.c (decode_gcc_attribute): Handle builtin.
> 	(parse_progunit): Call gfc_adjust_builtins.
> 	* scanner.c (gfc_new_file): Load pre-included header file
> 	when provided.
> 	* trans-intrinsic.c (add_simd_flag_for_built_in): New.
> 	(gfc_adjust_builtins): Likewise.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-11-15  Martin Liska  <mliska@suse.cz>
> 
> 	* gfortran.dg/simd-builtins-1.f90: New test.
> 	* gfortran.dg/simd-builtins-1.h: New test.
> 	* gfortran.dg/simd-builtins-2.f90: New test.
> 	* gfortran.dg/simd-builtins-3.f90: New test.
> 	* gfortran.dg/simd-builtins-3.h: New test.
> 	* gfortran.dg/simd-builtins-4.f: New test.
> 	* gfortran.dg/simd-builtins-4.h: New test.
> 	* gfortran.dg/simd-builtins-5.f: New test.
> 	* gfortran.dg/simd-builtins-6.f90: New test.

LGTM.  Please give Fortran maintainers 2 days so that they can comment on it
before committing.

	Jakub



More information about the Fortran mailing list