Tue, 07 Feb 2012 11:33:15 -0800
7142167: MAC: _get_previous_fp broken on bsd with llvm-gcc
Summary: LLVM-GCC (__llvm__) should use the same _get_previous_fp implementation as __clang__ (as is the case for os::current_stack_pointer).
Reviewed-by: twisti, never, dcubed
src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Mon Feb 06 12:18:24 2012 -0800 1.2 +++ b/src/os_cpu/bsd_x86/vm/os_bsd_x86.cpp Tue Feb 07 11:33:15 2012 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -362,7 +362,7 @@ 1.11 } 1.12 1.13 intptr_t* _get_previous_fp() { 1.14 -#if defined(SPARC_WORKS) || defined(__clang__) 1.15 +#if defined(SPARC_WORKS) || defined(__clang__) || defined(__llvm__) 1.16 register intptr_t **ebp; 1.17 __asm__("mov %%"SPELL_REG_FP", %0":"=r"(ebp)); 1.18 #else