projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8183af7
)
Remove the unnecessary special case for __alignof__(function) from alignof_to_firm().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 5 May 2012 06:26:23 +0000
(08:26 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sat, 5 May 2012 21:09:54 +0000
(23:09 +0200)
Functions have the "right" alignment set.
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
b12ac8c
..
741954a
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-2962,12
+2962,7
@@
static ir_node *alignof_to_firm(const typeprop_expression_t *expression)
if (tp_expression != NULL) {
entity_t *entity = get_expression_entity(tp_expression);
if (entity != NULL) {
- if (entity->kind == ENTITY_FUNCTION) {
- /* a gnu-extension */
- alignment = 1;
- } else {
- alignment = get_cparser_entity_alignment(entity);
- }
+ alignment = get_cparser_entity_alignment(entity);
}
}