public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/56344] ICE for program with very large structs returned by value Date: Mon, 18 Feb 2013 11:16:00 -0000 [thread overview] Message-ID: <bug-56344-4-Est6Z0jr8G@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-56344-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56344 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2013-02-18 Summary|ICE for program with larger |ICE for program with very |automatic structs |large structs returned by | |value Ever Confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-18 11:09:32 UTC --- Confirmed. Returning a struct of size > 2^31 by value ICEs like the following: t.c: In function 'main': t.c:34:10: internal compiler error: Segmentation fault result = mulm(m1, m2); ^ 0xad765d crash_signal /space/rguenther/src/svn/trunk/gcc/toplev.c:332 0x6d405b store_one_arg /space/rguenther/src/svn/trunk/gcc/calls.c:4707 0x6ceba4 expand_call(tree_node*, rtx_def*, int) /space/rguenther/src/svn/trunk/gcc/calls.c:3042 0x7f3634 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**) /space/rguenther/src/svn/trunk/gcc/expr.c:10207 Program received signal SIGSEGV, Segmentation fault. 0x000000000065b81f in store_one_arg (arg=0x7fffffffaf20, argblock=0x7ffff5ac2560, flags=0, variable_size=0, reg_parm_stack_space=0) at /space/rguenther/src/svn/gcc-4_7-branch/gcc/calls.c:4675 4675 stack_usage_map[i] = 1; (gdb) p i $1 = -1990967296 my advice: don't do it ;) (it won't work at runtime anyway) I think the middle-end should sorry (), the frontends eventually warn (or reject if possible).
next prev parent reply other threads:[~2013-02-18 11:16 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-15 15:04 [Bug c/56344] New: ICE for program with larger automatic structs georggcc at googlemail dot com 2013-02-15 15:16 ` [Bug c/56344] " georggcc at googlemail dot com 2013-02-18 11:16 ` rguenth at gcc dot gnu.org [this message] 2013-02-22 14:28 ` [Bug middle-end/56344] ICE for program with very large structs returned by value mpolacek at gcc dot gnu.org 2013-02-22 14:34 ` mpolacek at gcc dot gnu.org 2013-02-26 18:29 ` mpolacek at gcc dot gnu.org 2013-03-22 14:48 ` jakub at gcc dot gnu.org 2013-05-31 10:59 ` jakub at gcc dot gnu.org 2013-10-16 9:51 ` jakub at gcc dot gnu.org 2013-12-03 12:11 ` mpolacek at gcc dot gnu.org 2013-12-03 12:41 ` mpolacek at gcc dot gnu.org 2014-01-13 17:21 ` georggcc at googlemail dot com
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=bug-56344-4-Est6Z0jr8G@http.gcc.gnu.org/bugzilla/ \ --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).