// Compile with -O1 -finline-functions -fipa-cp // reduced from ada/adadecode.c static int f0 (char *s0, char *s1) { return __builtin_strlen (s0) > __builtin_strlen (s1); } int f1 (char *s, int j) { if (f0 (s, "")) return 1; return j; } void f2 (char *s) { f1 (s, 0); } // bug.c:16: error: edge T.0->__builtin_strlen has no corresponding call_stmt bug.c:16: internal compiler error: Segmentation fault
Fails since: r121570 | hubicka | 2007-02-04 16:01:13 +0300 (Sun, 04 Feb 2007) | 7 lines * ipa-inline.c (try_inline): Improve debug output; work on already inline edges too. (cgraph_decide_inlining_incrementally): Indent; improve debug output; call try_inline for already inlined edges too when flattening; inline also functions that make callee growth but overall unit size reduce.
This has to do with folding of __builtin_strlen.
Can't reproduce this, neither on x86_64-linux, nor on ppc-linux, on the former I tried cc1's I had laying around back through to 2007-08-21 and all of them worked.
This got fixed by the PR30564 fix, http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127638 Do we want to commit this testcase as well?
(In reply to comment #4) > This got fixed by the PR30564 fix, > http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127638 > Do we want to commit this testcase as well? > I think yes, please do.
Subject: Bug 32975 Author: jakub Date: Sun Sep 23 09:44:23 2007 New Revision: 128688 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128688 Log: PR tree-optimization/32772 * gcc.c-torture/compile/20070905-1.c: New test. PR tree-optimization/32975 * gcc.dg/pr32975.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/20070905-1.c trunk/gcc/testsuite/gcc.dg/pr32975.c Modified: trunk/gcc/testsuite/ChangeLog