[fortran,patch] Fix PR 36186, wrong handling of BOZ in CMPLX

FX fxcoudert@gmail.com
Sun May 11 22:42:00 GMT 2008


Attached patch fixes handling of BOZ in CMPLX, DCMPLX and COMPLEX:  
when they're not simplified (for example because only *one* arg is a  
constant or BOZ), the one argument that's a BOZ is then never  
converted. This now takes place in the simplification routine, before  
bailing out, because it's the simplest place to do so. Due to that,  
we also accepted invalid too-large BOZ.

Bootstrapped and regtested on x86_64-linux, coming with two  
testcases. OK to commit?

FX


-- 
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36186.ChangeLog
Type: application/octet-stream
Size: 387 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080511/5ad7757b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36186.diff
Type: application/octet-stream
Size: 4425 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080511/5ad7757b/attachment-0001.obj>


More information about the Fortran mailing list