[FFmpeg-trac] #4474(build system:new): Some inline asm code does not compile on Haiku 32-bit with GCC 4

FFmpeg trac at avcodec.org
Sun Apr 12 00:53:52 CEST 2015


#4474: Some inline asm code does not compile on Haiku 32-bit with GCC 4
-------------------------------------+-------------------------------------
             Reporter:  Timothy_Gu   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  build
              Version:  git-master   |  system
             Keywords:  haiku        |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Timothy_Gu):

 Update: `-fno-PIC` does NOT fix the problem when it is used in configure,
 but when it is used with `make`. This is because when it is used in
 configure `HAVE_7REGS` is defined, which doesn't work.

 For the EBP test, it does not compile with `gcc`:

 {{{
 bp cannot be used in asm here
 }}}

 But FFmpeg automatically adds `-fomit-frame-pointer`, which allows it to
 compile, and generate the following asm:

 {{{
 foo:
     pushl          %ebp
     subl      $16, %esp
     movl       $0, 12(%esp)
 /APP
  # 7 "test.c" 1
     xorl     %ebp, %ebp
  # 0 "" 2
 /NO_APP
     movl 12(%esp), %eax
     addl      $16, %esp
     popl           %ebp
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4474#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list