This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 gdb/12257] gdb ignore line "bar: if(foo)goto bar;"


http://sourceware.org/bugzilla/show_bug.cgi?id=12257

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-07 21:46:08 UTC ---
This is what GCC produces:
Here is what GCC produces:
    .loc 1 7 0
    leaq    -4(%rbp), %rax
    movq    %rax, %rsi
    movl    $.LC1, %edi
    movl    $0, %eax
    call    __isoc99_scanf
    jmp    .L2
.L5:
    .loc 1 8 0
    nop
.L2:
    .loc 1 8 0 is_stmt 0 discriminator 1
    movl    -4(%rbp), %eax
    testl    %eax, %eax
    jne    .L5

This looks fine to me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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