Fix race when building ada-lex.c
authorJohn Reiser <jreiser@BitWagon.com>
Sun, 29 Apr 2018 15:57:38 +0000 (11:57 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 29 Apr 2018 15:57:38 +0000 (11:57 -0400)
commitcd8c76e410a5f16a170cc680be1ae2ecb5528821
tree95a9d0533da724d2020b80c7929a1f6736070272
parent1c831f565445d824811ae43c81b094459458eede
Fix race when building ada-lex.c

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:

PR build/22873
* gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
last step, and do it atomically.
gdb/ChangeLog
gdb/Makefile.in