https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69061

Jack Howarth <howarth.at.gcc at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth.at.gcc at gmail dot com

--- Comment #3 from Jack Howarth <howarth.at.gcc at gmail dot com> ---
I can reproduce the linkage error when compiling the test case on both gfortran
5.3.0 and current 6.0svn without optimization flags or -O0. However, if pass
-O1/-O2/-O3/-Os/-Ofast, the linkage error disappears. The resulting executables
appear to run successfully on x86_64-apple-darwin15. Note that you can't resort
to -mcmodel=large as it will produce the linkage error...

$ gfortran-fsf-5 -O3 -mcmodel=large TEST_CASE.F03 -o test.x --save-temps
TEST_CASE.s:35:27: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_rand@PLTOFF, %rbp
                                 ^
TEST_CASE.s:38:19: error: invalid variant 'PLTOFF'
        movabsq $_memset@PLTOFF, %rbx
                         ^
TEST_CASE.s:146:16: error: invalid variant 'PLTOFF'
        movabsq $_exp@PLTOFF, %r14
                      ^
TEST_CASE.s:261:30: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_st_open@PLTOFF, %rax
                                    ^
TEST_CASE.s:319:31: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_st_write@PLTOFF, %rdx
                                     ^
TEST_CASE.s:328:42: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_transfer_real_write@PLTOFF, %r9
                                                ^
TEST_CASE.s:335:47: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_transfer_character_write@PLTOFF, %r10
                                                     ^
TEST_CASE.s:362:36: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_st_write_done@PLTOFF, %rdx
                                          ^
TEST_CASE.s:409:31: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_set_args@PLTOFF, %rax
                                     ^
TEST_CASE.s:417:34: error: invalid variant 'PLTOFF'
        movabsq $__gfortran_set_options@PLTOFF, %rax
                                        ^
Note that https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63793#c14 describes the
lack of support for @GOTOFF on darwin so @PLTOFF may be a similar situation.

Reply via email to