[Committed] Update Fortran expression dumper for BT_BOZ

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Committed] Update Fortran expression dumper for BT_BOZ

Steve Kargl
The attached and committed patch updates gfortran
expression dumper to do something sensible with a
gfc_expr that is a BT_BOZ basic type.  That is, for

program a
   real :: x = real(b'10101')
   real :: y = real(o'4444')
   real :: z = real(z'abcd')
   print *, x, y, z
end program a

if one is in gdb, you now get (in gfc_boz2real).

(gdb) call debug(x)
b'10101' (BOZ 0)
 
(gdb) call debug(x)
o'4444' (BOZ 0)

(gdb) call debug(x)
z'abcd' (BOZ 0)

2019-10-23  Steven G. Kargl  <[hidden email]>

 dump-parse-tree.c (show_expr): Add dumping of BT_BOZ constants.

--
Steve

boz.diff (643 bytes) Download Attachment