Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-03-12 | scan: Add support for prefixed string literals and character constants | Michael Forney | |
2019-02-24 | Check for negative array lengths/indices | Michael Forney | |
2019-02-22 | When & is applied to an array, it is no longer decayed | Michael Forney | |
2019-02-22 | Implement __builtin_nanf for empty string literals | Michael Forney | |
2019-02-22 | Separate out built-in handling from postfixexpr | Michael Forney | |
2019-02-22 | Implement __builtin_inff | Michael Forney | |
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-22 | Fix adding integer to pointer | Michael Forney | |
2019-02-21 | Fix decay on qualified array types | Michael Forney | |
2019-02-20 | Remove some unused variables | Michael Forney | |
2019-02-19 | Implement __builtin_va_copy | Michael Forney | |
2019-02-19 | Slight reorganization in expr.c | Michael Forney | |
2019-02-19 | Add mkunaryexpr helper | Michael Forney | |
2019-02-19 | Add missing lvalue conversions | Michael Forney | |
typeintpromote and typeargpromote assume they are dealing with an unqualified type, and return an incorrect result if they are given a qualified one. So, add an assert here. This was causing const integer types to get promoted to themselves due to missing lvalue conversions. Thanks to Andrew Chambers for the bug report and test case. | |||
2019-02-19 | Check that left hand side of assignment expression is an lvalue | Michael Forney | |
2019-02-18 | Pointer operands to + and - must be complete object types | Michael Forney | |
Also clean up a little and give some better error messages. | |||
2019-02-17 | Fix sizeof with unparenthesized postfix or compound literal expression | Michael Forney | |
Determining whether it is a typename or unparenthesized expression requires consuming the '(', so we need to call postfixexpr/parseinit ourselves. | |||
2019-02-17 | Ensure right number of arguments to non-prototype function definitions | Michael Forney | |
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 | Fix hex escape in char literals. | Andrew Chambers | |
2019-02-14 | When subtracting pointers, divide after subtraction | Michael Forney | |
The pointers might be global addresses, and it doesn't make sense to divide them before subtracting. | |||
2019-02-13 | Fix decay on qualified array types | Michael Forney | |
2019-02-13 | Fold constexpr function into intconstexpr | Michael Forney | |
We usually only care about integer constant expressions, and when we parse initializers, we need to handle non-constant expressions too, so we call eval explicitly when emitting global data. | |||
2019-02-13 | Add some missing lvalue conversions | Michael Forney | |
2019-02-13 | Implement __builtin_va_arg | Michael Forney | |
2019-02-13 | expr: Perform lvalue conversion on array and index in subscript expressions | Michael Forney | |
2019-02-12 | Fix adding pointer to integer | Michael Forney | |
2019-02-12 | Allow overflow/underflow when parsing floating constants | Michael Forney | |
2019-02-12 | Initial import | Michael Forney | |