Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
27bb0f7e
Commit
27bb0f7e
authored
9 years ago
by
Kostyantyn Vorobyov
Committed by
Julien Signoles
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minor refactoring of the e-acsl-gcc.sh wrapper script that mainly
involves getting rid of redundant flags
parent
5023e7db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+3
-6
3 additions, 6 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
with
3 additions
and
6 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+
3
−
6
View file @
27bb0f7e
...
@@ -55,9 +55,8 @@ ERROR="ERROR parsing arguments:"
...
@@ -55,9 +55,8 @@ ERROR="ERROR parsing arguments:"
# Frama-C
# Frama-C
FRAMAC
=
"
`
check_tool
'frama-c'
`
"
FRAMAC
=
"
`
check_tool
'frama-c'
`
"
FRAMAC_CONGIG
=
"
`
check_tool
'frama-c-config'
`
"
FRAMAC_FLAGS
=
""
FRAMAC_FLAGS
=
""
FRAMA
_
C_SHARE
=
"
`
$FRAMAC
_CONGIG
-print-share-path
`
"
FRAMAC_SHARE
=
"
`
$FRAMAC
-print-share-path
`
"
# Architecture-dependent flags. Since by default Frama-C uses 32-bit
# Architecture-dependent flags. Since by default Frama-C uses 32-bit
# architecture we need to make sure that same architecture is used for
# architecture we need to make sure that same architecture is used for
...
@@ -102,7 +101,6 @@ EACSL_CPPFLAGS="
...
@@ -102,7 +101,6 @@ EACSL_CPPFLAGS="
EACSL_LDFLAGS
=
"-lgmp -lm"
EACSL_LDFLAGS
=
"-lgmp -lm"
# Variables holding getopt options
# Variables holding getopt options
OPTION_FRAMAC_EXTRA
=
# Extra Frama-C options
OPTION_ECHO
=
"set -x"
# Echo executed commands to STDOUT
OPTION_ECHO
=
"set -x"
# Echo executed commands to STDOUT
OPTION_INSTRUMENT
=
1
# Perform E-ACSL instrumentation
OPTION_INSTRUMENT
=
1
# Perform E-ACSL instrumentation
OPTION_PRINT
=
# Output instrumented code
OPTION_PRINT
=
# Output instrumented code
...
@@ -122,7 +120,7 @@ OPTION_DEBUG_LOG_MACRO="" # Specification of debug log file
...
@@ -122,7 +120,7 @@ OPTION_DEBUG_LOG_MACRO="" # Specification of debug log file
# of standard functions.
# of standard functions.
OPTION_BUILTINS
=
"-DE_ACSL_BUILTINS"
OPTION_BUILTINS
=
"-DE_ACSL_BUILTINS"
# Extra CPP flags for frama-c
# Extra CPP flags for frama-c
OPTION_EXTRA_CPP
=
"-D
$EACSL_MACRO_ID
-I
$FRAMA
_
C_SHARE
/libc
$CPPMACHDEP
"
OPTION_EXTRA_CPP
=
"-D
$EACSL_MACRO_ID
-I
$FRAMAC_SHARE
/libc
$CPPMACHDEP
"
manpage
()
{
manpage
()
{
echo
"NAME"
echo
"NAME"
...
@@ -251,7 +249,7 @@ do
...
@@ -251,7 +249,7 @@ do
# Pass an option to a frama-c invocation
# Pass an option to a frama-c invocation
--frama-c-extra
|
-F
)
--frama-c-extra
|
-F
)
shift
;
shift
;
OPTION_FRAMAC_EXTRA
=
"
$OPTION_
FRAMAC_
EXTRA
$1
"
FRAMAC_FLAGS
=
"
$
FRAMAC_
FLAGS
$1
"
shift
;
shift
;
;;
;;
# Do compile instrumented code
# Do compile instrumented code
...
@@ -384,7 +382,6 @@ if [ -n "$OPTION_INSTRUMENT" ]; then
...
@@ -384,7 +382,6 @@ if [ -n "$OPTION_INSTRUMENT" ]; then
$FRAMAC
\
$FRAMAC
\
$FRAMAC_FLAGS
\
$FRAMAC_FLAGS
\
$MACHDEP
\
$MACHDEP
\
$OPTION_FRAMAC_EXTRA
\
-cpp-extra-args
=
"
$OPTION_EXTRA_CPP
"
\
-cpp-extra-args
=
"
$OPTION_EXTRA_CPP
"
\
-e-acsl-share
$EACSL_SHARE
\
-e-acsl-share
$EACSL_SHARE
\
$OPTION_VERBOSE
\
$OPTION_VERBOSE
\
...
...
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