This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/32450] -pg causes miscompilation



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]