re PR middle-end/21024 (fold generates a comparison of two operands whose types do...
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 17 Apr 2005 01:38:24 +0000 (01:38 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 17 Apr 2005 01:38:24 +0000 (01:38 +0000)
commit10dcf221829e724a85e850057a83f5784c8e341b
tree38e92bac3ceb99b5ed8ffd6a613872242269dbc4
parenteee0d85ef565deb74ed052899524bfef0b9d6fd6
re PR middle-end/21024 (fold generates a comparison of two operands whose types do not match)

PR middle-end/21024
* builtins.c (expand_builtin_strcat): Convert the result of
strlen to the right type.
* fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
avoid creating type mismatches.
<GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
type mismatches.

From-SVN: r98244
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c