1. 30 Dec, 2021 1 commit
    • Marius Gerbershagen's avatar
      cmp: introduce new variables for linker flags · 0ac2e72e
      Marius Gerbershagen authored
      Split up the options into additional flags for the linker and
      additional libraries.
      
      Quoting from issue #636:
      
      > Here's an example, attempting to link one object file named
        example.o into an executable named example. Libcrypto here is
        superfluous and should be removed by --as-needed:
      
      ```
      LDFLAGS="-Wl,--as-needed"
      LIBS="-lcrypto"
      gcc ${LDFLAGS} ${LIBS} example.o -o example # doesn't link libcrypto!
      gcc example.o ${LDFLAGS} ${LIBS} -o example # doesn't honor --as-needed!
      gcc ${LDFLAGS} example.o ${LIBS} -o example # works great!
      ```
      
      > In short, the placement of your -l<foo> flags differs from that of
        all the other linker flags. Since ECL is only providing one big
        variable ld-flags for all of the linker flags, there's no correct
        way to pass in options like --as-needed and -l<foo> at the same
        time.
      
      Fixes #636.
      0ac2e72e
  2. 23 Dec, 2021 4 commits
  3. 21 Dec, 2021 2 commits
  4. 01 Dec, 2021 2 commits
  5. 22 Nov, 2021 1 commit
  6. 19 Nov, 2021 1 commit
    • Daniel Kochmański's avatar
      compiler: better checking whether a variable may be introduced · 6aa02de4
      Daniel Kochmański authored
      Previously c1make-var checked whether the symbol NAME is CONSTANTP, but
      ECL expands symbol macros in CONSTANTP so this returned false positives.
      A similar concern applied to the CMP-ENV-REGISTER-SYMBOL-MACRO-FUNCTION.
      
      C1EXPR-INNER when encountered a symbol tried to yield C1CONSTANT-VALUE
      for if it iwas CONSTANTP - this was correct except for that we didn't
      pass the environment to the predicate and symbols weren't shadowed.
      
      In this commit one function is added to the core - si:constp (with
      similar purpose to si:specialp) and one function to the compiler -
      constant-variable-p (similar to special-variable-p) and they are
      appropriately used when necessary. A regression test is added.
      
      Fixes #662.
      6aa02de4
  7. 06 Nov, 2021 2 commits
  8. 05 Nov, 2021 1 commit
  9. 19 Oct, 2021 1 commit
  10. 16 Oct, 2021 1 commit
  11. 05 Oct, 2021 2 commits
  12. 19 Sep, 2021 1 commit
  13. 04 Sep, 2021 1 commit
  14. 29 Aug, 2021 13 commits
  15. 20 Aug, 2021 3 commits
  16. 19 Aug, 2021 4 commits