This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: EGCS Optimisation??
- To: "Richard Lyon" <rlyon01 at ozemail dot com dot au>
- Subject: Re: EGCS Optimisation??
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Tue, 15 Dec 1998 00:28:30 -0600
- cc: gnu-win32 at cygnus dot com
"Richard Lyon" <rlyon01@ozemail.com.au> writes:
> Hi,
>
> I am working on porting the omnetpp discrete-event simulator to cygwin. The
> port is basically complete, with exception that some of the code won't
> compile correctly when I turn on compiler optimisations. The simulator
^^^^^^
(I'm assuming that you mean execute here).
> startup modules compile and run with option -O0. But, when I turn on the
> most basic optimisation -O1, the simulator executable dies with a status
> access violation exception. Quickly checking with gdb, shows that some code
> is running which should not be reachable. Manually
> selecting -fthread-jumps, -fdefer-pop -fomit-frame-pointer doe not causes
> any problems. I am using 20.1 on winnt 4.0 and SP4.
>
> When -O1 is selected, what other optimisations are turned on? The gcc info
> pages do not specify all
> optimisations that are activated by -O1.
There is always the chance that you're tweaking a bug in the optimizer,
but I strongly recommend that you first run your code through a memory
debugger (Purify is what I use, but ElectricFence can also help find most
of the usual problems) first.
If that doesn't show anything in your code, time to file a bug report.
Please see http://egcs.cygnus.com/faq.html#bugreport on how to do so.
I'll be willing to take a quick look if you can bundle it all up.
Regards,
Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".