This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jul 2008 21:20:04 -0000
- Subject: [Bug ada/36207] [4.4 regression] Ada bootstrap fails in uintp.adb:1595
- References: <bug-36207-8837@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2008-07-11 21:20 -------
> I think it's actually the same problem, the patch that has fixed it on other
> platforms probably doesn't behave the same everywhere.
Yep, PE-COFF has a custom binds_local_p hook that doesn't reject DECL_EXTERNAL.
That's OK according to http://gcc.gnu.org/ml/gcc/2008-07/msg00205.html
Aaron, could you conduct a small experiment? In winnt.c:i386_pe_binds_local_p,
just before the 'return true', could you add
gcc_assert (!(TREE_CODE (exp) == VAR_DECL && DECL_EXTERNAL (exp)));
and see whether it triggers during an Ada bootstrap? If so, what's 'exp'?
Thanks in advance.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36207