Re: Re: [PATCHES] s_lock.h cleanup

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Re: [PATCHES] s_lock.h cleanup
Дата
Msg-id 200101191842.NAA03543@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Re: [PATCHES] s_lock.h cleanup  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: [PATCHES] s_lock.h cleanup
Список pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I believe the formatting problem was that some code had
> > "command;command; : lkjasfd : asldfk" while some had them spread over
> > separate lines, and others used \n\, all very randomly.  Now at least
> > they are all consistent and use similar formatting.
> 
> And they may all be broken, except for the one(s) you have tested.
> You shouldn't be assuming that a platform that uses gcc necessarily
> also uses gas.
> 
>             regards, tom lane

I can tell you that they all used __asm__, and all used the colon
terminators for each __asm__ block:
*  __asm__ __volatile__(*          "command;"*          "command;"*          "command;"*      :   "=r"(_res)
returnvalue, in register*      :   "r"(lock)           argument, 'lock pointer', in register*      :   "r0");
  inline code uses this register
 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [PATCHES] s_lock.h cleanup
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [PATCHES] s_lock.h cleanup