Tool News
 
 
 

Tool News

Products Info
Downloads
Tools FAQs
RENESAS TOOL NEWS on November 16, 2005: RSO-M3T-NC308WA_1-051116D

A Note on Using the C Compiler Packages
M3T-NC308WA and M3T-NC30WA

Please take note of the following problem in using the C compiler packages M3T-NC308WA and M3T-NC30WA, which are used for the M16C family of MCUs:
  • On incorrect description of do statements


  1. Products and Versions Concerned
    M3T-NC308WA V.5.00 Release 1 through V.5.20 Release 02
    (for the M32C/90, M32C/80, and M16C/80 series)

    M3T-NC30WA V.5.00 Release 1 through V.5.30 Release 02
    (for the M16C/60, M16C/30, M16C/20, M16C/10, M16C/Tiny, and R8C/Tiny series)


  2. Description
    Incorrect description of do statements results in system errors or application errors.

    2.1   Examples
    Example 1: Missing while statement
    ------------------------------------------------------------------------
    int func(void)
    {
     int        j;
        int     i = 0;
    
        for( j=0; j<10; j++ ){
                do{
                        i++;
                } ;             /* No while statement */
        }
        return i;
    }
    ------------------------------------------------------------------------
    
    Example 2: Missing controlling expression
    ------------------------------------------------------------------------
    int func(void)
    {
        int     j;
        int     i = 0;
    
        for( j=0; j<10; j++ ){
                do{
                        i++;
                } while();      /* No controlling expression */
        }
        return i;
    }
    ------------------------------------------------------------------------
    
    Example 3: Missing semicolon
    ------------------------------------------------------------------------
    int func(void)
    {
        int     j;
        int     i = 0;
    
        for( j=0; j<10; j++ ){
                do{
                        i++;
                } while( i < 10 )     /* No semicolon */
        }
        return i;
    }
    ------------------------------------------------------------------------

  3. Workaround
    Describe correct do statements.


  4. Schedule of Fixing the Problem
    We plan to fix this problem in the next release of the products.





© 2008. Renesas Technology Corp., All rights reserved. Privacy | Legal