From: Daniel Jacobowitz <drow@false.org>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit] Use -mabi=altivec for AltiVec tests
Date: Sun, 21 Oct 2007 18:08:00 -0000 [thread overview]
Message-ID: <20071021130504.GA10828@caradoc.them.org> (raw)
In-Reply-To: <200710211235.l9LCZ2Mk002698@d12av02.megacenter.de.ibm.com>
On Sun, Oct 21, 2007 at 02:35:02PM +0200, Ulrich Weigand wrote:
> Hello,
>
> both altivec-abi.exp and altivec-regs.exp had a number of test cases
> failing because the test case source code was compiled without using
> the -mabi=altivec flag. As GDB expects the inferior to use the
> AltiVec ABI, we need to compile the test case accordingly ...
>
> Committed to mainline.
I don't think this is a good idea. -mabi=altivec is an ABI-changing
option; you're supposed to match the ABI of your system libraries.
It will work out OK in practice though since the stack alignment is
already large enough on powerpc-linux.
I committed a GCC HEAD patch several weeks ago to mark the vector ABI of
PowerPC object files. I also posted a linker patch to propogate this
into linked objects and I have the matching patch to GDB to
auto-detect the correct ABI and support both in GDB. That also
fixes this test.
Unfortunately the linker patch is hung up right now because it notices
this same dubious action (linking -mabi=altivec and -mabi=no-altivec
code) and warns about it. That causes a bunch of GCC testcase
failures. The GCC testcases in question use, but do not actually
need, -mabi=altivec; they just need a nasty bug in -maltivec
-mabi=no-altivec fixed and my patch for that didn't get any comments
:-(
Maybe I should commit the linker patch without the warning?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-10-21 13:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 13:05 Ulrich Weigand
2007-10-21 18:08 ` Daniel Jacobowitz [this message]
2007-10-21 19:37 ` Ulrich Weigand
2007-10-24 20:47 ` Daniel Jacobowitz
2007-10-29 18:04 ` Ulrich Weigand
2007-10-29 18:06 ` Daniel Jacobowitz
2007-10-29 18:32 ` Ulrich Weigand
2007-10-25 20:32 ` [rfc] PowerPC ABI detection and overrides Daniel Jacobowitz
2007-10-29 18:27 ` Ulrich Weigand
2007-10-29 18:38 ` Daniel Jacobowitz
2007-10-29 19:02 ` Ulrich Weigand
2007-10-29 19:16 ` Daniel Jacobowitz
2007-10-29 19:27 ` Ulrich Weigand
2007-10-30 20:12 ` Daniel Jacobowitz
2007-10-30 21:12 ` Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071021130504.GA10828@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=uweigand@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox