[FFmpeg-devel] [PATCH 0/4] Some fixes for Sun Studio Express 11

Diego 'Flameeyes' Pettenò flameeyes
Thu Oct 2 18:54:32 CEST 2008


Today I worked a bit more on getting FFmpeg to build with Sun Studio
Express, so here come a few patches for that compiler too.

The thing that I dislike more is the -G option thing since it seems to
me like it's a bug in Sun Studio, but I don't think it's tremendously
bad to work it around this way.

I'll have more patches to shut some Sun Studio warnings up, but I'm
trying to clean up the queue of patches I've written before that.

---

Diego 'Flameeyes' Petten? (4):
      Include headers for optional libraries only when enabled.
      Check for bswap_64 definition even though byteswap.h is present.
      Use -G option instead of -shared for Sun Studio compiler.
      Check if the compiler supports the #warning directive before use.


 cmdutils.c                                    |    6 +
 configure                                     |   17 ++-
 doc/optimization.txt                          |    6 +
 libavcodec/alpha/asm.h                        |  102 +++++++++----------
 libavcodec/armv4l/dsputil_arm.c               |    4 -
 libavcodec/armv4l/dsputil_iwmmxt.c            |   10 +-
 libavcodec/armv4l/dsputil_iwmmxt_rnd.h        |   30 +++---
 libavcodec/armv4l/float_arm_vfp.c             |    6 +
 libavcodec/armv4l/mathops.h                   |   14 +--
 libavcodec/armv4l/mpegvideo_armv5te.c         |    2 
 libavcodec/armv4l/mpegvideo_iwmmxt.c          |    2 
 libavcodec/bfin/dsputil_bfin.c                |    2 
 libavcodec/bfin/mathops.h                     |    6 +
 libavcodec/bfin/mpegvideo_bfin.c              |    4 -
 libavcodec/bitstream.h                        |   10 +-
 libavcodec/cabac.h                            |   18 ++-
 libavcodec/dct-test.c                         |    2 
 libavcodec/dsputil.c                          |   36 -------
 libavcodec/dsputil.h                          |    2 
 libavcodec/i386/cavsdsp_mmx.c                 |   14 +--
 libavcodec/i386/cpuid.c                       |    4 -
 libavcodec/i386/dsputil_h264_template_mmx.c   |   24 ++--
 libavcodec/i386/dsputil_h264_template_ssse3.c |   14 +--
 libavcodec/i386/dsputil_mmx.c                 |  136 +++++++++++++------------
 libavcodec/i386/dsputil_mmx.h                 |    2 
 libavcodec/i386/dsputil_mmx_avg.h             |   40 ++++---
 libavcodec/i386/dsputil_mmx_qns.h             |    4 -
 libavcodec/i386/dsputil_mmx_rnd.h             |   30 +++---
 libavcodec/i386/dsputilenc_mmx.c              |   42 ++++----
 libavcodec/i386/fdct_mmx.c                    |    2 
 libavcodec/i386/fft_3dn2.c                    |   16 +--
 libavcodec/i386/fft_sse.c                     |   20 ++--
 libavcodec/i386/flacdsp_mmx.c                 |    8 +
 libavcodec/i386/h264_i386.h                   |    4 -
 libavcodec/i386/h264dsp_mmx.c                 |  104 ++++++++++---------
 libavcodec/i386/idct_mmx_xvid.c               |    4 -
 libavcodec/i386/idct_sse2_xvid.c              |    2 
 libavcodec/i386/mathops.h                     |    6 +
 libavcodec/i386/mmx.h                         |   24 ++--
 libavcodec/i386/motion_est_mmx.c              |   38 +++----
 libavcodec/i386/mpegvideo_mmx.c               |   16 +--
 libavcodec/i386/mpegvideo_mmx_template.c      |   10 +-
 libavcodec/i386/simple_idct_mmx.c             |    2 
 libavcodec/i386/snowdsp_mmx.c                 |   36 +++----
 libavcodec/i386/vc1dsp_mmx.c                  |   14 +--
 libavcodec/i386/vp3dsp_mmx.c                  |    2 
 libavcodec/i386/vp3dsp_sse2.c                 |    2 
 libavcodec/msmpeg4.c                          |    2 
 libavcodec/ppc/check_altivec.c                |    2 
 libavcodec/ppc/dsputil_ppc.c                  |    8 +
 libavcodec/ppc/dsputil_ppc.h                  |   24 ++--
 libavcodec/ppc/gcc_fixes.h                    |    2 
 libavcodec/ppc/mathops.h                      |    4 -
 libavcodec/ps2/dsputil_mmi.c                  |    8 +
 libavcodec/ps2/idct_mmi.c                     |   16 +--
 libavcodec/ps2/mmi.h                          |   70 ++++++-------
 libavcodec/ps2/mpegvideo_mmi.c                |    2 
 libavcodec/sh4/dsputil_sh4.c                  |    2 
 libavcodec/sh4/idct_sh4.c                     |   12 +-
 libavcodec/simple_idct.c                      |    4 -
 libavcodec/sparc/simple_idct_vis.c            |    6 +
 libavcodec/sparc/vis.h                        |   64 ++++++------
 libavformat/framehook.h                       |    2 
 libavformat/nsvdec.c                          |    2 
 libavutil/bswap.h                             |   26 +++--
 libavutil/common.h                            |   10 +-
 libavutil/internal.h                          |   10 +-
 libavutil/mathematics.c                       |   36 +++++++
 libpostproc/postprocess.c                     |    8 +
 libpostproc/postprocess_template.c            |   64 ++++++------
 70 files changed, 653 insertions(+), 630 deletions(-)

-- 
Signature




More information about the ffmpeg-devel mailing list