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
105907f7
Commit
105907f7
authored
22 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Put in defense against gcc -ffast-math.
parent
316d4e29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+47
-0
47 additions, 0 deletions
configure
configure.in
+10
-1
10 additions, 1 deletion
configure.in
with
57 additions
and
1 deletion
configure
+
47
−
0
View file @
105907f7
...
...
@@ -2442,6 +2442,7 @@ if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
fi
{
echo
"
$as_me
:
$LINENO
: using CFLAGS=
$CFLAGS
"
>
&5
echo
"
$as_me
: using CFLAGS=
$CFLAGS
"
>
&6
;
}
# Check if the compiler still works with the template settings
echo
"
$as_me
:
$LINENO
: checking whether the C compiler still works"
>
&5
echo
$ECHO_N
"checking whether the C compiler still works...
$ECHO_C
"
>
&6
...
...
@@ -2488,6 +2489,52 @@ echo "$as_me: error: cannot proceed" >&2;}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
rm
-f
conftest.
$ac_objext
conftest
$ac_exeext
conftest.
$ac_ext
# Defend against gcc -ffastmath
if
test
"
$GCC
"
=
yes
;
then
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
#ifdef __FAST_MATH__
choke me
#endif
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
:
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
{
{
echo
"
$as_me
:
$LINENO
: error: do not put -ffast-math in CFLAGS"
>
&5
echo
"
$as_me
: error: do not put -ffast-math in CFLAGS"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
fi
ac_ext
=
c
ac_cpp
=
'$CPP $CPPFLAGS'
ac_compile
=
'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
10
−
1
View file @
105907f7
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.20
9
2002/09/
17 04:27:41 momjian
Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.2
1
0 2002/09/
20 18:38:57 petere
Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -253,12 +253,21 @@ if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g"
fi
AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
# Check if the compiler still works with the template settings
AC_MSG_CHECKING([whether the C compiler still works])
AC_TRY_LINK([], [return 0;],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([cannot proceed])])
# Defend against gcc -ffastmath
if test "$GCC" = yes; then
AC_TRY_COMPILE([], [@%:@ifdef __FAST_MATH__
choke me
@%:@endif], [], [AC_MSG_ERROR([do not put -ffast-math in CFLAGS])])
fi
AC_PROG_CPP
AC_SUBST(GCC)
...
...
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