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

Remove the flag -fsanitize=undefined for GCC 4.9 and later

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Environment:

      GCC 4.9.2, Fedora 21

    • Subcomponent:
    • Resolved In Build:
      b42

      Backports

        Description

        The flag -fsanitize=default is used if it is available (GCC 4.9 or later) to detect undefined behavior. Unfortunately, the implementation in GCC seems to have some bugs with GCC 4.9.2, see https://bugzilla.redhat.com/show_bug.cgi?id=1166173 for more details.

        Since the supported compiler at the moment is GCC 4.8.2, I suggest that we remove the flag and when we upgrade the supported compiler to GCC 4.9.X, then we can reevaluate whether we should use -fsanitize=default or not.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  ehelin Erik Helin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: