Re: Re: [PATCHES] s_lock.h cleanup

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [PATCHES] s_lock.h cleanup
Date: 2001-01-19 18:39:22
Message-ID: 200101191839.NAA03380@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> > Bruce Momjian writes:
> >> In looking at the VAX ASM problem, I realized that the ASM in s_lock.h
> >> is all formatted differently, making it even more confusing. I have
> >> applied the following patch to s_lock.h to try and clean it up.
>
> > I don't believe in this patch at all. It makes the assumption that all
> > assemblers have equally forgiving lexical rules as a certain subset of
> > said assemblers. For example, the VAX code does not look at all like the
> > one back when it still worked.
>
> Good point. I think it's safe to use the split-up-string-literal
> feature, but assuming that ';' can replace '\n' is sheer folly, and so
> is assuming that whitespace doesn't matter (ie, that opcodes starting
> in column 1 are OK). Bruce, I'd suggest a format more like
>
> "[label] opcode operands \n"
>
> for each line of assembly code.

Interestingly, we have very few non-gcc ASM entries in s_lock.h. The
only non-gcc one I see are Univel/i386, and I didn't touch that. Isn't
the semicolon the standard command terminator for all gcc assemblers?

I see non-gcc stuff in s_lock.c, but I didn't touch that. I also see
volatile missing in s_lock.c, which I will add for GCC entries.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-01-19 18:40:16 Re: Re: [PATCHES] s_lock.h cleanup
Previous Message Tom Lane 2001-01-19 18:37:02 Re: Re: [PATCHES] s_lock.h cleanup

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-01-19 18:40:16 Re: Re: [PATCHES] s_lock.h cleanup
Previous Message Tom Lane 2001-01-19 18:37:02 Re: Re: [PATCHES] s_lock.h cleanup