This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, gfortran] Add BYTE type
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: Asher Langton <langton2 at llnl dot gov>, fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Aug 2005 12:41:35 -0700
- Subject: Re: [PATCH, gfortran] Add BYTE type
- References: <p06210203bf1db9bf62d3@[128.115.19.2]> <42F8D616.5070907@gmail.com>
On Tue, Aug 09, 2005 at 06:13:10PM +0200, FX Coudert wrote:
> >This patch adds a BYTE type to gfortran (enabled by -fbyte-type). This
> >is just treated as an INTEGER(1), and is for compatibility with old
> >non-standard Fortran codes. (This type is enabled by default in ifort,
> >pgf90, and xlf90.)
>
> I have the few following comments (in decreasing order of importance):
>
> * BYTE is supported by g77; so I think we shouldn't add a special
> -fbyte-type but include it by default as GFC_STD_GNU or GFC_STD_LEGACY.
>
I agree with this and ould suggest GFC_STD_GNU as the proper
flag for backwards compatibility with g77. One advantage
of this change is the patch should be much smaller.
--
Steve