From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22656 invoked by alias); 6 Nov 2013 18:07:16 -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 20343 invoked by uid 48); 6 Nov 2013 18:05:12 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59018] [4.9 Regression] libsanitizer doesn't build for x32 Date: Wed, 06 Nov 2013 18:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.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: 2013-11/txt/msg00528.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59018 --- Comment #7 from H.J. Lu --- (In reply to Kostya Serebryany from comment #5) > > Can you try > > > > register void *r8 __asm__ ("r8") = newtls; > > register int *r10 __asm__ ("r10") = child_tidptr; > Yep, works! > > > But you need to enable x32 first on your OS, which requires > > > > 1. x32 enabled kernel, Linux kernel >= 3.4.0. > > 2. x32 glibc. > > This does not match my system. :( > Do you have a VM image (e.g. for VMWare player) with such a system? I can create an x32 VirtualBox image. Do you have a place I can upload it for you? > > > > > > > > 2. Is there any chance to test x32 off the clang tree, so that we keep the > > > upstream tree x32-clean all the time? > > > > There was x32 port of llvm/clang last year. But only parts > > of the x32 patches have been merged with llvm. > > Do you need help with this? Yes, please. I'd like to work with something to get x32 support into llvm/clang. > I'll be on the LLVM dev meeting today and tomorrow, may at least ask around.