Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: gcc/unwind-pnacl.h

Issue 1151383009: Use R0/R1 instead of R4/R5 for eh_return on ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-gcc.git@pnacl
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef UNWIND_PNACL_H 1 #ifndef UNWIND_PNACL_H
2 #define UNWIND_PNACL_H 2 #define UNWIND_PNACL_H
3 3
4 #define STACK_GROWS_DOWNWARD 1 4 #define STACK_GROWS_DOWNWARD 1
5 5
6 /* Define: __builtin_dwarf_sp_column */ 6 /* Define: __builtin_dwarf_sp_column */
7 #if defined(__x86_64__) 7 #if defined(__x86_64__)
8 #define __builtin_dwarf_sp_column() 7 8 #define __builtin_dwarf_sp_column() 7
9 #elif defined(__i386__) 9 #elif defined(__i386__)
10 #define __builtin_dwarf_sp_column() 4 10 #define __builtin_dwarf_sp_column() 4
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #else 87 #else
88 #error "Unknown platform" 88 #error "Unknown platform"
89 #endif 89 #endif
90 90
91 /* This corresponds to: __builtin_eh_return_data_regno(0) */ 91 /* This corresponds to: __builtin_eh_return_data_regno(0) */
92 #if defined(__x86_64__) 92 #if defined(__x86_64__)
93 #define pnacl_unwind_result0_reg() 0 93 #define pnacl_unwind_result0_reg() 0
94 #elif defined(__i386__) 94 #elif defined(__i386__)
95 #define pnacl_unwind_result0_reg() 0 95 #define pnacl_unwind_result0_reg() 0
96 #elif defined(__arm__) 96 #elif defined(__arm__)
97 #define pnacl_unwind_result0_reg() 4 97 #define pnacl_unwind_result0_reg() 0
98 #elif defined(__mips__) 98 #elif defined(__mips__)
99 #define pnacl_unwind_result0_reg() 4 99 #define pnacl_unwind_result0_reg() 4
100 #else 100 #else
jvoung (off chromium) 2015/06/03 17:21:04 I wonder if mips is going to have the same problem
Derek Schuff 2015/06/03 20:51:11 Yeah, it seems likely. I still have the suspicion
101 #error "unknown platform" 101 #error "unknown platform"
102 #endif 102 #endif
103 103
104 /* This corresponds to: __builtin_eh_return_data_regno(1) */ 104 /* This corresponds to: __builtin_eh_return_data_regno(1) */
105 #if defined(__x86_64__) 105 #if defined(__x86_64__)
106 #define pnacl_unwind_result1_reg() 1 106 #define pnacl_unwind_result1_reg() 1
107 #elif defined(__i386__) 107 #elif defined(__i386__)
108 #define pnacl_unwind_result1_reg() 2 108 #define pnacl_unwind_result1_reg() 2
109 #elif defined(__arm__) 109 #elif defined(__arm__)
110 #define pnacl_unwind_result1_reg() 5 110 #define pnacl_unwind_result1_reg() 1
111 #elif defined(__mips__) 111 #elif defined(__mips__)
112 #define pnacl_unwind_result1_reg() 5 112 #define pnacl_unwind_result1_reg() 5
113 #else 113 #else
114 #error "unknown platform" 114 #error "unknown platform"
115 #endif 115 #endif
116 116
117 #endif /* UNWIND_PNACL_H */ 117 #endif /* UNWIND_PNACL_H */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698