summaryrefslogtreecommitdiff
path: root/debian/patches/pr67280.diff
blob: 11b631ef6a3b93c517e3e7ae28fb0ef0313b3f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# DP: Apply proposed patch for PR target/67280 (ARM).

gcc/ChangeLog:

<DATE>  Charles Baylis  <charles.baylis@linaro.org>

	* cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
	in new callgraph edge.

Change-Id: I13423872e37f3ca8e0bd61e8eac4a06e8e107a2c
---
 gcc/cgraphunit.c | 1 +
 1 file changed, 1 insertion(+)

--- a/src/gcc/cgraphunit.c
+++ b/src/gcc/cgraphunit.c
@@ -2543,6 +2543,7 @@ cgraph_node::create_wrapper (cgraph_node *target)
   memset (&thunk, 0, sizeof (cgraph_thunk_info));
   thunk.thunk_p = true;
   create_edge (target, NULL, count, CGRAPH_FREQ_BASE);
+  callees->can_throw_external = !TREE_NOTHROW (target->decl);
 
   tree arguments = DECL_ARGUMENTS (decl);
 
-- 
1.9.1