This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix PR 21275, PR21597 cygwin/mingw32 bootstrap regressions on trunk
- From: Richard Henderson <rth at redhat dot com>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: "'GCC Patches'" <gcc-patches at gcc dot gnu dot org>, "'Christopher Faylor'" <me at cgf dot cx>, "'Gerrit Haase'" <gp at familiehaase dot de>
- Date: Wed, 3 Aug 2005 17:58:49 -0700
- Subject: Re: [Patch] Fix PR 21275, PR21597 cygwin/mingw32 bootstrap regressions on trunk
- References: <20050803234959.GB17848@redhat.com> <000001c5988a$40adadc0$5d6d65da@anykey>
On Thu, Aug 04, 2005 at 12:19:58PM +1200, Danny Smith wrote:
> In C, we get: error: initializer element is not constant
Clearly that's what we get now. I'm asking if that's Right
and Proper with respect to what the format can support.
> extern int* __imp__i;
> #define i *__imp__i
> static int *p = &i;
>
> __imp__i gets fixed up to the real &i when the dll is loaded
And *only* __imp__i? In other words, the dll can't support
arbitrary relocations throughout the data section?
If so, then I guess staticp is correct as-is.
r~