[PATCH, fortran] Extend the builtin directive

Tobias Burnus tobias@codesourcery.com
Fri Nov 15 16:15:00 GMT 2019


On 11/14/19 9:29 PM, Szabolcs Nagy wrote:
> The builtin directive allows specifying the simd attribute for a builtin function. Similarly how the C language simd attribtue got extended to allow declaring a specific vector variant, update the fortran builtin directive too.

Sounds useful. For the Fortran side, I think it makes sense to wait 
until the C/C++ side has been solved. (See thread labelled "Extend the 
simd function attribute".)

However, I just noted:

> +      if (gfc_match (" , ") == MATCH_YES)
> +	if (gfc_match (" '%n'", &simdabi) != MATCH_YES)

This explicitly requires that the string is quoted using single quotes 
(') and not double quotes ("). I think that's acceptable for this 
special-purpose use, but, normally, Fortran permits both characters as 
string/character delimiter.

Cheers,

Tobias



More information about the Gcc-patches mailing list