[llvm-commits] [dragonegg] r104490 - /dragonegg/trunk/x86/llvm-target.h
Duncan Sands
baldrick at free.fr
Mon May 24 06:00:30 PDT 2010
Author: baldrick
Date: Mon May 24 08:00:29 2010
New Revision: 104490
URL: http://llvm.org/viewvc/llvm-project?rev=104490&view=rev
Log:
Port commit 103976 (void) from llvm-gcc:
Turn on "--disable-non-leaf-fp-elim" if -momit-leaf-frame-pointer is specified.
Modified:
dragonegg/trunk/x86/llvm-target.h
Modified: dragonegg/trunk/x86/llvm-target.h
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/x86/llvm-target.h?rev=104490&r1=104489&r2=104490&view=diff
==============================================================================
--- dragonegg/trunk/x86/llvm-target.h (original)
+++ dragonegg/trunk/x86/llvm-target.h Mon May 24 08:00:29 2010
@@ -364,25 +364,30 @@
((!nm || ISDIGIT (*nm)) ? reg_names[REG_NUM] : nm); })
/* Propagate code model setting to backend */
-#define LLVM_SET_MACHINE_OPTIONS(argvec) \
- switch (ix86_cmodel) { \
- default: \
- sorry ("code model %<%s%> not supported yet", ix86_cmodel_string); \
- break; \
- case CM_SMALL: \
- case CM_SMALL_PIC: \
- argvec.push_back("--code-model=small"); \
- break; \
- case CM_KERNEL: \
- argvec.push_back("--code-model=kernel"); \
- break; \
- case CM_MEDIUM: \
- case CM_MEDIUM_PIC: \
- argvec.push_back("--code-model=medium"); \
- break; \
- case CM_32: \
- argvec.push_back("--code-model=default"); \
- break; \
- }
+#define LLVM_SET_MACHINE_OPTIONS(argvec) \
+ do { \
+ switch (ix86_cmodel) { \
+ default: \
+ sorry ("code model %<%s%> not supported yet", \
+ ix86_cmodel_string); \
+ break; \
+ case CM_SMALL: \
+ case CM_SMALL_PIC: \
+ argvec.push_back("--code-model=small"); \
+ break; \
+ case CM_KERNEL: \
+ argvec.push_back("--code-model=kernel"); \
+ break; \
+ case CM_MEDIUM: \
+ case CM_MEDIUM_PIC: \
+ argvec.push_back("--code-model=medium"); \
+ break; \
+ case CM_32: \
+ argvec.push_back("--code-model=default"); \
+ break; \
+ } \
+ if (TARGET_OMIT_LEAF_FRAME_POINTER) \
+ argvec.push_back("--disable-non-leaf-fp-elim"); \
+ } while (0)
#endif /* LLVM_TARGET_H */
More information about the llvm-commits
mailing list