Article View: gnu.gcc.help
Article #51453problems /w -O and -O2 /w gcc-2.3.3
From: Walter Wolfgang
Date: Tue, 18 May 1993 11:38
Date: Tue, 18 May 1993 11:38
9 lines
1758 bytes
1758 bytes
I'm working with Linux 0.99.9, libc 4.3.3, gcc 2.3.3, gas 1.38 on a 486-50, 16MB Ram. I have a manual page (from groff 1.07) which I couldn't display with xman because xman died due to a segmentation fault. It wasn't important if this manual page was formated compressed, only formated or not formated at all. So I recompiled the xman sources (from MIT), but I got the same error. Therefore I compiled it again without -O or -O2 (but still with shared libs): now all worked fine. So I compiled it again using -g and -O. With gdb I detected that it crashed executing just 'normal' code, I mean no system call, only addition, pointer reference. As the real error could be elsewhere and I am not very experienced with gdb and 486 assembler, I would be very glad if somebody could explain me why I can't use -O or -O2 and optimize the code. If somebody wants to help me, please mail me, I'll send you the manual-page and my xman sources and everything else you may need. Wolfgang walterw@mathematik.tu-muenchen.de
Technical Details
Message-ID:
<1993May18.113846.24056@Informatik.TU-Muenchen.DE>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!walterwShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d619521c7ab175b4,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-05-18 04:42:29 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!wupost!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!walterw From: walterw@Informatik.TU-Muenchen.DE (Walter Wolfgang) Subject: problems /w -O and -O2 /w gcc-2.3.3 Keywords: -O, -O2 Originator: walterw@sunbulirsch9.mathematik.tu-muenchen.de Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Technische Universitaet Muenchen, Germany Date: Tue, 18 May 1993 11:38:46 GMT Message-ID: <1993May18.113846.24056@Informatik.TU-Muenchen.DE> Lines: 10