Skip to content

Commit cd0ce51

Browse files
authored
Merge pull request gcc-mirror#17 from Heath123/fix-no-bfloat
Fix compilation error when bfloat is unsupported
2 parents 1986920 + d3790a8 commit cd0ce51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcc/jit/jit-recording.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,8 +2472,10 @@ recording::memento_of_get_type::get_size ()
24722472
case GCC_JIT_TYPE_FLOAT:
24732473
size = FLOAT_TYPE_SIZE;
24742474
break;
2475+
#ifdef HAVE_BFmode
24752476
case GCC_JIT_TYPE_BFLOAT16:
24762477
return GET_MODE_UNIT_SIZE (BFmode);
2478+
#endif
24772479
case GCC_JIT_TYPE_DOUBLE:
24782480
size = DOUBLE_TYPE_SIZE;
24792481
break;

0 commit comments

Comments
 (0)