Some warning messages for gcc source code
Kaveh R. Ghazi
ghazi@caip.rutgers.edu
Fri Apr 6 13:19:00 GMT 2001
> Here are some suspicious things in gcc-20010326,
> could someone please look at them and perhaps fix?
>
> Line 10143 of gcc/combine.c
> && code != GEU && code != GEU)))
> I suspect the 2nd GEU was intended to be LEU.
>
> Line 561 of gcc/dependence.c
> if (TREE_CODE (TREE_OPERAND (node, 0)) == MODIFY_EXPR
> && (TREE_CODE (TREE_OPERAND (node, 0)) == VAR_DECL
> The 'if' is never taken, since these cannot both be true.
>
> Line 1069 of gcc/cp/cvt.c
> if (((TREE_CODE (TREE_TYPE (e)) == POINTER_TYPE && TREE_CODE (e) == ADDR_EXPR
> && TREE_CODE (TREE_TYPE (e)) == POINTER_TYPE
> This is perhaps a harmless redundancy.
>
> Line 1435 of gcc/cp/init.c
> if (! IS_AGGR_TYPE (type)
> && TREE_CODE (type) != TEMPLATE_TYPE_PARM
> && TREE_CODE (type) != BOUND_TEMPLATE_TEMPLATE_PARM)
> Also perhaps harmless, ! IS_AGGR_TYPE implies the rest.
>
> Thanks much,
> Tom Truscott
How did you locate these? Do you have some tool which points them out
or you found them just by reading code? :-)
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
More information about the Gcc-bugs
mailing list