Revert "allow c11 feature only when -std=c11 is use"
This reverts commit 756988e8f9
.
This commit is contained in:
parent
756988e8f9
commit
2b94c0c3b1
2 changed files with 1 additions and 11 deletions
5
tccgen.c
5
tccgen.c
|
@ -4890,9 +4890,6 @@ ST_FUNC void unary(void)
|
||||||
case TOK_ALIGNOF1:
|
case TOK_ALIGNOF1:
|
||||||
case TOK_ALIGNOF2:
|
case TOK_ALIGNOF2:
|
||||||
case TOK_ALIGNOF3:
|
case TOK_ALIGNOF3:
|
||||||
if (tcc_state->cversion != 201112 &&
|
|
||||||
tok == TOK_ALIGNOF3)
|
|
||||||
goto tok_identifier;
|
|
||||||
t = tok;
|
t = tok;
|
||||||
next();
|
next();
|
||||||
in_sizeof++;
|
in_sizeof++;
|
||||||
|
@ -5102,8 +5099,6 @@ ST_FUNC void unary(void)
|
||||||
TokenString *str = NULL;
|
TokenString *str = NULL;
|
||||||
int saved_const_wanted = const_wanted;
|
int saved_const_wanted = const_wanted;
|
||||||
|
|
||||||
if (tcc_state->cversion != 201112)
|
|
||||||
goto tok_identifier;
|
|
||||||
next();
|
next();
|
||||||
skip('(');
|
skip('(');
|
||||||
const_wanted = 0;
|
const_wanted = 0;
|
||||||
|
|
|
@ -42,16 +42,11 @@ NORUN =
|
||||||
42_function_pointer.test : NORUN = true
|
42_function_pointer.test : NORUN = true
|
||||||
|
|
||||||
# Some tests might need different flags
|
# Some tests might need different flags
|
||||||
33_ternary_op.test : FLAGS += -std=c11
|
|
||||||
|
|
||||||
FLAGS =
|
FLAGS =
|
||||||
76_dollars_in_identifiers.test : FLAGS += -fdollars-in-identifiers
|
76_dollars_in_identifiers.test : FLAGS += -fdollars-in-identifiers
|
||||||
|
|
||||||
# These tests run several snippets from the same file one by one
|
# These tests run several snippets from the same file one by one
|
||||||
60_errors_and_warnings.test : FLAGS += -dt -std=c11
|
60_errors_and_warnings.test : FLAGS += -dt
|
||||||
|
|
||||||
94_generic.test : FLAGS += -std=c11
|
|
||||||
|
|
||||||
96_nodata_wanted.test : FLAGS += -dt
|
96_nodata_wanted.test : FLAGS += -dt
|
||||||
|
|
||||||
# Always generate certain .expects (don't put these in the GIT),
|
# Always generate certain .expects (don't put these in the GIT),
|
||||||
|
|
Loading…
Reference in a new issue