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

            Bug ID: 70027
           Summary: invalid assembly syntax generated with -fno-plt
                    -masm=intel
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: assemble-failure
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
            Target: x86_64-pc-linux-gnu

Created attachment 37831
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37831&action=edit
reduced testcase

Output:
$ gcc -fno-plt -masm=intel testcase.c
/tmp/cckdJgTM.s: Assembler messages:
/tmp/cckdJgTM.s:15: Error: bad expression
/tmp/cckdJgTM.s:15: Error: junk `bar@GOTPCREL(%rip)' after expression

@@ -12,7 +12,7 @@
        mov     rbp, rsp
        .cfi_def_cfa_register 6
        mov     edi, 123
-       call    *bar@GOTPCREL(%rip)
+       call    [rip+bar@GOTPCREL]
        nop
        pop     rbp
        .cfi_def_cfa 7, 8

fixes the assembly

Reply via email to