On Fri, Apr 22, 2011 at 09:27:50PM +0200, Richard Guenther wrote: > There is a scary comment before build_int_cst_type why build_int_cst > can't be sane. Fortunately it is not true. If it were there would > be other code to be fixed. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02297.html suggests that at least back then the old semantics of build_int_cst was needed in round_up and build_prim_array_type. > 2011-04-22 Richard Guenther <rguent...@suse.de> > > * tree.c (build_int_cst): Properly create canonicalized integer > constants. > (build_int_cst_type): Remove scary comments. Jakub