Commit 07c60ef7 by Rainer Orth Committed by Rainer Orth

re PR target/43643 (gcc -m64 -pg corrupts %rdx / %rcx register)

	gcc:
	PR target/43643
	* config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.

	gcc/testsuite:
	PR target/43643
	* gcc.dg/pr43643.c: New test.

From-SVN: r158130
parent 3e2f637e
2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/43643
* config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar. * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
(Specific, *-*-solaris2*): Likewise. (Specific, *-*-solaris2*): Likewise.
Don't prefer Sun as over GNU as. Don't prefer Sun as over GNU as.
......
...@@ -275,7 +275,7 @@ asm(".globl _mcount\n" ...@@ -275,7 +275,7 @@ asm(".globl _mcount\n"
"\tmovq\t0x20(%rsp),%rdi\n" "\tmovq\t0x20(%rsp),%rdi\n"
"\tmovq\t0x18(%rsp),%rsi\n" "\tmovq\t0x18(%rsp),%rsi\n"
"\tmovq\t0x10(%rsp),%rdx\n" "\tmovq\t0x10(%rsp),%rdx\n"
"\tmovq\t0x08(%rsp),%rdx\n" "\tmovq\t0x08(%rsp),%rcx\n"
"\tmovq\t(%rsp),%rax\n" "\tmovq\t(%rsp),%rax\n"
"\taddq\t$0x38,%rsp\n" "\taddq\t$0x38,%rsp\n"
"\tretq\n" "\tretq\n"
......
2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/43643
* gcc.dg/pr43643.c: New test.
2010-04-08 Tobias Burnus <burnus@net-b.de> 2010-04-08 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/iso_fortran_env_6.f90: Add more checks. * gfortran.dg/iso_fortran_env_6.f90: Add more checks.
......
/* Contributed by Jürgen Keil <jrgn.keil@googlemail.com> */
/* { dg-do run } */
/* { dg-require-profiling "-pg" } */
/* { dg-options "-O2 -pg" } */
extern char *strdup (const char *);
void
func(char *a, char *b, char *c)
{
strdup(a);
strdup(b);
strdup(c);
}
int
main(void)
{
func("a", "b", "c");
return 0;
}
/* { dg-final { cleanup-profile-file } } */
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