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] |
Bootstrapped and regression tested on x86_64-unknown-linux-gnu with --enable-languages=all,obj-c++,ada OK for trunk? And branches? 2008-11-03 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR c++/35652 * builtins.h (c_strlen): Do not warn here. * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. * c-common.c (pointer_int_sum): Take an explicit location. Warn about offsets out of bounds. * c-common.h (pointer_int_sum): Adjust declaration. * expr.c (string_constant): Move middle-end function from here... * fold_const (string_constant): ... to here. * expr.h (string_constant): Move declaration from here... * tree.h (string_constant): ... to here. cp/ * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum. testsuite/ * gcc.dg/pr35652.c: New. * g++.dg/warn/pr35652.C: New. * gcc.dg/format/plus-1.c: Adjust message.
Attachment:
fix-pr35652.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |