• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/5.4.0/840-microblaze-enable-dwarf-eh-support.patch
Gustavo ZacariasGustavo Zacarias committed bb4809e067807 Jun 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
+#define EH_RETURN_DATA_REGNO(N) (((N) < 2) ? MB_ABI_FIRST_ARG_REGNUM + (N) : INVALID_REGNUM)
 
1
Fetched from Xilinx gcc git at https://github.com/Xilinx/gcc
2
​
3
From 23c35173490ac2d6348a668dfc9c1a6eb62171f2 Mon Sep 17 00:00:00 2001
4
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
5
Date: Mon, 18 Jun 2012 20:18:13 +0200
6
Subject: [PATCH] [Patch, microblaze]: Enable DWARF exception handling support.
7
​
8
Changelog
9
​
10
2013-03-18  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11
            David Holsgrove <david.holsgrove@xilinx.com>
12
​
13
 * common/config/microblaze/microblaze-common.c: Remove
14
   TARGET_EXCEPT_UNWIND_INFO definition.
15
 * config/microblaze/microblaze-protos.h: Add
16
   microblaze_eh_return prototype.
17
 * gcc/config/microblaze/microblaze.c: (microblaze_must_save_register,
18
   microblaze_expand_epilogue, microblaze_return_addr): Handle
19
   calls_eh_return
20
   (microblaze_eh_return): New function.
21
 * gcc/config/microblaze/microblaze.h: Define RETURN_ADDR_OFFSET,
22
   EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX,
23
   ASM_PREFERRED_EH_DATA_FORMAT
24
 * gcc/config/microblaze/microblaze.md: Define eh_return pattern.
25
​
26
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
27
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
28
---
29
 gcc/common/config/microblaze/microblaze-common.c |  3 ---
30
 gcc/config/microblaze/microblaze-protos.h        |  1 +
31
 gcc/config/microblaze/microblaze.c               | 29 ++++++++++++++++++++----
32
 gcc/config/microblaze/microblaze.h               | 15 ++++++++++++
33
 gcc/config/microblaze/microblaze.md              | 11 +++++++++
34
 5 files changed, 52 insertions(+), 7 deletions(-)
35
​
36
Index: b/gcc/common/config/microblaze/microblaze-common.c
37
===================================================================
38
--- a/gcc/common/config/microblaze/microblaze-common.c
39
+++ b/gcc/common/config/microblaze/microblaze-common.c
40
@@ -37,7 +37,4 @@
41
 #undef  TARGET_OPTION_OPTIMIZATION_TABLE
42
 #define TARGET_OPTION_OPTIMIZATION_TABLE microblaze_option_optimization_table
43
 
44
-#undef TARGET_EXCEPT_UNWIND_INFO
45
-#define TARGET_EXCEPT_UNWIND_INFO  sjlj_except_unwind_info
46
-
47
 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
48
Index: b/gcc/config/microblaze/microblaze-protos.h
49
===================================================================
50
--- a/gcc/config/microblaze/microblaze-protos.h
51
+++ b/gcc/config/microblaze/microblaze-protos.h
52
@@ -56,6 +56,7 @@
53
 extern int symbol_mentioned_p (rtx);
54
 extern int label_mentioned_p (rtx);
55
 extern bool microblaze_cannot_force_const_mem (machine_mode, rtx);
56
+extern void microblaze_eh_return (rtx op0);
57
 #endif  /* RTX_CODE */
58
 
59
 /* Declare functions in microblaze-c.c.  */
60
Index: b/gcc/config/microblaze/microblaze.c
61
===================================================================
62
--- a/gcc/config/microblaze/microblaze.c
63
+++ b/gcc/config/microblaze/microblaze.c
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.