This is the mail archive of the gcc-bugs@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]

[Bug middle-end/61903] signed integer overflow in expmed.c store_fixed_bit_filed_1


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61903

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Sep  1 09:18:43 2014
New Revision: 214781

URL: https://gcc.gnu.org/viewcvs?rev=214781&root=gcc&view=rev
Log:
    PR middle-end/61903
    * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
    Change the type of V to unsigned HOST_WIDE_INT.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expmed.c


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