[PATCH] Fix test-as-const-jmp_buf-ssp.c generation on gnu-i386
Samuel Thibault
samuel.thibault@gnu.org
Sat Dec 1 23:46:00 GMT 2018
Samuel Thibault, le dim. 02 déc. 2018 00:12:47 +0100, a ecrit:
> 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_
> | ^~~~~~~~
That said, it's not enough, gen_test() does not emit a main() function,
and thus the test build fails with missing reference to main(). Is there
a strong reason for making the emission of code lazy with the started
boolean?
Samuel
More information about the Libc-alpha
mailing list