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] |
>> which changed `mode_size' from `int' to `unsigned'. This patch eliminates >> the warnings by adding an explicit cast to `int' of GET_MODE_SIZE and >> GET_MODE_BITSIZE. > >For INTVAL comparisons, I suggest using `HOST_WIDE_INT' rather than `int'. >This is the type extracted by INTVAL. On some machines, it is wider than >`int' making the cast from `unsigned int' safer. > I understand why this is true in general. However, as I argued, the maximum value of the unsigned int is 4096. Furthermore, GET_MODE_SIZE is cast to int elsewhere in combine.c. So I think the patch is good as it is. jan >Dave >-- >J. David Anglin dave.anglin@nrc.ca >National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |