Re: Sun performance - Major discovery!

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jeff <threshar(at)torgo(dot)978(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Sun performance - Major discovery!
Date: 2003-10-09 15:28:01
Message-ID: 200310091528.h99FS2u04665@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


What is the performance win for the -fast flag again?

---------------------------------------------------------------------------

Jeff wrote:
> On Thu, 9 Oct 2003, Bruce Momjian wrote:
>
> >
> > So you want -fast added as default for non-gcc Solaris? You mentioned
> > there is a warning generated that we have to deal with?
> >
>
> Yeah, suncc generates a warning for _every_ file that says:
> Warning: -xarch=native has been explicitly specified, or implicitly
> specified by a macro option, -xarch=native on this architecture implies
> -xarch=v8plusa which generates code that does not run on pre-UltraSPARC
> processors
>
> And then I get various warnings here and there...
>
> lots of "statement not reached" as in ecpg's type.c module
> The offending code is a big switch statement like:
> case ECPGt_bool:
> return ("ECPGt_bool");
> break;
>
> And then any functiont aht uses PG_RETURN_NULL generates " warning:
> end-of-loop code not reached"
>
> and a bunch of "constant promoted to unsigned long long"
>
>
> And some places such as in fe-exec.c have code like this:
> buflen = strlen(strtext); /* will shrink, also we discover
> if
>
> where strtext is an unsigned char * which generates warning: argument #1
> is incompatible with prototype:
>
> and then various other type mismatches here and there.
>
> I skimmed through the manpage.. it doesn't look like we can supress
> these..
>
>
> Not sure we want it to look like we have bad code if someone uses cc.
> perhaps issue a ./configure notice or something?
>
> gcc compiles things fine.
>
>
> --
> Jeff Trout <jeff(at)jefftrout(dot)com>
> http://www.jefftrout.com/
> http://www.stuarthamm.net/
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2003-10-09 15:30:36 Re: Linux filesystem shootout
Previous Message Greg Spiegelberg 2003-10-09 15:26:20 Re: Compare rows