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

Re: FLEX_ARRAY=1 causes SIGSEGV on SPARC

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 18, 2007, 01:08 UTC
Message-ID
<7vtzmg3j37.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071218010126.GP14735@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 8 quoted lines
> I'll try to track it down tomorrow.  But the immediate workaround was
> to just add '-DFLEX_ARRAY=/* empty */' to my CFLAGS and recompile
> the world.  This compiler accepts the empty FLEX_ARRAY macro but
> I'm not sure what feature test(s) would be necessary to make Git
> able to automatically set that, seeing as how the tests defined in
> 8e97 are perfectly reasonable and didn't pass.
> ..., but will try to come up with a reasonable
> detection patch....

Actually I would be more worried about the breakage in FLEX_ARRAY=1 case than misdetection. Even if your compiler supports the flexible array members, the fallback to FLEX_ARRAY=1 ought to work and you are seeing a case where it doesn't.

Previous: Shawn O. PearceNext: David Kastrup
Message 2 of 3 in “FLEX_ARRAY=1 causes SIGSEGV on SPARC”
  1. Shawn O. PearceDec 18, 2007
  2. Junio C HamanoDec 18, 2007
  3. diff-delta.c: make FLEX_ARRAY=1 work.David Kastrup, Dec 18, 2007

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.