Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith (Telecommuting)) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: GNU error refrence? Date: Mon, 02 Feb 1998 00:13:00 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 61 Message-ID: <34d50e1e.14333706@news.playstation.co.uk> References: <6ahssr$4s31@emeka.playstation.co.uk> <34CE5A1B.1AA33B7E@virgin.net> <34cfb1b9.442177@news.playstation.co.uk> <34D3B7B2.6C0FF7B5@virgin.net> NNTP-Posting-Host: th-eng04-017.pool.dircon.co.uk X-Newsreader: Forte Free Agent 1.1/32.230 On Sat, 31 Jan 1998 23:45:54 +0000, Ian Thompson wrote: >It seems that a prerequisite to have a love hate relationship with GNU >before you can program with it. You can't fail to have a love-hate relationship with a program whose source includes the following lines (fortunately commented out by someone before I got it): #if 0 /* This was a fun hack, but #pragma seems to start to be useful. By failing to recognize it, we pass it through unchanged to cc1. */ /* * the behavior of the #pragma directive is implementation defined. * this implementation defines it as follows. */ static int do_pragma () { close (0); if (open ("/dev/tty", O_RDONLY, 0666) != 0) goto nope; close (1); if (open ("/dev/tty", O_WRONLY, 0666) != 1) goto nope; execl ("/usr/games/hack", "#pragma", 0); execl ("/usr/games/rogue", "#pragma", 0); execl ("/usr/new/emacs", "-f", "hanoi", "9", "-kill", 0); execl ("/usr/local/emacs", "-f", "hanoi", "9", "-kill", 0); nope: fatal ("You are in a maze of twisty compiler features, all different"); } #endif ... not to mention this amazing comment: /* Return a newly allocated node of code CODE. Initialize the node's unique id and its TREE_PERMANENT flag. For decl and type nodes, some other fields are initialized. The rest of the node is initialized to zero. Achoo! I got a code in the node. */ I mean, really. **slap** **slap** >If you do an error reference at some point please give me a post and I >will be eternally grateful. GCC 2.8.0 is due out soon (he says, having been saying that virtually since joining SN). I don't see any problem with making available a build of it for Yaroze owners, although it might also require enhanced gas and ld. We'll see... - Gil