Skip to content
Snippets Groups Projects
Commit 038715b8 authored by Julien Signoles's avatar Julien Signoles
Browse files

[e-acsl] restore -remove-unused-specified-functions

parent 415fd3ae
No related branches found
No related tags found
No related merge requests found
...@@ -754,7 +754,9 @@ CPPFLAGS="$OPTION_CPPFLAGS" ...@@ -754,7 +754,9 @@ CPPFLAGS="$OPTION_CPPFLAGS"
LDFLAGS="$OPTION_LDFLAGS" LDFLAGS="$OPTION_LDFLAGS"
# Extra Frama-C Flags E-ACSL needs # Extra Frama-C Flags E-ACSL needs
FRAMAC_FLAGS="$FRAMAC_FLAGS -variadic-no-translation" FRAMAC_FLAGS="$FRAMAC_FLAGS \
-remove-unused-specified-functions \
-variadic-no-translation"
# C, CPP and LD flags for compilation of E-ACSL-generated sources # C, CPP and LD flags for compilation of E-ACSL-generated sources
EACSL_CFLAGS="$OPTION_EXTERNAL_ASSERT" EACSL_CFLAGS="$OPTION_EXTERNAL_ASSERT"
......
...@@ -482,10 +482,6 @@ class prepare_visitor = object (self) ...@@ -482,10 +482,6 @@ class prepare_visitor = object (self)
[ new_decl; g ] [ new_decl; g ]
| _ -> assert false) | _ -> assert false)
| GVarDecl(vi, _loc) | GFunDecl(_, vi, _loc) | GFun({ svar = vi }, _loc)
when Misc.is_fc_or_compiler_builtin vi ->
Cil.DoChildren
| _ -> | _ ->
Cil.DoChildren Cil.DoChildren
......
...@@ -34,8 +34,7 @@ let create_rtl_ast prj = ...@@ -34,8 +34,7 @@ let create_rtl_ast prj =
Project.on Project.on
prj prj
(fun () -> (fun () ->
(* compute the RTL AST in the same settings as the user source code. (* compute the RTL AST in the standard E-ACSL setting *)
Modifying these settings purposely kills the current AST (if any) *)
if Plugin.is_present "variadic" then if Plugin.is_present "variadic" then
Dynamic.Parameter.Bool.off "-variadic-translation" (); Dynamic.Parameter.Bool.off "-variadic-translation" ();
Kernel.Keep_unused_specified_functions.off (); Kernel.Keep_unused_specified_functions.off ();
......
MACRO: DEST @PTEST_RESULT@/gen_@PTEST_NAME@ MACRO: DEST @PTEST_RESULT@/gen_@PTEST_NAME@
MACRO: MACHDEP -machdep gcc_x86_64 MACRO: MACHDEP -machdep gcc_x86_64
MACRO: EACSL_PREPARE -e-acsl-prepare -e-acsl-share ./share/e-acsl MACRO: EACSL_PREPARE -e-acsl-prepare -e-acsl-share ./share/e-acsl
MACRO: GLOBAL @MACHDEP@ -variadic-no-translation -verbose 0 MACRO: GLOBAL @MACHDEP@ -remove-unused-specified-functions -variadic-no-translation -verbose 0
MACRO: EACSL -e-acsl -e-acsl-share ./share/e-acsl -e-acsl-verbose 1 MACRO: EACSL -e-acsl -e-acsl-share ./share/e-acsl -e-acsl-verbose 1
MACRO: EVA -eva -eva-no-alloc-returns-null -eva-no-results -eva-no-print -eva-warn-key libc:unsupported-spec=inactive MACRO: EVA -eva -eva-no-alloc-returns-null -eva-no-results -eva-no-print -eva-warn-key libc:unsupported-spec=inactive
MACRO: EVENTUALLY -print -ocode @DEST@.c -load-script ./tests/print.cmxs MACRO: EVENTUALLY -print -ocode @DEST@.c -load-script ./tests/print.cmxs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment