History

Do not fail with _Alignas(0) and _Alignas(1), used by autotools

Used by configure scripts, generated by newer GNU autotools Autotools now checks for C11 and C99 compatibbility -- bye bye Detlef

Detlef Riekenberg committed 4 years ago

Commit 746560d1 parent bc12ab01 file · +1 −1Browse files

Unified · Split

tccgen.c+1−1
@@ -4477,7 +4477,7 @@ static int parse_btype(CType *type, AttributeDef *ad) · 4476 unmodified lines
44774477 type_size(&type1, &n);
44784478 } else {
44794479 n = expr_const();
4480− if (n <= 0 || (n & (n - 1)) != 0)
4480+ if (n < 0 || ((n > 1) & ((n & (n - 1)) != 0)))
44814481 tcc_error("alignment must be a positive power of two");
44824482 }
44834483 skip(')');

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t