This innocent looking patch shaves 1749 warnings in stage 1 when building with clang (such as on newer versions of FreeBSD).
Richi, at one point you indicated such changes would be fine (though usually they go from struct to class)? Gerald 2016-09-28 Gerald Pfeifer <ger...@pfeifer.com> * coretypes.h (class rtx_def): Change to struct. Index: gcc/coretypes.h =================================================================== --- gcc/coretypes.h (revision 240576) +++ gcc/coretypes.h (working copy) @@ -59,7 +59,7 @@ /* Subclasses of rtx_def, using indentation to show the class hierarchy, along with the relevant invariant. Where possible, keep this list in the same order as in rtl.def. */ -class rtx_def; +struct rtx_def; class rtx_expr_list; /* GET_CODE (X) == EXPR_LIST */ class rtx_insn_list; /* GET_CODE (X) == INSN_LIST */ class rtx_sequence; /* GET_CODE (X) == SEQUENCE */