Commit 82b3eb42 by Marek Michalkiewicz Committed by Marek Michalkiewicz

re PR target/18551 (wrong asm output for -mcall-prologues with g++)

	PR target/18551
	* config/avr/avr.c (avr_output_function_prologue): Do not use
	current_function_name() in a label, use a local label instead.

From-SVN: r96765
parent e7108df9
2005-03-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
PR target/18551
* config/avr/avr.c (avr_output_function_prologue): Do not use
current_function_name() in a label, use a local label instead.
2005-03-20 David Edelsohn <edelsohn@gnu.org> 2005-03-20 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_generate_compare): Test * config/rs6000/rs6000.c (rs6000_generate_compare): Test
......
...@@ -704,14 +704,12 @@ avr_output_function_prologue (FILE *file, HOST_WIDE_INT size) ...@@ -704,14 +704,12 @@ avr_output_function_prologue (FILE *file, HOST_WIDE_INT size)
} }
else if (minimize && (frame_pointer_needed || live_seq > 6)) else if (minimize && (frame_pointer_needed || live_seq > 6))
{ {
const char *cfun_name = current_function_name ();
fprintf (file, ("\t" fprintf (file, ("\t"
AS1 (ldi, r26) ",lo8(" HOST_WIDE_INT_PRINT_DEC ")" CR_TAB AS1 (ldi, r26) ",lo8(" HOST_WIDE_INT_PRINT_DEC ")" CR_TAB
AS1 (ldi, r27) ",hi8(" HOST_WIDE_INT_PRINT_DEC ")" CR_TAB), size, size); AS1 (ldi, r27) ",hi8(" HOST_WIDE_INT_PRINT_DEC ")" CR_TAB), size, size);
fprintf (file, (AS2 (ldi, r30, pm_lo8(.L_%s_body)) CR_TAB fputs ((AS2 (ldi,r30,pm_lo8(1f)) CR_TAB
AS2 (ldi, r31, pm_hi8(.L_%s_body)) CR_TAB), AS2 (ldi,r31,pm_hi8(1f)) CR_TAB), file);
cfun_name, cfun_name);
prologue_size += 4; prologue_size += 4;
...@@ -727,7 +725,7 @@ avr_output_function_prologue (FILE *file, HOST_WIDE_INT size) ...@@ -727,7 +725,7 @@ avr_output_function_prologue (FILE *file, HOST_WIDE_INT size)
(18 - live_seq) * 2); (18 - live_seq) * 2);
++prologue_size; ++prologue_size;
} }
fprintf (file, ".L_%s_body:\n", cfun_name); fputs ("1:\n", file);
} }
else else
{ {
......
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