This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/24032] GDB prints wrong value at -O1
- From: "helloqirun at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 16 Jan 2019 06:49:15 +0000
- Subject: [Bug gdb/24032] GDB prints wrong value at -O1
- Auto-submitted: auto-generated
- References: <bug-24032-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24032
--- Comment #5 from Qirun Zhang <helloqirun at gmail dot com> ---
(In reply to Alex Oliva from comment #4)
> > It incorrectly prints "l = 0" at -O1.
>
> Thanks for the report. The ccp1 pass is removing the dead assignment to
> l, and then removing the empty (save for debug stmts) basic block that
> held the debug bind. This is a problem in GCC, not in GDB, so would you
> please file a bug report at gcc.gnu.org, and copy me
> (aoliva@gcc.gnu.org) in it?
>
> This GDB bug may then be retained, cross-linked to the GCC bug or not,
> to elicit investigation of the breakpoint issue you brought up. AFAICT
> current line number tables should allow GDB to set up breakpoints at
> both locations you indicate.
Hi Alex,
Thanks for the reply. I have indeed reported this one at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88686. You are on the cc list of
that bug.
If it's indeed a GCC issue, would you please re-open that report? Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.