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: dannysmith at users dot sourceforge dot net, "'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 16:49:59 -0700
- Subject: Re: [Patch] Fix PR 21275, PR21597 cygwin/mingw32 bootstrap regressions on trunk
- References: <20050803181626.GA16865@redhat.com> <000c01c59883$c0275cb0$ba4861cb@anykey>
On Thu, Aug 04, 2005 at 11:33:26AM +1200, Danny Smith wrote:
> Right. So, the test for DECL_NON_ADDR_CONST_P/DECL_DLLIMPORT_P should
> be removed from staticp and the case ADDR_EXPR test in
> varasm.c:initializer_constant_valid_p should test both var amd function
> dllimports (as per my patch). Should I add something like:
Hmm. I'm not sure what DECL_NON_ADDR_CONST_P is, or if such a
change is appropriate. Now does DECL_DLLIMPORT_P relate to
DECL_NON_ADDR_CONST_P?
Let me clarify one point: will PE relocations handle
extern int i __attribute__((dllimport));
static int *p = &i;
? I know we can for ELF; this will result in a runtime relocation
being resolved at &p for &i.
r~