This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc -gcoff 2nd try


Guy Harrison wrote :

>> On Wed, 28 Aug 2002 07:47:42 -0700, "Hans Horn" <hannes@2horns.com>
wrote:

>>>...my gcc version is 2.95.3-5.

>> Ditto. You may need to post tst.c - the symbol C_EFCN did not crop up in
>> my trivial "hello world" test app (ie compiled ok).

Guy, List,

here's tst.c (several flavors of it, that is):

// ************ version 1 ***********************
// foreward decl of foo()
// gcc -gcoff barfs with "C_EFCN symbol out of scope"
void foo();
int main(int argc, char **argv) {
  foo(); // gcc -gcoff does not barf when this call is commented out
  return 0;
}
void foo() {}

// ************ version 2 ***********************
// gcc -gcoff behaves
void foo() {}
int main(int argc, char **argv) {
  foo();
  return 0;
}

Note: there's no change in behaviour when I rename tst.c into tst.cpp!

H.





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]