Commit c7ad3538 by Richard Sandiford Committed by Richard Sandiford

re PR sanitizer/61095 (miscompile: tsan is broken in gcc trunk, works in 4.9)

gcc/testsuite/
	PR tree-optimization/61095
	* gcc.dg/torture/pr61095.c: New test.

From-SVN: r210203
parent ca49b74e
2014-05-08 Richard Sandiford <rdsandiford@googlemail.com>
PR tree-optimization/61095
* gcc.dg/torture/pr61095.c: New test.
2014-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com> 2014-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR middle-end/39246 PR middle-end/39246
......
/* { dg-do run } */
/* { dg-require-effective-target lp64 } */
extern void __attribute__ ((noreturn)) abort (void);
int __attribute__ ((noinline, noclone))
foo (unsigned long addr) {
unsigned long *p = (unsigned long*)((addr & 0xffff83fffffffff8UL) * 4);
unsigned long xxx = (unsigned long)(p + 1);
return xxx >= 0x3c000000000UL;
}
int
main (void)
{
if (foo (0))
abort ();
if (foo (0x7c0000000000UL))
abort ();
if (!foo (0xfc0000000000UL))
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment