Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-02-22 | Keep track of built-in kind in declaration | Michael Forney | |
Also, populate filescope with builtins outside of main. | |||
2019-02-22 | Implement __builtin_alloca | Michael Forney | |
2019-02-21 | Always expect at least one struct decl. | Andrew Chambers | |
2019-02-20 | Use name parameter instead of tok.lit | Michael Forney | |
This was only called with tok.lit, so it didn't matter in practice. | |||
2019-02-19 | Implement __builtin_va_copy | Michael Forney | |
2019-02-18 | Fix compatible check for basic types | Michael Forney | |
This check was only supposed to return true for enum types and their corresponding integer type. However, it had the side effect of making 'int' compatible with 'unsigned'. To fix this, introduce a new basic type kind for enums with the same rank as 'int', that is only compatible with itself and the 'int' type with the matching sign. Thanks to Andrew Chambers for the bug report. | |||
2019-02-17 | Disallow functions returning array or function | Michael Forney | |
2019-02-17 | Only parse function definitions for function declarations | Michael Forney | |
2019-02-17 | Only need to read parameter declarations when identifier list is non-empty | Michael Forney | |
2019-02-17 | Improve old-style function declaration support | Michael Forney | |
Implement typecompatible for types created with non-prototype function declarations. Require a function definition with parameter declaration list after a declaration with a non-empty identifier list. Detect function definitions with parameter declaration lists containing types incompatible with the promoted types, and report an error for now. | |||
2019-02-15 | Don't embed anonymous struct members into parent | Michael Forney | |
While this works nicely for structs, when unions are involved it makes it impossible to find the next member to initialize without keeping track of extra data per member. | |||
2019-02-15 | Rename emit.h -> backend.h | Michael Forney | |
2019-02-15 | Use consume in a couple places | Michael Forney | |
2019-02-15 | Rearrange some fields in function types | Michael Forney | |
2019-02-15 | Initialize align variable in declspecs | Michael Forney | |
This matches how it is done for storage class and function specifier. | |||
2019-02-15 | Fix use of wrong align variable in structdecl | Michael Forney | |
2019-02-14 | Allow initializing array with longer strings | Michael Forney | |
2019-02-13 | Make __builtin_va_list a built-in declaration, not keyword | Michael Forney | |
2019-02-13 | Implement __builtin_va_arg | Michael Forney | |
2019-02-12 | Fix union sizes and member offsets | Michael Forney | |
2019-02-12 | Fix nested arrays | Michael Forney | |
We need to traverse the type hierarchy from inside to out to calculate size/alignment of arrays. | |||
2019-02-12 | Initial import | Michael Forney | |