Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204509

Fix compilation error in harfbuzz 1.7.6 for Solaris Developer Studio 12.6

    Details

    • Subcomponent:
      2d
    • Introduced In Version:
      11
    • Resolved In Build:
      b19
    • OS:
      solaris

      Backports

        Description

        The upgrade to harfbuzz 1.7.6 included a workaround from
        upstream for the __restrict keyword not being
        supported in SunStudio 12.4.

        Support for the __restrict keyword was added to CC in 12.5

        A version-based test is one way to fix this.s
        This is how you can test for __restrict being keyword rather than a predefined macro (which it was in gcc compatibility mode like -std=c++NN or -compat=g):
        #if defined(__SUNPRO_CC) && (__SUNPRO_CC) >= 0x5140
        // restrict supported
        #else
        // restrict unsupported
        #endif

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  prr Philip Race
                  Reporter:
                  prr Philip Race
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: