fw/sdcc
17 years ago* sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
borutr [Sun, 28 Jan 2007 18:10:42 +0000 (18:10 +0000)]
* sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
  on WIN32
* src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
  src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
  src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
  src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
  src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
  src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
  src/z80/gen.c, support/Util/MySystem.c:
  accept slash and backslash as directory separator on WIN32 and
  Cygwin ports

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

17 years ago* src/pic16/devices.inc,
tecodev [Sun, 28 Jan 2007 10:46:04 +0000 (10:46 +0000)]
* src/pic16/devices.inc,
* device/include/pic16/pic18f[24][23]21.h,
* device/include/pic16/pic18fregs.h,
* device/lib/pic16/libdev/pic18f[24][23]21.c,
* device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
* device/lib/pic16/libio/adc.ignore,
* device/lib/pic16/libio/i2c.ignore,
* device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
  family, as gputils do not yet support the devices
* device/lib/pic16/Makefile.subdir: ignore errors on install
* support/scripts/inc2h-pic16.pl: script to generate pic16 device
  headers and libraries from gputils .inc files

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

17 years agoconvert sdccman.lyx back to 221 format
pjs [Fri, 26 Jan 2007 19:37:24 +0000 (19:37 +0000)]
convert sdccman.lyx back to 221 format

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

17 years agoadd printf_tiny data dependent integer speed footnote
pjs [Fri, 26 Jan 2007 12:44:48 +0000 (12:44 +0000)]
add printf_tiny data dependent integer speed footnote

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

17 years agoadd footnote regarding printf_fast_f precision limit
pjs [Fri, 26 Jan 2007 12:27:44 +0000 (12:27 +0000)]
add footnote regarding printf_fast_f precision limit

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

17 years agoadded printf benchmarks to manual
pjs [Fri, 26 Jan 2007 12:15:35 +0000 (12:15 +0000)]
added printf benchmarks to manual

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

17 years agofix %c in printf_fast, printf_fast_f and printf_tiny
pjs [Thu, 25 Jan 2007 20:57:29 +0000 (20:57 +0000)]
fix %c in printf_fast, printf_fast_f and printf_tiny

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

17 years agofix float overflow checki in printf_fast_f, bug #1525093
pjs [Thu, 25 Jan 2007 18:56:18 +0000 (18:56 +0000)]
fix float overflow checki in printf_fast_f, bug #1525093

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

17 years ago* support/regression/tests/swap.c: 64 bit hosts failed
frief [Thu, 25 Jan 2007 14:15:21 +0000 (14:15 +0000)]
* support/regression/tests/swap.c: 64 bit hosts failed
* doc/sdccman.lyx: added preliminary mcs51 printf feature matrix

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

17 years ago* src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
tecodev [Thu, 25 Jan 2007 10:11:56 +0000 (10:11 +0000)]
* src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
  based on absolute register address, patch by Alex Blond

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

17 years ago* src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
tecodev [Mon, 22 Jan 2007 01:42:00 +0000 (01:42 +0000)]
* src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
  emitted, do not emit them again...

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

17 years ago* src/regression/bank1.c, src/regression/compare6.c,
tecodev [Mon, 22 Jan 2007 01:18:52 +0000 (01:18 +0000)]
* src/regression/bank1.c, src/regression/compare6.c,
  src/regression/add.c: cosmetic changes
