mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-26 19:44:50 +08:00
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:
parent
85845bb942
commit
c754abbfbf
@ -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>
|
2008-02-21 Uros Bizjak <ubizjak@gmail.com>
|
||||||
|
|
||||||
* config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
|
* config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
|
||||||
|
@ -12148,6 +12148,7 @@ ix86_expand_branch (enum rtx_code code, rtx label)
|
|||||||
ix86_expand_branch (code, label);
|
ix86_expand_branch (code, label);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case LE: case LEU: case GT: case GTU:
|
case LE: case LEU: case GT: case GTU:
|
||||||
if (lo[1] == constm1_rtx)
|
if (lo[1] == constm1_rtx)
|
||||||
{
|
{
|
||||||
@ -12156,6 +12157,7 @@ ix86_expand_branch (enum rtx_code code, rtx label)
|
|||||||
ix86_expand_branch (code, label);
|
ix86_expand_branch (code, label);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -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>
|
2008-02-21 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
* gfortran.dg/reassoc_1.f90: New testcase.
|
* gfortran.dg/reassoc_1.f90: New testcase.
|
||||||
|
24
gcc/testsuite/gcc.dg/pr35264.c
Normal file
24
gcc/testsuite/gcc.dg/pr35264.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user