This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] specific test case for gcc.dg/20000724-1.c FAIL


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]