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

Zero: return-type warning in zeroInterpreter_zero.cpp

    XMLWordPrintable

Details

    • b20

    Backports

      Description

        This readily manifests in 11u. It is obscured in HEAD JDK by disabled "return-type" warning (and changed ShouldNotReachHere/BREAKPOINT definition?) for Zero.

        src/hotspot/cpu/zero/cppInterpreter_zero.cpp: In function intptr_t narrow(BasicType, intptr_t):
        src/hotspot/share/utilities/breakpoint.hpp:43:32: warning: control reaches end of non-void function [-Wreturn-type]
         #define BREAKPOINT ::breakpoint()
                            ~~~~~~~~~~~~^~
        src/hotspot/share/utilities/debug.hpp:130:3: note: in expansion of macro BREAKPOINT
           BREAKPOINT; \
           ^~~~~~~~~~
        src/hotspot/cpu/zero/cppInterpreter_zero.cpp:103:16: note: in expansion of macro ShouldNotReachHere
             default : ShouldNotReachHere();
                        ^~~~~~~~~~~~~~~~~~

        cppInterpreter_zero.cpp was renamed to zeroInterpreter_zero.cpp by JDK-8239782.

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: