Commits on Mar 17, 2023

  1. Add line directives for C code variables (#21466) [backport:1.6] (#21518

    )
    
    * Add line directives for C code variables
    
    * Refactor genCLineDir to only use toFullPath if necessary
    
    Signed-off-by: Joey Yakimowich-Payne <jyapayne@pm.me>
    jyapayne authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    43fa866 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. bump NimVersion to 1.6.13

    narimiran committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    b6ed118 View commit details
    Browse the repository at this point in the history
  2. Avoid calling build_all* when nim binary is present (#21522)

    - `nimble` will build `nim` using `bin/nim` and if it is already present we can
    reuse it.
    
    (cherry picked from commit fb00b48)
    yyoncho authored and narimiran committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    f111afc View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. fixes #21306; fixes #20485; don't transform yields in the var section…

    … when introducing new local vars [backport: 1.6] (#21489)
    
    * fixes #21306;  don't transform yields in the var section when introducing new local vars
    
    * adds `inVarSection` so the var section in the var section is freshed
    
    * use `isIntroducingNewLocalVars` to avoid yield transformations in var sections
    
    * fixes comments
    
    (cherry picked from commit f2dad94)
    ringabout authored and narimiran committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    79b5f8c View commit details
    Browse the repository at this point in the history
  2. Fix infinite recursion introduced in 7031ea6 [backport 1.6] (#21555)

    Fix infinite recursion introduced in 7031ea6
    
    (cherry picked from commit c155e20)
    PMunch authored and narimiran committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    38dbdc2 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. don't access void* out of alignment in refc GC to avoid UB (#21560)

    (cherry picked from commit e8a70ff)
    tersec authored and narimiran committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    a8c6e36 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2023

  1. fixes #21496; Ambiguous calls compiles when module name are equal (#2…

    …1500)
    
    * fixes #21496; Ambiguous calls compiles when module name are equal
    
    * add a test case
    
    (cherry picked from commit ffadc75)
    ringabout authored and narimiran committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    48d18df View commit details
    Browse the repository at this point in the history
  2. fix #20972 fixes invalid and UB codegen case object transitions for b…

    …oth refc and ORC [backport] (#21611)
    
    fix #20972 fixes invalid and UB codegen case object transitions for refc and ORC
    
    (cherry picked from commit 3575f2b)
    ringabout authored and narimiran committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    65a7496 View commit details
    Browse the repository at this point in the history
  3. remove seq[T] setLen undefined behavior (#21582)

    remove seq[T] setLen UB
    
    (cherry picked from commit 51ced0d)
    tersec authored and narimiran committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    3073767 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. terminal size env-vars have precendence in POSIX (#21643)

    In POSIX Base Definitions Section 8.1 Environment Variable Definition,
    it is explained that the `COLUMNS` and `LINES` environment variables,
    if present, take precedence over any other implementation-defined method
    to determine the terminal size. This is useful, for example, to capture
    output programmatically in simulations for various terminal sizes.
    
    (cherry picked from commit 75205fe)
    etan-status authored and narimiran committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    eecd837 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. fix #20997 calling system.card[T](x: set[T]) with T of int8 or uint8 … (

    #21010)
    
    * fix #20997 calling system.card[T](x: set[T]) with T of int8 or uint8 uses mismatched C array sizes
    * fullfil set variant
    
    (cherry picked from commit 0b319fe)
    bung87 authored and narimiran committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    6007b12 View commit details
    Browse the repository at this point in the history
  2. fix #20997 (#21165)

    * fix #20997
    
    * use ptr UncheckedArray[uint8] instead
    
    (cherry picked from commit 0d6b994)
    bung87 authored and narimiran committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    064ed48 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. Fix json.to for float fields that are not present (#21695)

    (cherry picked from commit 418e544)
    Yardanico authored and narimiran committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    4071b3f View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2023

  1. Fix long link commands on macOS (v1.6) (#21381)

    Handle long link commands on macOS with a script, since ar does not support response files
    
    Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
    iffy and ringabout authored Apr 23, 2023
    Configuration menu
    Copy the full SHA
    bce9a9d View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. Configuration menu
    Copy the full SHA
    a5a2c57 View commit details
    Browse the repository at this point in the history
  2. remove exception (#18906)

    (cherry picked from commit 4d81080)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    2f247ed View commit details
    Browse the repository at this point in the history
  3. Fixed generic distinct conversions for 'var' (#18837)

    * SameTypeAux now properly traverses generic distincts
    
    * Smarter traversal of distincts
    
    * Removed redundant check
    
    * Fixed nkConv for jsgen
    
    * Added test for non distinct nkConv
    
    * using skiptypes for distinct now
    
    * Fixed genaddr for nkconv
    
    (cherry picked from commit 83a2515)
    beef331 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    5bb626d View commit details
    Browse the repository at this point in the history
  4. Fixed distinct composite type class proc borrowing (#18904)

    * Fixed composite type class proc borrowing
    
    * Moved borrow search into transf
    
    * added borrow check to symbol flag
    
    (cherry picked from commit 8d5a275)
    beef331 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    b21f81d View commit details
    Browse the repository at this point in the history
  5. Fix nimIdentNormalize, fixes #19067 (#19068)

    * Make nimIdentNormalize return "" when passed ""; fixes #19067
    
    Fixes #19067
    
    * Add tests for nimIdentNormalize
    
    (cherry picked from commit ee703c5)
    EliteTK authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    01dc38a View commit details
    Browse the repository at this point in the history
  6. fixes #19000 (#19032)

    * fixes #19000
    
    * progress
    
    (cherry picked from commit 2bda4a3)
    Araq authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    26ed32e View commit details
    Browse the repository at this point in the history
  7. Fix VM's sametype impl to work for generics/typedescs (#19073)

    * Fix vm's sametype implementation to properly handle generics and typedescs
    
    * actually fixed sametype + have test
    
    * added comments and removed unsafe code
    
    (cherry picked from commit cc98421)
    beef331 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    48936ab View commit details
    Browse the repository at this point in the history
  8. Add test for issue 15435 (#19079)

    * Add test for issue 15435
    
    Closes #15435.
    
    * Specify bug # in comment
    
    Addresses #19079 (comment)
    
    (cherry picked from commit 539bced)
    kaushalmodi authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    2f6dc73 View commit details
    Browse the repository at this point in the history
  9. fix for #19020, credit to @ElegantBeef (#19021)

    (cherry picked from commit f2f15e9)
    geekrelief authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    4728e9d View commit details
    Browse the repository at this point in the history
  10. fix #12274 (#19180)

    (cherry picked from commit 2859069)
    metagn authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    c5df4ed View commit details
    Browse the repository at this point in the history
  11. treat do with pragmas but no parens as proc (#19191)

    fixes #19188
    
    (cherry picked from commit 1ef9456)
    metagn authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    4857d92 View commit details
    Browse the repository at this point in the history
  12. Atomic inc/dec should use ATOMIC_SEQ_CST (#19212)

    (cherry picked from commit 0992854)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    5cd2665 View commit details
    Browse the repository at this point in the history
  13. Generic parameters now can constrain statics in type definitions (#19362

    )
    
    * Parameters now can constrain static in type definitions
    
    resolved regression with generic procedures
    
    * Update compiler/sigmatch.nim
    
    Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
    (cherry picked from commit a93f6e7)
    2 people authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    9e3762b View commit details
    Browse the repository at this point in the history
  14. Fixed concept constraints for static types (#19391)

    (cherry picked from commit 7bdfeb7)
    beef331 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    de6d7dc View commit details
    Browse the repository at this point in the history
  15. Don't reject types directly on AST (#19407)

    Instead of rejecting type expressions based on node kind,
    evaluate the expression as a type.
    This is already the behavior for call results, and it has its own error
    for non-types, which is the same error you would normally get
    with 2 words swapped.
    
    (cherry picked from commit 08261cb)
    metagn authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    fe5edb7 View commit details
    Browse the repository at this point in the history
  16. Fix #11923 (#19427)

    * Apply commit 5da931f that was never merged (was part of a bigger PR). Should fix issue #11932
    
    * add a generic object for custom pragma
    
    (cherry picked from commit 1563cb2)
    Clonkk authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    70478d3 View commit details
    Browse the repository at this point in the history
  17. [add testcase] NRVO does not occur with init procedures (#19462)

    * [add testcase] NRVO does not occur with init procedures
    
    close #19094
    
    * Update tests/ccgbugs2/tcodegen.nim
    
    (cherry picked from commit 33cd883)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    196e93f View commit details
    Browse the repository at this point in the history
  18. No longer segfault when using a typeclass with a self referencing type (

    #19467)
    
    (cherry picked from commit 1830a3b)
    beef331 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    da325b0 View commit details
    Browse the repository at this point in the history
  19. Clonkk fix2 11923 (#19451)

    * fix nnkBracketExpr not compiling for getImpl on customPragmaNode
    
    * fix test import
    
    * fix alias not working with hasCustomPragmas
    
    (cherry picked from commit 486cb09)
    Clonkk authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    a336039 View commit details
    Browse the repository at this point in the history
  20. [testcase] genSym fails to make unique identifier for ref object types (

    #19506)
    
    close #15118
    
    (cherry picked from commit 2ef71c0)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    1779f6a View commit details
    Browse the repository at this point in the history
  21. compiler: Handle nkCheckedFieldExpr better in dfa (#19616)

    Simply recurse into their first child, which is always
    a nkDotExpr instead of treating them seperately.
    This fixes the rhs sym of a nkCheckedFieldExpr being
    checked twice in aliases. This double checking didn't
    cause any issues, but was unintentional and redundant.
    
    (cherry picked from commit 3e83d73)
    Clyybber authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    ea69f04 View commit details
    Browse the repository at this point in the history
  22. remove unnecessary framePtr code (#19645)

    (cherry picked from commit afbcba9)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    31f7b17 View commit details
    Browse the repository at this point in the history
  23. fixes #19603; some pragmas were really only supported as top level st…

    …atements. Now this is enforced properly. (#19646)
    
    (cherry picked from commit 51df9ff)
    Araq authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    b13dba2 View commit details
    Browse the repository at this point in the history
  24. remove tmpFramePtr when optStackTrace is absent (#19649)

    (cherry picked from commit 84ac003)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    2dbceb3 View commit details
    Browse the repository at this point in the history
  25. fixes #14318 (#14335)

    (cherry picked from commit 7d32425)
    Araq authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    3a685e8 View commit details
    Browse the repository at this point in the history
  26. No need to export pos from OptParser (#19688)

    Co-authored-by: flywind <xzsflywind@gmail.com>
    (cherry picked from commit 065f568)
    2 people authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    6602961 View commit details
    Browse the repository at this point in the history
  27. macros: make hasCustomPragma more permissive (#19747)

    Make hasCustomPragma return false rather than fail for invalid
    parameters.
    
    (cherry picked from commit 82680a1)
    ehmry authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    840b346 View commit details
    Browse the repository at this point in the history
  28. Stop type aliases from inheriting sfUsed (#19861)

    Fixes #18201
    
    Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
    (cherry picked from commit f7a13f6)
    2 people authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    1af76bc View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    9a83cae View commit details
    Browse the repository at this point in the history
  30. give a better error message for some template expansions (#19871)

    (cherry picked from commit 25d8926)
    Araq authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    9622c56 View commit details
    Browse the repository at this point in the history
  31. test for #19046 (#19839)

    * test for #19046
    
    * add threads flag
    
    (cherry picked from commit ac89eea)
    bung87 authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    75bc4a9 View commit details
    Browse the repository at this point in the history
  32. Better range error messages (#19867)

    * Better range error messages
    
    * Revert to old behavior for arrays
    
    * Small corrections
    
    (cherry picked from commit d33e112)
    Menduist authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    67b94a9 View commit details
    Browse the repository at this point in the history
  33. Fix distinct requiresInit test and manual (#19901)

    fix distinct test and manual
    
    (cherry picked from commit caf6aff)
    khaledh authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    85e943d View commit details
    Browse the repository at this point in the history
  34. ref #19830; multiple definition of in Nim generated static libraries (#…

    …19934)
    
    * ref #19830; multiple definition of in Nim generated static libraries
    
    * fix compile errors
    
    (cherry picked from commit 0189122)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    fbaeea8 View commit details
    Browse the repository at this point in the history
  35. closes #11042; add testcase (#19935)

    close #11042; add testcase
    
    (cherry picked from commit 8a344cb)
    ringabout authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    d6ea7cc View commit details
    Browse the repository at this point in the history
  36. Allow recursive closure iterators (#19939)

    (cherry picked from commit ce4078a)
    Menduist authored and narimiran committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    ab17179 View commit details
    Browse the repository at this point in the history