| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
This avoids a new warning of Coq 8.14.
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In the "small" case, there was an error in the choice of temporary
registers to use when one argument is a stack location and the other
is a register. The chosen temporary could conflict with the argument
that resides in a register.
Fixes: #412
|
| |
| |
| |
| |
| |
| | |
Works also for sign_ext 32.
ARM, RISC-V: adapt Asmgenproof1 accordingly
|
| |
| |
| |
| |
| |
| | |
The GPL makes sense for whole applications, but the dual-licensed Coq
and OCaml files are more like libraries to be combined with other
code, so the LGPL is more appropriate.
|
| |
| |
| |
| | |
Not yet used for optimizations.
|
| | |
|
| | |
|
| |
| |
| |
| | |
cfrontend/C2C.ml
|
|\|
| |
| |
| |
| |
| |
| |
| |
| | |
PARTIAL MERGE (PARTLY BROKEN).
See unsolved conflicts in: aarch64/TO_MERGE and riscV/TO_MERGE
WARNING:
interface of va_args and assembly sections have changed
|
| |
| |
| |
| |
| |
| |
| | |
This is a generalization of the previous PrintAsmaux.common_section
function that
- handles initialized variables in addition to uninitialized variables;
- can be used for Section_const, not just for Section_data.
|
| |
| |
| |
| |
| |
| |
| | |
This avoids a new warning of Coq 8.13.
Eventually these `Global Hint` should become `#[export] Hint`,
with a cleaner but different meaning than `Global Hint`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is complementary to 28f235806
Some ABIs leave more flexibility concerning function parameters than
CompCert expects.
For instance, the AArch64/ELF ABI allow the caller of a function to
leave unspecified the "padding bits" of function parameters. As an
example, a parameter of type "unsigned char" may not have zeros in
bits 8 to 63, but may have any bits there.
When the caller is compiled by CompCert, it normalizes argument values
to the parameter types before the call, so padding bits are always
correct w.r.t. the type of the argument. This is no longer guaranteed
in interoperability scenarios, when the caller is not compiled by CompCert.
This commit adds a general mechanism to insert "re-normalization"
conversions on the parameters of a function, at function entry.
This is controlled by the platform-dependent function
Convention1.return_value_needs_normalization.
The semantic preservation proof is still conducted against the
CompCert model, where the argument values of functions are already
normalized. What the proof shows is that the extra conversions have
no effect in this case. In future work we could relax the CompCert
model, allowing functions to pass arguments that are not normalized.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Coq 8.12, `omega` is flagged as deprecated and scheduled for removal.
Also replace CompCert's homemade tactics `omegaContradiction`, `xomega`,
and `xomegaContradiction` with `lia` and `extlia`.
Turn back on the deprecation warning for uses of `omega`.
Make the proof of `Ctypes.sizeof_pos` more robust to variations in `lia`.
|
| |
| |
| |
| |
| |
| | |
Instead of being a simple boolean we now use an option type to record
the number of fixed (non-vararg) arguments. Hence, `None` means
not vararg, and `Some n` means `n` fixed arguments followed with varargs.
|
| | |
|
|\ \ |
|
| |\| |
|
| | |
| | |
| | |
| | |
| | | |
Pflid destroys IR14
Inlined built-in functions destroy IR14
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
Makefile
configure
|
| |\ \ \
| | | |/
| | |/| |
|
| | | |
| | | |
| | | |
| | | | |
configure flags -use-external-Flocq and -use external-MenhirLib.
|
| | | |
| | | |
| | | |
| | | | |
__builtin_sqrt (no "f") is the name used by GCC and Clang.
|
| | | |
| | | |
| | | |
| | | | |
These functions are now available on all targets.
|
| | | |
| | | |
| | | |
| | | | |
__builtin_fabs has already been expanded in backend/Selection.v .
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The name_of_register and register_of_name function are shared between
all architectures and can be moved in a common file.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The function is in fact just a call to the
function`is_callee_save_register` from `Conventions1.v`.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace the pattern `try Some (Hashtbl.find ...) with Not_found -> None`
by a call to the function Hashtbl.find_opt.
|
| | | | |
|
|\ \ \ \
| | |_|/
| |/| | |
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Conflicts:
arm/Op.v
common/Values.v
kvx/Op.v
|
| |\ \ \ \ |
|
| | | | | | |
|
| | |_|/ /
| |/| | | |
|
| |_|/ /
|/| | | |
|
| |/ /
|/| | |
|
|/ / |
|
| | |
|
|\ \ |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| | | | |
|
| |/ / |
|
|\| | |
|
| | | |
|
| | | |
|
| |\ \
| | | |
| | | |
| | | | |
Merge branch 'dm-cse2-naive' of https://github.com/monniaux/CompCert into mppa-cse2
|