Thread (1 message) 1 message, 1 author, 2016-06-15

Re: FLEX_ARRAY=1 causes SIGSEGV on SPARC

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:00

"Shawn O. Pearce" [off-list ref] writes:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help