summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-06-24 03:01:49 +0200
committerGitHub <noreply@github.com>2018-06-24 03:01:49 +0200
commitd819da37b01e87e5e067ae37092cd2044e6a40e3 (patch)
tree7707c8a4e48e1930d8380192d289c339cdce243f
parent0501ac9b4b517bafbd82b63c1a9ed57fc4208372 (diff)
parent949b2ebd167a5d0080f36adf37c8cd52796c9077 (diff)
downloadUXP-d819da37b01e87e5e067ae37092cd2044e6a40e3.tar
UXP-d819da37b01e87e5e067ae37092cd2044e6a40e3.tar.gz
UXP-d819da37b01e87e5e067ae37092cd2044e6a40e3.tar.lz
UXP-d819da37b01e87e5e067ae37092cd2044e6a40e3.tar.xz
UXP-d819da37b01e87e5e067ae37092cd2044e6a40e3.zip
Merge pull request #538 from trav90/code-cleanup
Remove GCC 4.8 workaround in libopus
-rw-r--r--media/libopus/celt/rate.c10
-rw-r--r--media/libopus/gcc-4.8-ICE.patch39
-rwxr-xr-xmedia/libopus/update.sh1
3 files changed, 0 insertions, 50 deletions
diff --git a/media/libopus/celt/rate.c b/media/libopus/celt/rate.c
index 29b26c65b..9062ff750 100644
--- a/media/libopus/celt/rate.c
+++ b/media/libopus/celt/rate.c
@@ -524,12 +524,6 @@ static OPUS_INLINE int interp_bits2pulses(const CELTMode *m, int start, int end,
return codedBands;
}
-#if !defined(__clang__) && defined(__GNUC__) && defined(__arm__) && \
- __GNUC__ == 4 && __GNUC_MINOR__ == 8
-#warning "OPUS library causes an internal compiler error for gcc-4.8 based toolchain in arm"
-#pragma GCC push_options
-#pragma GCC optimize ("O0")
-#endif
int compute_allocation(const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stereo,
opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth)
{
@@ -642,7 +636,3 @@ int compute_allocation(const CELTMode *m, int start, int end, const int *offsets
RESTORE_STACK;
return codedBands;
}
-#if !defined(__clang__) && defined(__GNUC__) && defined(__arm__) && \
- __GNUC__ == 4 && __GNUC_MINOR__ == 8
-#pragma GCC pop_options
-#endif
diff --git a/media/libopus/gcc-4.8-ICE.patch b/media/libopus/gcc-4.8-ICE.patch
deleted file mode 100644
index 92a74e325..000000000
--- a/media/libopus/gcc-4.8-ICE.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 609166a46f6a22ae2d0a0ab7c64415c779c65f37 Mon Sep 17 00:00:00 2001
-From: Juan Gomez <atilag@gmail.com>
-Date: Wed, 26 Nov 2014 23:57:49 +0100
-Subject: [PATCH] Bug 1056337 - Upgrade toolchain used for B2G ICS builds *
- Patch for gcc ICE in OPUS library (arm)
-
----
- media/libopus/celt/rate.c | 11 ++++++++++-
- 1 file changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/media/libopus/celt/rate.c b/media/libopus/celt/rate.c
-index e13d839..1055e63 100644
---- a/media/libopus/celt/rate.c
-+++ b/media/libopus/celt/rate.c
-@@ -523,6 +523,12 @@ static OPUS_INLINE int interp_bits2pulses(const CELTMode *m, int start, int end,
- return codedBands;
- }
-
-+#if !defined(__clang__) && defined(__GNUC__) && defined(__arm__) && \
-+ __GNUC__ == 4 && __GNUC_MINOR__ == 8
-+#warning "OPUS library causes an internal compiler error for gcc-4.8 based toolchain in arm"
-+#pragma GCC push_options
-+#pragma GCC optimize ("O0")
-+#endif
- int compute_allocation(const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stereo,
- opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth)
- {
-@@ -635,4 +641,7 @@ int compute_allocation(const CELTMode *m, int start, int end, const int *offsets
- RESTORE_STACK;
- return codedBands;
- }
--
-+#if !defined(__clang__) && defined(__GNUC__) && defined(__arm__) && \
-+ __GNUC__ == 4 && __GNUC_MINOR__ == 8
-+#pragma GCC pop_options
-+#endif
---
-2.1.0
-
diff --git a/media/libopus/update.sh b/media/libopus/update.sh
index b36391b05..f7c1120f6 100755
--- a/media/libopus/update.sh
+++ b/media/libopus/update.sh
@@ -74,5 +74,4 @@ sed -e "s/DEFINES\['OPUS_VERSION'\][ \t]*=[ \t]*'\".*\"'/DEFINES['OPUS_VERSION']
python gen-sources.py $1
# apply outstanding local patches
-patch -p3 < gcc-4.8-ICE.patch
patch -p3 < nonunified.patch