aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index e761f91..805410b 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2462,6 +2462,10 @@ static void parse_attribute(AttributeDef *ad)
case TOK_PACKED2:
ad->packed = 1;
break;
+ case TOK_WEAK1:
+ case TOK_WEAK2:
+ ad->weak = 1;
+ break;
case TOK_UNUSED1:
case TOK_UNUSED2:
/* currently, no need to handle it because tcc does not