Summary: | [4.3 Regression] Possible miscompilation on MIPS | ||
---|---|---|---|
Product: | gcc | Reporter: | Martin Michlmayr <tbm> |
Component: | rtl-optimization | Assignee: | Richard Sandiford <rsandifo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ddaney, gcc-bugs, rsandifo |
Priority: | P3 | ||
Version: | 4.3.0 | ||
Target Milestone: | 4.3.0 | ||
Host: | Target: | mips-linux-gnu | |
Build: | Known to work: | 4.2.0 | |
Known to fail: | 4.3.0 | Last reconfirmed: | 2007-12-10 18:11:08 |
Description
Martin Michlmayr
2007-12-10 00:53:37 UTC
Perhaps we could get a URL to a version of mawk that is failing. Also details about how you configured gcc and which svn revision number you tested, and how mawk was configured. (In reply to comment #1) > Perhaps we could get a URL to a version of mawk that is failing. > > Also details about how you configured gcc and which svn revision number you > tested, and how mawk was configured. It's all standard Debian stuff. apt-get source mawk will give you mawk (1.3.3-11). apt-get install gcc-snapshot will give you a compiler based on trunk (sid)tbm@appdev:~/src/mawk-1.3.3$ /usr/lib/gcc-snapshot/bin/gcc -v Using built-in specs. Target: mips-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 20071030-1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,c++,obj-c++ --prefix=/usr/lib/gcc-snapshot --enable-shared --with-system-zlib --disable-nls --enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --disable-werror --build=mips-linux-gnu --host=mips-linux-gnu --target=mips-linux-gnu Thread model: posix gcc version 4.3.0 20071030 (experimental) [trunk revision 127646] (Debian 20071030-1) As of the experience with the removed 'static' keyword it is very likely that the function where escape() is inlined to is miscompiled. Confirmed. This is a bug in the delayed branch scheduler. Patch here: http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00506.html Subject: Bug 34415 Author: rsandifo Date: Sun Dec 16 09:54:34 2007 New Revision: 130987 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130987 Log: gcc/ PR rtl-optimization/34415 * df.h (DF_LR_IN, DF_LR_OUT): Update comments. * resource.c (mark_target_live_regs): Use DF_LR_IN rather than df_get_live_in. Don't handle pseudos. gcc/testsuite/ PR rtl-optimization/34415 * gcc.c-torture/execute/pr34415.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr34415.c Modified: trunk/gcc/ChangeLog trunk/gcc/df.h trunk/gcc/resource.c trunk/gcc/testsuite/ChangeLog Fixed on trunk. |