extend.texi (dllimport): Document that pointers to dllimport'd functions can be used...
authorDanny Smith <dannysmith@users.sourceforge.net>
Mon, 12 Nov 2007 22:05:38 +0000 (22:05 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Mon, 12 Nov 2007 22:05:38 +0000 (22:05 +0000)
* doc/extend.texi (dllimport): Document that pointers to dllimport'd
functions can be used as constant.

From-SVN: r130124

gcc/ChangeLog
gcc/doc/extend.texi

index dcdfc68db96d336d5e66974b008c26d53b170c51..320816b31df0059282bbddfc1f81bce3c2035104 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 82df683bd9ed6ad2a02f9ac54e3b87c3b75d85a2..1c0d476a63aebd5f4fd9f119646e987914f72e32 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