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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2008 00:29:07 -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 #4 from pinskia at gcc dot gnu dot org 2008-10-08 00:29 -------
Reduced testcase.
FILE 1:
struct dns_ctx {
int dnsc_serv[6];
unsigned dnsc_nserv;
};
struct dns_ctx dns_defctx;
int dns_add_serv(int t) {
struct dns_ctx *ctx = &dns_defctx;
ctx->dnsc_serv[t] = 0;
}
--- CUT ---
FILE 2:
extern struct dns_ctx dns_defctx;
--- CUT ---
Though I am still figuring out if this is valid code or not really,
dns_defctx's type is incomplete.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-10-08 00:29:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37756