[PATCH][RFC]Overloading intrinsics

Bernhard Reutner-Fischer rep.dot.nop@gmail.com
Sat Nov 10 20:47:00 GMT 2018


On 10 November 2018 10:36:06 CET, "Martin Liška" <mliska@suse.cz> wrote:

>>> !GCC$ builtin sinf attributes omp_simd_notinbranch

I would expect "attribute" singular, like in C.

I'm not opposed to your approach, but did we consider using -include glibc-simd-math.h via spec if lets say -O3 or  -mveclibabi=glibc ?

+      /* Make a guard to prevent recursive inclusion.  */
+      static bool preinclude_done = false;
+      const char *preinc = targetcm.c_preinclude ();

Hm. Why don't you call the target hook only if !preinclude_done?

+      if (!preinclude_done && preinc != NULL)
+	{
+	  preinclude_done = true;
+	  if (!load_file (preinc, NULL, false))
+	    exit (FATAL_EXIT_CODE);
+	}
+

thanks,



More information about the Fortran mailing list