This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,TARGET]PR21078,21080 Fix AVR builtin_return_address


Hi, Andy.

--- avr.c (revision 154107)
+++ avr.c (working copy)
@@ -461,6 +461,30 @@
....
+avr_return_addr_rtx (int count, const_rtx tem)
+{
+ rtx r;
+ <<<
+ /* Can only return this functions return address. Others not supported. */
+ if (count)
+ return NULL;
+ <<<
+ if (AVR_3_BYTE_PC)


Remove spaces in the end of line.

+  else
+    r = gen_rtx_SYMBOL_REF (Pmode, ".L__stack_usage+1");

Add blank line here.

+  r = gen_rtx_PLUS (Pmode, tem, r);    <<<<
+  r = gen_frame_mem (Pmode, memory_address (Pmode, r));

@@ -785,6 +818,11 @@
}
fprintf (file, "/* frame size = " HOST_WIDE_INT_PRINT_DEC " */\n",
get_frame_size());
+ fprintf (file, "/* stack size = %d */\n",
+ cfun->machine->stack_usage);
+ /* Create symbol stack offset here so all functions have it. Add 1 to stack <<<


Remove spaces in the end of line.



Ok?



Ok, with this changes.



Thanks.


Anatoly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]