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

RISCV: Fix -Wzero-as-null-pointer-constant warning in emit_static_call_stub

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 24
    • hotspot
    • b02
    • riscv

      The RISCV variant of MacroAssembler::emit_static_call_stub calls movptr with a literal 0 as the second (address) argument, triggering a -Wzero-as-null-pointer-constant when that's enabled.

      This is backsliding from JDK-8338019, recently introduced by JDK-8276799.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: