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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: