Commit 30d68b86 by Mark Mitchell Committed by Mark Mitchell

fold-const.c (make_range): Don't go looking at TREE_OPERANDs of nodes that are not expressions.

	* fold-const.c (make_range): Don't go looking at TREE_OPERANDs of
	nodes that are not expressions.

From-SVN: r20728
parent 65e92a60
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.
Thu Jun 25 15:08:16 1998 Mark Mitchell <mark@markmitchell.com> Thu Jun 25 15:08:16 1998 Mark Mitchell <mark@markmitchell.com>
* invoke.texi (-fstrict-aliasing): Document. * invoke.texi (-fstrict-aliasing): Document.
......
...@@ -2836,10 +2836,20 @@ make_range (exp, pin_p, plow, phigh) ...@@ -2836,10 +2836,20 @@ make_range (exp, pin_p, plow, phigh)
while (1) while (1)
{ {
code = TREE_CODE (exp); code = TREE_CODE (exp);
arg0 = TREE_OPERAND (exp, 0), arg1 = TREE_OPERAND (exp, 1);
if (TREE_CODE_CLASS (code) == '<' || TREE_CODE_CLASS (code) == '1' if (IS_EXPR_CODE_CLASS (TREE_CODE_CLASS (code)))
|| TREE_CODE_CLASS (code) == '2') {
type = TREE_TYPE (arg0); arg0 = TREE_OPERAND (exp, 0);
if (TREE_CODE_CLASS (code) == '<'
|| TREE_CODE_CLASS (code) == '1'
|| TREE_CODE_CLASS (code) == '2')
type = TREE_TYPE (arg0);
if (TREE_CODE_CLASS (code) == '2'
|| TREE_CODE_CLASS (code) == '<'
|| (TREE_CODE_CLASS (code) == 'e'
&& tree_code_length[(int) code] > 1))
arg1 = TREE_OPERAND (exp, 1);
}
switch (code) switch (code)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment