comparison src/share/vm/ci/ciEnv.cpp @ 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 18f752639eb2
children 52b4284cb496 ce8f6bb717c9
comparison
equal deleted inserted replaced
17935:7384f6a12fc1 17937:78bbf4d43a14
1 /* 1 /*
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 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.
1218 if (fd != -1) { 1218 if (fd != -1) {
1219 FILE* replay_data_file = os::open(fd, "w"); 1219 FILE* replay_data_file = os::open(fd, "w");
1220 if (replay_data_file != NULL) { 1220 if (replay_data_file != NULL) {
1221 fileStream replay_data_stream(replay_data_file, /*need_close=*/true); 1221 fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
1222 dump_replay_data(&replay_data_stream); 1222 dump_replay_data(&replay_data_stream);
1223 tty->print("# Compiler replay data is saved as: "); 1223 tty->print_cr("# Compiler replay data is saved as: %s", buffer);
1224 tty->print_cr(buffer);
1225 } else { 1224 } else {
1226 tty->print_cr("# Can't open file to dump replay data."); 1225 tty->print_cr("# Can't open file to dump replay data.");
1227 } 1226 }
1228 } 1227 }
1229 } 1228 }
1242 MutexLocker ml(Compile_lock); 1241 MutexLocker ml(Compile_lock);
1243 dump_compile_data(&replay_data_stream); 1242 dump_compile_data(&replay_data_stream);
1244 ) 1243 )
1245 replay_data_stream.flush(); 1244 replay_data_stream.flush();
1246 tty->print("# Compiler inline data is saved as: "); 1245 tty->print("# Compiler inline data is saved as: ");
1247 tty->print_cr(buffer); 1246 tty->print_cr("%s", buffer);
1248 } else { 1247 } else {
1249 tty->print_cr("# Can't open file to dump inline data."); 1248 tty->print_cr("# Can't open file to dump inline data.");
1250 } 1249 }
1251 } 1250 }
1252 } 1251 }