diff options
author | Richard Guenther <rguenther@suse.de> | 2006-05-11 08:29:40 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-05-11 08:29:40 +0000 |
commit | 497cfe246bdf101183523f93ee9d9571c4381505 (patch) | |
tree | 17f244ccd429a0d120041c3e273cdd7bc9688376 /libjava | |
parent | 34b95ebe0ea7f9b872986a43722af52f005640ba (diff) | |
download | gcc-497cfe246bdf101183523f93ee9d9571c4381505.zip gcc-497cfe246bdf101183523f93ee9d9571c4381505.tar.gz gcc-497cfe246bdf101183523f93ee9d9571c4381505.tar.bz2 |
re PR middle-end/27529 (Does not fold (char *)(size_t)char_ptr or (size_t)(char *)size_t_var)
2006-05-11 Richard Guenther <rguenther@suse.de>
PR middle-end/27529
* fold-const.c (fold_unary): Handle intermediate conversion
to a pointer type like intermediate conversion to an integer
type in folding of (T1)(T2)var to var.
Match the code to the comment in the final conversion for
(T1)(T2)var to (T1)var regarding to type precision. Rather
than disallow T1 being of pointer type, assert that both T1
and var are of pointer type or not. Make sure not to fall
over the frontends lazyness wrt array to pointer decay though.
* gcc.dg/tree-ssa/foldcast-1.c: New testcase.
From-SVN: r113692
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions