URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [weak/] [weak-16.c] - Rev 384
Compare with Previous | Blame | View Log
/* From PR37280. */ /* { dg-do compile } */ /* { dg-require-weak "" } */ /* { dg-options "-fno-common -Os" } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?kallsyms_token_index" } } */ /* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?kallsyms_token_table" } } */ extern int kallsyms_token_index[] __attribute__((weak)); extern int kallsyms_token_table[] __attribute__((weak)); void kallsyms_expand_symbol(int *result) { int len = *result; int *tptr; while(len) { tptr = &kallsyms_token_table[ kallsyms_token_index[*result] ]; len--; while (*tptr) tptr++; *tptr = 1; } *result = 0; }