RE: [Anjuta-list] Optimization won't turn off
- From: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- To: "Levi, Segev" <Segev Levi comverse com>
- Cc: Anjuta List <anjuta-list lists sourceforge net>
- Subject: RE: [Anjuta-list] Optimization won't turn off
- Date: Tue Nov 27 03:08:02 2001
A temporary solution would be to add the line 'export CFLAGS=-O0' to
your .bashrc file. Or, from command line, run 'CFLAGS=-O0 ./autogen.sh'.
Basically, if your CFLAGS is set before autogen.sh or configure is
called, the flags specified are used instead.
Maybe Anjuta should have an option to set additional environment
variables like CFLAGS, etc. before running autogen ?
Regards.
Biswa.
On Tue, 2001-11-27 at 15:06, Levi, Segev wrote:
> Hi Biswa,
>
> Thanks for your prompt reply.
>
> Well, yes I tried setting CFLAGS (and also CXXFLAGS or whatever it was
> there, I don't remember right now) and it did not help. The O2 flag is still
> there.
>
> I also checked what you said about F9 and you are correct. This one works.
> It does not use the O2 parameter.
> The only problem is that does not help me. I would not like to compile one
> file at a time.
>
> I encountered the problem when using 'Build' and 'Build All' (F10 and F11).
> Using these options (which I think you'll agree, are VERY important) the O2
> option is still there. Not only that, I tried messing with the CFLAGS and
> CXXFLAGS (C++ flags) and I reached the conclusion that it does not use these
> settings when I press F10 or F11 (Build and Build All). It was the same
> command line every time I tried, no matter what I put there.
>
> Please, help, this is very important. I must have the option to debug every
> line of code.
>
> Thanks again for your help so far...
>
> Segev.
>
> -----Original Message-----
> From: Biswapesh Chattopadhyay [mailto:biswapesh_chatterjee tcscal co in]
> Sent: Tuesday, November 27, 2001 10:38 AM
> To: Levi, Segev
> Cc: Anjuta List
> Subject: Re: [Anjuta-list] Optimization won't turn off
>
>
> Odd, I went to Settings->Compiler & Linker Settings->Optimization and
> set it to 'No optimization' - subsequent compiles (using F9) don't have
> the O2 flag. So must be a bug in the Makefile generation part - not the
> settings part.
>
> Have you tried setting CFLAGS to '-O0' in teh environment ?
>
> Regards.
> - Biswa.
>
> On Tue, 2001-11-27 at 13:54, Levi, Segev wrote:
> > Hi all,
> >
> > I had a problem with the debugger (the compiler actually). I installed it
> on
> > my system here, RH - 7.1 kernel 2.4.2-2. I specified NO OPTIMIZATION to
> the
> > compiler.
> >
> > The problem is that even then, the MakeFile still includes the -O2 switch.
>
> > This causes the compiler to make optimizations and hence the debugging is
> > not good enough.
> > When edited the MakeFile everything worked well, but when re-generating
> them
> > (and this is something we'll have to do) the -O2 switch appears again.
> > Please let me know how can I remove the optimization using the normal
> > process (i.e. the GUI).
> >
> > I used version 0.1.7
> >
> > I already downloaded the cvs version (from October 25) compiled and
> > installed it and still the problem exists.
> >
> > I'd really appreciate some help regarding this issue.
> >
> > Thanks in advance,
> >
> > Segev Levi
> > MARS (MMU-NG) Open Platform Team Leader
> > Trilogue & MultiMedia Division Comverse
> > Tel: +972-3-7655497
> > Fax: +972-3-6458923
> > mailto:Segev Levi comverse com
> >
> >
> >
> > _______________________________________________
> > Anjuta-list mailing list
> > Anjuta-list lists sourceforge net
> > https://lists.sourceforge.net/lists/listinfo/anjuta-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]