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

Remove FakeRttiSupport workaround for spurious gcc -Wtype-limits

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b69
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        The FakeRttiSupport class contains a workaround in its validate_tag function. Specifically, the argument type is uintx rather than the more appropriate TagType. This was needed to avoid a -Wtypes-limit warning when building on MacOSX when instantiated TagType's range is always in the checked range. This warning should be considered spurious, since it involves a template parameter type; there is an old gcc bug about this (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856), which was fixed in gcc 4.8. Once we're no longer using any compilers which generate this spurious warning, we can remove the workaround.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kbarrett Kim Barrett
                  Reporter:
                  kbarrett Kim Barrett
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: