re PR middle-end/79673 (GIMPLE verification fails when compiling code with __seg_gs)
authorRichard Biener <rguenther@suse.de>
Wed, 22 Feb 2017 15:00:39 +0000 (15:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 22 Feb 2017 15:00:39 +0000 (15:00 +0000)
commit76dd203e1b51267cbb227a5e2ffab5f20a56f62d
tree9d81c3cc45d0d8e13bfcdf4a2aeeb876b47e10e0
parenta9c774d2ae7c0ae983aa33fd53d34ef054dbee5a
re PR middle-end/79673 (GIMPLE verification fails when compiling code with __seg_gs)

2017-02-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79673
* tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
irrelevant address-space qualifiers and avoiding a
ADDR_SPACE_CONVERT_EXPR from fold_convert.

* gcc.target/i386/pr79673.c: New testcase.

From-SVN: r245649
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr79673.c [new file with mode: 0644]
gcc/tree-ssa-pre.c