usage of unsafe literal string conversion to 'char *' breaks the build on Linux with GCC 4.2

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 7
    • Component/s: hotspot
    • None
    • x86
    • linux

      GCC 4.2 is stricter in literal strings to char pointers conversion: now one can only convert literal strings to 'const char *', conversion to 'char *' is prohibited. This affects the build of the JDK when GCC 4.2 or higher is used on linux: src/os/linux/vm/jvm_linux.cpp and src/os/linux/vm/os_linux.cpp contain such unsafe conversions, which causes the build to fail.
      Also, I found another problem which might lead to compliation failure. See comments for details.

            Assignee:
            Xiaobin Lu (Inactive)
            Reporter:
            Ivan Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: