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 other/59545] Signed integer overflow issues


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59545

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec 19 21:27:51 2013
New Revision: 206134

URL: http://gcc.gnu.org/viewcvs?rev=206134&root=gcc&view=rev
Log:
    PR other/59545
    * genattrtab.c (struct attr_hash): Change hashcode type to unsigned.
    (attr_hash_add_rtx, attr_hash_add_string): Change hashcode parameter
    to unsigned.
    (attr_rtx_1): Change hashcode variable to unsigned.
    (attr_string): Likewise.  Perform first multiplication in unsigned
    type.
    * ifcvt.c (noce_try_store_flag_constants): Avoid signed integer
    overflows.
    * double-int.c (neg_double): Likewise.
    * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
    * combine.c (force_to_mode): Likewise.
    * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn,
    reload_cse_move2add, move2add_note_store): Likewise.
    * simplify-rtx.c (simplify_const_unary_operation,
    simplify_const_binary_operation): Likewise.
    * ipa-split.c (find_split_points): Initialize first.can_split
    and first.non_ssa_vars.
    * gengtype-state.c (read_state_files_list): Fix up check.
    * genautomata.c (reserv_sets_hash_value): Use portable rotation
    idiom.
java/
    * class.c (hashUtf8String): Compute hash in unsigned type.
    * javaop.h (WORD_TO_INT): Avoid signed integer overflow.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/double-int.c
    trunk/gcc/genattrtab.c
    trunk/gcc/genautomata.c
    trunk/gcc/gengtype-state.c
    trunk/gcc/ifcvt.c
    trunk/gcc/ipa-split.c
    trunk/gcc/java/ChangeLog
    trunk/gcc/java/class.c
    trunk/gcc/java/javaop.h
    trunk/gcc/postreload.c
    trunk/gcc/simplify-rtx.c
    trunk/gcc/stor-layout.c


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