+2012-08-24 Simon Baldwin <simonb@google.com>
+
+ * dwarf2out.c (gen_producer_string): Omit command line switch if
+ CL_NO_DWARF_RECORD flag set.
+ * opts.h (CL_NO_DWARF_RECORD): New.
+ * opt-functions.awk (switch_flags): Add NoDWARFRecord.
+ * doc/options.texi: Document NoDWARFRecord option flag.
+
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
PR debug/52857
specify several different languages. Each @var{language} must have
been declared by an earlier @code{Language} record. @xref{Option file
format}.
+
+@item NoDWARFRecord
+The option is omitted from the producer string written by
+@option{-grecord-gcc-switches}.
@end table
/* Ignore these. */
continue;
default:
+ if (cl_options[save_decoded_options[j].opt_index].flags
+ & CL_NO_DWARF_RECORD)
+ continue;
gcc_checking_assert (save_decoded_options[j].canonical_option[0][0]
== '-');
switch (save_decoded_options[j].canonical_option[0][1])
+2012-08-24 Simon Baldwin <simonb@google.com>
+
+ * lang.opt (-cpp=): Mark flag NoDWARFRecord.
+
2012-08-23 Tobias Burnus <burnus@net-b.de>
PR fortran/54350
Enable preprocessing
cpp=
-Fortran Joined Negative(nocpp) Undocumented
+Fortran Joined Negative(nocpp) Undocumented NoDWARFRecord
; Internal option generated by specs from -cpp.
nocpp
test_flag("JoinedOrMissing", flags, " | CL_JOINED") \
test_flag("Separate", flags, " | CL_SEPARATE") \
test_flag("Undocumented", flags, " | CL_UNDOCUMENTED") \
+ test_flag("NoDWARFRecord", flags, " | CL_NO_DWARF_RECORD") \
test_flag("Warning", flags, " | CL_WARNING") \
test_flag("Optimization", flags, " | CL_OPTIMIZATION")
sub( "^0 \\| ", "", result )
#define CL_JOINED (1U << 22) /* If takes joined argument. */
#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. */
/* Flags for an enumerated option argument. */
#define CL_ENUM_CANONICAL (1 << 0) /* Canonical for this value. */