aboutsummaryrefslogtreecommitdiffhomepage
path: root/c
Commit message (Collapse)AuthorAgeFilesLines
...
* lex/expr(): cleanuplemon2025-12-111-29/+29
|
* c: expr2reloc() change sig to return addendlemon2025-12-111-15/+12
|
* lexer: properly add padding for cpppredefslemon2025-12-101-2/+2
|
* c: fix static relocation for &sym[offset]lemon2025-12-101-7/+6
|
* c: fix compound assignment type conversions when types don't matchlemon2025-12-101-2/+3
|
* lex: make some hashtables resizablelemon2025-12-091-29/+67
| | | | Was hiting the fixed limits trying to preprocess sqlite3amalgamation
* c: fix some static initialzierslemon2025-12-081-1/+3
|
* eval: &*x address constantslemon2025-12-081-0/+4
|
* c: fix more declaration parsing bugslemon2025-12-081-7/+17
|
* add command-line predefined macros (-D, -U)lemon2025-12-061-4/+52
|
* eval: fix float cmpslemon2025-12-051-0/+2
|
* cpp: implement preprocessor expressions short circuiting behaviourlemon2025-12-031-17/+23
| | | | This only affects whether an error is given for something like `0 && 0/0` (it shouldn't)
* c: allow redeclaration with K&R and non K&R prototypeslemon2025-12-031-2/+10
|
* preprocessor: add #ifndef...#endif include guard optimizationlemon2025-12-022-11/+30
|
* c: make tentative definitions worklemon2025-12-021-17/+34
|
* c: narrowing ints of different signedness...lemon2025-12-011-1/+1
|
* c: edgecase for redeclaration of implicit sized arraylemon2025-12-011-1/+1
|
* c: fix some decl bugs and diagnosticslemon2025-11-301-18/+34
|
* lex: remove some hacks and optimize preprocessorlemon2025-11-281-39/+34
|
* c/type: make implicit const T* -> T* conversion warning, not errorlemon2025-11-261-1/+8
|
* c: more static initializer fixeslemon2025-11-262-7/+9
|
* c: fix elided-braces initializers for nested unionslemon2025-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`
* pp: fix token pasting (hopefully)lemon2025-11-241-27/+15
|
* c: fix condexprvaluelemon2025-11-241-54/+42
| | | | | The original implementation was broken when presented with nested short-circuiting logical operators.
* c: remove unused functionlemon2025-11-241-8/+0
|
* c: create dummy unreachable block after traplemon2025-11-242-5/+2
| | | | | | 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 fixeslemon2025-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 valuelemon2025-11-231-2/+6
|
* c: implement compound initializer in static contextlemon2025-11-231-2/+18
|
* lex: TEMP hack: #define __x86_64__ or some system headers break subtlylemon2025-11-231-0/+1
|
* c: fix runtime implicit-length array initializerlemon2025-11-231-2/+3
|
* c: __builtin_va_copylemon2025-11-231-8/+21
|
* implement float varargs, and some other fixeslemon2025-11-231-0/+3
|
* cpp: fix bugs with recursive macro expansion (hopefully)lemon2025-11-232-28/+25
|
* cpp: fix ## buglemon2025-11-231-1/+1
|
* c: fix precedence of conditional expression rhslemon2025-11-221-2/+2
|
* c: make the warning for '()' function declarations less strictlemon2025-11-221-1/+1
|
* c: fix static eval for address of some array refslemon2025-11-222-2/+7
|
* c: add decl.sym; avoid calling mkhiddensym repeatedlylemon2025-11-222-22/+17
|
* c: move warning for extension keyword til after preprocessorlemon2025-11-223-4/+12
|
* lex: #include ".." should also look in working directorylemon2025-11-221-19/+17
|
* lex: move token data from tmp to glob arena when used in a macro bodylemon2025-11-221-2/+7
| | | | | | maybe introduce per-macro arenas to tie their lifetimes to that. but most macros have global lifetime (i.e. aren't #undef'd) so there probably wouldn't be much benefit to that
* c: cast should narrow for narrow intslemon2025-11-221-2/+3
|
* amd64/emit: fix REX-requiring 8-bit GPR encoding checking wrong reglemon2025-11-221-0/+2
|
* remove umullemon2025-11-211-2/+2
|
* change op names to match 285063eba44lemon2025-11-211-20/+20
|
* rename IR classes to reflect bitsizelemon2025-11-211-16/+16
|
* c: fix conditional expr not converting operands to final typelemon2025-11-211-9/+13
|
* cpp: add predefined __antcc__ macro, for debugginglemon2025-11-201-0/+1
|
* isel: lower allocas a different way, such that stk address gets materialized ↵lemon2025-11-201-1/+1
| | | | when necesary