JDK-8187667 fails on GCC 4.4.7 as found on RHEL 6

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • openjdk7u
    • Affects Version/s: openjdk7u
    • Component/s: infrastructure
    • None
    • b00
    • master
    • generic
    • linux

      /mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp: In static member function 'static dirent* os::readdir(DIR*, dirent*)':
      /mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:140: error: #pragma GCC diagnostic not allowed inside functions
      /mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:141: error: #pragma GCC diagnostic not allowed inside functions
      /mnt/ramdisk/openjdk/hotspot/src/os/linux/vm/os_linux.inline.hpp:157: error: #pragma GCC diagnostic not allowed inside functions

      Moving the pragma to just above the function definition fixes this. We also need to disable pragma warnings on GCC < 4.6, as push/pop weren't available until then.

            Assignee:
            Andrew Hughes
            Reporter:
            Andrew Hughes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: