Fix test-as-const-jmp_buf-ssp.c generation on gnu-i386
hurd's jmp_buf-ssp.sym does not define any symbol. scripts/gen-as-const.py currently was emitting an empty line in that case, and the gawk invocation was prepending "asconst_" to it, ending up with: .../build/glibc/setjmp/test-as-const-jmp_buf-ssp.c:1:2: error: expected « = », « , », « ; », « asm » or « __attribute__ » at end of input 1 | asconst_ | ^~~~~~~~ * scripts/gen-as-const.py (main): Avoid emitting empty line when there is no element in `consts'.
This commit is contained in:
parent
02cd5c1a8d
commit
7b36d26b22
|
@ -1,3 +1,8 @@
|
||||||
|
2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
* scripts/gen-as-const.py (main): Avoid emitting empty line when
|
||||||
|
there is no element in `consts'.
|
||||||
|
|
||||||
2018-12-01 Florian Weimer <fweimer@redhat.com>
|
2018-12-01 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* support/support_capture_subprocess.c
|
* support/support_capture_subprocess.c
|
||||||
|
|
|
@ -153,7 +153,7 @@ def main():
|
||||||
print(gen_test(sym_data))
|
print(gen_test(sym_data))
|
||||||
else:
|
else:
|
||||||
consts = compute_c_consts(sym_data, args.cc)
|
consts = compute_c_consts(sym_data, args.cc)
|
||||||
print('\n'.join('#define %s %s' % c for c in sorted(consts.items())))
|
print(''.join('#define %s %s\n' % c for c in sorted(consts.items())), end='')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue