Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
396526d8
Commit
396526d8
authored
Aug 26, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust m68k spinlock code to avoid duplicate in-line and not-in-line
definitions on recent Linux systems, per Martin Pitt.
parent
a310a1d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
src/backend/storage/lmgr/s_lock.c
src/backend/storage/lmgr/s_lock.c
+8
-3
src/include/storage/s_lock.h
src/include/storage/s_lock.h
+6
-6
No files found.
src/backend/storage/lmgr/s_lock.c
View file @
396526d8
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.3
7 2005/08/25 17:17:09
tgl Exp $
* $PostgreSQL: pgsql/src/backend/storage/lmgr/s_lock.c,v 1.3
8 2005/08/26 14:47:35
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -135,7 +135,12 @@ s_lock(volatile slock_t *lock, const char *file, int line)
*/
#if defined(__m68k__)
/*
* Note: all the if-tests here probably ought to be testing gcc version
* rather than platform, but I don't have adequate info to know what to
* write. Ideally we'd flush all this in favor of the inline version.
*/
#if defined(__m68k__) && !defined(__linux__)
/* really means: extern int tas(slock_t* **lock); */
static
void
tas_dummy
()
...
...
@@ -169,7 +174,7 @@ _success: \n\
#endif
/* __NetBSD__ && __ELF__ */
);
}
#endif
/* __m68k__ */
#endif
/* __m68k__
&& !__linux__
*/
#else
/* not __GNUC__ */
...
...
src/include/storage/s_lock.h
View file @
396526d8
...
...
@@ -66,7 +66,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.13
5 2005/08/25 17:17:10
tgl Exp $
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.13
6 2005/08/26 14:47:35
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -191,7 +191,7 @@ tas(volatile slock_t *lock)
return
(
int
)
ret
;
}
#else
#else
/* __INTEL_COMPILER */
static
__inline__
int
tas
(
volatile
slock_t
*
lock
)
...
...
@@ -203,7 +203,7 @@ tas(volatile slock_t *lock)
return
ret
;
}
#endif
#endif
/* __INTEL_COMPILER */
#endif
/* __ia64__ || __ia64 */
...
...
@@ -328,7 +328,7 @@ do \
#endif
/* powerpc */
#if
defined(__mc68000__
) && defined(__linux__)
#if
(defined(__mc68000__) || defined(__m68k__)
) && defined(__linux__)
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
@@ -350,7 +350,7 @@ tas(volatile slock_t *lock)
return
rv
;
}
#endif
/*
defined(__mc68000__) && defined(__linux__)
*/
#endif
/*
(__mc68000__ || __m68k__) && __linux__
*/
#if defined(__vax__)
...
...
@@ -491,7 +491,7 @@ tas(volatile slock_t *lock)
/* These live in s_lock.c, but only for gcc */
#if defined(__m68k__)
#if defined(__m68k__)
&& !defined(__linux__)
#define HAS_TEST_AND_SET
typedef
unsigned
char
slock_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment