From 7552da58e17fb0e2c53a03bd986eee6baea79730 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 21 Feb 2002 00:05:47 +0100 Subject: 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 --- gcc/c-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/c-common.h') diff --git a/gcc/c-common.h b/gcc/c-common.h index c90cbfb..9bb2d1a 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. */ -- cgit v1.1