# HG changeset patch # User henryjen # Date 1391121126 28800 # Thu Jan 30 14:32:06 2014 -0800 # Node ID 766a085028e297164454604ed8eef1c4d2bfa0d5 # Parent 2a8891e0a0827993b60661db814188d9f04e113f 8033057: clang: friend declaration specifying a default argument must be a definition Reviewed-by: diff --git a/src/share/vm/code/relocInfo.hpp b/src/share/vm/code/relocInfo.hpp --- a/src/share/vm/code/relocInfo.hpp +++ b/src/share/vm/code/relocInfo.hpp @@ -364,7 +364,7 @@ // "immediate" in the prefix header word itself. This optimization // is invisible outside this module.) - inline friend relocInfo prefix_relocInfo(int datalen = 0); + inline friend relocInfo prefix_relocInfo(int datalen); protected: // an immediate relocInfo optimizes a prefix with one 10-bit unsigned value @@ -459,7 +459,7 @@ return relocInfo(relocInfo::none, relocInfo::offset_limit() - relocInfo::offset_unit); } -inline relocInfo prefix_relocInfo(int datalen) { +inline relocInfo prefix_relocInfo(int datalen = 0) { assert(relocInfo::fits_into_immediate(datalen), "datalen in limits"); return relocInfo(relocInfo::data_prefix_tag, relocInfo::RAW_BITS, relocInfo::datalen_tag | datalen); }