postgresql/src/include/storage
Tom Lane 472680c577 Fix s_lock.h PPC assembly code to be compatible with native AIX assembler.
On recent AIX it's necessary to configure gcc to use the native assembler
(because the GNU assembler hasn't been updated to handle AIX 6+).  This
caused PG builds to fail with assembler syntax errors, because we'd try
to compile s_lock.h's gcc asm fragment for PPC, and that assembly code
relied on GNU-style local labels.  We can't substitute normal labels
because it would fail in any file containing more than one inlined use of
tas().  Fortunately, that code is stable enough, and the PPC ISA is simple
enough, that it doesn't seem like too much of a maintenance burden to just
hand-code the branch offsets, removing the need for any labels.

Note that the AIX assembler only accepts "$" for the location counter
pseudo-symbol.  The usual GNU convention is "."; but it appears that all
versions of gas for PPC also accept "$", so in theory this patch will not
break any other PPC platforms.

This has been reported by a few people, but Steve Underwood gets the credit
for being the first to pursue the problem far enough to understand why it
was failing.  Thanks also to Noah Misch for additional testing.
2015-08-29 16:09:25 -04:00
..
backendid.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
barrier.h Mark x86's memory barrier inline assembly as clobbering the cpu flags. 2014-09-19 17:14:17 +02:00
block.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
buf.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
buf_internals.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
buffile.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
bufmgr.h Fix race condition between hot standby and restoring a full-page image. 2014-11-13 20:01:18 +02:00
bufpage.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
copydir.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
fd.h Fix fsync-at-startup code to not treat errors as fatal. 2015-05-28 17:33:03 -04:00
freespace.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
fsm_internals.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
indexfsm.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
ipc.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
item.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
itemid.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
itemptr.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
large_object.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
latch.h Fix WaitLatch() to return promptly when the requested timeout expires. 2012-11-08 20:04:54 -05:00
lmgr.h Fix performance problems with autovacuum truncation in busy workloads. 2013-01-23 13:39:28 -06:00
lock.h Add a small cache of locks owned by a resource owner in ResourceOwner. 2015-08-27 12:22:10 -04:00
lwlock.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
off.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pg_sema.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
pg_shmem.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
pmsignal.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pos.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
predicate.h Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
predicate_internals.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
proc.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
procarray.h Ensure no xid gaps during Hot Standby startup 2013-06-23 14:41:07 +01:00
procsignal.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
reinit.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
relfilenode.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
s_lock.h Fix s_lock.h PPC assembly code to be compatible with native AIX assembler. 2015-08-29 16:09:25 -04:00
shmem.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
sinval.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
sinvaladt.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
smgr.h Remove tabs after spaces in C comments 2014-05-06 11:26:27 -04:00
spin.h Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
standby.h Don't advance checkPoint.nextXid near the end of a checkpoint sequence. 2012-12-02 15:20:03 -05:00