Gentoo Archives: gentoo-dev

From: Agostino Sarubbo <ago@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Kernel calls gcc directly: fine?
Date: Sun, 12 Aug 2012 14:21:43
Message-Id: 43385938.7imYNQYzKB@devil
1 If you try to launch make V=1 from the kernel source directory you will see:
2
3 gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-
4 pc-linux-gnu/4.5.3/include -I/usr/src/linux-3.3.8-gentoo/arch/x86/include -
5 Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.3.8-
6 gentoo/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
7 -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-
8 declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -
9 march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-
10 outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -
11 DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-
12 asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-
13 larger-than=2048 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-
14 after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -
15 DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s" -
16 D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c
17 -o scripts/mod/empty.o scripts/mod/empty.c
18
19
20 So it calls gcc directly.
21
22 I see we don't like gcc called directly from the tracker[1], but this is for
23 packages/ebuild. Should this bug block that tracker or it is invalid?
24
25
26 [1]: https://bugs.gentoo.org/show_bug.cgi?id=cc-directly
27
28 --
29 Agostino Sarubbo / ago -at- gentoo.org
30 Gentoo/AMD64 Arch Security Liaison
31 GPG: 0x7CD2DC5D

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Kernel calls gcc directly: fine? Jeroen Roovers <jer@g.o>
Re: [gentoo-dev] Kernel calls gcc directly: fine? Doug Goldstein <cardoe@g.o>
[gentoo-dev] Re: Kernel calls gcc directly: fine? Ryan Hill <dirtyepic@g.o>