Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Sean Callahan 5-3309
Wed, 29 Jul 1992 15:42
protoize bug ... sorry my error. Retract bug report.
Author: 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
>
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads