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: Peter Bergner <bergner at vnet dot ibm dot com>
- To: Joseph Myers <joseph at codesourcery 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: Wed, 23 Sep 2015 20:22:31 -0500
- 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>
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([
void *dummy = &__init_hwcapinfo;
int main(void) {return 0;}
], ..., ...)
Maybe even guarded by some "case $host in ... powerpc*-*-*)" test ?
Peter