This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv3] powerpc: ABI change - add HWCAP/HWCAP2/platform info to TCB
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Peter Bergner <bergner at vnet dot ibm dot com>
- Cc: Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>, GNU C Library <libc-alpha at sourceware dot org>, Tulio Machado <tuliom at linux dot vnet dot ibm dot com>, "Steven J. Munroe" <sjmunroe at us dot ibm dot com>, Carlos O'Donell <carlos at redhat dot com>
- Date: Thu, 24 Sep 2015 01:27:23 +0000
- Subject: Re: [PATCHv3] powerpc: ABI change - add HWCAP/HWCAP2/platform info to TCB
- Authentication-results: sourceware.org; auth=none
- References: <4BE991CB-F601-4D63-A416-5991FE870FC4 at linux dot vnet dot ibm dot com> <alpine dot DEB dot 2 dot 10 dot 1509232114070 dot 10585 at digraph dot polyomino dot org dot uk> <B650304C-6207-46AC-B6A8-FA29959B305D at linux dot vnet dot ibm dot com> <alpine dot DEB dot 2 dot 10 dot 1509232141250 dot 10585 at digraph dot polyomino dot org dot uk> <1443046986 dot 23503 dot 68 dot camel at otta> <alpine dot DEB dot 2 dot 10 dot 1509232234500 dot 10585 at digraph dot polyomino dot org dot uk> <1443050731 dot 23503 dot 78 dot camel at otta> <alpine dot DEB dot 2 dot 10 dot 1509232340470 dot 10585 at digraph dot polyomino dot org dot uk> <1443057751 dot 13186 dot 6 dot camel at otta>
On Wed, 23 Sep 2015, Peter Bergner wrote:
> On Wed, 2015-09-23 at 23:45 +0000, Joseph Myers wrote:
> > I'm not clear on whether your configure test is meant to be in the gcc/
> > directory or in libgcc/. In gcc/, it's not possible to do compile or link
> > tests for the target at all - all you can do is examine headers for the
> > target (which may or may not be available either).
>
> I was thinking of a gcc/ configure test. Can't I just add a test
> using something likethe following?
>
> AC_LINK_IFELSE([
No, because that's a test of linking for the host, and what you want is a
target property not a host property, and native and cross tools for the
same target should behave identically.
--
Joseph S. Myers
joseph@codesourcery.com