Luiz, I guess you were saying "to not use -O3". Ok, I did not use it for debugging.
The problem is, I have a program which GPFs with -O3. But when I turn off this -O3, the program runs fine. That's why, I wanted to kill this optimation for certain files. But, I want to retain -O3 for the rest. I know, I can set another set of flags for that file, but it is to much, because the whole makefiles for other compilers should have that set of flags too. Too cumbersome, IMO. So if only I can turn-off the optimization directly written to the file, it will be very nice. Andi On Fri, 10 Aug 2012 09:18:50 -0300 Luiz Rafael Culik <l...@xharbour.com.br> wrote: > Andi > > if is for debugging, i suggest to now use -O3, just use -g3 in place > > Regards > Luiz > > > 2012/8/10 Andi Jahja <andi.ja...@yahoo.co.id> > > > Luiz, > > > > Do you know how to override GCC flags via program (include) files. > > > > For example: > > > > Given: I have a global optimization flags -O3 > > Wanted: For some files, I need to turn-off this -O3 > > Reason: Some programs do not like -O3 but I need -O3 as global flag. > > > > Via pragma? GCC supports pragmas? > > > > Thanks. > > > > Andi > > > > On Fri, 10 Aug 2012 00:07:02 -0300 > > "Luiz Rafael" <l...@xharbour.com.br> wrote: > > > > > Andi > > > > > > Simple > > > > > > compile all sources with -g3 > > > > > > link the app with -g3 > > > > > > gdb app.exe > > > run<enter> > > > bt<enter> > > > > > > Regards > > > Luiz > > > > > > -----Original Message----- > > > From: Andi Jahja > > > Sent: Thursday, August 09, 2012 11:01 PM > > > To: xHarbour Developers Mailing List > > > Subject: [xHarbour-developers] Debugging MinGW/GCC ? > > > > > > Hello, > > > > > > I need info how to debug MinGW application to trace GPF. > > > Anyone kind enough to give a quick highlight? > > > > > > Thank you. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers