Skip to content

Commit 893b28e

Browse files
committed
[flang][runtime] Enable REAL printing in F18 offload runtime.
1 parent 3f2f700 commit 893b28e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

flang/runtime/edit-output.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ template <int KIND>
263263
RT_API_ATTRS decimal::ConversionToDecimalResult
264264
RealOutputEditing<KIND>::ConvertToDecimal(
265265
int significantDigits, enum decimal::FortranRounding rounding, int flags) {
266-
#if !defined(RT_DEVICE_COMPILATION)
267266
auto converted{decimal::ConvertToDecimal<binaryPrecision>(buffer_,
268267
sizeof buffer_, static_cast<enum decimal::DecimalConversionFlags>(flags),
269268
significantDigits, rounding, x_)};
@@ -273,10 +272,6 @@ RealOutputEditing<KIND>::ConvertToDecimal(
273272
sizeof buffer_);
274273
}
275274
return converted;
276-
#else // defined(RT_DEVICE_COMPILATION)
277-
// TODO: enable Decimal library build for the device.
278-
io_.GetIoErrorHandler().Crash("not implemented yet: decimal conversion");
279-
#endif // defined(RT_DEVICE_COMPILATION)
280275
}
281276

282277
static RT_API_ATTRS bool IsInfOrNaN(const char *p, int length) {

0 commit comments

Comments
 (0)