public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Nathanael Nerode <neroden@twcny.rr.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/8068 Date: Wed, 01 Jan 2003 15:26:00 -0000 [thread overview] Message-ID: <20030101152601.13424.qmail@sources.redhat.com> (raw) The following reply was made to PR c/8068; it has been noted by GNATS. From: Nathanael Nerode <neroden@twcny.rr.com> To: Laurent.Deniau@cern.ch, Ovidiu.Achim@cern.ch, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/8068 Date: Wed, 1 Jan 2003 10:23:51 -0500 I did a gdb backtrace on this. There's a very dense recursion going on. #49 0x0812b1b1 in fold (expr=0x64e2c020) at ../../gcc/gcc/fold-const.c:5505 #50 0x0812513e in extract_muldiv (t=0x455b1de0, c=0x5fa18020, code=MULT_EXPR, wide_type=0x0) at ../../gcc/gcc/fold-const.c:4304 #51 0x08124c75 in extract_muldiv (t=0x4a9c6ee0, c=0x5fa18020, code=MULT_EXPR, wide_type=0x0) at ../../gcc/gcc/fold-const.c:4179 #52 0x0812b1b1 in fold (expr=0x5fa18040) at ../../gcc/gcc/fold-const.c:5505 ... These three entries are repeated over and over and over again. The one in 'fold' is the entry point. So this is a (near?) infinite recursion in the constant folding code. Ick. The top of the backtrace is: #55 0x0812b1b1 in fold (expr=0x551ef060) at ../../gcc/gcc/fold-const.c:5505 #56 0x0807a441 in build_binary_op (code=MULT_EXPR, orig_op0=0x551ef020, orig_op1=0x551ef040, convert_p=1) at ../../gcc/gcc/c-typeck.c:2579 #57 0x08078860 in parser_build_binary_op (code=MULT_EXPR, arg1=0x551ef020, arg2=0x551ef040) at ../../gcc/gcc/c-typeck.c:1755 #58 0x0804ab30 in yyparse () at c-parse.y:540 #59 0x08063cbd in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-lex.c:161 #60 0x0825fc86 in compile_file () at ../../gcc/gcc/toplev.c:2128 #61 0x08264bb6 in do_compile () at ../../gcc/gcc/toplev.c:5352 #62 0x08264c0f in toplev_main (argc=3, argv=0xbffffbf4) at ../../gcc/gcc/toplev.c:5382 #63 0x080ab6b4 in main (argc=3, argv=0xbffffbf4) at ../../gcc/gcc/main.c:37 Hope this helps...
reply other threads:[~2003-01-01 15:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030101152601.13424.qmail@sources.redhat.com \ --to=neroden@twcny.rr.com \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).