Mercurial > hg > graal-jvmci-8
comparison make/linux/makefiles/gcc.make @ 12108:badf4244ceae
8022183: GCC 4.6 change sdefault setting for omit-frame-pointer which breaks hotspot stack walking
Summary: Explicitly specify -fno-omit-frame-pointer.
Reviewed-by: coleenp, dholmes, dcubed
author | hseigel |
---|---|
date | Sun, 25 Aug 2013 21:21:18 -0400 |
parents | cc63bcb47cce |
children | f2512d89ad0c e2722a66aba7 |
comparison
equal
deleted
inserted
replaced
12107:cacc421f39d7 | 12108:badf4244ceae |
---|---|
1 # | 1 # |
2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. | 2 # Copyright (c) 1999, 2013, 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. |
396 # We are building Embedded for a small device | 396 # We are building Embedded for a small device |
397 # favor code space over speed | 397 # favor code space over speed |
398 ifdef MINIMIZE_RAM_USAGE | 398 ifdef MINIMIZE_RAM_USAGE |
399 CFLAGS += -DMINIMIZE_RAM_USAGE | 399 CFLAGS += -DMINIMIZE_RAM_USAGE |
400 endif | 400 endif |
401 | |
402 # Stack walking in the JVM relies on frame pointer (%rbp) to walk thread stack. | |
403 # Explicitly specify -fno-omit-frame-pointer because it is off by default | |
404 # starting with gcc 4.6. | |
405 ifndef USE_SUNCC | |
406 CFLAGS += -fno-omit-frame-pointer | |
407 endif |