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: Fix double_int overflow in VRP PLUS_EXPR


On Wed, 22 Aug 2012, Jakub Jelinek wrote:

2012-08-21  Marc Glisse  <marc.glisse@inria.fr>
+  n <<= (8 * sizeof (NT) - 1);

Better use __CHAR_BIT__ instead of 8 here...

Ok, I committed the __CHAR_BIT__ version (I just compiled that one file manually with old and new compilers, I didn't restart the testsuite, I hope the manual test is enough to detect any typo that could break things).


--
Marc Glisse


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