https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58306 --- Comment #5 from Artem S. Tashkinov --- Created attachment 35355 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35355&action=edit Sources and Makefile (run make to reproduce) GCC 5.0.1 RC2 is also affected: g++ -O3 -march=native -Wno-attributes -fno-tree-vectorize -fprofile-use -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c hash.cpp blake2s.cpp: In function ‘void blake2s_update(blake2s_state*, const byte*, size_t)’: blake2s.cpp:138:40: error: corrupted value profile: value profile counter (10976192 out of 10966245) inconsistent with basic-block count (10996457) memcpy( S->buf + left, in, fill ); // Fill buffer ^ blake2s.cpp:162:49: error: corrupted value profile: value profile counter (10915050 out of 10973342) inconsistent with basic-block count (10932972) memcpy( S->buf + left, in, (size_t)inlen ); ^ make: *** [blake2s.o] Error 1 make: *** Waiting for unfinished jobs.... >From gcc-bugs-return-483988-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Apr 18 23:04:44 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90262 invoked by alias); 18 Apr 2015 23:04:44 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90241 invoked by uid 48); 18 Apr 2015 23:04:40 -0000 From: "gang.chen.5i5j at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65803] New: blackfin: internal compiler error: segment fault linux kernel Date: Sat, 18 Apr 2015 23:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gang.chen.5i5j at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg01540.txt.bz2 Content-length: 2385 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide803 Bug ID: 65803 Summary: blackfin: internal compiler error: segment fault linux kernel Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gang.chen.5i5j at gmail dot com The code: [root@localhost gcc]# cat lbalance.i struct a { short count; }; struct reiserfs_de_head { unsigned short deh_location; } __attribute__ ((__packed__)); void leaf_cut_from_buffer(struct a *ih, int from) { struct reiserfs_de_head *deh = (struct reiserfs_de_head *)ih; int i; for (i = ih->count - 1; i > from; i--) deh[i].deh_location--; for (i = 0; i < from; i++) deh[i].deh_location--; } The error: [root@localhost gcc]# /upstream/build-gcc-blackfin/gcc/cc1 lbalance.i -Os -fno-strict-overflow lbalance.i: In function 'leaf_cut_from_buffer': lbalance.i:19:1: internal compiler error: Segmentation fault } ^ 0xa54a9f crash_signal ../../gcc-blackfin/gcc/toplev.c:383 0x77af8b INSN_UID ../../gcc-blackfin/gcc/rtl.h:1329 0x77af8b insn_current_reference_address(rtx_insn*) ../../gcc-blackfin/gcc/final.c:686 0xd39604 insn_current_length(rtx_insn*) /upstream/build-gcc-blackfin/gcc/insn-attrtab.c:84 0x77c12e shorten_branches(rtx_insn*) ../../gcc-blackfin/gcc/final.c:1478 0x77c51f rest_of_handle_shorten_branches ../../gcc-blackfin/gcc/final.c:4580 0x77c51f execute ../../gcc-blackfin/gcc/final.c:4609 Please submit a full bug report, The version: [root@localhost gcc]# /upstream/release-blackfin/bin/bfin-gchen-elf-gcc -v Using built-in specs. COLLECT_GCC=/upstream/release-blackfin/bin/bfin-gchen-elf-gcc COLLECT_LTO_WRAPPER=/upstream/release-blackfin/libexec/gcc/bfin-gchen-elf/5.0.0/lto-wrapper Target: bfin-gchen-elf Configured with: ../gcc-blackfin/configure --target¿in-gchen-elf --disable-nls --disable-threads --disable-shared --disable-libssp --disable-libquadmath --disable-libgomp --disable-libatomic --prefix=/upstream/release-blackfin --without-headers target_alias¿in-gchen-elf --enable-languages=c,lto Thread model: single gcc version 5.0.0 20150401 (experimental) (GCC)