z88dk forums

z80 Development Kit

You are not logged in.

#1 2014-04-01 20:52:36

Dominic Morris
Guest

[Z88dk-commits] CVS: z88dk/src/zcc zcc.c,1.61,1.62

Update of /cvsroot/z88dk/z88dk/src/zcc
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8413

Modified Files:
zcc.c
Log Message:
Have zcc add on the small c #define rather than being done by the
config file


Index: zcc.c
===================================================================
RCS file: /cvsroot/z88dk/z88dk/src/zcc/zcc.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** zcc.c    19 Mar 2014 22:44:57 -0000    1.61
--- zcc.c    1 Apr 2014 19:52:34 -0000    1.62
***************
*** 1132,1137 ****
c_linkopts = c_vlinkopts;

-         printf("Assembler opts = %s\n", c_asmopts);
-
style = outspecified_flag;
linker_output_separate_arg = 1;
--- 1132,1135 ----
***************
*** 1161,1165 ****
static void configure_compiler()
{
!     char *preprocarg = " -DZ88DK_USES_SDCC=1";
char  buf[256];

--- 1159,1163 ----
static void configure_compiler()
{
!     char *preprocarg;
char  buf[256];

***************
*** 1171,1174 ****
--- 1169,1173 ----
snprintf(buf,sizeof(buf),"-mz80 --reserve-regs-iy --no-optsdcc-in-asm --c1mode --asm=%s",sdcc_assemblernames[assembler_type]);
add_option_to_compiler(buf);
+         preprocarg = " -DZ88DK_USES_SDCC=1";
BuildOptions(&cpparg, preprocarg);
if ( assembler_type == ASM_Z80ASM ) {
***************
*** 1178,1181 ****
--- 1177,1182 ----
compiler_style = filter_outspecified_flag;
} else {
+         preprocarg = " -DSCCZ80 -DSMALL_C";
+         BuildOptions(&cpparg, preprocarg);
/* Indicate to sccz80 what assembler we want */
snprintf(buf,sizeof(buf),"-asm=%s",c_assembler_type);


------------------------------------------------------------------------------

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson