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
e1e2e21f
Commit
e1e2e21f
authored
9 years ago
by
Kostyantyn Vorobyov
Browse files
Options
Downloads
Patches
Plain Diff
e-acsl-gcc.sh:
add an option to pass specific flags directly to frama-c
parent
a2efc89b
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
+12
-2
12 additions, 2 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
with
12 additions
and
2 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+
12
−
2
View file @
e1e2e21f
...
...
@@ -47,8 +47,8 @@ check_tool() {
# Getopt options
LONGOPTIONS
=
"help,compile,compile-only,print,debug:,ocode:,oexec:,verbose:,
\
frama-c-only,extra-cpp-args,rtl,frama-c-stdlib,full-mmodel,gmp,quiet,logfile:,
ld-flags:,cpp-flags:"
SHORTOPTIONS
=
"h,c,C,p,d:,o:,O:,v:,f,E:,R,L,M,l:,e:,g,q,s:"
ld-flags:,cpp-flags:
,frama-c-extra:
"
SHORTOPTIONS
=
"h,c,C,p,d:,o:,O:,v:,f,E:,R,L,M,l:,e:,g,q,s:
,F:
"
# Prefix for an error message due to wrong arguments
ERROR
=
"ERROR parsing arguments:"
...
...
@@ -105,6 +105,7 @@ EACSL_CPP_FLAGS="
EACSL_LD_FLAGS
=
"-lgmp -lm"
# Variables holding getopt options
OPTION_FRAMAC_EXTRA
=
# Extra Frama-C options
OPTION_ECHO
=
"set -x"
# Echo executed commands to STDOUT
OPTION_INSTRUMENT
=
1
# Perform E-ACSL instrumentation
OPTION_PRINT
=
# Output instrumented code
...
...
@@ -167,6 +168,8 @@ manpage() {
echo
" suppress any output except for errors and warnings"
echo
" -s, --logfile <FILE>"
echo
" redirect all output to a given log file"
echo
" -F, --frama-c-extra <OPTION>"
echo
" pass an extra option to frama-c invocation"
echo
""
echo
"EXAMPLES:"
echo
" # Instrument foo.c and output the instrumented code to a.out.frama.c"
...
...
@@ -222,6 +225,12 @@ do
exec
2>
$1
shift
;
;;
# Pass an option to a frama-c invocation
--frama-c-extra
|
-F
)
shift
;
OPTION_FRAMAC_EXTRA
=
"
$OPTION_FRAMAC_EXTRA
$1
"
shift
;
;;
# Do compile instrumented code
--compile
|
-c
)
shift
;
...
...
@@ -332,6 +341,7 @@ if [ -n "$OPTION_INSTRUMENT" ]; then
$FRAMAC
\
$FRAMAC_FLAGS
\
$MACHDEP
\
$OPTION_FRAMAC_EXTRA
\
-cpp-extra-args
=
"
$OPTION_EXTRA_CPP
"
\
-e-acsl-share
$EACSL_SHARE
\
$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