6838823: Definitions of arrays of strings triggers errors in gcc 4.3 on Fedora 9
Reviewed-by: darcy
--- a/src/share/vm/ci/ciMethodBlocks.cpp Thu May 07 13:20:49 2009 -0700
+++ b/src/share/vm/ci/ciMethodBlocks.cpp Fri May 08 12:39:20 2009 -0700
@@ -321,7 +321,7 @@ void ciBlock::set_exception_range(int st
}
#ifndef PRODUCT
-static char *flagnames[] = {
+static const char *flagnames[] = {
"Processed",
"Handler",
"MayThrow",
--- a/src/share/vm/opto/escape.cpp Thu May 07 13:20:49 2009 -0700
+++ b/src/share/vm/opto/escape.cpp Fri May 08 12:39:20 2009 -0700
@@ -54,21 +54,21 @@ void PointsToNode::remove_edge(uint targ
}
#ifndef PRODUCT
-static char *node_type_names[] = {
+static const char *node_type_names[] = {
"UnknownType",
"JavaObject",
"LocalVar",
"Field"
};
-static char *esc_names[] = {
+static const char *esc_names[] = {
"UnknownEscape",
"NoEscape ",
"ArgEscape ",
"GlobalEscape "
};
-static char *edge_type_suffix[] = {
+static const char *edge_type_suffix[] = {
"?", // UnknownEdge
"P", // PointsToEdge
"D", // DeferredEdge