Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
20
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
cellframe
cellframe-sdk
Commits
90bce0ac
Commit
90bce0ac
authored
4 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] CFLAGS -fno-strict-aliasing
parent
c774fe3d
No related branches found
Branches containing commit
No related tags found
3 merge requests
!251
Master
,
!250
Master
,
!187
Release 2.5 version
Pipeline
#4628
passed with stage
in 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/OS_Detection.cmake
+4
-4
4 additions, 4 deletions
cmake/OS_Detection.cmake
dap-sdk/core/CMakeLists.txt
+2
-3
2 additions, 3 deletions
dap-sdk/core/CMakeLists.txt
with
6 additions
and
7 deletions
cmake/OS_Detection.cmake
+
4
−
4
View file @
90bce0ac
...
...
@@ -54,11 +54,11 @@ if(UNIX)
add_definitions
(
"-DDAP_OS_LINUX -DDAP_OS_UNIX"
)
# add_definitions ("-DDAP_LOG_MT")
if
(
DAP_DEBUG
)
set
(
_CCOPT
"-DDAP_DEBUG -Wall -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -pg -g3 -ggdb -fno-eliminate-unused-debug-symbols"
)
set
(
_CCOPT
"-DDAP_DEBUG -Wall -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -pg -g3 -ggdb -fno-eliminate-unused-debug-symbols
-fno-strict-aliasing
"
)
set
(
_LOPT
"-pg"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-pg"
)
else
()
set
(
_CCOPT
"-Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -O3 -fPIC -fno-ident -ffast-math -ftree-vectorize -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -Wl,--strip-all -std=gnu11"
)
set
(
_CCOPT
"-Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -O3 -fPIC
-fno-strict-aliasing
-fno-ident -ffast-math -ftree-vectorize -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -Wl,--strip-all -std=gnu11"
)
endif
()
if
(
ANDROID
)
...
...
@@ -99,10 +99,10 @@ if(WIN32)
add_definitions
(
"-DDAP_OS_WINDOWS"
)
if
(
DAP_DEBUG
)
set
(
_CCOPT
"-mconsole -static -Wall -std=gnu11 -Wextra -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -g3 -ggdb -fno-eliminate-unused-debug-symbols -pg"
)
set
(
_CCOPT
"-mconsole -static -Wall -std=gnu11 -Wextra -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -g3 -ggdb
-fno-strict-aliasing
-fno-eliminate-unused-debug-symbols -pg"
)
set
(
_LOPT
"-mconsole -static -pg"
)
else
()
set
(
_CCOPT
"-static -std=gnu11 -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -O3 -fno-ident -ffast-math -ftree-vectorize -mfpmath=sse -mmmx -msse2 -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -Wl,--strip-all"
)
set
(
_CCOPT
"-static -std=gnu11 -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function -Wno-implicit-fallthrough -Wno-unused-variable -Wno-unused-parameter -Wno-unused-but-set-variable -O3 -fno-ident -ffast-math
-fno-strict-aliasing
-ftree-vectorize -mfpmath=sse -mmmx -msse2 -fno-asynchronous-unwind-tables -ffunction-sections -Wl,--gc-sections -Wl,--strip-all"
)
endif
()
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
_CCOPT
}
"
)
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/core/CMakeLists.txt
+
2
−
3
View file @
90bce0ac
cmake_minimum_required
(
VERSION 3.0
)
project
(
dap_core
)
# fix implicit declaration warnings
add_definitions
(
"-D_GNU_SOURCE -DDHASH_USING_NO_STRICT_ALIASING -DHASH_FUNCTION=HASH_MUR -fno-strict-aliasing"
)
add_definitions
(
"-D_GNU_SOURCE"
)
add_definitions
(
"-DDHASH_USING_NO_STRICT_ALIASING -DHASH_FUNCTION=HASH_MUR"
)
if
(
UNIX
)
file
(
GLOB CORE_SRCS
src/*.c
...
...
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