Changeset 874ed210 in mainline for boot/Makefile.build


Ignore:
Timestamp:
2019-06-24T16:13:58Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59d8235
Parents:
d86393c8
Message:

Fold assembler flags into cflags, for consistent behavior

This way —fatal-warning applies to custom assembly in C files as well,
e.g. inline asm, and to some of the attributes that change emitted
assembly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    rd86393c8 r874ed210  
    3636DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    3737
    38 AFLAGS = --fatal-warnings
    3938LDFLAGS = -Wl,--fatal-warnings,--warn-common $(EXTRA_LDFLAGS)
    4039
     
    4241        -ffreestanding -nostdlib \
    4342        -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
    44         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
     43        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \
     44        -Wa,--fatal-warnings
    4545
    4646GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     
    8080-include $(DEPENDS)
    8181
    82 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))
    83 
    8482$(BOOT_OUTPUT): $(RAW)
    8583        $(OBJCOPY) -O $(BFD_OUTPUT) $< $@
     
    9290
    9391%.o: %.s | depend
    94         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
     92        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    9593
    9694%.o: %.S | depend
    97         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)
     95        $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
    9896
    9997%.o: %.c | depend
Note: See TracChangeset for help on using the changeset viewer.