v1.2.5.12
What's Changed
Breaking Changes 🛠
- Add policy that allows to strength-reduce narrowing casts to slices by @kfcripps in #5541
- Rename
HeaderStackExpression->ArrayExpressioneverywhere by @kfcripps in #5545
P4 Specification Implementation
Changes to the Compiler Core
- Allow
SymbolicArrayto represent arrays of non-header/header union types by @kfcripps in #5516 - Add additional optimizations to
SimplifySelectCasesmidend pass by @kfcripps in #5372 - Fixing Compiler bug by @MathewZach123 in #5557
- [Feat] Add partial support for loops (ForStatement) inside action bodies by @Vineet1101 in #5552
Changes to the eBPF Back Ends
- Fix emit inside if-statement in deparser by @atta-ullah01 in #5502
Changes to the P4Tools Back End
- [P4Testgen] Fix repeated execution of the same table instance on a single path. by @fruffy in #5531
- [P4Testgen][eBPF] Quote STF identifiers in generated
addcommands by @Copilot in #5542 - [P4Smith] Correctly generate 1-bit concat expressions by @eyg1331 in #5551
- [P4Smith] Initialize arrays using tuple expressions by @eyg1331 in #5546
Changes to the Tofino Back End
- Fix non-unity/unified build by @ChrisDodd in #5526
Other Changes
- Bump peter-evans/create-or-update-comment from 3 to 5 by @dependabot[bot] in #5513
- Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in #5512
- Bump actions/github-script from 7 to 8 by @dependabot[bot] in #5511
- Bump actions/download-artifact from 7 to 8 by @dependabot[bot] in #5510
- Bump docker/login-action from 3 to 4 by @dependabot[bot] in #5520
- Bump docker/setup-buildx-action from 3 to 4 by @dependabot[bot] in #5518
- Bump docker/build-push-action from 6 to 7 by @dependabot[bot] in #5519
- Increase minimum required BISON version to 3.3 by @kfcripps in #5522
- Update the build instructions in the README to be generator-independent. by @fruffy in #5517
- bazel: add p4include package, testdata exports, and fix macOS build by @smolkaj in #5533
- Install PI for BMv2 PTF CI build script. by @fruffy in #5536
- Fix wrong expected output of
gauntlet_enum_assign-bmv2.stf(#5540) by @shyukahn in #5543 - Use bmv2 PPA in CI by @chreekat in #5534
- Add quotes to prevent potential word splittings that involve
rm -r?f|rm -frand variable expansions by @zzmic in #5523 - Fix header size to be multiple of 8 bits by @pacokwon in #5553
- Refresh P4C's ccache setup. by @fruffy in #5561
- Add missing include. by @smolkaj in #5564
- [Bazel] migrate from deprecated to canonical p4include target by @smolkaj in #5566
- Add missing include by @smolkaj in #5565
- [Bazel] Fix: prod code should not pull in test code by @smolkaj in #5562
- Move includes outside of namespace by @smolkaj in #5563
- cmake: add FORMATTING_ONLY option to run formatters without build deps by @Vineet1101 in #5554
- build: fix ctags target name and filter missing directories by @Vineet1101 in #5559
- Enable Bazel BUILD P4Testgen targets for eBPF and PNA by @qobilidop in #5575
- Automated Release v1.2.5.12 by @github-actions[bot] in #5577
New Contributors
Full Changelog: v1.2.5.11...v1.2.5.12