[llvm-commits] [llvm-gcc-4.2] r104067 - in /llvm-gcc-4.2/trunk/gcc/config/i386: i386.c i386.h
Bill Wendling
isanbard at gmail.com
Tue May 18 14:52:42 PDT 2010
Author: void
Date: Tue May 18 16:52:42 2010
New Revision: 104067
URL: http://llvm.org/viewvc/llvm-project?rev=104067&view=rev
Log:
Comment the use of the magic value '3' for the flag_omit_frame_pointer variable.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.c?rev=104067&r1=104066&r2=104067&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.c Tue May 18 16:52:42 2010
@@ -2081,6 +2081,7 @@
if (flag_omit_frame_pointer)
target_flags &= ~MASK_OMIT_LEAF_FRAME_POINTER;
else if (TARGET_OMIT_LEAF_FRAME_POINTER)
+ /* LLVM LOCAL - Use '3' to indicate omitting leaf FPs only */
flag_omit_frame_pointer = 3;
/* If we're doing fast math, we don't care about comparison order
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.h?rev=104067&r1=104066&r2=104067&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.h Tue May 18 16:52:42 2010
@@ -3955,6 +3955,8 @@
argvec.push_back("--code-model=default"); \
break; \
} \
+ /* A value of 3 in flag_omit_frame_pointer implies \
+ omitting leaf frame pointers only. */ \
if (flag_omit_frame_pointer == 3) \
argvec.push_back("--disable-non-leaf-fp-elim"); \
} while (0)
More information about the llvm-commits
mailing list