OSDN Git Service

* doc/extend.texi (dllimport): Document that pointers to dllimport'd
authordannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Nov 2007 22:05:38 +0000 (22:05 +0000)
committerdannysmith <dannysmith@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Nov 2007 22:05:38 +0000 (22:05 +0000)
functions can be used as constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130124 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/extend.texi

index dcdfc68..320816b 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-12  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * doc/extend.texi (dllimport): Document that pointers to dllimport'd
+       functions can be used as constant.
+
 2007-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR rtl-optimization/34035
index 82df683..1c0d476 100644 (file)
@@ -2126,9 +2126,12 @@ versions of the GNU linker, but can now be avoided by passing the
 functions, using the attribute for a variable eliminates a thunk in
 the DLL@.
 
-One drawback to using this attribute is that a pointer to a function
-or variable marked as @code{dllimport} cannot be used as a constant
-address.  On Microsoft Windows targets, the attribute can be disabled
+One drawback to using this attribute is that a pointer to a
+@emph{variable} marked as @code{dllimport} cannot be used as a constant
+address. However, a pointer to a @emph{function} with the
+@code{dllimport} attribute can be used as a constant initializer; in
+this case, the address of a stub function in the import lib is
+referenced.  On Microsoft Windows targets, the attribute can be disabled
 for functions by setting the @option{-mnop-fun-dllimport} flag.
 
 @item eightbit_data