------- Comment #2 from burnus at gcc dot gnu dot org  2009-02-13 15:11 -------
Note: Moving main() to f951 will break programs which assume that MAIN__ will
be called, compile e.g. the following program with gcc:
-------------------
#include <stdio.h>
int MAIN__( int argc, char* argv[] )
{printf("argc is %i:0 %s\n", argc,argv[0]);
 printf("argc is %i:1 %s\n", argc,argv[1]);
return(0);}
-------------------
and link it with gfortran. If you run it, MAIN__ will be executed and by some
magic the arguments are passed to MAIN__.  (That the arguments are available is
a complete puzzle to me.) -- Found in c.l.f thread linked above.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39178

Reply via email to