+2017-05-11 Nathan Sidwell <nathan@acm.org>
+
+ * dumpfile.h (TDF_FLAGS): New.
+ * dumpfile.c (dump_start): Use TDF_FLAGS.
+ (dump_enable_all): Fix TDF_KIND check thinko.
+
2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
* config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
dfi->pstream = stream;
dump_file = dfi->pstream;
/* Initialize current dump flags. */
- pflags = dfi->pflags;
+ pflags = TDF_FLAGS (dfi->pflags);
}
stream = dump_open_alternate_stream (dfi);
count++;
alt_dump_file = dfi->alt_stream;
/* Initialize current -fopt-info flags. */
- alt_flags = dfi->alt_flags;
+ alt_flags = TDF_FLAGS (dfi->alt_flags);
}
if (flag_ptr)
for (i = 0; i < m_extra_dump_files_in_use; i++)
{
- if (TDF_KIND (m_extra_dump_files[i].pflags) & ir_dump_type)
+ if (TDF_KIND (m_extra_dump_files[i].pflags) == ir_dump_type)
{
const char *old_filename = m_extra_dump_files[i].pfilename;
m_extra_dump_files[i].pstate = -1;
#define TDF_IPA 3 /* is an IPA dump */
#define TDF_KIND_MASK 3
#define TDF_KIND(X) ((X) & TDF_KIND_MASK)
+#define TDF_FLAGS(X) ((X) & ~TDF_KIND_MASK)
/* Bit 2 unused, available for hire. */
#define TDF_ADDRESS (1 << 3) /* dump node addresses */