This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16010] Generated code segfaults with -mpa-risc-2-0 and -O1/-O2
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2004 03:15:20 -0000
- Subject: [Bug target/16010] Generated code segfaults with -mpa-risc-2-0 and -O1/-O2
- References: <20040615200531.16010.mhx-perl@gmx.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From danglin at gcc dot gnu dot org 2004-06-16 03:15 -------
I believe this is a duplicate of PR 11884.
PA 2.0 code is always generated for hppa64, so the -mpa-risc-2-0
option is irrelevant.
The problem relates to taking the address of the 9th argument
of the call to fb. The hppa64 port is unique as far as I know
in using an arg pointer register that is call clobbered. The
arg pointer for the call to fb gets lost in the first call to
fa and incorrect code is generated for the second call to fa.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16010