ISSOtm
75a07a90f8
Always initialise section->data to avoid an uninit read
...
The addition of SDCC objects required a change in the logic of
`mergeSections()` to dispatch based on `->data` instead of
`sect_HasData`, which implicitly assumes that `->data` is
always initialised (maybe NULL).
However, RGBDS sections did not do that!
2022-12-02 22:39:31 +01:00
ISSOtm
ec2d1312ef
Remove auto parameter to -flto
...
Not all supported compilers support the argument;
the move was a bit premature.
2022-11-15 19:49:04 +01:00
ISSOtm
03b6dd9321
Only cache dependency directories instead of whole test/
...
Otherwise, changes made to the test suite are not picked up
2022-11-15 19:49:04 +01:00
ISSOtm
a16d3d6405
Fail RGBGFX test suite if support test programs fail to be built
2022-11-15 19:49:04 +01:00
ISSOtm
3e5cd8ce1a
Use a special name for stdin/stdout in diagnostics
2022-11-15 19:49:04 +01:00
ISSOtm
6902387991
Allow rgbgfx - for stdin and stdout
...
Closes #1087
2022-11-15 19:49:04 +01:00
ISSOtm
62b4f2b264
Upgrade to checkout action v3
...
No code changes, just uses Node 16 instead of the
deprecated Node 12
2022-11-13 14:33:03 +01:00
Rangi
79748afdc4
Align the "; Next union/fragment" comments with their symbols
2022-11-06 23:55:15 +01:00
Rangi
32cb0558e4
Print "; Next union/fragment" between "pieces" in .map file
...
Resolves #1099
2022-11-06 23:55:15 +01:00
rlewicki
92b2ac3c8c
Remove duplicated EMPTY label in case no bank memory is used
2022-11-03 19:54:21 +01:00
rlewicki
0e67298dff
Fix indention when writing EMPTY label inside link output.c file
2022-11-03 19:54:21 +01:00
Robert Lewicki
f6d218ed36
Fix regression tests failing due to invalid cache being restored ( #1104 )
2022-11-01 14:27:40 +01:00
Robert Lewicki
1a9fc964df
#1082 Add cache check for external repositories used during testing ( #1100 )
...
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com >
Co-authored-by: Eldred Habert <eldredhabert0@gmail.com >
2022-10-25 08:39:19 +02:00
ISSOtm
48248faab0
Suppress CMake project maintainer warnings in CI
2022-10-16 12:21:54 +02:00
ISSOtm
58181c2d73
Hoist common Windows dep grabbing code to a script
...
Function courtesy of @aaaaaa123456789
2022-10-16 12:21:54 +02:00
ISSOtm
0f86084e08
Rename actions folder as scripts
...
It's clearer this way.
2022-10-16 12:21:54 +02:00
ISSOtm
c8e602dec1
Mangle the name of absolute sections
...
They are unlikely to be unique across files, actually
2022-10-15 23:16:04 +02:00
ISSOtm
b168717e91
Update zlib to 1.2.13
...
1.2.12 is no longer provided by upstream anymore,
which fails Windows CI
2022-10-15 22:02:34 +02:00
ISSOtm
930c2ac328
Require Bison 3.0.0 in CMakeLists
...
We actually require that version, so be explicit about it
to provide better error messages.
2022-10-13 11:02:33 +02:00
ISSOtm
28737d5778
Enable GLIBCXX_ASSERTIONS in make develop
...
Not sure it's very portable, but this is only the dev config
2022-10-12 01:23:37 +02:00
ISSOtm
12ba057b4f
Check that colour slot is non-empty before checking for gray-ness
...
This is otherwise UB, and trips a GLIBCXX assertion (when enabled).
2022-10-11 21:39:32 +02:00
ISSOtm
0e0876b17f
Print addr ranges for empty blocks as well
...
Mirrors what sections do, for clarity & consistency
2022-10-07 16:04:02 +02:00
Eldred Habert
b28eea24fc
Update .github/workflows/create-release-artifacts.yaml
...
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com >
2022-10-04 12:50:46 -04:00
ISSOtm
a1e59ddc3d
Avoid -x c++ affecting ${PNGLDLIBS}
...
version.c doesn't link to anything from libpng, so it'll be fine
2022-10-04 12:50:46 -04:00
ISSOtm
3fbdba31bf
Build macOS binaries as well for releases
2022-10-04 12:50:46 -04:00
ISSOtm
d90a7e4302
Terminate RGBGFX when opening a file fails
...
`std::filebuf::open`'s result must be checked, though that's not obvious.
2022-10-04 13:58:05 +02:00
ISSOtm
7377a14245
Improve RGBASM's "input files" error messages slightly
2022-10-03 17:17:19 +02:00
Eldred Habert
e2136d60b2
Print a more user-friendly error message for leftover diff marks ( #1089 )
2022-10-03 16:52:29 +02:00
ISSOtm
74e40654e6
Sync release docs CI workflow with master
...
We should look into reusable workflows, really.
https://docs.github.com/en/actions/using-workflows/reusing-workflows
2022-10-03 01:50:17 +02:00
Rangi
f90857032c
Version 0.6.0
v0.6.0
2022-10-02 19:08:13 -04:00
Rangi
1653a9a3f2
Use -flto=auto
2022-10-02 13:50:35 -04:00
Rangi
3c049983f1
Fixed-point functions can take specific precision ( #1086 )
2022-10-02 16:56:08 +02:00
Rangi
8553b61a94
Fixed-point values can use all 32-Q magnitude bits ( #1085 )
2022-10-02 11:08:38 +02:00
ISSOtm
ab12c474d2
Properly exclude GCC from macOS matrices
2022-10-02 02:50:38 -04:00
ISSOtm
8ccbd9dc36
Properly build and link against libpng
...
Doing it right this time.
Also bundling the newly required DLLs.
2022-10-02 02:50:38 -04:00
ISSOtm
b8307432b8
Fix use of bitwise OR instead of logical
...
Thanks, Clang!
2022-10-02 02:50:38 -04:00
ISSOtm
80a62a8a03
Update CI target OSes
...
Remove platforms deprecated by GitHub Actions
Add new platforms supported by the same
2022-10-02 02:50:38 -04:00
Rangi
bbe28faab4
Sort rgbgfx's -r option alphabetically
2022-10-01 21:22:39 -04:00
Rangi
106ad30e5a
Allow fixed-point constants to have unsigned range ( #1084 )
...
For example with Q.4, $F0 is 15.0, which no longer warns
2022-10-01 23:32:34 +02:00
Rangi
a1107fc5cf
Refactor !!x to x != 0
...
Also limit comments and docs to single "!"s
2022-10-01 14:09:02 -04:00
Rangi
969412af24
Parse HEX palettes ( #1081 )
...
Addresses one item of #1065
2022-10-01 12:45:00 -04:00
Eldred Habert
c10345f26d
Comply with sym file spec ( #1078 )
...
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com >
2022-10-01 12:35:00 -04:00
ISSOtm
6fd5c94b27
Document gbc pal spec format
...
I *knew* I had forgotten something!
2022-10-01 10:48:40 +02:00
Rangi
ddb1d0b6aa
Parse GPL palettes, and fix PSP palette parsing ( #1080 )
...
Addresses one item of #1065
2022-10-01 10:46:13 +02:00
Rangi
08545643cf
Only define @ and _NARG when they have values ( #1073 )
...
Fixes #1069
Co-authored-by: Eldred Habert <eldredhabert0@gmail.com >
2022-10-01 01:04:03 +02:00
Rangi
140c6b169e
Patch pokecrystal to use embedded palettes
2022-10-01 00:51:14 +02:00
Rangi
d86d24bdc1
Remove legacy support for generating a palette with unused colors
...
If you need an explicit set of colors, possibly including
unused ones, use `-c`.
Fixes #1062
2022-10-01 00:51:14 +02:00
Eldred Habert
a1a919579c
Add support for GBC palette dumps to -c ( #1075 )
...
Fixes #1063
2022-09-30 17:09:28 -04:00
Rangi
a47da5f71f
Deprecate __FILE__ and __LINE__ ( #1072 )
...
Unlike C, these constants are not convenient for logging in macros,
since they always report the same data (their location in the macro).
Fixes #1068
2022-09-30 19:48:30 +02:00
Rangi
68ad926279
Patch projects so CI will build ( #1071 )
...
Fixes #1070
2022-09-30 12:19:11 +02:00