public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/8530: toplev.c: Close of _DFI lreg dump file guarded with different condition than open
@ 2002-12-11 12:51 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-11 12:51 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jeffry, nobody
Synopsis: toplev.c: Close of _DFI lreg dump file guarded with different condition than open
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Dec 11 12:51:55 2002
State-Changed-Why:
Confirmed. If you want, why don't you provide a patch?
Thanks
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8530
^ permalink raw reply [flat|nested] 2+ messages in thread
* optimization/8530: toplev.c: Close of _DFI lreg dump file guarded with different condition than open
@ 2002-11-19 12:16 jeffry
0 siblings, 0 replies; 2+ messages in thread
From: jeffry @ 2002-11-19 12:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 8530
>Category: optimization
>Synopsis: toplev.c: Close of _DFI lreg dump file guarded with different condition than open
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 11 13:36:05 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Jeff Russell
>Release: 3.1
>Organization:
>Environment:
i686-pc-cygwin
>Description:
In toplev.c. the close_dump_file() call for DFI_lreg is guarded with an "if" statement, while the corresponding "open" is not. Thus, program flow can by-pass the clost_dump_file() call.
While logic in the called routines makes everything "work", it would clean up the source code and eliminate future "stupid" mistakes by moving the "close" outside the guarding "if" statement.
>How-To-Repeat:
Discovered with source code analysis.
>Fix:
Move call to close_dump_file() outside and following the "if" statement.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-11 20:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11 12:51 optimization/8530: toplev.c: Close of _DFI lreg dump file guarded with different condition than open bangerth
-- strict thread matches above, loose matches on Subject: below --
2002-11-19 12:16 jeffry
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).