home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / vbcc / doc / History < prev    next >
Encoding:
Text File  |  1997-01-31  |  39.5 KB  |  850 lines

  1. vbcc is (c) in 1995-97 by Volker Barthelmann
  2.  
  3. (cga68k): changes in the code generator for amiga68k/unix68k
  4. (cgi386): changes in the code generator for i386
  5. (cla68k): changes in the C library for amiga68k
  6. (vca68k): changes in the compiler frontend for amiga68k
  7. (vcu68k): changes in the compiler frontend for unix68k
  8.  
  9.  
  10. Changes since V0.4e
  11.  
  12. - small improvements on the i386 code generator (cgi386)
  13. - bug fix: minor bug in loop-unrolling with TEST
  14. - bug fix: there was a check missing in type_expr/CALL
  15. - bug fix: do not use addressing modes if base register was freed (cga68k)
  16. - added new m040.lib by Aki M Laukkanen (cla68k)
  17. - added elf-support and -elf option to i386 code generator (cgi386)
  18. - bug fixed: _ctype_.c in vcs.lib had been built with large data (cla68k)
  19. - __reg added
  20. - added support for parameter passing in registers
  21. - small changes in local optimizing register allocation
  22.  
  23. Changes since V0.4d
  24.  
  25. - arguments for mieee-functions are passed in different order now; rebuilt
  26.   mieee.lib (cga68k, cla68k)
  27. - changed directory-structure, Makefile and frontend
  28. - bug fixed: certain struct initializations got the alignment wrong (bug
  29.              was probably introduced recently)
  30. - included new PhxLnk
  31. - included startup-code for ixemul.library by Frank Wille
  32. - changed default vc.config (-Ivinclude: put at the end)
  33. - better error handling when parsing enums
  34. - fixed a bug with struct-assigns and improved them a bit (cga68k)
  35. - moved a } in killsp()
  36. - slightly better error-handling of function-declarations
  37. - warning 121 only applies to storage-class extern
  38. - bug fixed: declaration for remove() was missing in stdio.h (cla68k)
  39. - bug fixed: extra ','s in function calls cause a diagnostic now
  40. - added a missing ';' in vconfig-sources
  41. - added missing includes and removed incorrect ',' in vbrowse-sources
  42.  
  43. Changes since V0.4c
  44.  
  45. - bug fixed: delayed-popping was corrupt in certain cases (cga68k, cgi386)
  46. - cleanup_cg() added
  47. - shortcut() added
  48. - fixed bug in the optimzer (av.c and regs.c)
  49. - modified handling of character-constants with multiple chars
  50. - cleaned up a lot of internal things and using the target's arithmetic
  51.   where necessary - required changes in the code generators
  52. - simple-regs will assign scratch-registers again if no functions are called
  53. - fixed bug in simple-regs
  54.  
  55. Changes since V0.4b
  56.  
  57. - -no-multiple-ccs added
  58. - warning 119 is not displayed for static vars any more
  59. - bug fixed: global copy propagation probably didn't really do anything
  60. - better support for multiple condition code registers
  61. - started code-generator for ppc
  62. - changed directory-structure
  63.  
  64. Changes since V0.4a
  65.  
  66. - bug fixed: the new PUSH still didn't work ok in all cases (cga68k)
  67. - bug fixed: certain (useless) comparisons between unsigneds and constants
  68.              generated wrong code
  69.  
  70. Changes since V0.4
  71.  
  72. - bug fixed: isalpha must not be true for anything but a-z/A-Z (cla68k)
  73. - new PhxLnk
  74. - bug fixed: aliasing info was incorrect in some mustconvert-cases
  75. - bug fixed: the assert-macro didn't work (cla68k)
  76. - bug fixed: the offset of addressing modes was not cleared generating
  77.              problems with the new PUSH (cga68k)
  78. - bug fixed: assign() had problems with qualified floats/doubles (cga68k)
  79.  
  80. Changes since V0.3i
  81.  
  82. - rebuilt libraries with -O2 (cla68k)
  83. - warning 216 added
  84. - bug fixed: initializations of structs containing unnamed bitfields were
  85.              not handled correctly
  86. - [f|s]printf and [f|s]scanf are always recognized if declared correctly
  87. - modified cp.c to use aliasing info
  88.  
  89. Changes since V0.3h
  90.  
  91. - bug fixed: aliasing info with arrays and structs wasn't always correct
  92. - #pragma opt added
  93. - added __v0[s|f]printf to vc.lib and modified stdio.h (cla68k)
  94. - added replacing printf/scanf-like functions
  95. - warning 215 added
  96. - warning 214 added
  97. - looking at format strings of printf/scanf and similar functions
  98. - #pragma printflike/scanflike added
  99. - handling of #pragma changed a bit
  100. - warning 213 added
  101. - bug fixed: calls strlen, strcpy and memcpy were inlined even if they had
  102.              no external linkage
  103. - warning 212 added
  104. - warning 211 added
  105. - bug fixed: t_max[UNSIGNED|LONG] wasn't set correctly (cga68k)
  106. - warning 210 added
  107. - warning 170 displays line number
  108. - INIC supported for error-messages
  109. - changed ierror-macro and eliminated multiple __FILE__-expansions reducing
  110.   size of executable a bit
  111. - improved debugging output (cga68k)
  112. - vc prints size of generated executable with -v (vca68k)
  113. - vc puts temporary files in T: unless -notmpfile is specified (vca68k)
  114. - improved debugging output (cga68k)
  115. - added geta4() (cla68k)
  116. - moved a few killsp()s
  117. - added elementary source-level-debugging helps (cga68k)
  118. - added -g to activate symbol-debugging with PhxAss (cga68k)
  119.  
  120. Changes since V0.3g
  121.  
  122. - bug fixed: ceil() and floor() have been missing in m881.lib (cla68k)
  123. - bug fixed: prototype for fputs was wrong (cla68k)
  124. - improved pushing of larger objects (cga68k)
  125. - added chdir() to extra.lib (cla68k)
  126. - bug fixed: sometimes dc.l xyz(a4) was generated (cga68k)
  127. - fixed some memory-leaks with alias-info
  128. - bug fixed: always_reached was not reliable
  129. - bug fixed: frequency-reduction sometimes created the wrong type if a
  130.              computation (but not the whole IC) was moved
  131. - slightly modified calc_movable()
  132. - used old version of always_reached again
  133. - address-of struct/union/array ICs were sometimes not moved out of loops
  134. - redesigned handling of used/changed objects and aliasing information
  135.  
  136. Changes since V0.3f
  137.  
  138. - bug fixed: space for at least one var on the stack has been allocated
  139.              even if no var was ever used
  140. - changed optimizing register assignment slightly
  141. - bug fixed: type-based alias-optimization wasn't always correct
  142. - bug fixed: the new reaching-definitions did not handle compound types
  143. - bug fixed: strength-reduction created problems with certain configurations
  144.              of nested loops and splittable induction-vars
  145. - bug fixed: strength-reduction of x-ind_var did not negate the induction
  146. - vbcc built itself, vc and vcpp succesfully under NetBSD-Amiga 1.1
  147. - alignment of arrays in structures now depends on the array type
  148. - rebuilt mieee.lib, vc.lib and vcs.lib to use new return type passing (cla68k)
  149. - modified returning of larger types and added -no-fp-return and
  150.   -no-mreg-return (cga68k)
  151. - returning of structures in registers is allowed
  152. - 8bit constants are copied in registers for 060 again (cga68k)
  153. - elimination of a dead GETRETURN does not count as a change any more
  154. - moved the computation of areached out of the frequency-reduction-loop
  155. - made printing of fp-constants a bit better (cga68k)
  156. - added -gas (cga68k)
  157. - bug fixed: in certain cases a TEST #const was generated
  158. - included new fd2lib/MakeALIB.script/DoPktn.c by Johnny Tevessen
  159. - removed some gcc-specific-#includes from amiga.lib (cla68k)
  160. - modified representation of reaching-definitions and its use in
  161.   constant-propagation and frequency-/strength-reduction
  162. - bug fixed: declaration for fputs() was missing in stdio.h (cla68k)
  163. - added -no-alias-opt
  164. - alias-analysis by type added; currently used in:
  165.   - active-variable-analysis
  166.   - reaching-definitions-analysis
  167.   - available-expression-analysis
  168.  
  169. Changes since V0.3e
  170.  
  171. - changed vbrowse to be compatible with new error-mechanism
  172. - changed error-mechanism somewhat
  173. - added -iso
  174. - meaning of -ansi changed
  175. - strength-reduction uses the same induction variable for equivalent
  176.   operations now
  177. - bug fixed: another one with addressing-modes (cga68k)
  178. - bug fixed: end of basic blocks was not always correctly recognized and
  179.              illegal addressing modes could have been used when optimizing
  180.              (cga68k)
  181. - minor changes to time.h (cla68k)
  182. - lea is sometimes used for ADDI2P/SUBIFP (cga68k)
  183. - improved use of postincrement (cga68k)
  184. - pea is used with addressing-modes now (cga68k)
  185. - constant 0s are not copied into data registers any more (cga68k)
  186. - changed global register-allocation; starts with outermost loops and works
  187.   a bit different now
  188. - bug fixed: if/while/for did generate corrupt code if the condition was
  189.              constant 0 and the body contained a labeled-statement
  190. - bug fixed: simple_regs() did assign variables to scratch-registers even
  191.              if the function contained function-calls sometimes
  192. - bug fixed: there was a hardcoded sizeof(POINTER)==4 in szof()
  193. - bug fixed: changed the init-value for local_offset from 4 to maxalign
  194.              and adapted probj2()
  195. - some peephole-optimizations added
  196. - -fp-associative added
  197. - bug fixed: ICs with one source equal to the target were considered as a
  198.              use(gen) preventing elimination of such ICs in loops
  199. - bug fixed: sometimes branch-instructions were moved incorrectly
  200. - strength-reduction added
  201. - bug fixed: peephole() did some not-so-nice things when folding pointer
  202.              operations; probably not fatal in 68k code-generator
  203. - moved some parts from machine.c to other files and made the separation
  204.   of machine-dependent parts somewhat nicer
  205.  
  206. Changes since V0.3d
  207.  
  208. - bug fixed: frequency-reduction (and perhaps cse, too) got the type of
  209.              added temporaries wrong for ADDRESS/ADDI2P etc.
  210. - bug fixed: sometimes the test in for/while loops was corrupt if it contained
  211.              type-conversions in optimizing compilation
  212. - bug fixed: function-inlining did complain about functions returning struct
  213. - bug fixed: there was a problem with copy-propagation and structs
  214. - bug fixed: labs() was called abs() (cla68k)
  215. - added inlining of several functions to the header files (cla68k)
  216. - bug fixed: vbcc tried to inline varargs functions which usually resulted
  217.              in an error
  218. - frequency-reduction added
  219. - bug fixed: constant folding when optimizing did a division by zero when
  220.              folding a floating-point division with ]-1;0[ v ]0;1[
  221. - bug fixed: the 32bit division functions in vc.lib were buggy and got in
  222.              an (almost) endless loop with certain arguments; as vbcc
  223.              uses them it could get stuck when folding certain constants.
  224. - bug fixed: certain definitions haven't been set correctly at the start
  225.              of a function leading to wrong reaching definitions and corrupt
  226.              constant propagation in some cases
  227. - bug fixed: copy propagation did replace argument of ADDRESS
  228. - vc passes -+ through to vcpp (vca68k)
  229.  
  230. Changes since V0.3c
  231.  
  232. - vbcc accepts a space after '=' in its option (used by vc)
  233. - improved copy propagation; it was very conservative sometimes
  234. - bug fixed: there were parentheses missing somewhere in cp.c
  235. - bug fixed: restoring of scratch registers after function-calls was buggy
  236.              in optimizing compilation
  237. - distributed Makefile should be ready to use with vbcc now, Makefile.generic
  238.   should be easy to use with another compiler
  239. - polished Makefiles (added rules for vbccs etc.)
  240. - -o option of vc works with intermediate files, too (vca68k)
  241. - extra.lib included in source tree (cla68k)
  242. - vconfig included in source tree
  243. - bug fixed: the putc-macro in stdio.h wasn't ok, I think (cla68k)
  244. - vcpp was configured to accept C++-comments by default - this has been
  245.   corrected; add '-+' to the -pp lines in vc.config if you insist
  246. - -strip-path added
  247. - vc and vbcc accept -o=executable now
  248. - changed the call to vcpp in vc.config (no stdout-redirection any
  249.   more) (vca68k)
  250. - bug fixed: mysupp.c closed dup'ed files twice (cla68k)
  251. - replaced strstr in vc.lib by a version written by Kasper Graversen (cla68k)
  252. - -dontkeep-initialized-data causes vbcc not to keep initialized data in
  253.   memory and can therefore reduce memory consumption
  254. - warning 118 is no ANSI-violation
  255. - warning 207 added
  256. - checking of type-specifiers/qualifiers is now more strict
  257. - changed text for error 58
  258. - bug fixed: some initializations with additional braces were rejected
  259. - some minor changes to vc.doc (vca68k)
  260. - changed text for error 93 (errors.h, errors.doc, VBCCMessages.guide)
  261. - bug fixed: register assignment in optimizing compilation made errors
  262.              due to wrong BRA interpretation
  263.  
  264.  
  265. Changes since V0.3b
  266.  
  267. - minor changes to loop.c
  268. - bug fixed: fread didn't always return correct results (cla68k)
  269. - bug fixed: there were some 'extern's missing in vbc.h causing e.g. the
  270.              old problems with source layout
  271. - rebuilt vcpp to allow more than 10 open files (ouch!)
  272. - bug fixed: under certain circumstances global common subexpressions
  273.              were not replaced correctly if use and one evaluation were
  274.              in the same basic block
  275.  
  276.  
  277. Changes since V0.3a
  278.  
  279. - vc.lib/vcs.lib/mieee.lib/m881.lib/m040.lib/vbcc/vc rebuilt
  280. - div/ldiv should be conforming now
  281. - ungetc should now work even if it is the first action to a stream (cla68k)
  282. - fflush(0) only affects files in output mode (cla68k)
  283. - removed const qualifier from the ctype-array (cla68k)
  284. - changed the ctype-functions to use the array (cla68k)
  285. - added #definition of NULL to stdio.h (hope that's correct) (cla68k)
  286. - changed several stdio-functions and added line-buffering (cla68k)
  287. - bug fixed: setbuf/setvbuf was broken (cla68k)
  288. - bug fixed: vbrowse didn't ask for gadtools.library V39
  289. - vbrowse opens a window that fits on a standard workbench by default now
  290. - bug fixed: there was a bug in newmalloc.c (cla68k)
  291. - bug fixed: included new version of the pooled memory routines for amiga.lib
  292.              and rebuilt amiga.lib; hopefully works with OS2.0 now (cla68k)
  293. - bug fixed: struct-declaration-structs have been freed too early; current
  294.              solution is not very nice, but should work
  295. - bug fixed: there should not be restrictions on the source layout any more
  296.              (problem with look-ahead fixed)
  297. - bug fixed: identifiers longer than MAXI could cause problems
  298. - bug fixed: passing incomplete types to functions without prototypes did
  299.              not cause a diagnostic
  300. - changed the internal representation of structs/unions/prototypes
  301.   - some non-conforming things in the source corrected
  302.   - hardcoded limit for struct sizes etc. eliminated
  303.   - type of incomplete structs should be ok now
  304. - bug fixed: code after an always false if etc. wasn't generated even if
  305.              it contained a label
  306.  
  307.  
  308. Changes since V0.3
  309.  
  310. - vc passes options starting with -D or -I through to the preprocessor -
  311.   the format for -pp/-ppv has changed (vca68k)
  312. - vc writes names of objects for the linker to a temporary file if they are
  313.   very long (vca68k)
  314. - vc supports option -nostdlib to prevent linking with standard-startup/libs
  315.   additional entries -l2/-l2v are necessary in vc.config (vca68k)
  316. - bug fixed: perror was called prerror in the library - ouch; Make-scripts
  317.              changed and vc.lib/vcs.lib rebuilt (cla68k)
  318. - bug fixed: perror-prototype was incorrect (cla68k)
  319. - added missing prototype for strerror() to string.h (cla68k)
  320. - added missing prototype for strtok() to string.h (cla68k)
  321. - rebuilt amigas.lib and vcs.lib (cla68k)
  322. - bug fixed: constant data in code-sections was addressed via a4 with -sd
  323.              (cga68k)
  324. - bug fixed: conversion between pointers and integers may not be omitted in
  325.              most cases (cga68k)
  326. - branches after TEST unsigned are changed now and tst may be omitted (cga68k)
  327. - rebuilt amiga.lib (cla68k)
  328. - bug fixed: fd2lib didn't work with varargs-functions expecting the
  329.              argument-list in a data register (cla68k)
  330. - added several varargs-functions to fd2lib (cla68k)
  331. - edited the Make#?lib.scripts (cp->copy, *.c->#?.c) (cla68k)
  332. - added a few xdefs to amiga.lib (cla68k)
  333.  
  334.  
  335. Changes since V0.2v
  336.  
  337. - changed the version number :-)
  338.  
  339.  
  340. Changes since V0.2u
  341.  
  342. - rebuilt vc.lib and vcs.lib
  343. - bug fixed: the vbcc-compiled cpp did not close opened files; now the
  344.              routines in mysupport.c close all opened files at exit
  345. - bug fixed: there was still an error that caused wrong line numbers to be
  346.              printed in messages when an external preprocessor was used
  347. - compiling with NO_OPTIMIZER #defined and linking without av.o, cp.o, cse.o,
  348.   flow.o, loop.o and rd.o produces a smaller executable that doesn't
  349.   include the global optimizer
  350. - compiled the cpp from the lcc-distribution with vbcc and changed vc.config
  351.   to call this one rather than dcpp (vca68k)
  352. - bug fixed: removed some float.h scratch from limits.h (cla68k)
  353. - bug fixed: some code generation errors fixed (cga68k)
  354. - bug fixed: addressing-modes were sometimes used where they shouldn't (cga68k)
  355. - bug fixed: sometimes wrong code was generated for a op= b; expressions
  356. - bug fixed: some optimizer routines sometimes called mymalloc(0) which
  357.              caused mymalloc to abort with C-libraries returning a null
  358.              pointer; fixed by changing the size to 1 in mymalloc (not
  359.              very nice, but simple)
  360. - added alternative malloc-routines that use the Amiga's AllocPooled-Rotuines
  361.   (libsrc/stdlib/newmalloc) (cla68k)
  362. - bug fixed: in the handling of switch-statements the addressing-mode-pointers
  363.              were set to zero too early and therefore later overwritten
  364.              with scratch
  365. - bug fixed: in some places memory that was already free'd was accessed under
  366.              certain circumstances
  367. - replacing multiplications by shifts was not done in recent versions (cga68k)
  368. - some minor code generation improvements (cga68k)
  369. - bug fixed: copies of local auto variables of inlined functions got
  370.              non-empty identifiers which caused corrupt code generation
  371.              under certain circumstances
  372. - bug fixed: function-inlining didn't work with return-values that must be
  373.              passed via pointer
  374. - bug fixed: variables in IDENTIFIER-nodes were searched with find_var()
  375.              in gen_code() again, rather than using a copy from
  376.              type_expression(); this generated corrupt code in certain cases
  377.              of function-inlining
  378. - rebuilt showerr and tovbr using small-data with new PhxLnk
  379. - added special inlining of strlen() and strcpy()
  380. - bug fixed: the amiga68k code generator assumed long-alignment with
  381.              inline_memcpy
  382. - bug fixed: tst may not be omitted if operand is unsigned (cga68k)
  383. - bug fixed: inline_memcpy was not only used when optimizing
  384. - bug fixed: the line number displayed in diagnostics were sometimes wrong
  385.              if an external preprocessor with # <line> "file" was used
  386. - bug fixed: function inlining messed up labels of static local vars
  387.  
  388.  
  389. Changes since V0.2t
  390.  
  391. - removed any 060-specific modulo-handling again (060 has div?l.l) (cga68k)
  392. - some minor code generation improvements with arithmetic instructions and
  393.   constants (cga68k)
  394. - warning for not correctly handled empty struct-declarations added
  395. - bug fixed: initializations of incomplete structs resulted in infinite
  396.              error loops
  397. - improved diagnostics regarding incomplete types
  398. - bug fixed: nested calls to inlined functions were broken
  399. - address-of instructions are subject to common-subexpression-elimination
  400. - bug fixed: function-inlining sometimes assigned the arguments to the wrong
  401.              variables
  402. - #pragma only-inline on/off added
  403. - some associativity optimizations are done with ADDI2P, too
  404.  
  405.  
  406. Changes since V0.2s
  407.  
  408. - some minor changes and bug fixes on vbrowse
  409. - program showerr added
  410. - bug fixed: if the return value was moved to an address register this was
  411.              supposed to set the condition codes (cga68k)
  412. - addq #const,a7 is no longer supposed to destroy condition-codes (cga68k)
  413. - bug fixed: sometimes the popping of function arguments was moved before
  414.              a call (cga68k)
  415. - added #pragma type to display the type of an expression
  416. - bug fixed: declarations of functions within functions were buggy in 0.2r,
  417.              because the prototype of the inner function was freed to early
  418. - bug fixed: vbcc assumed that "fmove.l fpx,ea" sets condition-codes for
  419.              ea (cga68k)
  420. - bug fixed: TEST-instructions were omitted even if the type was different
  421.              (could probably only happen with dirty things) (cga68k)
  422. - bug fixed: offsets for temporary buffers for scratch-registers were
  423.              sometimes incorrectly calculated (only without optimizing);
  424.              scanf() of the recent mieee.lib and m040.lib versions was
  425.              broken due to that bug
  426. - bug fixed: string constants are only allowed as initalizers for array of
  427.              char now
  428. - bug fixed: handling of long float/double is now a bit better
  429. - changed flags of a few error messages
  430. - bug fixed: problem with unexpected end of file errors fixed and some
  431.              improvements in killsp() and translation_unit()
  432. - function calls are never separated from the corresponding PUSHs now (this
  433.   might confuse the delayed popping of code-generators)
  434. - if all successors of a block have the same instruction at the beginning
  435.   it is moved to the predecessor in certain cases
  436. - space for local variables is better used in optimizing compilation now
  437. - function inlining doesn't increase label-numbers any more
  438. - handling of local registers and pointer dereferencing improved a bit
  439.   (temporary vars that get dereferenced should almost always be
  440.   assigned a proper register now)
  441. - bug fixed: rearranging of array-accesses was buggy in 0.2s
  442. - bug fixed: a previous declaration of a function was not visible in the
  443.              function definition in 0.2s
  444. - changed the ctype macros a bit (cla68k)
  445. - bug fixed: use of addressing modes was buggy in 0.2s (therefore the
  446.              last mieee.lib was broken) (cga68k)
  447. - code generation for modulo improved for 020+ (incl. 060) (cga68k)
  448.  
  449.  
  450. Changes since V0.2r
  451.  
  452. - bug fixed: conversions between unsigned<->floating point should now
  453.              always be correct with mieee.lib (cga68k) (cla68k)
  454.              mieee.lib rebuilt
  455. - if -noasm is specified the .asm file is no longer created
  456. - gen_vars() now does not create output if there were errors or -noasm
  457.   was specified (this also fixes a bug that created infinite internal
  458.   errors after certain corrupt initializers)
  459. - bug fixed: vbcc did not correctly recognize if opening of the input file
  460.              failed in V0.2q/r
  461. - some optimizations to improve array accesses
  462. - VARADR objects are subject for copy propagation now
  463. - add/sub with constant addresses gets folded (opt only)
  464. - divsl.l is not used when -cpu=68060 is selected (cga68k)
  465. - switch-statements can be implemented by SUB/TEST/BEQ sequences rather
  466.   than COMPARE/BEQ sequences (selectable with SWITCHSUBS)
  467. - bug fixed: no error for duplicate case labels was printed
  468. - bug fixed: detecting of loops did identify loops with jumps out of
  469.              the loop as normal loops
  470. - bug fixed: scope of function prototypes should now be correct
  471. - bug fixed: function parameters were not marked as DEFINED and therefore
  472.              redefinition of function parameters did not cause errors
  473.  
  474. Changes since V0.2q
  475.  
  476. - if several basic blocks have the single same successor and the last
  477.   last instruction of those statements is identical it is moved to the
  478.   common successor
  479. - for CPUs>=68040 8bit constants are not copied to registers (cga68k)
  480. - popping of function arguments is done one instruction before a TEST inst.
  481.   (I thought this was necessary to avoid certain tst-instructions, because
  482.   my manual says addq #x,a7 changes condition codes - however this seems
  483.   to be wrong) (cga68k)
  484. - Thorsten Schaaps' preprocessor integrated into vbcc
  485.   files vbpp.h and preproc.c added
  486. - new options:
  487.   - -nested-comments allows nested comments (not ANSI conforming)
  488.   - -cpp-comments allows C++ style comments (not ANSI conforming)
  489.   - -macro-redefintion allows redefinition of macros (not ANSI conforming)
  490.   - -no-trigraphs prevents expansion of trigraphs (not ANSI conforming)
  491.   - -no-preprocessor prevents use of the bultin preprocessor
  492.   - -E only preprocesses the file to <file>.i
  493.  
  494.  
  495. Changes since V0.2p
  496.  
  497. - bug fixed: strncat() did not append a 0, but behaved like strncpy (cla68k)
  498. - bug fixed: sizeof(uncomplete type) did not cause an error message
  499. - bug fixed: wrong code was generated for ?: if the condition evaluated
  500.              to a scratch-var pointing somewhere
  501. - bug fixed: pointer:0 and 0:pointer was not allowed in conditional-exp
  502. - bug fixed: delayed popping produced wrong code with nested function calls
  503. - support for #line directive of most preprocessors added
  504. - several additions made to must_convert()  (cga68k)
  505. - realloc() added to vc.lib (cla68k)
  506. - target-specific optimization options have been separated from the
  507.   -O flag
  508. - the Amiga68k code generator now accepts the following flags to replace
  509.   the former corresponding flags in the -O option:  (cga68k)
  510.   - -use-framepointer
  511.   - -no-addressing-modes
  512.   - -no-delayed-popping
  513. - bit 12 (4096) in -O activates function inlining; previously defined
  514.   functions are inlined in their caller, depending on the size of the
  515.   function
  516. - new option -inline-size can be used to in-/decrease the number of
  517.   functions to be inlined; default=30 - higher values mean more functions
  518.   get inlined
  519.  
  520.  
  521. Changes since V0.2n/0.2o
  522.  
  523. - new option -optpasses=n sets the maximum number of optimizer passes
  524. - bug fixed: ADDI2P with a short integer sometimes was not converted if the
  525.   target was a data register
  526. - constant data is placed in the code sections as long as -const-in-data
  527.   is not specified (cga68k)
  528. - m040.lib started (cla68k)
  529. - unnecessary tst instructions are sometimes eliminated (cga68k)
  530. - constants -128<=x<128 are not copied in a register for SETRETURN and PUSH
  531. - COMPARE x,#0 should now always be converted to TEST x
  532. - bug fixed: a label-statement at the end of a block caused an error
  533. - bug fixed: sometimes still used type node was freed in alg_opt
  534. - bug fixed: unsigned function arguments were sometimes converted to signed
  535. - calling scheme for ieee and ldiv functions changed (cga68k)
  536. - usage of addressing modes with ieee and ldiv functions prohibited (cga68k)
  537. - bug fixed: files opened for append were deleted, oops (cla68k)
  538. - use of addressing modes slightly changed (cga68k)
  539. - modf, ldexp and frexp added to mieee.lib and m881.lib (cla68k)
  540. - bug fixed: unsigned integers were not allowed in case labels
  541. - bug fixed: push problem
  542. - bug fixed: cmp x,#0 was sometimes converted to tst x without changing the
  543.   following branching instruction (cga68k)
  544. - for and while loops are generated differently when optimizing is
  545.   activated (first testing of the loop condition can sometimes be deleted)
  546. - bug fixed: isquickkonst2 now tests for 0<x<=8 rather than 0<=x<=8 (ouch) (cga68k)
  547. - a>>0=a<<0=a and a few other algebraic optimizations added
  548. - insert_const2() added and insert_const() changed
  549. - saverestoreregs() now has a stack for the pushed register-lists (cga68k)
  550.   (removed again, because saveregs/restoreregs has now been removed and
  551.    mechanism changed)
  552. - bug fixed: delayed popping of function arguments corrected (cga68k)
  553. - delayed popping and omitting of framepointer can now be turned on
  554.   separately (256 for framepointer, 512 for delayed popping)
  555. - bug fixed: stackoffset was sometimes incorrectly calculated
  556. - internal mechanism for passing function return values changed, structure
  557.   returns should be reentrant now
  558.   some library routines may have to be recompiled
  559.   mieee.lib was rebuilt to use the new mechanism (cla68k)
  560. - op a,b->scratchvar; move scratchvar->c is combined to op a,b->c
  561. - handling of optimizations slightly changed
  562. - bug fixed: open_out() allocated a buffer one byte too small if the input
  563.   file contained no period
  564.  
  565. - bit 2... in -O option activate heavy optimizations
  566.   - scratchvars are not assigned to registers during IC generation
  567.   - labels are optimized and a flowgraph is constructed
  568.   - branches to branches, branches to the following instruction etc. are
  569.     optimised and unreachable code is eliminated
  570.   - constants are propagated and folded
  571.   - common subexpressions are eliminated
  572.   - copies are propagated
  573.   - active variables are analysed and dead assignments eliminated
  574.   - temporary variables are recognized and assigned to registers
  575.   - registers are assigned differently using information on active variables
  576.     and loop structure
  577.  
  578. - new source files added/changed:
  579.   - opt.h : declarations etc. used in optimization routines
  580.   - opt.c : general routines, peephole optimizations and control of
  581.             optimization passes
  582.   - flow.c: construction of flowgraphs, jump optimizations and other
  583.             control-flow related routines
  584.   - regs.c: register allocation
  585.   - av.c  : analysis of active variables and elimination of dead assignments
  586.   - rd.c  : analysis of reaching definitions, constant propagation and
  587.             constant folding
  588.   - cse.c : common subexpression elimination
  589.   - cp.c  : copy propagation
  590.   - loop.c: analysis of loops and optimizations in loops
  591.  
  592. - the following warnings have been added
  593.   - use of variable before its initialization (with optimizer only)
  594.   - dead assignments (opt only)
  595.   - definition of global functions without prior declaration
  596.   - non-void functions without return-statements
  597.   - assignment in comparison context
  598.   - weird code (opt only)
  599.  
  600.  
  601. Changes since V0.2m
  602.  
  603. - if -ansi is specified assignments between differently signed pointers
  604.   will cause an error
  605. - -dontwarn=n disables all warnings if n<0
  606. - -warn option added to enable certain warnings, usage like -dontwarn
  607. - the following warnings have been added
  608.   - implicit function declarations
  609.   - function calls without prototype
  610.   - use of #pragma
  611.   - assignment/cast of integers to narrower type
  612.   - cast of pointer to pointer with stricter alignment requirements
  613.   - redundant comparisons with unsigned values
  614. - stupid, braindead error in codegenerator fixed (wrote to string constant
  615.   and caused segmentation faults on systems with memory protection) (cga68k)
  616. - TimeDelay new in amiga.lib (has to be rebuilt)
  617. - ctype.h now has function prototypes and macros should be ok with negative
  618.   arguments
  619. - macros in stdio.h now accept void* pointers and do some fancy type checking
  620.   (cla68k)
  621. - temporary hack to display correct filename and line number in error
  622.   messages
  623. - vc now handles filenames with spaces and always uses the complete path
  624.  
  625.  
  626. Changes since V0.2l
  627.  
  628. - in conditional-expressions the type of the result was used for the
  629.   generated comparison due to a bug
  630. - ceil() and floor() were added to m881.lib (cla68k)
  631. - flags may be specified more than once
  632. - vbcc does not change argv any more
  633. - output of errors/warnings changed and error/warning-texts put in <errors.h>
  634. - % with powers of two is not replaced by an 'and' any more if the operand is
  635.   signed (cga68k)
  636. - entries in the history-file now in (bad) English rather than German
  637. - -dontwarn option added to suppress certain warnings
  638. - type conversions that are unnecessary on a certain machine may be omitted
  639.  
  640.  
  641. Aenderungen seit V0.2k
  642.  
  643. - bei shifts werden keine arithmetischen Typerweiterungen mehr vorgenommen
  644. - endlose Fehlerschleifen sollten erkannt werden
  645. - Anfang eines SmallCode/SmallData-Modus; -sc und -sd schalten den jeweiligen
  646.   Modus ein; deswegen wird auch vermehrt lea/pea verwendet (cga68k)
  647. - startup.o initialisiert nun a4 fuer den SmallData-Modus (cla68k)
  648. - die xref _LVO aus startup entfernt
  649. - fd2lib geschrieben
  650. - diverse Libraryfunktionen geschrieben (vla68k)
  651. - der rechte Teil einer conditional-expression ist jetzt eine
  652.   conditional-expression (war faelschlicherweise expression)
  653. - Verwaltung der sections etwas geaendert; section=-1 am Anfang (cga68k)
  654. - Fehlerbehandlung verbessert: Initialisierungen von unvollstaendigen
  655.   Strukturen/Unionen, Arrays mit size==0 und nicht vorhandene Identifier
  656. - Fehler bei der Erkennung von Fehler-Endlosschleifen behoben; funktioniert
  657.   aber trotzdem nicht immer
  658. - Workaround fuer den compare-bug; leider nicht sehr schoen
  659. - Warnung bei dem Push-Problem
  660. - Ausdruecke hinter return wurden bemaengelt, wenn die Funktion void war
  661. - Funktionsargumente werden bei -O=256 nicht mehr sofort vom Stack geholt
  662.   sondern, wenn moeglich gesammelt und dann auf einmal
  663.  
  664.  
  665. Aenderungen seit V0.2j
  666.  
  667. - vc ruft jetzt 'FreePhxAss' statt 'CPhxAss' auf (vca68k)
  668. - free() verkraftet 0 (cla68k)
  669. - bei aufgetretenen Fehlern wird der Returncode auf EXIT_FAILURE gesetzt
  670. - keine Fehlermeldung bei Files ohne Funktionsdefinition mehr
  671. - Fehler behoben, der bei Verwendung einer Adressierungsart der Form
  672.   (d,ax,dy.w[*z]) zu unnoetigen internal errors und evtl. Schlimmerem
  673.   fuehrte (&7 vergessen) (cga68k)
  674. - difftime() wird in time.h als Makro definiert (cla68k)
  675. - #undef difftime in difftime.c eingefuegt (cla68k)
  676. - Deklaration von rename() in stdio.h korrigiert (cla68k)
  677. - wird Flag 8 (256) bei -O gesetzt, wird a5 nicht mehr als Framepointer
  678.   benutzt (cga68k)
  679. - "offset out of object"-Meldungen geaendert
  680. - string-Funktionen geaendert (cla68k)
  681. - Fehler bei Registerallocation, der auftrat, wenn der Rueckgabewert nicht
  682.   in einem Register zurueckgegen wird, behoben
  683. - Variablendeklaration geaendert; sollte jetzt korrekter sein und tentative
  684.   definitions besser behandeln
  685. - fehlendes ; in stdlib.h eingefuegt (cla68k)
  686. - bei saveregs vor einem function call wird ein Scratchregister, ueber das
  687.   die Funktion aufgerufen wird, nicht gespeichert
  688. - wenn der compare-Fehler auftritt sollte zumindest ein error gemeldet
  689.   werden (cga68k)
  690. - wenn keine lokalen Variablen benutzt werden, wird kein Platz auf dem
  691.   Stack gemacht (cga68k)
  692. - Berechnung des Alignments fuer Kopierschleife sollte jetzt auch ohne
  693.   Framepointer korrekt sein (cga68k)
  694. - vc stark geaendert und config-file eingefuehrt (vca68k)
  695. - bei Meldungen wird der Filename mit ausgegeben
  696.  
  697.  
  698. Aenderungen seit V0.2i
  699.  
  700. - Verbesserung der Codegenerierung fuer FPU-Operationen (cga68k)
  701. - Problem bei USEQ2ASZ und Zusammenfassen von IC/ASSIGN behoben
  702. - floating point nun auch ohne FPU moeglich, noch nicht 100% fehlerfrei (cga68k/cla68k)
  703. - Anfang einer Mathelibrary fuer die IEEE-Libraries (cla68k)
  704.   FloatingPoint<->UnsignedInteger nicht korrekt
  705. - Fehler bei switch(UNSIGNED) behoben
  706. - alignment von struct-members sollte wieder passen
  707. - unsigned char/short->fp mit FPU korrigiert (cga68k)
  708. - ein labeled-statement enthaelt das nachfolgende statement
  709. - _main aus mieee.lib oeffnet die Libraries nun in der richtigen
  710.   Reihenfolge (autsch) (cla68k)
  711. - Test auf am->Register in get_reg() eingebaut
  712. - Fehler bei Kopierschleife behoben
  713. - allocreg zaehlt bei Nutzung von erweiterten Adressierungsarten als
  714.   zerstoerend; sollte damit jetzt halbwegs stabil sein; allerdings duerften
  715.   noch internal errors, die aber wohl nichts mehr bedeuten, drin sein
  716. - allocreg/freereg von Registervariablen wird aus Code entfernt und internal
  717.   errors sind beseitig; sollte nur Effekt haben, wenn Returnregister als
  718.   Registervariable verwendet wird
  719. - bei initialisierten Unionen werden jetzt auch die uebrigen Werte aufgefuellt
  720. - bei initialisierten auto Strukturen und Unionen duerfen auch Strukturen/
  721.   Unionen gleichen Typs angegeben werden
  722. - die Kopierroutinen sollten jetzt in (fast?) allen Faellen korrekt
  723.   funktionieren und teilweise auch schneller sein
  724. - Fehler mit auto arrays der Form a[]=... behoben; der Offset wurde nicht
  725.   hochgezaehlt
  726. - difftime in der Math Library (cla68k)
  727. - einige ueble Fehler aus dem frontend fuer amiga68k entfernt (vca68k)
  728. - unbenannte Bitfelder werden bei Initialisierungen jetzt uebergangen
  729. - strengere Pruefung bei Zuweisungen zwischen Zeigern mit verschiedenen
  730.   Qualifiern
  731. - Funktionsdefinitionen nach altem Stil erzeugen keinen Prototype mehr
  732. - float Parameter in alten Funktionsdefinitionen werden korrekt behandelt
  733. - diverse Aenderungen bei der Belegung von Registervariablen; gibt jetzt
  734.   Register etwas leichter her
  735.  
  736.  
  737. Aenderungen seit V0.2h
  738.  
  739. - Fehler beim Kommaoperator behoben und Meldung bei fehlenden sidefx
  740. - Konvertierungsroutinen fuer target data types geaendert
  741. - Routinen fuer Fehler/Warnungen akzeptieren jetzt beliebige Parameterlisten
  742. - Initialisierungen wie (cast)&var werden erlaubt (evtl. Probleme, wenn
  743.   verschiedene Pointer existieren)
  744. - die Adresse eines Arrays kann jetzt ermittelt werden
  745. - Ueberpruefung der Gleichheit von Typen verbessert
  746. - Registerbelegung bei return verbessert
  747. - ueberfluessige Warnung bei nicht initialisierter const extern Variable
  748.   entfernt
  749. - Franks div/mod in vc.lib eingebaut (cla68k)
  750. - Fliesskomma-returnwerte nur noch in fp0, wenn fuer fpu generiert wird (cga68k)
  751. - Stringkonstanten sind nicht mehr const char[] sondern char[]
  752. - vc versteht nun -l Option (vca68k)
  753. - printf/scanf durch leicht veraenderte Versionen aus libnix ersetzt (cla68k)
  754. - Anfang einer Mathelibrary fuer 68881 (cla68k)
  755. - (hoffentlich) korrekte floating point->integer Rundung bei FPU (cga68k)
  756.  
  757.  
  758. Aenderungen seit V0.2g
  759.  
  760. - Fehler bei Registerbelegung in totem Code behoben
  761. - Fehler bei Registerbelegung in switch-statements behoben
  762. - boeser Fehler bei Variablen mit nicht-Register-return-values behoben
  763. - vc.lib: Ctrl-C wird erkannt (manchmal) (cla68k)
  764. - vc.lib: malloc() verbessert (cla68k)
  765. - vc.lib: limits.h korrigiert (cla68k)
  766. - vc.lib: time.h und time-Funktionen eingebaut (cla68k)
  767. - keine Warnung mehr bei const typedefs
  768. - Warnung bei Initialisierung von typedefs
  769. - verschiedene Aenderungen bei der Behandlung von storage-classes
  770. - globale static Variablen werden jetzt nicht mehr exportiert
  771. - storage-classes in Prototypen werden beachtet
  772. - const Variablen werden nicht mehr als Konstanten behandelt (war fehlerhaft)
  773. - Fehler in union atyps behoben (vuchar war zchar statt zuchar, argh!)
  774. - string concatenation eingebaut
  775. - Umwandlung unsigned->floating point mit FPU korrigiert (cga68k)
  776. - Vergleiche bei unsigned werden jetzt korrekt behandelt (cga68k)
  777. - bessere Behandlung von Funktionsprototypen
  778. - Zuweisungen zwischen Funktions- und Datenzeigern sind nicht mehr erlaubt
  779.  
  780.  
  781. Aenderungen seit V0.2f
  782.  
  783. - -snma entfernt (cga68k)
  784. - einige Vereinfachungen im Codegenerator wegen reg/freg-Benutzung (cga68k)
  785. - Entfernung einiger alter Codefragmente im Codegenerator (cga68k)
  786. - Abfrage bei malloc() eingebaut
  787. - einige Fehler bei der IC-Generierung im Zusammenhang mit Registerbelegung
  788.   behoben
  789. - Fehlerbehandlung verbessert; nach -maxerror=n (default 10) Fehlern
  790.   wird Uebersetzung abgebrochen (bei 0 wird nicht abgebrochen)
  791. - -ansi unterdrueckt unwichtige Warnungen und Warnungen mit ANSI-Verletzung
  792.   werden als Fehler behandelt
  793. - Flags loeschen jetzt durch &=~
  794. - Zuweisungen von Arrays werden korrekt(er) behandelt (cga68k)
  795. - Zuweisungen von groesseren Typen geaendert, muss aber noch optimiert
  796.   werden. (cga68k)
  797. - falscher Returncode in alg_opt() korrigiert
  798. - Behandlung von const-Konstanten korrigiert
  799. - Meldung, wenn main() nicht int ist
  800. - arithmetik mit void * nicht mehr erlaubt
  801. - casting nach void erlaubt
  802.  
  803.  
  804. Aenderungen seit V0.2e
  805.  
  806. - Nutzung von 680x0-Adressierungsarten eingebaut (cga68k)
  807. - Schreibweise displ(ax) durch (displ,ax) ersetzt (cga68k)
  808. - Nutzung von reg/freg; dadurch kein zusaetzlicher Pass noetig (cga68k)
  809.  
  810.  
  811. Aenderungen seit V0.2d
  812.  
  813. - Typpruefung bei Zuweisungen verbessert und nun auch bei Initialisierungen
  814. - freed free Register teilweise behoben (?)
  815. - Deklarationen von Prototypen ohne Typ werden bemaekelt
  816. - Abhanegigkeit in eigenen Include-Dateien behoben
  817. - Fehler bei arithmetischen Operationen behoben (cga68k)
  818. - falsche Fehlermeldung bei unsigned Typ als Schleifenbedingung
  819. - / und % wird nun auch mit 68000 unterstuetzt (wenn auch ineffizient) (cga68k)
  820. - Fehler bei ADDI2P und SUBIFP behoben
  821. - Fehler (mit DREFOBJ) bei Zusammenfassung op x,y->reg;move reg->z behoben
  822. - Optionen, die einen Parameter benoetigen, muessen jetzt -opt=parameter
  823.   geschrieben werden, also z.B. vbcc -cpu=68020 file.c
  824.   (das war noetig, um das Frontend und Wildcards zu vereinfachen)
  825. - enumerations eingebaut; noch einfach ohne grosse Tests, Tags werden ignoriert
  826. - arithmetische const Typen werden in Ausdruecken als Konstanten behandelt
  827.  
  828.  
  829. Aenderungen seit V0.2c
  830.  
  831. - -noa4 Option hinzugekommen (cga68k)
  832. - Fehler beim Vertauschen von COMPARE-Argumenten und mustrepeat behoben (cga68k)
  833. - Fehler bei vorzeitiger Registerfreigabe bei POSTINC/POSTDEC behoben
  834. - Fehler bei mehreren Variablendeklarationen mit Funktionen behoben
  835. - Fehler bei dc float|double behoben (cga68k)
  836. - Fehler bei sections und dc/ds behoben (cga68k)
  837. - Fehler bei Rechnungen mit FP-Registern behoben (cga68k)
  838. - diverse Fehler bei a op= b behoben
  839. - jetzt hoffentlich immer korrekte Verwendung von lsl/lsr/asr (cga68k)
  840. - vbcc hat sich endlich erfolgreich selbst kompiliert
  841. - Fliesskommakonstanten eingebaut; Berechnung aber noch zu ungenau
  842. - Deklaration fuer Bitfields eingebaut; werden aber noch als Integers behandelt
  843. - Fehler bei interner Verarbeitung von Fliesskommazahlen behoben
  844. - Deklarationen der Form unsigned a; extern a; etc. werden zugelassen
  845. - Anfaenge einer eigenen C-Library
  846.  
  847.  
  848. Volker (volker@vb.franken.de)
  849.  
  850.