* src/pic/pcode.h: moved GPTRTAG_* here from gen.c
* src/pic/gen.c: fixed global zero and one,
  (aopForSym): removed unued code,
  (aopGet): assert aop is defined, check and use `index' of
    pCodeImmd operands (fixes #1630908),
* src/pic/pcode.c (get_op): added output of generic pointer tag,
  (register_reassign): prevent accidental register unification,
  (ReuseReg): cosmetic changes (also above)
* src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
  pic14emitStaticSeg): do not emit initialized data,
  (printIval*): replaced with working versions,
  (pic14createInterruptVect,picglue): use idata for initialized data,
    now init data should work in all modules (not only main()),
* device/lib/pic/libsdcc/idata.c: NEW, handle initialized data

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

17 years agoupdated
borutr [Sun, 21 Jan 2007 14:43:31 +0000 (14:43 +0000)]
updated

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

17 years ago* src/SDCCval.c: fixed bug introduced by me in rev. #4577
borutr [Sun, 21 Jan 2007 14:42:52 +0000 (14:42 +0000)]
* src/SDCCval.c: fixed bug introduced by me in rev. #4577
* support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings

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

17 years ago* sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
borutr [Sun, 21 Jan 2007 09:10:03 +0000 (09:10 +0000)]
* sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
  use -fPIC or -fpic if they are supported and not ignored

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

17 years ago* sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
borutr [Sun, 21 Jan 2007 09:09:01 +0000 (09:09 +0000)]
* sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
  use -fPIC or -fpic if they are supported and not ignored

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

17 years agofixed bug in stringLiteral()
borutr [Sat, 20 Jan 2007 19:40:45 +0000 (19:40 +0000)]
fixed bug in stringLiteral()

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

17 years ago* src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
borutr [Sat, 20 Jan 2007 15:41:17 +0000 (15:41 +0000)]
* src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
  implemented RFE #1470316: allow "$" in variable names

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

17 years ago* device/include/pic/pic14regs.h: reverted accidental wipe of the file
tecodev [Sat, 20 Jan 2007 15:02:43 +0000 (15:02 +0000)]
* device/include/pic/pic14regs.h: reverted accidental wipe of the file

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

17 years ago* device/lib/pic/libdev/devices.txt: device list for mkall.sh
tecodev [Sat, 20 Jan 2007 15:00:18 +0000 (15:00 +0000)]
* device/lib/pic/libdev/devices.txt: device list for mkall.sh
* device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
* device/lib/pic/libdev/pic14ports.txt: device PORT specifications
* support/scripts/inc2h.pl: fixed major .inc parsing bugs,
  applied patch from Robert Tate (#1629249) to add PORTs and TRISs
* device/lib/pic/libdev/pic*.c,
* device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
* device/lib/pic/libdev/Makefile.in: show progress

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

17 years ago* doc/sdccman.lyx: updated "configure options" for autoconf 2.6
bernhardheld [Fri, 19 Jan 2007 21:27:19 +0000 (21:27 +0000)]
* doc/sdccman.lyx: updated "configure options" for autoconf 2.6
* support/scripts/sdcc_cygwin_mingw32,
* support/scripts/sdcc_mingw32,
* support/scripts/build.mak: replaced --datadir by --datarootdir for conformance with autoconf 2.6

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

17 years ago* src/pic/device.c (register_map): fixed list construction
tecodev [Fri, 19 Jan 2007 10:18:16 +0000 (10:18 +0000)]
* src/pic/device.c (register_map): fixed list construction
* src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
  (genMod): removed case for genModbits,
  (genModbits): removed as now unused/unimplemented
* src/pic/glue.c (picglue): prevent name clash with sources 'init.c'

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

17 years agoGunther Jehle mentioned.
borutr [Fri, 19 Jan 2007 06:38:04 +0000 (06:38 +0000)]
Gunther Jehle mentioned.

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

17 years ago* support/regression/tests/swap.c: added in response to #1638622
frief [Thu, 18 Jan 2007 23:13:37 +0000 (23:13 +0000)]
* support/regression/tests/swap.c: added in response to #1638622
* doc/sdccman.lyx: synced version, minor changes

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

17 years ago* SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning
borutr [Thu, 18 Jan 2007 20:21:37 +0000 (20:21 +0000)]
* SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning
* src/asm.c: don't die if the file drfined in #line couldn't be opened
* src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
  src/SDCCval.c: removed redundant definitions of currFname and mylineno;
  use filename in lineno instead.
* SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
  print the file name in ast_print()

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

17 years ago* support/Util/dbuf_string.c: removed (PTR) cast since it is not
borutr [Thu, 18 Jan 2007 07:51:26 +0000 (07:51 +0000)]
* support/Util/dbuf_string.c: removed (PTR) cast since it is not
  defined in MSVC
* src/SDCC.lex: stringLiteral() returns const char pointer,
  EOF detection in stringLiteral(), fixed asmbuf memory leak,
  fixed column counting
* src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
  accept const char pointer as parameter
* src/SDCCdwarf2.c: corrected buffer size

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

17 years ago* support/Util/dbuf_string.c: fixed for amd64
borutr [Wed, 17 Jan 2007 20:49:38 +0000 (20:49 +0000)]
* support/Util/dbuf_string.c: fixed for amd64

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

17 years ago* src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
borutr [Mon, 15 Jan 2007 20:53:50 +0000 (20:53 +0000)]
* src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
  removed terminal symbol ELIPSIS, since it was never generated by the
  lexer and it was wrongly used in parameter_identifier_list rule

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

17 years ago* doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
tecodev [Sun, 14 Jan 2007 23:40:09 +0000 (23:40 +0000)]
* doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
    code page and data banking description
* src/pic/genarith.c,
* src/pic/gen.h: removed bit arithmetic functions,
    updated exit(1) to exit(EXIT_FAILURE)
* device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
* device/include/pic16/pic18f2455.h,
* device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
    TRISD and TRISE, fixed/added some bit names
* device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
* device/include/pic16/pic18f{2550,4550,4455}.h: simply include
    updated pic18f2455.{c,h} instead of duplicating them

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

17 years ago* as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
borutr [Sun, 14 Jan 2007 19:47:28 +0000 (19:47 +0000)]
* as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
  Cannot debug files that contain spaces in the path name
  by converting spaces in asm file name to underscores

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

17 years ago* as/mcs51/asnoice.c: fixed bug #1447412:
borutr [Sun, 14 Jan 2007 19:35:01 +0000 (19:35 +0000)]
* as/mcs51/asnoice.c: fixed bug #1447412:
  Cannot debug files that contain spaces in the path name
  by converting spaces in asm file mane to underscores

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

17 years ago* doc/sdccman.lyx: fixed format errors
borutr [Sat, 13 Jan 2007 22:10:53 +0000 (22:10 +0000)]
* doc/sdccman.lyx: fixed format errors

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

17 years ago* suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
borutr [Wed, 10 Jan 2007 19:12:06 +0000 (19:12 +0000)]
* suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
* suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
  suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
  suppoprt/cpp2/sdcpp.[ch]: house cleaning

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

17 years ago* src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
borutr [Wed, 10 Jan 2007 14:35:37 +0000 (14:35 +0000)]
* src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
  codeseg/constseg #pragma fail

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

17 years ago* get rid of diagnistic.[ch], pretty-print.[ch],
borutr [Tue, 9 Jan 2007 06:55:32 +0000 (06:55 +0000)]
* get rid of diagnistic.[ch], pretty-print.[ch],
  c-pretty-print.[ch], ... used just for error, warning, ...
  message formatting
* suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
  suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
  suppoprt/cpp2/pretty-print.[ch]:
  removed
* suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
  suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
  suppoprt/cpp2/sdcpp.dsp:
  changed

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

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4566 4a8a32a2...
MaartenBrock [Mon, 8 Jan 2007 23:03:34 +0000 (23:03 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4566 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* device/lib/printf_large.c (output_float): removed recursion,
MaartenBrock [Mon, 8 Jan 2007 22:18:40 +0000 (22:18 +0000)]
* device/lib/printf_large.c (output_float): removed recursion,
  use smaller buffer on stack for mcs51,
  fixed bug printing 1.96
* support/regression/tests/snprintf.c: added test

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

17 years ago* .version, sdcc.spec: bumped version to 2.6.4
borutr [Sun, 7 Jan 2007 17:57:05 +0000 (17:57 +0000)]
* .version, sdcc.spec: bumped version to 2.6.4

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

17 years ago* use dynamic memory buffers instead temporary files
borutr [Sun, 7 Jan 2007 17:18:12 +0000 (17:18 +0000)]
* use dynamic memory buffers instead temporary files
* support/Util/dbuf_string.c, support/Util/dbuf_string.h:
  added
* src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
  src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
  src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
  src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
  src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
  src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
  src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
  src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
  src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
  src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
  src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
  support/Util/dbuf.c, support/Util/dbuf.h:
  modified

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

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4562 4a8a32a2...
MaartenBrock [Sun, 7 Jan 2007 17:10:12 +0000 (17:10 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4562 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* src/port.h: added TARGET_Z80_LIKE macro
MaartenBrock [Sun, 7 Jan 2007 16:09:46 +0000 (16:09 +0000)]
* src/port.h: added TARGET_Z80_LIKE macro
* src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
  output PSEG location if --xram-loc or --xstack-loc was used
* as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards

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

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4560 4a8a32a2...
MaartenBrock [Sun, 7 Jan 2007 11:37:21 +0000 (11:37 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4560 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4559 4a8a32a2...
MaartenBrock [Sun, 7 Jan 2007 10:47:47 +0000 (10:47 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4559 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years ago* as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
MaartenBrock [Sun, 7 Jan 2007 09:57:10 +0000 (09:57 +0000)]
* as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
* as/as_z80.dsp,   as/z80/as_z80.dsp,
* as/asx8051.dsp,  as/mcs51/asx8051.dsp,
* sdcc.dsw: moved project files into subdir
* as/hc08/as_hc08.dsp,
* as/hc08/Makefile.bcc,
* as/hc08/Makefile.in,
* as/mcs51/Makefile.bcc,
* as/mcs51/Makefile.in,
* as/z80/Makefile.bcc,
* as/z80/Makefile.in,
* as/link/mcs51/Makefile.bcc: use as/strcmpi.c
* as/hc08/asm.h,
* as/mcs51/asm.h,
* as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
* as/hc08/asmain.c,
* as/hc08/assym.c,
* as/mcs51/asmain.c,
* as/mcs51/assym.c,
* as/z80/assym.c: removed include "strcmpi.h"
* as/hc08/strcmpi.c,
* as/hc08/strcmpi.h,
* as/mcs51/strcmpi.c,
* as/mcs51/strcmpi.h,
* support/Util/strcmpi.c,
* support/Util/strcmpi.h: removed files
* as/strcmpi.c: added as_strncmpi()

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

17 years agosdcc.dsw: Added some dependencies on project config.dsp
jesusc [Fri, 5 Jan 2007 16:34:25 +0000 (16:34 +0000)]
sdcc.dsw: Added some dependencies on project config.dsp

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

17 years ago* as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
MaartenBrock [Fri, 5 Jan 2007 07:19:10 +0000 (07:19 +0000)]
* as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
  with [di]ram_start to fix a regresion

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

17 years ago* configure.in: added missing mcs51 in status output
bernhardheld [Wed, 3 Jan 2007 21:19:58 +0000 (21:19 +0000)]
* configure.in: added missing mcs51 in status output
* Makefile.in: add support/regression to SDCC_EXTRA to distclean this directory
* debugger/mcs51/clean.mk (distclean): remove config.h
* src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
* support/cpp2/Makefile.in (clean): remove s-options, optionlist, options.h, s-options-h and options.c
* support/cpp2/clean.mk: unused, removed
* Makefile.common.in,
* main_in.mk,
* as/Makefile.in,
* as/hc08/Makefile.in,
* as/hc08/clean.mk,
* as/mcs51/Makefile.in,
* as/mcs51/clean.mk,
* as/z80/clean.mk,
* as/z80/conf.mk,
* as/z80/Makefile.in,
* as/z80/clean.mk,
* as/link/Makefile.in,
* as/link/hc08/Makefile.in,
* as/link/hc08/clean.mk,
* as/link/mcs51/Makefile.in,
* as/link/mcs51/clean.mk,
* as/link/z80/Makefile.in,
* as/link/z80/clean.mk,
* as/link/z80/conf.mk,
* debugger/mcs51/Makefile.in,
* debugger/mcs51/clean.mk,
* device/include/Makefile.in,
* device/lib/Makefile.in,
* device/lib/mcs51/Makefile.in,
* device/lib/pic/Makefile.in,
* device/lib/pic/Makefile.common.in,
* device/lib/pic/Makefile.subdir,
* device/lib/pic/Makefile.rules,
* device/lib/pic16/libio/Makefile.in,
* device/lib/pic16/Makefile.subdir,
* device/lib/pic16/libdev/Makefile.in,
* device/lib/pic16/Makefile.rules,
* device/lib/pic16/Makefile.common.in,
* sim/ucsim/avr.src/Makefile.in,
* sim/ucsim/main_in.mk,
* sim/ucsim/cmd.src/Makefile.in,
* sim/ucsim/doc/Makefile.in,
* sim/ucsim/gui.src/Makefile.in,
* sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
* sim/ucsim/gui.src/serio.src/Makefile.in,
* sim/ucsim/hc08.src/Makefile.in,
* sim/ucsim/libltdl/Makefile.in,
* sim/ucsim/s51.src/Makefile.in,
* sim/ucsim/sim.src/Makefile.in,
* sim/ucsim/sim.src/conf.mk,
* sim/ucsim/xa.src/Makefile.in,
* sim/ucsim/z80.src/Makefile.in,
* src/Makefile.in,
* src/clean.mk,
* src/port.mk,
* support/cpp2/Makefile.in,
* support/librarian/Makefile.in,
* support/librarian/clean.mk,
* support/makebin/Makefile.in,
* support/makebin/clean.mk,
* support/packihx/Makefile.in,
* support/regression/Makefile.in,
* support/regression/ports/ds390/spec.mk,
* support/regression/ports/gbz80/spec.mk,
* support/regression/ports/hc08/spec.mk,
* support/regression/ports/mcs51/spec.mk,
* support/regression/ports/mcs51-large/spec.mk,
* support/regression/ports/mcs51-medium/spec.mk,
* support/regression/ports/mcs51-xstack-auto/spec.mk,
* support/regression/ports/pic14/spec.mk,
* support/regression/ports/pic16/spec.mk,
* support/regression/ports/mcs51-stack-auto/spec.mk,
* support/regression/ports/ucz80/spec.mk,
* support/regression/ports/xa51/spec.mk,
* support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by adding a slash after $(top_builddir) and/or adding @datarootdir@
* configure.in,
* debugger/mcs51/configure.in,
* device/lib/pic/configure.in,
* device/lib/pic16/configure.in,
* sim/ucsim/configure.in,
* support/cpp2/configure.in,
* support/packihx/configure.in: changed AC_PREREQ to 2.60
* configure,
* debugger/mcs51/configure,
* device/lib/pic/configure,
* device/lib/pic16/configure,
* sim/ucsim/configure,
* support/cpp2/configure,
* support/packihx/configure: generated with autoconf 2.60

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

17 years ago* as/link/hc08/lkihx.c (newArea),
MaartenBrock [Tue, 2 Jan 2007 21:47:42 +0000 (21:47 +0000)]
* as/link/hc08/lkihx.c (newArea),
* as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()

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

17 years ago* support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
borutr [Tue, 2 Jan 2007 18:53:33 +0000 (18:53 +0000)]
* support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file

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

17 years ago* doc/sdccman.lyx: documented #pragma sdcc_hash
borutr [Tue, 2 Jan 2007 17:33:58 +0000 (17:33 +0000)]
* doc/sdccman.lyx: documented #pragma sdcc_hash
* support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
  initialized to 0

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

17 years ago* src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in empty 'while'-loop...
bernhardheld [Mon, 1 Jan 2007 20:42:04 +0000 (20:42 +0000)]
* src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in empty 'while'-loop to work correctly, see regression test 'while.c'
* support/regression/tests/while.c: added

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

17 years ago* support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
borutr [Mon, 1 Jan 2007 17:00:18 +0000 (17:00 +0000)]
* support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
  support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
  support/cpp2/libcpp/sdcpp.c:
  sdcpp specific pragma/directive/option handling moved to sdcpp.c
* doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
* support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1

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

17 years agofixed dependencies on options.h
borutr [Sun, 31 Dec 2006 17:27:10 +0000 (17:27 +0000)]
fixed dependencies on options.h

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

17 years agoremoved duplicate definition of ATTRIBUTE_GCC_DIAG
borutr [Sun, 31 Dec 2006 17:12:44 +0000 (17:12 +0000)]
removed duplicate definition of ATTRIBUTE_GCC_DIAG

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

17 years agosvn:eol-style native, svn:keywords Author Date Id Revision
borutr [Sun, 31 Dec 2006 16:39:48 +0000 (16:39 +0000)]
svn:eol-style native, svn:keywords Author Date Id Revision

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

17 years agoadded
borutr [Sun, 31 Dec 2006 16:35:53 +0000 (16:35 +0000)]
added

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

17 years agomodifided for sdcpp 4.1.1
borutr [Sun, 31 Dec 2006 16:32:49 +0000 (16:32 +0000)]
modifided for sdcpp 4.1.1

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

17 years ago* SDCPP synchronized with GCC CPP release version 4.1.1,
borutr [Sun, 31 Dec 2006 16:29:37 +0000 (16:29 +0000)]
* SDCPP synchronized with GCC CPP release version 4.1.1,
 currently the latest release:
* support/cpp2/libcpp, support/cpp2/libcpp/include,
  support/cpp2/libcpp/include/cpp-id-data.h
  support/cpp2/libiberty/fopen_unlocked.c
  support/cpp2/libiberty/md5.c
  support/cpp2/md5.h
  support/cpp2/opt-functions.awk
  support/cpp2/opt-gather.awk
  support/cpp2/optc-gen.awk
  support/cpp2/opth-gen.awk:
  added
* support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
  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/cppdefault.c,
  support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
  support/cpp2/diagnostic.h, support/cpp2/except.h,
  support/cpp2/hwint.h, support/cpp2/input.h,
  support/cpp2/intl.h, support/cpp2/move-if-change,
  support/cpp2/opts.c, support/cpp2/opts.h,
  support/cpp2/output.h, support/cpp2/prefix.c,
  support/cpp2/prefix.h, support/cpp2/pretty-print.c,
  support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
  support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
  support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
  support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
  support/cpp2/version.c:
  modified
* support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
  support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
  support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
  support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
  support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
  support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
  support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
  support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
  support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
  support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
  support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
  moved
* support/cpp2/cppcharset.c, 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/cppucnid.h, support/cpp2/hashtab.c,
  support/cpp2/hashtab.h, support/cpp2/hashtable.c,
  support/cpp2/hashtable.h, support/cpp2/line-map.c,
  support/cpp2/line-map.h, support/cpp2/mkdeps.c,
  support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
  support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
  support/cpp2/system.h:
  deleted / moved

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

17 years agoconfigure.in, configure: fixed bug #1538756: configure dies if bison and flex are...
borutr [Sun, 31 Dec 2006 11:48:34 +0000 (11:48 +0000)]
configure.in, configure: fixed bug #1538756: configure dies if bison and flex are not installed, 2nd try

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

17 years ago* src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to 400.x for better...
bernhardheld [Sat, 30 Dec 2006 22:32:47 +0000 (22:32 +0000)]
* src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to 400.x for better code in RFE 899102

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

17 years ago* src/SDCCpeeph.c (deadMove),
bernhardheld [Sat, 30 Dec 2006 22:02:12 +0000 (22:02 +0000)]
* src/SDCCpeeph.c (deadMove),
* src/port.h,
* src/mcs51/peep.h: renamed 'op' by 'reg'
* src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
(scan4op): small change for removeDeadMove(), added support for 'callee saves' and/or PACLL function calls,
(removeDeadMove): added, removes superflous 'mov r%1,%2',
(removeDeadPopPush): renamed from mcs51DeadMove(), common parts left in new dispatcher mcs51DeadMove()
(mcs51DeadMove): dispatcher for removeDeadPopPush() and new removeDeadMove()
* src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'

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

17 years agoCreate support/cpp2/options.c and support/cpp2/options.h under MSVC
jesusc [Sat, 30 Dec 2006 16:12:13 +0000 (16:12 +0000)]
Create support/cpp2/options.c and support/cpp2/options.h under MSVC

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

17 years ago* configure.in, configure: configure dies if bison and flex are not
borutr [Sat, 30 Dec 2006 15:23:30 +0000 (15:23 +0000)]
* configure.in, configure: configure dies if bison and flex are not
  installed

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

17 years ago* support/cpp2/spacs.h: deleted from svn
borutr [Sat, 30 Dec 2006 13:53:42 +0000 (13:53 +0000)]
* support/cpp2/spacs.h: deleted from svn

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

17 years ago* src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
MaartenBrock [Fri, 29 Dec 2006 09:02:08 +0000 (09:02 +0000)]
* src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
  with this z80 passes printf float test when enabled
* support/regression/tests/bug1057979.c: typo disabled ds390 float test

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

17 years agostrsignal declaration commented out
borutr [Thu, 28 Dec 2006 22:22:19 +0000 (22:22 +0000)]
strsignal declaration commented out

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

17 years ago* support/cpp2/config.in, support/cpp2/configure.in,
borutr [Thu, 28 Dec 2006 20:12:21 +0000 (20:12 +0000)]
* support/cpp2/config.in, support/cpp2/configure.in,
  support/cpp2/configure, support/cpp2/Makefile.in:
  fix for the solaris build

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

17 years ago* src/pic16/main.c: fixed #pragma udata handling
borutr [Wed, 27 Dec 2006 16:45:12 +0000 (16:45 +0000)]
* src/pic16/main.c: fixed #pragma udata handling
* src/mcs51/mcs51.dsp: added peep.[ch] to the project

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

17 years ago* src/SDCC.y (type_specifier2, pointer),
epetrich [Wed, 27 Dec 2006 16:28:04 +0000 (16:28 +0000)]
* src/SDCC.y (type_specifier2, pointer),
* src/SDCCsymt.h,
* src/SDCCsymt.c (mergeSpec, checkSClass),
* support/Util/SDCCerr.c,
* support/Util/SDCCerr.h: Parse and validate the restrict keyword
* support/valdiag/valdiag.py: Allow test cases to specify
  required language standard
* support/valdiag/tests/restrict.c: New file to test restrict keyword
* support/valdiag/tests/tentdecl.c: Supress empty source file error

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

17 years agogit-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4530 4a8a32a2...
borutr [Wed, 27 Dec 2006 13:52:07 +0000 (13:52 +0000)]
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4530 4a8a32a2-be11-0410-ad9d-d568d2c75423

17 years agoadded vasprintf.obj
borutr [Wed, 27 Dec 2006 13:42:33 +0000 (13:42 +0000)]
added vasprintf.obj

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

17 years ago* support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
borutr [Wed, 27 Dec 2006 09:45:56 +0000 (09:45 +0000)]
* support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
* support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
  mbchar removed
* support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
  fixed for borland C
* support/cpp2/libiberty/Makefile.bcc: updated

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

17 years ago* support/cpp2/Makefile.in: added vasprintf.c
borutr [Tue, 26 Dec 2006 21:35:00 +0000 (21:35 +0000)]
* support/cpp2/Makefile.in: added vasprintf.c

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

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