PR60147: fix ICE with DECL_NAMELIST and tree-pretty-printer.c
Tobias Burnus
burnus@net-b.de
Sat Feb 22 09:01:00 GMT 2014
Since GCC 4.9, gfortran generates a DECL_NAMELIST (for DWARF's
DW_TAG_namelist) - they are stored in the BIND_EXPR. Namelists are a bit
boring: They only group variable names and the namelist name is only
used in I/O statements (READ, WRITE) to permit a fancy data input [and
output] - and for the debugger.
Due to DW_TAG_namelist, namelists are now exposed to the middle end -
and I forgot to handle them also in the tree pretty printer - hence
-fdump-tree-original now ICEs.
For the pretty printer one has two options: Ignoring (or "NYI;") the
decl or dumping it. The attached patch does the latter.
Bootstrapped (C/C++/Fortran) and regtested on x86-64-gnu-linux.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: namelist.diff
Type: text/x-patch
Size: 2104 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140222/16ebf1cc/attachment.bin>
More information about the Gcc-patches
mailing list