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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjdk7u
    • Fix Version/s: openjdk7u
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b00
    • Introduced In Version:
    • Resolved In Build:
      master
    • CPU:
      generic
    • OS:
      linux

      Description

      /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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: