0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src
LemonBoy c1cc1ebc35 ir: Avoid constant-folding ptr to sentinels
Constant-folding the pointers to the expected sentinel value have some
big problems: it hides the real content of the array, makes the pointer
to the sentinel point to a completely different memory region and treats
it like a const value even when the underlying array is mutable.

Fixes #4840
History 2020-03-30 11:03:56 -04:00
..
all_types.hpp zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
analyze.cpp ability to compile c++ hello world with zig c++ 2020-03-26 22:48:37 -04:00
analyze.hpp zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
ast_render.cpp update parsers to new noasync syntax 2020-03-09 12:23:30 +02:00
ast_render.hpp translate-c: a little closer to self-hosted implementation 2019-04-25 00:06:54 -04:00
bigfloat.cpp fix NaN comparing equal to itself 2019-04-04 22:07:15 -04:00
bigfloat.hpp fix NaN comparing equal to itself 2019-04-04 22:07:15 -04:00
bigint.cpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
bigint.hpp allow comparison of any numeric types 2019-12-16 11:09:10 -05:00
blake2.h stage1: import blake2b implementation 2018-09-05 23:23:11 -04:00
blake2b.c stage1: build blake code with -std=c99 2018-09-11 17:29:18 -04:00
buffer.cpp remove redundant assert 2019-09-22 15:58:57 -04:00
buffer.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
cache_hash.cpp fix zig-cache to treat cpu-features as raw-bytes 2020-03-11 19:33:12 -04:00
cache_hash.hpp fix zig-cache to treat cpu-features as raw-bytes 2020-03-11 19:33:12 -04:00
codegen.cpp zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
codegen.hpp remove special darwin os version min handling 2020-02-28 14:51:56 -05:00
compiler.cpp stage1: remove get_self_libc_path 2020-02-28 14:51:53 -05:00
compiler.hpp stage1: remove get_self_libc_path 2020-02-28 14:51:53 -05:00
config.h.in fix undef clang library symbols when linking self-hosted 2020-02-04 03:39:40 -05:00
dump_analysis.cpp un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
dump_analysis.hpp proof of concept of stage1 doc generation 2019-10-04 20:18:06 -04:00
errmsg.cpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
errmsg.hpp use size_t for indexes 2016-09-19 11:54:01 -04:00
error.cpp initial support of response files 2020-03-27 22:24:40 -04:00
error.hpp rename libuserland to libstage2 2020-02-16 19:16:08 -05:00
glibc.cpp glibc: include ld symbols and proper soname for ld 2020-03-20 14:39:05 -04:00
glibc.hpp remove special darwin os version min handling 2020-02-28 14:51:56 -05:00
hash_map.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
heap.cpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
heap.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
install_files.h zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
ir.cpp ir: Avoid constant-folding ptr to sentinels 2020-03-30 11:03:56 -04:00
ir.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
ir_print.cpp @TypeOf avoids heap allocation for only 1 parameter 2020-03-04 17:43:23 -05:00
ir_print.hpp split IrInstruction into IrInst, IrInstSrc, IrInstGen 2020-01-25 21:49:32 -05:00
link.cpp linking is now aware -lm is provided by mingw-w64 2020-03-29 13:17:21 -04:00
list.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
main.cpp linking against c++ does not trigger system library directories 2020-03-29 20:58:59 -04:00
mem.cpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
mem.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
mem_hash_map.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
mem_list.hpp stage1: free more heap after analysis 2020-02-20 21:05:37 -05:00
mem_profile.cpp stage1: free more heap after analysis 2020-02-20 21:05:37 -05:00
mem_profile.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
mem_type_info.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
os.cpp stage1: Remove fflush on file open for reading 2020-03-23 17:17:28 +00:00
os.hpp zig cc: better support for the preprocessor option (-E) 2020-03-21 20:32:48 -04:00
parse_f128.c allow _ separators in number literals (stage 1) 2020-03-15 12:38:35 +10:00
parse_f128.h get rid of restrict; it's not supported by MSVC 2019-03-22 16:08:19 -04:00
parser.cpp ir: Allow errdefer with payload 2020-03-21 09:54:49 +01:00
parser.hpp remove namespace type; files are empty structs 2019-02-28 10:11:32 -05:00
range_set.cpp Stage1: Add compile error for an empty switch on a integer 2019-11-22 04:00:47 +00:00
range_set.hpp better bigint/bigfloat implementation 2017-07-08 17:59:10 -04:00
softfloat.hpp fix regressions double implicit casting return ptr 2020-01-16 21:58:52 -05:00
stage2.cpp cmake: support cross compiling 2020-03-27 23:43:21 -04:00
stage2.h zig cc: Add support for -z 2020-03-28 00:35:54 -07:00
target.cpp linking is now aware -lm is provided by mingw-w64 2020-03-29 13:17:21 -04:00
target.hpp zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
tokenizer.cpp make parsing 0.0_e1 an error 2020-03-15 13:05:24 +10:00
tokenizer.hpp disallow multiline strings in test and library names 2020-01-15 14:20:48 -05:00
util.cpp rename libuserland to libstage2 2020-02-16 19:16:08 -05:00
util.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
util_base.hpp stage1: memory/report overhaul 2020-02-10 21:08:08 -05:00
windows_com.hpp compiling on mingw is now supported (#1542) 2018-09-18 00:13:17 -04:00
windows_sdk.cpp fixed mingw compilation 2018-10-27 11:35:01 -04:00
windows_sdk.h self-hosted libc detection 2020-02-16 13:25:30 -05:00
zig_clang.cpp Merge remote-tracking branch 'origin/master' into llvm10 2020-03-13 15:17:53 -04:00
zig_clang.h Merge remote-tracking branch 'origin/master' into llvm10 2020-03-13 15:17:53 -04:00
zig_clang_cc1_main.cpp update clang drivers to llvm10.0.0rc2 2020-02-14 10:47:40 -05:00
zig_clang_cc1as_main.cpp update clang drivers to llvm10.0.0rc2 2020-02-14 10:47:40 -05:00
zig_clang_driver.cpp update clang driver to release/10.x branch 2020-01-29 23:38:21 -05:00
zig_llvm.cpp Merge remote-tracking branch 'origin/master' into llvm10 2020-02-25 16:30:40 -05:00
zig_llvm.h Merge remote-tracking branch 'origin/master' into llvm10 2020-02-25 16:30:40 -05:00