S/390: New mcount call sequence for z900+ CPUs in 31-bit mode.

gcc/ChangeLog:

2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>

	* config/s390/s390.c (s390_function_profiler): Add a new sequence
	for z900+ CPUs in 31-bit mode.

From-SVN: r233422
This commit is contained in:
Marcin Kościelnicki 2016-02-15 11:48:28 +00:00 committed by Andreas Krebbel
parent 4cb4721f93
commit 7e2507a578
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
* config/s390/s390.c (s390_function_profiler): Add a new sequence
for z900+ CPUs in 31-bit mode.
2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
* common/config/s390/s390-common.c (s390_supports_split_stack):

View File

@ -12205,6 +12205,13 @@ s390_function_profiler (FILE *file, int labelno)
output_asm_insn ("brasl\t%0,%4", op);
output_asm_insn ("lg\t%0,%1", op);
}
else if (TARGET_CPU_ZARCH)
{
output_asm_insn ("st\t%0,%1", op);
output_asm_insn ("larl\t%2,%3", op);
output_asm_insn ("brasl\t%0,%4", op);
output_asm_insn ("l\t%0,%1", op);
}
else if (!flag_pic)
{
op[6] = gen_label_rtx ();