From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30321 invoked by alias); 20 Feb 2015 15:00:35 -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 Received: (qmail 6416 invoked by uid 48); 20 Feb 2015 15:00:27 -0000 From: "jens.maurer at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65140] New: crash with function multiversioning and LTO Date: Fri, 20 Feb 2015 15:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jens.maurer at gmx dot net 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg02294.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65140 Bug ID: 65140 Summary: crash with function multiversioning and LTO Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jens.maurer at gmx dot net The first example for function multiversioning given at https://gcc.gnu.org/wiki/FunctionMultiVersioning crashes when compiled with -flto. Reduced example: __attribute__ ((target ("default"))) void foo() { } __attribute__ ((target ("sse4.2"))) void foo() { } int main () { foo(); } Compiler output: $ g++ -v -flto x.cc=20 ... Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.9.2/configure --enable-languages=3Dc,c++ --with-system-zlib --enable-lto --with-abi=3Dm64 --disable-multilib Thread model: posix gcc version 4.9.2 (GCC)=20 ... x.cc: In function =E2=80=98foo() [clone .resolver]=E2=80=99: x.cc:11:1: internal compiler error: Segmentation fault } ^ 0x990c0f crash_signal ../../gcc-4.9.2/gcc/toplev.c:337 0x8bd90e tree_is_indexable ../../gcc-4.9.2/gcc/lto-streamer-out.c:139 0x8bf56f lto_output_tree(output_block*, tree_node*, bool, bool) ../../gcc-4.9.2/gcc/lto-streamer-out.c:1352 0x8bfc74 output_function ../../gcc-4.9.2/gcc/lto-streamer-out.c:1832 0x8bfc74 lto_output() ../../gcc-4.9.2/gcc/lto-streamer-out.c:2084 0x8f39a1 write_lto ../../gcc-4.9.2/gcc/passes.c:2298 0x8f6550 ipa_write_summaries_1 ../../gcc-4.9.2/gcc/passes.c:2360 0x8f6550 ipa_write_summaries() ../../gcc-4.9.2/gcc/passes.c:2417 0x71eb2a ipa_passes ../../gcc-4.9.2/gcc/cgraphunit.c:2078 0x71eb2a compile() ../../gcc-4.9.2/gcc/cgraphunit.c:2174 0x71ece4 finalize_compilation_unit() ../../gcc-4.9.2/gcc/cgraphunit.c:2329 0x5d30a3 cp_write_global_declarations() ../../gcc-4.9.2/gcc/cp/decl2.c:4643 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-477963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Feb 20 15:39:59 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16199 invoked by alias); 20 Feb 2015 15:39:59 -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 16173 invoked by uid 48); 20 Feb 2015 15:39:55 -0000 From: "zbeekman at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65141] New: ISO_10646 constant parameters convert kind when used with substring references Date: Fri, 20 Feb 2015 16:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zbeekman 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-02/txt/msg02295.txt.bz2 Content-length: 1158 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65141 Bug ID: 65141 Summary: ISO_10646 constant parameters convert kind when used with substring references Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: zbeekman at gmail dot com Substring references with ISO_10646 kind characters cause the resulting expression to be DEFAULT kind rather than ISO_10646. Reproducer: program ISO_CONST_SUBST_PR implicit none integer, parameter :: UNICODE=selected_char_kind('ISO_10646') integer, parameter :: DEFAULT=selected_char_kind('DEFAULT') character(kind=UNICODE,len=*),parameter :: string='my string' write(*,'(A, I0, A, I0)') 'Unicode and default character kinds are: ',UNICODE,', ',DEFAULT write(*,'(A, I0)') 'kind(string) should be UNICODE and is UNICODE for me: ',kind(string) write(*,'(A, I0)') 'kind(string(2:4)) should be UNICODE and is DEFAULT for me: ',kind(string(2:4)) end program ISO_CONST_SUBST_PR