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

Remove FakeRttiSupport workaround for spurious gcc -Wtype-limits

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b69
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: