Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0af8a721
Commit
0af8a721
authored
Sep 24, 2017
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Drop support for legacy TI ARM compiler
parent
2708c8e8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
96 deletions
+1
-96
math.h
compat/tms470/math.h
+0
-30
configure
configure
+0
-58
intreadwrite.h
libavutil/intreadwrite.h
+1
-1
mem.h
libavutil/mem.h
+0
-7
No files found.
compat/tms470/math.h
deleted
100644 → 0
View file @
2708c8e8
/*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Libav is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LIBAV_COMPAT_TMS470_MATH_H
#define LIBAV_COMPAT_TMS470_MATH_H
#include_next <math.h>
#undef INFINITY
#undef NAN
#define INFINITY (*(const float*)((const unsigned []){ 0x7f800000 }))
#define NAN (*(const float*)((const unsigned []){ 0x7fc00000 }))
#endif
/* LIBAV_COMPAT_TMS470_MATH_H */
configure
View file @
0af8a721
...
...
@@ -3220,35 +3220,6 @@ suncc_flags(){
done
}
tms470_flags
(){
for
flag
;
do
case
$flag
in
-march
=
*
|
-mcpu
=
*
)
case
"
${
flag
#*=
}
"
in
armv7-a|cortex-a
*
)
echo
-mv
=
7a8
;;
armv7-r|cortex-r
*
)
echo
-mv
=
7r4
;;
armv7-m|cortex-m
*
)
echo
-mv
=
7m3
;;
armv6
*
|
arm11
*
)
echo
-mv
=
6
;;
armv5
*
e|arm[79]
*
e
*
|
arm9[24]6
*
|
arm96
*
|
arm102[26]
)
echo
-mv
=
5e
;;
armv4
*
|
arm7
*
|
arm9[24]
*
)
echo
-mv
=
4
;;
esac
;;
-mfpu
=
neon
)
echo
--float_support
=
vfpv3
--neon
;;
-mfpu
=
vfp
)
echo
--float_support
=
vfpv2
;;
-mfpu
=
vfpv3
)
echo
--float_support
=
vfpv3
;;
-mfpu
=
vfpv3-d16
)
echo
--float_support
=
vfpv3d16
;;
-msoft-float
)
echo
--float_support
=
vfplib
;;
-O
[
0-3]|-mf
=
*
)
echo
$flag
;;
-g
)
echo
-g
-mn
;;
-pds
=
*
)
echo
$flag
;;
-D
*
|
-I
*
)
echo
$flag
;;
--gcc
|
--abi
=
*
)
echo
$flag
;;
-me
)
echo
$flag
;;
esac
done
}
probe_cc
(){
pfx
=
$1
_cc
=
$2
...
...
@@ -3305,16 +3276,6 @@ probe_cc(){
_depflags
=
'-MMD'
_cflags_speed
=
'-O3'
_cflags_size
=
'-Os'
elif
$_cc
-version
2>/dev/null |
grep
-Eq
'TMS470|TI ARM'
;
then
_type
=
tms470
_ident
=
$(
$_cc
-version
|
head
-n1
|
tr
-s
' '
)
_flags
=
'--gcc --abi=eabi -me'
_cc_e
=
'-ppl -fe=$@'
_cc_o
=
'-fe=$@'
_depflags
=
'-ppa -ppd=$(@:.o=.d)'
_cflags_speed
=
'-O3 -mf=5'
_cflags_size
=
'-O3 -mf=2'
_flags_filter
=
tms470_flags
elif
$_cc
-v
2>&1 |
grep
-q
clang
;
then
_type
=
clang
_ident
=
$(
$_cc
--version
2>/dev/null |
head
-n1
)
...
...
@@ -3497,9 +3458,6 @@ fi
if
$ar
2>&1 |
grep
-q
Microsoft
;
then
arflags
=
"-nologo"
ar_o
=
'-out:$@'
elif
$ar
2>&1 |
grep
-q
'Texas Instruments'
;
then
arflags
=
"rq"
ar_o
=
'$@'
elif
$ar
2>&1 |
grep
-q
'Usage: ar.*-X.*any'
;
then
arflags
=
'-Xany -r -c'
ar_o
=
'$@'
...
...
@@ -3518,10 +3476,6 @@ if test -n "$sysroot"; then
add_cppflags
--sysroot
=
"
$sysroot
"
add_ldflags
--sysroot
=
"
$sysroot
"
;;
tms470
)
add_cppflags
-I
"
$sysinclude
"
add_ldflags
--sysroot
=
"
$sysroot
"
;;
esac
fi
...
...
@@ -4179,15 +4133,6 @@ case $libc_type in
bionic
)
add_compat strtod.o
strtod
=
avpriv_strtod
;;
glibc
)
if
enabled tms470
;
then
CPPFLAGS
=
"-I
${
source_path
}
/compat/tms470
${
CPPFLAGS
}
"
add_cppflags
-D__USER_LABEL_PREFIX__
=
add_cppflags
-D__builtin_memset
=
memset
add_cppflags
-D__gnuc_va_list
=
va_list
-D_VA_LIST_DEFINED
add_cflags
-pds
=
48
# incompatible redefinition of macro
fi
;;
esac
check_compile_assert flt_lim
"float.h limits.h"
"DBL_MAX == (double)DBL_MAX"
||
...
...
@@ -5030,9 +4975,6 @@ elif enabled armcc; then
add_cflags
-W
${
armcc_opt
}
,--diag_suppress
=
3343
# hardfp compat
add_cflags
-W
${
armcc_opt
}
,--diag_suppress
=
167
# pointer sign
add_cflags
-W
${
armcc_opt
}
,--diag_suppress
=
513
# pointer sign
elif
enabled tms470
;
then
add_cflags
-pds
=
824
-pds
=
837
disable inline_asm
elif
enabled pathscale
;
then
add_cflags
-fstrict-overflow
-OPT
:wrap_around_unsafe_opt
=
OFF
disable inline_asm
...
...
libavutil/intreadwrite.h
View file @
0af8a721
...
...
@@ -183,7 +183,7 @@ typedef union {
* by per-arch headers.
*/
#if defined(__GNUC__)
&& !defined(__TI_COMPILER_VERSION__)
#if defined(__GNUC__)
union
unaligned_64
{
uint64_t
l
;
}
__attribute__
((
packed
))
av_alias
;
union
unaligned_32
{
uint32_t
l
;
}
__attribute__
((
packed
))
av_alias
;
...
...
libavutil/mem.h
View file @
0af8a721
...
...
@@ -41,13 +41,6 @@
#if defined(__ICC) && __ICC < 1200 || defined(__SUNPRO_C)
#define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
#define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
#elif defined(__TI_COMPILER_VERSION__)
#define DECLARE_ALIGNED(n,t,v) \
AV_PRAGMA(DATA_ALIGN(v,n)) \
t __attribute__((aligned(n))) v
#define DECLARE_ASM_CONST(n,t,v) \
AV_PRAGMA(DATA_ALIGN(v,n)) \
static const t __attribute__((aligned(n))) v
#elif defined(__GNUC__) || defined(__clang__)
#define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
#define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment