fix: macro pre-process error when arg has multi-words,
authoryu.dongliang <18588496441@163.com>
Fri, 4 Oct 2024 15:31:52 +0000 (23:31 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 4 Oct 2024 15:31:56 +0000 (23:31 +0800)
commit8ff25b3c8e35645123c4a91834f4cb8f135b7b91
tree28d4e205cad00c7aa07e3c3640fcac6d12161a5d
parentb4399db0826f15b59fba7aded9731b08cdcb0fec
fix: macro pre-process error when arg has multi-words,
fix: DAG error for auto type cast 'int n = 2; sizeof(int) * n * n',
fix: optimize const teq error for assert(0), macro extends as below:
do {
if (!0)
printf(...);
} while (0)
16 files changed:
core/scf_3ac.c
core/scf_dag.c
core/scf_dag.h
core/scf_lex_word.c
core/scf_operator.c
core/scf_operator_dag.c
core/scf_optimizer_basic_block.c
core/scf_optimizer_const_teq.c
core/scf_optimizer_pointer_alias.c
core/scf_pointer_alias.c
examples/assert.c [new file with mode: 0644]
lex/scf_lex.c
lib/scf_capi.c
parse/scf_dfa_expr.c
parse/scf_operator_handler_semantic.c
parse/scf_parse.c