#include "config.h"
#include "system.h"
#include "coretypes.h"
-#include "target.h"
-#include "tree.h"
-#include "toplev.h"
#include "tm.h"
-#include "rtl.h"
+#include "tree.h"
+#include "toplev.h" /* For exact_log2. */
+#include "output.h" /* For decl_default_tls_model. */
#include "gfortran.h"
#include "trans.h"
#include "trans-types.h"