Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
1b246eec
Commit
1b246eec
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
Initial attempt to detect HP C compiler
parent
95456b8e
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
ares/m4/cares-compilers.m4
+36
-1
36 additions, 1 deletion
ares/m4/cares-compilers.m4
m4/curl-compilers.m4
+36
-1
36 additions, 1 deletion
m4/curl-compilers.m4
with
72 additions
and
2 deletions
ares/m4/cares-compilers.m4
+
36
−
1
View file @
1b246eec
...
...
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial
3
# serial
6
dnl CARES_CHECK_COMPILER
...
...
@@ -36,6 +36,7 @@ AC_DEFUN([CARES_CHECK_COMPILER], [
flags_opt_off="unknown"
#
CARES_CHECK_COMPILER_DEC
CARES_CHECK_COMPILER_HP
CARES_CHECK_COMPILER_IBM
CARES_CHECK_COMPILER_INTEL
CARES_CHECK_COMPILER_GNU
...
...
@@ -118,6 +119,28 @@ AC_DEFUN([CARES_CHECK_COMPILER_GNU], [
])
dnl CARES_CHECK_COMPILER_HP
dnl -------------------------------------------------
dnl Verify if the C compiler being used is HP's.
AC_DEFUN([CARES_CHECK_COMPILER_HP], [
AC_MSG_CHECKING([whether we are using the HP C compiler])
CURL_CHECK_DEF([__HP_cc], [], [silent])
if test "$curl_cv_have_def___HP_cc" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="HPC"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
flags_opt_yes="+O2"
flags_opt_off="+O0"
else
AC_MSG_RESULT([no])
fi
])
dnl CARES_CHECK_COMPILER_IBM
dnl -------------------------------------------------
dnl Verify if the C compiler being used is IBM's.
...
...
@@ -209,6 +232,11 @@ AC_DEFUN([CARES_SET_COMPILER_BASIC_OPTS], [
CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
fi
#
if test "$compiler_id" = "HPC"; then
dnl Disallow run-time dereferencing of null pointers
CFLAGS="$CFLAGS -z"
fi
#
if test "$compiler_id" = "IBMC"; then
dnl Ensure that compiler optimizations are always thread-safe.
CFLAGS="$CFLAGS -qthreaded"
...
...
@@ -386,6 +414,13 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
...
...
This diff is collapsed.
Click to expand it.
m4/curl-compilers.m4
+
36
−
1
View file @
1b246eec
...
...
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial
2
# serial
5
dnl CURL_CHECK_COMPILER
...
...
@@ -42,6 +42,7 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
flags_opt_off="unknown"
#
CURL_CHECK_COMPILER_DEC
CURL_CHECK_COMPILER_HP
CURL_CHECK_COMPILER_IBM
CURL_CHECK_COMPILER_INTEL
CURL_CHECK_COMPILER_GNU
...
...
@@ -124,6 +125,28 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU], [
])
dnl CURL_CHECK_COMPILER_HP
dnl -------------------------------------------------
dnl Verify if the C compiler being used is HP's.
AC_DEFUN([CURL_CHECK_COMPILER_HP], [
AC_MSG_CHECKING([whether we are using the HP C compiler])
CURL_CHECK_DEF([__HP_cc], [], [silent])
if test "$curl_cv_have_def___HP_cc" = "yes"; then
AC_MSG_RESULT([yes])
compiler_id="HPC"
flags_dbg_all="-g -s"
flags_dbg_yes="-g"
flags_dbg_off="-s"
flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
flags_opt_yes="+O2"
flags_opt_off="+O0"
else
AC_MSG_RESULT([no])
fi
])
dnl CURL_CHECK_COMPILER_IBM
dnl -------------------------------------------------
dnl Verify if the C compiler being used is IBM's.
...
...
@@ -215,6 +238,11 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
fi
#
if test "$compiler_id" = "HPC"; then
dnl Disallow run-time dereferencing of null pointers
CFLAGS="$CFLAGS -z"
fi
#
if test "$compiler_id" = "IBMC"; then
dnl Ensure that compiler optimizations are always thread-safe.
CFLAGS="$CFLAGS -qthreaded"
...
...
@@ -392,6 +420,13 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
fi
fi
#
if test "$compiler_id" = "HPC"; then
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
CFLAGS="$CFLAGS +w1"
fi
fi
#
if test "$compiler_id" = "ICC_unix"; then
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
...
...
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