Article View: gnu.gcc.help
Article #50099gcc 2.4.5 problems
From: Daniel Carroll
Date: Tue, 23 Nov 1993 06:26
Date: Tue, 23 Nov 1993 06:26
27 lines
1862 bytes
1862 bytes
I am trying to compile gcc-2.4.5 on a 3b2/500 system, and when I get to the second (and/or third) stage, if I compile with CFLAGS="-O" (optimization), then whenever genattr.c is compiled into an executable, it core dumps after printing everyting out that it should. (The error message that is printed is: 'sh: 6797 EMT trap - core dumped') This problem occurs only when I use stage1/xgcc, stage2/xgcc or staged3/xgcc and compile it with optimization. After looking through the source file, after the last printf() statement (which does get printed, BTW), the next line is: 'exit (ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE);' which is the only place it could core dump. If I rewrite this line (for example, by replacing FATAL_EXIT_CODE with 33 (which is how it's defined in config.h) and replacing SUCCESS_EXIT_CODE by 0 (also defined in config.h that way)), then the program compiles and runs fine. Is this a bug in gcc-2.4.5? If so, is there a patch, and of not, could anyone tell me the newest version of gcc that they have successfully compiled on a 3b2? Any help would be appreciated. Thanks. Dan dan@tigger.cs.colorado.edu
Technical Details
Message-ID:
<CGxLvK.Ms4@cnsnews.Colorado.EDU>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!boulder!cnsnews!rintintin.Colorado.EDU!danShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,43abc6adf02ec46b,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-23 03:08:23 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!boulder!cnsnews!rintintin.Colorado.EDU!dan From: dan@rintintin.Colorado.EDU (Daniel Carroll) Subject: gcc 2.4.5 problems Message-ID: <CGxLvK.Ms4@cnsnews.Colorado.EDU> Sender: usenet@cnsnews.Colorado.EDU (Net News Administrator) Nntp-Posting-Host: rintintin.colorado.edu Organization: University of Colorado, Boulder Distribution: usa Date: Tue, 23 Nov 1993 06:26:08 GMT Lines: 27