fw/sdcc
17 years ago* src/SDCCpeeph.c: made labelHashEntry global, made pcDistance, FBYNAME static,
bernhardheld [Tue, 26 Dec 2006 21:02:49 +0000 (21:02 +0000)]
* src/SDCCpeeph.c: made labelHashEntry global, made pcDistance, FBYNAME static,
(pcDistance): made static, use isComment and isLabel,
(deadMove): added,
(getLabelRef): added, extracted from labelRefCount(),
(labelRefCount): use new getLabelRef(),
(callFuncByName): made static, added deadMove, use isComment and isLabel,
(newPeepRule): made static, set isLabel,
(isLabelDefinition): added parameter isPeepRule to allow '%' in labels from peephole rules,
(buildLabelRefCountHash): speed up by running isLabelDefinition() only when isComment or isLabel is set
* src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode, added labelHashEntry, isLabelDefinition, labelHash and getLabelRef to make them global
* src/mcs51/peep.h: added
* src/mcs51/peep.c: added, implements mcs51DeadMove()
* src/port.h: added peep->deadMove to port structure
* src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
* src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300 deadMove, finally removed no. 1 and 2
* src/mcs51/gen.c,
* src/pic/gen.c,
* src/z80/gen.c,
* src/z80/ralloc.c,
* src/pic16/gen.c,
* src/ds390/gen.c,
* src/hc08/gen.c: mark lines with isComment or isLabel
* sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
* .version,
* sdcc.spec: bumped version to 2.6.3

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4526 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/Makefile.in: added dependency on options.h
borutr [Tue, 26 Dec 2006 07:45:35 +0000 (07:45 +0000)]
* support/cpp2/Makefile.in: added dependency on options.h
* configure: regenerated
* support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4525 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* SDCPP synchronized with GCC CPP release version 3.4.6,
borutr [Mon, 25 Dec 2006 21:10:07 +0000 (21:10 +0000)]
* SDCPP synchronized with GCC CPP release version 3.4.6,
  the latest release before 4.x:
* support/cpp2/Makefile.in, support/cpp2/config.h,
  support/cpp2/configure, support/cpp2/configure.in,
  support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
  support/cpp2/cpperror.c, support/cpp2/cppexp.c,
  support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
  support/cpp2/cpphash.h, support/cpp2/cppinit.c,
  support/cpp2/cpplex.c, support/cpp2/cpplib.c,
  support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
  support/cpp2/cpptrad.c, support/cpp2/except.h,
  support/cpp2/hashtable.c, support/cpp2/hashtable.h,
  support/cpp2/hwint.h, support/cpp2/intl.h,
  support/cpp2/line-map.c, support/cpp2/line-map.h,
  support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
  support/cpp2/output.h, support/cpp2/prefix.c,
  support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
  support/cpp2/system.h, support/cpp2/version.c:
  modified
* support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
  support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
  support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
  support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
  support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
  support/cpp2/hashtab.c, support/cpp2/hashtab.h,
  support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
  support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
  support/cpp2/move-if-change, support/cpp2/opts.c,
  support/cpp2/opts.h, support/cpp2/opts.sh,
  support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
  support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
  support/cpp2/win32, support/cpp2/win32/dirent.c,
  support/cpp2/win32/dirent.h:
  added
