This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Replace build_int_2


On Sat, 07 Aug 2004 15:25:05 +0100, Nathan Sidwell <nathan@codesourcery.com> wrote:

> I rejected the idea of
>    #define build_int_2 (x, y) build_int_cst (NULL, x, y)
> as I will be changing the API of build_int_cst, in that the returned
> node might be shared, and wanted to examine every use, and flag to
> others that it is now different.

Makes sense.  What do you suggest for creating a new INTEGER_CST with the
same value but different type?  

  build_int_cst (newtype, TREE_INT_CST_LOW (old), TREE_INT_CST_HIGH (old))

seems a bit verbose.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]