@@ -93,36 +93,32 @@ def llvm_features_from_tune(d):
93
93
return ',' . join (f )
94
94
95
95
# # arm-unknown-linux-gnueabihf
96
- DATA_LAYOUT [arm ] = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32"
97
96
LLVM_TARGET [arm ] = "${RUST_TARGET_SYS} "
98
97
TARGET_ENDIAN [arm ] = "little"
99
98
TARGET_POINTER_WIDTH [arm ] = "32"
100
99
FEATURES [arm ] = "+v6,+vfp2"
101
100
PRE_LINK_ARGS [arm ] = "-Wl,--as-needed"
102
101
POST_LINK_ARGS [arm ] = "-lssp"
103
102
104
- DATA_LAYOUT [ aarch64 ] = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-n32:64-S128"
103
+ # # aarch64-unknown-linux-gnu
105
104
LLVM_TARGET [aarch64 ] = "aarch64-unknown-linux-gnu"
106
105
TARGET_ENDIAN [aarch64 ] = "little"
107
106
TARGET_POINTER_WIDTH [aarch64 ] = "64"
108
107
PRE_LINK_ARGS [aarch64 ] = "-Wl,--as-needed"
109
108
110
109
# # x86_64-unknown-linux-gnu
111
- DATA_LAYOUT [x86_64 ] = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
112
110
LLVM_TARGET [x86_64 ] = "x86_64-unknown-linux-gnu"
113
111
TARGET_ENDIAN [x86_64 ] = "little"
114
112
TARGET_POINTER_WIDTH [x86_64 ] = "64"
115
113
PRE_LINK_ARGS [x86_64 ] = "-Wl,--as-needed -m64"
116
114
117
115
# # i686-unknown-linux-gnu
118
- DATA_LAYOUT [i686 ] = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32"
119
116
LLVM_TARGET [i686 ] = "i686-unknown-linux-gnu"
120
117
TARGET_ENDIAN [i686 ] = "little"
121
118
TARGET_POINTER_WIDTH [i686 ] = "32"
122
119
PRE_LINK_ARGS [i686 ] = "-Wl,--as-needed -m32"
123
120
124
121
# # XXX: a bit of a hack so qemux86 builds, clone of i686-unknown-linux-gnu above
125
- DATA_LAYOUT [i586 ] = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32"
126
122
LLVM_TARGET [i586 ] = "i586-unknown-linux-gnu"
127
123
TARGET_ENDIAN [i586 ] = "little"
128
124
TARGET_POINTER_WIDTH [i586 ] = "32"
@@ -214,9 +210,6 @@ def rust_gen_target(d, thing, wd):
214
210
prefix = prefix_for (d , thing )
215
211
o = open (wd + sys + '.json' , 'w' )
216
212
217
- data_layout = d . getVarFlag ('DATA_LAYOUT' , arch , True )
218
- if not data_layout :
219
- bb . utils . fatal ("DATA_LAYOUT[{}] required but not set for {}" . format (arch , thing ))
220
213
llvm_target = d . getVarFlag ('LLVM_TARGET' , arch , True )
221
214
target_pointer_width = d . getVarFlag ('TARGET_POINTER_WIDTH' , arch , True )
222
215
endian = d . getVarFlag ('TARGET_ENDIAN' , arch , True )
@@ -234,7 +227,6 @@ def rust_gen_target(d, thing, wd):
234
227
post_link_args = post_link_args_for (d , thing , arch )
235
228
236
229
o . write ('''{{
237
- "data-layout": "{}",
238
230
"llvm-target": "{}",
239
231
"target-endian": "{}",
240
232
"target-word-size": "{}",
@@ -253,7 +245,6 @@ def rust_gen_target(d, thing, wd):
253
245
"pre-link-args": {},
254
246
"post-link-args": {}
255
247
}}''' . format (
256
- data_layout ,
257
248
llvm_target ,
258
249
endian ,
259
250
target_pointer_width ,
0 commit comments