Changeset 6ab8697 in mainline for kernel/Makefile


Ignore:
Timestamp:
2009-10-07T14:03:35Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2088dfc
Parents:
7a53208
Message:

use builtin_va_* for va_* functions and va_list type
(this is probably safer than our own implementation since it respects the particular ABI used by the compiler)
this fixes kernel printf() when using clang

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r7a53208 r6ab8697  
    4949GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    5050        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    51         -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \
    52         -Wmissing-prototypes -Werror -nostdlib -nostdinc -pipe
     51        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     52        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \
     53        -pipe
    5354
    5455ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    55         -fno-builtin -Wall -Wmissing-prototypes -Werror \
    56         -nostdlib -nostdinc -wd170
     56        -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \
     57        -Werror -wd170
    5758
    5859SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
     
    6263CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    6364        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    64         -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \
    65         -Wmissing-prototypes -nostdlib -nostdinc -pipe
     65        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
     66        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -pipe \
     67        -arch $(CLANG_ARCH)
    6668
    6769LFLAGS = -M
Note: See TracChangeset for help on using the changeset viewer.