Skip to content

Commit 29010eb

Browse files
marek-trtiktautschnig
authored andcommitted
Fixing "identifier XYZ not found" error.
1 parent a695814 commit 29010eb

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
static int __attribute__ ((__section__(".init.text"))) __attribute__((no_instrument_function)) dp83640_init(void) { return 0; }
2+
int init_module(void) __attribute__((alias("dp83640_init")));;
3+
4+
int main()
5+
{
6+
dp83640_init();
7+
return 0;
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^CONVERSION ERROR$

src/ansi-c/scanner.l

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,9 +1526,6 @@ __decltype { if(PARSER.cpp98 &&
15261526
"alias" |
15271527
"__alias__" { BEGIN(GCC_ATTRIBUTE3); loc(); return TOK_GCC_ATTRIBUTE_ALIAS; }
15281528

1529-
"section" |
1530-
"__section__" { BEGIN(GCC_ATTRIBUTE3); loc(); return TOK_GCC_ATTRIBUTE_SECTION; }
1531-
15321529
"noreturn" |
15331530
"__noreturn__" { BEGIN(GCC_ATTRIBUTE3); loc(); return TOK_GCC_ATTRIBUTE_NORETURN; }
15341531

0 commit comments

Comments
 (0)