search for: optimize_option

Displaying 20 results from an estimated 44 matches for "optimize_option".

2009 May 08
2
[LLVMdev] Darwin option processing
...+ endif + endif # Darwin requires -fstrict-aliasing to be explicitly enabled. # Avoid -fstrict-aliasing on Darwin for now, there are unresolved issues @@ -252,8 +259,8 @@ #ifeq ($(OS),Darwin) # EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing #endif - CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) - C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) + CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) $(DynamicNoPic) + C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) $(DynamicNoPic) LD.Flags += $(OPTIMIZE_OPTION) else BuildMode := Debug Thoughts?
2007 Jul 10
1
[LLVMdev] [PATCH] gprof needs symbols
I needed the following patch to be able to use gprof with profiled build. regards, Benoit --- a/Makefile.rules (revision 37946) +++ b/Makefile.rules (working copy) @@ -212,6 +212,7 @@ CXX.Flags := $(OPTIMIZE_OPTION) -pg -g C.Flags := $(OPTIMIZE_OPTION) -pg -g LD.Flags := $(OPTIMIZE_OPTION) -pg -g + KEEP_SYMBOLS := 1 else ifeq ($(ENABLE_OPTIMIZED),1) BuildMode := Release
2009 May 08
0
[LLVMdev] Darwin option processing
On May 7, 2009, at 6:24 PM, Mike Stump wrote: > I'm toying with building with -mdynamic-no-pic, but for this to work, > the shared library bits in llvm can't be built with that flag. Hi Mike, If you're doing this for Clang's benefit, I think the best thing to do is to compile LLVM PIC (the default) and then build the clang front- end pieces with -mdynamic-no-pic. Does
2009 May 08
0
[LLVMdev] Darwin option processing
...rwin requires -fstrict-aliasing to be explicitly enabled. > # Avoid -fstrict-aliasing on Darwin for now, there are unresolved > issues > @@ -252,8 +259,8 @@ > #ifeq ($(OS),Darwin) > # EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing > #endif > - CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) > - C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) > + CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) $(DynamicNoPic) > + C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer) $(DynamicNoPic) > LD.Flags += $(OPTIMIZE_OPTION) > else > BuildMo...
2009 May 08
2
[LLVMdev] Darwin option processing
I'm toying with building with -mdynamic-no-pic, but for this to work, the shared library bits in llvm can't be built with that flag. I've found that: Index: Makefile.rules =================================================================== --- Makefile.rules (revision 71041) +++ Makefile.rules (working copy) @@ -472,6 +476,9 @@ ifneq ($(DARWIN_MAJVERS),4) LD.Flags += $(RPATH)
2007 Sep 20
1
[LLVMdev] Valgrind Help Needed
On Sep 19, 2007, at 5:41 PM, Devang Patel wrote: > On Sep 19, 2007, at 4:48 PM, Bill Wendling wrote: > > In llvm-backend.cpp : > > 1086 if (GV->getName() != Name) { > 1087 Function *F = TheModule->getFunction(Name); > 1088 assert(F && F->isDeclaration() && "A function turned > into a global?"); > 1089
2011 Dec 13
5
[LLVMdev] make check-all failing 18 tests with --enable-optimized
As part of our automated testing, I'm running make check-all to watch for failures. One of my builds uses the --enable-optimized option to configure. When I build the latest trunk, I'm now seeing 18 failing tests: Clang :: Preprocessor/macro_paste_c_block_comment.c LLVM :: CodeGen/ARM/2011-05-04-MultipleLandingPadSuccs.ll LLVM :: CodeGen/ARM/2011-11-14-EarlyClobber.ll LLVM
2008 Feb 20
2
[LLVMdev] Problems building LLVM 2.2 for ARM
...ed --enable-optimized I could reproduce, but overcome the problems described in dox regarding optimized built: """ GCC 3.4.4 (CodeSourcery ARM 2005q3-2): this compiler miscompiles LLVM when building with optimizations enabled. It appears to work with "make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1" or build a debug build. http://www.llvm.org/docs/GettingStarted.html#brokengcc """ by just going to problematic dirs llvm-2.2/lib/CodeGen/SelectionDAG lib/Target/PowerPC and do make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1 -- However, much later, the build stops with...
2012 May 01
0
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
On Tue, 2012-05-01 at 16:06 -0500, Hal Finkel wrote: > LLVM/clang now will build in the normal way (./configure; make install) > on PPC (you'll need at least the 3.1 release candidate (or trunk)). I > generally build on my PPC64 hosts with: > make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O2 EXTRA_OPTIONS=-mminimal-toc Ok, it built fine, but what is the llvm equivalent of gcc's -m32 -m64? Google doesn't seem to be much help, nor is the clang --help output. Peter
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
...6 miscompiles portions of the code generator, causing an infinite loop in the llvm-gcc build when built with full optimizations enabled (i.e. a release build). The workaround is to use -O2 instead of -O3 as optimization level, which has been set." activate OPTIMIZE_OPTION=-O2 3.4.4) if arch = arm then warning "gcc 3.4.4 for ARM (CodeSourcery ARM 2005q3-2) miscompiles LLVM when building with full optimizations enabled. The workaround is to use -O1 instead of -O3 as optimization level, which has been set." activate O...
2012 May 01
2
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
...r ppc/ppc64 and that > you had to use llvm-gcc thingy. Is that not the case anymore? LLVM/clang now will build in the normal way (./configure; make install) on PPC (you'll need at least the 3.1 release candidate (or trunk)). I generally build on my PPC64 hosts with: make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O2 EXTRA_OPTIONS=-mminimal-toc Thanks again, Hal > > Peter > > > > -- Hal Finkel Postdoctoral Appointee Leadership Computing Facility Argonne National Laboratory
2006 Nov 09
0
[LLVMdev] datapoint for recent llvm-gcc4 build failures
...> /usr/src/llvm/llvm-gcc4/gcc/crtstuff.c:314: internal compiler error: Aborted > <<< > Hi Andrew, I too ran into this bug, which can be sidestepped by building LLVM with optimisation at the -O2 level (rather than the default -O3). My make command was: make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION='-O2 -g' tools-only I was trying to track down the cause of the bug, but haven't had success yet. Hope this is useful. Cheers, Warren
2008 Mar 21
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
I recommend you don't parse version strings. In fact I switch the check to use AC_COMPILE precisely for the reason that gcc --version is totally unreliable and vendor specific. For example, what's the regular expression that tells you what the GCC version is: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3) Per the rest of this thread, you can't
2007 Oct 28
0
[LLVMdev] link errors on ARM with GCC 3.4.4
...version 4 vs version 0) so > upgrading is out of question > > thanks in advance, > \pd\ > I knew it, I should have tried harder... it's clearly an optimization bug in gcc, using -O2 still exhibits the same behavior, but I can now build successfully with make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1 (tried both 2.1 and trunk/) the debug version seems to build fine as well (albeit I didn't wait for it to complete and killed make after about half an hour) maybe an update to http://llvm.org/docs/GettingStarted.html#brokengcc is necessary ? (ARM developers use CodeSourcery's toolcha...
2010 Feb 21
1
[LLVMdev] Possibly using a broken version of GCC to build LLVM (file won't finish compiling).
>From a cached version of the Getting Started Guide, I have found: "GCC 3.4.4 (CodeSourcery ARM 2005q3-2): this compiler miscompiles LLVM when building with optimizations enabled. It appears to work with "make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1" or build a debug build." I'm trying that now. -Puyan On Sun, Feb 21, 2010 at 1:22 AM, Rajika Kumarasiri <rajika at wso2.com> wrote: > > Puyan, > There is a doc on the document page which describe the list of broken GCCs. You'll need to check it once the do...
2008 Mar 30
0
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
...right (the actual binaries are in the 'bin' subdirectory). I don't think --enable-checking should be necessary, I had llvm ./configure'd with --enable-optimized (I hope that's the same as specifying ENABLE_OPTIMIZED=1 during the 'make' run for LLVM proper). Trying with OPTIMIZE_OPTION=-O2 didn't help. Anything else I may have overlooked? Regards, Jo P.S.: Rerunning the failing command with -v gave me GNU C version 4.2.1 (Based on Apple Inc. build 5555) (LLVM build) (i686-pc-linux-gnu) compiled by GNU C version 4.2.1 (Ubuntu 4.2.1-5ubuntu4). so it seems to call...
2007 Aug 22
2
[LLVMdev] llvm-gcc-4.0 compilation erros
...below. The machine that the compilation failed on is running Fedora Core 4. The processor is a AMD Athlon(tm) 64 Processor 3700+. The version of gcc I have on the machine is 4.0.2. I tried configuring with both the --disable-shared and --disable-multilib options. I also tried doing a make OPTIMIZE_OPTION=-O2 as was suggested in the README.LLVM file. Does anyone have any ideas on what the problem is? Any help would be greatly appreciated. Thanks, Ryan ----------- compilation errors ------------------ /home/crhc3/lefever/llvm/cvs-070820/llvm-gcc-4.0_obj/gcc/xgcc -shared-libgcc -B/home/crhc3/l...
2012 May 01
4
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
...Tue, 2012-05-01 at 16:06 -0500, Hal Finkel wrote: > > LLVM/clang now will build in the normal way (./configure; make > > install) on PPC (you'll need at least the 3.1 release candidate (or > > trunk)). I generally build on my PPC64 hosts with: > > make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O2 > > EXTRA_OPTIONS=-mminimal-toc > > Ok, it built fine, but what is the llvm equivalent of gcc's -m32 -m64? > Google doesn't seem to be much help, nor is the clang --help output. Noted, we should fix that as well. By default it should build for whatever the current host...
2007 Oct 27
2
[LLVMdev] link errors on ARM with GCC 3.4.4
hi, I've been trying to avoid spamming the list but I don't know where else to bang my head using the latest trunk and 2.1, I always get this: llvm[2]: Linking Release executable tblgen (without symbols) /targets/SDK_BETA_ARMEL/mnt/shared/repos/svn/llvm/llvm-project/llvm/trunk/utils/TableGen/Release/InstrInfoEmitter.o:(.rodata._ZTVN4llvm4UserE[vtable for llvm::User]+0x10): undefined
2007 Oct 26
0
[LLVMdev] llvm-build for ARM
...is is gcc crashing. Can you try upgrade / downgrade to a different version of gcc? Also, you can do make VERBOSE=1 to see how it is crashing. You can then produce a preprocessed file and submit the report to the gcc mailing list. For now, I would suggest you go to Makefile.rules and change OPTIMIZE_OPTION from -O3 to -O2. If you are lucky that will allow it to get past this crash. Evan > > And with llvm-gcc the first issue is when i give the obj dir path > of the llvm with --enable-llvm option always it says "Please give > the correct path to LLVM DIR" > > and if...