This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix PR 21275, PR21597 cygwin/mingw32 bootstrap regressions on trunk


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]