Haolan
065126e270
feat: make defer tls stub for baremetal
2025-11-14 16:13:43 +08:00
Haolan
552156ff40
fix: adjust gc stats struct
2025-11-14 16:13:43 +08:00
Haolan
36e84196c6
test: add test for gc stats
2025-11-14 16:13:43 +08:00
Haolan
7f1e07755a
ci: use llgo test instead
...
ci: use llgo test instead
2025-11-14 16:13:41 +08:00
Haolan
af27d0475d
revert some unnecessary change
2025-11-14 16:13:41 +08:00
Haolan
bb29e8c768
docs: add commets for gc mutex
...
docs: add commets for tinygo gc
2025-11-14 16:13:38 +08:00
Haolan
eec2c271bd
feat: replace println with gcPanic
2025-11-14 16:13:38 +08:00
Haolan
1ed924ed50
fix: add pthread GC support for baremetal
...
test: fix test logic
chore: format codes
2025-11-14 16:13:34 +08:00
Haolan
c46ca84122
revert disabling stdio buffer
2025-11-14 16:13:34 +08:00
Haolan
b36be05c1e
fix: GC() signature
2025-11-14 16:13:34 +08:00
Haolan
66a537ad29
fix: add gc dummy mutex
2025-11-14 16:13:34 +08:00
Haolan
33a00dff1b
fix: invalid import and improve tests
...
refactor: remove initGC
test: add test for GC
fix: invalid import in z_gc
ci: test baremetal GC for coverage
ci: test baremetal GC for coverage
2025-11-14 16:13:03 +08:00
Haolan
e4a69ce413
fix: disable buffers
2025-11-14 16:13:03 +08:00
Haolan
531f69ae6a
fix: bdwgc.init() causing archive mode building fail
...
P
P
P
2025-11-14 16:13:03 +08:00
Haolan
812dfd45c9
feat: implement baremetal GC
...
fix: pthread gc
fix: xiao-esp32c3 symbol
refactor: use clite memset instead of linking
fix: stack top symbol
2025-11-14 16:12:56 +08:00
xushiwei
2f65c98eb4
Merge pull request #1348 from cpunion/feature/defer-loop
...
defer: enable loop lowering
2025-11-13 17:59:26 +08:00
Li Jie
aeb5d82d3e
ssa: remove unreachable switch case
2025-11-13 16:15:36 +08:00
Li Jie
317de80b42
test: add nested defer/loop/branch/recover tests and fix mixed branch recover mapping
2025-11-13 16:15:33 +08:00
Li Jie
0455ad4443
ssa: Add test for >64 conditional defers; cover panic at eh.go:252-254
2025-11-13 15:48:50 +08:00
Li Jie
e459ca928b
runtime: remove overlays for defer workaround
2025-11-13 15:48:50 +08:00
Li Jie
21fef123d2
di: clean unreachable code
2025-11-13 15:48:50 +08:00
Li Jie
983a189c18
test: cover defer recover and nested loops
2025-11-13 15:48:49 +08:00
Li Jie
cb173f91d0
ssa: rely on runtime thread defer TLS
2025-11-13 15:48:49 +08:00
Li Jie
30bde9f6b5
tls: stub handle for go test
2025-11-13 15:48:49 +08:00
Li Jie
3307860d33
ssa: avoid redundant thread defer update
2025-11-13 15:48:49 +08:00
Li Jie
16709411a0
defer: enable loop lowering
2025-11-13 15:48:46 +08:00
xushiwei
3f8c95cf87
Merge pull request #1334 from goplus/dependabot/go_modules/github.com/goplus/gogen-1.19.5
...
chore(deps): bump github.com/goplus/gogen from 1.19.3 to 1.19.5
2025-11-13 07:49:29 +08:00
xushiwei
0dbe528e6d
Merge pull request #1304 from MeteorsLiu/impl-stacksave
...
feat: implement `llgo.stackSave`
2025-11-13 07:48:01 +08:00
dependabot[bot]
91f6ad9bfa
chore(deps): bump github.com/goplus/gogen from 1.19.3 to 1.19.5
...
Bumps [github.com/goplus/gogen](https://github.com/goplus/gogen ) from 1.19.3 to 1.19.5.
- [Release notes](https://github.com/goplus/gogen/releases )
- [Commits](https://github.com/goplus/gogen/compare/v1.19.3...v1.19.5 )
---
updated-dependencies:
- dependency-name: github.com/goplus/gogen
dependency-version: 1.19.5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 23:40:43 +00:00
xushiwei
4d1906d722
Merge pull request #1391 from goplus/dependabot/go_modules/github.com/goplus/lib-0.3.1
...
chore(deps): bump github.com/goplus/lib from 0.3.0 to 0.3.1
2025-11-12 07:38:32 +08:00
dependabot[bot]
ff4a180860
chore(deps): bump github.com/goplus/lib from 0.3.0 to 0.3.1
...
Bumps [github.com/goplus/lib](https://github.com/goplus/lib ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/goplus/lib/releases )
- [Commits](https://github.com/goplus/lib/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: github.com/goplus/lib
dependency-version: 0.3.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-11-11 23:19:50 +00:00
xushiwei
7ce2733edf
Merge pull request #1383 from luoliwoshang/feat/nil/recover
...
fix(runtime): restore SIGSEGV signal handler for non-wasm platforms
2025-11-12 06:43:02 +08:00
luoliwoshang
2363d28d57
feat(runtime): add SIGSEGV signal handler to convert nil pointer dereference to recoverable panic
...
- Add z_rt_default.go with signal handler for SIGSEGV on non-wasm platforms
- Convert segmentation faults from nil pointer access to Go panic
- Enable recover() to catch nil pointer dereference errors
- Use build tag (!wasm) to maintain wasm platform compatibility
- Remove commented-out signal handling code from z_rt.go
This aligns llgo's behavior with standard Go, where accessing nil pointer
fields triggers a recoverable panic instead of immediate program crash.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-10 15:15:51 +08:00
xushiwei
830e8e7058
Merge pull request #1381 from goplus/xgopilot/claude/document-outll-process-1730340128
...
docs(CLAUDE.md): document out.ll update process after IR changes
2025-11-10 13:55:01 +08:00
xushiwei
34caf518a1
Merge pull request #1386 from goplus/xgopilot/claude/issue-1385-1762256384
...
chore: remove deprecated //export LLGoVersion comment
2025-11-10 13:53:02 +08:00
xushiwei
a676ba29db
Merge pull request #1387 from luoliwoshang/runtime/iface/func
...
fix(runtime): segmentation fault when calling interface private methods cross-package
2025-11-10 13:51:42 +08:00
xushiwei
d368cade1c
Merge pull request #1388 from luoliwoshang/ci/no-auto-update
...
ci:avoid auto upgrade before brew install
2025-11-10 13:47:43 +08:00
luoliwoshang
4e374a99ff
test:refression test for https://github.com/goplus/llgo/issues/1370
...
Co-authored-by: xgopilot <noreply@goplus.org >
Co-authored-by: Claude <noreply@anthropic.com >
2025-11-06 21:02:36 +08:00
luoliwoshang
41b403aef7
fix(runtime): segmentation fault when calling interface private methods cross-package
...
Co-authored-by: xgopilot <noreply@goplus.org >
Co-authored-by: Claude <noreply@anthropic.com >
2025-11-06 21:00:37 +08:00
luoliwoshang
cda9d682f2
ci:avoid brew auto upgrade dependant
2025-11-06 19:13:11 +08:00
xgopilot
742bfd95a2
chore: remove deprecated //export LLGoVersion comment
...
Removes the deprecated //export LLGoVersion comment from internal/env/version.go
as it is no longer needed.
Fixes #1385
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-11-04 11:45:10 +00:00
xgopilot
01af858a2e
docs(CLAUDE.md): remove redundant test failure mention
...
Removed the sentence about test failures as requested.
The "Why this matters" section now focuses on the benefits
of the process rather than the negative consequences.
🤖 Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-31 03:43:06 +00:00
xgopilot
c557aa2af1
docs(CLAUDE.md): remove pro tip line
...
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-31 03:34:08 +00:00
xgopilot
c15c7a05b7
docs(CLAUDE.md): add gentests for batch out.ll updates
...
Updated the out.ll update workflow to document both tools:
- gentests: batch regeneration of all test files (recommended)
- llgen: individual test directory regeneration (for inspection)
Verified gentests works correctly by testing the regeneration
of all out.ll files. The tool successfully processes all
non-Python test directories.
🤖 Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-31 03:27:49 +00:00
xgopilot
8f5f36e447
docs(CLAUDE.md): document out.ll update process after IR changes
...
Add comprehensive documentation explaining:
- What out.ll files are (IR comparison test files)
- When to update them (after modifying IR generation logic)
- How to update them (reinstall llgen, regenerate files)
- Why this matters (test consistency and regression detection)
This documentation will help avoid wasting time on repeatedly updating
test files, as it clarifies the required workflow when making compiler
changes that affect IR generation.
Generated with [codeagent](https://github.com/qbox/codeagent )
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com >
2025-10-31 02:43:06 +00:00
Haolan
bf6f785988
Merge branch 'main' of https://github.com/goplus/llgo into impl-stacksave
2025-10-30 13:48:13 +08:00
xushiwei
86cafff113
Merge pull request #1375 from goplus/dependabot/github_actions/actions/download-artifact-6
...
chore(deps): bump actions/download-artifact from 5 to 6
2025-10-27 16:37:07 +08:00
xushiwei
3c88949557
Merge pull request #1376 from goplus/dependabot/github_actions/actions/upload-artifact-5
...
chore(deps): bump actions/upload-artifact from 4 to 5
2025-10-27 16:36:57 +08:00
dependabot[bot]
533ba9ebd8
chore(deps): bump actions/upload-artifact from 4 to 5
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-27 00:17:07 +00:00
dependabot[bot]
f34062166b
chore(deps): bump actions/download-artifact from 5 to 6
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-27 00:17:03 +00:00