aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.c
Commit message (Collapse)AuthorAgeFilesLines
...
* c/type: make implicit const T* -> T* conversion warning, not error lemon2025-11-261-1/+8
|
* c: more static initializer fixes lemon2025-11-261-7/+7
|
* c: fix elided-braces initializers for nested unions lemon2025-11-261-5/+16
| | | | | | | | For example in ```c struct {int a; union { int b,c; }; int d; } X = {1,2,3}; ``` Fields `a`,`b`,`d` must get initialized to 1,2,3. Not `c`
* c: fix condexprvalue lemon2025-11-241-54/+42
| | | | | The original implementation was broken when presented with nested short-circuiting logical operators.
* c: remove unused function lemon2025-11-241-8/+0
|
* c: create dummy unreachable block after trap lemon2025-11-241-5/+1
| | | | | | Reverts 9abe27f6712. This simplies expr codegen, otherwise would manually have to check `fn->curblk != NULL` repeatedly. Later passes will easily delete those unreachable blocks
* ir: implement cvtu64f. and other bug fixes lemon2025-11-231-1/+4
| | | | | compiler is bootstrapping?! however, stage1 and stage2+ executables aren't bit-identical.. small differences in the codegen.. need to look into that
* c: check actual reachability for non-void func may not return value lemon2025-11-231-2/+6
|
* c: implement compound initializer in static context lemon2025-11-231-2/+18
|
* c: fix runtime implicit-length array initializer lemon2025-11-231-2/+3
|
* implement float varargs, and some other fixes lemon2025-11-231-0/+3
|
* c: fix precedence of conditional expression rhs lemon2025-11-221-2/+2
|
* c: make the warning for '()' function declarations less strict lemon2025-11-221-1/+1
|
* c: fix static eval for address of some array refs lemon2025-11-221-1/+3
|
* c: add decl.sym; avoid calling mkhiddensym repeatedly lemon2025-11-221-22/+16
|
* c: move warning for extension keyword til after preprocessor lemon2025-11-221-2/+9
|
* c: cast should narrow for narrow ints lemon2025-11-221-2/+3
|
* amd64/emit: fix REX-requiring 8-bit GPR encoding checking wrong reg lemon2025-11-221-0/+2
|
* remove umul lemon2025-11-211-2/+2
|
* change op names to match 285063eba44 lemon2025-11-211-20/+20
|
* rename IR classes to reflect bitsize lemon2025-11-211-16/+16
|
* c: fix conditional expr not converting operands to final type lemon2025-11-211-9/+13
|
* isel: lower allocas a different way, such that stk address gets materialized ↵ lemon2025-11-201-1/+1
| | | | when necesary
* ir: for easier debugging, keep ctype in dats, print as literal when possible lemon2025-11-201-1/+1
|
* c: implement ++/-- for bitfields lemon2025-11-191-7/+21
|
* c: remove vestigial ins variable lemon2025-11-191-93/+88
|
* debug output to stdout lemon2025-11-191-2/+2
|
* c: due to __builtin_trap (in the future also things like noreturn function ↵ lemon2025-11-151-1/+5
| | | | calls), compileexpr() can terminate current block. add checks for that in callexpr. more are probably needed..
* c: disallow void arguments lemon2025-11-151-1/+3
|
* ir: 'trap' jump; c: __builtin_trap; lex: __has_builtin lemon2025-11-151-2/+4
|
* c: forward-declaring function with incomplete type shouldn't error lemon2025-11-151-10/+14
|
* preeliminary va_list support lemon2025-11-141-103/+149
|
* revert b55005e5c08. correct fix was in c.c lemon2025-11-121-1/+0
|
* c: inc/dec ptr should use ptrdiff integer class lemon2025-11-071-2/+2
|
* c: fix codegen bug with compound bitfield assignment reusing wrong ↵ lemon2025-11-071-4/+7
| | | | intermediate load
* c: do fold conditional exprs lemon2025-11-061-1/+16
|
* amd64: fix aggregate abi stuff;; ir: fold, peephole optimizing constructors lemon2025-11-051-87/+111
|
* c: various codegen bugs lemon2025-11-021-6/+18
|
* c: more initializer fixes lemon2025-11-021-6/+8
|
* c: more initializer fixes lemon2025-10-261-11/+28
|
* c: alloca fixup wrong when not emitsing lemon2025-10-251-2/+3
|
* c: avoid generating relocations in .rodata (putting such objects in .data ↵ lemon2025-10-251-12/+25
| | | | instead for now)
* c: bitfield initialzers lemon2025-10-241-17/+31
|
* c: also propagate terminates in genswitch lemon2025-10-241-3/+10
|
* codegen fixes, propagate terminate lemon2025-10-241-1/+6
|
* c erratas lemon2025-10-231-1/+1
|
* c: make `sizeof (foo)->bar` work as expected.. lemon2025-10-231-88/+102
|
* c: make builtin va_list an opaque struct lemon2025-10-231-1/+9
|
* c: allow empty declarations in some contexts lemon2025-10-231-4/+17
|
* c: fix wrong addr for initializer codegen lemon2025-10-221-1/+1
|