Commit graph

5038 commits

Author SHA1 Message Date
Juan Jose Garcia Ripoll
97a122dd0a During optimization and code generation phases, when creating compiler notes, warnings and errors the compiler did not output precise values for the source and file posistions. 2009-12-30 15:35:35 +01:00
Juan Jose Garcia Ripoll
e9f72c2a7f Fixed proclamation of SI:STANDARD-READTABLE 2009-12-30 15:34:48 +01:00
Juan Jose Garcia Ripoll
2900f81cd2 Fixed typo in REPLACE-OPTIMIZABLE-CONSTANTS. 2009-12-30 15:21:47 +01:00
Juan Jose Garcia Ripoll
d2609f6d82 Symbol CLOSURE has to be exported to be EQ on all packages. 2009-12-30 15:20:10 +01:00
Juan Jose Garcia Ripoll
56223956e1 In cmpc-data.lsp, reimplemented the data simplification phases, which failed to produce adjustable arrays. 2009-12-30 15:19:50 +01:00
Juan Jose Garcia Ripoll
3b33d78b04 Simplified function signature of UPDATE-DESTINATION-TYPE 2009-12-30 15:19:17 +01:00
Juan Jose Garcia Ripoll
185e6fc380 Fixed typo in VAR-REFERENCED-IN-FORM 2009-12-30 14:51:27 +01:00
Juan Jose Garcia Ripoll
17ffbd3d3d +NARGS-VAR+ and the like moved into C-BACKEND. 2009-12-29 22:53:29 +01:00
Juan Jose Garcia Ripoll
e3d77afd61 Typo in name global-variable-p -> global-var-p 2009-12-29 22:40:42 +01:00
Juan Jose Garcia Ripoll
35f05ff57d Fixed a number of typos and missing package prefixes. 2009-12-29 22:39:51 +01:00
Juan Jose Garcia Ripoll
3d8d0f5d34 Removed unused function find-node-in-list 2009-12-29 22:39:24 +01:00
Juan Jose Garcia Ripoll
8a3e6c5347 The translators for c-inline/clines moved back to the C package in a separate file cmpcffi.lsp 2009-12-29 22:10:12 +01:00
Juan Jose Garcia Ripoll
ff8efc6f92 C1CLEANUP-FORMS back to cmptranslate wrapping around C-ENV:CMP-ENV-CLEANUPS. GUESS-KIND is no longer used in C-TAGS. 2009-12-29 21:45:13 +01:00
Juan Jose Garcia Ripoll
e1e3739f16 Further reshuffling of names and creation of packages. 2009-12-29 19:30:54 +01:00
Juan Jose Garcia Ripoll
f3aaa07887 Eliminate function OBJECT-TYPE 2009-12-29 18:09:59 +01:00
Juan Jose Garcia Ripoll
f2c0bae755 Export the symbols naming locations and c1forms from C-DATA 2009-12-29 18:06:37 +01:00
Juan Jose Garcia Ripoll
bf78e2ef29 cmpc-pass.lsp was not loaded by load.lsp.in 2009-12-29 17:37:33 +01:00
Juan Jose Garcia Ripoll
980b2ab650 CTOP-WRITE takes an argument denoting the source of the code 2009-12-29 17:36:07 +01:00
Juan Jose Garcia Ripoll
eb029bd8d1 LOCATION-PRIMARY-TYPE exported from C-DATA 2009-12-29 17:32:51 +01:00
Juan Jose Garcia Ripoll
55b9d4344e propagate-types now only takes two arguments 2009-12-29 17:32:27 +01:00
Juan Jose Garcia Ripoll
a71c8203f8 Restore the function enforce-types, but now using locations instead of c1forms. 2009-12-29 17:32:11 +01:00
Juan Jose Garcia Ripoll
0abf905420 Removed type information from C1FORMs 2009-12-29 17:18:33 +01:00
Juan Jose Garcia Ripoll
97b6077f84 New file cmploc.lsp for dealing with locations. 2009-12-29 16:51:05 +01:00
Juan Jose Garcia Ripoll
8355766f0c +init-function-name+ is now in C-DATA 2009-12-29 16:50:48 +01:00
Juan Jose Garcia Ripoll
d6c25c24bf Explicitely export from C-DATA the flags that COMPILER must then export. 2009-12-29 16:50:24 +01:00
Juan Jose Garcia Ripoll
3fcfaef8cf In cmpmain.lsp, t3local-fun is now a private symbol. 2009-12-29 16:49:43 +01:00
Juan Jose Garcia Ripoll
c663a87d2a Reorganize sysfun.lsp using the new packages. 2009-12-29 16:49:19 +01:00
Juan Jose Garcia Ripoll
7956fb1441 Further reorganization, eliminating most uses of WT-* functions from the compiler driver. 2009-12-29 16:18:14 +01:00
Juan Jose Garcia Ripoll
509a7eae43 Further split cmpdefs.lsp into other files, including now a file for package definitions, a file for data types, a file for global variables, and a new package C-DATA that contains all those common structures. 2009-12-29 14:58:04 +01:00
Juan Jose Garcia Ripoll
2dad791a12 Further reorganized the c-backend, including a pass to replace constants with equivalent C expressions for accuracy. 2009-12-29 12:33:30 +01:00
Juan Jose Garcia Ripoll
187144581f Full code reorganization, further splitting the backend. 2009-12-29 12:05:21 +01:00
Juan Jose Garcia Ripoll
b695d03693 Add optional debug statement 2009-12-29 00:22:11 +01:00
Juan Jose Garcia Ripoll
af90a24100 Simplified the compiler for blocks, eliminating the need for temporaries. 2009-12-28 21:36:22 +01:00
Juan Jose Garcia Ripoll
35bceed7d8 Fixed the compiler for MULTIPLE-VALUE-BIND, which was producing wrong code because it set bindings _before_ the values form. 2009-12-28 21:35:03 +01:00
Juan Jose Garcia Ripoll
c644e6e761 Parsing of optional arguments uses the jmp-nonzero operator 2009-12-28 21:34:06 +01:00
Juan Jose Garcia Ripoll
113b2907e4 Moved the functions for printing C1FORMS from cmpbackend to cmppass 2009-12-28 21:33:23 +01:00
Juan Jose Garcia Ripoll
f4e36b921b Remove debug statements in cmpbind.lsp 2009-12-28 21:32:40 +01:00
Juan Jose Garcia Ripoll
e8ba4e673a Ensure that the input to the JMP-ZERO/NONZERO operators is an object with integer representation type. 2009-12-28 21:32:21 +01:00
Juan Jose Garcia Ripoll
b4645481d5 Simplify the construction of slot accessors. 2009-12-28 21:31:24 +01:00
Juan Jose Garcia Ripoll
9716718a82 When updating the type of a destination, use the primary type. New operator JMP-NONZERO. 2009-12-28 21:30:59 +01:00
Juan Jose Garcia Ripoll
7e2eb381a9 The backend has to be loaded almost at the end, after tables, passes and other macros. 2009-12-28 21:29:57 +01:00
Juan Jose Garcia Ripoll
e73c32c844 Avoid using (void) when discarding output from C expressions. 2009-12-28 16:21:30 +01:00
Juan Jose Garcia Ripoll
41998701ac In new-cmp/cmpbackend.lsp, added missing indirection in an argument to cl_parse_key() 2009-12-28 16:20:53 +01:00
Juan Jose Garcia Ripoll
3ad041e968 Removed debug statements in EMIT-LOCAL-FUNS. 2009-12-28 15:06:59 +01:00
Juan Jose Garcia Ripoll
97bc8f4c4e Removed some debug statements, redirected others to *dump-output* 2009-12-28 15:06:06 +01:00
Juan Jose Garcia Ripoll
40c698cc64 Remove obsolete file new-cmp/cmptest 2009-12-28 15:05:15 +01:00
Juan Jose Garcia Ripoll
3ff0f77c89 Enforce the representation type of values output in various C forms. 2009-12-28 14:47:47 +01:00
Juan Jose Garcia Ripoll
7a59afb68d Add missing compiler files to the list of sources loaded by Emacs. 2009-12-28 14:47:27 +01:00
Juan Jose Garcia Ripoll
b659f7de92 Enforce :BOOL representation type on condition values for IF statements. 2009-12-28 14:46:28 +01:00
Juan Jose Garcia Ripoll
c17b26f4d2 Fixed the pass for assigning labels. 2009-12-27 23:24:46 +01:00