This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32450] -pg causes miscompilation
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2007 10:50:18 -0000
- Subject: [Bug target/32450] -pg causes miscompilation
- References: <bug-32450-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #26 from jv244 at cam dot ac dot uk 2007-07-05 10:50 -------
adding a c testcase:
int stack_pointer=0;
void mystop()
{
abort();
}
void add()
{
if (stack_pointer+1>10)
{
mystop();
};
stack_pointer=stack_pointer+1;
}
int main()
{
add();
return stack_pointer-1 ;
}
> gcc -O2 -pg -march=native test.c
> ./a.out
Aborted
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32450