Skip to content
Snippets Groups Projects
Commit 54cba6d4 authored by xleroy's avatar xleroy
Browse files

Suppressed -fall-extensions option, too dangerous wrt flonglong

git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1275 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
parent 1e24932c
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,6 @@ let option_fstruct_passing = ref false ...@@ -20,9 +20,6 @@ let option_fstruct_passing = ref false
let option_fstruct_assign = ref false let option_fstruct_assign = ref false
let option_fbitfields = ref false let option_fbitfields = ref false
let option_fvararg_calls = ref true let option_fvararg_calls = ref true
let all_extensions =
[option_fstruct_passing; option_fstruct_assign; option_fbitfields;
option_fvararg_calls; option_flonglong]
let option_fmadd = ref false let option_fmadd = ref false
let option_dparse = ref false let option_dparse = ref false
let option_dclight = ref false let option_dclight = ref false
......
...@@ -220,8 +220,6 @@ Language support options (use -fno-<opt> to turn off -f<opt>) : ...@@ -220,8 +220,6 @@ Language support options (use -fno-<opt> to turn off -f<opt>) :
-fstruct-passing Emulate passing structs and unions by value [off] -fstruct-passing Emulate passing structs and unions by value [off]
-fstruct-assign Emulate assignment between structs or unions [off] -fstruct-assign Emulate assignment between structs or unions [off]
-fvararg-calls Emulate calls to variable-argument functions [on] -fvararg-calls Emulate calls to variable-argument functions [on]
-fall-extensions Activate all of the above
-fno-extensions Deactivate all of the above
Code generation options: Code generation options:
-fmadd Use fused multiply-add and multiply-sub instructions -fmadd Use fused multiply-add and multiply-sub instructions
-fsmall-data <n> Set maximal size <n> for allocation in small data area -fsmall-data <n> Set maximal size <n> for allocation in small data area
...@@ -316,11 +314,7 @@ let cmdline_actions = ...@@ -316,11 +314,7 @@ let cmdline_actions =
".*\\.[oa]$", Self (fun s -> ".*\\.[oa]$", Self (fun s ->
linker_options := s :: !linker_options); linker_options := s :: !linker_options);
"-fsmall-data$", Integer(fun n -> option_small_data := n); "-fsmall-data$", Integer(fun n -> option_small_data := n);
"-fsmall-const$", Integer(fun n -> option_small_const := n); "-fsmall-const$", Integer(fun n -> option_small_const := n)
"-fno-extensions", Self (fun s ->
List.iter (fun r -> r := false) Clflags.all_extensions);
"-fall-extensions", Self (fun s ->
List.iter (fun r -> r := true) Clflags.all_extensions)
] ]
@ f_opt "longlong" option_flonglong @ f_opt "longlong" option_flonglong
@ f_opt "struct-passing" option_fstruct_passing @ f_opt "struct-passing" option_fstruct_passing
......
include ../../Makefile.config include ../../Makefile.config
CCOMP=../../ccomp CCOMP=../../ccomp
CCOMPFLAGS=-stdlib ../../runtime -dparse -dclight -dasm -fall-extensions CCOMPFLAGS=-stdlib ../../runtime -dparse -dclight -dasm \
-fstruct-passing -fstruct-assign -fbitfields
LIBS=$(LIBMATH) LIBS=$(LIBMATH)
...@@ -30,7 +31,7 @@ clean: ...@@ -30,7 +31,7 @@ clean:
rm -f *.compcert rm -f *.compcert
rm -f *.parsed.c *.light.c *.s *.o *~ rm -f *.parsed.c *.light.c *.s *.o *~
test_compcert: test:
@for i in $(TESTS); do \ @for i in $(TESTS); do \
if ./$$i.compcert | cmp -s - Results/$$i; \ if ./$$i.compcert | cmp -s - Results/$$i; \
then echo "$$i: passed"; \ then echo "$$i: passed"; \
......
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