linker.patch 441 B

12345678910111213141516171819
  1. # Fix compiling tcc with clang. Upstream commit 73ac39c317a20accaf3b25ba833deee0c2e2849f
  2. # Gentoo bug #502452
  3. diff --git a/lib/libtcc1.c b/lib/libtcc1.c
  4. index cf9babf..b46fb5d 100644
  5. --- a/lib/libtcc1.c
  6. +++ b/lib/libtcc1.c
  7. @@ -647,6 +647,11 @@ struct __va_list_struct {
  8. char *reg_save_area;
  9. };
  10. +#undef __va_start
  11. +#undef __va_arg
  12. +#undef __va_copy
  13. +#undef __va_end
  14. +
  15. void *__va_start(void *fp)
  16. {
  17. struct __va_list_struct *ap =