diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-07-27 20:19:40 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-07-27 20:19:40 +0200 |
commit | f22cfb2e4ef3c8749a4814ebd5d0b39173b05b18 (patch) | |
tree | 0602f1145ce6e8161cf24a8edda962c5ab040d49 /gcc | |
parent | 084e45a515a697f61587387c4055d181f3a23e31 (diff) | |
download | gcc-f22cfb2e4ef3c8749a4814ebd5d0b39173b05b18.zip gcc-f22cfb2e4ef3c8749a4814ebd5d0b39173b05b18.tar.gz gcc-f22cfb2e4ef3c8749a4814ebd5d0b39173b05b18.tar.bz2 |
re PR target/49866 (-mcmodel=large tail call fails to assemble)
PR target/49866
* gcc.target/i386/pr49866.c: New test.
From-SVN: r176842
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr49866.c | 23 |
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 30c86ef..a5fd846 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-27 Jakub Jelinek <jakub@redhat.com> + + PR target/49866 + * gcc.target/i386/pr49866.c: New test. + 2011-07-27 Yukhin Kirill <kirill.yukhin@intel.com> * gcc.target/i386/i386.exp (check_effective_target_bmi): New. diff --git a/gcc/testsuite/gcc.target/i386/pr49866.c b/gcc/testsuite/gcc.target/i386/pr49866.c new file mode 100644 index 0000000..823305d --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr49866.c @@ -0,0 +1,23 @@ +/* PR target/49866 */ +/* { dg-do assemble } */ +/* { dg-options "-O2 -mcmodel=large" { target lp64 } } */ + +void fn (void *, int, int); +int fn2 (void); +void baz (int); + +static void +foo (void *x, int y) +{ + int i; + for (i = 0; i < y; i++) + fn (x, fn2 (), i); +} + +void +bar (int u, int v, int w, void *x) +{ + baz (u); + foo (x, w); + baz (u); +} |