Article View: gnu.gcc.bug
Article #315protoize bug ... sorry my error. Retract bug report.
From: Sean Callahan 5-3309
Date: Wed, 29 Jul 1992 15:42
Date: Wed, 29 Jul 1992 15:42
52 lines
1805 bytes
1805 bytes
A combination of a #ifdef along with my incorrect usage of the protoize
-c option explains the below problem. Sorry for any inconvenience!
Sean Callahan
Forwarded message:
> From seanc Tue Jul 28 16:24:46 1992
> Subject: protoize bug
> To: bug-gcc@prep.ai.mit.edu
> Date: Tue, 28 Jul 92 16:24:46 PDT
> X-Mailer: ELM [version 2.3 PL0]
>
>
> I have an approximately 2000 line C sourcefile. It has a globally scoped
> external variable defined in the file as shown below.
>
> AllIntersect CMAISP;
>
> where AllIntersect is defined in an included header file as
>
> typedef struct AllIntersect AllIntersect;
>
> struct AllIntersect {
> IheaderP head, tail;
> int total;
> int total_headers;
> };
>
> CMAISP is used throughout the file over 100 times. No errors are reported
> until line 1508 where protoize complains that
>
> `CMAISP' undeclared (first use this function)
>
> and protoize fails.
>
> I can fix the problem by inserting
>
> extern AllIntersect CMAISP;
>
> above the function where the complaints begin...but that is obviously
> not acceptable. I am converting a program consisting of 60 large
> source files!
>
> If you can be of any help I would greatly appreciate it!
>
> The version is 2.2.2.2
>
> Thankyou,
> Sean Callahan
> seanc@atc.boeing.com
>
>
Technical Details
Message-ID:
<9207291543.AA00901@espresso.bcs.eca>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!espresso.boeing.COM!seancShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!espresso.boeing.COM!seanc From: seanc@espresso.boeing.COM (Sean Callahan 5-3309) Subject: protoize bug ... sorry my error. Retract bug report. Message-ID: <9207291543.AA00901@espresso.bcs.eca> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 29 Jul 1992 15:42:59 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 54