* support/cpp2/sdcpp.c: renamed from sdcppmain.c
* support/cpp2/sdcpp.h: renamed from sdcc.h
* sdcppinit.c: deleted

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4524 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cpphash.h, support/cpp2/cpplex.c,
borutr [Sat, 23 Dec 2006 19:52:42 +0000 (19:52 +0000)]
* support/cpp2/cpphash.h, support/cpp2/cpplex.c,
  support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
  preproc.c: an other try to fix bug #982435: introduced
  -pedantic-parse-number command line option and pedantic_parse_number
  pragma

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4523 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cpphash.h, support/cpp2/cpplex.c,
borutr [Sat, 23 Dec 2006 19:46:24 +0000 (19:46 +0000)]
* support/cpp2/cpphash.h, support/cpp2/cpplex.c,
  support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx:
  an other try to fix bug #982435: introduced -pedantic-parse-number
  command line option and pedantic_parse_number pragma

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4522 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
MaartenBrock [Thu, 21 Dec 2006 20:46:09 +0000 (20:46 +0000)]
* as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
   BSEG handling,
  (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
   corrected overlayed areax addresses, warn about memory overlaps
* as/mcs51/asmain.c (asmbl): create a new area for every .org directive
* src/avr/main.c,
* src/ds390/main.c,
* src/hc08/main.c,
* src/mcs51/main.c,
* src/pic16/main.c,
* src/pic/main.c,
* src/xa51/main.c,
* src/z80/main.c,
* src/port.h: added xabs_name and iabs_name
* src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
  (glue, emitMaps): create and emit maps d_abs and i_abs
* src/SDCCglue.h: cosmetic changes
* src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
* src/SDCCmem.h,
* src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
  (allocDefault): put absolute, initialized globals in them
* support/regression/tests/absolute.c: added absolute bdata test
* device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4521 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
borutr [Wed, 20 Dec 2006 22:43:09 +0000 (22:43 +0000)]
* support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
* support/regression/tests/bug-1351710.c: renamed from bug-1351710.c,
  added regression test for bug #982435

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4520 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCC.lex: (stringLiteral) fixed bug #1351710
borutr [Mon, 18 Dec 2006 22:22:08 +0000 (22:22 +0000)]
* src/SDCC.lex: (stringLiteral) fixed bug #1351710
* support/regression/tests/bug-1351710.c: added regression test

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4519 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCutil.c: fixed a bug in (get_pragma_token)
borutr [Mon, 18 Dec 2006 18:05:42 +0000 (18:05 +0000)]
* src/SDCCutil.c: fixed a bug in (get_pragma_token)
* src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
  small cosmetic changes

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4518 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* doc/sdccman.lyx: added the long missed iCode table "<where is figure II?>", added...
frief [Mon, 18 Dec 2006 14:31:22 +0000 (14:31 +0000)]
* doc/sdccman.lyx: added the long missed iCode table "<where is figure II?>", added links to wiki

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4517 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
borutr [Sun, 17 Dec 2006 21:20:11 +0000 (21:20 +0000)]
* src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4516 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4515 4a8a32a2...
borutr [Sun, 17 Dec 2006 17:47:57 +0000 (17:47 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4515 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/device.h: removed AssignedMemory structure and macros
tecodev [Tue, 12 Dec 2006 23:47:32 +0000 (23:47 +0000)]
* src/pic/device.h: removed AssignedMemory structure and macros
* src/pic/device.c: removed global finalMapping (linker assigns
    memory locations),
  (register_map): add SFRs to remembered memRanges
  (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
  assignFixedRegisters,assignRelocatableRegisters): removed,
  (setMaxRAM,validAddress): adapted accordingly,
  (pic14_hasSharebank,pic14_getSharedStack): only report and use
    reasonably sized sharebanks,
* src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
  (allDefsOutOfRange): removed unused code,
* src/pic/main.c (_process_pragma): removed memmap/maxram pragma
    handling
* src/pic/pcode.c (register_reassign): removed recursion warning,
    fired far too often,
* src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
    to use existing pic14_stringInSet() to avoid duplicate symbols,
    tidied up the code a bit,
  (pic14printLocals): added in symmetry to printExterns, replaces
    writeUsedRegs more or less,
  (picglue): call new pic14_printLocals(),
* device/include/pic/pic*.h: removed #pragma memmap directives,
    information gathered from include/pic/pic14devices.txt
* support/scripts/inc2h.pl: do not emit #pragma memmap lines

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4514 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
MaartenBrock [Mon, 11 Dec 2006 13:35:22 +0000 (13:35 +0000)]
* device/include/mcs51/C8051F520.h: fixed buggy CPT0MX

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4513 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agodevice/include/mcs51/cc2430.h: fixed missing ';'
jesusc [Mon, 11 Dec 2006 09:38:29 +0000 (09:38 +0000)]
device/include/mcs51/cc2430.h: fixed missing ';'

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4512 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/pic16/libc/stdio/vfprintf.c,
tecodev [Sun, 10 Dec 2006 17:07:41 +0000 (17:07 +0000)]
* device/lib/pic16/libc/stdio/vfprintf.c,
* device/lib/pic16/libc/stdio/printf_small.c,
* device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
  char arguments, as char varargs are cast to int by the caller,
  hopefully fixes #1604915 (other device libraries are still affected)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4511 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/mcs51/ralloc.c (packRegsForAssign),
epetrich [Sun, 10 Dec 2006 16:43:49 +0000 (16:43 +0000)]
* src/mcs51/ralloc.c (packRegsForAssign),
* src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4510 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/tinibios.h: removed defines for putchar and getchar
MaartenBrock [Sun, 10 Dec 2006 16:21:42 +0000 (16:21 +0000)]
* device/include/tinibios.h: removed defines for putchar and getchar
* device/lib/ds390/Makefile.in: added putchar.c
* device/lib/ds390/putchar.c: new, added, fixes bug 1465671

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4509 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/malloc.h: removed init_dynamic_memory
MaartenBrock [Sun, 10 Dec 2006 15:04:52 +0000 (15:04 +0000)]
* device/include/malloc.h: removed init_dynamic_memory
* device/lib/malloc.c: made init_dynamic_memory static and automatically
  call it once from malloc. Also use _sdcc_heap[] from _heap.c
* device/lib/_heap.c: new, added, contains _sdcc_heap[]
* device/lib/libsdcc.lib,
* device/lib/Makefile.in,
* support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
* doc/sdccman.lyx: documented use of new _heap.c
* support/regression/tests/malloc.c: removed init_dynamic_memory
* src/cdbFile.c(spacesToUnderscores): new function,
  (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
  1068030

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4508 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/sdcc.h: prevent multiple inclusion
borutr [Sat, 9 Dec 2006 22:20:24 +0000 (22:20 +0000)]
* support/cpp2/sdcc.h: prevent multiple inclusion
* support/cpp2/options.h: deleted

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4507 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agocosmetic changes
borutr [Sat, 9 Dec 2006 07:53:53 +0000 (07:53 +0000)]
cosmetic changes

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4506 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/sdcc.h: removed x*alloc() macros
borutr [Fri, 8 Dec 2006 19:18:20 +0000 (19:18 +0000)]
* support/cpp2/sdcc.h: removed x*alloc() macros
* support/cpp2/libiberty.h: uncommented out x*alloc() declarations
* support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
  support/cpp2/sdcpp.sdc: x*alloc files added to the project
* support/cpp2/system.h: moved #include "sdcc.h"
* support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
  support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
  added
* support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
  -funsigned-char options
* support/cpp2/sdcppmain.c: fixed bug 1611411

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4505 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma() directive
borutr [Thu, 7 Dec 2006 18:24:45 +0000 (18:24 +0000)]
* support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma() directive

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4504 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCsymt.c (addDecl): fixed bug 1609244
MaartenBrock [Wed, 6 Dec 2006 17:04:20 +0000 (17:04 +0000)]
* src/SDCCsymt.c (addDecl): fixed bug 1609244
* doc/sdccman.lyx: bumped to 2.6.2

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4503 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCmain.c (linkEdit): fixed bug 1609279
MaartenBrock [Wed, 6 Dec 2006 12:30:34 +0000 (12:30 +0000)]
* src/SDCCmain.c (linkEdit): fixed bug 1609279
* .version: bumped to 2.6.2 because a) it's been a while
  b) the linker sources have moved c) the preprocessor is upgraded

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4502 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/regression/tests/snprintf.c: some checks
frief [Mon, 4 Dec 2006 18:42:47 +0000 (18:42 +0000)]
* support/regression/tests/snprintf.c: some checks
* lib/src/printf_large.c: %bc: read char instead of int from stack

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4501 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/mcs51/cc2430.h: inserted _XPAGE
MaartenBrock [Sun, 3 Dec 2006 22:31:52 +0000 (22:31 +0000)]
* device/include/mcs51/cc2430.h: inserted _XPAGE

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4500 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agodevice/include/mcs51/cc2430.h: added
jesusc [Sun, 3 Dec 2006 04:24:49 +0000 (04:24 +0000)]
device/include/mcs51/cc2430.h: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4499 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/asm/default/features.h,
MaartenBrock [Sat, 2 Dec 2006 11:53:42 +0000 (11:53 +0000)]
* device/include/asm/default/features.h,
* device/include/asm/ds390/features.h,
* device/include/mcs51/at89s53.h,
* device/include/ser.h,
* device/include/ser_ir.h,
* device/include/serial.h: changed keywords to double underscore variants,
  fixes bug 1590261 some more, thanks Steven Borley

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4498 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/pcode.c (register_reassign): do not crash on recursive code
tecodev [Fri, 1 Dec 2006 08:49:18 +0000 (08:49 +0000)]
* src/pic/pcode.c (register_reassign): do not crash on recursive code
  but emit warning (recursion is not supported for pic14)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4497 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
frief [Thu, 30 Nov 2006 22:20:19 +0000 (22:20 +0000)]
* src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
* doc/sdccman.lyx: various small changes, acknowledged Sourceforge

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4496 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/device.c (dump_sfr): always emit symbols
tecodev [Thu, 30 Nov 2006 18:18:53 +0000 (18:18 +0000)]
* src/pic/device.c (dump_sfr): always emit symbols
* src/pic/glue.c (pic14printPublics): fixed typo

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4495 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
tecodev [Thu, 30 Nov 2006 13:51:34 +0000 (13:51 +0000)]
* src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
  (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
  (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
   pic14_getSharedStack): NEW, evaluate the memRange entries to locate
   a sharebank, use a non-shared bank for the stack if none available
* src/pic/device.h (struct memRange): added linked list next field,
  added prototypes for above functions
* src/pic/ralloc.c (initStack): handle shared and banked stacks,
  (typeRegWithIdx): accept fixed and unfixed stack registers
* src/pic/pcode.c (pCodeInitRegisters): use new functions to create
  the stack, handle shared and banked stack (except for WSAVE),
  (insertBankSel): removed useless optimization (will never fire),
  (FixRegisterBanking): added optimization for devices with only one
  possibly aliased bank of memory, like 16f84
* src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
  devices have no SHAREBANK in the linker script
* device/include/pic/pic14devices.txt: documented memmap
* device/lib/pic/libdev/Makefile.in: removed --stack-loc again

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4494 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4493 4a8a32a2...
mhelmling [Thu, 30 Nov 2006 13:39:32 +0000 (13:39 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4493 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
epetrich [Thu, 30 Nov 2006 06:34:16 +0000 (06:34 +0000)]
* src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
  storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
  genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
  genhc08Code): switched most of the D (debug) macros to DD (detailed
  debug) macros to better control clutter in the generated .asm file.
* src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
  genRightShift): fixed bug with non-constant bit shift stored to
  a volatile result (SF Open Discussion forum thread #1616749).
  Single byte case is not yet optimized.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4492 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/asm/mcs51/features.h,
MaartenBrock [Wed, 29 Nov 2006 07:31:45 +0000 (07:31 +0000)]
* device/include/asm/mcs51/features.h,
* device/include/malloc.h,
* device/include/stdio.h: changed keywords to double underscore variants,
  fixes bug 1590261

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4491 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support\cpp2\cpptrad.c: added
borutr [Mon, 27 Nov 2006 21:09:30 +0000 (21:09 +0000)]
* support\cpp2\cpptrad.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4490 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support\cpp2\cppexp.c, support\cpp2\hashtable.h,
borutr [Mon, 27 Nov 2006 20:03:33 +0000 (20:03 +0000)]
* support\cpp2\cppexp.c, support\cpp2\hashtable.h,
  support\cpp2\Makefile.in, support\cpp2\cppfiles.c,
  support\cpp2\output.h, support\cpp2\cppinit.c,
  support\cpp2\cpplib.c, support\cpp2\cpplib.h,
  support\cpp2\Makefile.bcc, support\cpp2\cpphash.c,
  support\cpp2\cppdefault.c, support\cpp2\system.h,
  support\cpp2\cpphash.h, support\cpp2\cpplex.c,
  support\cpp2\cppdefault.h, support\cpp2\mbchar.c,
  support\cpp2\prefix.c, support\cpp2\except.h,
  support\cpp2\hwint.h, support\cpp2\cppmacro.c,
  support\cpp2\line-map.h, support\cpp2\sdcpp.dsp,
  support\cpp2\sdcc.h, support\cpp2\mkdeps.c,
  support\cpp2\version.c, support\cpp2\cppmain.c,
  support\cpp2\version.h, support\cpp2\hashtable.c,
  support\cpp2\cpperror.c:
  synchronized with GCC CPP release version 3.3.6,
  the latest where cppmain.c still exists.
* support\cpp2\sdcppmain.c, support\cpp2\sdcppinit.c: added

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4489 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cpplex.c:
borutr [Mon, 27 Nov 2006 18:22:21 +0000 (18:22 +0000)]
* support/cpp2/cpplex.c:
  fixed _asm ... _endasm handling bug, introduce with GCC CPP
  synchronization
* support/cpp2/cpplib.c: removed definitions of unused variables

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4488 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/sdcc.h: x*alloc macro redefinition
borutr [Sun, 26 Nov 2006 18:21:29 +0000 (18:21 +0000)]
* support/cpp2/sdcc.h: x*alloc macro redefinition

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4487 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/libiberty.h: commented out x*alloc() declarations
borutr [Sun, 26 Nov 2006 17:00:45 +0000 (17:00 +0000)]
* support/cpp2/libiberty.h: commented out x*alloc() declarations
  since they are redefined by macros in support/cpp2/sdcc.h

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4486 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* synchronized with GCC CPP release version 3.2.3,
borutr [Sat, 25 Nov 2006 18:38:50 +0000 (18:38 +0000)]
* synchronized with GCC CPP release version 3.2.3,
  the latest before integration of cpp into gcc

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4485 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/cpp2/cppexp.c, support/cpp2/hashtable.h,
borutr [Sat, 25 Nov 2006 12:03:05 +0000 (12:03 +0000)]
* support/cpp2/cppexp.c, support/cpp2/hashtable.h,
  support/cpp2/configure, support/cpp2/Makefile.in,
  support/cpp2/cppfiles.c, support/cpp2/output.h,
  support/cpp2/cppinit.c, support/cpp2/cpplib.c,
  support/cpp2/config.h, support/cpp2/cpplib.h,
  support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
  support/cpp2/cppdefault.c, support/cpp2/config.in,
  support/cpp2/system.h, support/cpp2/cpplex.c,
  support/cpp2/cpphash.h, support/cpp2/mbchar.c,
  support/cpp2/cppdefault.h, support/cpp2/prefix.c
  support/cpp2/hwint.h, support/cpp2/mbchar.h,
  support/cpp2/prefix.h, support/cpp2/cppmacro.c,
  support/cpp2/configure.in, support/cpp2/intl.h,
  support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
  support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
  support/cpp2/version.c, support/cpp2/cppmain.c,
  support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
  support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
  support/cpp2/cpperror.c,
  support/cpp2/libiberty/safe-ctype.c,
  support/cpp2/libiberty/safe-ctype.h,
  support/cpp2/libiberty/splay-tree.c,
  support/cpp2/libiberty/obstack.c,
  support/cpp2/libiberty/lbasename.c,
  support/cpp2/libiberty/splay-tree.h,
  support/cpp2/libiberty/obstack.h:
  synchronized with GCC CPP release version 3.1
* support/cpp2/except.h, support/cpp2/line-map.c,
  support/cpp2/line-map.h,
  support/cpp2/libiberty/hex.c,
  support/cpp2/libiberty/concat.c,
  support/cpp2/libiberty/filenames.h: added
* support/cpp2/intl.c: deleted

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4484 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCC.y: enabled compilation of empty source file
borutr [Fri, 24 Nov 2006 20:01:34 +0000 (20:01 +0000)]
* src/SDCC.y: enabled compilation of empty source file
* support/Util/SDCCerr.[ch]: added sdcc warning 190 -
  "ISO C forbids an empty source file"
* device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
  if all the code is ifdefed out.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4483 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/hc08/gen.c (genPcall): fix for bug #1601032
epetrich [Fri, 24 Nov 2006 05:04:05 +0000 (05:04 +0000)]
* src/hc08/gen.c (genPcall): fix for bug #1601032

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4482 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
MaartenBrock [Thu, 23 Nov 2006 21:55:59 +0000 (21:55 +0000)]
* device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
* device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
* device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
* device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
* device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
* device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
* device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
* device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
* device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
* device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
* device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
* device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
* device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
* device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
* device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
  Renamed to all upper case as per the standard set by SiLabs

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4481 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4480 4a8a32a2...
MaartenBrock [Thu, 23 Nov 2006 21:48:14 +0000 (21:48 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4480 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/mcs51/C8051F520.h: new, added
MaartenBrock [Thu, 23 Nov 2006 21:33:35 +0000 (21:33 +0000)]
* device/include/mcs51/C8051F520.h: new, added
* device/include/mcs51/compiler.h: added link about predefined macros

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4479 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/regression/Makefile: add -L path to fresh library
tecodev [Thu, 23 Nov 2006 02:28:31 +0000 (02:28 +0000)]
* src/regression/Makefile: add -L path to fresh library
* src/regression/simulate: emphasize FAILED output
* src/regression/create_stc: output _failures from gpsim
* src/regression/compare4.c,
* src/regression/rotate6.c: fixed char literals,
  all compile, all run =8-D

* src/pic/pcode.h: added isPCASMDIR macro
* src/pic/gen.c (genAnd): fixed bit offset
* src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
  packBits): unified register numbering schemes,
  (newReg): do not insert stack registers into hash table,
  (initStack): unpinned pseudo stack, simplified,
  (typeRegWithIdx): fixed retrieval of stack registers,
* src/pic/pcode.c (addpCodeComment,sameBank): added,
  (pCodeReplace): removed invalid assertion,
  (insertPCodeInstruction): fixed newly added labels,
  (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
  FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
  DumpFlow): removed unsed (broken?) code,
  (insertBankSel): prevent STATUS from being BANKSELed,
  (FixRegisterBanking): rewritten from scratch, implemented generic
    optimizations (suppress BANKSELs to same register and to registers
    present in all banks),
  (AnalyzeBanking): update flow after BANKSELection

* src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
    sharebank, let linker place it, mark STKxx symbols as emitted

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4478 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agosrc/regression/arrays.c, src/regression/bank1.c, src/regression/bool2.c, src/regressi...
frief [Tue, 21 Nov 2006 17:15:18 +0000 (17:15 +0000)]
src/regression/arrays.c, src/regression/bank1.c, src/regression/bool2.c, src/regression/compare7.c, src/regression/compare8.c, src/regression/compare9.c, src/regression/compare10.c, src/regression/configword.c, src/regression/for.c, src/regression/mult1.c, src/regression/pointer1.c, src/regression/rotate6.c, src/regression/string1.c, src/regression/struct1.c, src/regression/Makefile: make PIC14 regression tests run again (3 fail, 6 won't compile)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4477 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/pic16/pic18f4550.h,
tecodev [Tue, 21 Nov 2006 15:27:08 +0000 (15:27 +0000)]
* device/include/pic16/pic18f4550.h,
* device/include/pic16/pic18f4455.h,
* device/lib/pic16/libdev/pic18f4550.c,
* device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
* configure.in: removed superfluous closing bracket

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4476 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/expf.c: Fixed bug 1599523: result of expf(x) is always positive.
jesusc [Tue, 21 Nov 2006 08:18:22 +0000 (08:18 +0000)]
* device/lib/expf.c: Fixed bug 1599523: result of expf(x) is always positive.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4475 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/device.{c,h}: added pic14_getPIC()
tecodev [Mon, 20 Nov 2006 23:21:40 +0000 (23:21 +0000)]
* src/pic/device.{c,h}: added pic14_getPIC()
* src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
  (genAnd): added PIC code for one case, fixes #1597044
* src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
  SFRs that are present in all banks (e.g., STATUS)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4474 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
tecodev [Mon, 20 Nov 2006 22:04:40 +0000 (22:04 +0000)]
* src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
  INCFSZ/INCFSZW and declared them as changing Z bit,
  (insertPCodeInstruction): correctly invert the above instructions,
  fixes #1599333,
  (DoBankSelect): don't panic on po_immediates

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4473 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* as/link/aslink.h,
MaartenBrock [Tue, 14 Nov 2006 13:44:47 +0000 (13:44 +0000)]
* as/link/aslink.h,
* as/link/mcs51/lkihx.c (newArea),
* as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
* as/link/mcs51/lkihx.c (ihx): output reset vector as start address

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4472 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
tecodev [Sat, 11 Nov 2006 23:23:47 +0000 (23:23 +0000)]
* src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
  bitfield symbols, fixes #1579535 (once more...).

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4471 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/regression/generate-cases.py,
frief [Thu, 9 Nov 2006 15:07:43 +0000 (15:07 +0000)]
* support/regression/generate-cases.py,
* support/regression/fwk/include/testfwk.h,
* support/regression/fwk/lib/testfwk.c: used code pointers, (about 50kByte less code generated for mcs51)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4470 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoMakefile.in: put back prefix and exec_prefix
borutr [Mon, 6 Nov 2006 21:26:22 +0000 (21:26 +0000)]
Makefile.in: put back prefix and exec_prefix

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4469 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
borutr [Mon, 6 Nov 2006 19:46:33 +0000 (19:46 +0000)]
* debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
  debugger/mcs51/configure: fixed failed check because the function
  rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
  who submitted the patch for gpsim.
* debugger/mcs51/configure.in: removed the result message
* debugger/mcs51/Makefile.in: fixed the config.status warning
  "... seems to ignore the --datarootdir setting"

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4467 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/mcs51/c8051f020.h,
MaartenBrock [Fri, 3 Nov 2006 09:11:47 +0000 (09:11 +0000)]
* device/include/mcs51/c8051f020.h,
* device/include/mcs51/c8051f040.h,
* device/include/mcs51/c8051f060.h,
* device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
* src/z80/gen.c (gencjneshort),
* src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4459 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoregenerated aclocal.m4 and configure
borutr [Tue, 31 Oct 2006 21:03:30 +0000 (21:03 +0000)]
regenerated aclocal.m4 and configure

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4456 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agocall AC_MSG_RESULT for each tested library
borutr [Tue, 31 Oct 2006 20:57:41 +0000 (20:57 +0000)]
call AC_MSG_RESULT for each tested library

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4455 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
borutr [Tue, 31 Oct 2006 19:19:25 +0000 (19:19 +0000)]
* debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
  debugger/mcs51/configure: get readline version

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4452 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoremove readline5.dll
borutr [Mon, 30 Oct 2006 22:21:21 +0000 (22:21 +0000)]
remove readline5.dll

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4449 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agosdcc:
borutr [Mon, 30 Oct 2006 22:10:49 +0000 (22:10 +0000)]
sdcc:
* support/scripts/sdcc.nsi: include readline5.dll into the setup package
sdcc-build:
* lib/bootstrap.mk: add readline5.dll to packages if cross compiling

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4448 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* debugger/mcs51/aclocal.m4, debugger/mcs51/configure:
borutr [Mon, 30 Oct 2006 20:08:04 +0000 (20:08 +0000)]
* debugger/mcs51/aclocal.m4, debugger/mcs51/configure:
  locate readline even when cross compiling

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4447 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
borutr [Mon, 30 Oct 2006 19:32:18 +0000 (19:32 +0000)]
* debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
* debugger/mcs51/acinclude.m4: locate readline even when cross compiling

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4446 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agodevice/include/mcs51/serial_IO.h: putchar() and getchar() using serial port.
jesusc [Sun, 29 Oct 2006 20:55:38 +0000 (20:55 +0000)]
device/include/mcs51/serial_IO.h: putchar() and getchar() using serial port.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4444 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/include/malloc.h,
MaartenBrock [Sun, 29 Oct 2006 19:47:53 +0000 (19:47 +0000)]
* device/include/malloc.h,
* device/lib/calloc.c,
* device/lib/free.c,
* device/lib/malloc.c,
* device/lib/realloc.c: moved definition of struct into sources
* support/regression/tests/malloc.c: use void* for init_dynamic_memory()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4443 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* as/asx8051.dsp: corrected output directories
MaartenBrock [Sun, 29 Oct 2006 16:29:34 +0000 (16:29 +0000)]
* as/asx8051.dsp: corrected output directories
* as/link/hc08: new directory for hc08 linker
* as/hc08/aslink.h,             as/link/aslink.h,
* as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
* as/hc08/clean.mk,             as/link/hc08/clean.mk,
* as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
* as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
* as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
* as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
* as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
* as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
* as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
* as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
* as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
* as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
* as/hc08/lks19.c,              as/link/hc08/lks19.c,
* as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
* as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
* as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
* as/link/hc08/conf.mk,
* configure,
* configure.in,
* Makefile.in,
* sdcc.dsw: moved hc08 linker to as/link/hc08
* as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
* as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
* as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
* as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
* as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
* as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
* as/link/mcs51/aslink.dsp,
* as/link/mcs51/Makefile.in: factored out the common files
* as/hc08/lkstore.c: deleted, use the one already in as/link/
* as/clean.mk: extra cleaning common files
* as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
* as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
* as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4442 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/ralloc.c (newReg): create aliases for registers with
tecodev [Sat, 28 Oct 2006 23:40:14 +0000 (23:40 +0000)]
* src/pic/ralloc.c (newReg): create aliases for registers with
  multiple names to fix #1579535 and #1584001,
  (regWithIdx,dirregWithName): resolve aliases on lookup
* src/pic/pcode.c (DoBankSelect): die with error message on failing
  bankselect
* device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
  to prevent build errors on small devices

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4441 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/gen.c (genFunction,genCall): drop "same code page"
tecodev [Sat, 28 Oct 2006 16:01:37 +0000 (16:01 +0000)]
* src/pic/gen.c (genFunction,genCall): drop "same code page"
  assumption within interrupt handlers, fixes #1584940
* src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
  "emitted" to avoid emitting them again in udata

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4440 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agodevice/lib/_putchar.c,_getchar.c, inituart.c: removed
jesusc [Sat, 28 Oct 2006 05:33:58 +0000 (05:33 +0000)]
device/lib/_putchar.c,_getchar.c, inituart.c: removed

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4439 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4438 4a8a32a2...
jesusc [Thu, 26 Oct 2006 06:53:41 +0000 (06:53 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4438 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoInitialize uart only if SM0 and SM1 are zero. Also, use flag 'putchar_crlf' to turn...
jesusc [Thu, 26 Oct 2006 05:49:01 +0000 (05:49 +0000)]
Initialize uart only if SM0 and SM1 are zero.  Also, use flag 'putchar_crlf' to turn on/off CR to CRLF conversion.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4437 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* doc/sdccman.lyx: updated IRQ section
frief [Wed, 25 Oct 2006 12:04:40 +0000 (12:04 +0000)]
* doc/sdccman.lyx: updated IRQ section

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4436 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agodevice/lib/_putchar.c,_getchar.c, inituart.c replacements for serial_io.c
jesusc [Wed, 25 Oct 2006 02:37:36 +0000 (02:37 +0000)]
device/lib/_putchar.c,_getchar.c, inituart.c replacements for serial_io.c

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4435 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
MaartenBrock [Tue, 24 Oct 2006 19:24:11 +0000 (19:24 +0000)]
* src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4434 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoAdded device/lib/serial_io.c: Default putchar() and getchar() for mcs51 uses serial...
jesusc [Tue, 24 Oct 2006 08:20:54 +0000 (08:20 +0000)]
Added device/lib/serial_io.c: Default putchar() and getchar() for mcs51 uses serial port.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4433 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
MaartenBrock [Mon, 23 Oct 2006 14:48:29 +0000 (14:48 +0000)]
* src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4432 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/regression/ports/mcs51/support.c: smaller _sdcc_external_startup()
frief [Mon, 23 Oct 2006 09:25:54 +0000 (09:25 +0000)]
* support/regression/ports/mcs51/support.c: smaller _sdcc_external_startup()
* device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4429 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoInclude should be sdcc_vc.h not sdccc_vc.h...
jesusc [Sat, 21 Oct 2006 19:48:22 +0000 (19:48 +0000)]
Include should be sdcc_vc.h not sdccc_vc.h...

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4423 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/gbz80/crt0.s,
MaartenBrock [Fri, 20 Oct 2006 14:11:41 +0000 (14:11 +0000)]
* device/lib/gbz80/crt0.s,
* device/lib/gbz80/crt0_rle.s,
* device/lib/gbz80/div.s,
* device/lib/gbz80/fstubs.s,
* device/lib/gbz80/heap.s,
* device/lib/gbz80/mul.s,
* device/lib/gbz80/putchar.s,
* device/lib/gbz80/stubs.s,
* device/lib/z80/crt0.s,
* device/lib/z80/crt0_rle.s,
* device/lib/z80/div.s,
* device/lib/z80/fstubs.s,
* device/lib/z80/heap.s,
* device/lib/z80/mul.s,
* device/lib/z80/putchar.s,
* device/lib/z80/stubs.s: reverted, I was mistaken

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4422 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/mcs51/peeph.def: peephole 238.x added check for notvolatile
frief [Fri, 20 Oct 2006 13:43:12 +0000 (13:43 +0000)]
* src/mcs51/peeph.def: peephole 238.x added check for notvolatile

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4421 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/regression/ports/mcs51/support.c: removed race condition on TI in _putchar...
frief [Fri, 20 Oct 2006 11:06:21 +0000 (11:06 +0000)]
* support/regression/ports/mcs51/support.c: removed race condition on TI in _putchar allowing to use serial port mode 0

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4420 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* sebugger/mcs51/sdcdb.c: replaced isblank() with isspace()
borutr [Fri, 20 Oct 2006 07:34:06 +0000 (07:34 +0000)]
* sebugger/mcs51/sdcdb.c: replaced isblank() with isspace()

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4419 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/gbz80/crt0.s,
MaartenBrock [Thu, 19 Oct 2006 21:47:29 +0000 (21:47 +0000)]
* device/lib/gbz80/crt0.s,
* device/lib/gbz80/crt0_rle.s,
* device/lib/gbz80/div.s,
* device/lib/gbz80/fstubs.s,
* device/lib/gbz80/heap.s,
* device/lib/gbz80/mul.s,
* device/lib/gbz80/putchar.s,
* device/lib/gbz80/stubs.s,
* device/lib/z80/crt0.s,
* device/lib/z80/crt0_rle.s,
* device/lib/z80/div.s,
* device/lib/z80/fstubs.s,
* device/lib/z80/heap.s,
* device/lib/z80/mul.s,
* device/lib/z80/putchar.s,
* device/lib/z80/stubs.s: removed all leading underscores from area names

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4418 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* support/regression/ports/mcs51/support.c: use highest baudrate so the
MaartenBrock [Tue, 17 Oct 2006 21:12:12 +0000 (21:12 +0000)]
* support/regression/ports/mcs51/support.c: use highest baudrate so the
  regression tests are not waiting in the simulator for simulated
  transmission of debug output

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4415 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/printf_large.c: slightly smaller
frief [Mon, 16 Oct 2006 15:38:12 +0000 (15:38 +0000)]
* device/lib/printf_large.c: slightly smaller
* doc/sdccman.lyx: do not use spaces within html links

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4413 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* configure.in, configure, sdccconf_in.h, src/SDCCglobal,
borutr [Mon, 16 Oct 2006 13:04:35 +0000 (13:04 +0000)]
* configure.in, configure, sdccconf_in.h, src/SDCCglobal,
  debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
  debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
  debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
  debugger/mcs51/configure:
  [ 1185668 ] add gnu readline support to sdcdb - enabled

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4412 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
tecodev [Mon, 16 Oct 2006 08:26:54 +0000 (08:26 +0000)]
* src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
  fixes #1577882, removes close to all banking optimizations

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4411 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
MaartenBrock [Sun, 15 Oct 2006 18:03:24 +0000 (18:03 +0000)]
* src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
  variables in code memory
* support/regression/tests/absolute.c: added test for this

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4410 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
tecodev [Sun, 15 Oct 2006 00:57:40 +0000 (00:57 +0000)]
* src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
  devices,
  (BankSelect): emit BANKSEL before touching linker-placed regs,
  fixes #1570934

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4409 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
tecodev [Tue, 10 Oct 2006 19:59:16 +0000 (19:59 +0000)]
* src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
* src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
* src/pic/main.c (_pic14_parseOptions),
* src/pic/main.h: mostly reverted to previous state, now use results
    from SDCCmain.c's argument parsing

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4408 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
borutr [Tue, 10 Oct 2006 19:46:28 +0000 (19:46 +0000)]
* debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
  debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
  [ 1185668 ] add gnu readline support to sdcdb -
  prepared for READLINE, not enabled yet

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4407 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
tecodev [Tue, 10 Oct 2006 19:34:26 +0000 (19:34 +0000)]
* src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
* src/pic16/devices.inc,
* device/include/pic16 (pic18f[24]620.h),
* device/include/pic18fregs.h,
* device/lib/pic16/pics.all,
* device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
  18f262018f462018f2525, and 18f4525 devices, thanks to
  Gary Plumbridge and Anton Strobl

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4406 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
tecodev [Tue, 10 Oct 2006 18:20:41 +0000 (18:20 +0000)]
* src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
  --stack-siz=NUM options to configure the argument passing stack
* src/pic/main.h: added stackLocation and stackSize to pic14_options_t
* src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
  (pic14_getSharebankSize): obey --stack-siz=NUM,
  (pic14_getSharebankAddress): obey --stack-loc=NUM

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4405 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* doc/sdccman.lyx: added to the manual
frief [Sun, 8 Oct 2006 21:38:17 +0000 (21:38 +0000)]
* doc/sdccman.lyx: added to the manual
* doc/figures/ddd_example.png: added (neither pdflatex nor most browsers seem to like the .eps file)

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4404 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/SDCCglue.c (tempfileandname): changed un*x tmp search paths to /tmp and /var...
bernhardheld [Fri, 6 Oct 2006 20:50:56 +0000 (20:50 +0000)]
* src/SDCCglue.c (tempfileandname): changed un*x tmp search paths to /tmp and /var/tmp acc. LSB
* src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of RESULT_TYPE_IFX
* support/regression/tests/onebyte.c: added test

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4403 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agosrc/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
jesusc [Fri, 6 Oct 2006 06:48:39 +0000 (06:48 +0000)]
src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4402 4a8a32a2-be11-0410-ad9d-d568d2c75423