This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] specific test case for gcc.dg/20000724-1.c FAIL
- From: Andreas Schwab <schwab at suse dot de>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: Diego Novillo <dnovillo at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 15 Oct 2003 17:17:55 +0200
- Subject: Re: [tree-ssa] specific test case for gcc.dg/20000724-1.c FAIL
- References: <1066140613.3628.189.camel@steven.lr-s.tudelft.nl><1066149165.1214.72.camel@frodo.toronto.redhat.com><1066230466.30812.5.camel@steven.lr-s.tudelft.nl>
Steven Bosscher <s.bosscher@student.tudelft.nl> writes:
> Op di 14-10-2003, om 18:32 schreef Diego Novillo:
>> On Tue, 2003-10-14 at 10:10, Steven Bosscher wrote:
>>
>> > So x (or actually, x_2) is VUSEd in the asm, but this is never recorded,
>> > hence DCE thinks the "x = {0}" statement is dead.
>> >
>> Yup. Could you add the test case please? It shouldn't be too hard to
>> fix.
>
> Added as gcc.dg/tree-ssa/20031015-1.c.
>
> /* With tree-ssa, gcc.dg/20000724-1.c fails because we miss a VUSE
> of x in the asm statement. */
> /* { dg-do compile } */
> /* { dg-options "-O1 -fdump-tree-ssa1-vops" } */
> struct s {
> int a;
> };
> int
> main(void)
> {
> struct s x = { 0 };
> asm volatile ("call ___checkme" : : "c" (&x) : "memory");
That should be i386-only, shouldn't it?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."