Skip to content

Commit 51bd8fb

Browse files
committed
Clear out unused ID_gcc_attribute
1 parent 8c8c6be commit 51bd8fb

File tree

3 files changed

+0
-42
lines changed

3 files changed

+0
-42
lines changed

src/ansi-c/ansi_c_convert_type.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ void ansi_c_convert_typet::read_rec(const typet &type)
116116
{
117117
gcc_attribute_mode=type;
118118
}
119-
else if(type.id()==ID_gcc_attribute)
120-
{
121-
}
122119
else if(type.id()==ID_msc_based)
123120
{
124121
const exprt &as_expr=static_cast<const exprt &>(static_cast<const irept &>(type));

src/ansi-c/parser.y

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,27 +1476,6 @@ aggregate_key:
14761476
| TOK_UNION
14771477
{ $$=$1; set($$, ID_union); }
14781478
;
1479-
1480-
gcc_attribute_expression_list:
1481-
assignment_expression
1482-
{
1483-
init($$, ID_expression_list);
1484-
mto($$, $1);
1485-
}
1486-
| gcc_attribute_expression_list ',' assignment_expression
1487-
{
1488-
$$=$1;
1489-
mto($$, $3);
1490-
}
1491-
;
1492-
1493-
gcc_attribute_expression_list_opt:
1494-
/* empty */
1495-
{
1496-
init($$, ID_expression_list);
1497-
}
1498-
| gcc_attribute_expression_list
1499-
;
15001479

15011480
gcc_type_attribute:
15021481
TOK_GCC_ATTRIBUTE_PACKED
@@ -1532,23 +1511,6 @@ gcc_attribute:
15321511
{
15331512
init($$);
15341513
}
1535-
| TOK_CONST
1536-
{
1537-
$$=$1;
1538-
stack($$).id(ID_gcc_attribute);
1539-
stack($$).set(ID_identifier, ID_const);
1540-
}
1541-
| identifier
1542-
{
1543-
$$=$1;
1544-
stack($$).id(ID_gcc_attribute);
1545-
}
1546-
| identifier '(' gcc_attribute_expression_list_opt ')'
1547-
{
1548-
$$=$1;
1549-
stack($$).id(ID_gcc_attribute);
1550-
stack($$).operands().swap(stack($3).operands());
1551-
}
15521514
| gcc_type_attribute
15531515
;
15541516

src/util/irep_ids.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,6 @@ explicit
529529
storage_spec
530530
member_spec
531531
msc_declspec
532-
gcc_attribute
533532
packed
534533
C_packed #packed
535534
transparent_union

0 commit comments

Comments
 (0)