This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/54218] Debug info for function parameters is incorrect when compiled with -O0
- From: "senthil_kumar.selvaraj at atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Aug 2012 10:23:55 +0000
- Subject: [Bug middle-end/54218] Debug info for function parameters is incorrect when compiled with -O0
- Auto-submitted: auto-generated
- References: <bug-54218-4@http.gcc.gnu.org/bugzilla/>
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);
>}