public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54758] New: accessing gcc builtins from fortran
@ 2012-09-30 8:07 Joost.VandeVondele at mat dot ethz.ch
2015-10-29 14:34 ` [Bug fortran/54758] " dominiq at lps dot ens.fr
0 siblings, 1 reply; 2+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2012-09-30 8:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54758
Bug #: 54758
Summary: accessing gcc builtins from fortran
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Joost.VandeVondele@mat.ethz.ch
I would like to experiment with prefetching in Fortran code (beyond
-fprefetch-loop-arrays). A convenient way to do this would be access the
gcc_builtins. I tried this the following way:
INTERFACE
SUBROUTINE builtin_prefetch(a) BIND(C,name="__builtin_prefetch")
USE ISO_C_BINDING, ONLY: C_FLOAT
REAL(KIND=C_FLOAT), dimension(*) :: a
END SUBROUTINE
END INTERFACE
real*4 :: data(100)
DO i=1,100
CALL builtin_prefetch(data(i))
data(i)=0
ENDDO
END
but it didn't work...
test.f90:(.text+0x36): undefined reference to `__builtin_prefetch'
no surprise, I guess, but it would be cool if it did.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/54758] accessing gcc builtins from fortran
2012-09-30 8:07 [Bug fortran/54758] New: accessing gcc builtins from fortran Joost.VandeVondele at mat dot ethz.ch
@ 2015-10-29 14:34 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 2+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-10-29 14:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54758
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-29
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed, but where do you expect to find "__builtin_prefetch"? in a way
similar to the patch at https://gcc.gnu.org/ml/fortran/2015-10/msg00163.html?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-29 14:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-30 8:07 [Bug fortran/54758] New: accessing gcc builtins from fortran Joost.VandeVondele at mat dot ethz.ch
2015-10-29 14:34 ` [Bug fortran/54758] " dominiq at lps dot ens.fr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).