re PR target/35264 (ntfs-3g miscompiled)

PR target/35264
        * config/i386/i386.c (ix86_expand_branch): Add missing breaks.

        * gcc.dg/pr35264.c: New testcase.

From-SVN: r132521
This commit is contained in:
Michael Matz 2008-02-21 12:38:35 +00:00 committed by Michael Matz
parent 85845bb942
commit c754abbfbf
4 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-02-21 Michael Matz <matz@suse.de>
PR target/35264
* config/i386/i386.c (ix86_expand_branch): Add missing breaks.
2008-02-21 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,

View File

@ -12148,6 +12148,7 @@ ix86_expand_branch (enum rtx_code code, rtx label)
ix86_expand_branch (code, label);
return;
}
break;
case LE: case LEU: case GT: case GTU:
if (lo[1] == constm1_rtx)
{
@ -12156,6 +12157,7 @@ ix86_expand_branch (enum rtx_code code, rtx label)
ix86_expand_branch (code, label);
return;
}
break;
default:
break;
}

View File

@ -1,3 +1,8 @@
2008-02-21 Michael Matz <matz@suse.de>
PR target/35264
* gcc.dg/pr35264.c: New testcase.
2008-02-21 Richard Guenther <rguenther@suse.de>
* gfortran.dg/reassoc_1.f90: New testcase.

View File

@ -0,0 +1,24 @@
/* { dg-do run } */
/* { dg-options "-O1" } */
extern void abort(void);
long long __attribute__((noinline)) get(void)
{
return -2;
}
long long __attribute__((noinline)) get(void);
int __attribute__((noinline)) check(void)
{
long long lcn;
lcn = get();
if (lcn >= 0 || lcn == -1)
return 0;
return -1;
}
int main()
{
if (check() == 0)
abort();
return 0;
}