Displaying 20 results from an estimated 3000 matches similar to: "about "cpu.h: Fix compiler detection" patch"
2017 Feb 16
1
about "cpu.h: Fix compiler detection" patch
Erik de Castro Lopo wrote:
> the bug *before* the logic is evaluated. My current solution in
> the above PR is to avoid `__has_attribute` and use this:
>
> #elif defined __clang__ && (__clang_major__ > 3 || \
> (__clang_major__ == 3 && __clang_minor__ >= 6)) /* clang */
>
> which I have tested with clang 3.6. If someone has an earlier
2014 Jan 03
2
PATCH: add FLAC__SSE_SUPPORTED and FLAC__SSE2_SUPPORTED
Currently the only way to compile FLAC using GCC w/o SSE support
is to disable asm optimizations (see configure.ac):
if test "x$asm_optimisation" = "xyes" ; then
XIPH_ADD_CFLAGS([-msse2])
fi
Also it's not possible to enable SSE4.1 intrinsic functions even
with -msse4.1 option. The patch fixes both problems.
---------------
BTW: I'm not sure that share/compat.h
2012 May 09
1
[PATCH 2/2] bitmath: Finish up optimizations
This patch adds support for other compilers and systems
including MSVC, Intel C compiler etc..
---
src/libFLAC/bitmath.c | 48 -------------
src/libFLAC/bitreader.c | 54 ++-------------
src/libFLAC/include/private/bitmath.h | 120 ++++++++++++++++++++++++++++++---
3 files changed, 116 insertions(+), 106 deletions(-)
diff --git a/src/libFLAC/bitmath.c
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
Hi,
Some time in the last few weeks I noticed my cmake build of
svn-trunk on powerpc-darwin8 start to warn about atomics being unavailable
and thus building thread-unsafe. I just looked into it and found an easy
solution, using the atomic functions in <libkern/OSAtomic.h> in
/usr/include. The attached patch does this and also modifies the cmake
and autoconf tests to 'pass'
2017 Oct 26
1
[PATCH for-next 7/9] coverage: introduce support for llvm profiling
Introduce the functionality in order to fill the hooks of the
cov_sysctl_ops struct.
Signed-off-by: Roger Pau Monné <roger.pau at citrix.com>
---
Cc: Andrew Cooper <andrew.cooper3 at citrix.com>
Cc: George Dunlap <George.Dunlap at eu.citrix.com>
Cc: Ian Jackson <ian.jackson at eu.citrix.com>
Cc: Jan Beulich <jbeulich at suse.com>
Cc: Konrad Rzeszutek Wilk
2015 Mar 09
2
[PATCH 1/1] ensure that stack is aligned for SSE functions if using mingw32
Unable to test on win32 at the moment, please give this a try. Feedback welcome.
Avoids crashes due to unaligned ops when built with mingw.
---
src/libFLAC/include/private/cpu.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/libFLAC/include/private/cpu.h b/src/libFLAC/include/private/cpu.h
index 8927897..bd40012 100644
--- a/src/libFLAC/include/private/cpu.h
+++
2013 Aug 16
1
PATCH for bitmath.h: 1 typo, 1 warning
rutine -> routine
Also MSVC complains that FLAC__uint32* (unsigned int*) is not of the same type as unsigned long*
--- a\src\libFLAC\include\private\bitmath.h 2013-08-13 13:30:24.000000000 +0400
+++ b\src\libFLAC\include\private\bitmath.h 2013-08-14 10:20:51.484053700 +0400
@@ -78,12 +78,12 @@
return _bit_scan_reverse(v) ^ 31U;
#elif defined(__GNUC__) && (__GNUC__ >= 4 ||
2015 Dec 21
2
MSVC warning noise on "LLVM_ATTRIBUTE_ALWAYS_INLINE inline void foo()"
On Mon, Dec 21, 2015 at 12:08 AM, Aaron Ballman <aaron at aaronballman.com>
wrote:
> On Sun, Dec 20, 2015 at 5:57 PM, Johan Engelen <jbc.engelen at gmail.com>
> wrote:
> >
> > Perhaps LLVM_ATTRIBUTE_ALWAYS_INLINE could be defined to "inline" if the
> > compiler has no support for always_inline (currently it is set to
> nothing in
> > that
2013 May 25
0
[PATCH 1/2] Fix mistyped variable name
---
src/libFLAC/include/private/bitmath.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libFLAC/include/private/bitmath.h b/src/libFLAC/include/private/bitmath.h
index 42ce639..e5c7695 100644
--- a/src/libFLAC/include/private/bitmath.h
+++ b/src/libFLAC/include/private/bitmath.h
@@ -74,7 +74,7 @@ static inline unsigned int FLAC__clz_uint32(FLAC__uint32 v)
{
/* Never
2017 Oct 26
2
[PATCH for-next 0/9] LLVM coverage support for Xen
Hello,
The following patch series enables LLVM coverage support for the Xen
hypervisor. This first patches are a re-organization of the gcov
support, in order to make the support generic for all coverage
technologies. This is mostly a name change from gcov -> cov in several
places and files, together with the addition of a Kconfig option in
order to enable LLVM coverage.
Patch 7 introduces
2014 May 04
0
Building FLAC with LTO
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tried to do this, gcc complained a lot about undefined references.
After a bit of mucking with the code, i came up with a few patches. This
might be a good conversation starter.
The build that i've got out of this does pass the testsuite.
To enable LTO you just need to apply these (for non-W32 builds you probably
only need one of the patches)
2013 Nov 23
0
[LLVMdev] [PATCH] Detect Haswell subarchitecture (i.e. using -march=native)
Here we go, updated patch following your advice checking max leaf and porting cpuidex for subleaf (ECX) 0.
NOTE: I’ve set Haswell to be not only 60, but also 63, 69 & 70 model, following changes in Linux kernel & Xen. Also set 62 as Ivy Bridge EP aka E5 v3 (which I has in my workstation).
Cheers,
--
Adam
Detects x86 family 6 model 60, 63, 69, 70 CPU that has AVX2 CPUID leaf 7
subleaf
2017 Dec 16
0
[PATCH] opus_defines.h: disable restrict with gcc < 3.4
With gcc-3.3, building opus fails with the following error:
In file included from silk/float/pitch_analysis_core_FLP.c:38:
celt/pitch.h:53: error: invalid use of `restrict'
This is because __restrict is broken with gcc < 3.4. See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6392
Therefore, disable restrict with gcc versions older than 3.4.
---
include/opus_defines.h | 6 +++++-
1 file
2017 Jul 12
1
[PATCH] Avoid -Wsometimes-uninitialized error for valid test code
r+ with James' fix.
On 12/07/17 02:01 PM, James Zern wrote:
> On Wed, Jul 12, 2017 at 10:58 AM, Felicia Lim <flim at google.com> wrote:
>> |frame_size_enum| in tests/test_opus_encode.cl:117 is flagged as potentially
>> uninitialized but get_frame_size_enum() will fail anyway if a valid value is
>> not found.
>> ---
>> tests/test_opus_common.h | 2 ++
2017 Jul 12
2
[PATCH] Avoid -Wsometimes-uninitialized error for valid test code
|frame_size_enum| in tests/test_opus_encode.cl:117 is flagged as potentially
uninitialized but get_frame_size_enum() will fail anyway if a valid value is
not found.
---
tests/test_opus_common.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test_opus_common.h b/tests/test_opus_common.h
index ff7f0142..8b878607 100644
--- a/tests/test_opus_common.h
+++ b/tests/test_opus_common.h
@@
2015 Dec 01
2
Compilation errors
While doing a make on the recently checkout version:
I got the following errors:
[ 68%] Built target dd
[ 68%] Built target compiler-rt-headers
[ 68%] Building C object
projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/x86_64/floatdidf.c.o
In file included from
/home/tthtlc/llvm/llvm/projects/compiler-rt/lib/builtins/x86_64/floatdidf.c:9:0:
2013 May 04
5
Bug fix and compatibility patches for 1.3.0pre4
Hi all,
I tried 1.3.0pre4 with ICL on Windows and found some issues. Not sure if
this is the right place to submit patches, but someone suggested this on
the apparently dead SourceForge patch tracker.
The first two are quite straight forward:
- The ICL patch fixes a typo in bitmath.h and adds
FLAC__bitwriter_write_zeroes to the external declarations in bitwriter.c.
- The Ogg patch replaces
2017 Jul 12
0
[PATCH] Avoid -Wsometimes-uninitialized error for valid test code
On Wed, Jul 12, 2017 at 10:58 AM, Felicia Lim <flim at google.com> wrote:
> |frame_size_enum| in tests/test_opus_encode.cl:117 is flagged as potentially
> uninitialized but get_frame_size_enum() will fail anyway if a valid value is
> not found.
> ---
> tests/test_opus_common.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/test_opus_common.h
2020 Jan 15
2
[tablegen] table readability / performance
On Wed, 15 Jan 2020, Reid Kleckner via llvm-dev wrote:
> On Wed, Jan 15, 2020 at 11:14 AM Luke Drummond <luke.drummond at codeplay.com>
> wrote:
> On Wed Jan 15, 2020 at 6:58 PM, Reid Kleckner wrote:
> > Does the same limitation exist in VS 2017? I think that's our
> support
> > floor
> > these days:
>
2017 Feb 09
1
[PATCH] Fix compile with cygwin
The underscores are wrong. The comment is also correct.
Also remove the configure.ac option. Otherwise it tries to compile the
windows unicode stuff which POSIX(cygwin) does not understand.
---
configure.ac | 2 +-
include/share/compat.h | 2 +-
src/libFLAC/stream_decoder.c | 3 ---
src/libFLAC/stream_encoder.c | 3 ---
src/share/grabbag/file.c | 8 +-------
5 files