| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| | |
Instead of pushing strings around use the actual section. However
the string is still used in the Hashtbl.
Bug 17392.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Instead of using a string they now take an optional string, which
should be none if the backend is not the diab backend and the
corresponding section is the text section and Some s with s being
the custom section name else.
Bug 17392.
|
| |
| |
| |
| |
| |
| |
| |
| | |
GCC prints all string larger than 3 characters in the debug_str
section which reduces the size of the debug information since entries
containing the same string now map to the same string in the
debug_str sections.
Bug 17392.
|
| |
| |
| |
| |
| | |
The base register for the stack allocated variables should be
r1 and not r2 under powerpc. Bug 17392
|
| |\
| | |
| | |
| | | |
Resolved conflicts in:configure powerpc/Asmexpand.ml
|
| | |
| | |
| | |
| | |
| | |
| | | |
Also: implement __builtin_isel on non-EREF platforms with a branch-free instruction sequence.
Also: extend ./configure so that it recognizes "ppc64-" and "e5500-" platforms in addition to "ppc-".
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| | |
The AST.ident type represents source-level identifiers as unique positive numbers. However, the mapping identifiers <-> AST.ident differs between runs of CompCert on different source files. This is problematic when we need to produce or recognize external functions and builtin functions with fixed names, for example:
* in $ARCH/Machregs.v to define the register conventions for builtin functions;
* in the VST program logic from Princeton to treat thread primitives specially.
So far, we used AST.ident_of_string to recover the ident associated with a string. However, this function is defined in OCaml and doesn't execute within Coq. This is a problem both for VST and for future executability of CompCert within Coq.
This commit replaces "ident" by "string" in the arguments of EF_external, EF_builtin, EF_inline_asm, EF_annot, and EF_annot_val. This provides stable names for externals and builtins, as needed. For inline asm and annotations, it's a matter of taste, but using strings feels more natural. EF_debug keeps using idents, since some kinds of EF_debug annotations talk about program variables.
|
| |
| |
| |
| |
| |
| | |
Like for arm and ppc the functions for section names and start and
end addresses of compilation units are defined and the print_annot
function is moved to Asmexpandaux.ml.
|
| | |
|
| |
| |
| |
| |
| |
| | |
The name_of_section function no returns the correct name for the
debug sections, the prologue and epilogue directives are added and
the labels for the live ranges are introduced in the Asmexpand pass.
|
| |
| |
| |
| |
| |
| |
| |
| | |
taking the ident as argument.
This functions are currently not used inside the proven part but it
is nice to have them already there, when they are used by some future
pass. They also come equiped with the corresponding proofs.
|
| |
| |
| |
| |
| |
| | |
The function is generalized to work for all backends and takes as
additional arguments functions for the printing of the simple
instructions and the translation function for the arguments.
|
| |
| |
| |
| | |
information.
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
debug/DebugInformation.ml
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| | |
Since files without function definition contain no function in the
Section_text the filenum would be empty otherwise.
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Debug locations
|
| | |
| | |
| | |
| | | |
the code more robust and added indentation for convertCompositeDef
|
| | |
| | |
| | |
| | |
| | |
| | | |
If a user uses the #pragma use_section for functions the diab linker
requires a separate debug_info section for each entry. This commit
adds functionality to emulate this behavior.
|
| | |
| | |
| | |
| | | |
scopes before the last statement.
|
| | |
| | |
| | |
| | | |
purpose.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Debuging code.
The old functions to store the symbol for the Global variables and retrive this
is no longer needed since the atom is stored in DebugInformation. Also the
Debug.Abbrev module is no longer needed.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This commit adds furher support for location information for local
variables and starts with the implementation of the debug_loc section.
|
| | |
| | |
| | |
| | |
| | | |
In order to avoid the usage of too many labels we replace the
debug statements during the Asmexpand phase.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Local variables are now added with bogus lexical scopes to reflect
the actually lexical scopes. Also this commit fixes assembler problems
of the das when a user section with the name ".text" is defined.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of creating separate annotations for the local variables
we call the Debug.add_lvar_scope and we construct a mapping from
function id + scope id to scope information.
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
debug/CtoDwarf.ml
debug/DwarfPrinter.ml
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Introduced a new dwarf generation from the information collected in
the DebugInformation and removed the old CtODwarf translation.
|
| | | |
| | | |
| | | |
| | | | |
This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Added a new file debug/Debug.ml which will be the interface between for
generating and printing the debuging information. Currently it contains
only the code for the line directived.
|
| |\ \ \
| | | | |
| | | | |
| | | | | |
Merge branch 'master' into debug_locations
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Atomic builtins
|
| | | | |
| | | | |
| | | | |
| | | | | |
for the rlwinm.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
the atomics.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Instead of introducing a new bne instruction in Asm.v and the TargetPrinter.ml
I use the equivalent bf instruction. The duplicated code is due to unused return
values of builtins. Now we only emit the additional code for the return value if
the return value is used instead of duplicating the whole emiting sequence.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In order to avoid clashes during register allocation etc. The
builtins now use fixed registers and mark additional registers as
destroyed for temporaries.
|
| | | | | |
|