This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: PATCH for fold-const.c: take 2


>>>>> "Jeffrey" == Jeffrey A Law <law@hurl.cygnus.com> writes:

    Jeffrey>   In message
    Jeffrey> <199806252036.NAA11445@smtp.earthlink.net>you write:
    >>  The patch I just sent was written while I was under an evil
    >> influence, and is total garbage.
    >> 
    >> Here's a better version.
    >> 
    >> 
    >> Thu Jun 25 12:47:41 1998 Mark Mitchell <mark@markmitchell.com>
    >> 
    >> * fold-const.c (make_range): Don't go looking at TREE_OPERANDs
    >> of nodes that are not expressions.

    Jeffrey> Just curious -- what kinds of nodes were showing up which
    Jeffrey> caused you to look at this?

PARM_DECLs.  If you look at the code, you'll see that it was goes
through the loop until it finds something it doesn't understand.  On
that last iteration, though, it was still grabbing TREE_OPERANDs.  I
found this by configuring with --enable-checking as I was doing one
more test of the type-based alias stuff before checking it in.

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com


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