git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Testsuite failure on s390x and sparc64 after 6840fe9ee2

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 1, 2025, 11:43 UTC
Message-ID
<Z-vRQ-FNv7WD02hl@pks.im>
In-Reply-To
<20250401031030.GB1087913@coredump.intra.peff.net>
On Mon, Mar 31, 2025 at 11:10:30PM -0400, Jeff King wrote:
Show 10 quoted lines
> On Mon, Mar 31, 2025 at 10:33:58PM -0400, Jeff King wrote:
> 
> > That would be nice. I think we've discussed type safety for
> > parse-options before, but IIRC none of the solutions were very
> > satisfying. But this sounds like a relatively low-effort approach that
> > buys us something, at least. I wonder if it could even be extended to
> > use __builtin_types_compatible() on platforms that support it.
> 
> So here's a slightly fancier version that uses the gcc builtin when it's
> available:

Thanks for these! I'd also like to spin this even further: right now we don't really care about the precision of the underlying integer types at all. While we could force all users to the same type via your mechanism, I think that'd ultimately be quite awkward. Another way would be to use one macro per underlying integer type, but that would quickly explode in scope.

I'll instead try to extend the parse-options interface so that we track the precision of the underlying integer and then produce an error when the parsed integer exceeds that precision.

I'll send a patch series later this week.
Patrick
Previous: Jeff KingNext: Patrick Steinhardt
Message 13 of 14 in “Testsuite failure on s390x and sparc64 after 6840fe9ee2”
  1. John Paul Adrian GlaubitzMar 26, 2025
  2. Todd ZullingerMar 26, 2025
  3. Patrick SteinhardtMar 28, 2025
  4. Patrick SteinhardtMar 28, 2025
  5. John Paul Adrian GlaubitzMar 28, 2025
  6. Todd ZullingerMar 28, 2025
  7. Todd ZullingerMar 28, 2025
  8. Patrick SteinhardtMar 31, 2025
  9. Todd ZullingerMar 31, 2025
  10. SZEDER GáborMar 31, 2025
  11. Jeff KingApr 1, 2025
  12. Jeff KingApr 1, 2025
  13. Patrick SteinhardtApr 1, 2025
  14. Patrick SteinhardtApr 1, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.