are sane and complete before asking the port its prefered parameter
passing method (fixes bug #
1017633)
* device/lib/hc08/_ret.c: added "data" storage class to _ret2
and _ret3
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3455
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+ * src/SDCCsymt.c (processFuncArgs): make sure parameter types
+ are sane and complete before asking the port its prefered parameter
+ passing method (fixes bug #1017633)
+ * device/lib/hc08/_ret.c: added "data" storage class to _ret2
+ and _ret3
+
2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
* src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
-unsigned char _ret2;
-unsigned char _ret3;
+data unsigned char _ret2;
+data unsigned char _ret3;
/* change it to pointer to the same type */
while (val)
{
- int argreg = 0;
+ int argreg = 0;
+ char buffer[SDCC_NAME_MAX+1];
+
+ SNPRINTF (buffer, sizeof(buffer), "%s parameter %d", func->name, pNum);
+ checkTypeSanity (val->etype, buffer);
+
/* mark it as a register parameter if
the function does not have VA_ARG
and as port dictates */