public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/16819] [3.4/3.5 regression] internal error (non-static function call, empty struct as arg) Date: Thu, 29 Jul 2004 13:37:00 -0000 [thread overview] Message-ID: <20040729133723.19925.qmail@sourceware.org> (raw) In-Reply-To: <20040729123210.16819.lindig@cs.uni-sb.de> ------- Additional Comments From bangerth at dealii dot org 2004-07-29 13:37 ------- Here's something likely smaller: ------------------------ extern int printf (char *, ...); int errors = 0; void failed() { printf (""); errors++; } union ytd { double yvd[1]; } yvg; union xtg { unsigned char xvm; } xvn; struct xtc { unsigned char xvf; unsigned int xvd[2]; } xvo[2]; struct xtb { unsigned int *xvc; unsigned char xvb; double xva[2][1]; } xvp; union xta { } xvq; void yfa(union ytd ypc) { if (yvg.yvd[0] != ypc.yvd[0]) failed (); } void xfa(union xtg xpa, struct xtc xpb[2], struct xtb xpc, union xta xpd) { if (xvn.xvm != xpa.xvm) failed (); if (xvo[1].xvf != xpb[1].xvf) failed (); if (xvo[0].xvd[0] != xpb[0].xvd[0]) failed (); if (xvp.xvc != xpc.xvc) failed (); if (xvp.xvb != xpc.xvb) failed (); if (xvp.xva[1][0] != xpc.xva[1][0]) failed (); if (xvp.xva[0][0] != xpc.xva[0][0]) failed (); } int main() { yfa (yvg); xfa (xvn, xvo, xvp, xvq); } ------------------------------ g/x> /home/bangerth/bin/gcc-3.5-pre/bin/gcc -O3 -c x.c x.c: In function `main': x.c:39: error: unable to find a register to spill in class `AREG' x.c:39: error: this is the insn: (insn:HI 74 85 75 0 (set (reg:HI 1 dx [94]) (unspec:HI [ (compare:CCFPU (reg:DF 9 st(1) [orig:72 yvg.yvd ] [72]) (reg:DF 8 st [orig:73 ypc ] [73])) ] 24)) 21 {*cmpfp_2u_1} (nil) (expr_list:REG_DEAD (reg:DF 9 st(1) [orig:72 yvg.yvd ] [72]) (expr_list:REG_DEAD (reg:DF 8 st [orig:73 ypc ] [73]) (nil)))) x.c:39: internal compiler error: in spill_failure, at reload1.c:1887 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. While the ICE happens in the same place in reload1 all the time, the exact insn that fails is different. If someone fixes this PR, please also check the original testcase. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16819
next prev parent reply other threads:[~2004-07-29 13:37 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-07-29 12:32 [Bug c/16819] New: " gcc-bugzilla at gcc dot gnu dot org 2004-07-29 13:21 ` [Bug c/16819] [3.4/3.5 regression] " bangerth at dealii dot org 2004-07-29 13:37 ` bangerth at dealii dot org [this message] 2004-07-29 14:32 ` [Bug target/16819] " pinskia at gcc dot gnu dot org 2004-08-02 22:40 ` [Bug target/16819] [3.4/3.5 regression] ICE with empty struct as arg reichelt at gcc dot gnu dot org 2004-10-07 16:22 ` [Bug target/16819] [3.4/4.0 " pinskia at gcc dot gnu dot org 2004-11-01 0:47 ` mmitchel at gcc dot gnu dot org 2004-12-22 5:45 ` aoliva at gcc dot gnu dot org 2004-12-22 16:34 ` pinskia at gcc dot gnu dot org 2004-12-23 16:09 ` cvs-commit at gcc dot gnu dot org 2004-12-23 16:26 ` [Bug target/16819] [3.4 " pinskia at gcc dot gnu dot org 2004-12-23 21:39 ` cvs-commit at gcc dot gnu dot org 2004-12-23 23:09 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040729133723.19925.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).