[Bug tree-optimization/37756] ICE building object file with -O3 and -combine

zlynx at acm dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 8 00:55:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list