Article View: gnu.gcc.help
Article #52613gcc 2.2.2 fixincludes patches for #endif etc (patch)
From: Paul Eggert
Date: Mon, 29 Jun 1992 20:36
Date: Mon, 29 Jun 1992 20:36
31 lines
1751 bytes
1751 bytes
The gcc fixincludes script that I posted to gnu.gcc.help on June 15 fixes one problem too aggressively. The problem is that Sun's include files refer to symbols like `sun' and `sun3x' that should be spelled `__sun__' and `__sun3x__'. But the patch was too aggressive, because it also affected symbols like `sunwindow_attr_DEFINED' that should be left alone. As far as I know, this bug affects only old Sun windows applications. Here is a patch. If you call my June 15 posting version ``2.2.2.1'', this patch brings it up to version 2.2.2.2. =================================================================== RCS file: fixincludes,v retrieving revision 2.2.2.1 retrieving revision 2.2.2.2 diff -c2 -r2.2.2.1 -r2.2.2.2 *** fixincludes 1992/06/15 18:19:52 2.2.2.1 --- fixincludes 1992/06/29 19:47:44 2.2.2.2 *************** *** 159,163 **** s/ sony_news / __sony_news__ /g s/ sparc / __sparc__ /g ! s/ sun\([a-zA-Z0-9_]*\) / __sun\1__ /g s/ unix / __unix__ /g s/ vax / __vax__ /g --- 159,163 ---- s/ sony_news / __sony_news__ /g s/ sparc / __sparc__ /g ! s/ sun\([a-z0-9]*\) / __sun\1__ /g s/ unix / __unix__ /g s/ vax / __vax__ /g
Technical Details
Message-ID:
<bi_F+H6G@twinsun.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggertShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d5627524ba537dc4,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-06-29 06:02:24 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!usc!elroy.jpl.nasa.gov!ucla-cs!twinsun!eggert From: eggert@farside.twinsun.com (Paul Eggert) Subject: gcc 2.2.2 fixincludes patches for #endif etc (patch) Message-ID: <bi_F+H6G@twinsun.com> Sender: usenet@twinsun.com Nntp-Posting-Host: farside Organization: Twin Sun, Inc Date: Mon, 29 Jun 1992 20:36:24 GMT Lines: 31