Fix test-as-const-jmp_buf-ssp.c generation on gnu-i386
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 3 Dec 2018 13:40:48 +0000 (14:40 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 3 Dec 2018 13:40:48 +0000 (14:40 +0100)
commit7b36d26b22d147ffc347f427f9fd584700578a94
tree88c4468909951e439665b7784eb9abb366b5806a
parent02cd5c1a8d033d7f91fea12a66bb44d1bbf85f76
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'.
ChangeLog
scripts/gen-as-const.py