diff options
author | Jakub Jelinek <jakub@redhat.com> | 2002-02-21 00:05:47 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2002-02-21 00:05:47 +0100 |
commit | 7552da58e17fb0e2c53a03bd986eee6baea79730 (patch) | |
tree | 61e2d388e4c9e1800d174ed4d1ad82befd143f53 /gcc/c-common.h | |
parent | 00fae85dcb96cb20e723b37ae16dcf1cf09434da (diff) | |
download | gcc-7552da58e17fb0e2c53a03bd986eee6baea79730.tar.gz |
re PR c++/4401 (Array subscript evaluation sometimes wrong for 64-bit architectures)
PR c++/4401
* c-common.c (pointer_int_sum): Moved from...
* c-typeck.c (pointer_int_sum): ...here.
* c-common.h (pointer_int_sum): Add prototype.
* typeck.c (cp_pointer_int_sum): Renamed from
pointer_int_sum, call pointer_int_sum.
* g++.dg/opt/ptrintsum1.C: New test.
From-SVN: r49916
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index c90cbfb076b..9bb2d1ac233 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -538,6 +538,7 @@ extern char *get_directive_line PARAMS ((void)); and, if so, perhaps change them both back to their original type. */ extern tree shorten_compare PARAMS ((tree *, tree *, tree *, enum tree_code *)); +extern tree pointer_int_sum PARAMS ((enum tree_code, tree, tree)); extern unsigned int min_precision PARAMS ((tree, int)); /* Add qualifiers to a type, in the fashion for C. */ |