Changeset a0a273e in mainline
- Timestamp:
- 2017-10-03T18:12:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a41cda7
- Parents:
- 0f28387
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r0f28387 ra0a273e 300 300 @ "icc" Intel C Compiler 301 301 @ "gcc_native" GNU C Compiler (native) 302 ! [PLATFORM=amd64|PLATFORM=ia32] COMPILER (choice) 303 304 % Compiler 305 @ "gcc_cross" GNU C Compiler (cross-compiler) 306 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 307 @ "icc" Intel C Compiler 308 @ "gcc_native" GNU C Compiler (native) 309 ! [PLATFORM=ia64] COMPILER (choice) 310 311 % Compiler 312 @ "gcc_cross" GNU C Compiler (cross-compiler) 313 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 314 @ "gcc_native" GNU C Compiler (native) 315 ! [PLATFORM=riscv64] COMPILER (choice) 302 ! [PLATFORM=amd64|PLATFORM=ia32|PLATFORM=ia64] COMPILER (choice) 316 303 317 304 % Compiler … … 320 307 @ "gcc_helenos" GNU C Compiler (experimental HelenOS-specific cross-compiler) 321 308 @ "gcc_native" GNU C Compiler (native) 322 ! [PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64] COMPILER (choice) 323 309 ! [PLATFORM=mips32|PLATFORM=ppc32|PLATFORM=abs32le|PLATFORM=arm32|PLATFORM=sparc64|PLATFORM=riscv64] COMPILER (choice) 310 311 % Clang Integrated Assembler 312 @ "default" Use architecture default. 313 @ "yes" Use integrated assembler. 314 @ "no" Use GNU Assembler. 315 ! [COMPILER=clang] INTEGRATED_AS (choice) 324 316 325 317 ## Cross-compiler target for abstract architecture -
boot/Makefile.build
r0f28387 ra0a273e 36 36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 37 37 38 AFLAGS = 38 39 LFLAGS = --fatal-warnings 39 40 40 GCC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 41 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 42 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 43 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 41 # FIXME: This condition is a workaround for issue #693. 42 ifneq ($(BARCH),mips32) 43 AFLAGS += --fatal-warnings 44 endif 45 46 COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 47 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 48 -fexec-charset=UTF-8 -finput-charset=UTF-8 49 50 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 44 51 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 45 52 -pipe 46 53 47 ICC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 48 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 49 -Werror-implicit-function-declaration -wd170 54 ICC_CFLAGS = -Wall -Wmissing-prototypes -Werror-implicit-function-declaration -wd170 50 55 51 CLANG_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 52 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 53 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 54 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 56 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 55 57 -Werror-implicit-function-declaration -Wwrite-strings \ 56 -pipe 58 -pipe -fno-stack-protector -fno-PIC 57 59 58 60 ifeq ($(CONFIG_DEBUG),y) 59 GCC_CFLAGS += -Werror 60 ICC_CFLAGS += -Werror 61 COMMON_CFLAGS += -Werror 61 62 endif 62 63 63 64 ifeq ($(CONFIG_LINE_DEBUG),y) 64 GCC_CFLAGS += -g 65 ICC_CFLAGS += -g 66 CLANG_CFLAGS += -g 65 COMMON_CFLAGS += -g 67 66 endif 68 67 69 68 ifeq ($(COMPILER),gcc_native) 70 CFLAGS = $( GCC_CFLAGS) $(EXTRA_CFLAGS)69 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) 71 70 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 72 71 endif 73 72 74 73 ifeq ($(COMPILER),gcc_cross) 75 CFLAGS = $( GCC_CFLAGS) $(EXTRA_CFLAGS)74 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) 76 75 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 77 76 endif 78 77 79 78 ifeq ($(COMPILER),gcc_helenos) 80 CFLAGS = $( GCC_CFLAGS) $(EXTRA_CFLAGS)79 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) 81 80 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 82 81 endif … … 84 83 85 84 ifeq ($(COMPILER),icc) 86 CFLAGS = $( ICC_CFLAGS) $(EXTRA_CFLAGS)85 CFLAGS = $(COMMON_CFLAGS) $(ICC_CFLAGS) $(EXTRA_CFLAGS) 87 86 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 88 87 endif 89 88 90 89 ifeq ($(COMPILER),clang) 91 CFLAGS = $(C LANG_CFLAGS) $(EXTRA_CFLAGS)90 CFLAGS = $(COMMON_CFLAGS) $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 92 91 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 93 92 endif … … 105 104 endif 106 105 106 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 107 107 108 $(BOOT_OUTPUT): $(RAW) 108 109 $(OBJCOPY) -O $(BFD_OUTPUT) $< $@ … … 112 113 113 114 $(LINK): $(DEPEND) 114 $( GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)115 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK) 115 116 116 117 %.o: %.S $(DEPEND) 117 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@118 $(CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 118 119 ifeq ($(PRECHECK),y) 119 120 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ … … 127 128 128 129 %.o: %.s $(DEPEND) 129 $( AS) $(AFLAGS) -o $@ $<130 $(CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 130 131 ifeq ($(PRECHECK),y) 131 132 $(JOBFILE) $(JOB) $< $@ as asm -
defaults/amd64/Makefile.config
r0f28387 ra0a273e 10 10 # Compiler 11 11 COMPILER = gcc_cross 12 13 # In case compiler is clang, whether or not to use its integrated assembler. 14 INTEGRATED_AS = default 12 15 13 16 # Debug build -
defaults/arm32/Makefile.config
r0f28387 ra0a273e 7 7 # Compiler 8 8 COMPILER = gcc_cross 9 10 # In case compiler is clang, whether or not to use its integrated assembler. 11 INTEGRATED_AS = default 9 12 10 13 # Debug build -
defaults/ia32/Makefile.config
r0f28387 ra0a273e 10 10 # Compiler 11 11 COMPILER = gcc_cross 12 13 # In case compiler is clang, whether or not to use its integrated assembler. 14 INTEGRATED_AS = default 12 15 13 16 # Debug build -
defaults/ia64/Makefile.config
r0f28387 ra0a273e 7 7 # Compiler 8 8 COMPILER = gcc_cross 9 10 # In case compiler is clang, whether or not to use its integrated assembler. 11 INTEGRATED_AS = default 9 12 10 13 # Debug build -
defaults/mips32/Makefile.config
r0f28387 ra0a273e 7 7 # Compiler 8 8 COMPILER = gcc_cross 9 10 # In case compiler is clang, whether or not to use its integrated assembler. 11 INTEGRATED_AS = default 9 12 10 13 # Debug build -
defaults/ppc32/Makefile.config
r0f28387 ra0a273e 7 7 # Compiler 8 8 COMPILER = gcc_cross 9 10 # In case compiler is clang, whether or not to use its integrated assembler. 11 INTEGRATED_AS = default 9 12 10 13 # Lazy FPU context switching -
defaults/sparc64/Makefile.config
r0f28387 ra0a273e 7 7 # Compiler 8 8 COMPILER = gcc_cross 9 10 # In case compiler is clang, whether or not to use its integrated assembler. 11 INTEGRATED_AS = default 9 12 10 13 # Support for SMP -
defaults/special/Makefile.config
r0f28387 ra0a273e 4 4 # Compiler 5 5 COMPILER = gcc_cross 6 7 # In case compiler is clang, whether or not to use its integrated assembler. 8 INTEGRATED_AS = default 6 9 7 10 # Support for SMP -
kernel/Makefile
r0f28387 ra0a273e 84 84 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 85 85 86 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \87 -f exec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS)\88 -f input-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \89 -std=gnu99 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 90 -Werror-implicit-function-declaration -Wwrite-strings\91 - pipe92 93 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 94 -ffreestanding -fno-builtin -nostdlib -nostdinc-Wall -Wmissing-prototypes \86 COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 87 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 88 -fexec-charset=UTF-8 -finput-charset=UTF-8 89 90 GCC_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-unused-parameter \ 91 -Wmissing-prototypes -Werror-implicit-function-declaration \ 92 -Wwrite-strings -pipe 93 94 ICC_CFLAGS = -Wall -Wmissing-prototypes \ 95 95 -Werror-implicit-function-declaration -wd170 96 96 97 # clang does not support following options but I am not sure whether 98 # something won't break because of that: 99 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 100 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 101 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 102 -std=gnu99 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 103 -Werror-implicit-function-declaration -Wwrite-strings \ 104 -integrated-as -pipe -target $(CLANG_TARGET) 97 CLANG_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-unused-parameter \ 98 -Wmissing-prototypes -Werror-implicit-function-declaration \ 99 -Wwrite-strings -pipe -fno-stack-protector -fno-PIC 105 100 106 101 ifeq ($(CONFIG_DEBUG),y) 107 GCC_CFLAGS += -Werror 108 ICC_CFLAGS += -Werror 102 COMMON_CFLAGS += -Werror 109 103 endif 110 104 111 105 ifeq ($(CONFIG_LTO),y) 112 GCC_CFLAGS += -flto106 COMMON_CFLAGS += -flto 113 107 endif 114 108 115 109 ifeq ($(CONFIG_LINE_DEBUG),y) 116 GCC_CFLAGS += -g 117 ICC_CFLAGS += -g 118 CLANG_CFLAGS += -g 110 COMMON_CFLAGS += -g 119 111 endif 120 112 … … 123 115 # AFLAGS and LFLAGS must be initialized before the inclusion. 124 116 # 125 AFLAGS = --fatal-warnings117 AFLAGS = 126 118 LFLAGS = -n -T $(LINK) -M --fatal-warnings 119 120 # FIXME: This condition is a workaround for issues #693 and #694. 121 ifneq ($(KARCH),sparc64) 122 ifneq ($(KARCH),mips32) 123 AFLAGS += --fatal-warnings 124 endif 125 endif 127 126 128 127 # … … 156 155 157 156 ifeq ($(COMPILER),gcc_native) 158 CFLAGS = $( GCC_CFLAGS)157 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) 159 158 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 160 159 INSTRUMENTATION = -finstrument-functions … … 162 161 163 162 ifeq ($(COMPILER),gcc_cross) 164 CFLAGS = $( GCC_CFLAGS)163 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) 165 164 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 166 165 INSTRUMENTATION = -finstrument-functions … … 168 167 169 168 ifeq ($(COMPILER),gcc_helenos) 170 CFLAGS = $( GCC_CFLAGS)169 CFLAGS = $(COMMON_CFLAGS) $(GCC_CFLAGS) 171 170 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 172 171 INSTRUMENTATION = -finstrument-functions … … 174 173 175 174 ifeq ($(COMPILER),icc) 176 CFLAGS = $( ICC_CFLAGS)175 CFLAGS = $(COMMON_CFLAGS) $(ICC_CFLAGS) 177 176 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 178 177 INSTRUMENTATION = … … 180 179 181 180 ifeq ($(COMPILER),clang) 182 CFLAGS = $(C LANG_CFLAGS)181 CFLAGS = $(COMMON_CFLAGS) $(CLANG_CFLAGS) 183 182 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 184 INSTRUMENTATION = 183 INSTRUMENTATION = -finstrument-functions 185 184 endif 186 185 … … 384 383 AUTOGENS_AG := $(ARCH_AUTOGENS_AG) $(GENARCH_AUTOGENS_AG) 385 384 386 LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS)) 385 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 386 LD_CFLAGS := $(addprefix -Xlinker ,$(LFLAGS)) 387 388 ifeq ($(COMPILER),clang) 389 AS_CFLAGS += -mllvm -asm-macro-max-nesting-depth=1000 390 endif 387 391 388 392 ifeq ($(CONFIG_SYMTAB),y) … … 404 408 $(RAW): $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(SYMTAB_OBJECTS) 405 409 ifeq ($(CONFIG_LTO),y) 406 $( GCC) $(LFLAGS_LTO) -Xlinker -Map -Xlinker $(MAP) $(DEFS) $(GCC_CFLAGS) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS)410 $(CC) $(DEFS) $(CFLAGS) $(LD_CFLAGS) -Xlinker -Map -Xlinker $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) 407 411 else 408 412 $(LD) $(LFLAGS) -Map $(MAP) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SYMTAB_OBJECTS) … … 417 421 %.h: %.ag 418 422 $(AUTOGEN) probe $< >$<.probe.c 419 $(CC ) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c423 $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c 420 424 $(AUTOGEN) generate $< <$<.probe.s >$@ 421 425 422 426 %.o: %.S $(DEPEND) 423 $( GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c -o $@ $<427 $(CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c -o $@ $< 424 428 ifeq ($(PRECHECK),y) 425 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $( GCC_CFLAGS) -D__ASM__429 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 426 430 endif 427 431 428 432 %.o: %.s $(DEPEND) 429 $( AS) $(AFLAGS)-o $@ $<433 $(CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c -o $@ $< 430 434 ifeq ($(PRECHECK),y) 431 435 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) … … 439 443 440 444 $(REAL_MAP).o: $(REAL_MAP).bin 441 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $( AS) $(AFLAGS) -o $@445 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $(CC) $(CFLAGS) $(AS_CFLAGS) -x assembler -c -o $@ - 442 446 443 447 $(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) 444 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $( AS) $(AFLAGS) -o $(EMPTY_MAP)448 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $(CC) $(CFLAGS) $(AS_CFLAGS) -x assembler -c -o $(EMPTY_MAP) - 445 449 ifeq ($(CONFIG_LTO),y) 446 $( GCC) $(LFLAGS_LTO) -Xlinker -Map -Xlinker $(MAP_PREV) $(DEFS) $(GCC_CFLAGS) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP)450 $(CC) $(DEFS) $(CFLAGS) $(LD_CFLAGS) -Xlinker -Map -Xlinker $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) 447 451 else 448 452 $(LD) $(LFLAGS) -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) … … 454 458 # on architectures that have bss after symtab 455 459 456 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $( AS) $(AFLAGS) -o $(SIZEOK_MAP)460 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) $(AS_CFLAGS) -x assembler -c -o $(SIZEOK_MAP) - 457 461 ifeq ($(CONFIG_LTO),y) 458 $( GCC) $(LFLAGS_LTO) -Xlinker -Map -Xlinker $(MAP_PREV) $(DEFS) $(GCC_CFLAGS) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP)462 $(CC) $(DEFS) $(CFLAGS) $(LD_CFLAGS) -Xlinker -Map -Xlinker $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) 459 463 else 460 464 $(LD) $(LFLAGS) -Map $(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) -
kernel/arch/abs32le/Makefile.inc
r0f28387 ra0a273e 35 35 36 36 ifeq ($(CROSS_TARGET),mips32) 37 GCC_CFLAGS += -mno-abicalls37 COMMON_CFLAGS += -mno-abicalls 38 38 endif 39 39 endif -
kernel/arch/amd64/Makefile.inc
r0f28387 ra0a273e 32 32 33 33 FPU_NO_CFLAGS = -mno-sse -mno-sse2 34 CMN1 = -m64 -mcmodel=$(MEMORY_MODEL) -mno-red-zone -fno-unwind-tables -fno-omit-frame-pointer 35 GCC_CFLAGS += $(CMN1) 36 ICC_CFLAGS += $(CMN1) 37 CLANG_CFLAGS += $(CMN1) 34 COMMON_CFLAGS += -m64 -mcmodel=$(MEMORY_MODEL) -mno-red-zone -fno-unwind-tables -fno-omit-frame-pointer 38 35 39 36 BITS = 64 … … 44 41 45 42 ifeq ($(PROCESSOR),opteron) 46 CMN2 := -march=opteron 47 GCC_CFLAGS += $(CMN2) 48 ICC_CFLAGS += $(CMN2) 43 COMMON_CFLAGS += -march=opteron 49 44 endif 50 45 -
kernel/arch/arm32/Makefile.inc
r0f28387 ra0a273e 33 33 ATSIGN = % 34 34 35 GCC_CFLAGS += -fno-omit-frame-pointer -mapcs-frame -march=$(subst _,-,$(PROCESSOR_ARCH)) -mno-unaligned-access -mfpu=vfpv335 COMMON_CFLAGS += -fno-omit-frame-pointer -mapcs-frame -march=$(subst _,-,$(PROCESSOR_ARCH)) -mno-unaligned-access -mfpu=vfpv3 36 36 37 37 ifeq ($(CONFIG_FPU),y) -
kernel/arch/ia32/Makefile.inc
r0f28387 ra0a273e 34 34 ENDIANESS = LE 35 35 36 CMN1 = -m32 -fno-omit-frame-pointer 37 GCC_CFLAGS += $(CMN1) 38 ICC_CFLAGS += $(CMN1) 39 CLANG_CFLAGS += $(CMN1) 36 COMMON_CFLAGS += -m32 -fno-omit-frame-pointer 40 37 41 38 ## Accepted CPUs … … 43 40 44 41 ifeq ($(PROCESSOR),i486) 45 C MN2= -march=i48642 COMMON_CFLAGS += -march=i486 46 43 endif 47 44 48 45 ifeq ($(PROCESSOR),athlon_xp) 49 C MN2= -march=athlon-xp46 COMMON_CFLAGS += -march=athlon-xp 50 47 endif 51 48 52 49 ifeq ($(PROCESSOR),athlon_mp) 53 C MN2= -march=athlon-mp50 COMMON_CFLAGS += -march=athlon-mp 54 51 endif 55 52 56 53 ifeq ($(PROCESSOR),pentium3) 57 C MN2= -march=pentium354 COMMON_CFLAGS += -march=pentium3 58 55 endif 59 56 60 57 ifeq ($(PROCESSOR),pentium4) 61 C MN2= -march=pentium458 COMMON_CFLAGS += -march=pentium4 62 59 endif 63 60 64 61 ifeq ($(PROCESSOR),core) 65 C MN2= -march=prescott62 COMMON_CFLAGS += -march=prescott 66 63 endif 67 64 68 65 FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow 69 GCC_CFLAGS += $(CMN2)70 ICC_CFLAGS += $(CMN2)71 CLANG_CFLAGS += $(CMN2)72 66 73 67 ARCH_SOURCES = \ -
kernel/arch/ia64/Makefile.inc
r0f28387 ra0a273e 30 30 BFD_ARCH = ia64-elf64 31 31 32 CMN1 = -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 33 GCC_CFLAGS += $(CMN1) 34 ICC_CFLAGS += $(CMN1) 32 COMMON_CFLAGS += -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 35 33 36 34 AFLAGS += -mconstant-gp -
kernel/arch/mips32/Makefile.inc
r0f28387 ra0a273e 29 29 BFD_ARCH = mips 30 30 BFD = binary 31 GCC_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=3231 COMMON_CFLAGS += -msoft-float -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mabi=32 32 32 AS_PROLOG = .module softfloat; 33 33 … … 40 40 BFD_NAME = elf32-tradlittlemips 41 41 ENDIANESS = LE 42 GCC_CFLAGS += -march=r400042 COMMON_CFLAGS += -march=r4000 43 43 endif 44 44 ifeq ($(MACHINE),bmalta) 45 45 BFD_NAME = elf32-tradbigmips 46 46 ENDIANESS = BE 47 GCC_CFLAGS += -D__BE__ -march=4kc47 COMMON_CFLAGS += -D__BE__ -march=4kc 48 48 endif 49 49 ifeq ($(MACHINE),lmalta) 50 50 BFD_NAME = elf32-tradlittlemips 51 51 ENDIANESS = LE 52 GCC_CFLAGS += -march=4kc52 COMMON_CFLAGS += -march=4kc 53 53 endif 54 54 -
kernel/arch/ppc32/Makefile.inc
r0f28387 ra0a273e 31 31 BFD = binary 32 32 33 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m3233 COMMON_CFLAGS += -mcpu=powerpc -msoft-float -m32 34 34 AFLAGS += -a32 35 35 LFLAGS += -no-check-sections -
kernel/arch/riscv64/Makefile.inc
r0f28387 ra0a273e 31 31 BFD = binary 32 32 33 GCC_CFLAGS += -mcmodel=medany33 COMMON_CFLAGS += -mcmodel=medany 34 34 35 35 BITS = 64 -
kernel/arch/sparc64/Makefile.inc
r0f28387 ra0a273e 31 31 BFD = binary 32 32 33 GCC_CFLAGS += -m64 -mcpu=ultrasparc -mcmodel=medlow -mno-fpu33 COMMON_CFLAGS += -m64 -mcpu=ultrasparc -mcmodel=medlow -mno-fpu 34 34 35 35 LFLAGS += -no-check-sections -
tools/autotool.py
r0f28387 ra0a273e 210 210 target = None 211 211 gnu_target = None 212 clang_target = None213 212 helenos_target = None 214 213 cc_args = [] … … 220 219 if (config['CROSS_TARGET'] == "arm32"): 221 220 gnu_target = "arm-linux-gnueabi" 222 clang_target = "arm-unknown-none"223 221 helenos_target = "arm-helenos-gnueabi" 224 222 225 223 if (config['CROSS_TARGET'] == "ia32"): 226 224 gnu_target = "i686-pc-linux-gnu" 227 clang_target = "i686-unknown-none"228 225 helenos_target = "i686-pc-helenos" 229 226 … … 231 228 cc_args.append("-mabi=32") 232 229 gnu_target = "mipsel-linux-gnu" 233 clang_target = "mipsel-unknown-none"234 230 helenos_target = "mipsel-helenos" 235 231 … … 237 233 target = config['PLATFORM'] 238 234 gnu_target = "amd64-linux-gnu" 239 clang_target = "x86_64-unknown-none"240 235 helenos_target = "amd64-helenos" 241 236 … … 243 238 target = config['PLATFORM'] 244 239 gnu_target = "arm-linux-gnueabi" 245 clang_target = "arm-unknown-none-eabi"246 240 helenos_target = "arm-helenos-gnueabi" 247 241 … … 249 243 target = config['PLATFORM'] 250 244 gnu_target = "i686-pc-linux-gnu" 251 clang_target = "i686-unknown-none"252 245 helenos_target = "i686-pc-helenos" 253 246 … … 264 257 target = config['PLATFORM'] 265 258 gnu_target = "mipsel-linux-gnu" 266 clang_target = "mipsel-unknown-none"267 259 helenos_target = "mipsel-helenos" 268 260 … … 270 262 target = "mips32eb" 271 263 gnu_target = "mips-linux-gnu" 272 clang_target = "mips-unknown-none"273 264 helenos_target = "mips-helenos" 274 265 … … 280 271 target = config['PLATFORM'] 281 272 gnu_target = "mips64el-linux-gnu" 282 clang_target = "mips64el-unknown-none"283 273 helenos_target = "mips64el-helenos" 284 274 … … 286 276 target = config['PLATFORM'] 287 277 gnu_target = "ppc-linux-gnu" 288 clang_target = "ppc-unknown-none"289 278 helenos_target = "ppc-helenos" 290 279 … … 292 281 target = config['PLATFORM'] 293 282 gnu_target = "riscv64-unknown-linux-gnu" 294 clang_target = "riscv-unknown-none"295 283 helenos_target = "riscv64-helenos" 296 284 … … 298 286 target = config['PLATFORM'] 299 287 gnu_target = "sparc64-linux-gnu" 300 clang_target = "sparc-unknown-none"301 288 helenos_target = "sparc64-helenos" 302 289 303 return (target, cc_args, gnu_target, clang_target,helenos_target)290 return (target, cc_args, gnu_target, helenos_target) 304 291 305 292 def check_app(args, name, details): … … 351 338 return found 352 339 340 def check_clang(path, prefix, common, details): 341 "Check for clang" 342 343 common['CLANG'] = "%sclang" % prefix 344 345 if (not path is None): 346 common['CLANG'] = "%s/%s" % (path, common['CLANG']) 347 348 check_app([common['CLANG'], "--version"], "clang", details) 349 353 350 def check_gcc(path, prefix, common, details): 354 351 "Check for GCC" … … 427 424 outf.close() 428 425 429 args = [common['CC']] 430 args.extend(common['CC_ARGS']) 426 args = common['CC_AUTOGEN'].split(' ') 431 427 args.extend(["-S", "-o", PROBE_OUTPUT, PROBE_SOURCE]) 432 428 … … 547 543 outf.close() 548 544 549 args = [common['CC']] 550 args.extend(common['CC_ARGS']) 545 args = common['CC_AUTOGEN'].split(' ') 551 546 args.extend(["-S", "-o", PROBE_INT128_OUTPUT, PROBE_INT128_SOURCE]) 552 547 … … 852 847 853 848 # Compiler 854 common['CC_ARGS'] = []855 849 if (config['COMPILER'] == "gcc_cross"): 856 target, cc_args, gnu_target, clang_target,helenos_target = get_target(config)850 target, cc_args, gnu_target, helenos_target = get_target(config) 857 851 858 852 if (target is None) or (gnu_target is None): … … 867 861 868 862 check_common(common, "GCC") 869 common['CC'] = common['GCC']870 common['CC_A RGS'].extend(cc_args)863 common['CC'] = " ".join([common['GCC']] + cc_args) 864 common['CC_AUTOGEN'] = common['CC'] 871 865 872 866 if (config['COMPILER'] == "gcc_helenos"): 873 target, cc_args, gnu_target, clang_target,helenos_target = get_target(config)867 target, cc_args, gnu_target, helenos_target = get_target(config) 874 868 875 869 if (target is None) or (helenos_target is None): … … 884 878 885 879 check_common(common, "GCC") 886 common['CC'] = common['GCC']887 common['CC_A RGS'].extend(cc_args)880 common['CC'] = " ".join([common['GCC']] + cc_args) 881 common['CC_AUTOGEN'] = common['CC'] 888 882 889 883 if (config['COMPILER'] == "gcc_native"): … … 893 887 check_common(common, "GCC") 894 888 common['CC'] = common['GCC'] 889 common['CC_AUTOGEN'] = common['CC'] 895 890 896 891 if (config['COMPILER'] == "icc"): … … 900 895 901 896 common['CC'] = "icc" 897 common['CC_AUTOGEN'] = common['CC'] 902 898 903 899 if (config['COMPILER'] == "clang"): 904 target, cc_args, gnu_target, clang_target,helenos_target = get_target(config)905 906 if (target is None) or (gnu_target is None) or (clang_target is None):907 print_error(["Unsupported compiler target for clang.",900 target, cc_args, gnu_target, helenos_target = get_target(config) 901 902 if (target is None) or (gnu_target is None): 903 print_error(["Unsupported compiler target.", 908 904 "Please contact the developers of HelenOS."]) 909 905 … … 911 907 prefix = "%s-" % gnu_target 912 908 913 check_ app(["clang", "--version"], "clang compiler", "preferably version 1.0 or newer")909 check_clang(path, prefix, common, "") 914 910 check_gcc(path, prefix, common, PACKAGE_GCC) 915 911 check_binutils(path, prefix, common, PACKAGE_BINUTILS) 916 912 917 913 check_common(common, "GCC") 918 common['CC'] = "clang" 919 common['CC_ARGS'].extend(cc_args) 920 common['CC_ARGS'].append("-target") 921 common['CC_ARGS'].append(clang_target) 922 common['CLANG_TARGET'] = clang_target 914 check_common(common, "CLANG") 915 common['CC'] = " ".join([common['CLANG']] + cc_args) 916 common['CC_AUTOGEN'] = common['CC'] + " -no-integrated-as" 917 918 if (config['INTEGRATED_AS'] == "yes"): 919 common['CC'] += " -integrated-as" 920 921 if (config['INTEGRATED_AS'] == "no"): 922 common['CC'] += " -no-integrated-as" 923 923 924 924 check_python() -
uspace/Makefile.common
r0f28387 ra0a273e 160 160 LIBNETTL_PREFIX = $(LIB_PREFIX)/nettl 161 161 162 AFLAGS = --fatal-warnings162 AFLAGS = 163 163 LFLAGS = --fatal-warnings 164 165 # FIXME: This condition is a workaround for issues #692 and #693. 166 ifneq ($(KARCH),ia64) 167 ifneq ($(KARCH),mips32) 168 AFLAGS += --fatal-warnings 169 endif 170 endif 164 171 165 172 ifeq ($(STATIC_NEEDED),y) … … 228 235 find . -name '*.lo' -follow -exec rm \{\} \; 229 236 230 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 231 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 232 -finput-charset=UTF-8 -ffreestanding -fno-builtin -ffunction-sections \ 233 -nostdlib -nostdinc -Wall -Wextra -Wno-clobbered -Wno-unused-parameter \ 234 -Wmissing-prototypes -std=gnu99 -Werror-implicit-function-declaration \ 235 -Wwrite-strings -pipe -ggdb -D__$(ENDIANESS)__ 236 237 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 238 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 239 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 240 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 241 -Werror-implicit-function-declaration -Wwrite-strings \ 242 -pipe -g -D__$(ENDIANESS)__ 243 244 # clang does not support following options but I am not sure whether 245 # something won't break because of that: 246 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 247 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 248 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 249 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 237 COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 238 -ffreestanding -fno-builtin -nostdlib -nostdinc -fexec-charset=UTF-8 \ 239 -finput-charset=UTF-8 -D__$(ENDIANESS)__ 240 241 GCC_CFLAGS = -ffunction-sections -Wall -Wextra -Wno-clobbered \ 242 -Wno-unused-parameter -Wmissing-prototypes -std=gnu99 \ 243 -Werror-implicit-function-declaration \ 244 -Wwrite-strings -pipe 245 246 ICC_CFLAGS = -Wall -Wextra -Wno-clobbered -Wno-unused-parameter \ 247 -Wmissing-prototypes -Werror-implicit-function-declaration \ 248 -Wwrite-strings -pipe 249 250 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 250 251 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 251 -integrated-as -pipe -g -target $(CLANG_TARGET) -D__$(ENDIANESS)__ 252 253 LIB_CFLAGS = $(CFLAGS) -fPIC 254 LIB_LFLAGS = $(LFLAGS) -shared -soname $(LSONAME) --whole-archive 252 -pipe -fno-stack-protector -fno-PIC 255 253 256 254 ifeq ($(CONFIG_DEBUG),y) 257 GCC_CFLAGS += -Werror 258 ICC_CFLAGS += -Werror 255 COMMON_CFLAGS += -Werror 259 256 endif 260 257 … … 267 264 # Prepare for POSIX before including platform specific stuff 268 265 ifeq ($(POSIX_COMPAT),y) 269 CFLAGS = -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/266 CFLAGS += -I$(LIBPOSIX_PREFIX)/include/posix -I$(LIBPOSIX_PREFIX)/include/ 270 267 BASE_LIBS = $(LIBPOSIX_PREFIX)/libposixaslibc.a $(LIBPOSIX_PREFIX)/libc4posix.a $(LIBSOFTINT_PREFIX)/libsoftint.a 271 268 endif … … 282 279 283 280 ifeq ($(COMPILER),gcc_cross) 284 CFLAGS += $( GCC_CFLAGS)281 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 285 282 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 286 283 endif 287 284 288 285 ifeq ($(COMPILER),gcc_helenos) 289 CFLAGS += $( GCC_CFLAGS)286 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 290 287 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 291 288 endif 292 289 293 290 ifeq ($(COMPILER),gcc_native) 294 CFLAGS += $( GCC_CFLAGS)291 CFLAGS += $(COMMON_CFLAGS) $(GCC_CFLAGS) 295 292 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 296 293 endif 297 294 298 295 ifeq ($(COMPILER),icc) 299 CFLAGS += $( ICC_CFLAGS)296 CFLAGS += $(COMMON_CFLAGS) $(ICC_CFLAGS) 300 297 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 301 298 endif 302 299 303 300 ifeq ($(COMPILER),clang) 304 CFLAGS += $(C LANG_CFLAGS)301 CFLAGS += $(COMMON_CFLAGS) $(CLANG_CFLAGS) 305 302 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 306 303 endif 304 305 LIB_CFLAGS = $(CFLAGS) -fPIC 306 LIB_LFLAGS = $(LFLAGS) -shared -soname $(LSONAME) --whole-archive 307 307 308 308 ifneq ($(MAKECMDGOALS),clean) 309 309 -include $(DEPEND) 310 310 endif 311 312 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS)) 313 LD_CFLAGS := $(addprefix -Xlinker ,$(LFLAGS)) 311 314 312 315 OBJECTS := $(addsuffix .o,$(basename $(SOURCES))) … … 372 375 373 376 %.o: %.S $(DEPEND) 374 $( GCC) $(DEFS) $(GCC_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@377 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 375 378 ifeq ($(PRECHECK),y) 376 379 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ … … 378 381 379 382 %.o: %.s $(DEPEND) 380 $( AS) $(AFLAGS) -o $@ $<383 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 381 384 ifeq ($(PRECHECK),y) 382 385 $(JOBFILE) $(JOB) $< $@ as asm … … 396 399 397 400 %.lo: %.S $(DEPEND) 398 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ -c $< -o $@401 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 399 402 ifeq ($(PRECHECK),y) 400 403 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) -D__ASM__ … … 402 405 403 406 %.lo: %.s $(DEPEND) 404 $( AS) $(AFLAGS) -o $@ $<407 $(CC) $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 405 408 ifeq ($(PRECHECK),y) 406 409 $(JOBFILE) $(JOB) $< $@ as asm -
uspace/lib/c/Makefile
r0f28387 ra0a273e 194 194 %.h: %.ag 195 195 $(AUTOGEN) probe $< >$<.probe.c 196 $(CC ) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c196 $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c 197 197 $(AUTOGEN) generate $< <$<.probe.s >$@ 198 198 -
uspace/lib/c/arch/amd64/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 30 CLANG_CFLAGS += -fno-omit-frame-pointer 29 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 31 30 LFLAGS += --gc-sections 32 31 -
uspace/lib/c/arch/arm32/Makefile.common
r0f28387 ra0a273e 28 28 # 29 29 30 GCC_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -mapcs-frame \30 COMMON_CFLAGS += -ffixed-r9 -mtp=soft -fno-omit-frame-pointer -mapcs-frame \ 31 31 -march=$(subst _,-,$(PROCESSOR_ARCH)) 32 32 … … 34 34 35 35 ifeq ($(CONFIG_FPU),y) 36 GCC_CFLAGS += -mfloat-abi=hard36 COMMON_CFLAGS += -mfloat-abi=hard 37 37 else 38 38 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a -
uspace/lib/c/arch/ia32/Makefile.common
r0f28387 ra0a273e 28 28 29 29 ifeq ($(PROCESSOR),i486) 30 GCC_CFLAGS += -march=i48630 COMMON_CFLAGS += -march=i486 31 31 else 32 GCC_CFLAGS += -march=pentium32 COMMON_CFLAGS += -march=pentium 33 33 endif 34 34 35 GCC_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 36 CLANG_CFLAGS += -fno-omit-frame-pointer 35 COMMON_CFLAGS += -mno-tls-direct-seg-refs -fno-omit-frame-pointer 37 36 LFLAGS += --gc-sections 38 37 -
uspace/lib/c/arch/mips32/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -msoft-float -mabi=3229 COMMON_CFLAGS += -msoft-float -mabi=32 30 30 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 31 31 AS_PROLOG = .module softfloat;.abicalls; … … 38 38 39 39 ifeq ($(MACHINE),msim) 40 GCC_CFLAGS += -march=r400040 COMMON_CFLAGS += -march=r4000 41 41 endif 42 42 43 43 ifeq ($(MACHINE),lmalta) 44 GCC_CFLAGS += -march=4kc44 COMMON_CFLAGS += -march=4kc 45 45 endif 46 46 -
uspace/lib/c/arch/mips32eb/Makefile.common
r0f28387 ra0a273e 27 27 # 28 28 29 GCC_CFLAGS += -msoft-float -mabi=3229 COMMON_CFLAGS += -msoft-float -mabi=32 30 30 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 31 31 AS_PROLOG = .module softfloat;.abicalls; … … 38 38 39 39 ifeq ($(MACHINE),bmalta) 40 GCC_CFLAGS += -march=4kc40 COMMON_CFLAGS += -march=4kc 41 41 endif 42 42 -
uspace/lib/c/arch/ppc32/Makefile.common
r0f28387 ra0a273e 33 33 endif 34 34 35 GCC_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m3235 COMMON_CFLAGS += -mcpu=powerpc -m$(FLOATS)-float -m32 36 36 BASE_LIBS += $(LIBSOFTFLOAT_PREFIX)/libsoftfloat.a 37 37 AFLAGS += -a32 -
uspace/lib/c/arch/sparc64/Makefile.common
r0f28387 ra0a273e 28 28 29 29 ifeq ($(PROCESSOR),sun4v) 30 GCC_CFLAGS += -mcpu=niagara -mno-vis30 COMMON_CFLAGS += -mcpu=niagara -mno-vis 31 31 else 32 GCC_CFLAGS += -mcpu=ultrasparc32 COMMON_CFLAGS += -mcpu=ultrasparc 33 33 endif 34 34 35 GCC_CFLAGS += -m64 -mcmodel=medlow35 COMMON_CFLAGS += -m64 -mcmodel=medlow 36 36 37 37 LFLAGS += -no-check-sections --gc-sections
Note:
See TracChangeset
for help on using the changeset viewer.