Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-29 Thread Nicola Pero
Alexandre thanks for the review :-) > -pedantic review: how about outputting to a temporary file (say > cp/cfns.hT) and only renaming to the intended name on success, so that, > if gperf crashes or we reboot part-way through it, we don't end up with > a partially-generated file that will seem to

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-28 Thread Alexandre Oliva
On Apr 23, 2011, "Nicola Pero" wrote: > Ok to commit ? Yeah, thanks. > Index: ChangeLog > +2011-04-22 Nicola Pero > + > + * Makefile.in (ENABLE_MAINTAINER_RULES): New. > + > Index: cp/ChangeLog > +2011-04-23 Nicola Pero , > + Mike Stump > + > + * Make-lang.in ($(srcd

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-28 Thread Nicola Pero
>> Ok? > > Ping? PS: For the maintainer who will (eventually) review this patch, the latest version, tested and with all the comments and contributions from Joseph and Mike merged in, is -- http://gcc.gnu.org/ml/gcc-patches/2011-04/msg01930.html So, that's the one to review.

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-27 Thread Mike Stump
On Apr 22, 2011, at 3:54 PM, Mike Stump wrote: > On Apr 22, 2011, at 8:12 AM, Nicola Pero wrote: >> This patch fixes a building annoyance that I had when building on a new >> machine (an x86_64 gnu/linux box). >> >> The building failed. It was down to two problems: >> >> * due to how I got a cop

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-23 Thread Mike Stump
On Apr 23, 2011, at 4:34 AM, Nicola Pero wrote: > What is the reason to keep the rule without the dependency ? Is it so that > even with --disable-maintainer-mode you can force the file to be recreated by > manually deleting it ? Yes. Think of it as a really cheap maintainer mode. Another way

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-23 Thread Nicola Pero
> Additionally, > > contrib/gcc_update --touch > > can be used to to fix the time stamps until such time as someone changes the > gperf rule to be under maintainer mode. Thanks Mike, good to know. :-) > So, only the dependency should go away under a maintainer rules, as in the > below, not t

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-22 Thread Mike Stump
On Apr 22, 2011, at 8:12 AM, Nicola Pero wrote: > This patch fixes a building annoyance that I had when building on a new > machine (an x86_64 gnu/linux box). > > The building failed. It was down to two problems: > > * due to how I got a copy of the GCC source code on the machine, the timestamp

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-22 Thread Nicola Pero
> We have a --enable-maintainer-mode configure option. Thanks - I had missed that option. It's an excellent suggestion - here is a new patch that uses it. :-) Ok to commit ? Thanks PS: Regarding how I detect --enable-maintainer-mode in this new patch, cp/Make-lang.in is used at it is, without

Re: (build) Patch to fix cp/cfns.gperf building issues

2011-04-22 Thread Joseph S. Myers
On Fri, 22 Apr 2011, Nicola Pero wrote: > In general, I personally feel that the building system should not depend > on the relative timestamps of source files unless it's doing something > in "maintainer mode" where it's being explicitly asked to rebuild one > source file from the other. We h

(build) Patch to fix cp/cfns.gperf building issues

2011-04-22 Thread Nicola Pero
This patch fixes a building annoyance that I had when building on a new machine (an x86_64 gnu/linux box). The building failed. It was down to two problems: * due to how I got a copy of the GCC source code on the machine, the timestamp of each source file was the timestamp of when it was copied