public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65140] New: crash with function multiversioning and LTO
@ 2015-02-20 15:57 jens.maurer at gmx dot net
2015-02-20 17:12 ` [Bug c++/65140] " rguenth at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: jens.maurer at gmx dot net @ 2015-02-20 15:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65140
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
...
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.9.2/configure --enable-languages=c,c++
--with-system-zlib --enable-lto --with-abi=m64 --disable-multilib
Thread model: posix
gcc version 4.9.2 (GCC)
...
x.cc: In function ‘foo() [clone .resolver]’:
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 <http://gcc.gnu.org/bugs.html> 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: <gcc-bugs-return-477963-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
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" <gcc-bugzilla@gcc.gnu.org>
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: <bug-65141-4@http.gcc.gnu.org/bugzilla/>
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?ide141
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-20 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20 15:57 [Bug c++/65140] New: crash with function multiversioning and LTO jens.maurer at gmx dot net
2015-02-20 17:12 ` [Bug c++/65140] " rguenth at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).