[Patch, Fortran] PR31917 - fix GFORTRAN_CONVERT_UNIT support

Tobias Burnus burnus@net-b.de
Mon May 14 19:01:00 GMT 2007


:ADDPATCH fortran:

Test case, see: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31917
To test it, try some settings following
http://gcc.gnu.org/onlinedocs/gfortran/GFORTRAN_005fCONVERT_005fUNIT.html

Setting the default conversion via the GFORTRAN_CONVERT_UNIT environment
variable was not possible. The problem is that  do_parse() was using its
own private "def" variable instead of the global one. In addition, it
was only set for GFORTRAN_CONVERT_UNIT="<convert>;" without the
semicolon, it was ignored.

GFORTRAN_CONVERT_UNIT supports exceptions of the kind: "<convert>:<unit
range>", however, for the exceptions only little_endian and big_endian
was supported not NATIVE or SWAP.

Build and  regression tested on  x86_64-unknown-linux-gnu.

Ok for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert.diff
Type: text/x-patch
Size: 1101 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070514/dc2a8d93/attachment.bin>


More information about the Fortran mailing list