reg-stack.c comment header bug (PATCH)

Lucas (a.k.a T-Bird or bsdfan3) tbird-contact@cox.net
Sun Jan 29 13:00:00 GMT 2006


I found and fixed (w/ some help from Ian) a rather silly bug in the 
comment header for reg-stack.c.

Patch is as follows (ChangeLog then patch)
2006-01-29  Lucas Thode <bsdfan3@users.sourceforge.net>

    * reg-stack.c: Fix header comment so it makes sense.

Index: reg-stack.c
===================================================================
--- reg-stack.c (revision 110307)
+++ reg-stack.c (working copy)
@@ -54,7 +54,7 @@
    pattern is a SET: one sets A to B, the other B to A.

    A "push" or "load" insn is a SET whose SET_DEST is FIRST_STACK_REG
-   and whose SET_DEST is REG or MEM.  Any other SET_DEST, such as PLUS,
+   and whose SET_SRC is REG or MEM.  Any other SET_DEST, such as PLUS,
    will replace the existing stack top, not push a new value.

    A store insn is a SET whose SET_DEST is FIRST_STACK_REG, and whose



More information about the Gcc-patches mailing list