public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch ARM] Call final_start_function and final_end_function in arm_output_mi_thunk.
       [not found] <512DCC5F.7000008@arm.com>
@ 2013-02-28 10:27 ` Ramana Radhakrishnan
  0 siblings, 0 replies; only message in thread
From: Ramana Radhakrishnan @ 2013-02-28 10:27 UTC (permalink / raw)
  To: gcc-patches@gcc.gnu.org ;

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi,

	Ports should call final_start_function and final_end_function to get 
proper debug info for the thunk as per 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55257#c3 . Fixes failing 
tests in g++.dg for arm-*-*eabi.

Tested on arm-linux-gnueabi cross for armv7-a, arm/thumb2 and armv5t on 
qemu. Applied.

Thanks,
Ramana

2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

	* config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and 
final_end_function.


---
   gcc/config/arm/arm.c |    4 ++++
   1 file changed, 4 insertions(+)





[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Call-final_start_function-and-final_end_function-in-.patch --]
[-- Type: text/x-patch;  name=0001-Call-final_start_function-and-final_end_function-in-.patch, Size: 609 bytes --]

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 3e7bd7f..44fefb0 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -24314,6 +24314,8 @@ arm_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
   if (mi_delta < 0)
     mi_delta = - mi_delta;
 
+  final_start_function (emit_barrier (), file, 1);
+
   if (TARGET_THUMB1)
     {
       int labelno = thunk_label++;
@@ -24430,6 +24432,8 @@ arm_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
         fputs ("(PLT)", file);
       fputc ('\n', file);
     }
+
+  final_end_function ();
 }
 
 int

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-28 10:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <512DCC5F.7000008@arm.com>
2013-02-28 10:27 ` [Patch ARM] Call final_start_function and final_end_function in arm_output_mi_thunk Ramana Radhakrishnan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).