* fixed compilation of AVR compiler

git-svn-id: trunk@13342 -
This commit is contained in:
florian 2009-06-27 19:31:24 +00:00
parent 86aad85b78
commit 60169d34dc
5 changed files with 31 additions and 5 deletions

View File

@ -120,7 +120,6 @@ Const
'AT91SAM7x256'
);
{ Supported optimizations, only used for information }
supported_optimizerswitches = genericlevel1optimizerswitches+
genericlevel2optimizerswitches+

View File

@ -181,7 +181,7 @@ unit cgcpu;
a_load_ref_reg(list,location^.size,location^.size,tmpref,location^.register);
LOC_REFERENCE:
begin
reference_reset_base(ref,location^.reference.index,location^.reference.offset,araloc.alignment);
reference_reset_base(ref,location^.reference.index,location^.reference.offset,paraloc.alignment);
{ doubles in softemu mode have a strange order of registers and references }
if location^.size=OS_32 then
g_concatcopy(list,tmpref,ref,4)

View File

@ -40,6 +40,16 @@ Type
fp_libgcc
);
tcontrollertype =
(ct_none,
ct_atmega16,
ct_atmega32,
ct_atmega48,
ct_atmega64,
ct_atmega128
);
Const
{# Size of native extended floating point type }
extended_size = 12;
@ -71,6 +81,23 @@ Const
'LIBGCC'
);
controllertypestr : array[tcontrollertype] of string[20] =
('',
'ATMEGA16',
'ATMEGA32',
'ATMEGA48',
'ATMEGA64',
'ATMEGA128'
);
controllerunitstr : array[tcontrollertype] of string[20] =
('',
'ATMEGA16',
'ATMEGA32',
'ATMEGA48',
'ATMEGA64',
'ATMEGA128'
);
{ Supported optimizations, only used for information }
supported_optimizerswitches = genericlevel1optimizerswitches+
genericlevel2optimizerswitches+

View File

@ -123,8 +123,8 @@ implementation
procedure genOrdConstNodeMod;
var
modreg, maskreg, tempreg : tregister;
{
begin
{
if (tordconstnode(right).value = 0) then begin
internalerror(2005061702);
end

View File

@ -138,9 +138,9 @@ interface
disabledircache : boolean;
{ CPU targets with microcontroller support can add a controller specific unit }
{$if defined(ARM)}
{$if defined(ARM) or defined(AVR)}
controllertype : tcontrollertype;
{$endif defined(ARM)}
{$endif defined(ARM) or defined(AVR)}
end;
const