Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-24 Thread Simon Baldwin
On 21 August 2012 17:18, Joseph S. Myers jos...@codesourcery.com wrote: On Tue, 21 Aug 2012, Simon Baldwin wrote: Index: gcc/doc/options.texi === --- gcc/doc/options.texi (revision 190535) +++ gcc/doc/options.texi

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-24 Thread Joseph S. Myers
On Fri, 24 Aug 2012, Simon Baldwin wrote: gcc/ChangeLog 2012-08-24 Simon Baldwin sim...@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

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-21 Thread Simon Baldwin
On 20 August 2012 16:45, Joseph S. Myers jos...@codesourcery.com wrote: On Mon, 20 Aug 2012, Simon Baldwin wrote: OPT_* for Fortran options only exist when the Fortran front-end is in the source tree (whether or not enabled). I think we try to avoid knowingly breaking use cases where

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-21 Thread Joseph S. Myers
On Tue, 21 Aug 2012, Simon Baldwin wrote: Index: gcc/doc/options.texi === --- gcc/doc/options.texi (revision 190535) +++ gcc/doc/options.texi (working copy) @@ -468,4 +468,8 @@ of @option{-@var{opt}}, if not explicitl

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-20 Thread Simon Baldwin
On 17 August 2012 16:55, Joseph S. Myers jos...@codesourcery.com wrote: On Fri, 17 Aug 2012, Simon Baldwin wrote: You could have just added case OPT_cpp_: to the switch in gen_producer_string, instead of all this. Thanks. I was under the impression, apparently mistaken, that

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-20 Thread Joseph S. Myers
On Mon, 20 Aug 2012, Simon Baldwin wrote: OPT_* for Fortran options only exist when the Fortran front-end is in the source tree (whether or not enabled). I think we try to avoid knowingly breaking use cases where people remove some front ends from the source tree, although we don't

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-17 Thread Simon Baldwin
On 16 August 2012 21:28, Jakub Jelinek ja...@redhat.com wrote: On Thu, Aug 16, 2012 at 06:59:09PM +0200, Simon Baldwin wrote: On 16 August 2012 16:40, Michael Matz m...@suse.de wrote: ,,, Do you have considered to use a new option flag (usable in the .opt files) instead of a

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-17 Thread Joseph S. Myers
On Fri, 17 Aug 2012, Simon Baldwin wrote: You could have just added case OPT_cpp_: to the switch in gen_producer_string, instead of all this. Thanks. I was under the impression, apparently mistaken, that OPT_cpp_ exists only if fortran is enabled. OPT_* for Fortran options only

Re: Reproducible gcc builds, gfortran, and -grecord-gcc-switches

2012-08-16 Thread Jakub Jelinek
On Thu, Aug 16, 2012 at 06:59:09PM +0200, Simon Baldwin wrote: On 16 August 2012 16:40, Michael Matz m...@suse.de wrote: ,,, Do you have considered to use a new option flag (usable in the .opt files) instead of a langhook? I.e. add a flag cl_dont_record to cl_option, a string