From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19657 invoked by alias); 3 Jan 2010 17:31:14 -0000 Received: (qmail 19622 invoked by uid 48); 3 Jan 2010 17:31:04 -0000 Date: Sun, 03 Jan 2010 17:31:00 -0000 Message-ID: <20100103173104.19621.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/42528] ICE with -flto and -fsigned-char 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: 2010-01/txt/msg00294.txt.bz2 ------- Comment #3 from rguenth at gcc dot gnu dot org 2010-01-03 17:31 ------- The same problem exists for builtin functions that return or take arguments of type char *. They change signature according to -f[un]signed-char which causes for example FAIL: gcc.c-torture/execute/builtins/strcpy-chk.c compilation, -O2 -flto (internal compiler error) when running with -funsigned-char on x86: char p[32] = ""; int main () { if (__builtin___strcpy_chk (p + 1, "vwxyz", __builtin_object_size (p + 1, 0)) != p + 1) __builtin_abort (); return 0; } $ /obj/trunk-g/gcc/xgcc -B/obj/trunk-g/gcc/ strcpy-chk.3.i -O -flto -funsigned-char In file included from :0:0: strcpy-chk.3.i: In function 'main': strcpy-chk.3.i:2:5: error: non-trivial conversion at assignment * * D.2023_3 = D.2027_5; strcpy-chk.3.i:2:5: internal compiler error: verify_stmts failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42528