]> gcc.gnu.org Git - gcc.git/commit
middle-end/110200 - genmatch force-leaf and convert interaction
authorRichard Biener <rguenther@suse.de>
Mon, 12 Jun 2023 08:17:26 +0000 (10:17 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 12 Jun 2023 09:01:26 +0000 (11:01 +0200)
commit820d1aec89c43dbbc70d3d0b888201878388454c
tree0eb455d24da4a386cf0df8efabf1ac2d22f68e38
parent2764335bd336f2360d465ffcaa8f2c33f7321ab4
middle-end/110200 - genmatch force-leaf and convert interaction

The following fixes code GENERIC generation for (convert! ...)
which currently generates

  if (TREE_TYPE (_o1[0]) != type)
    _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
    if (EXPR_P (_r1))
      goto next_after_fail867;
  else
    _r1 = _o1[0];

where obviously braces are missing.

PR middle-end/110200
* genmatch.cc (expr::gen_transform): Put braces around
the if arm for the (convert ...) short-cut.
gcc/genmatch.cc
This page took 0.05597 seconds and 5 git commands to generate.