From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22996 invoked by alias); 4 Feb 2015 20:09:32 -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 22314 invoked by uid 48); 4 Feb 2015 20:09:29 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64922] [5 Regression] runtime error: member call on misaligned address for type 'struct _Rep' Date: Wed, 04 Feb 2015 20:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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/msg00369.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64922 --- Comment #9 from Jakub Jelinek --- (In reply to Jakub Jelinek from comment #8) > So, with the patch you've posted I get: > $ /usr/src/gcc/obj/gcc/g++ -B /usr/src/gcc/obj/gcc/ > `/usr/src/gcc/obj/x86_*/libstdc++-v3/scripts/testsuite_flags > --build-includes` -E -o x.ii x.cc -O2 -D_GLIBCXX_USE_CXX11_ABI=0 > $ /usr/src/gcc/obj/gcc/cc1plus -fsanitize=alignment,bool,enum,unreachable > -O2 x.ii -quiet > $ gcc -o x x.s > /usr/src/gcc/obj/x86_64-unknown-linux-gnu/libsanitizer/ubsan/.libs/libubsan. > a -lpthread -ldl > /usr/src/gcc/obj/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++. > so > -Wl,-rpath,/usr/src/gcc/obj/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/ > $ ./pol6 a > x.cc:39:3: runtime error: execution reached a __builtin_unreachable() call > > And the unreachable calls in there are IMHO wrong. /g++ -> /xg++ ./pol6 -> ./x Sorry, for the typos.