Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
23c29268
Commit
23c29268
authored
21 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Add detection of compiler bug.
parent
e560dd35
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/template/unixware
+20
-4
20 additions, 4 deletions
src/template/unixware
with
20 additions
and
4 deletions
src/template/unixware
+
20
−
4
View file @
23c29268
if test "$GCC" = yes; then
if test "$GCC" = yes; then
THREAD_CPPFLAGS="-pthread"
THREAD_CPPFLAGS="-pthread"
else
else
# the -Kno_host is temporary for a bug in the compiler. See -hackers
# The -Kno_host is for a bug in the compiler. See -hackers
# discussion on 7-8/Aug/2003.
# discussion on 7-8/Aug/2003.
# when the 7.1.3UP3 or later compiler is out, we can do a version check.
cat >conftest.c <<__EOF__
CFLAGS="-O -Kinline,no_host"
extern char *strcpy(char *, const char *);
static void f(char *p, int n){
strcpy(p+n,"");
}
void g(void){
f(0, 0);
}
__EOF__
if $CC -c -Kinline conftest.c >conftest.err 2>&1; then
CFLAGS="-O -Kinline"
else
CFLAGS="-O -Kinline,no_host"
fi
rm -f conftest.*
THREAD_CPPFLAGS="-K pthread"
THREAD_CPPFLAGS="-K pthread"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment