[Bug middle-end/54218] Debug info for function parameters is incorrect when compiled with -O0
senthil_kumar.selvaraj at atmel dot com
gcc-bugzilla@gcc.gnu.org
Fri Aug 10 10:24:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54218
--- Comment #2 from Senthil Kumar Selvaraj <senthil_kumar.selvaraj at atmel dot com> 2012-08-10 10:23:55 UTC ---
Comment on attachment 27980
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27980
Failing dejagnu test case
>/* { dg-do run } */
>/* { dg-options "-g" } */
>/* { dg-skip-if "" { *-*-* } { "*" } { "-O0" } } */
>
>void func(int p)
>{
> p = 0; /* { dg-final { gdb-test 8 "p" "0" } } */
> p = 32;/* { dg-final { gdb-test 8 "p" "42" } } */
>}
>
>int
>main (void)
>{
> int local = 42;
> func(local);
>}
More information about the Gcc-bugs
mailing list