diff options
author | Uros Bizjak <uros@kss-loka.si> | 2005-11-08 07:21:51 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2005-11-08 07:21:51 +0100 |
commit | dfea1f6121293f7ddccc8a599ee4a70cf7a06ab7 (patch) | |
tree | 166d9955cced43acc0779bd5bba06c8452409cf5 /gcc/testsuite/gcc.dg | |
parent | 2c9c9afdba87b81834674c14cf9ae5f8ab6aecda (diff) | |
download | gcc-dfea1f6121293f7ddccc8a599ee4a70cf7a06ab7.zip gcc-dfea1f6121293f7ddccc8a599ee4a70cf7a06ab7.tar.gz gcc-dfea1f6121293f7ddccc8a599ee4a70cf7a06ab7.tar.bz2 |
re PR target/19340 (Compilation SEGFAULTs with -O1 -fschedule-insns2 -fsched2-use-traces on an x86 architecture.)
PR target/19340
* reg-stack.c (reg_to_stack): Update register liveness also
for flag_sched2_use_traces.
testsuite/
PR target/19340
* gcc.dg/pr19340.c: New test.
From-SVN: r106632
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr19340.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr19340.c b/gcc/testsuite/gcc.dg/pr19340.c new file mode 100644 index 0000000..cac4b09 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr19340.c @@ -0,0 +1,26 @@ +/* { dg-do compile } */ +/* { dg-options "-O1 -fschedule-insns2 -fsched2-use-traces" } */ + +extern double f (double x); + +double g (int a) +{ + int b, c, d, e = 0; + double h; + + for (d = 0; d < a; d++) + for (c = 0; c < a; c++) + b = 1; + + h = (double) e / (double) a; + + if (h) + { + h = 1.0 / h; + h = f (h); + } + else + h = 1.0; + + return h; +} |