mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
0.5.4: Hash variables accept designated initializers. @safemacro overrides the need for @ in macro names. Fixes to macro context evaluation. Updated allocator api. Removed install_win_reqs.bat. Deterministic @init for MacOS. Fixed temp memory issue with formatter. Support LLVM 19. Add support to compare bitstructs using == and !=. Support Windows .def files. Removed invalid grammar from grammar.y. Support compile time folding of &|^~ for bitstructs. output project setting now respected. Fix issue where constants were not properly constant folded. Add temp_push/pop. Aliased declarations caused errors when used in initializers. Fix export output. Fix of const ternary #1118. Fix of $$MODULE in nested macros #1117. Fix debug info on globals. out now correctly detects subscript[] use #1116. Lateral implicit imports removed. Default to '.' if no libdir is specified. Improved error messages for --lib. Fix raylib snake example. Overzealous local escape check corrected #1127. Improved yacc grammar #1128. --linker argument #1067. Fixes to the matrix operations #1130. Added GenericList.
This commit is contained in:
committed by
Christoffer Lerno
parent
c673101bbb
commit
748c737e8f
@@ -137,6 +137,9 @@ void gencontext_begin_module(GenContext *c)
|
||||
LLVMTypeRef dtable_type[3] = { c->ptr_type, c->ptr_type, c->ptr_type };
|
||||
c->dtable_type = LLVMStructTypeInContext(c->context, dtable_type, 3, false);
|
||||
c->chars_type = llvm_get_type(c, type_chars);
|
||||
LLVMTypeRef ctor_type[3] = { LLVMInt32TypeInContext(c->context), c->ptr_type, c->ptr_type };
|
||||
c->xtor_entry_type = LLVMStructTypeInContext(c->context, ctor_type, 3, false);
|
||||
c->xtor_func_type = LLVMFunctionType(LLVMVoidTypeInContext(c->context), NULL, 0, false);
|
||||
c->introspect_type = create_introspection_type(c);
|
||||
c->fault_type = create_fault_type(c);
|
||||
if (c->panic_var) c->panic_var->backend_ref = NULL;
|
||||
@@ -156,7 +159,7 @@ void gencontext_begin_module(GenContext *c)
|
||||
}
|
||||
llvm_set_module_flag(c, LLVMModuleFlagBehaviorError, "uwtable", UWTABLE, type_uint);
|
||||
|
||||
c->debug.runtime_version = 1;
|
||||
c->debug.runtime_version = 0;
|
||||
c->debug.builder = LLVMCreateDIBuilder(c->module);
|
||||
if (active_target.debug_info == DEBUG_INFO_FULL && safe_mode_enabled())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user