git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Cc: Nicolas Pitre <nico@cam.org>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Aug 2009, #04; Sun, 23)
Date: Mon, 24 Aug 2009 15:03:21 -0700	[thread overview]
Message-ID: <7vy6p86f9y.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <YE4QMh4rA1r2X3ZG5TvGJZspm0UdCWyP-r6KFthp8PuFewAhHPJ3GQ@cipher.nrlssc.navy.mil> (Brandon Casey's message of "Mon\, 24 Aug 2009 16\:29\:00 -0500")

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.

  reply	other threads:[~2009-08-24 22:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-24  1:01 What's cooking in git.git (Aug 2009, #04; Sun, 23) Junio C Hamano
2009-08-24  1:26 ` Nicolas Pitre
2009-08-24 21:29   ` Brandon Casey
2009-08-24 22:03     ` Junio C Hamano [this message]
2009-08-25  0:35       ` Brandon Casey
2009-08-26 23:07     ` Brandon Casey
2009-08-24 14:45 ` sr/gfi-options, was " Johannes Schindelin
2009-08-24 18:45   ` Sverre Rabbelier
2009-08-24 19:09     ` Daniel Barkalow
2009-08-24 19:44       ` Sverre Rabbelier
2009-08-24 15:22 ` Johan Herland
2009-08-24 18:26 ` Adam Simpkins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vy6p86f9y.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=brandon.casey.ctr@nrlssc.navy.mil \
    --cc=git@vger.kernel.org \
    --cc=nico@cam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).