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

Re: What's cooking in git.git (Aug 2009, #04; Sun, 23)

From
BCBrandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Date
Aug 25, 2009, 00:35 UTC
Message-ID
<si8ZJkqdFsO4XRM_8BlHbWAkdCptmCxCpXpvpVJRmxHJxLhqx5gCyw@cipher.nrlssc.navy.mil>
In-Reply-To
<7vy6p86f9y.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 39 quoted lines
> Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil> writes:
> 
>> Nicolas is right, the code compiles and executes correctly on Solaris as-is.
>>
>> Here is the state of the two unsubmitted optimization patches:
>>
>>   1) Change things like __i386__ to __i386 since GCC defines both, but
>>      SUNWspro only defines __i386.
>>
>>      This works correctly in my testing.  I'm assuming that a test for
>>      __amd64 is not necessary and expect that __x86_64 is set whenever
>>      __amd64 is set.
>>
>>   2) Set __GNUC__ on SUNWspro v5.10 and up.
>>
>>      This compiles correctly and passes the test suite, but produces
>>      warnings for __attribute__'s that sun's compiler has not implemented.
>>      This produces a very noisy compile.
>>
>> I've wanted to do some performance testing to see whether this actually
>> produces an _improvement_.  I'll try today.
> 
> Thanks.
> 
> I agree (1) would be a reasonable thing to do.
> 
> (2) feels very iffy/hacky.  As far as I can see, by defining __GNUC__,
> Solaris would also use builtin-alloca in compat/regex/regex.c, which may
> or may not be what you want.
> 
> It might be cleaner to do:
> 
> 	#if __GNUC__ || SUNWspro > 5.10
>         #define GCC_LIKE_INLINE_ASM
>         #define GCC_LIKE_STMT_EXPR
>         #endif
> 
> and use them, instead of __GNUC__, to enable the inline assembly used in
> the block sha1 codepath.
Yes, this sounds saner, but alas it will have to be tomorrow...
-brandon
Previous: Junio C HamanoNext: Brandon Casey
Message 5 of 12 in “What's cooking in git.git (Aug 2009, #04; Sun, 23)”
  1. Junio C HamanoAug 24, 2009
  2. Nicolas PitreAug 24, 2009
  3. Brandon CaseyAug 24, 2009
  4. Junio C HamanoAug 24, 2009
  5. Brandon CaseyAug 25, 2009
  6. Brandon CaseyAug 26, 2009
  7. sr/gfi-options, was Re: What's cooking in git.git (Aug 2009, #04; Sun, 23)Johannes Schindelin, Aug 24, 2009
  8. Sverre RabbelierAug 24, 2009
  9. Daniel BarkalowAug 24, 2009
  10. Sverre RabbelierAug 24, 2009
  11. Johan HerlandAug 24, 2009
  12. Adam SimpkinsAug 24, 2009

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.