borutr [Mon, 19 Jan 2009 21:06:40 +0000 (21:06 +0000)]
* Makefile.in, configure.in, configure,
device\lib\Makefile.in, device\lib\ds390\Makefile.in,
device\lib\ds400\Makefile.in, device\lib\gbz80\Makefile.in,
device\lib\hc08\Makefile.in, device\lib\large\Makefile.in,
device\lib\mcs51\Makefile.in, device\lib\medium\Makefile.in,
device\lib\small\Makefile.in,
device\lib\z80\Makefile.in: create ar format libraries
* support\regression\ports\mcs51-xstack-auto\spec.mk:
use device\lib\Makefile to create library
* support\regression\tests\snprintf.c:
floating point is not enabled in small-xstack-auto library
borutr [Sat, 10 Jan 2009 10:16:28 +0000 (10:16 +0000)]
* support/scripts/sdcc.nsi: added asranlib.exe to the install package
* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
due added support for ar format libraries
borutr [Fri, 9 Jan 2009 23:04:14 +0000 (23:04 +0000)]
* as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
as/asranlib/asranlib.c: added asranlib
* as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
* Makefile.in, as/link/hc08/Makefile.in,
as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
configure.in, sdcc.dsw: modified to support ar format libraries
borutr [Sun, 4 Jan 2009 08:18:33 +0000 (08:18 +0000)]
* .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
* doc/README.txt: updated John Hartman's e-mail address
borutr [Fri, 2 Jan 2009 20:40:13 +0000 (20:40 +0000)]
* as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
as/link/getline.[ch], as/link/lkrel.[ch]: added,
made support for differnet library formats more flexible,
preparation for support of ar format
* as/link/lklibr.c, as/link/z80/Makefile.in,
as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
as/link/hc08/lkelf.c, as/link/aslink.h:
made support for differnet library formats more flexible,
preparation for support of ar format
borutr [Thu, 1 Jan 2009 19:38:35 +0000 (19:38 +0000)]
* device/lib/Makefile.in: allow whitespaces at the end of lines in
ports.build, in order to make it work on cygwin - it seems to be a
bug in cygwin grep: CR is not treated as part of end-of-line
borutr [Thu, 1 Jan 2009 12:14:27 +0000 (12:14 +0000)]
* as/link/asxxxx_config.h.in:
fixed warning: extra tokens at end of #endif directive
* src/z80/peep.c:
fixed warning: suggest parentheses around && within ||
MaartenBrock [Sun, 28 Dec 2008 21:39:44 +0000 (21:39 +0000)]
* src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
(177.j): added new rule
* src/SDCCsymt.h: added RESULT_TYPE_GPTR
* src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
(decorateType CAST): propagate storage class to generic pointer results
borutr [Sun, 21 Dec 2008 13:47:21 +0000 (13:47 +0000)]
* support/librarian/sdcclib.c: fixed build failure on Mac OS X
due to redifinition of symbol __assert
sdcclib.c:53:1:warning: "__assert" redefined
/Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
warning: this is the location of the previous definition
tecodev [Tue, 25 Nov 2008 01:47:40 +0000 (01:47 +0000)]
* device/include/pic16/pic16devices.txt,
sdcc/src/pic16/device.c,
sdcc/src/pic16/device.h: implicitly disable XINST
whenever CONFIG4L is set via an additional optional
argument to the configword directive in pic16devices.txt
tecodev [Mon, 24 Nov 2008 00:16:33 +0000 (00:16 +0000)]
* src/pic16/main.c (_pic16_finaliseOptions): do not quote the
argument of --asm= or --link= to allow for
--asm="sh script --options", the user can double quote the
argument if needed: --asm="'c:/program files/gpasm' -q",
also fix some potential buffer overflows
* device/include/pic16/adc.h,
device/lib/pic16/libio/adc/adcbusy.c,
device/lib/pic16/libio/adc/adcclose.c,
device/lib/pic16/libio/adc/adcconv.c,
device/lib/pic16/libio/adc/adcopen.c,
device/lib/pic16/libio/adc/adcread.c,
device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
and fixed ADC routines to work for more target devices,
incorporates patch #2036130 by Nick Materer
tecodev [Mon, 10 Nov 2008 16:44:25 +0000 (16:44 +0000)]
* device/lib/pic16/libdev/mkmk.sh: obey pics.all
* device/lib/pic16/libio/mkmk.sh: properly match whole lines in
.ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
(patch by Nick Materer, #2253980)
* device/lib/pic16/libio/adc.ignore,
device/lib/pic16/libio/i2c.ignore,
device/lib/pic16/libio/usart.ignore,
device/lib/pic16/pics.all: updated to build more device libs
frief [Sun, 9 Nov 2008 22:05:13 +0000 (22:05 +0000)]
2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
* device/include/mcs51/p89lpc933_4.h: new NXP header file
* device/include/mcs51/p89lpc935_6.h: new NXP header file
* device/include/mcs51/p89v66x.h: minor changes
borutr [Thu, 6 Nov 2008 17:20:29 +0000 (17:20 +0000)]
* src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
pass system include paths with -isystem to sdcpp
* src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneded
functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
tecodev [Sun, 2 Nov 2008 13:40:55 +0000 (13:40 +0000)]
* doc/sdccman.lyx: updated the sections on the library build process
and on how to add support for new devices, and documented known
problems with the extended instruction set including a workaround
* device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
stack to a fixed location, relax it to automatically work with all
but the smallest devices (256 byte RAM devices need #pragma stack)
tecodev [Sun, 5 Oct 2008 23:07:36 +0000 (23:07 +0000)]
* device/include/pic16/stdio.h,
device/lib/pic16/libc/stdio/putchar.c: putchar should not be
declared __naked for convenience, named all arguments
* device/lib/pic16/libc/stdio/strmgpsim.c,
device/lib/pic16/libc/stdio/strmmssp.c,
device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
* src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
empty __naked functions,
* (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
corner cases (unlink first/last pCode in list), reuse more code
* device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
device/lib/pic16/libc/stdio/printf.c,
device/lib/pic16/libc/stdio/strmusart.c,
device/lib/pic16/libc/stdio/printf_tiny.c,
device/lib/pic16/libc/stdio/sprintf.c,
device/lib/pic16/libc/stdio/strmgpsim.c,
device/lib/pic16/libc/stdio/putchar.c,
device/lib/pic16/libc/stdio/fprintf.c,
device/lib/pic16/libc/stdio/strmmssp.c,
device/device/lib/pic16/libc/stdio/vprintf.c,
device/lib/pic16/libc/stdio/printf_small.c,
device/lib/pic16/libc/stdio/vsprintf.c,
device/lib/pic16/libc/stdio/strmputchar.c,
device/lib/pic16/libc/Makefile.am,
device/lib/pic16/libc/Makefile.in:
*printf now returns int, puchar.c moved from stdlib to stdio,
*printf format parameter type changed from char * to const char *,
added GNU link excetion text to library source files,
applyed GNU coding style, removed useless svn ids,
added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
binary specifier: "%b", "%hb" and "%lb"
* device/lib/pic16/libc/stdio/vfprintf.c:
applied patch #2044424: PIC16: vfprintf
thanks Mauro Giachero
* src/pic16/device.c (pic16_dump_usection): force udata sections
into the addressable range (0..0xFFF), workaround for a gpsim
bug preventing simulation of regtest bug1750318
* src/pic16/ralloc.c (deassignLRs): cosmetic changes,
(serialRegAssign): fixed regtest bug-971834,
(pic16_packRegisters): avoid null-pointer dereference
* configure.in, Makefile.common.in: add support for ccache,
remove spurious $VERSION output, detect doc-tools even without
--enable-doc to facilitate later manual doc-builds, minor cleanup
* configure: regenerated
* doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
avoid races in parallel VPATH builds
* doc/clean.mk: remove .lyx files in the builddir for VPATH builds
* doc/sdccman.lyx: mention --without-ccache configure option
* src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
* (genConstPointerGet): fix reading bitfields from __code space
* src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
bitfield initializers (fix regression test bug1856409.c)
* (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
arbitrary sizes
tecodev [Sun, 31 Aug 2008 21:08:28 +0000 (21:08 +0000)]
* src/pic16/gen.c (genAssign): removed useless compiler output
* (genPointerGet,genPointerSet,genCast),
src/pic16/glue.c (pic16_printGPointerType):
also handle PPOINTERs just to avoid spurious asserts
* (pic16_printIvalType,pic16_printIvalBitFields):
generalized to arbitrary type/bitfield sizes, allows compilation of
regression test bug-1981238.c
* (pic16_printIvalChar): fix regression test structflexarray.c
* (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
in initialized structs and fix #1843745
* (pic16_printIvalStruct): always output initializers for all fields,
even those not explicitly given, fixes zeropad.c regression test
* (pic16_printIvalUnion): fix union initializers (bug1426356.c,
#2073635, #1567098, and #1485812)
* src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
tecodev [Sun, 24 Aug 2008 20:30:52 +0000 (20:30 +0000)]
* device/lib/pic16/configure, device/lib/pic16/configure.ac:
always use the sdcc from the current build tree (ignore $CC from
the environment, fixes compile farm builds)
* device/lib/Makefile.in: rename .a into .lib for compatibility,
remove more build products from install directory
* sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
* sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs