aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Deactivate the debug functions for none advanced targets.Bernhard Schommer2015-09-291-1/+1
| | |
| * | Change the way the debug sections are printed.Bernhard Schommer2015-09-2815-179/+228
| | | | | | | | | | | | | | | | | | 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.
| * | Added location for the formal parameters and move the end of allBernhard Schommer2015-09-289-29/+68
| | | | | | | | | | | | scopes before the last statement.
| * | Changed the size expression to 2byte for debug_loc entries.Bernhard Schommer2015-09-281-1/+18
| | |
| * | Added back again the emitting of the debuging annotations for debugingBernhard Schommer2015-09-271-3/+4
| | | | | | | | | | | | purpose.
| * | More refactoring of the Debug Information.Bernhard Schommer2015-09-274-51/+103
| | | | | | | | | | | | | | | | | | | | | In order to remove unnecessary dependecies the implemenation type is made and the DebugInit file initializes the fields in the record. This allows it to move more functions behind the Debug interface without introducing circular dependencies.
| * | Added printing the reference address for the LocRef and started refactoring oldBernhard Schommer2015-09-279-111/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Added translation of the range lists to location entries.Bernhard Schommer2015-09-256-37/+99
| | |
| * | Added support for the locations of stack allocated local variables.Bernhard Schommer2015-09-2516-98/+318
| | | | | | | | | | | | | | | This commit adds furher support for location information for local variables and starts with the implementation of the debug_loc section.
| * | Added placing labels for live ranges etc.Bernhard Schommer2015-09-245-9/+152
| | | | | | | | | | | | | | | In order to avoid the usage of too many labels we replace the debug statements during the Asmexpand phase.
| * | Also convert the fun stamp + scope id to debug id Hashtable in anBernhard Schommer2015-09-231-4/+6
| | | | | | | | | | | | atom + scope id Hashtable.
| * | Added support for printing local variables and fixed issue with .textBernhard Schommer2015-09-236-11/+27
| | | | | | | | | | | | | | | | | | 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.
| * | Merge branch 'debugscopes' into debug_locationsBernhard Schommer2015-09-232-38/+40
| |\ \ | | | | | | | | | | | | | | | | Conflicts: cparser/Unblock.ml
| | * | Continuing experiment: track the scopes of local variables via __builtin_debugXavier Leroy2015-09-212-39/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As observed by B. Schommer, it is not enough to track scopes for every source line, as blocks can occur on a single line (think macros). Hence: - Revert debug annotations of kind 1 to contain only line number info. Generate them only when the line number changes. - Use debug annotations of kind 6 to record the list of active scopes (as BA_int integer arguments to __builtin_annot). Generate them before every nontrivial statement, even if on the same line as others. - Remove the generation of "variable x is declared in scope N" debug annotations. This can be tracked separately and more efficiently.
| * | | Record the scope structure during unblocking.Bernhard Schommer2015-09-2214-65/+173
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Merge branch 'debugscopes' into debug_locationsBernhard Schommer2015-09-2127-177/+342
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml
| | * | Experiment: track the scopes of local variables via __builtin_debug.Xavier Leroy2015-09-205-74/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | C2C: the code that insert debug builtins with the line numbers is now in Unblock. Handle calls to __builtin_debug. Unblock: generate __builtin_debug(1) for line numbers, carrying the list of active scopes as extra arguments. Generate __builtin_debug(6) for local variable declarations, carrying the corresponding scope number as extra argument. Constprop: avoid duplicating debug arguments that are constants already. PrintAsmaux: show this extra debug info as comments.
| * | | New version of adding scopes etc.Bernhard Schommer2015-09-204-16/+63
| | | | | | | | | | | | | | | | | | | | Instead of reimplementing the whole scope handling in the debug information use the existing functionality and fill the scopes explicitly in the functions.
| * | | Started implementing the scope for the Debug Informations.Bernhard Schommer2015-09-186-13/+109
| | | | | | | | | | | | | | | | | | | | | | | | Scopes will be handled by a stack of all open scopes. This stack then can also be used to generate the debug directives to track the scopes through the rest of the passes.
| * | | First version with computation of dwarf info from debug info.Bernhard Schommer2015-09-1714-636/+370
| | | | | | | | | | | | | | | | | | | | Introduced a new dwarf generation from the information collected in the DebugInformation and removed the old CtODwarf translation.
| * | | Move more functionality in the new interface.Bernhard Schommer2015-09-1615-75/+120
| | | | | | | | | | | | | | | | | | | | | | | | Added functions to add more information to the debuging interface, like the struct layout with offsets, bitifiled layout and removed the no longer needed mapping from stamp to atom.
| * | | Add the debug interface file.Bernhard Schommer2015-09-165-12/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new file Debug.ml contains the interface for generating and printing debug information. In order to generate debug information the init function initializes the necessary functions depending on the -g flag. If the -g is not there all functions are dummy functions which do nothing.
| * | | Further function to add debug information.Bernhard Schommer2015-09-151-31/+67
| | | | | | | | | | | | | | | | | | | | Added the rest of the global declarations and started adding functions to fill in the missing information about struct and union fields etc.
| * | | Started adding function information to the debug information.Bernhard Schommer2015-09-151-3/+48
| | | |
| * | | Implemented insert_type function and started implementing add declaration.Bernhard Schommer2015-09-141-13/+206
| | | | | | | | | | | | | | | | | | | | | | | | The insert_type function add types by adding their subtypes. Also currently the structs or unions are added as empty skeletopn and later during filled during the inserting of the declarations.
| * | | Started implementing the typ insert methods.Bernhard Schommer2015-09-112-50/+99
| | | | | | | | | | | | | | | | | | | | | | | | In contrast to CtoDwarf this time we use the name to identify everything. To make this work we print the full identifier with stamp to avoid the problems with anonymous structs and unions.
| * | | Started implementing the types needed for storing the debug information.Bernhard Schommer2015-09-112-1/+110
| | | |
| * | | Revert "Startet implementation of new Debug interface."Bernhard Schommer2015-09-108-95/+76
| | | | | | | | | | | | | | | | This reverts commit 861292a6c5e58b4f78bef207c717b801b3fc1fed.
| * | | Startet implementation of new Debug interface.Bernhard Schommer2015-09-068-76/+95
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | XBernhard Schommer2015-09-0693-2601/+4136
| |\ \ \ | | | | | | | | | | | | | | | Merge branch 'master' into debug_locations
| * | | | Added the abbreviation for symbol constants.Bernhard Schommer2015-08-261-0/+1
| | | | |
| * | | | Merge branch 'master' into debug_locationsBernhard Schommer2015-08-2615-241/+268
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debug/CtoDwarf.ml debug/DwarfPrinter.ml debug/DwarfTypes.mli
| * | | | | Added symbol functions for printing of the location for global variables.Bernhard Schommer2015-08-2110-28/+69
| | | | | |
* | | | | | Use R10 in atomic compare and exchange for the rlwinm.Bernhard Schommer2015-09-221-2/+2
| | | | | |
* | | | | | Fix typo dest -> dstMichael Schmidt2015-09-221-9/+9
| | | | | |
* | | | | | Merge pull request #54 from AbsInt/atomic-builtinsBernhard Schommer2015-09-213-8/+83
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | Atomic builtins
| * | | | | Removed unnecessary move register and use the correct register as base value ↵Bernhard Schommer2015-09-211-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | for the rlwinm.
| * | | | | Applied a few simplification for temporary registers.Bernhard Schommer2015-09-212-16/+16
| | | | | |
| * | | | | Integrated the fix of commit de40fce9c16ced8d23389cbcfc55ef6d99466fe8 for ↵Bernhard Schommer2015-09-171-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | the atomics.
| * | | | | Merge branch 'master' into atomic-builtinsBernhard Schommer2015-09-1710-26/+78
| |\ \ \ \ \
| * | | | | | Removed usage of bne and removed duplicated code for return values of atomics.Bernhard Schommer2015-09-154-52/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | Use fix registers for atomic builtins.Bernhard Schommer2015-09-143-15/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to avoid clashes during register allocation etc. The builtins now use fixed registers and mark additional registers as destroyed for temporaries.
| * | | | | | Use the gcc version of atomic load.Bernhard Schommer2015-09-114-4/+10
| | | | | | |
| * | | | | | Type of argument for Pbne is label not atom.Bernhard Schommer2015-09-101-1/+1
| | | | | | |
| * | | | | | Merge branch 'master' into atomic-builtinsBernhard Schommer2015-09-101-1/+1
| |\ \ \ \ \ \
| * | | | | | | Added builtin for atomic compare and exchange.Bernhard Schommer2015-09-104-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new __builtin_atomic_compare_exchange(int *ptr,int *exp,int *dsr); writes dsr into ptr if ptr is equal to exp and returns true if ptr is not equal to exp it writes ptr into exp and returns false.
| * | | | | | | Merge branch 'master' into atomic-builtinsBernhard Schommer2015-09-103-4/+41
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: powerpc/CBuiltins.ml
| * | | | | | | | Add builtin for atomic load.Bernhard Schommer2015-09-092-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the new __builtin_atomic_load(int *a, int *b); which stores *a in *b. This differs from the atomic_load of the GCC, since the PPC ISA manual states that you must jump before the load again if it fails.
| * | | | | | | | Added an builtin for the atomic exchange operation.Bernhard Schommer2015-09-095-7/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new builtin __builtin_atomic_exchange(int *a, int *b, int *c) stores *b in *a and sets *c to the old value of *a.
* | | | | | | | | Ctypes.composite_of_def: make sure it computes within Coq.Xavier Leroy2015-09-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Suggested by A. Appel.)