libmvec in gcc to have vector math in fortran
Joseph Myers
joseph@codesourcery.com
Fri Jun 15 22:41:00 GMT 2018
On Fri, 15 Jun 2018, Thomas Koenig wrote:
> Hi Richard,
>
> > First and foremost we need a syntax that actually works for the
> > Fortran frontend and a way to automatically include this special
> > header / module.
>
> I can imagine parsing the relevant headers while compiling gfortran
> and generating C code from it, which could then be #included in the
> compiler source code. It should be possible to extend mathbuiltins.def
> that way.
The libmvec functions present depend on the multilib (for example, glibc
only currently supports them for x86_64, not for 32-bit x86). Given this
multilib dependence, parsing the glibc headers when building the compiler
itself is probably not a sensible option.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list