This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: [BUG] g77 bug


>>>>> "Won" == Won Kyu Park <wkpark@chem.skku.ac.kr> writes:

 Won> I think...
 Won> G77 does not support 64-bit array reference indexing(?) yet.

I don't think that's anything to do with it.

 Won> What's wrong in g77 ?

Nothing in this case as far as I can see.

You won't like me saying so, but I'm afraid you should throw away code
using this horrible trick.

The C isn't standard-conforming the way it's doing pointer arithmetic.
Presumably g77 is allocating on the stack and f2c by default doesn't.
Also in general all bets are off if treating pointers as integers in
Fortran like that.

See the node `POINTER Statements' in the manual for some information
on pointers as integers if you must do it, but this may confuse the
optimizer -- see `Aliasing Assumed To Work'; anyone know if it will in
practice?


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