diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-04-08 21:29:39 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-08 21:29:39 -0700 |
| commit | 545e7a032c377593cb24d3dceb884ba0e23faa29 (patch) | |
| tree | 8ba185f2cf1d798c41e1761cc148b8063bf487f1 | |
| parent | 3c45e4d6d1ef1a56b577dc86acc65c0b18d9ecb9 (diff) | |
[PATCH] Enforce gcc-2.95 as the minimum compiler requirement
Now that sparc64 is using gcc-3.x we can disallow gcc-2.91, etc.
Documentation/Changes already says 2.95.3, which is working fine for me.
With this change, we no longer require that per-cpu data definitions be
initialised. That was a workaround for a bug in older gccs. So remove the
build infrastructure which was checking for that.
Also, mention that nfs-utils-1.0.3 is required. It isn't required yet, but
will be once we enable larger dev_t: there is an interface for exportfs which
passes dev_t's into the kernel which breaks with larger dev_t. That
interface is old, deprecated and is not used in nfs-utils-1.0.3.
| -rw-r--r-- | Documentation/Changes | 1 | ||||
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | init/main.c | 2 | ||||
| -rw-r--r-- | scripts/per-cpu-check.awk | 19 |
4 files changed, 2 insertions, 28 deletions
diff --git a/Documentation/Changes b/Documentation/Changes index 354fe341b506..af797256a231 100644 --- a/Documentation/Changes +++ b/Documentation/Changes @@ -62,6 +62,7 @@ o PPP 2.4.0 # pppd --version o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version o procps 2.0.9 # ps --version o oprofile 0.5 # oprofiled --version +o nfs-utils 1.0.3 # showmount --version Kernel compilation ================== @@ -342,17 +342,9 @@ define rule_vmlinux__ echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd endef -ifdef CONFIG_SMP -# Final awk script makes sure per-cpu vars are in per-cpu section, as -# old gcc (eg egcs 2.92.11) ignores section attribute if uninitialized. - -check_per_cpu = $(AWK) -f $(srctree)/scripts/per-cpu-check.awk < System.map -endif - define rule_vmlinux $(rule_vmlinux__) $(NM) $@ | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map - $(check_per_cpu) endef LDFLAGS_vmlinux += -T arch/$(ARCH)/vmlinux.lds.s diff --git a/init/main.c b/init/main.c index 6fdeca1aca67..8154b8b6ec35 100644 --- a/init/main.c +++ b/init/main.c @@ -60,7 +60,7 @@ * To avoid associated bogus bug reports, we flatly refuse to compile * with a gcc that is known to be too old from the very beginning. */ -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 91) +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) #error Sorry, your GCC is too old. It builds incorrect kernels. #endif diff --git a/scripts/per-cpu-check.awk b/scripts/per-cpu-check.awk deleted file mode 100644 index 3c54bb47928f..000000000000 --- a/scripts/per-cpu-check.awk +++ /dev/null @@ -1,19 +0,0 @@ -/ __per_cpu_start$$/ { - IN_PER_CPU=1 -} - -/ __per_cpu_end$$/ { - IN_PER_CPU=0 -} - -/__per_cpu$$/ && ! ( / __ksymtab_/ || / __kstrtab_/ || / __kcrctab_/ || / __crc_/ ) { - if (!IN_PER_CPU) { - print $$3 " not in per-cpu section" > "/dev/stderr"; - FOUND=1; - } -} - -END { - exit FOUND; -} - |
