linux/arch/cris/arch-v10/kernel
Chen Gang c33fe44443 cris: arch-v10: kgdb: Add '__used' for static variable is_dyn_brkp
Within one C file, current gcc can optimize the global static variables
according to the C code, but it will skip assembly code -- it will pass
them to gas directly.

if the static variable is used between C code and assembly code in one C
file (e.g. is_dyn_brkp in kgdb.c), it needs '__used' to let gcc know it
should be still used, or gcc may remove it for optimization.

The related error in this case:

    LD      init/built-in.o
  arch/cris/arch-v10/kernel/built-in.o: In function `kgdb_handle_breakpoint':
  (.text+0x2aca): undefined reference to `is_dyn_brkp'
  arch/cris/arch-v10/kernel/built-in.o: In function `is_static':
  kgdb.c:(.text+0x2ada): undefined reference to `is_dyn_brkp'

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
2015-11-02 20:03:04 +01:00
..
crisksyms.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
debugport.c Drop code for CRISv10 CPU simulator 2014-01-15 14:44:02 +01:00
dma.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
entry.S CRIS: Wire up missing syscalls 2015-09-05 00:33:25 +02:00
fasttimer.c cris fasttimer: remove use of seq_printf return value 2015-04-15 16:35:25 -07:00
head.S Drop code for CRISv10 CPU simulator 2014-01-15 14:44:02 +01:00
io_interface_mux.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
irq.c Drop code for CRISv10 CPU simulator 2014-01-15 14:44:02 +01:00
kgdb.c cris: arch-v10: kgdb: Add '__used' for static variable is_dyn_brkp 2015-11-02 20:03:04 +01:00
Makefile Drop code for CRISv10 CPU simulator 2014-01-15 14:44:02 +01:00
process.c CRISv10: Readd missing header 2014-01-28 15:14:35 +01:00
ptrace.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
setup.c cris: remove use of seq_printf return value 2015-04-15 16:35:25 -07:00
shadows.c CRIS v10: Remove useless CVS id from kernel/shadows.c 2008-02-08 11:06:31 +01:00
signal.c arch: Remove exec_domain from remaining archs 2015-04-12 21:03:30 +02:00
time.c Drop code for CRISv10 CPU simulator 2014-01-15 14:44:02 +01:00
traps.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00