hotspot/make/linux/makefiles/gcc.make
changeset 19544 8f3ad1962aef
parent 18447 1481a04c99e2
child 20295 a5dd1b071c32
child 22828 17ecb098bc1e
--- a/hotspot/make/linux/makefiles/gcc.make	Fri Aug 23 10:39:15 2013 -0700
+++ b/hotspot/make/linux/makefiles/gcc.make	Sun Aug 25 21:21:18 2013 -0400
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -398,3 +398,10 @@
 ifdef MINIMIZE_RAM_USAGE
 CFLAGS += -DMINIMIZE_RAM_USAGE
 endif
+
+# Stack walking in the JVM relies on frame pointer (%rbp) to walk thread stack.
+# Explicitly specify -fno-omit-frame-pointer because it is off by default
+# starting with gcc 4.6.
+ifndef USE_SUNCC
+  CFLAGS += -fno-omit-frame-pointer
+endif