Commit 41e0e24b authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild

Pull kbuild updates from Michal Marek:

 - prototypes for x86 asm-exported symbols (Adam Borowski) and a warning
   about missing CRCs (Nick Piggin)

 - asm-exports fix for LTO (Nicolas Pitre)

 - thin archives improvements (Nick Piggin)

 - linker script fix for CONFIG_LD_DEAD_CODE_DATA_ELIMINATION (Nick
   Piggin)

 - genksyms support for __builtin_va_list keyword

 - misc minor fixes

* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  x86/kbuild: enable modversions for symbols exported from asm
  kbuild: fix scripts/adjust_autoksyms.sh* for the no modules case
  scripts/kallsyms: remove last remnants of --page-offset option
  make use of make variable CURDIR instead of calling pwd
  kbuild: cmd_export_list: tighten the sed script
  kbuild: minor improvement for thin archives build
  kbuild: modpost warn if export version crc is missing
  kbuild: keep data tables through dead code elimination
  kbuild: improve linker compatibility with lib-ksyms.o build
  genksyms: Regenerate parser
  kbuild/genksyms: handle va_list type
  kbuild: thin archives for multi-y targets
  kbuild: kallsyms allow 3-pass generation if symbols size has changed
parents 0aaf2146 334bb773
#include <asm/ftrace.h>
#include <asm/uaccess.h>
#include <asm/string.h>
#include <asm/page.h>
#include <asm/checksum.h>
#include <asm-generic/asm-prototypes.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/special_insns.h>
#include <asm/preempt.h>
#ifndef CONFIG_X86_CMPXCHG64
extern void cmpxchg8b_emu(void);
#endif
#include <linux/bitops.h>
extern void *__memset(void *, int, __kernel_size_t);
extern void *__memcpy(void *, const void *, __kernel_size_t);
extern void *__memmove(void *, const void *, __kernel_size_t);
extern void *memset(void *, int, __kernel_size_t);
extern void *memcpy(void *, const void *, __kernel_size_t);
extern void *memmove(void *, const void *, __kernel_size_t);
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
#ifdef CONFIG_KPROBES #ifdef CONFIG_KPROBES
#define KPROBE_BLACKLIST() . = ALIGN(8); \ #define KPROBE_BLACKLIST() . = ALIGN(8); \
VMLINUX_SYMBOL(__start_kprobe_blacklist) = .; \ VMLINUX_SYMBOL(__start_kprobe_blacklist) = .; \
*(_kprobe_blacklist) \ KEEP(*(_kprobe_blacklist)) \
VMLINUX_SYMBOL(__stop_kprobe_blacklist) = .; VMLINUX_SYMBOL(__stop_kprobe_blacklist) = .;
#else #else
#define KPROBE_BLACKLIST() #define KPROBE_BLACKLIST()
...@@ -123,10 +123,10 @@ ...@@ -123,10 +123,10 @@
#ifdef CONFIG_EVENT_TRACING #ifdef CONFIG_EVENT_TRACING
#define FTRACE_EVENTS() . = ALIGN(8); \ #define FTRACE_EVENTS() . = ALIGN(8); \
VMLINUX_SYMBOL(__start_ftrace_events) = .; \ VMLINUX_SYMBOL(__start_ftrace_events) = .; \
*(_ftrace_events) \ KEEP(*(_ftrace_events)) \
VMLINUX_SYMBOL(__stop_ftrace_events) = .; \ VMLINUX_SYMBOL(__stop_ftrace_events) = .; \
VMLINUX_SYMBOL(__start_ftrace_enum_maps) = .; \ VMLINUX_SYMBOL(__start_ftrace_enum_maps) = .; \
*(_ftrace_enum_map) \ KEEP(*(_ftrace_enum_map)) \
VMLINUX_SYMBOL(__stop_ftrace_enum_maps) = .; VMLINUX_SYMBOL(__stop_ftrace_enum_maps) = .;
#else #else
#define FTRACE_EVENTS() #define FTRACE_EVENTS()
...@@ -134,10 +134,10 @@ ...@@ -134,10 +134,10 @@
#ifdef CONFIG_TRACING #ifdef CONFIG_TRACING
#define TRACE_PRINTKS() VMLINUX_SYMBOL(__start___trace_bprintk_fmt) = .; \ #define TRACE_PRINTKS() VMLINUX_SYMBOL(__start___trace_bprintk_fmt) = .; \
*(__trace_printk_fmt) /* Trace_printk fmt' pointer */ \ KEEP(*(__trace_printk_fmt)) /* Trace_printk fmt' pointer */ \
VMLINUX_SYMBOL(__stop___trace_bprintk_fmt) = .; VMLINUX_SYMBOL(__stop___trace_bprintk_fmt) = .;
#define TRACEPOINT_STR() VMLINUX_SYMBOL(__start___tracepoint_str) = .; \ #define TRACEPOINT_STR() VMLINUX_SYMBOL(__start___tracepoint_str) = .; \
*(__tracepoint_str) /* Trace_printk fmt' pointer */ \ KEEP(*(__tracepoint_str)) /* Trace_printk fmt' pointer */ \
VMLINUX_SYMBOL(__stop___tracepoint_str) = .; VMLINUX_SYMBOL(__stop___tracepoint_str) = .;
#else #else
#define TRACE_PRINTKS() #define TRACE_PRINTKS()
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
#ifdef CONFIG_FTRACE_SYSCALLS #ifdef CONFIG_FTRACE_SYSCALLS
#define TRACE_SYSCALLS() . = ALIGN(8); \ #define TRACE_SYSCALLS() . = ALIGN(8); \
VMLINUX_SYMBOL(__start_syscalls_metadata) = .; \ VMLINUX_SYMBOL(__start_syscalls_metadata) = .; \
*(__syscalls_metadata) \ KEEP(*(__syscalls_metadata)) \
VMLINUX_SYMBOL(__stop_syscalls_metadata) = .; VMLINUX_SYMBOL(__stop_syscalls_metadata) = .;
#else #else
#define TRACE_SYSCALLS() #define TRACE_SYSCALLS()
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
#ifdef CONFIG_SERIAL_EARLYCON #ifdef CONFIG_SERIAL_EARLYCON
#define EARLYCON_TABLE() STRUCT_ALIGN(); \ #define EARLYCON_TABLE() STRUCT_ALIGN(); \
VMLINUX_SYMBOL(__earlycon_table) = .; \ VMLINUX_SYMBOL(__earlycon_table) = .; \
*(__earlycon_table) \ KEEP(*(__earlycon_table)) \
VMLINUX_SYMBOL(__earlycon_table_end) = .; VMLINUX_SYMBOL(__earlycon_table_end) = .;
#else #else
#define EARLYCON_TABLE() #define EARLYCON_TABLE()
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
#define _OF_TABLE_1(name) \ #define _OF_TABLE_1(name) \
. = ALIGN(8); \ . = ALIGN(8); \
VMLINUX_SYMBOL(__##name##_of_table) = .; \ VMLINUX_SYMBOL(__##name##_of_table) = .; \
*(__##name##_of_table) \ KEEP(*(__##name##_of_table)) \
*(__##name##_of_table_end) KEEP(*(__##name##_of_table_end))
#define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc) #define CLKSRC_OF_TABLES() OF_TABLE(CONFIG_CLKSRC_OF, clksrc)
#define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip) #define IRQCHIP_OF_MATCH_TABLE() OF_TABLE(CONFIG_IRQCHIP, irqchip)
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
#define ACPI_PROBE_TABLE(name) \ #define ACPI_PROBE_TABLE(name) \
. = ALIGN(8); \ . = ALIGN(8); \
VMLINUX_SYMBOL(__##name##_acpi_probe_table) = .; \ VMLINUX_SYMBOL(__##name##_acpi_probe_table) = .; \
*(__##name##_acpi_probe_table) \ KEEP(*(__##name##_acpi_probe_table)) \
VMLINUX_SYMBOL(__##name##_acpi_probe_table_end) = .; VMLINUX_SYMBOL(__##name##_acpi_probe_table_end) = .;
#else #else
#define ACPI_PROBE_TABLE(name) #define ACPI_PROBE_TABLE(name)
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
#define KERNEL_DTB() \ #define KERNEL_DTB() \
STRUCT_ALIGN(); \ STRUCT_ALIGN(); \
VMLINUX_SYMBOL(__dtb_start) = .; \ VMLINUX_SYMBOL(__dtb_start) = .; \
*(.dtb.init.rodata) \ KEEP(*(.dtb.init.rodata)) \
VMLINUX_SYMBOL(__dtb_end) = .; VMLINUX_SYMBOL(__dtb_end) = .;
/* /*
...@@ -214,11 +214,11 @@ ...@@ -214,11 +214,11 @@
/* implement dynamic printk debug */ \ /* implement dynamic printk debug */ \
. = ALIGN(8); \ . = ALIGN(8); \
VMLINUX_SYMBOL(__start___jump_table) = .; \ VMLINUX_SYMBOL(__start___jump_table) = .; \
*(__jump_table) \ KEEP(*(__jump_table)) \
VMLINUX_SYMBOL(__stop___jump_table) = .; \ VMLINUX_SYMBOL(__stop___jump_table) = .; \
. = ALIGN(8); \ . = ALIGN(8); \
VMLINUX_SYMBOL(__start___verbose) = .; \ VMLINUX_SYMBOL(__start___verbose) = .; \
*(__verbose) \ KEEP(*(__verbose)) \
VMLINUX_SYMBOL(__stop___verbose) = .; \ VMLINUX_SYMBOL(__stop___verbose) = .; \
LIKELY_PROFILE() \ LIKELY_PROFILE() \
BRANCH_PROFILE() \ BRANCH_PROFILE() \
...@@ -274,10 +274,10 @@ ...@@ -274,10 +274,10 @@
VMLINUX_SYMBOL(__start_rodata) = .; \ VMLINUX_SYMBOL(__start_rodata) = .; \
*(.rodata) *(.rodata.*) \ *(.rodata) *(.rodata.*) \
RO_AFTER_INIT_DATA /* Read only after init */ \ RO_AFTER_INIT_DATA /* Read only after init */ \
*(__vermagic) /* Kernel version magic */ \ KEEP(*(__vermagic)) /* Kernel version magic */ \
. = ALIGN(8); \ . = ALIGN(8); \
VMLINUX_SYMBOL(__start___tracepoints_ptrs) = .; \ VMLINUX_SYMBOL(__start___tracepoints_ptrs) = .; \
*(__tracepoints_ptrs) /* Tracepoints: pointer array */\ KEEP(*(__tracepoints_ptrs)) /* Tracepoints: pointer array */ \
VMLINUX_SYMBOL(__stop___tracepoints_ptrs) = .; \ VMLINUX_SYMBOL(__stop___tracepoints_ptrs) = .; \
*(__tracepoints_strings)/* Tracepoints: strings */ \ *(__tracepoints_strings)/* Tracepoints: strings */ \
} \ } \
...@@ -291,35 +291,35 @@ ...@@ -291,35 +291,35 @@
/* PCI quirks */ \ /* PCI quirks */ \
.pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \ .pci_fixup : AT(ADDR(.pci_fixup) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_early) = .; \
*(.pci_fixup_early) \ KEEP(*(.pci_fixup_early)) \
VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_early) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_header) = .; \
*(.pci_fixup_header) \ KEEP(*(.pci_fixup_header)) \
VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_header) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_final) = .; \
*(.pci_fixup_final) \ KEEP(*(.pci_fixup_final)) \
VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_final) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_enable) = .; \
*(.pci_fixup_enable) \ KEEP(*(.pci_fixup_enable)) \
VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_enable) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_resume) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_resume) = .; \
*(.pci_fixup_resume) \ KEEP(*(.pci_fixup_resume)) \
VMLINUX_SYMBOL(__end_pci_fixups_resume) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_resume) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_resume_early) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_resume_early) = .; \
*(.pci_fixup_resume_early) \ KEEP(*(.pci_fixup_resume_early)) \
VMLINUX_SYMBOL(__end_pci_fixups_resume_early) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_resume_early) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_suspend) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_suspend) = .; \
*(.pci_fixup_suspend) \ KEEP(*(.pci_fixup_suspend)) \
VMLINUX_SYMBOL(__end_pci_fixups_suspend) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_suspend) = .; \
VMLINUX_SYMBOL(__start_pci_fixups_suspend_late) = .; \ VMLINUX_SYMBOL(__start_pci_fixups_suspend_late) = .; \
*(.pci_fixup_suspend_late) \ KEEP(*(.pci_fixup_suspend_late)) \
VMLINUX_SYMBOL(__end_pci_fixups_suspend_late) = .; \ VMLINUX_SYMBOL(__end_pci_fixups_suspend_late) = .; \
} \ } \
\ \
/* Built-in firmware blobs */ \ /* Built-in firmware blobs */ \
.builtin_fw : AT(ADDR(.builtin_fw) - LOAD_OFFSET) { \ .builtin_fw : AT(ADDR(.builtin_fw) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start_builtin_fw) = .; \ VMLINUX_SYMBOL(__start_builtin_fw) = .; \
*(.builtin_fw) \ KEEP(*(.builtin_fw)) \
VMLINUX_SYMBOL(__end_builtin_fw) = .; \ VMLINUX_SYMBOL(__end_builtin_fw) = .; \
} \ } \
\ \
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
\ \
/* Kernel symbol table: strings */ \ /* Kernel symbol table: strings */ \
__ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \ __ksymtab_strings : AT(ADDR(__ksymtab_strings) - LOAD_OFFSET) { \
KEEP(*(__ksymtab_strings)) \ *(__ksymtab_strings) \
} \ } \
\ \
/* __*init sections */ \ /* __*init sections */ \
...@@ -410,14 +410,14 @@ ...@@ -410,14 +410,14 @@
/* Built-in module parameters. */ \ /* Built-in module parameters. */ \
__param : AT(ADDR(__param) - LOAD_OFFSET) { \ __param : AT(ADDR(__param) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start___param) = .; \ VMLINUX_SYMBOL(__start___param) = .; \
*(__param) \ KEEP(*(__param)) \
VMLINUX_SYMBOL(__stop___param) = .; \ VMLINUX_SYMBOL(__stop___param) = .; \
} \ } \
\ \
/* Built-in module versions. */ \ /* Built-in module versions. */ \
__modver : AT(ADDR(__modver) - LOAD_OFFSET) { \ __modver : AT(ADDR(__modver) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start___modver) = .; \ VMLINUX_SYMBOL(__start___modver) = .; \
*(__modver) \ KEEP(*(__modver)) \
VMLINUX_SYMBOL(__stop___modver) = .; \ VMLINUX_SYMBOL(__stop___modver) = .; \
. = ALIGN((align)); \ . = ALIGN((align)); \
VMLINUX_SYMBOL(__end_rodata) = .; \ VMLINUX_SYMBOL(__end_rodata) = .; \
...@@ -520,7 +520,7 @@ ...@@ -520,7 +520,7 @@
. = ALIGN(align); \ . = ALIGN(align); \
__ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { \ __ex_table : AT(ADDR(__ex_table) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start___ex_table) = .; \ VMLINUX_SYMBOL(__start___ex_table) = .; \
*(__ex_table) \ KEEP(*(__ex_table)) \
VMLINUX_SYMBOL(__stop___ex_table) = .; \ VMLINUX_SYMBOL(__stop___ex_table) = .; \
} }
...@@ -536,9 +536,9 @@ ...@@ -536,9 +536,9 @@
#ifdef CONFIG_CONSTRUCTORS #ifdef CONFIG_CONSTRUCTORS
#define KERNEL_CTORS() . = ALIGN(8); \ #define KERNEL_CTORS() . = ALIGN(8); \
VMLINUX_SYMBOL(__ctors_start) = .; \ VMLINUX_SYMBOL(__ctors_start) = .; \
*(.ctors) \ KEEP(*(.ctors)) \
*(SORT(.init_array.*)) \ KEEP(*(SORT(.init_array.*))) \
*(.init_array) \ KEEP(*(.init_array)) \
VMLINUX_SYMBOL(__ctors_end) = .; VMLINUX_SYMBOL(__ctors_end) = .;
#else #else
#define KERNEL_CTORS() #define KERNEL_CTORS()
...@@ -663,7 +663,7 @@ ...@@ -663,7 +663,7 @@
. = ALIGN(8); \ . = ALIGN(8); \
__bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \ __bug_table : AT(ADDR(__bug_table) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start___bug_table) = .; \ VMLINUX_SYMBOL(__start___bug_table) = .; \
*(__bug_table) \ KEEP(*(__bug_table)) \
VMLINUX_SYMBOL(__stop___bug_table) = .; \ VMLINUX_SYMBOL(__stop___bug_table) = .; \
} }
#else #else
...@@ -675,7 +675,7 @@ ...@@ -675,7 +675,7 @@
. = ALIGN(4); \ . = ALIGN(4); \
.tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \ .tracedata : AT(ADDR(.tracedata) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__tracedata_start) = .; \ VMLINUX_SYMBOL(__tracedata_start) = .; \
*(.tracedata) \ KEEP(*(.tracedata)) \
VMLINUX_SYMBOL(__tracedata_end) = .; \ VMLINUX_SYMBOL(__tracedata_end) = .; \
} }
#else #else
...@@ -692,7 +692,7 @@ ...@@ -692,7 +692,7 @@
#define INIT_SETUP(initsetup_align) \ #define INIT_SETUP(initsetup_align) \
. = ALIGN(initsetup_align); \ . = ALIGN(initsetup_align); \
VMLINUX_SYMBOL(__setup_start) = .; \ VMLINUX_SYMBOL(__setup_start) = .; \
*(.init.setup) \ KEEP(*(.init.setup)) \
VMLINUX_SYMBOL(__setup_end) = .; VMLINUX_SYMBOL(__setup_end) = .;
#define INIT_CALLS_LEVEL(level) \ #define INIT_CALLS_LEVEL(level) \
......
...@@ -141,10 +141,10 @@ CLANG ?= clang ...@@ -141,10 +141,10 @@ CLANG ?= clang
# Trick to allow make to be run from this directory # Trick to allow make to be run from this directory
all: all:
$(MAKE) -C ../../ $$PWD/ $(MAKE) -C ../../ $(CURDIR)/
clean: clean:
$(MAKE) -C ../../ M=$$PWD clean $(MAKE) -C ../../ M=$(CURDIR) clean
@rm -f *~ @rm -f *~
# Verify LLVM compiler tools are available and bpf target is supported by llc # Verify LLVM compiler tools are available and bpf target is supported by llc
......
...@@ -13,4 +13,4 @@ HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include ...@@ -13,4 +13,4 @@ HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
all: modules all: modules
modules clean: modules clean:
$(MAKE) -C ../.. SUBDIRS=$(PWD) $@ $(MAKE) -C ../.. SUBDIRS=$(CURDIR) $@
...@@ -488,9 +488,9 @@ endif ...@@ -488,9 +488,9 @@ endif
quiet_cmd_export_list = EXPORTS $@ quiet_cmd_export_list = EXPORTS $@
cmd_export_list = $(OBJDUMP) -h $< | \ cmd_export_list = $(OBJDUMP) -h $< | \
sed -ne '/___ksymtab/{s/.*+/$(ref_prefix)/;s/ .*/)/;p}' >$(ksyms-lds);\ sed -ne '/___ksymtab/s/.*+\([^ ]*\).*/$(ref_prefix)\1)/p' >$(ksyms-lds);\
rm -f $(dummy-object);\ rm -f $(dummy-object);\
$(AR) rcs$(KBUILD_ARFLAGS) $(dummy-object);\ echo | $(CC) $(a_flags) -c -o $(dummy-object) -x assembler -;\
$(LD) $(ld_flags) -r -o $@ -T $(ksyms-lds) $(dummy-object);\ $(LD) $(ld_flags) -r -o $@ -T $(ksyms-lds) $(dummy-object);\
rm $(dummy-object) $(ksyms-lds) rm $(dummy-object) $(ksyms-lds)
...@@ -517,11 +517,18 @@ $($(subst $(obj)/,,$(@:.o=-objs))) \ ...@@ -517,11 +517,18 @@ $($(subst $(obj)/,,$(@:.o=-objs))) \
$($(subst $(obj)/,,$(@:.o=-y))) \ $($(subst $(obj)/,,$(@:.o=-y))) \
$($(subst $(obj)/,,$(@:.o=-m)))), $^) $($(subst $(obj)/,,$(@:.o=-m)))), $^)
quiet_cmd_link_multi-y = LD $@ cmd_link_multi-link = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) $(cmd_secanalysis)
cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) $(cmd_secanalysis)
ifdef CONFIG_THIN_ARCHIVES
quiet_cmd_link_multi-y = AR $@
cmd_link_multi-y = rm -f $@; $(AR) rcST$(KBUILD_ARFLAGS) $@ $(link_multi_deps)
else
quiet_cmd_link_multi-y = LD $@
cmd_link_multi-y = $(cmd_link_multi-link)
endif
quiet_cmd_link_multi-m = LD [M] $@ quiet_cmd_link_multi-m = LD [M] $@
cmd_link_multi-m = $(cmd_link_multi-y) cmd_link_multi-m = $(cmd_link_multi-link)
$(multi-used-y): FORCE $(multi-used-y): FORCE
$(call if_changed,link_multi-y) $(call if_changed,link_multi-y)
......
...@@ -59,6 +59,7 @@ cat > "$new_ksyms_file" << EOT ...@@ -59,6 +59,7 @@ cat > "$new_ksyms_file" << EOT
*/ */
EOT EOT
[ "$(ls -A "$MODVERDIR")" ] &&
sed -ns -e '3{s/ /\n/g;/^$/!p;}' "$MODVERDIR"/*.mod | sort -u | sed -ns -e '3{s/ /\n/g;/^$/!p;}' "$MODVERDIR"/*.mod | sort -u |
while read sym; do while read sym; do
if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then
......
...@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW ...@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW
__typeof__, TYPEOF_KEYW __typeof__, TYPEOF_KEYW
__volatile, VOLATILE_KEYW __volatile, VOLATILE_KEYW
__volatile__, VOLATILE_KEYW __volatile__, VOLATILE_KEYW
__builtin_va_list, VA_LIST_KEYW
# According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO # According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO
_Bool, BOOL_KEYW _Bool, BOOL_KEYW
_restrict, RESTRICT_KEYW _restrict, RESTRICT_KEYW
......
...@@ -57,7 +57,7 @@ is_reserved_hash (register const char *str, register unsigned int len) ...@@ -57,7 +57,7 @@ is_reserved_hash (register const char *str, register unsigned int len)
101, 101, 101, 101, 101, 101, 101, 101, 101, 0, 101, 101, 101, 101, 101, 101, 101, 101, 101, 0,
101, 101, 101, 101, 101, 101, 15, 101, 101, 101, 101, 101, 101, 101, 101, 101, 15, 101, 101, 101,
0, 101, 101, 101, 101, 101, 101, 101, 101, 101, 0, 101, 101, 101, 101, 101, 101, 101, 101, 101,
101, 101, 101, 101, 101, 0, 101, 0, 101, 5, 101, 101, 101, 101, 101, 0, 101, 0, 0, 5,
25, 20, 55, 30, 101, 15, 101, 101, 10, 0, 25, 20, 55, 30, 101, 15, 101, 101, 10, 0,
10, 40, 10, 101, 10, 5, 0, 10, 15, 101, 10, 40, 10, 101, 10, 5, 0, 10, 15, 101,
101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101,
...@@ -89,7 +89,7 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -89,7 +89,7 @@ is_reserved_word (register const char *str, register unsigned int len)
{ {
enum enum
{ {
TOTAL_KEYWORDS = 46, TOTAL_KEYWORDS = 47,
MIN_WORD_LENGTH = 3, MIN_WORD_LENGTH = 3,
MAX_WORD_LENGTH = 24, MAX_WORD_LENGTH = 24,
MIN_HASH_VALUE = 3, MIN_HASH_VALUE = 3,
...@@ -99,7 +99,7 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -99,7 +99,7 @@ is_reserved_word (register const char *str, register unsigned int len)
static const struct resword wordlist[] = static const struct resword wordlist[] =
{ {
{""}, {""}, {""}, {""}, {""}, {""},
#line 35 "scripts/genksyms/keywords.gperf" #line 36 "scripts/genksyms/keywords.gperf"
{"asm", ASM_KEYW}, {"asm", ASM_KEYW},
{""}, {""},
#line 15 "scripts/genksyms/keywords.gperf" #line 15 "scripts/genksyms/keywords.gperf"
...@@ -119,20 +119,21 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -119,20 +119,21 @@ is_reserved_word (register const char *str, register unsigned int len)
{"__const__", CONST_KEYW}, {"__const__", CONST_KEYW},
#line 25 "scripts/genksyms/keywords.gperf" #line 25 "scripts/genksyms/keywords.gperf"
{"__signed__", SIGNED_KEYW}, {"__signed__", SIGNED_KEYW},
#line 53 "scripts/genksyms/keywords.gperf" #line 54 "scripts/genksyms/keywords.gperf"
{"static", STATIC_KEYW}, {"static", STATIC_KEYW},
{""}, #line 30 "scripts/genksyms/keywords.gperf"
#line 48 "scripts/genksyms/keywords.gperf" {"__builtin_va_list", VA_LIST_KEYW},
#line 49 "scripts/genksyms/keywords.gperf"
{"int", INT_KEYW}, {"int", INT_KEYW},
#line 41 "scripts/genksyms/keywords.gperf"
{"char", CHAR_KEYW},
#line 42 "scripts/genksyms/keywords.gperf" #line 42 "scripts/genksyms/keywords.gperf"
{"char", CHAR_KEYW},
#line 43 "scripts/genksyms/keywords.gperf"
{"const", CONST_KEYW}, {"const", CONST_KEYW},
#line 54 "scripts/genksyms/keywords.gperf" #line 55 "scripts/genksyms/keywords.gperf"
{"struct", STRUCT_KEYW}, {"struct", STRUCT_KEYW},
#line 33 "scripts/genksyms/keywords.gperf"
{"__restrict__", RESTRICT_KEYW},
#line 34 "scripts/genksyms/keywords.gperf" #line 34 "scripts/genksyms/keywords.gperf"
{"__restrict__", RESTRICT_KEYW},
#line 35 "scripts/genksyms/keywords.gperf"
{"restrict", RESTRICT_KEYW}, {"restrict", RESTRICT_KEYW},
#line 12 "scripts/genksyms/keywords.gperf" #line 12 "scripts/genksyms/keywords.gperf"
{"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW},
...@@ -143,7 +144,7 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -143,7 +144,7 @@ is_reserved_word (register const char *str, register unsigned int len)
{"__volatile__", VOLATILE_KEYW}, {"__volatile__", VOLATILE_KEYW},
#line 10 "scripts/genksyms/keywords.gperf" #line 10 "scripts/genksyms/keywords.gperf"
{"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW},
#line 32 "scripts/genksyms/keywords.gperf" #line 33 "scripts/genksyms/keywords.gperf"
{"_restrict", RESTRICT_KEYW}, {"_restrict", RESTRICT_KEYW},
{""}, {""},
#line 17 "scripts/genksyms/keywords.gperf" #line 17 "scripts/genksyms/keywords.gperf"
...@@ -152,64 +153,64 @@ is_reserved_word (register const char *str, register unsigned int len) ...@@ -152,64 +153,64 @@ is_reserved_word (register const char *str, register unsigned int len)
{"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, {"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
#line 21 "scripts/genksyms/keywords.gperf" #line 21 "scripts/genksyms/keywords.gperf"
{"__extension__", EXTENSION_KEYW}, {"__extension__", EXTENSION_KEYW},
#line 44 "scripts/genksyms/keywords.gperf" #line 45 "scripts/genksyms/keywords.gperf"
{"enum", ENUM_KEYW}, {"enum", ENUM_KEYW},
#line 13 "scripts/genksyms/keywords.gperf" #line 13 "scripts/genksyms/keywords.gperf"
{"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW}, {"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW},
#line 45 "scripts/genksyms/keywords.gperf" #line 46 "scripts/genksyms/keywords.gperf"
{"extern", EXTERN_KEYW}, {"extern", EXTERN_KEYW},
{""}, {""},
#line 24 "scripts/genksyms/keywords.gperf" #line 24 "scripts/genksyms/keywords.gperf"
{"__signed", SIGNED_KEYW}, {"__signed", SIGNED_KEYW},
#line 14 "scripts/genksyms/keywords.gperf" #line 14 "scripts/genksyms/keywords.gperf"
{"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, {"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW},
#line 57 "scripts/genksyms/keywords.gperf" #line 58 "scripts/genksyms/keywords.gperf"
{"union", UNION_KEYW}, {"union", UNION_KEYW},
{""}, {""}, {""}, {""},
#line 22 "scripts/genksyms/keywords.gperf" #line 22 "scripts/genksyms/keywords.gperf"
{"__inline", INLINE_KEYW}, {"__inline", INLINE_KEYW},
#line 40 "scripts/genksyms/keywords.gperf" #line 41 "scripts/genksyms/keywords.gperf"
{"auto", AUTO_KEYW}, {"auto", AUTO_KEYW},
#line 28 "scripts/genksyms/keywords.gperf" #line 28 "scripts/genksyms/keywords.gperf"
{"__volatile", VOLATILE_KEYW}, {"__volatile", VOLATILE_KEYW},
{""}, {""}, {""}, {""},
#line 58 "scripts/genksyms/keywords.gperf" #line 59 "scripts/genksyms/keywords.gperf"
{"unsigned", UNSIGNED_KEYW}, {"unsigned", UNSIGNED_KEYW},
{""}, {""},
#line 51 "scripts/genksyms/keywords.gperf" #line 52 "scripts/genksyms/keywords.gperf"
{"short", SHORT_KEYW}, {"short", SHORT_KEYW},
#line 47 "scripts/genksyms/keywords.gperf" #line 48 "scripts/genksyms/keywords.gperf"
{"inline", INLINE_KEYW}, {"inline", INLINE_KEYW},
{""}, {""},
#line 60 "scripts/genksyms/keywords.gperf" #line 61 "scripts/genksyms/keywords.gperf"
{"volatile", VOLATILE_KEYW}, {"volatile", VOLATILE_KEYW},
#line 49 "scripts/genksyms/keywords.gperf" #line 50 "scripts/genksyms/keywords.gperf"
{"long", LONG_KEYW}, {"long", LONG_KEYW},
#line 31 "scripts/genksyms/keywords.gperf" #line 32 "scripts/genksyms/keywords.gperf"
{"_Bool", BOOL_KEYW}, {"_Bool", BOOL_KEYW},
{""}, {""}, {""}, {""},
#line 50 "scripts/genksyms/keywords.gperf" #line 51 "scripts/genksyms/keywords.gperf"
{"register", REGISTER_KEYW}, {"register", REGISTER_KEYW},
#line 59 "scripts/genksyms/keywords.gperf" #line 60 "scripts/genksyms/keywords.gperf"
{"void", VOID_KEYW}, {"void", VOID_KEYW},
{""}, {""},
#line 43 "scripts/genksyms/keywords.gperf" #line 44 "scripts/genksyms/keywords.gperf"
{"double", DOUBLE_KEYW}, {"double", DOUBLE_KEYW},
{""}, {""},
#line 26 "scripts/genksyms/keywords.gperf" #line 26 "scripts/genksyms/keywords.gperf"
{"__typeof", TYPEOF_KEYW}, {"__typeof", TYPEOF_KEYW},
{""}, {""}, {""}, {""},
#line 52 "scripts/genksyms/keywords.gperf" #line 53 "scripts/genksyms/keywords.gperf"
{"signed", SIGNED_KEYW}, {"signed", SIGNED_KEYW},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
#line 56 "scripts/genksyms/keywords.gperf" #line 57 "scripts/genksyms/keywords.gperf"
{"typeof", TYPEOF_KEYW}, {"typeof", TYPEOF_KEYW},
#line 55 "scripts/genksyms/keywords.gperf" #line 56 "scripts/genksyms/keywords.gperf"
{"typedef", TYPEDEF_KEYW}, {"typedef", TYPEDEF_KEYW},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
#line 46 "scripts/genksyms/keywords.gperf" #line 47 "scripts/genksyms/keywords.gperf"
{"float", FLOAT_KEYW} {"float", FLOAT_KEYW}
}; };
......
...@@ -172,22 +172,23 @@ extern int yydebug; ...@@ -172,22 +172,23 @@ extern int yydebug;
VOID_KEYW = 281, VOID_KEYW = 281,
VOLATILE_KEYW = 282, VOLATILE_KEYW = 282,
TYPEOF_KEYW = 283, TYPEOF_KEYW = 283,
EXPORT_SYMBOL_KEYW = 284, VA_LIST_KEYW = 284,
ASM_PHRASE = 285, EXPORT_SYMBOL_KEYW = 285,
ATTRIBUTE_PHRASE = 286, ASM_PHRASE = 286,
TYPEOF_PHRASE = 287, ATTRIBUTE_PHRASE = 287,
BRACE_PHRASE = 288, TYPEOF_PHRASE = 288,
BRACKET_PHRASE = 289, BRACE_PHRASE = 289,
EXPRESSION_PHRASE = 290, BRACKET_PHRASE = 290,
CHAR = 291, EXPRESSION_PHRASE = 291,
DOTS = 292, CHAR = 292,
IDENT = 293, DOTS = 293,
INT = 294, IDENT = 294,
REAL = 295, INT = 295,
STRING = 296, REAL = 296,
TYPE = 297, STRING = 297,
OTHER = 298, TYPE = 298,
FILENAME = 299 OTHER = 299,
FILENAME = 300
}; };
#endif #endif
...@@ -439,20 +440,20 @@ union yyalloc ...@@ -439,20 +440,20 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */ /* YYFINAL -- State number of the termination state. */
#define YYFINAL 4 #define YYFINAL 4
/* YYLAST -- Last index in YYTABLE. */ /* YYLAST -- Last index in YYTABLE. */
#define YYLAST 515 #define YYLAST 524
/* YYNTOKENS -- Number of terminals. */ /* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 54 #define YYNTOKENS 55
/* YYNNTS -- Number of nonterminals. */ /* YYNNTS -- Number of nonterminals. */
#define YYNNTS 49 #define YYNNTS 49
/* YYNRULES -- Number of rules. */ /* YYNRULES -- Number of rules. */
#define YYNRULES 133 #define YYNRULES 134
/* YYNRULES -- Number of states. */ /* YYNRULES -- Number of states. */
#define YYNSTATES 188 #define YYNSTATES 189
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2 #define YYUNDEFTOK 2
#define YYMAXUTOK 299 #define YYMAXUTOK 300
#define YYTRANSLATE(YYX) \ #define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
...@@ -464,15 +465,15 @@ static const yytype_uint8 yytranslate[] = ...@@ -464,15 +465,15 @@ static const yytype_uint8 yytranslate[] =
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
48, 49, 50, 2, 47, 2, 2, 2, 2, 2, 49, 50, 51, 2, 48, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 53, 45, 2, 2, 2, 2, 2, 2, 2, 2, 54, 46,
2, 51, 2, 2, 2, 2, 2, 2, 2, 2, 2, 52, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 52, 2, 46, 2, 2, 2, 2, 2, 2, 2, 53, 2, 47, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
...@@ -489,7 +490,8 @@ static const yytype_uint8 yytranslate[] = ...@@ -489,7 +490,8 @@ static const yytype_uint8 yytranslate[] =
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45
}; };
#if YYDEBUG #if YYDEBUG
...@@ -502,76 +504,76 @@ static const yytype_uint16 yyprhs[] = ...@@ -502,76 +504,76 @@ static const yytype_uint16 yyprhs[] =
46, 50, 55, 56, 58, 60, 63, 65, 67, 69, 46, 50, 55, 56, 58, 60, 63, 65, 67, 69,
71, 73, 75, 77, 79, 81, 86, 88, 91, 94, 71, 73, 75, 77, 79, 81, 86, 88, 91, 94,
97, 101, 105, 109, 112, 115, 118, 120, 122, 124, 97, 101, 105, 109, 112, 115, 118, 120, 122, 124,
126, 128, 130, 132, 134, 136, 138, 140, 143, 144, 126, 128, 130, 132, 134, 136, 138, 140, 142, 145,
146, 148, 151, 153, 155, 157, 159, 162, 164, 166, 146, 148, 150, 153, 155, 157, 159, 161, 164, 166,
168, 173, 178, 181, 185, 189, 192, 194, 196, 198, 168, 170, 175, 180, 183, 187, 191, 194, 196, 198,
203, 208, 211, 215, 219, 222, 224, 228, 229, 231, 200, 205, 210, 213, 217, 221, 224, 226, 230, 231,
233, 237, 240, 243, 245, 246, 248, 250, 255, 260, 233, 235, 239, 242, 245, 247, 248, 250, 252, 257,
263, 267, 271, 275, 276, 278, 281, 285, 289, 290, 262, 265, 269, 273, 277, 278, 280, 283, 287, 291,
292, 294, 297, 301, 304, 305, 307, 309, 313, 316, 292, 294, 296, 299, 303, 306, 307, 309, 311, 315,
319, 321, 324, 325, 328, 332, 337, 339, 343, 345, 318, 321, 323, 326, 327, 330, 334, 339, 341, 345,
349, 352, 353, 355 347, 351, 354, 355, 357
}; };
/* YYRHS -- A `-1'-separated list of the rules' RHS. */ /* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int8 yyrhs[] = static const yytype_int8 yyrhs[] =
{ {
55, 0, -1, 56, -1, 55, 56, -1, -1, 57, 56, 0, -1, 57, -1, 56, 57, -1, -1, 58,
58, -1, -1, 12, 23, 59, 61, -1, -1, 23, 59, -1, -1, 12, 23, 60, 62, -1, -1, 23,
60, 61, -1, 61, -1, 85, -1, 100, -1, 102, 61, 62, -1, 62, -1, 86, -1, 101, -1, 103,
-1, 1, 45, -1, 1, 46, -1, 65, 62, 45, -1, 1, 46, -1, 1, 47, -1, 66, 63, 46,
-1, -1, 63, -1, 64, -1, 63, 47, 64, -1, -1, -1, 64, -1, 65, -1, 64, 48, 65, -1,
75, 101, 96, 86, -1, -1, 66, -1, 67, -1, 76, 102, 97, 87, -1, -1, 67, -1, 68, -1,
66, 67, -1, 68, -1, 69, -1, 5, -1, 17, 67, 68, -1, 69, -1, 70, -1, 5, -1, 17,
-1, 21, -1, 11, -1, 14, -1, 70, -1, 74, -1, 21, -1, 11, -1, 14, -1, 71, -1, 75,
-1, 28, 48, 82, 49, -1, 32, -1, 22, 38, -1, 28, 49, 83, 50, -1, 33, -1, 22, 39,
-1, 24, 38, -1, 10, 38, -1, 22, 38, 88, -1, 24, 39, -1, 10, 39, -1, 22, 39, 89,
-1, 24, 38, 88, -1, 10, 38, 97, -1, 10, -1, 24, 39, 89, -1, 10, 39, 98, -1, 10,
97, -1, 22, 88, -1, 24, 88, -1, 7, -1, 98, -1, 22, 89, -1, 24, 89, -1, 7, -1,
19, -1, 15, -1, 16, -1, 20, -1, 25, -1, 19, -1, 15, -1, 16, -1, 20, -1, 25, -1,
13, -1, 9, -1, 26, -1, 6, -1, 42, -1, 13, -1, 9, -1, 26, -1, 6, -1, 29, -1,
50, 72, -1, -1, 73, -1, 74, -1, 73, 74, 43, -1, 51, 73, -1, -1, 74, -1, 75, -1,
-1, 8, -1, 27, -1, 31, -1, 18, -1, 71, 74, 75, -1, 8, -1, 27, -1, 32, -1, 18,
75, -1, 76, -1, 38, -1, 42, -1, 76, 48, -1, 72, 76, -1, 77, -1, 39, -1, 43, -1,
79, 49, -1, 76, 48, 1, 49, -1, 76, 34, 77, 49, 80, 50, -1, 77, 49, 1, 50, -1,
-1, 48, 75, 49, -1, 48, 1, 49, -1, 71, 77, 35, -1, 49, 76, 50, -1, 49, 1, 50,
77, -1, 78, -1, 38, -1, 42, -1, 78, 48, -1, 72, 78, -1, 79, -1, 39, -1, 43, -1,
79, 49, -1, 78, 48, 1, 49, -1, 78, 34, 79, 49, 80, 50, -1, 79, 49, 1, 50, -1,
-1, 48, 77, 49, -1, 48, 1, 49, -1, 80, 79, 35, -1, 49, 78, 50, -1, 49, 1, 50,
37, -1, 80, -1, 81, 47, 37, -1, -1, 81, -1, 81, 38, -1, 81, -1, 82, 48, 38, -1,
-1, 82, -1, 81, 47, 82, -1, 66, 83, -1, -1, 82, -1, 83, -1, 82, 48, 83, -1, 67,
71, 83, -1, 84, -1, -1, 38, -1, 42, -1, 84, -1, 72, 84, -1, 85, -1, -1, 39, -1,
84, 48, 79, 49, -1, 84, 48, 1, 49, -1, 43, -1, 85, 49, 80, 50, -1, 85, 49, 1,
84, 34, -1, 48, 83, 49, -1, 48, 1, 49, 50, -1, 85, 35, -1, 49, 84, 50, -1, 49,
-1, 65, 75, 33, -1, -1, 87, -1, 51, 35, 1, 50, -1, 66, 76, 34, -1, -1, 88, -1,
-1, 52, 89, 46, -1, 52, 1, 46, -1, -1, 52, 36, -1, 53, 90, 47, -1, 53, 1, 47,
90, -1, 91, -1, 90, 91, -1, 65, 92, 45, -1, -1, 91, -1, 92, -1, 91, 92, -1, 66,
-1, 1, 45, -1, -1, 93, -1, 94, -1, 93, 93, 46, -1, 1, 46, -1, -1, 94, -1, 95,
47, 94, -1, 77, 96, -1, 38, 95, -1, 95, -1, 94, 48, 95, -1, 78, 97, -1, 39, 96,
-1, 53, 35, -1, -1, 96, 31, -1, 52, 98, -1, 96, -1, 54, 36, -1, -1, 97, 32, -1,
46, -1, 52, 98, 47, 46, -1, 99, -1, 98, 53, 99, 47, -1, 53, 99, 48, 47, -1, 100,
47, 99, -1, 38, -1, 38, 51, 35, -1, 30, -1, 99, 48, 100, -1, 39, -1, 39, 52, 36,
45, -1, -1, 30, -1, 29, 48, 38, 49, 45, -1, 31, 46, -1, -1, 31, -1, 30, 49, 39,
-1 50, 46, -1
}; };
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] = static const yytype_uint16 yyrline[] =
{ {
0, 124, 124, 125, 129, 129, 135, 135, 137, 137, 0, 125, 125, 126, 130, 130, 136, 136, 138, 138,
139, 140, 141, 142, 143, 144, 148, 162, 163, 167, 140, 141, 142, 143, 144, 145, 149, 163, 164, 168,
175, 188, 194, 195, 199, 200, 204, 210, 214, 215, 176, 189, 195, 196, 200, 201, 205, 211, 215, 216,
216, 217, 218, 222, 223, 224, 225, 229, 231, 233, 217, 218, 219, 223, 224, 225, 226, 230, 232, 234,
237, 239, 241, 246, 249, 250, 254, 255, 256, 257, 238, 240, 242, 247, 250, 251, 255, 256, 257, 258,
258, 259, 260, 261, 262, 263, 264, 268, 273, 274, 259, 260, 261, 262, 263, 264, 265, 266, 270, 275,
278, 279, 283, 283, 283, 284, 292, 293, 297, 306, 276, 280, 281, 285, 285, 285, 286, 294, 295, 299,
315, 317, 319, 321, 323, 330, 331, 335, 336, 337, 308, 317, 319, 321, 323, 325, 332, 333, 337, 338,
339, 341, 343, 345, 350, 351, 352, 356, 357, 361, 339, 341, 343, 345, 347, 352, 353, 354, 358, 359,
362, 367, 372, 374, 378, 379, 387, 391, 393, 395, 363, 364, 369, 374, 376, 380, 381, 389, 393, 395,
397, 399, 404, 413, 414, 419, 424, 425, 429, 430, 397, 399, 401, 406, 415, 416, 421, 426, 427, 431,
434, 435, 439, 441, 446, 447, 451, 452, 456, 457, 432, 436, 437, 441, 443, 448, 449, 453, 454, 458,
458, 462, 466, 467, 471, 472, 476, 477, 480, 485, 459, 460, 464, 468, 469, 473, 474, 478, 479, 482,
493, 497, 498, 502 487, 495, 499, 500, 504
}; };
#endif #endif
...@@ -586,12 +588,12 @@ static const char *const yytname[] = ...@@ -586,12 +588,12 @@ static const char *const yytname[] =
"INLINE_KEYW", "INT_KEYW", "LONG_KEYW", "REGISTER_KEYW", "RESTRICT_KEYW", "INLINE_KEYW", "INT_KEYW", "LONG_KEYW", "REGISTER_KEYW", "RESTRICT_KEYW",
"SHORT_KEYW", "SIGNED_KEYW", "STATIC_KEYW", "STRUCT_KEYW", "SHORT_KEYW", "SIGNED_KEYW", "STATIC_KEYW", "STRUCT_KEYW",
"TYPEDEF_KEYW", "UNION_KEYW", "UNSIGNED_KEYW", "VOID_KEYW", "TYPEDEF_KEYW", "UNION_KEYW", "UNSIGNED_KEYW", "VOID_KEYW",
"VOLATILE_KEYW", "TYPEOF_KEYW", "EXPORT_SYMBOL_KEYW", "ASM_PHRASE", "VOLATILE_KEYW", "TYPEOF_KEYW", "VA_LIST_KEYW", "EXPORT_SYMBOL_KEYW",
"ATTRIBUTE_PHRASE", "TYPEOF_PHRASE", "BRACE_PHRASE", "BRACKET_PHRASE", "ASM_PHRASE", "ATTRIBUTE_PHRASE", "TYPEOF_PHRASE", "BRACE_PHRASE",
"EXPRESSION_PHRASE", "CHAR", "DOTS", "IDENT", "INT", "REAL", "STRING", "BRACKET_PHRASE", "EXPRESSION_PHRASE", "CHAR", "DOTS", "IDENT", "INT",
"TYPE", "OTHER", "FILENAME", "';'", "'}'", "','", "'('", "')'", "'*'", "REAL", "STRING", "TYPE", "OTHER", "FILENAME", "';'", "'}'", "','",
"'='", "'{'", "':'", "$accept", "declaration_seq", "declaration", "$@1", "'('", "')'", "'*'", "'='", "'{'", "':'", "$accept", "declaration_seq",
"declaration1", "$@2", "$@3", "simple_declaration", "declaration", "$@1", "declaration1", "$@2", "$@3", "simple_declaration",
"init_declarator_list_opt", "init_declarator_list", "init_declarator", "init_declarator_list_opt", "init_declarator_list", "init_declarator",
"decl_specifier_seq_opt", "decl_specifier_seq", "decl_specifier", "decl_specifier_seq_opt", "decl_specifier_seq", "decl_specifier",
"storage_class_specifier", "type_specifier", "simple_type_specifier", "storage_class_specifier", "type_specifier", "simple_type_specifier",
...@@ -619,28 +621,28 @@ static const yytype_uint16 yytoknum[] = ...@@ -619,28 +621,28 @@ static const yytype_uint16 yytoknum[] =
265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 59, 125, 44, 40, 41, 295, 296, 297, 298, 299, 300, 59, 125, 44, 40,
42, 61, 123, 58 41, 42, 61, 123, 58
}; };
# endif # endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] = static const yytype_uint8 yyr1[] =
{ {
0, 54, 55, 55, 57, 56, 59, 58, 60, 58, 0, 55, 56, 56, 58, 57, 60, 59, 61, 59,
58, 58, 58, 58, 58, 58, 61, 62, 62, 63, 59, 59, 59, 59, 59, 59, 62, 63, 63, 64,
63, 64, 65, 65, 66, 66, 67, 67, 68, 68, 64, 65, 66, 66, 67, 67, 68, 68, 69, 69,
68, 68, 68, 69, 69, 69, 69, 69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70,
69, 69, 69, 69, 69, 69, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71,
70, 70, 70, 70, 70, 70, 70, 71, 72, 72, 71, 71, 71, 71, 71, 71, 71, 71, 72, 73,
73, 73, 74, 74, 74, 74, 75, 75, 76, 76, 73, 74, 74, 75, 75, 75, 75, 76, 76, 77,
76, 76, 76, 76, 76, 77, 77, 78, 78, 78, 77, 77, 77, 77, 77, 77, 78, 78, 79, 79,
78, 78, 78, 78, 79, 79, 79, 80, 80, 81, 79, 79, 79, 79, 79, 80, 80, 80, 81, 81,
81, 82, 83, 83, 84, 84, 84, 84, 84, 84, 82, 82, 83, 84, 84, 85, 85, 85, 85, 85,
84, 84, 85, 86, 86, 87, 88, 88, 89, 89, 85, 85, 85, 86, 87, 87, 88, 89, 89, 90,
90, 90, 91, 91, 92, 92, 93, 93, 94, 94, 90, 91, 91, 92, 92, 93, 93, 94, 94, 95,
94, 95, 96, 96, 97, 97, 98, 98, 99, 99, 95, 95, 96, 97, 97, 98, 98, 99, 99, 100,
100, 101, 101, 102 100, 101, 102, 102, 103
}; };
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
...@@ -651,15 +653,15 @@ static const yytype_uint8 yyr2[] = ...@@ -651,15 +653,15 @@ static const yytype_uint8 yyr2[] =
3, 4, 0, 1, 1, 2, 1, 1, 1, 1, 3, 4, 0, 1, 1, 2, 1, 1, 1, 1,
1, 1, 1, 1, 1, 4, 1, 2, 2, 2, 1, 1, 1, 1, 1, 4, 1, 2, 2, 2,
3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0,
1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1,
4, 4, 2, 3, 3, 2, 1, 1, 1, 4, 1, 4, 4, 2, 3, 3, 2, 1, 1, 1,
4, 2, 3, 3, 2, 1, 3, 0, 1, 1, 4, 4, 2, 3, 3, 2, 1, 3, 0, 1,
3, 2, 2, 1, 0, 1, 1, 4, 4, 2, 1, 3, 2, 2, 1, 0, 1, 1, 4, 4,
3, 3, 3, 0, 1, 2, 3, 3, 0, 1, 2, 3, 3, 3, 0, 1, 2, 3, 3, 0,
1, 2, 3, 2, 0, 1, 1, 3, 2, 2, 1, 1, 2, 3, 2, 0, 1, 1, 3, 2,
1, 2, 0, 2, 3, 4, 1, 3, 1, 3, 2, 1, 2, 0, 2, 3, 4, 1, 3, 1,
2, 0, 1, 5 3, 2, 0, 1, 5
}; };
/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
...@@ -668,217 +670,219 @@ static const yytype_uint8 yyr2[] = ...@@ -668,217 +670,219 @@ static const yytype_uint8 yyr2[] =
static const yytype_uint8 yydefact[] = static const yytype_uint8 yydefact[] =
{ {
4, 4, 2, 0, 1, 3, 0, 28, 55, 46, 4, 4, 2, 0, 1, 3, 0, 28, 55, 46,
62, 53, 0, 31, 0, 52, 32, 48, 49, 29, 63, 53, 0, 31, 0, 52, 32, 48, 49, 29,
65, 47, 50, 30, 0, 8, 0, 51, 54, 63, 66, 47, 50, 30, 0, 8, 0, 51, 54, 64,
0, 0, 0, 64, 36, 56, 5, 10, 17, 23, 0, 56, 0, 0, 65, 36, 57, 5, 10, 17,
24, 26, 27, 33, 34, 11, 12, 13, 14, 15, 23, 24, 26, 27, 33, 34, 11, 12, 13, 14,
39, 0, 43, 6, 37, 0, 44, 22, 38, 45, 15, 39, 0, 43, 6, 37, 0, 44, 22, 38,
0, 0, 130, 68, 69, 0, 58, 0, 18, 19, 45, 0, 0, 131, 69, 70, 0, 59, 0, 18,
0, 131, 67, 25, 42, 128, 0, 126, 22, 40, 19, 0, 132, 68, 25, 42, 129, 0, 127, 22,
0, 114, 0, 0, 110, 9, 17, 41, 94, 0, 40, 0, 115, 0, 0, 111, 9, 17, 41, 95,
0, 0, 0, 57, 59, 60, 16, 0, 66, 132, 0, 0, 0, 0, 58, 60, 61, 16, 0, 67,
102, 122, 72, 0, 0, 124, 0, 7, 113, 107, 133, 103, 123, 73, 0, 0, 125, 0, 7, 114,
77, 78, 0, 0, 0, 122, 76, 0, 115, 116, 108, 78, 79, 0, 0, 0, 123, 77, 0, 116,
120, 106, 0, 111, 131, 95, 56, 0, 94, 91, 117, 121, 107, 0, 112, 132, 96, 57, 0, 95,
93, 35, 0, 74, 73, 61, 20, 103, 0, 0, 92, 94, 35, 0, 75, 74, 62, 20, 104, 0,
85, 88, 89, 129, 125, 127, 119, 0, 77, 0, 0, 86, 89, 90, 130, 126, 128, 120, 0, 78,
121, 75, 118, 81, 0, 112, 0, 0, 96, 0, 0, 122, 76, 119, 82, 0, 113, 0, 0, 97,
92, 99, 0, 133, 123, 0, 21, 104, 71, 70, 0, 93, 100, 0, 134, 124, 0, 21, 105, 72,
84, 0, 83, 82, 0, 0, 117, 101, 100, 0, 71, 85, 0, 84, 83, 0, 0, 118, 102, 101,
0, 105, 86, 90, 80, 79, 98, 97 0, 0, 106, 87, 91, 81, 80, 99, 98
}; };
/* YYDEFGOTO[NTERM-NUM]. */ /* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] = static const yytype_int16 yydefgoto[] =
{ {
-1, 1, 2, 3, 36, 78, 57, 37, 67, 68, -1, 1, 2, 3, 37, 79, 58, 38, 68, 69,
69, 81, 39, 40, 41, 42, 43, 70, 93, 94, 70, 82, 40, 41, 42, 43, 44, 71, 94, 95,
44, 124, 72, 115, 116, 139, 140, 141, 142, 129, 45, 125, 73, 116, 117, 140, 141, 142, 143, 130,
130, 45, 166, 167, 56, 82, 83, 84, 117, 118, 131, 46, 167, 168, 57, 83, 84, 85, 118, 119,
119, 120, 137, 52, 76, 77, 46, 101, 47 120, 121, 138, 53, 77, 78, 47, 102, 48
}; };
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */ STATE-NUM. */
#define YYPACT_NINF -92 #define YYPACT_NINF -111
static const yytype_int16 yypact[] = static const yytype_int16 yypact[] =
{ {
-92, 19, -92, 208, -92, -92, 39, -92, -92, -92, -111, 13, -111, 210, -111, -111, 28, -111, -111, -111,
-92, -92, -27, -92, 23, -92, -92, -92, -92, -92, -111, -111, -27, -111, 44, -111, -111, -111, -111, -111,
-92, -92, -92, -92, -22, -92, 9, -92, -92, -92, -111, -111, -111, -111, -24, -111, -20, -111, -111, -111,
-6, 16, 25, -92, -92, -92, -92, -92, 31, 473, 31, -111, 32, 42, -111, -111, -111, -111, -111, 34,
-92, -92, -92, -92, -92, -92, -92, -92, -92, -92, 481, -111, -111, -111, -111, -111, -111, -111, -111, -111,
49, 37, -92, -92, 51, 108, -92, 473, 51, -92, -111, 51, 56, -111, -111, 52, 108, -111, 481, 52,
473, 59, -92, -92, -92, 12, -3, 60, 57, -92, -111, 481, 58, -111, -111, -111, 19, 0, 54, 55,
31, -7, 24, -92, -92, 55, 42, -92, 473, -92, -111, 34, 30, -18, -111, -111, 68, -25, -111, 481,
46, -21, 61, 158, -92, -92, 31, -92, 389, 71, -111, 45, 33, 59, 159, -111, -111, 34, -111, 395,
82, 88, 89, -92, -3, -92, -92, 31, -92, -92, 57, 60, 81, 88, -111, 0, -111, -111, 34, -111,
-92, -92, -92, 254, 73, -92, -24, -92, -92, -92, -111, -111, -111, -111, 257, 72, -111, -23, -111, -111,
90, -92, 17, 75, 45, -92, 32, 96, 95, -92, -111, 85, -111, 20, 106, 47, -111, -10, 97, 96,
-92, -92, 99, -92, 115, -92, -92, 3, 48, -92, -111, -111, -111, 99, -111, 115, -111, -111, 5, 50,
34, -92, 102, -92, -92, -92, -92, -11, 100, 103, -111, 11, -111, 102, -111, -111, -111, -111, -22, 100,
111, 104, -92, -92, -92, -92, -92, 106, -92, 113, 103, 111, 104, -111, -111, -111, -111, -111, 113, -111,
-92, -92, 126, -92, 299, -92, -21, 121, -92, 132, 121, -111, -111, 124, -111, 303, -111, 33, 132, -111,
-92, -92, 344, -92, -92, 125, -92, -92, -92, -92, 139, -111, -111, 349, -111, -111, 122, -111, -111, -111,
-92, 435, -92, -92, 138, 139, -92, -92, -92, 142, -111, -111, 442, -111, -111, 140, 143, -111, -111, -111,
143, -92, -92, -92, -92, -92, -92, -92 144, 145, -111, -111, -111, -111, -111, -111, -111
}; };
/* YYPGOTO[NTERM-NUM]. */ /* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] = static const yytype_int16 yypgoto[] =
{ {
-92, -92, 192, -92, -92, -92, -92, -47, -92, -92, -111, -111, 160, -111, -111, -111, -111, -51, -111, -111,
97, 0, -60, -32, -92, -92, -92, -79, -92, -92, 98, -1, -61, -37, -111, -111, -111, -78, -111, -111,
-58, -26, -92, -38, -92, -91, -92, -92, -59, -28, -53, -30, -111, -66, -111, -110, -111, -111, -60, -63,
-92, -92, -92, -92, -20, -92, -92, 112, -92, -92, -111, -111, -111, -111, -21, -111, -111, 116, -111, -111,
41, 91, 83, 149, -92, 101, -92, -92, -92 40, 90, 83, 152, -111, 105, -111, -111, -111
}; };
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which positive, shift that token. If negative, reduce the rule which
number is the opposite. If YYTABLE_NINF, syntax error. */ number is the opposite. If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -110 #define YYTABLE_NINF -111
static const yytype_int16 yytable[] = static const yytype_int16 yytable[] =
{ {
88, 89, 114, 38, 157, 10, 59, 73, 95, 128, 89, 90, 39, 74, 115, 60, 158, 86, 10, 72,
85, 50, 71, 91, 75, 20, 54, 110, 147, 4, 165, 129, 51, 4, 96, 55, 76, 103, 20, 59,
164, 111, 144, 99, 29, 51, 100, 112, 33, 66, 92, 148, 106, 107, 145, 154, 52, 29, 108, 56,
55, 107, 113, 114, 79, 114, 135, -94, 87, 92, 166, 104, 34, 56, 80, 115, 93, 115, 88, 155,
165, 125, 60, 88, 98, 158, 53, 58, 128, 128, -95, 99, 136, 89, 126, 176, 162, 150, 159, 152,
63, 127, -94, 66, 64, 148, 73, 86, 102, 111, 129, 129, 74, 181, 128, -95, 67, 87, 64, 149,
65, 55, 66, 175, 61, 112, 153, 66, 161, 63, 163, 100, 65, 112, 101, 160, 161, 54, 66, 113,
62, 180, 103, 64, 149, 75, 151, 114, 86, 65, 67, 67, 111, 64, 49, 50, 112, 65, 87, 115,
154, 66, 162, 148, 48, 49, 125, 111, 105, 106, 61, 62, 113, 66, 67, 67, 149, 114, 63, 126,
158, 108, 109, 112, 88, 66, 127, 90, 66, 159, 112, 109, 110, 159, 89, 76, 113, 91, 67, 128,
160, 51, 88, 55, 97, 96, 104, 121, 143, 80, 97, 67, 89, 98, 52, 56, 122, 132, 144, 81,
150, 88, 183, 7, 8, 9, 10, 11, 12, 13, 133, 89, 184, 7, 8, 9, 10, 11, 12, 13,
131, 15, 16, 17, 18, 19, 20, 21, 22, 23, 105, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 132, 26, 27, 28, 29, 30, 133, 134, 33, 24, 134, 26, 27, 28, 29, 30, 31, 135, 114,
34, 155, 156, 113, 108, 99, -22, 163, 170, 168, 34, 35, 151, 156, 157, 109, 100, -22, 164, 171,
35, 171, 169, -22, -108, 172, -22, 164, -22, 122, 169, 36, 172, 170, -22, -109, 165, -22, 182, -22,
181, -22, 173, 7, 8, 9, 10, 11, 12, 13, 123, 5, -22, 173, 7, 8, 9, 10, 11, 12,
177, 15, 16, 17, 18, 19, 20, 21, 22, 23, 13, 174, 15, 16, 17, 18, 19, 20, 21, 22,
24, 178, 26, 27, 28, 29, 30, 184, 185, 33, 23, 24, 178, 26, 27, 28, 29, 30, 31, 179,
34, 186, 187, 5, 136, 123, -22, 176, 152, 74, 185, 34, 35, 186, 187, 188, 137, 177, -22, 153,
35, 146, 0, -22, -109, 0, -22, 145, -22, 6, 124, 147, 36, 75, 0, -22, -110, 0, -22, 0,
0, -22, 0, 7, 8, 9, 10, 11, 12, 13, -22, 6, 146, -22, 0, 7, 8, 9, 10, 11,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
34, 0, 0, 0, 0, 0, -22, 0, 0, 0, 32, 33, 34, 35, 0, 0, 0, 0, 0, -22,
35, 0, 0, -22, 0, 138, -22, 0, -22, 7, 0, 0, 0, 36, 0, 0, -22, 0, 139, -22,
8, 9, 10, 11, 12, 13, 0, 15, 16, 17, 0, -22, 7, 8, 9, 10, 11, 12, 13, 0,
18, 19, 20, 21, 22, 23, 24, 0, 26, 27, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
28, 29, 30, 0, 0, 33, 34, 0, 0, 0, 0, 26, 27, 28, 29, 30, 31, 0, 0, 34,
0, -87, 0, 0, 0, 0, 35, 0, 0, 0, 35, 0, 0, 0, 0, -88, 0, 0, 0, 0,
174, 0, 0, -87, 7, 8, 9, 10, 11, 12, 36, 0, 0, 0, 175, 0, 0, -88, 7, 8,
13, 0, 15, 16, 17, 18, 19, 20, 21, 22, 9, 10, 11, 12, 13, 0, 15, 16, 17, 18,
23, 24, 0, 26, 27, 28, 29, 30, 0, 0, 19, 20, 21, 22, 23, 24, 0, 26, 27, 28,
33, 34, 0, 0, 0, 0, -87, 0, 0, 0, 29, 30, 31, 0, 0, 34, 35, 0, 0, 0,
0, 35, 0, 0, 0, 179, 0, 0, -87, 7, 0, -88, 0, 0, 0, 0, 36, 0, 0, 0,
8, 9, 10, 11, 12, 13, 0, 15, 16, 17, 180, 0, 0, -88, 7, 8, 9, 10, 11, 12,
18, 19, 20, 21, 22, 23, 24, 0, 26, 27,
28, 29, 30, 0, 0, 33, 34, 0, 0, 0,
0, -87, 0, 0, 0, 0, 35, 0, 0, 0,
0, 0, 0, -87, 7, 8, 9, 10, 11, 12,
13, 0, 15, 16, 17, 18, 19, 20, 21, 22, 13, 0, 15, 16, 17, 18, 19, 20, 21, 22,
23, 24, 0, 26, 27, 28, 29, 30, 0, 0, 23, 24, 0, 26, 27, 28, 29, 30, 31, 0,
33, 34, 0, 0, 0, 0, 0, 125, 0, 0, 0, 34, 35, 0, 0, 0, 0, -88, 0, 0,
0, 126, 0, 0, 0, 0, 0, 127, 0, 66, 0, 0, 36, 0, 0, 0, 0, 0, 0, -88,
7, 8, 9, 10, 11, 12, 13, 0, 15, 16, 7, 8, 9, 10, 11, 12, 13, 0, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 0, 26, 17, 18, 19, 20, 21, 22, 23, 24, 0, 26,
27, 28, 29, 30, 0, 0, 33, 34, 0, 0, 27, 28, 29, 30, 31, 0, 0, 34, 35, 0,
0, 0, 182, 0, 0, 0, 0, 35, 7, 8, 0, 0, 0, 0, 126, 0, 0, 0, 127, 0,
9, 10, 11, 12, 13, 0, 15, 16, 17, 18, 0, 0, 0, 0, 128, 0, 67, 7, 8, 9,
19, 20, 21, 22, 23, 24, 0, 26, 27, 28, 10, 11, 12, 13, 0, 15, 16, 17, 18, 19,
29, 30, 0, 0, 33, 34, 0, 0, 0, 0, 20, 21, 22, 23, 24, 0, 26, 27, 28, 29,
0, 0, 0, 0, 0, 35 30, 31, 0, 0, 34, 35, 0, 0, 0, 0,
183, 0, 0, 0, 0, 36, 7, 8, 9, 10,
11, 12, 13, 0, 15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 0, 26, 27, 28, 29, 30,
31, 0, 0, 34, 35, 0, 0, 0, 0, 0,
0, 0, 0, 0, 36
}; };
#define yypact_value_is_default(Yystate) \ #define yypact_value_is_default(Yystate) \
(!!((Yystate) == (-92))) (!!((Yystate) == (-111)))
#define yytable_value_is_error(Yytable_value) \ #define yytable_value_is_error(Yytable_value) \
YYID (0) YYID (0)
static const yytype_int16 yycheck[] = static const yytype_int16 yycheck[] =
{ {
60, 60, 81, 3, 1, 8, 26, 39, 66, 88, 61, 61, 3, 40, 82, 26, 1, 58, 8, 39,
57, 38, 38, 1, 38, 18, 38, 38, 1, 0, 32, 89, 39, 0, 67, 39, 39, 35, 18, 39,
31, 42, 46, 30, 27, 52, 33, 48, 31, 50, 1, 1, 47, 48, 47, 35, 53, 27, 79, 53,
52, 78, 53, 112, 54, 114, 94, 34, 58, 65, 52, 49, 32, 53, 55, 113, 66, 115, 59, 49,
51, 38, 48, 103, 70, 42, 23, 38, 127, 128, 35, 71, 95, 104, 39, 155, 35, 113, 43, 115,
38, 48, 49, 50, 42, 38, 88, 57, 34, 42, 128, 129, 89, 163, 49, 50, 51, 58, 39, 39,
48, 52, 50, 154, 48, 48, 34, 50, 34, 38, 49, 31, 43, 43, 34, 128, 129, 23, 49, 49,
45, 162, 48, 42, 112, 38, 114, 156, 78, 48, 51, 51, 39, 39, 46, 47, 43, 43, 79, 157,
48, 50, 48, 38, 45, 46, 38, 42, 46, 47, 49, 49, 49, 49, 51, 51, 39, 54, 46, 39,
42, 45, 46, 48, 154, 50, 48, 38, 50, 127, 43, 46, 47, 43, 155, 39, 49, 39, 51, 49,
128, 52, 162, 52, 47, 45, 51, 46, 35, 1, 46, 51, 163, 48, 53, 53, 47, 50, 36, 1,
35, 171, 171, 5, 6, 7, 8, 9, 10, 11, 50, 172, 172, 5, 6, 7, 8, 9, 10, 11,
49, 13, 14, 15, 16, 17, 18, 19, 20, 21, 52, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 49, 24, 25, 26, 27, 28, 49, 49, 31, 22, 50, 24, 25, 26, 27, 28, 29, 50, 54,
32, 45, 47, 53, 45, 30, 38, 45, 37, 49, 32, 33, 36, 46, 48, 46, 31, 39, 46, 38,
42, 47, 49, 45, 46, 49, 48, 31, 50, 1, 50, 43, 48, 50, 46, 47, 32, 49, 36, 51,
35, 53, 49, 5, 6, 7, 8, 9, 10, 11, 1, 1, 54, 50, 5, 6, 7, 8, 9, 10,
49, 13, 14, 15, 16, 17, 18, 19, 20, 21, 11, 50, 13, 14, 15, 16, 17, 18, 19, 20,
22, 49, 24, 25, 26, 27, 28, 49, 49, 31, 21, 22, 50, 24, 25, 26, 27, 28, 29, 50,
32, 49, 49, 1, 97, 83, 38, 156, 115, 50, 50, 32, 33, 50, 50, 50, 98, 157, 39, 116,
42, 110, -1, 45, 46, -1, 48, 106, 50, 1, 84, 111, 43, 51, -1, 46, 47, -1, 49, -1,
-1, 53, -1, 5, 6, 7, 8, 9, 10, 11, 51, 1, 107, 54, -1, 5, 6, 7, 8, 9,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
32, -1, -1, -1, -1, -1, 38, -1, -1, -1, 30, 31, 32, 33, -1, -1, -1, -1, -1, 39,
42, -1, -1, 45, -1, 1, 48, -1, 50, 5, -1, -1, -1, 43, -1, -1, 46, -1, 1, 49,
6, 7, 8, 9, 10, 11, -1, 13, 14, 15, -1, 51, 5, 6, 7, 8, 9, 10, 11, -1,
16, 17, 18, 19, 20, 21, 22, -1, 24, 25, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
26, 27, 28, -1, -1, 31, 32, -1, -1, -1, -1, 24, 25, 26, 27, 28, 29, -1, -1, 32,
-1, 37, -1, -1, -1, -1, 42, -1, -1, -1, 33, -1, -1, -1, -1, 38, -1, -1, -1, -1,
1, -1, -1, 49, 5, 6, 7, 8, 9, 10, 43, -1, -1, -1, 1, -1, -1, 50, 5, 6,
11, -1, 13, 14, 15, 16, 17, 18, 19, 20, 7, 8, 9, 10, 11, -1, 13, 14, 15, 16,
21, 22, -1, 24, 25, 26, 27, 28, -1, -1, 17, 18, 19, 20, 21, 22, -1, 24, 25, 26,
31, 32, -1, -1, -1, -1, 37, -1, -1, -1, 27, 28, 29, -1, -1, 32, 33, -1, -1, -1,
-1, 42, -1, -1, -1, 1, -1, -1, 49, 5, -1, 38, -1, -1, -1, -1, 43, -1, -1, -1,
6, 7, 8, 9, 10, 11, -1, 13, 14, 15, 1, -1, -1, 50, 5, 6, 7, 8, 9, 10,
16, 17, 18, 19, 20, 21, 22, -1, 24, 25,
26, 27, 28, -1, -1, 31, 32, -1, -1, -1,
-1, 37, -1, -1, -1, -1, 42, -1, -1, -1,
-1, -1, -1, 49, 5, 6, 7, 8, 9, 10,
11, -1, 13, 14, 15, 16, 17, 18, 19, 20, 11, -1, 13, 14, 15, 16, 17, 18, 19, 20,
21, 22, -1, 24, 25, 26, 27, 28, -1, -1, 21, 22, -1, 24, 25, 26, 27, 28, 29, -1,
31, 32, -1, -1, -1, -1, -1, 38, -1, -1, -1, 32, 33, -1, -1, -1, -1, 38, -1, -1,
-1, 42, -1, -1, -1, -1, -1, 48, -1, 50, -1, -1, 43, -1, -1, -1, -1, -1, -1, 50,
5, 6, 7, 8, 9, 10, 11, -1, 13, 14, 5, 6, 7, 8, 9, 10, 11, -1, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, -1, 24, 15, 16, 17, 18, 19, 20, 21, 22, -1, 24,
25, 26, 27, 28, -1, -1, 31, 32, -1, -1, 25, 26, 27, 28, 29, -1, -1, 32, 33, -1,
-1, -1, 37, -1, -1, -1, -1, 42, 5, 6, -1, -1, -1, -1, 39, -1, -1, -1, 43, -1,
7, 8, 9, 10, 11, -1, 13, 14, 15, 16, -1, -1, -1, -1, 49, -1, 51, 5, 6, 7,
17, 18, 19, 20, 21, 22, -1, 24, 25, 26, 8, 9, 10, 11, -1, 13, 14, 15, 16, 17,
27, 28, -1, -1, 31, 32, -1, -1, -1, -1, 18, 19, 20, 21, 22, -1, 24, 25, 26, 27,
-1, -1, -1, -1, -1, 42 28, 29, -1, -1, 32, 33, -1, -1, -1, -1,
38, -1, -1, -1, -1, 43, 5, 6, 7, 8,
9, 10, 11, -1, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, -1, 24, 25, 26, 27, 28,
29, -1, -1, 32, 33, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 43
}; };
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */ symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] = static const yytype_uint8 yystos[] =
{ {
0, 55, 56, 57, 0, 56, 1, 5, 6, 7, 0, 56, 57, 58, 0, 57, 1, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 42, 58, 61, 65, 66, 28, 29, 30, 31, 32, 33, 43, 59, 62, 66,
67, 68, 69, 70, 74, 85, 100, 102, 45, 46, 67, 68, 69, 70, 71, 75, 86, 101, 103, 46,
38, 52, 97, 23, 38, 52, 88, 60, 38, 88, 47, 39, 53, 98, 23, 39, 53, 89, 61, 39,
48, 48, 45, 38, 42, 48, 50, 62, 63, 64, 89, 49, 49, 46, 39, 43, 49, 51, 63, 64,
71, 75, 76, 67, 97, 38, 98, 99, 59, 88, 65, 72, 76, 77, 68, 98, 39, 99, 100, 60,
1, 65, 89, 90, 91, 61, 65, 88, 66, 82, 89, 1, 66, 90, 91, 92, 62, 66, 89, 67,
38, 1, 75, 72, 73, 74, 45, 47, 75, 30, 83, 39, 1, 76, 73, 74, 75, 46, 48, 76,
33, 101, 34, 48, 51, 46, 47, 61, 45, 46, 31, 34, 102, 35, 49, 52, 47, 48, 62, 46,
38, 42, 48, 53, 71, 77, 78, 92, 93, 94, 47, 39, 43, 49, 54, 72, 78, 79, 93, 94,
95, 46, 1, 91, 75, 38, 42, 48, 71, 83, 95, 96, 47, 1, 92, 76, 39, 43, 49, 72,
84, 49, 49, 49, 49, 74, 64, 96, 1, 79, 84, 85, 50, 50, 50, 50, 75, 65, 97, 1,
80, 81, 82, 35, 46, 99, 95, 1, 38, 77, 80, 81, 82, 83, 36, 47, 100, 96, 1, 39,
35, 77, 96, 34, 48, 45, 47, 1, 42, 83, 78, 36, 78, 97, 35, 49, 46, 48, 1, 43,
83, 34, 48, 45, 31, 51, 86, 87, 49, 49, 84, 84, 35, 49, 46, 32, 52, 87, 88, 50,
37, 47, 49, 49, 1, 79, 94, 49, 49, 1, 50, 38, 48, 50, 50, 1, 80, 95, 50, 50,
79, 35, 37, 82, 49, 49, 49, 49 1, 80, 36, 38, 83, 50, 50, 50, 50
}; };
#define yyerrok (yyerrstatus = 0) #define yyerrok (yyerrstatus = 0)
...@@ -1845,27 +1849,27 @@ yyreduce: ...@@ -1845,27 +1849,27 @@ yyreduce:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 56: case 57:
{ (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); } { (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); }
break; break;
case 57: case 58:
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); }
break; break;
case 58: case 59:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 61: case 62:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 65: case 66:
{ /* restrict has no effect in prototypes so ignore it */ { /* restrict has no effect in prototypes so ignore it */
remove_node((yyvsp[(1) - (1)])); remove_node((yyvsp[(1) - (1)]));
...@@ -1873,12 +1877,12 @@ yyreduce: ...@@ -1873,12 +1877,12 @@ yyreduce:
} }
break; break;
case 66: case 67:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 68: case 69:
{ if (current_name != NULL) { { if (current_name != NULL) {
error_with_pos("unexpected second declaration name"); error_with_pos("unexpected second declaration name");
...@@ -1890,7 +1894,7 @@ yyreduce: ...@@ -1890,7 +1894,7 @@ yyreduce:
} }
break; break;
case 69: case 70:
{ if (current_name != NULL) { { if (current_name != NULL) {
error_with_pos("unexpected second declaration name"); error_with_pos("unexpected second declaration name");
...@@ -1902,11 +1906,6 @@ yyreduce: ...@@ -1902,11 +1906,6 @@ yyreduce:
} }
break; break;
case 70:
{ (yyval) = (yyvsp[(4) - (4)]); }
break;
case 71: case 71:
{ (yyval) = (yyvsp[(4) - (4)]); } { (yyval) = (yyvsp[(4) - (4)]); }
...@@ -1914,12 +1913,12 @@ yyreduce: ...@@ -1914,12 +1913,12 @@ yyreduce:
case 72: case 72:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(4) - (4)]); }
break; break;
case 73: case 73:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 74: case 74:
...@@ -1929,12 +1928,12 @@ yyreduce: ...@@ -1929,12 +1928,12 @@ yyreduce:
case 75: case 75:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 79: case 76:
{ (yyval) = (yyvsp[(4) - (4)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 80: case 80:
...@@ -1944,12 +1943,12 @@ yyreduce: ...@@ -1944,12 +1943,12 @@ yyreduce:
case 81: case 81:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(4) - (4)]); }
break; break;
case 82: case 82:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 83: case 83:
...@@ -1959,40 +1958,45 @@ yyreduce: ...@@ -1959,40 +1958,45 @@ yyreduce:
case 84: case 84:
{ (yyval) = (yyvsp[(3) - (3)]); }
break;
case 85:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 86: case 87:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 87: case 88:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 90: case 91:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 91: case 92:
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); }
break; break;
case 92: case 93:
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); }
break; break;
case 94: case 95:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 95: case 96:
{ /* For version 2 checksums, we don't want to remember { /* For version 2 checksums, we don't want to remember
private parameter names. */ private parameter names. */
...@@ -2001,39 +2005,39 @@ yyreduce: ...@@ -2001,39 +2005,39 @@ yyreduce:
} }
break; break;
case 96: case 97:
{ remove_node((yyvsp[(1) - (1)])); { remove_node((yyvsp[(1) - (1)]));
(yyval) = (yyvsp[(1) - (1)]); (yyval) = (yyvsp[(1) - (1)]);
} }
break; break;
case 97: case 98:
{ (yyval) = (yyvsp[(4) - (4)]); } { (yyval) = (yyvsp[(4) - (4)]); }
break; break;
case 98: case 99:
{ (yyval) = (yyvsp[(4) - (4)]); } { (yyval) = (yyvsp[(4) - (4)]); }
break; break;
case 99: case 100:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 100: case 101:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 101: case 102:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 102: case 103:
{ struct string_list *decl = *(yyvsp[(2) - (3)]); { struct string_list *decl = *(yyvsp[(2) - (3)]);
*(yyvsp[(2) - (3)]) = NULL; *(yyvsp[(2) - (3)]) = NULL;
...@@ -2042,87 +2046,87 @@ yyreduce: ...@@ -2042,87 +2046,87 @@ yyreduce:
} }
break; break;
case 103: case 104:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 105: case 106:
{ remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); } { remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 106: case 107:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 107: case 108:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 108: case 109:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 111: case 112:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 112: case 113:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 113: case 114:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 114: case 115:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 117: case 118:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 118: case 119:
{ (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); }
break; break;
case 119: case 120:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 121: case 122:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 122: case 123:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 124: case 125:
{ (yyval) = (yyvsp[(3) - (3)]); } { (yyval) = (yyvsp[(3) - (3)]); }
break; break;
case 125: case 126:
{ (yyval) = (yyvsp[(4) - (4)]); } { (yyval) = (yyvsp[(4) - (4)]); }
break; break;
case 128: case 129:
{ {
const char *name = strdup((*(yyvsp[(1) - (1)]))->string); const char *name = strdup((*(yyvsp[(1) - (1)]))->string);
...@@ -2130,7 +2134,7 @@ yyreduce: ...@@ -2130,7 +2134,7 @@ yyreduce:
} }
break; break;
case 129: case 130:
{ {
const char *name = strdup((*(yyvsp[(1) - (3)]))->string); const char *name = strdup((*(yyvsp[(1) - (3)]))->string);
...@@ -2139,17 +2143,17 @@ yyreduce: ...@@ -2139,17 +2143,17 @@ yyreduce:
} }
break; break;
case 130: case 131:
{ (yyval) = (yyvsp[(2) - (2)]); } { (yyval) = (yyvsp[(2) - (2)]); }
break; break;
case 131: case 132:
{ (yyval) = NULL; } { (yyval) = NULL; }
break; break;
case 133: case 134:
{ export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); } { export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); }
break; break;
......
...@@ -72,22 +72,23 @@ extern int yydebug; ...@@ -72,22 +72,23 @@ extern int yydebug;
VOID_KEYW = 281, VOID_KEYW = 281,
VOLATILE_KEYW = 282, VOLATILE_KEYW = 282,
TYPEOF_KEYW = 283, TYPEOF_KEYW = 283,
EXPORT_SYMBOL_KEYW = 284, VA_LIST_KEYW = 284,
ASM_PHRASE = 285, EXPORT_SYMBOL_KEYW = 285,
ATTRIBUTE_PHRASE = 286, ASM_PHRASE = 286,
TYPEOF_PHRASE = 287, ATTRIBUTE_PHRASE = 287,
BRACE_PHRASE = 288, TYPEOF_PHRASE = 288,
BRACKET_PHRASE = 289, BRACE_PHRASE = 289,
EXPRESSION_PHRASE = 290, BRACKET_PHRASE = 290,
CHAR = 291, EXPRESSION_PHRASE = 291,
DOTS = 292, CHAR = 292,
IDENT = 293, DOTS = 293,
INT = 294, IDENT = 294,
REAL = 295, INT = 295,
STRING = 296, REAL = 296,
TYPE = 297, STRING = 297,
OTHER = 298, TYPE = 298,
FILENAME = 299 OTHER = 299,
FILENAME = 300
}; };
#endif #endif
......
...@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw, ...@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw,
%token VOID_KEYW %token VOID_KEYW
%token VOLATILE_KEYW %token VOLATILE_KEYW
%token TYPEOF_KEYW %token TYPEOF_KEYW
%token VA_LIST_KEYW
%token EXPORT_SYMBOL_KEYW %token EXPORT_SYMBOL_KEYW
...@@ -261,6 +262,7 @@ simple_type_specifier: ...@@ -261,6 +262,7 @@ simple_type_specifier:
| DOUBLE_KEYW | DOUBLE_KEYW
| VOID_KEYW | VOID_KEYW
| BOOL_KEYW | BOOL_KEYW
| VA_LIST_KEYW
| TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; } | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; }
; ;
......
...@@ -76,7 +76,6 @@ static void usage(void) ...@@ -76,7 +76,6 @@ static void usage(void)
{ {
fprintf(stderr, "Usage: kallsyms [--all-symbols] " fprintf(stderr, "Usage: kallsyms [--all-symbols] "
"[--symbol-prefix=<prefix char>] " "[--symbol-prefix=<prefix char>] "
"[--page-offset=<CONFIG_PAGE_OFFSET>] "
"[--base-relative] < in.map > out.S\n"); "[--base-relative] < in.map > out.S\n");
exit(1); exit(1);
} }
......
...@@ -209,15 +209,6 @@ case "${KCONFIG_CONFIG}" in ...@@ -209,15 +209,6 @@ case "${KCONFIG_CONFIG}" in
. "./${KCONFIG_CONFIG}" . "./${KCONFIG_CONFIG}"
esac esac
archive_builtin
#link vmlinux.o
info LD vmlinux.o
modpost_link vmlinux.o
# modpost vmlinux.o to check for section mismatches
${MAKE} -f "${srctree}/scripts/Makefile.modpost" vmlinux.o
# Update version # Update version
info GEN .version info GEN .version
if [ ! -r .version ]; then if [ ! -r .version ]; then
...@@ -231,6 +222,15 @@ fi; ...@@ -231,6 +222,15 @@ fi;
# final build of init/ # final build of init/
${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init GCC_PLUGINS_CFLAGS="${GCC_PLUGINS_CFLAGS}" ${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init GCC_PLUGINS_CFLAGS="${GCC_PLUGINS_CFLAGS}"
archive_builtin
#link vmlinux.o
info LD vmlinux.o
modpost_link vmlinux.o
# modpost vmlinux.o to check for section mismatches
${MAKE} -f "${srctree}/scripts/Makefile.modpost" vmlinux.o
kallsymso="" kallsymso=""
kallsyms_vmlinux="" kallsyms_vmlinux=""
if [ -n "${CONFIG_KALLSYMS}" ]; then if [ -n "${CONFIG_KALLSYMS}" ]; then
...@@ -246,10 +246,14 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then ...@@ -246,10 +246,14 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
# the right size, but due to the added section, some # the right size, but due to the added section, some
# addresses have shifted. # addresses have shifted.
# From here, we generate a correct .tmp_kallsyms2.o # From here, we generate a correct .tmp_kallsyms2.o
# 2a) We may use an extra pass as this has been necessary to # 3) That link may have expanded the kernel image enough that
# woraround some alignment related bugs. # more linker branch stubs / trampolines had to be added, which
# KALLSYMS_EXTRA_PASS=1 is used to trigger this. # introduces new names, which further expands kallsyms. Do another
# 3) The correct ${kallsymso} is linked into the final vmlinux. # pass if that is the case. In theory it's possible this results
# in even more stubs, but unlikely.
# KALLSYMS_EXTRA_PASS=1 may also used to debug or work around
# other bugs.
# 4) The correct ${kallsymso} is linked into the final vmlinux.
# #
# a) Verify that the System.map from vmlinux matches the map from # a) Verify that the System.map from vmlinux matches the map from
# ${kallsymso}. # ${kallsymso}.
...@@ -265,8 +269,11 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then ...@@ -265,8 +269,11 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
vmlinux_link .tmp_kallsyms1.o .tmp_vmlinux2 vmlinux_link .tmp_kallsyms1.o .tmp_vmlinux2
kallsyms .tmp_vmlinux2 .tmp_kallsyms2.o kallsyms .tmp_vmlinux2 .tmp_kallsyms2.o
# step 2a # step 3
if [ -n "${KALLSYMS_EXTRA_PASS}" ]; then size1=$(stat -c "%s" .tmp_kallsyms1.o)
size2=$(stat -c "%s" .tmp_kallsyms2.o)
if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then
kallsymso=.tmp_kallsyms3.o kallsymso=.tmp_kallsyms3.o
kallsyms_vmlinux=.tmp_vmlinux3 kallsyms_vmlinux=.tmp_vmlinux3
......
...@@ -609,6 +609,7 @@ static void handle_modversions(struct module *mod, struct elf_info *info, ...@@ -609,6 +609,7 @@ static void handle_modversions(struct module *mod, struct elf_info *info,
{ {
unsigned int crc; unsigned int crc;
enum export export; enum export export;
bool is_crc = false;
if ((!is_vmlinux(mod->name) || mod->is_dot_o) && if ((!is_vmlinux(mod->name) || mod->is_dot_o) &&
strncmp(symname, "__ksymtab", 9) == 0) strncmp(symname, "__ksymtab", 9) == 0)
...@@ -618,6 +619,7 @@ static void handle_modversions(struct module *mod, struct elf_info *info, ...@@ -618,6 +619,7 @@ static void handle_modversions(struct module *mod, struct elf_info *info,
/* CRC'd symbol */ /* CRC'd symbol */
if (strncmp(symname, CRC_PFX, strlen(CRC_PFX)) == 0) { if (strncmp(symname, CRC_PFX, strlen(CRC_PFX)) == 0) {
is_crc = true;
crc = (unsigned int) sym->st_value; crc = (unsigned int) sym->st_value;
sym_update_crc(symname + strlen(CRC_PFX), mod, crc, sym_update_crc(symname + strlen(CRC_PFX), mod, crc,
export); export);
...@@ -663,6 +665,10 @@ static void handle_modversions(struct module *mod, struct elf_info *info, ...@@ -663,6 +665,10 @@ static void handle_modversions(struct module *mod, struct elf_info *info,
else else
symname++; symname++;
#endif #endif
if (is_crc) {
const char *e = is_vmlinux(mod->name) ?"":".ko";
warn("EXPORT symbol \"%s\" [%s%s] version generation failed, symbol will not be versioned.\n", symname + strlen(CRC_PFX), mod->name, e);
}
mod->unres = alloc_symbol(symname, mod->unres = alloc_symbol(symname,
ELF_ST_BIND(sym->st_info) == STB_WEAK, ELF_ST_BIND(sym->st_info) == STB_WEAK,
mod->unres); mod->unres);
......
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
endif endif
......
...@@ -3,7 +3,7 @@ include ../scripts/Makefile.include ...@@ -3,7 +3,7 @@ include ../scripts/Makefile.include
bindir ?= /usr/bin bindir ?= /usr/bin
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
endif endif
......
...@@ -2,7 +2,7 @@ include ../../scripts/Makefile.include ...@@ -2,7 +2,7 @@ include ../../scripts/Makefile.include
include ../../scripts/utilities.mak # QUIET_CLEAN include ../../scripts/utilities.mak # QUIET_CLEAN
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
......
...@@ -7,7 +7,7 @@ BPF_EXTRAVERSION = 1 ...@@ -7,7 +7,7 @@ BPF_EXTRAVERSION = 1
MAKEFLAGS += --no-print-directory MAKEFLAGS += --no-print-directory
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
......
...@@ -50,7 +50,7 @@ ifndef VERBOSE ...@@ -50,7 +50,7 @@ ifndef VERBOSE
endif endif
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
......
...@@ -2,7 +2,7 @@ include ../../scripts/Makefile.include ...@@ -2,7 +2,7 @@ include ../../scripts/Makefile.include
include ../../scripts/utilities.mak # QUIET_CLEAN include ../../scripts/utilities.mak # QUIET_CLEAN
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
......
...@@ -86,7 +86,7 @@ ifndef VERBOSE ...@@ -86,7 +86,7 @@ ifndef VERBOSE
endif endif
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
......
...@@ -11,12 +11,12 @@ LD = ld ...@@ -11,12 +11,12 @@ LD = ld
AR = ar AR = ar
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
endif endif
SUBCMD_SRCDIR = $(srctree)/tools/lib/subcmd/ SUBCMD_SRCDIR = $(srctree)/tools/lib/subcmd/
LIBSUBCMD_OUTPUT = $(if $(OUTPUT),$(OUTPUT),$(PWD)/) LIBSUBCMD_OUTPUT = $(if $(OUTPUT),$(OUTPUT),$(CURDIR)/)
LIBSUBCMD = $(LIBSUBCMD_OUTPUT)libsubcmd.a LIBSUBCMD = $(LIBSUBCMD_OUTPUT)libsubcmd.a
OBJTOOL := $(OUTPUT)objtool OBJTOOL := $(OUTPUT)objtool
......
...@@ -100,7 +100,7 @@ LC_NUMERIC=C ...@@ -100,7 +100,7 @@ LC_NUMERIC=C
export LC_COLLATE LC_NUMERIC export LC_COLLATE LC_NUMERIC
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
endif endif
......
...@@ -42,7 +42,7 @@ LC_NUMERIC=C ...@@ -42,7 +42,7 @@ LC_NUMERIC=C
export LC_COLLATE LC_NUMERIC export LC_COLLATE LC_NUMERIC
ifeq ($(srctree),) ifeq ($(srctree),)
srctree := $(patsubst %/,%,$(dir $(shell pwd))) srctree := $(patsubst %/,%,$(dir $(CURDIR)))
srctree := $(patsubst %/,%,$(dir $(srctree))) srctree := $(patsubst %/,%,$(dir $(srctree)))
#$(info Determined 'srctree' to be $(srctree)) #$(info Determined 'srctree' to be $(srctree))
endif endif
......
...@@ -108,9 +108,6 @@ MKDIR = mkdir ...@@ -108,9 +108,6 @@ MKDIR = mkdir
# Now we set up the build system # Now we set up the build system
# #
# set up PWD so that older versions of make will work with our build.
PWD = $(shell pwd)
GMO_FILES = ${shell for HLANG in ${LANGUAGES}; do echo $(OUTPUT)po/$$HLANG.gmo; done;} GMO_FILES = ${shell for HLANG in ${LANGUAGES}; do echo $(OUTPUT)po/$$HLANG.gmo; done;}
export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS
......
obj-m := obj-m :=
KDIR := /lib/modules/$(shell uname -r)/build KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/ KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/
ifeq ("$(CONFIG_X86_TSC)", "y") ifeq ("$(CONFIG_X86_TSC)", "y")
...@@ -9,7 +8,7 @@ ifeq ("$(CONFIG_X86_TSC)", "y") ...@@ -9,7 +8,7 @@ ifeq ("$(CONFIG_X86_TSC)", "y")
endif endif
default: default:
$(MAKE) -C $(KDIR) M=$(PWD) $(MAKE) -C $(KDIR) M=$(CURDIR)
clean: clean:
- rm -rf *.o *.ko .tmp-versions .*.cmd .*.mod.* *.mod.c - rm -rf *.o *.ko .tmp-versions .*.cmd .*.mod.* *.mod.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment