Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chdir flag #4462

Closed
wants to merge 24 commits into from
Closed

Chdir flag #4462

wants to merge 24 commits into from

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    336b9b3 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. mips: fix crash with GOMIPS=softfloat

    `defer` and `GOMIPS=softfloat` together would result in a crash. This
    patch fixes this issue.
    aykevl authored and deadprogram committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    83c98a2 View commit details
    Browse the repository at this point in the history
  2. mips: fix big-endian (GOARCH=mips) support

    I made an awkward mistake, mixing up GOOS and GOARCH. So here is a fix,
    with an associated test.
    aykevl authored and deadprogram committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    1ef1aa7 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. fix: add missing Truncate() function stub to os/file for bare-metal s…

    …ystems
    
    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d144b11 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. version: update to 0.34.0-dev

    sago35 authored and deadprogram committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    753f4b3 View commit details
    Browse the repository at this point in the history
  2. darwin: replace custom syscall package with Go native syscall package

    This required a few compiler and runtime tricks to work, but I ran a
    bunch of tests and it seems fine. (CI will of course do more exhaustive
    testing).
    
    The main benefit here is that we don't need to maintain the darwin
    version of the syscall package, and reduce extra risks for bugs (because
    we reuse the well-tested syscall package). For example, Go 1.23 needed a
    bunch of new constants in the syscall package. That would have been
    avoided if we had used the native syscall package on MacOS.
    aykevl authored and deadprogram committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    105fe9b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e39358d View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. mips: use MIPS32 (instead of MIPS32R2) as the instruction set

    This should widen compatibility a bit, so that older CPUs can also
    execute programs built by TinyGo. The performance may be lower, if
    that's an issue we can look into implementing the proposal here:
    golang/go#60072
    
    This still wouldn't make programs usable on MIPS II CPUs, I suppose we
    can lower compatiblity down to that CPU if needed.
    
    I tried setting the -cpu flag in the QEMU command line to be able to
    test this, but it looks like there are no QEMU CPU models that are
    mips32r1 and have a FPU. So it's difficult to test this.
    aykevl authored and deadprogram committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    25abfff View commit details
    Browse the repository at this point in the history
  2. interp: support big-endian targets

    The interp package was assuming that all targets were little-endian. But
    that's not true: we now have a big-endian target (GOARCH=mips).
    
    This fixes the interp package to use the appropriate byte order for a
    given target.
    aykevl authored and deadprogram committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    73f519b View commit details
    Browse the repository at this point in the history
  3. reflect: support big-endian systems

    The reflect package needs to know the endianness of the system in a few
    places. Before this patch, it assumed little-endian systems. But with
    GOARCH=mips we now have a big-endian system which also needs to be
    supported. So this patch fixes the reflect package to work on big-endian
    systems.
    
    Also, I've updated the tests for MIPS: instead of running the
    little-endian tests, I've changed it to run the big-endian tests
    instead. The two are very similar except for endianness so this should
    be fine. To be sure we won't accidentally break little-endian support,
    I've kept a single MIPS little-endian test (the CGo test, which doesn't
    yet work on big-endian systems anyway).
    aykevl authored and deadprogram committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    4f1b698 View commit details
    Browse the repository at this point in the history
  4. compiler: move some code around to make the next bugfix easier

    This just makes the next fix easier to read.
    aykevl authored and deadprogram committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    ee5bc65 View commit details
    Browse the repository at this point in the history
  5. compiler: fix passing weirdly-padded structs to new goroutines

    The values were stored in the passed object as the values itself (not
    expanded like is common in the calling convention), and read back after
    assuming they were expanded. This often works for simple parameters
    (int, pointer, etc), but not for more complex parameters. Especially
    when there's padding.
    
    Found this while working on `//go:wasmexport`.
    aykevl authored and deadprogram committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    d4cb92f View commit details
    Browse the repository at this point in the history
  6. add board: RAKwireless RAK4631 (tinygo-org#4454)

    targets: add rak4631
    warrenguy authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    1f3e000 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. wasip2: do not export the _start function

    It seems to have been replaced with the Component Model `run` function.
    aykevl authored and deadprogram committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c931bc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78ddc51 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9dcb63c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e13d4ba View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Configuration menu
    Copy the full SHA
    2e47a9c View commit details
    Browse the repository at this point in the history
  2. gitignore: ignore device files generated for Renesas

    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    c201faa View commit details
    Browse the repository at this point in the history
  3. submodules: remove separate renesas-svd repo in favor of more recent …

    …changes.
    
    Signed-off-by: deadprogram <[email protected]>
    deadprogram committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    b5626e7 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Fix tinygo-org#4421: Add -C DIR flag

    Signed-off-by: Roger Standridge <[email protected]>
    archie2x committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    f9caa12 View commit details
    Browse the repository at this point in the history
  2. Fix tinygo-org#4421 -C DIR support go1.19

    Signed-off-by: Roger Standridge <[email protected]>
    archie2x committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    628e107 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Fix tinygo-org#4421 add tests for 'build' and 'run' ('test' already c…

    …hanges directory)
    
    Signed-off-by: Roger Standridge <[email protected]>
    archie2x committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    9c88472 View commit details
    Browse the repository at this point in the history
  2. fix test

    archie2x committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    21a6a92 View commit details
    Browse the repository at this point in the history