Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-04-07 | expr: Handle parenthesized paremeter name in __builtin_va_start | Michael Forney | |
FreeBSD defines va_start(ap, last)=__builtin_va_start((ap), (last)) | |||
2019-04-07 | driver: Use argv[0] to determine cc-qbe path if /proc/self/exe is not available | Michael Forney | |
2019-04-07 | driver: Make sure we have room for the '\0' byte | Michael Forney | |
2019-04-06 | driver: Include signal.h for kill(2) | Michael Forney | |
2019-04-06 | Use common code for checking for compatibility of base type for derived types | Michael Forney | |
2019-04-06 | Simplify a couple loops | Michael Forney | |
2019-04-06 | arg: Use (void *)0 instead of NULL in error case of conditional expression | Michael Forney | |
Even though NULL is a null pointer constant, the comma expression with NULL at the end is not. So, we must ensure that either the type of the comma expression is `char *` or `void *`, and we don't know this for NULL. | |||
2019-04-06 | expr: Just use `unsigned long long` when calculating integer constant type | Michael Forney | |
Ideally, we shouldn't use uint64_t at all since it is not guaranteed to exist, and this case is easy enough to fix. | |||
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-06 | Separate unqualified type and qualifiers in struct expr | Michael Forney | |
2019-04-05 | expr: Make lvalue default to false, and set where needed | Michael Forney | |
2019-04-05 | expr: Use separate fields for lvalue and decayed instead of flags | Michael Forney | |
2019-04-05 | Fix _Alignas with type specifier | Michael Forney | |
2019-04-04 | Move type definitions to the top of cc.h | Michael Forney | |
2019-04-04 | Use `enum tokenkind` for op in struct expr | Michael Forney | |
2019-04-04 | Remove unnecessary forward struct declarations | Michael Forney | |
2019-04-04 | Merge headers into cc.h | Michael Forney | |
2019-04-03 | Error on bit-field access for now | Michael Forney | |
2019-04-03 | Parse bit-fields | Michael Forney | |
2019-04-03 | Revert "Make member access its own expression type" | Michael Forney | |
This reverts commit b3865e402e426387d4cdccdcd249a02d5ba1bc05. This breaks member address expressions in static initializers. We can support bit-fields by instead adding a "bit-field" expression that affects loads and stores to the underlying object. | |||
2019-04-03 | Make member access its own expression type | 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-15 | Start to handle overlapping initializers | Michael Forney | |
2019-03-15 | __builtin_constant_p doesn't need to consider address constants | Michael Forney | |
2019-03-14 | Don't need a table of int maximums | Michael Forney | |
2019-03-14 | Use precedence climbing to parse binary expressions | Michael Forney | |
2019-03-14 | Abbreviate tag names | Michael Forney | |
2019-03-13 | Drop base parameter from mktype | Michael Forney | |
2019-03-13 | Use instruction op for varargs call instead of "ellipsis" value | Michael Forney | |
2019-03-13 | Update __PRETTY_FUNCTION__ comment | Michael Forney | |
2019-03-13 | Make `struct function` opaque | Michael Forney | |
2019-03-12 | Allow string literals to initialize any array with character type | Michael Forney | |
2019-03-12 | Implement __builtin_constant_p | Michael Forney | |
2019-03-12 | Sort built-ins | Michael Forney | |
2019-03-12 | scan: Add support for prefixed string literals and character constants | Michael Forney | |
2019-03-12 | scan: Accept leading `.` in pp-number | Michael Forney | |
2019-03-12 | Revert "Zero uninitialized decls/returns." | Michael Forney | |
This reverts commit 7722c7593a1a249e1a6d98d84afdff3cb086ca81. This causes problems with large stack allocations, such as https://github.com/madler/pigz/blob/fe822cb435622c43f491013da77b127e9fe851a9/pigz.c#L3403-L3405 | |||
2019-03-03 | Fix emittype for qualified nested struct | Michael Forney | |
We don't have to strip qualifiers off of array types since array types can only be qualified when used in a parameter declaration before adjustment. | |||
2019-03-01 | init: Check for incomplete types | Michael Forney | |
Fixes #28. | |||
2019-03-01 | Array element cannot have incomplete or function type | Michael Forney | |
2019-03-01 | Add -M and -MM to support our own makefile. | Andrew Chambers | |
2019-02-28 | Set __GNUC__=3 and __GNUC_MINOR__=3 by default | Michael Forney | |
2019-02-27 | Implement __typeof__. | Andrew Chambers | |
2019-02-26 | Use funcinst macro in a few more places | Michael Forney | |
2019-02-26 | Simplify common funcinst case. | Andrew Chambers | |
2019-02-26 | Zero uninitialized decls/returns. | Andrew Chambers | |
Resolves #12 and #15. |