- except for CONFIG_SYSROOT and CONFIG_TCCDIR Strictly neccessary it is only for CONFIG_MULTIARCHDIR because otherwise if it's in config.h it is impossible to leave it undefined. But it is also nicer not to use these definitions for cross-compilers. - Also: lib/Makefile : include ../Makefile for CFLAGS lib/libtcc1.c : fix an issue compiling tcc with tcc on x64
Showing the changes to lib (2 of 6 files). Show all
Unified · Split
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | TOP = .. | 5 | TOP = .. |
| 6 | include $(TOP)/config.mak | 6 | include $(TOP)/Makefile |
| 7 | VPATH = $(top_srcdir)/lib $(top_srcdir)/win32/lib | 7 | VPATH = $(top_srcdir)/lib $(top_srcdir)/win32/lib |
| 8 | 8 | ||
| 9 | ifndef TARGET | 9 | ifndef TARGET |
| @@ -91,7 +91,7 @@ $(DIR)/%.o : %.c · 81 unmodified lines | |||
| 91 | $(DIR)/%.o : %.S | 91 | $(DIR)/%.o : %.S |
| 92 | $(XCC) -c $< -o $@ $(XFLAGS) | 92 | $(XCC) -c $< -o $@ $(XFLAGS) |
| 93 | $(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c | 93 | $(DIR)/%$(EXESUF) : $(TOP)/win32/tools/%.c |
| 94 | $(CC) -Os -s -o $@ $< $(XFLAGS) $(LDFLAGS) | 94 | $(CC) -o $@ $< $(XFLAGS) $(LDFLAGS) |
| 95 | 95 | ||
| 96 | $(OBJ) $(XAR) : $(DIR)/exists | 96 | $(OBJ) $(XAR) : $(DIR)/exists |
| 97 | $(DIR)/exists : | 97 | $(DIR)/exists : |
| @@ -609,8 +609,11 @@ unsigned long long __fixunsxfdi (long double a1) · 608 unmodified lines | |||
| 609 | 609 | ||
| 610 | /* helper functions for stdarg.h */ | 610 | /* helper functions for stdarg.h */ |
| 611 | 611 | ||
| 612 | #include <stdio.h> | ||
| 613 | #include <stdlib.h> | 612 | #include <stdlib.h> |
| 613 | #ifndef __TINYC__ | ||
| 614 | /* gives "incompatible types for redefinition of __va_arg" below */ | ||
| 615 | #include <stdio.h> | ||
| 616 | #endif | ||
| 614 | 617 | ||
| 615 | enum __va_arg_type { | 618 | enum __va_arg_type { |
| 616 | __va_gen_reg, __va_float_reg, __va_stack | 619 | __va_gen_reg, __va_float_reg, __va_stack |
| @@ -665,7 +668,9 @@ void *__va_arg(struct __va_list_struct *ap, · 48 unmodified lines | |||
| 665 | return ap->overflow_arg_area - size; | 668 | return ap->overflow_arg_area - size; |
| 666 | 669 | ||
| 667 | default: | 670 | default: |
| 671 | #ifndef __TINYC__ | ||
| 668 | fprintf(stderr, "unknown ABI type for __va_arg\n"); | 672 | fprintf(stderr, "unknown ABI type for __va_arg\n"); |
| 673 | #endif | ||
| 669 | abort(); | 674 | abort(); |
| 670 | } | 675 | } |
| 671 | } | 676 | } |