Mercurial > hg > truffle
diff src/share/vm/opto/block.cpp @ 3929:f94227b6117b
7090259: Fix hotspot sources to build with old compilers
Summary: Fixed warnings which prevent building VM with old compilers.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 13 Sep 2011 20:28:00 -0700 |
parents | 11211f7cb5a0 |
children | 1bd45abaa507 |
line wrap: on
line diff
--- a/src/share/vm/opto/block.cpp Tue Sep 13 16:58:35 2011 -0700 +++ b/src/share/vm/opto/block.cpp Tue Sep 13 20:28:00 2011 -0700 @@ -1107,7 +1107,7 @@ //------------------------------trace_frequency_order-------------------------- // Comparison function for edges -static int trace_frequency_order(const void *p0, const void *p1) { +extern "C" int trace_frequency_order(const void *p0, const void *p1) { Trace *tr0 = *(Trace **) p0; Trace *tr1 = *(Trace **) p1; Block *b0 = tr0->first_block();