* opts.h (CL_PCH_IGNORE): Define.
* targhooks.c (option_affects_pch_p):
Return false for options that have CL_PCH_IGNORE set.
* opt-functions.awk: Process PchIgnore.
* doc/options.texi: Document PchIgnore.
From-SVN: r208292
+2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
+
+ * opts.h (CL_PCH_IGNORE): Define.
+ * targhooks.c (option_affects_pch_p):
+ Return false for options that have CL_PCH_IGNORE set.
+ * opt-functions.awk: Process PchIgnore.
+ * doc/options.texi: Document PchIgnore.
+
2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
@item NoDWARFRecord
The option is omitted from the producer string written by
@option{-grecord-gcc-switches}.
+
+@item PchIgnore
+Even if this is a target option, this option will not be recorded / compared
+to determine if a precompiled header file matches.
@end table
result = result \
test_flag("Common", flags, " | CL_COMMON") \
test_flag("Target", flags, " | CL_TARGET") \
+ test_flag("PchIgnore", flags, " | CL_PCH_IGNORE") \
test_flag("Driver", flags, " | CL_DRIVER") \
test_flag("Joined", flags, " | CL_JOINED") \
test_flag("JoinedOrMissing", flags, " | CL_JOINED") \
#define CL_SEPARATE (1U << 23) /* If takes a separate argument. */
#define CL_UNDOCUMENTED (1U << 24) /* Do not output with --help. */
#define CL_NO_DWARF_RECORD (1U << 25) /* Do not add to producer string. */
+#define CL_PCH_IGNORE (1U << 26) /* Do compare state for pch. */
/* Flags for an enumerated option argument. */
#define CL_ENUM_CANONICAL (1 << 0) /* Canonical for this value. */
{
if ((cl_options[option].flags & CL_TARGET) == 0)
return false;
+ if ((cl_options[option].flags & CL_PCH_IGNORE) != 0)
+ return false;
if (option_flag_var (option, &global_options) == &target_flags)
if (targetm.check_pch_target_flags)
return false;