https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69061
Bug ID: 69061 Summary: gfortran not using appropriate memory space for ( architecture x86_64 Darwin ) Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: testuser021845 at gmail dot com Target Milestone: --- Created attachment 37137 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37137&action=edit This is a fortran program that can produce the bug. Dear All: I am not a computer scientist. I apologize for any limitation in my understanding during this bug report. I appreciate gcc and gfortran developers. Thank you for years of providing me with compilers and other tools. I am a physical scientist. My code is not compiling. I am using a MacBookPro with Mavericks. The uname response is: Darwin mbp.home 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64 Here is the invocation and the result: gfortran TEST_CASE.F03 -o test.x final section layout: __TEXT/__text addr=0x1000014D2, size=0x0000190E, fileOffset=0x000014D2, type=1 __TEXT/__stubs addr=0x100002DE0, size=0x0000003C, fileOffset=0x00002DE0, type=28 __TEXT/__stub_helper addr=0x100002E1C, size=0x00000074, fileOffset=0x00002E1C, type=32 __TEXT/__cstring addr=0x100002E90, size=0x0000000E, fileOffset=0x00002E90, type=13 __TEXT/__const addr=0x100002EA0, size=0x000000C8, fileOffset=0x00002EA0, type=0 __TEXT/__eh_frame addr=0x100002F68, size=0x00000090, fileOffset=0x00002F68, type=19 __DATA/__nl_symbol_ptr addr=0x100003000, size=0x00000010, fileOffset=0x00003000, type=29 __DATA/__la_symbol_ptr addr=0x100003010, size=0x00000050, fileOffset=0x00003010, type=27 __DATA/__data addr=0x100003060, size=0x00000008, fileOffset=0x00003060, type=0 __DATA/__bss5 addr=0x100003068, size=0x00000000, fileOffset=0x00000000, type=25 __DATA/__huge addr=0x100003080, size=0x1D5547000, fileOffset=0x00000000, type=25 ld: 32-bit RIP relative reference out of range (5624320835 max is +/-4GB): from _MAIN__ (0x1000014D2) to _pxz.3401 (0x24F3C8080) in '_MAIN__' from /var/folders/rl/_4n9h0mj0yz05b_xdsrjq6f00000gn/T//cc27pzQo.o for architecture x86_64 collect2: error: ld returned 1 exit status The attached program TEST_CASE.F03 can be compiled on a local system. There is a parameter currently set as 520 which can be changed. If this parameter is set to less than about 350 on my computer, it will compile. I want to set it to 800 or so. This is just a snippet of my code that has been compiling and running correctly with really old copies of gfortran. These copies also did not have the DO CONCURRENTLY. The GCC version is 5.3.0. I compiled it yesterday. Again, thank you for gnu compilers and tools.