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
b93f4f62
Commit
b93f4f62
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
some more temporary magic for the icc seg-fault issue
parent
1054dc5e
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
+17
-5
17 additions, 5 deletions
ares/m4/cares-compilers.m4
m4/curl-compilers.m4
+17
-5
17 additions, 5 deletions
m4/curl-compilers.m4
with
34 additions
and
10 deletions
ares/m4/cares-compilers.m4
+
17
−
5
View file @
b93f4f62
...
...
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial
39
# serial
41
dnl CARES_CHECK_COMPILER
...
...
@@ -185,6 +185,7 @@ AC_DEFUN([CARES_CHECK_COMPILER_INTEL_C], [
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
CURL_CHECK_DEF([__i386__], [], [silent])
CURL_CHECK_DEF([__unix__], [], [silent])
if test "$curl_cv_have_def___unix__" = "yes"; then
compiler_id="INTEL_UNIX_C"
...
...
@@ -194,6 +195,13 @@ AC_DEFUN([CARES_CHECK_COMPILER_INTEL_C], [
flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
flags_opt_yes="-O2"
flags_opt_off="-O0"
dnl icc 9.1 optimization on IA32 triggers SIGSEGV
if test "$curl_cv_have_def___i386__" = "yes" &&
test "$compiler_num" -eq "910"; then
INTEL_UNIX_C_OPT_SIGSEGV="yes"
else
INTEL_UNIX_C_OPT_SIGSEGV="no"
fi
else
compiler_id="INTEL_WINDOWS_C"
flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
...
...
@@ -915,11 +923,11 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
dnl Perform extra compile-time code checking
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
dnl Generate inlining diagnostics
tmp_CPPFLAGS="$tmp_CPPFLAGS -Winline"
fi
dnl Disable using EBP register in optimizations
tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
dnl Disable inlining of user-defined functions
tmp_CFLAGS="$tmp_CFLAGS -Ob0"
dnl Disable inline expansion of intrinsic functions
tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
dnl Disable inlining of functions
...
...
@@ -928,8 +936,8 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fno-inline-functions"
dnl Disable inlining of standard library functions
tmp_CFLAGS="$tmp_CFLAGS -nolib-inline"
dnl Disable
inlining of user-defined functions
tmp_CFLAGS="$tmp_CFLAGS -
Ob0
"
dnl Disable
full and partial inlining when IPO
tmp_CFLAGS="$tmp_CFLAGS -
ip-no-inlining
"
dnl Enable floating-point stack integrity checks
tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
dnl Enable run-time detection of buffer overruns.
...
...
@@ -944,6 +952,10 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -alias-args"
dnl Assume aliasing within functions
tmp_CFLAGS="$tmp_CFLAGS -ffnalias"
dnl Disable prefetch insertion optimization
tmp_CFLAGS="$tmp_CFLAGS -no-prefetch"
dnl Disable loop unrolling optimization
tmp_CFLAGS="$tmp_CFLAGS -unroll0"
fi
;;
#
...
...
This diff is collapsed.
Click to expand it.
m4/curl-compilers.m4
+
17
−
5
View file @
b93f4f62
...
...
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
# serial
38
# serial
40
dnl CURL_CHECK_COMPILER
...
...
@@ -191,6 +191,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_INTEL_C], [
CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
AC_MSG_RESULT([yes])
CURL_CHECK_DEF([__i386__], [], [silent])
CURL_CHECK_DEF([__unix__], [], [silent])
if test "$curl_cv_have_def___unix__" = "yes"; then
compiler_id="INTEL_UNIX_C"
...
...
@@ -200,6 +201,13 @@ AC_DEFUN([CURL_CHECK_COMPILER_INTEL_C], [
flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
flags_opt_yes="-O2"
flags_opt_off="-O0"
dnl icc 9.1 optimization on IA32 triggers SIGSEGV
if test "$curl_cv_have_def___i386__" = "yes" &&
test "$compiler_num" -eq "910"; then
INTEL_UNIX_C_OPT_SIGSEGV="yes"
else
INTEL_UNIX_C_OPT_SIGSEGV="no"
fi
else
compiler_id="INTEL_WINDOWS_C"
flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
...
...
@@ -921,11 +929,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
dnl Perform extra compile-time code checking
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
dnl Generate inlining diagnostics
tmp_CPPFLAGS="$tmp_CPPFLAGS -Winline"
fi
dnl Disable using EBP register in optimizations
tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
dnl Disable inlining of user-defined functions
tmp_CFLAGS="$tmp_CFLAGS -Ob0"
dnl Disable inline expansion of intrinsic functions
tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
dnl Disable inlining of functions
...
...
@@ -934,8 +942,8 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fno-inline-functions"
dnl Disable inlining of standard library functions
tmp_CFLAGS="$tmp_CFLAGS -nolib-inline"
dnl Disable
inlining of user-defined functions
tmp_CFLAGS="$tmp_CFLAGS -
Ob0
"
dnl Disable
full and partial inlining when IPO
tmp_CFLAGS="$tmp_CFLAGS -
ip-no-inlining
"
dnl Enable floating-point stack integrity checks
tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
dnl Enable run-time detection of buffer overruns.
...
...
@@ -950,6 +958,10 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -alias-args"
dnl Assume aliasing within functions
tmp_CFLAGS="$tmp_CFLAGS -ffnalias"
dnl Disable prefetch insertion optimization
tmp_CFLAGS="$tmp_CFLAGS -no-prefetch"
dnl Disable loop unrolling optimization
tmp_CFLAGS="$tmp_CFLAGS -unroll0"
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