Apply restrict to pointer to cfloat causes compiler to fail with INTERNAL ERROR: no match for MCALL

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-13482
    • Hide
      C7000_2.1.0.LTS
      C7000_5.0.0.LTS
      C7000_3.1.0.LTS
      C7000_6.0.0.LTS*
      C7000_4.1.0.LTS
      Show
      C7000_2.1.0.LTS C7000_5.0.0.LTS C7000_3.1.0.LTS C7000_6.0.0.LTS* C7000_4.1.0.LTS
    • Hide
      C7000_5.0.1.LTS*
      C7000_4.1.2.LTS*
      C7000_6.0.0.LTS*
      Show
      C7000_5.0.1.LTS* C7000_4.1.2.LTS* C7000_6.0.0.LTS*
    • default

      The attached test case has this code ...

      // Fails
      #define RESTRICT restrict
      
      // Works
      // #define RESTRICT
      
      void test_func (
          const cfloat * RESTRICT X,
          cfloat * RESTRICT Y)
      {
          for(int vt = 0u; vt < 10; vt++) Y[vt] = X[vt];
      }
      

      Build it ...

      % cl7x --opt_level=2 file.cpp
      >> file.cpp, line 11: INTERNAL ERROR: no match for MCALL
      
      
      This may be a serious problem.  Please contact customer support with a
      description of this problem and a sample of the source files that caused this
      INTERNAL ERROR message to appear.
      
      Cannot continue compilation - ABORTING!
      
      
      >> Compilation failure
      

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5142 - Apply restrict to pointer to cfloat...
                SYNCHRONIZED
                • Last Sync Date: