This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42130] [graphite-branch] dealII fails
- From: "amonakov at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2009 11:48:02 -0000
- Subject: [Bug middle-end/42130] [graphite-branch] dealII fails
- References: <bug-42130-15673@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from amonakov at gcc dot gnu dot org 2009-11-25 11:48 -------
Tobias,
Please fix the testcase before committing to trunk, like this ('return 0' is
needed to ensure the test does not fail when compiled correctly; 'noclone' to
ensure that foo is not specialized for n=0):
/* { dg-options "-O2 -fno-tree-ch" } */
#include <vector>
using std::vector;
vector<unsigned> & __attribute__((noinline,noclone)) foo(unsigned n)
{
vector<unsigned> *vv = new vector<unsigned>(n, 0u);
return *vv;
}
int main()
{
foo(0);
return 0;
}
(In reply to comment #3)
--
amonakov at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42130