[llvm-commits] [llvm-gcc-4.2] r51625 - /llvm-gcc-4.2/trunk/gcc/opts.c
Evan Cheng
evan.cheng at apple.com
Tue May 27 17:39:29 PDT 2008
Author: evancheng
Date: Tue May 27 19:39:29 2008
New Revision: 51625
URL: http://llvm.org/viewvc/llvm-project?rev=51625&view=rev
Log:
Disable a gcc hack which unset optimize_size when optimization level is -Os not -Oz for llvm.
Modified:
llvm-gcc-4.2/trunk/gcc/opts.c
Modified: llvm-gcc-4.2/trunk/gcc/opts.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/opts.c?rev=51625&r1=51624&r2=51625&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/opts.c (original)
+++ llvm-gcc-4.2/trunk/gcc/opts.c Tue May 27 19:39:29 2008
@@ -779,8 +779,12 @@
flag_strict_aliasing = saved_flag_strict_aliasing;
/* APPLE LOCAL end AV 3846092 */
/* APPLE LOCAL begin 4224227, 4231773 */
+ /* LLVM LOCAL begin */
+#ifndef ENABLE_LLVM
if (!optimize_size_z)
optimize_size = 0;
+#endif
+ /* LLVM LOCAL end */
/* APPLE LOCAL end 4224227, 4231773 */
}
More information about the llvm-commits
mailing list