summary refs log tree commit diff stats
path: root/compiler/sizealignoffsetimpl.nim
Commit message (Collapse)AuthorAgeFilesLines
* cString => cSourceString; tyCString => tyCstring so that error msgs show ↵Timothee Cour2021-04-171-1/+1
| | | | cstring, not cString (#17744)
* Fix #12636 (#15850)cooldome2020-11-051-2/+6
| | | | | | | | | * close #11142 * fix #12636 * undo unwanted changes * fix illegal recursion case
* fix #15752 (#15754)cooldome2020-10-281-4/+4
|
* fixes view types for sizeof() and --gc:orc (#15680)Andreas Rumpf2020-10-221-1/+1
|
* fix #15516 (#15518)cooldome2020-10-081-4/+6
|
* allow packed union (#14868)Clyybber2020-07-011-9/+7
| | | Co-authored-by: Arne Döring <arne.doering@gmx.net>
* sizeof for empty objects/tuples should be 1; fixes #14690 (#14751)Andreas Rumpf2020-06-211-2/+2
|
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-111-1/+1
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static ↵Timothee Cour2020-04-231-1/+2
| | | | | | | | | | | checks (#13926) * -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
* catchable defects (#13626)Andreas Rumpf2020-03-121-1/+1
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly
* make case-object transitions explicit, make unknownLineInfo a const, replace ↵Jasper Jenkins2020-01-171-2/+2
| | | | a few magic numbers with consts (#13170)
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-28/+28
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* implemented alignas pragma (#12643)Arne Döring2019-11-131-0/+4
| | | | | | | | | | | | * implemented alignas pragma * fix bootstrap * generate c++ compatible syntax for alignas * Make it work. * Multiple alignof expressions. Implement top level alignof.
* refactoring: use the new strings and seqs when optSeqDestructors is activeAraq2019-10-201-2/+2
|
* fixes #12264 [backport] (#12302)Andreas Rumpf2019-09-301-5/+6
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-4/+4
| | | | | * Remove sonsLen * Use Indexable
* refactor sizealignoffset (#12077)Andreas Rumpf2019-08-281-201/+142
| | | | | | | | | | | | | | * small refactoring * refactor computeObjectOffsetFoldFunction with AccumObject * refactor packed object offstes fold function * refactor compute union object offsets fold function * merge normal/packed object offset fold function * compiletime offsetof in c++ inheritance objects * enable c++ inheritance offsetof tests * correct alignment for big sets/enums on weird 32bit platforms * uncomputedSize -> unknownSize * workaround for travis * fixes win32 alignment problems
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-4/+4
| | | | * fixes #11847
* fixes #11792 (#11793)cooldome2019-07-211-1/+1
|
* there is only one style -- my styleAraq2019-07-101-4/+4
|
* Offsetof fixes (#11690)Arne Döring2019-07-091-18/+123
| | | | | | | | * first fixes * more tests and fixes * code normalization
* [backport] fix #11320 (#11538)Arne Döring2019-07-031-1/+1
| | | | | * [backport] fix #11320 * fix test for 32 bit test
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-1/+1
|
* newruntime: progressAraq2019-04-011-1/+1
|
* Size ptr tuple (#10846)Arne Döring2019-03-181-8/+0
| | | | | | * fixes #10117 * Add support for recursive tuples * detect in generics
* sizealign of union type (#10780)Arne Döring2019-03-041-2/+52
| | | | | | * sizealign of union type * add error message for packed union
* Fix for sizeof bitsize combination (#10227)Arne Döring2019-01-071-3/+8
| | | | | | | | * fix #10082 * added test
* fixes #10082Andreas Rumpf2018-12-301-25/+11
|
* fixes #9868Araq2018-12-051-1/+2
|
* gc:destructors: more progressAndreas Rumpf2018-11-291-2/+2
|
* fixes #9794: sizeof tuple is incorrect if contains imported object (#9795)cooldome2018-11-261-3/+3
| | | | | | * fixes #9794 * Fix linux test
* Fixes multiple bugs with sink arguments (#9802)cooldome2018-11-261-4/+4
| | | | | | * fixes #9781 * fix spacing
* bitsize respected in size calculation. (#9756)Arne Döring2018-11-191-3/+8
|
* make tsizeof run on C++ backend (#9734)Arne Döring2018-11-181-10/+18
|
* Merge pull request #9511 from krux02/krux02-develArne Döring2018-10-311-0/+9
|\ | | | | Krux02 devel
| * set code ownerArne Döring2018-10-301-0/+9
| |
* | Sizeof alignof fixes (#9568)Arne Döring2018-10-301-1/+1
|/ | | | | fixes #9545
* sizeof(UncheckedArray) should be invalid; fixed the formating of ↵Araq2018-10-141-87/+34
| | | | sizealignoffsetimpl.nim to make it bearable
* implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-141-0/+447