From 002b45e47d2e16535faf6ac10a84ebcb0e9091fc Mon Sep 17 00:00:00 2001 From: vrokas Date: Thu, 4 Sep 2003 15:47:17 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2873 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/pic16/device.c | 3 ++- src/pic16/device.h | 3 ++- src/pic16/gen.c | 2 +- src/pic16/gen.h | 6 +++--- src/pic16/genarith.c | 3 ++- src/pic16/glue.c | 2 +- src/pic16/main.c | 30 +++++++++++++++++++++++++----- src/pic16/pcode.c | 6 +++++- src/pic16/pcodeflow.c | 2 +- src/pic16/pcodeflow.h | 3 ++- src/pic16/pcodepeep.c | 3 ++- src/pic16/pcoderegs.c | 2 +- src/pic16/pcoderegs.h | 2 +- src/pic16/ralloc.c | 2 +- src/pic16/ralloc.h | 2 +- 15 files changed, 50 insertions(+), 21 deletions(-) diff --git a/src/pic16/device.c b/src/pic16/device.c index 3996e450..cecd52be 100644 --- a/src/pic16/device.c +++ b/src/pic16/device.c @@ -1,6 +1,7 @@ /*------------------------------------------------------------------------- - device.c - Accomodates subtle variations in PIC16 devices + device.c - Accomodates subtle variations in PIC16 devices + Written By - Scott Dattalo scott@dattalo.com Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com diff --git a/src/pic16/device.h b/src/pic16/device.h index 3c683113..b1803175 100644 --- a/src/pic16/device.h +++ b/src/pic16/device.h @@ -1,6 +1,7 @@ /*------------------------------------------------------------------------- - device.c - Accomodates subtle variations in PIC16 devices + device.c - Accomodates subtle variations in PIC16 devices + Written By - Scott Dattalo scott@dattalo.com This program is free software; you can redistribute it and/or modify it diff --git a/src/pic16/gen.c b/src/pic16/gen.c index d9fd14dc..0245249b 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -1,5 +1,5 @@ /*------------------------------------------------------------------------- - gen.c - source file for code generation for pic16 + gen.c - source file for code generation for pic16 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) and - Jean-Louis VERN.jlvern@writeme.com (1999) diff --git a/src/pic16/gen.h b/src/pic16/gen.h index 1b737d4c..90294755 100644 --- a/src/pic16/gen.h +++ b/src/pic16/gen.h @@ -1,5 +1,5 @@ /*------------------------------------------------------------------------- - SDCCgen51.h - header file for code generation for 8051 + gen.h - header file for code generation for PIC16 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) PIC port - T. Scott Dattalo scott@dattalo.com (2000) @@ -24,8 +24,8 @@ what you give them. Help stamp out software-hoarding! -------------------------------------------------------------------------*/ -#ifndef SDCCGENPIC14_H -#define SDCCGENPIC14_H +#ifndef SDCCGENPIC16_H +#define SDCCGENPIC16_H struct pCodeOp; diff --git a/src/pic16/genarith.c b/src/pic16/genarith.c index 0bf43881..9f6a8595 100644 --- a/src/pic16/genarith.c +++ b/src/pic16/genarith.c @@ -1,5 +1,6 @@ /*------------------------------------------------------------------------- - genarith.c - source file for code generation - arithmetic + + genarith.c - source file for code generation - arithmetic Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) and - Jean-Louis VERN.jlvern@writeme.com (1999) diff --git a/src/pic16/glue.c b/src/pic16/glue.c index fac38d54..ba58923f 100644 --- a/src/pic16/glue.c +++ b/src/pic16/glue.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- - SDCCglue.c - glues everything we have done together into one file. + glue.c - glues everything we have done together into one file. Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) This program is free software; you can redistribute it and/or modify it diff --git a/src/pic16/main.c b/src/pic16/main.c index 07545821..d41540df 100644 --- a/src/pic16/main.c +++ b/src/pic16/main.c @@ -1,9 +1,29 @@ -/** @file main.c - pic16 specific general functions. +/*------------------------------------------------------------------------- + + main.c - pic16 specific general functions. + + Written by - Scott Dattalo scott@dattalo.com + Ported to PIC16 by - Martin Dubuc m.debuc@rogers.com + + Note that mlh prepended _pic16_ on the static functions. Makes + it easier to set a breakpoint using the debugger. + + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-------------------------------------------------------------------------*/ - Note that mlh prepended _pic16_ on the static functions. Makes - it easier to set a breakpoint using the debugger. -*/ #include "common.h" #include "main.h" #include "ralloc.h" diff --git a/src/pic16/pcode.c b/src/pic16/pcode.c index b1823026..3ed97773 100644 --- a/src/pic16/pcode.c +++ b/src/pic16/pcode.c @@ -1,6 +1,7 @@ /*------------------------------------------------------------------------- - pcode.c - post code generation + pcode.c - post code generation + Written By - Scott Dattalo scott@dattalo.com Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com @@ -5963,11 +5964,14 @@ static void pic16_FixRegisterBanking(pBlock *pb) } #endif +/* #if !defined(__BORLANDC__) && !defined(_MSC_VER) #warning Fix this if-conditional #else #pragma message( "warning Fix this if-conditional" ) #endif +*/ + /* the !(reg->rIdx==-1) is a temporary hack. It should be changed - VR 6-Jun-2003 */ if( ( (reg /*&& !(reg->rIdx==-1)*/ && !isACCESS_BANK(reg) && (isBankInstruction(pc)==-1) && !(reg->alias == 0x80) ) /*|| (PCI(pc)->op != POC_CALL)*/ ) diff --git a/src/pic16/pcodeflow.c b/src/pic16/pcodeflow.c index 77b2b48e..a317d539 100644 --- a/src/pic16/pcodeflow.c +++ b/src/pic16/pcodeflow.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- - pcodeflow.c - post code generation flow analysis + pcodeflow.c - post code generation flow analysis Written By - Scott Dattalo scott@dattalo.com Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com diff --git a/src/pic16/pcodeflow.h b/src/pic16/pcodeflow.h index b451dea7..ad9c3b46 100644 --- a/src/pic16/pcodeflow.h +++ b/src/pic16/pcodeflow.h @@ -1,6 +1,7 @@ /*------------------------------------------------------------------------- - pcode.h - post code generation + pcode.h - post code generation + Written By - Scott Dattalo scott@dattalo.com PIC16 port - Martin Dubuc m.dubuc@rogers.com diff --git a/src/pic16/pcodepeep.c b/src/pic16/pcodepeep.c index a6786be4..5be20126 100644 --- a/src/pic16/pcodepeep.c +++ b/src/pic16/pcodepeep.c @@ -1,6 +1,7 @@ /*------------------------------------------------------------------------- - pcodepeep.c - post code generation + pcodepeep.c - post code generation + Written By - Scott Dattalo scott@dattalo.com Ported to PIC16 By - Martin Dubuc m.dubuc@rogers.com diff --git a/src/pic16/pcoderegs.c b/src/pic16/pcoderegs.c index 3bf620b3..525a1bae 100644 --- a/src/pic16/pcoderegs.c +++ b/src/pic16/pcoderegs.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- - pcoderegs.c - post code generation register optimizations + pcoderegs.c - post code generation register optimizations Written By - Scott Dattalo scott@dattalo.com Ported To PIC16 By - m.dubuc@rogers.com diff --git a/src/pic16/pcoderegs.h b/src/pic16/pcoderegs.h index c37d72f4..6ee056e3 100644 --- a/src/pic16/pcoderegs.h +++ b/src/pic16/pcoderegs.h @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- - pcoderegs.h - post code generation register optimizations + pcoderegs.h - post code generation register optimizations Written By - Scott Dattalo scott@dattalo.com diff --git a/src/pic16/ralloc.c b/src/pic16/ralloc.c index c1c6da37..03849b7d 100644 --- a/src/pic16/ralloc.c +++ b/src/pic16/ralloc.c @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------ - SDCCralloc.c - source file for register allocation. (8051) specific + ralloc.c - source file for register allocation. PIC16 specific Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) Added Pic Port T.scott Dattalo scott@dattalo.com (2000) diff --git a/src/pic16/ralloc.h b/src/pic16/ralloc.h index 6801ce37..cce62280 100644 --- a/src/pic16/ralloc.h +++ b/src/pic16/ralloc.h @@ -1,6 +1,6 @@ /*------------------------------------------------------------------------- - SDCCralloc.h - header file register allocation + ralloc.h - header file register allocation Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998) PIC port - T. Scott Dattalo scott@dattalo.com (2000) -- 2.47.2