This is the mail archive of the gcc-help@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: Help with 2 simple questions


This was mainly for compatibility reasons with some very old compilers
on very old machine, where int1's went for 0 to 256 (before C existed).




On Tue, 2001-11-06 at 17:32, Toon Moene wrote:
> Hassan Aurag wrote:
> 
> >  1- Is there a mailing list for g77, where I can send such things?
> 
> This list is certainly OK for that.
> 
> >  2- Is there a way to make, under g77, integer*1 unsigned? Using the
> > -funsigned-char and -funsigned-bitfields options of gcc (not g77) does
> > not do anything, even though they are supposed to do it for C code. If
> > not, is there a way one can tweak compiler for this?
> 
> INTEGER*1 is signed because INTEGERs are signed in Fortran.  There is no
> option to change this behaviour.  It's also not simple to change the
> compiler to assume INTEGER*1 is unsigned while the other INTEGERs remain
> signed.
> 
> Note that the bit intrinsics (IOR, IAND, ISHFT, etc.), standardwise,
> operate as if the bit-values of the underlying INTEGERs are unsigned.
> 
> Hope this helps,
> 
> -- 
> Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
> Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
> Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
> Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



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