public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/57805] New: Waste work in write_roots()
@ 2013-07-03 16:44 pchang9 at cs dot wisc.edu
  2013-07-03 20:18 ` [Bug middle-end/57805] Wasted " pchang9 at cs dot wisc.edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pchang9 at cs dot wisc.edu @ 2013-07-03 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57805
           Summary: Waste work in write_roots()
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pchang9 at cs dot wisc.edu
                CC: nistor1 at illinois dot edu

The problem appears in revision 200588 in version 4.9.

In method "write_roots()" in gcc/gengtype.c, the loop on line 4682 should break
immediately after "skip_p" is set to "1". All the iterations after "skip_p" set
to "1" do not perform any useful work, at best they just set "skip_p" again to
"1".


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

* [Bug middle-end/57805] Wasted work in write_roots()
  2013-07-03 16:44 [Bug middle-end/57805] New: Waste work in write_roots() pchang9 at cs dot wisc.edu
@ 2013-07-03 20:18 ` pchang9 at cs dot wisc.edu
  2013-07-17 16:47 ` pchang9 at cs dot wisc.edu
  2013-07-18 16:10 ` law at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pchang9 at cs dot wisc.edu @ 2013-07-03 20:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Po-Chun Chang <pchang9 at cs dot wisc.edu> ---
Created attachment 30438
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30438&action=edit
Suggested patch


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

* [Bug middle-end/57805] Wasted work in write_roots()
  2013-07-03 16:44 [Bug middle-end/57805] New: Waste work in write_roots() pchang9 at cs dot wisc.edu
  2013-07-03 20:18 ` [Bug middle-end/57805] Wasted " pchang9 at cs dot wisc.edu
@ 2013-07-17 16:47 ` pchang9 at cs dot wisc.edu
  2013-07-18 16:10 ` law at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pchang9 at cs dot wisc.edu @ 2013-07-17 16:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Po-Chun Chang <pchang9 at cs dot wisc.edu> ---
Patch sent to gcc-patches@:

http://gcc.gnu.org/ml/gcc-patches/2013-07/msg00661.html


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

* [Bug middle-end/57805] Wasted work in write_roots()
  2013-07-03 16:44 [Bug middle-end/57805] New: Waste work in write_roots() pchang9 at cs dot wisc.edu
  2013-07-03 20:18 ` [Bug middle-end/57805] Wasted " pchang9 at cs dot wisc.edu
  2013-07-17 16:47 ` pchang9 at cs dot wisc.edu
@ 2013-07-18 16:10 ` law at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: law at redhat dot com @ 2013-07-18 16:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.


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

end of thread, other threads:[~2013-07-18 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03 16:44 [Bug middle-end/57805] New: Waste work in write_roots() pchang9 at cs dot wisc.edu
2013-07-03 20:18 ` [Bug middle-end/57805] Wasted " pchang9 at cs dot wisc.edu
2013-07-17 16:47 ` pchang9 at cs dot wisc.edu
2013-07-18 16:10 ` law at redhat dot com

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).