home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gcc / bug / 2012 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.7 KB  |  67 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!usc!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!espresso.boeing.COM!seanc
  3. From: seanc@espresso.boeing.COM (Sean Callahan 5-3309)
  4. Subject: protoize bug ... sorry my error. Retract bug report.
  5. Message-ID: <9207291543.AA00901@espresso.bcs.eca>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 29 Jul 1992 15:42:59 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 54
  12.  
  13. A combination of a #ifdef along with my incorrect usage of the protoize 
  14. -c option explains the below problem. Sorry for any inconvenience!
  15.  
  16. Sean Callahan
  17.  
  18. Forwarded message:
  19. > From seanc Tue Jul 28 16:24:46 1992
  20. > Subject: protoize bug
  21. > To: bug-gcc@prep.ai.mit.edu
  22. > Date: Tue, 28 Jul 92 16:24:46 PDT
  23. > X-Mailer: ELM [version 2.3 PL0]
  24. > I have an approximately 2000 line C sourcefile. It has a globally scoped 
  25. > external variable defined in the file as shown below.
  26. > AllIntersect CMAISP;
  27. > where AllIntersect is defined in an included header file as
  28. > typedef struct AllIntersect AllIntersect;
  29. > struct AllIntersect {
  30. >     IheaderP head, tail;
  31. >     int total;
  32. >     int total_headers;
  33. > };
  34. > CMAISP is used throughout the file over 100 times. No errors are reported 
  35. > until line 1508 where protoize complains that 
  36. > `CMAISP' undeclared (first use this function)
  37. > and protoize fails.
  38. > I can fix the problem by inserting 
  39. > extern AllIntersect CMAISP; 
  40. > above the function where the complaints begin...but that is obviously
  41. > not acceptable.  I am converting a program consisting of 60 large 
  42. > source files!
  43. > If you can be of any help I would greatly appreciate it!
  44. > The version is 2.2.2.2
  45. > Thankyou,
  46. > Sean Callahan
  47. > seanc@atc.boeing.com
  48.  
  49.  
  50.