public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/43552]  New: FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr
@ 2010-03-28  0:22 danglin at gcc dot gnu dot org
  2010-03-28 12:41 ` [Bug debug/43552] " rguenth at gcc dot gnu dot org
  2010-03-28 12:58 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: danglin at gcc dot gnu dot org @ 2010-03-28  0:22 UTC (permalink / raw)
  To: gcc-bugs

FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i == 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i1 == 2 * 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i2 == 3 * 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i == 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i1 == 2 * 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -fwhopr  line 28 i2 == 3 * 37

Executing on host: /home/dave/gnu/gcc-4.5/objdir/gcc/xgcc
-B/home/dave/gnu/gcc-4
.5/objdir/gcc/ /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c 
 -O2 -flto  -g  -lm   -o ./pr41353-1.exe    (timeout = 300)
PASS: gcc.dg/guality/pr41353-1.c  -O2 -flto  (test for excess errors)Setting
LD_LIBRARY_PATH to
:/home/dave/gnu/gcc/objdir/gcc::/home/dave/gnu/gcc/objdir/gcc:/home/dave/gnu/gcc/objdir/hppa-linux/libstdc++-v3/.libs:/home/dave/gnu/
gcc/objdir/hppa-linux/libmudflap/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/libs
sp/.libs:/home/dave/gnu/gcc/objdir/hppa-linux/libgomp/.libs:/home/dave/gnu/gcc/objdir/./gcc:/home/dave/gnu/gcc/objdir/./prev-gcc
PASS: gcc.dg/guality/pr41353-1.c  -O2 -flto  execution test
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.e
xe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/gualit
y/pr41353-1.c, line 17.
Breakpoint 1, f2 (i=37, j=65)    at
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
$1 = 17
$2 = 17
A debugging session is active.

        Inferior 1 [process 31467] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
PASS: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari == 17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari1" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari1 == 2 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari2" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari2 == 3 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari3" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari3 == 2 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari4" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari4 == 3 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari5" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari5 == 4 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10544: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 17.

Breakpoint 1, f2 (i=37, j=65)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:21
21      f2 (int i, int j)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "vari6" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 17 vari6 == 5 *
17
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10550: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 28.

Breakpoint 1, f3 (i=12)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:32
32      f3 (int i)
$1 = 12
$2 = 37
A debugging session is active.

        Inferior 1 [process 31546] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
12 != 37
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i == 37
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10550: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 28.

Breakpoint 1, f3 (i=12)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:32
32      f3 (int i)
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "j" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 j == 28 + 37
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10550: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 28.

Breakpoint 1, f3 (i=12)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:32
32      f3 (int i)
$1 = 24
$2 = 74
A debugging session is active.

        Inferior 1 [process 31569] will be killed.

24 != 74
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i1 == 2 * 37
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10550: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 28.

Breakpoint 1, f3 (i=12)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:32
32      f3 (int i)
$1 = 24
$2 = 111
A debugging session is active.

        Inferior 1 [process 31581] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
24 != 111
FAIL: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 28 i2 == 3 * 37
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10558: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 39.

Breakpoint 1, main (argc=1, argv=0xc06d501c)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:49
49        asm volatile ("" : : "r" (&fnp1) : "memory");
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "i" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 39 i == 12
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10558: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 39.

Breakpoint 1, main (argc=1, argv=0xc057001c)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:49
49        asm volatile ("" : : "r" (&fnp1) : "memory");
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "i1" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 39 i1 == 2 * 12
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10558: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 39.

Breakpoint 1, main (argc=1, argv=0xc047401c)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:49
49        asm volatile ("" : : "r" (&fnp1) : "memory");
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "i2" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 39 i2 == 2 * 12
Spawning: gdb -nx -nw -quiet -x pr41353-1.gdb ./pr41353-1.exe
Reading symbols from
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.exe...done.
Breakpoint 1 at 0x10558: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c, line 39.

Breakpoint 1, main (argc=1, argv=0xc067a01c)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/guality/pr41353-1.c:49
49        asm volatile ("" : : "r" (&fnp1) : "memory");
/home/dave/gnu/gcc-4.5/objdir/gcc/testsuite/gcc/pr41353-1.gdb:3: Error in
sourced command file:
No symbol "i3" in current context.
(gdb) UNSUPPORTED: gcc.dg/guality/pr41353-1.c  -O2 -flto  line 39 i3 == 3 * 12


-- 
           Summary: FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux-gnu
  GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43552


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/43552] FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr
  2010-03-28  0:22 [Bug debug/43552] New: FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr danglin at gcc dot gnu dot org
@ 2010-03-28 12:41 ` rguenth at gcc dot gnu dot org
  2010-03-28 12:58 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-28 12:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-03-28 12:41 -------
There is no line 28 to break on, instead it breaks at f3().


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-28 12:41:05
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43552


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/43552] FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr
  2010-03-28  0:22 [Bug debug/43552] New: FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr danglin at gcc dot gnu dot org
  2010-03-28 12:41 ` [Bug debug/43552] " rguenth at gcc dot gnu dot org
@ 2010-03-28 12:58 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-28 12:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-03-28 12:58 -------
The return statement does not have line information, even without LTO:

f2 (int i, int j)
{
<bb 2>:
  [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c : 23:5] j_3
= j_1(D) + i_2(D);
  [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c : 23:5] #
DEBUG j => j_3
  [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c : 26:7] #
DEBUG i1 => [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c :
26] i_2(D) * 2
  [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c : 27:7] #
DEBUG i2 => [/home/richard/src/trunk/gcc/testsuite/gcc.dg/guality/pr41353-1.c :
27] i_2(D) * 3
  return j_3;

}

(same dump with -flto).  There's no line 28 in the debug information of
either variant - still gdb breaks on the closing } for -O2 but on the
start of f3 () for -O2 -flto.  But the non-LTO variant has a line advance
entry to line 29.

What is missing is visible in the .expand dump - the non-LTO variant
does have line number information on the function return (line 29), but
the LTO variant does not.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43552


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug debug/43552] FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr
       [not found] <bug-43552-4@http.gcc.gnu.org/bugzilla/>
@ 2011-02-24 13:45 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-24 13:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43552

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-24 13:41:55 UTC ---
Dup (and "fixed").

*** This bug has been marked as a duplicate of bug 47801 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-24 13:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-28  0:22 [Bug debug/43552] New: FAIL: gcc.dg/guality/pr41353-1.c with -flto and -fwhopr danglin at gcc dot gnu dot org
2010-03-28 12:41 ` [Bug debug/43552] " rguenth at gcc dot gnu dot org
2010-03-28 12:58 ` rguenth at gcc dot gnu dot org
     [not found] <bug-43552-4@http.gcc.gnu.org/bugzilla/>
2011-02-24 13:45 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).