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 middle-end/54218] Debug info for function parameters is incorrect when compiled with -O0


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);
>}


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