The expansion of I8/U8 loads is broken for -mcmodel=medium:

Executing on host: openf90 ./gfortran.dg/bug736.f   -O0  -mcmodel=medium   -lm  
 -o ./bug736.exe    (timeout = 300)
/tmp/dgilmore/cco.jUK4px: In function `MAIN__':
/scratch/dgilmore/sanity/test/testsuite/bug736.f:17: relocation truncated to 
fit: R_X86_64_32S against symbol `foo2_' defined in COMMON section in 
/tmp/dgilmore/cco.jUK4px
/scratch/dgilmore/sanity/test/testsuite/bug736.f:24: relocation truncated to 
fit: R_X86_64_32S against symbol `foo2_' defined in COMMON section in 
/tmp/dgilmore/cco.jUK4px
collect2: ld returned 1 exit status

The existing logic prevents movabs instructions from being generated for I8/U8 
using symbol references, the patch addresses this issue.

The test and patch is attached to the email.

When a gatekeeper has the chance could they review/approve the change?

Thanks,

Doug

Attachment: bug736.f
Description: bug736.f

Attachment: bug736.patch
Description: bug736.patch

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to