This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37756] ICE building object file with -O3 and -combine
- From: "zlynx at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2008 00:54:17 -0000
- Subject: [Bug tree-optimization/37756] ICE building object file with -O3 and -combine
- References: <bug-37756-10271@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from zlynx at acm dot org 2008-10-08 00:54 -------
I think you missed some of your explanation.
Do you mean that it may not be valid to take the address of a global struct
with partial definition? For example in udns_init.c which does not define
dns_defctx, but has this code:
int dns_init(struct dns_ctx *ctx, int do_open) {
if (!ctx)
ctx = &dns_defctx;
[...]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37756