This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] fix race when building ada-lex.c
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: John Reiser <jreiser at bitwagon dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 29 Apr 2018 11:58:21 -0400
- Subject: Re: [PATCH] fix race when building ada-lex.c
- References: <6612c052-f77e-8650-bdbc-d985f1f10f85@bitwagon.com>
On 2018-04-28 17:13, John Reiser wrote:
PR build/22873
Prevent a race when building ada-lex.c, and any target of rules .c:.l
or .c:.y.
The target should be written only at the last step, else SIGINT (^C)
can leave an inconsistent state. Being .PRECIOUS makes it even worse.
gdb/ChangeLog:
* gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
last step, and do it atomically.
[patch attached]
Hi John,
Thanks for the patch, it makes sense. I pushed it.
Simon