From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32382 invoked by alias); 3 Jan 2008 15:56:04 -0000 Received: (qmail 32013 invoked by uid 48); 3 Jan 2008 15:54:49 -0000 Date: Thu, 03 Jan 2008 16:25:00 -0000 Message-ID: <20080103155449.32012.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/27214] The C frontend introduces undefined pointer overflow In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00193.txt.bz2 ------- Comment #10 from rguenth at gcc dot gnu dot org 2008-01-03 15:54 ------- "Fixed" only in the sense that we now create unit size align 8 symtab 0 alias set -1 canonical type 0x2b6e7ed8c300 precision 8 min max pointer_to_this > unsigned DI size unit size align 64 symtab 0 alias set -1 canonical type 0x2b6e7eda3000> arg 0 used unsigned DI file t.i line 1 col 17 size unit size align 64 context initial arg-type > arg 1 constant invariant public overflow -4>> but I consider the 'overflow' bit set on the -4 a bug. Also POINTER_PLUS_EXPR does not in any way change the issues we raised with undefinedness of overflow in pointer + offset expressions. Now, Joseph says > This bug is about the interpretation of GCC's internal representation, not > that of the standard. where yes, we seem to agreed to having an unsigned offset argument to POINTER_PLUS_EXPR which we need to interpret as a signed quantity. And in a different place we sort-of agreed to limit the maximum object size gcc handles to half of SIZE_T_MAX. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27214