From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19527 invoked by alias); 28 Jan 2015 09:36: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 19399 invoked by uid 55); 28 Jan 2015 09:36:27 -0000 From: "ramana.radhakrishnan at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/64810] jit not working on armv7hl ("ld: error: /tmp/libgccjit-ZGemdr/fake.so uses VFP register arguments, /tmp/ccJFCBsE.o does not") Date: Wed, 28 Jan 2015 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana.radhakrishnan at arm dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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-01/txt/msg03195.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64810 --- Comment #8 from ramana.radhakrishnan at arm dot com --- On 27/01/15 20:00, dmalcolm at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64810 > > --- Comment #7 from David Malcolm --- > (In reply to ramana.radhakrishnan@arm.com from comment #4) >> On 27/01/15 12:27, jakub at gcc dot gnu.org wrote: >>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64810 >>> >>> Jakub Jelinek changed: >>> >>> What |Removed |Added >>> ---------------------------------------------------------------------------- >>> CC| |jakub at gcc dot gnu.org >>> >>> --- Comment #2 from Jakub Jelinek --- >>> Both the compiler and libgccjit were configured with: >>> --with-tune=cortex-a8 --with-arch=armv7-a --with-float=hard >>> --with-fpu=vfpv3-d16 --with-abi=aapcs-linux >> >> >> The --with-abi=aapcs-linux in addition to the --with-float=hard argument >> is just wrong. In fact it allows for a case where if the order of >> command line arguments passed to the compiler if in some way is wrong, >> the code generated will force the compiler into passing floating point >> parameters through the integer registers rather than fp registers which >> is what the --with-float=hard configure time option is doing. >> >> Really Fedora should remove this from the configure line as it only >> confuses people. > > Ramana: I'm sorry, I had trouble parsing your comment (e.g. which option were > you referring to by "this" in the final sentence above). By "this" in the final sentence, I referred to the --with-abi=aapcs-linux option. > > What should I configure with when debugging this? > e.g. should I keep the --with-abi=aapcs-linux and lose the --with-float=hard? > should I be testing with the other options Jakub mentioned? etc. The architecture specific options that are commonly used for bootstrapping on ARM hard float are the following. --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 > > (Sorry about my ignorance here; I'm not particularly familiar with arm, and my > test machine is slow which makes it difficult to exhaustively try every > possibility). No problem it's not an issue - there are quite a few options available so it's not easy to get the correct options sorted in the first instance. Ramana >