Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-05-19 | decl: Allow zero length arrays | Michael Forney | |
gcc allows this, and glibc uses it in some headers instead of flexible array members. | |||
2019-05-18 | decl: Give a better error message when a VLA is used | Michael Forney | |
2019-05-16 | decl: Qualifiers of array type are for element type | Michael Forney | |
2019-05-16 | decl: extern storage class with initializer is still a definition | Michael Forney | |
2019-05-15 | Implement asm labels | Michael Forney | |
2019-05-15 | decl: Don't emit function if inline is specified without static or extern | Michael Forney | |
This partially addresses #42. Now, no duplicate definitions will be emitted, but we also don't emit a definition when a later declaration is specified with extern. | |||
2019-05-14 | Use correct terminology in error message | Michael Forney | |
2019-05-14 | decl: Factor out some code common to function and object declarations | Michael Forney | |
2019-05-12 | Improve error message and simplify slightly | Michael Forney | |
2019-04-27 | Unnamed bit-fields don't contribute to size or alignment of unions, or size ↵ | Michael Forney | |
of structs | |||
2019-04-27 | Fix some function declarator corner cases | Michael Forney | |
2019-04-24 | Use a common member for expression base | Michael Forney | |
2019-04-24 | Free functions when we're done with them | Michael Forney | |
2019-04-24 | Disallow struct members with function type | Michael Forney | |
2019-04-21 | Keep track of type properties in type | Michael Forney | |
2019-04-20 | Make basic types have their own kind | Michael Forney | |
2019-04-20 | Shorten some names with 'long' | Michael Forney | |
2019-04-17 | Merge map.h and tree.h into util.h | Michael Forney | |
2019-04-17 | Just use a single mapkey function | Michael Forney | |
2019-04-17 | htab -> map | Michael Forney | |
2019-04-17 | Fix bit-field offsets in unions | Michael Forney | |
2019-04-17 | Implement bit-field initializers | Michael Forney | |
2019-04-16 | Use undecayed type in __typeof__ | Michael Forney | |
2019-04-15 | Silence gcc warning | Michael Forney | |
2019-04-15 | decl: Fix uninitialized access with unnamed bit-fields | Michael Forney | |
2019-04-14 | decl: Make signedness of enum types match gcc | Michael Forney | |
2019-04-13 | decl: Allow `register` in old-style parameter declarations | Michael Forney | |
2019-04-06 | Simplify a couple loops | Michael Forney | |
2019-04-06 | Track type qualifiers separately | Michael Forney | |
Using a special qualified type kind has a number of problems: - Important fields such as size, align, and incomplete may not be set, since the qualified type was created before a struct was completed. - When we don't care about type qualifiers (which is the usual case), we have to explicitly unqualify the type which is annoying and error-prone. Instead, in derived types, keep track of the qualifiers of the base type alongside the base type (similar to what is done for members, parameters, declarations, and expressions in the past few commits). | |||
2019-04-06 | Separate unqualified type and qualifiers in struct decl | Michael Forney | |
2019-04-06 | Separate unqualified type and qualifiers in struct member | Michael Forney | |
2019-04-06 | Separate unqualified type and qualifiers in struct param | Michael Forney | |
2019-04-05 | Fix _Alignas with type specifier | Michael Forney | |
2019-04-04 | Merge headers into cc.h | Michael Forney | |
2019-04-03 | Parse bit-fields | Michael Forney | |
2019-04-01 | Add structbuilder to keep track of state when parsing struct specifier | Michael Forney | |
2019-03-29 | Remove unused struct partialtype | Michael Forney | |
2019-03-14 | Abbreviate tag names | Michael Forney | |
2019-03-13 | Drop base parameter from mktype | Michael Forney | |
2019-03-01 | Array element cannot have incomplete or function type | Michael Forney | |
2019-02-27 | Implement __typeof__. | Andrew Chambers | |
2019-02-24 | Check for negative array lengths/indices | 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-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 | |