🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2679

Taking address of a built-in function

#2679
From: Roland McGrath
Date: Thu, 25 May 1989 21:01
7 lines
750 bytes
If a GCC built-in, such as __builtin_abs, is used in an address context,
rather than a function context, as in:
	int (*foo)(int) = __builtin_abs;
GCC treats this as if it were not a builtin function.

What is should do, I think, is generate a static __builtin_abs function
and use its address.
Technical Details
Message-ID: <8905252101.AA05269@paris.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%paris.Berkeley.EDU

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!GINGER.BERKELEY.EDU!mcgrath%paris.Berkeley.EDU
From: mcgrath%paris.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath)
Newsgroups: gnu.gcc.bug
Subject: Taking address of a built-in function
Message-ID: <8905252101.AA05269@paris.Berkeley.EDU>
Date: 25 May 89 21:01:45 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 7