Mercurial > hg > graal-jvmci-8
comparison src/share/vm/trace/traceStream.hpp @ 17937:78bbf4d43a14
8037816: Fix for 8036122 breaks build with Xcode5/clang
8043029: Change 8037816 breaks HS build with older GCC versions which don't support diagnostic pragmas
8043164: Format warning in traceStream.hpp
Summary: Backport of main fix + two corrections, enables clang compilation, turns on format attributes, corrects/mutes warnings
Reviewed-by: kvn, coleenp, iveresov, twisti
author | drchase |
---|---|
date | Thu, 22 May 2014 15:52:41 -0400 |
parents | f2110083203d |
children | 82d3e7b5277a |
comparison
equal
deleted
inserted
replaced
17935:7384f6a12fc1 | 17937:78bbf4d43a14 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
64 void print_val(const char* label, u8 val) { | 64 void print_val(const char* label, u8 val) { |
65 _st.print("%s = "UINT64_FORMAT, label, val); | 65 _st.print("%s = "UINT64_FORMAT, label, val); |
66 } | 66 } |
67 | 67 |
68 void print_val(const char* label, s8 val) { | 68 void print_val(const char* label, s8 val) { |
69 _st.print("%s = "INT64_FORMAT, label, val); | 69 _st.print("%s = "INT64_FORMAT, label, (int64_t) val); |
70 } | 70 } |
71 | 71 |
72 void print_val(const char* label, bool val) { | 72 void print_val(const char* label, bool val) { |
73 _st.print("%s = %s", label, val ? "true" : "false"); | 73 _st.print("%s = %s", label, val ? "true" : "false"); |
74 } | 74 } |
111 void print_val(const char* label, const char* val) { | 111 void print_val(const char* label, const char* val) { |
112 _st.print("%s = '%s'", label, val); | 112 _st.print("%s = '%s'", label, val); |
113 } | 113 } |
114 | 114 |
115 void print(const char* val) { | 115 void print(const char* val) { |
116 _st.print(val); | 116 _st.print("%s", val); |
117 } | 117 } |
118 }; | 118 }; |
119 | 119 |
120 #endif /* INCLUDE_TRACE */ | 120 #endif /* INCLUDE_TRACE */ |
121 #endif /* SHARE_VM_TRACE_TRACESTREAM_HPP */ | 121 #endif /* SHARE_VM_TRACE_TRACESTREAM_HPP */ |