I am seeing this assembler warning using gcc version 2.95.3 20010315:

 {standard input}:332: Warning: using `%si' instead of `%esi' due to `w' uffix
 {standard input}:332: Warning: using `%ax' instead of `%eax' due to `w' suffix

This is while compiling commands/trigger.c and it happens in
CreateTrigger().  The actual assember instruction is marked below.  Any
ideas if our code is somehow triggering this warning?

I believe it is this line of C code:

    TRIGGER_CLEAR_TYPE(tgtype);
--> if (stmt->before)
        TRIGGER_SETT_BEFORE(tgtype);
 
---------------------------------------------------------------------------

.L22:
        call newoid
        movl %eax,-404(%ebp)
        movl 8(%ebp),%ecx
        cmpb $0,26(%ecx)
        je .L24
        pushl %eax
        pushl $.LC7
        pushl $64
        leal -360(%ebp),%ebx
        pushl %ebx
        call snprintf
        movl %ebx,-412(%ebp)
        movl 8(%ebp),%eax
        movl 4(%eax),%eax
        movl %eax,-416(%ebp)
        addl $16,%esp
        jmp .L25
        .p2align 4,,7
.L24:
        movl 8(%ebp),%edx
        movl 4(%edx),%edx
        movl %edx,-412(%ebp)
        movl $.LC8,-416(%ebp)
.L25:
        movl 8(%ebp),%ecx
        cmpb $0,20(%ecx)
        setne %al
        andl $255,%eax
        movl %eax,%esi
-->     addw %eax,%esi
        cmpb $0,21(%ecx)
        je .L27
        orl $1,%esi

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

Fri, 27 Jun 2003 19:15:14 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Assembler error
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing this assembler warning using gcc version 2.95.3 20010315:
>  {standard input}:332: Warning: using `%si' instead of `%esi' due to `w' uffix
>  {standard input}:332: Warning: using `%ax' instead of `%eax' due to `w' suffix

Bizarro.  When did you start to see that?  AFAIR trigger.c hasn't
changed much recently.

FWIW, I have never seen any assembler gripes using gcc 2.95.3 on HPPA.

			regards, tom lane

Sat, 28 Jun 2003 00:41:38 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Assembler error 
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I am seeing this assembler warning using gcc version 2.95.3 20010315:
> >  {standard input}:332: Warning: using `%si' instead of `%esi' due to `w' uffix
> >  {standard input}:332: Warning: using `%ax' instead of `%eax' due to `w' suffix
> 
> Bizarro.  When did you start to see that?  AFAIR trigger.c hasn't
> changed much recently.
> 
> FWIW, I have never seen any assembler gripes using gcc 2.95.3 on HPPA.

I think it came with my upgrade to BSD/OS 4.3.  I just programmed my
test script to ignore it.

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

Sat, 28 Jun 2003 13:23:50 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Assembler error