platform/upstream/orc.git
9 years agoparse: cleanup
Wim Taymans [Mon, 22 Sep 2014 08:14:04 +0000 (10:14 +0200)]
parse: cleanup

Be more elegant in parsing and passing the parameters to
orc_program_append_str_2().

9 years agotest: add more tests
Wim Taymans [Mon, 22 Sep 2014 08:11:35 +0000 (10:11 +0200)]
test: add more tests

9 years agocompiler: keep track of temp variables that contain param/const
Wim Taymans [Fri, 19 Sep 2014 16:07:10 +0000 (18:07 +0200)]
compiler: keep track of temp variables that contain param/const

Keep track of what const/param is loaded into a temp variable. We can
then see if the const is already loaded in a variable and simply reuse
it instead of using a new temp. We must also make sure we load constants
of different size in different temp variables.

9 years agoRevert reuse constants
Wim Taymans [Fri, 19 Sep 2014 20:57:03 +0000 (22:57 +0200)]
Revert reuse constants

This reverts commit 2ece711c615d327be1e74bec4844186ced58b0ef.
This reverts commit 2ae41b98a35405dbfd35209e7d68428be77a2e62.
This reverts commit 106dacc2620126dedb99d2b981ba2e5a7d4591f9.
This reverts commit f6697e30681f46f6f3f632ddbbcab98107eec7e0.

These commits are more complicated than needed. A more simple solution
is possible by tracking the registers that hold a certain constant and
simply reusing that register when we can. We can then load the same
constant in different registers of different sizes if needed.

9 years agoparse: make contants per size
Wim Taymans [Fri, 19 Sep 2014 13:39:22 +0000 (15:39 +0200)]
parse: make contants per size

When we automatically create constants from the opcode arguments, make
different constants per size and rewrite the program to use the newly
created constant.

9 years agoparse: fix opcode arg size
Wim Taymans [Fri, 19 Sep 2014 13:38:21 +0000 (15:38 +0200)]
parse: fix opcode arg size

9 years agoexecutor: use the size of the opcode arg to get multiplier
Wim Taymans [Fri, 19 Sep 2014 10:23:44 +0000 (12:23 +0200)]
executor: use the size of the opcode arg to get multiplier

When loading a constant, select the multiplier based on the size of the
opcode argument. This is safer because we have existing code that declares
the constants of the wrong size.

9 years agoexecutor: fully expand const vars into the temp register
Wim Taymans [Thu, 18 Sep 2014 17:32:18 +0000 (19:32 +0200)]
executor: fully expand const vars into the temp register

When loading a const in a register, always make it cover the full
register so that it containts enough values to be used in x2 and
x4 instructions.

9 years agoparse: register constants with the right size
Wim Taymans [Fri, 19 Sep 2014 08:55:52 +0000 (10:55 +0200)]
parse: register constants with the right size

When we detect a constant while parsing a line, register it with the
same size as the argument of the opcode.

9 years agoprogram-c: handle X2 and X4 with size < 2 variables
Wim Taymans [Thu, 18 Sep 2014 12:19:06 +0000 (14:19 +0200)]
program-c: handle X2 and X4 with size < 2 variables

when the variable has a size < 2 it will have been declared as a simple
int8 or int16, when we use this in a X2 or X4 instruction, use the
variable directly instead of trying to use the x fields.

9 years agocompiler: generate only 1 temp for constants
Wim Taymans [Thu, 18 Sep 2014 10:27:01 +0000 (12:27 +0200)]
compiler: generate only 1 temp for constants

Generate only 1 temp variable for constants. We do this by keeping track
of what variable we used to replace the constant.

Previously, orc would allocate a new temp variable every time a constant
was used, this wastes registers and is not needed.

9 years agocompiler: reuse _try_get_constant in _get_constant
Wim Taymans [Thu, 18 Sep 2014 08:21:48 +0000 (10:21 +0200)]
compiler: reuse _try_get_constant in _get_constant

9 years agoopcodes: avoid undefined operations on signed ints
Wim Taymans [Wed, 17 Sep 2014 14:06:35 +0000 (16:06 +0200)]
opcodes: avoid undefined operations on signed ints

Cast to unsigned int when doing addition and subtraction that can
overflow.
Cast to unsigned int when doing the lower part of a multiplication.
Cast to unsigned int when doing left shifts into the sign bit.
Regenerate the emulation code. This should avoid multiple warnings
reported with clang and -fsanitize=undefined.

See https://bugzilla.gnome.org/show_bug.cgi?id=728738

9 years agocompiler: do << and | on unsigned ints only
Wim Taymans [Wed, 17 Sep 2014 13:36:47 +0000 (15:36 +0200)]
compiler: do << and | on unsigned ints only

9 years agocompiler: avoid nagative array index
Wim Taymans [Wed, 17 Sep 2014 13:28:57 +0000 (15:28 +0200)]
compiler: avoid nagative array index

For instructions that don't have a second variable, don't try to index
the variable array with a -1 index.

9 years agoutils: convert to uin32 before doing |
Wim Taymans [Wed, 17 Sep 2014 13:19:46 +0000 (15:19 +0200)]
utils: convert to uin32 before doing |

In ORC_READ_UINT32_LE, convert each byte to uint32 before or-ing them
together. This avoids | with signed ints.

9 years agodocs: remove old env variable
Wim Taymans [Wed, 17 Sep 2014 08:32:27 +0000 (10:32 +0200)]
docs: remove old env variable

ORC_CPU_FLAGS has been removed quite some time ago

9 years agoTMPDIR becomes the last option
Fabian Deutsch [Tue, 2 Sep 2014 08:38:17 +0000 (10:38 +0200)]
TMPDIR becomes the last option

Previously $TMPDIR and /tmp were the first options to try to use for
intermediate files. To prevent name collisions, now user specific dirs ($HOME
and $XDG_RUNTIME_DIR) are prefered over the user unspecific dirs ($TMP and
/tmp).

https://bugzilla.gnome.org/show_bug.cgi?id=735871

9 years agoBack to development
Sebastian Dröge [Wed, 27 Aug 2014 09:24:28 +0000 (12:24 +0300)]
Back to development

9 years agoRelease 0.4.22 orc-0.4.22
Sebastian Dröge [Wed, 27 Aug 2014 09:24:03 +0000 (12:24 +0300)]
Release 0.4.22

9 years agoAdd fallback CPU feature detection for Android
Jan Schmidt [Tue, 26 Aug 2014 05:29:50 +0000 (15:29 +1000)]
Add fallback CPU feature detection for Android

On Android, /proc/self/auxv might not be readable (except
when debuggable=true in the build, annoyingly), so do what
the android cpufeatures detection code does and fall back to
/proc/cpuinfo string matching.

Without this, release builds run really slowly, due to ORC always
doing emulation.

9 years agoRemove declarations for deleted functions from orcutils.h
Jan Schmidt [Tue, 26 Aug 2014 05:29:28 +0000 (15:29 +1000)]
Remove declarations for deleted functions from orcutils.h

9 years agoDetect android liblog and use android's log functions for debug output
Jan Schmidt [Tue, 26 Aug 2014 03:10:04 +0000 (13:10 +1000)]
Detect android liblog and use android's log functions for debug output

10 years agoorccompiler: free error message
Thiago Santos [Fri, 27 Jun 2014 16:30:03 +0000 (13:30 -0300)]
orccompiler: free error message

10 years agoorcarray: Use size_t for pointer arithmetics
Edward Hervey [Fri, 27 Jun 2014 09:33:16 +0000 (11:33 +0200)]
orcarray: Use size_t for pointer arithmetics

Fixes these warnings on windows x86_64:

orcarray.c:80:33: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
orcarray.c:80:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]

10 years agoorccompiler: If compiling a program twice, first free the results of the previous...
Sebastian Dröge [Mon, 23 Jun 2014 17:14:26 +0000 (19:14 +0200)]
orccompiler: If compiling a program twice, first free the results of the previous compilation

10 years agoorcc: Fix some memory leaks in the compiler
Sebastian Dröge [Mon, 23 Jun 2014 17:14:18 +0000 (19:14 +0200)]
orcc: Fix some memory leaks in the compiler

10 years agoautogen: Honor NOCONFIGURE=1
Colin Walters [Mon, 23 Jun 2014 10:59:35 +0000 (06:59 -0400)]
autogen: Honor NOCONFIGURE=1

See https://github.com/cgwalters/build-api

10 years agoBack to development
Sebastian Dröge [Mon, 23 Jun 2014 08:14:47 +0000 (10:14 +0200)]
Back to development

10 years agoRelease 0.4.21 orc-0.4.21
Sebastian Dröge [Mon, 23 Jun 2014 08:06:29 +0000 (10:06 +0200)]
Release 0.4.21

10 years agoconfigure: Pass -version-info to libtool again
Sebastian Dröge [Mon, 23 Jun 2014 07:59:43 +0000 (09:59 +0200)]
configure: Pass -version-info to libtool again

10 years agoBack to development
Sebastian Dröge [Mon, 23 Jun 2014 07:39:26 +0000 (09:39 +0200)]
Back to development

10 years agoRelease 0.4.20 orc-0.4.20
Sebastian Dröge [Mon, 23 Jun 2014 07:38:51 +0000 (09:38 +0200)]
Release 0.4.20

10 years agobuild: Modernize autotools build system
Sebastian Dröge [Mon, 23 Jun 2014 07:20:03 +0000 (09:20 +0200)]
build: Modernize autotools build system

10 years agoAdd some checks on the number of variables per type
Vincent Penquerc'h [Thu, 1 May 2014 14:47:41 +0000 (15:47 +0100)]
Add some checks on the number of variables per type

We want to ensure no more than, say, 8 constants are added
to a program. Adding more will violate pervasive assumptions
in the code, and may lead to various buffer overflows. By
trapping these add creation time, we prevent these issues
without cluttering the code with range checks. The user is
assumed non malicious here.

Add a test to check we can add up to and including the limit
for a type, but no more.

10 years agoUpdate .gitignore
Tim-Philipp Müller [Thu, 5 Jun 2014 14:45:57 +0000 (15:45 +0100)]
Update .gitignore

10 years agoorccodemem: fix list corruption when splitting memory chunks in two
Tim-Philipp Müller [Wed, 4 Jun 2014 22:25:52 +0000 (23:25 +0100)]
orccodemem: fix list corruption when splitting memory chunks in two

When splitting orc memory chunks in two, the 'prev' pointer of the
new memory chunk to be inserted was wrong, causing invalid memory
access and double frees later down the line.

https://bugzilla.gnome.org/show_bug.cgi?id=731227

10 years agoorc: Close file after usage in the copied around file reading function
Sebastian Dröge [Tue, 20 May 2014 08:07:57 +0000 (10:07 +0200)]
orc: Close file after usage in the copied around file reading function

CID 1147011.

10 years agoorcarray: Use fabs() instead of abs(), the latter is for integers
Sebastian Dröge [Mon, 19 May 2014 09:09:55 +0000 (11:09 +0200)]
orcarray: Use fabs() instead of abs(), the latter is for integers

orcarray.c:254:15: error: using integer absolute value function 'abs' when
      argument is of floating point type [-Werror,-Wabsolute-value]
          if (abs(a[i] - b[i]) < MIN_NONDENORMAL_D) continue;

10 years agoorcprogram-c: Convert shifts in swap opcodes to operations on unsigned integers
Sebastian Dröge [Fri, 25 Apr 2014 18:42:02 +0000 (20:42 +0200)]
orcprogram-c: Convert shifts in swap opcodes to operations on unsigned integers

Shifting into the sign bit is undefined, so let's stop doing that.

10 years agomemcpy_speed: Use unsigned integers, overflows are undefined for signed integers
Sebastian Dröge [Tue, 22 Apr 2014 16:05:17 +0000 (18:05 +0200)]
memcpy_speed: Use unsigned integers, overflows are undefined for signed integers

10 years agoBack to development
Sebastian Dröge [Fri, 18 Apr 2014 08:49:59 +0000 (10:49 +0200)]
Back to development

10 years agoRelease 0.4.19 orc-0.4.19
Sebastian Dröge [Fri, 18 Apr 2014 08:32:23 +0000 (10:32 +0200)]
Release 0.4.19

10 years agoorccodemem: mask group/other bits for temporary file
Vincent Penquerc'h [Thu, 17 Apr 2014 08:16:46 +0000 (09:16 +0100)]
orccodemem: mask group/other bits for temporary file

Ensures another user can't inject code into your process when
winning a race with the ORC temp file code.

Coverity 1147013

10 years agoorcprogam-{mips,mmx,sse}: bail out if get_align_var fails
Vincent Penquerc'h [Wed, 16 Apr 2014 11:07:40 +0000 (12:07 +0100)]
orcprogam-{mips,mmx,sse}: bail out if get_align_var fails

Coverity 1146979, 1146980, 1146977, 1146978, 1146973

10 years agoorcprogram: bail out on error
Vincent Penquerc'h [Wed, 16 Apr 2014 11:02:13 +0000 (12:02 +0100)]
orcprogram: bail out on error

Coverity 1146972

10 years agoorcbytecode: Don't replace program name without freeing the old name if any
Sebastian Dröge [Tue, 15 Apr 2014 08:24:56 +0000 (10:24 +0200)]
orcbytecode: Don't replace program name without freeing the old name if any

10 years agoorcc: Fix indention of generated code
Sebastian Dröge [Tue, 15 Apr 2014 08:17:04 +0000 (10:17 +0200)]
orcc: Fix indention of generated code

10 years agoorc: Update autogenerated files
Sebastian Dröge [Mon, 14 Apr 2014 22:20:49 +0000 (00:20 +0200)]
orc: Update autogenerated files

10 years agoorcprogram-c: Fix swaplq C implementation
Sebastian Dröge [Mon, 14 Apr 2014 21:12:57 +0000 (23:12 +0200)]
orcprogram-c: Fix swaplq C implementation

10 years agoorcbytecodes: Fix filename of generated file
Sebastian Dröge [Mon, 14 Apr 2014 20:39:15 +0000 (22:39 +0200)]
orcbytecodes: Fix filename of generated file

We don't want to override orcbytecode.h but orcbytecodes.h

10 years agoorcarray: Fix compiler warning with gcc 4.9
Sebastian Dröge [Mon, 14 Apr 2014 19:53:40 +0000 (21:53 +0200)]
orcarray: Fix compiler warning with gcc 4.9

In file included from ../orc/orcprogram.h:5:0,
                 from ../orc/orc.h:5,
                 from ../orc-test/orctest.h:5,
                 from orcarray.c:6:
../orc/orcutils.h:124:37: error: 'data' may be used uninitialized in this function [-Werror=maybe-uninitialized]
 #define ORC_PTR_OFFSET(ptr,offset) ((void *)(((unsigned char *)(ptr)) + (offset)))
                                     ^
orcarray.c:42:9: note: 'data' was declared here
   void *data;

10 years agomemcpy_speed: Properly define ALIGN macro and fix memory leaks
Sebastian Dröge [Mon, 14 Apr 2014 16:54:57 +0000 (18:54 +0200)]
memcpy_speed: Properly define ALIGN macro and fix memory leaks

With the previous definition we would use memory *before* our
allocated memory area.

10 years agobench10: Fix syntax errors
Sebastian Dröge [Sun, 13 Apr 2014 20:01:38 +0000 (22:01 +0200)]
bench10: Fix syntax errors

10 years agotest.orc: Fix syntax errors
Sebastian Dröge [Sun, 13 Apr 2014 19:58:16 +0000 (21:58 +0200)]
test.orc: Fix syntax errors

10 years agobenchmorc: Fix memory leaks in test
Sebastian Dröge [Sun, 13 Apr 2014 19:57:59 +0000 (21:57 +0200)]
benchmorc: Fix memory leaks in test

10 years agoorcparse: Guard against unknown tokens
Sebastian Dröge [Sun, 13 Apr 2014 19:56:01 +0000 (21:56 +0200)]
orcparse: Guard against unknown tokens

10 years agoorcprogram: Free init function name
Sebastian Dröge [Sun, 13 Apr 2014 19:55:52 +0000 (21:55 +0200)]
orcprogram: Free init function name

10 years agotests: Fix various memory leaks in tests
Sebastian Dröge [Sun, 13 Apr 2014 19:38:48 +0000 (21:38 +0200)]
tests: Fix various memory leaks in tests

10 years agoorcprogram: Free OrcCode together with the program
Sebastian Dröge [Sun, 13 Apr 2014 19:36:43 +0000 (21:36 +0200)]
orcprogram: Free OrcCode together with the program

10 years agoorcprogram: Free type names of variables when freeing a program
Sebastian Dröge [Sun, 13 Apr 2014 19:22:37 +0000 (21:22 +0200)]
orcprogram: Free type names of variables when freeing a program

10 years agobytecode_parse: Fix memory leaks in test
Sebastian Dröge [Sun, 13 Apr 2014 19:22:28 +0000 (21:22 +0200)]
bytecode_parse: Fix memory leaks in test

10 years agoorcmips: Fix register range check
Edward Hervey [Fri, 11 Apr 2014 14:13:08 +0000 (16:13 +0200)]
orcmips: Fix register range check

There are 32 possible registers and not 33

CID #1146987

10 years agoorcexecutor: Don't use negative values on arrays
Edward Hervey [Fri, 11 Apr 2014 14:03:16 +0000 (16:03 +0200)]
orcexecutor: Don't use negative values on arrays

orc_program_find_var_by_name() can return -1 on errors, if that
happens, don't try to read/write in random memory :)

CID #1146974
CID #1146975
CID #1146976

10 years agoorc: Remove unused variable
Edward Hervey [Fri, 11 Apr 2014 13:58:17 +0000 (15:58 +0200)]
orc: Remove unused variable

include_file was never used in these variants since they were
added.

CID #1146970
CID #1146969

10 years agotestsuite: file leak fix
Vincent Penquerc'h [Thu, 10 Apr 2014 17:12:36 +0000 (18:12 +0100)]
testsuite: file leak fix

Coverity 1147011

10 years agoFix FILE leak
Vincent Penquerc'h [Mon, 7 Apr 2014 09:51:51 +0000 (10:51 +0100)]
Fix FILE leak

Coverity 1147011

10 years agoorcrules-neon: Remove unused variable
Sebastian Dröge [Sat, 8 Feb 2014 15:55:19 +0000 (16:55 +0100)]
orcrules-neon: Remove unused variable

10 years agodocs: mulhsw, mulhsw shifts by 16, not 8
William Manley [Tue, 28 Jan 2014 15:02:57 +0000 (15:02 +0000)]
docs: mulhsw, mulhsw shifts by 16, not 8

The documentation said that mulhsw and mulsuw was equivalent to:

    (a * b) >> 8

when the implementation actually shifts by 16 bits.

https://bugzilla.gnome.org/show_bug.cgi?id=723170

10 years agoorcarm: OSX doesn't like comparisons against enum and int.
Todd Agulnick [Thu, 2 Jan 2014 00:40:00 +0000 (16:40 -0800)]
orcarm: OSX doesn't like comparisons against enum and int.

10 years agotools: fix memory leak in orcc
Tim-Philipp Müller [Mon, 30 Dec 2013 13:41:14 +0000 (13:41 +0000)]
tools: fix memory leak in orcc

Coverity CID 1147542

10 years agotestsuite: fix file descriptor leak in benchmorc
Tim-Philipp Müller [Mon, 30 Dec 2013 13:32:14 +0000 (13:32 +0000)]
testsuite: fix file descriptor leak in benchmorc

Coverity CID 1147543

10 years agoMake it ANSI-C
Olivier Crête [Mon, 14 Oct 2013 19:25:14 +0000 (15:25 -0400)]
Make it ANSI-C

Use /* */ instead of //
Define _GNU_SOURCE in the ORC_CFLAGS

10 years agoautogen.sh: Allow calling from out of tree
Edward Hervey [Fri, 20 Sep 2013 09:52:21 +0000 (11:52 +0200)]
autogen.sh: Allow calling from out of tree

This is similar to the fix that was done for gstreamer

https://bugzilla.gnome.org/show_bug.cgi?id=667664

10 years agoconfigure: version back to unreleased
Edward Hervey [Fri, 20 Sep 2013 10:04:25 +0000 (12:04 +0200)]
configure: version back to unreleased

10 years agoRelease 0.4.18 orc-0.4.18
David Schleef [Sat, 24 Aug 2013 17:23:53 +0000 (10:23 -0700)]
Release 0.4.18

10 years agoorcbytecode: Fix parsing of 32 bit values from bytecode as well
Tim-Philipp Müller [Mon, 19 Aug 2013 17:12:21 +0000 (18:12 +0100)]
orcbytecode: Fix parsing of 32 bit values from bytecode as well

The shift by 24 bits has to be casted as well, otherwise we
shift into the sign bit which causes undefined behaviour.

See https://bugzilla.gnome.org/show_bug.cgi?id=698520

10 years agoorcbytecode: Fix parsing of 64 bit values from bytecode
Sebastian Dröge [Mon, 19 Aug 2013 15:02:24 +0000 (17:02 +0200)]
orcbytecode: Fix parsing of 64 bit values from bytecode

The shift by 24 bits has to be casted already, otherwise we shift
into the sign bit which causes undefined behaviour.

Thanks to Edward Hervey for debugging this.

https://bugzilla.gnome.org/show_bug.cgi?id=698520

11 years agodocs: add more opcode descriptions
Stefan Sauer [Thu, 6 Jun 2013 07:03:48 +0000 (09:03 +0200)]
docs: add more opcode descriptions

11 years agodocs: hook up generate_table tools
Stefan Sauer [Thu, 6 Jun 2013 06:06:05 +0000 (08:06 +0200)]
docs: hook up generate_table tools

Add a makefile-target in docs to update the tables (for a release). Emit a
comment at the top of the generated files which tool produces them so that
people don't edit them manually.

11 years agoaccumulator: use the local variable 'var'
Stefan Sauer [Wed, 5 Jun 2013 19:50:26 +0000 (21:50 +0200)]
accumulator: use the local variable 'var'

The code already had the local var, but barely used it.

11 years agotests: use the ORC_STATIC_OPCODE_FLOAT flag to simplify the tests
Stefan Sauer [Wed, 5 Jun 2013 18:11:43 +0000 (20:11 +0200)]
tests: use the ORC_STATIC_OPCODE_FLOAT flag to simplify the tests

11 years agoorcparse: fix copy and paste of error message
Stefan Sauer [Mon, 3 Jun 2013 19:53:13 +0000 (21:53 +0200)]
orcparse: fix copy and paste of error message

11 years agodocs: add docs for the program directives
Stefan Sauer [Mon, 3 Jun 2013 16:20:10 +0000 (18:20 +0200)]
docs: add docs for the program directives

11 years agoorcprogram-c: fix indent for 2 opcodes
Stefan Sauer [Mon, 3 Jun 2013 05:49:23 +0000 (07:49 +0200)]
orcprogram-c: fix indent for 2 opcodes

11 years agogenerate-*: cosmetic changes
Stefan Sauer [Wed, 29 May 2013 08:30:16 +0000 (10:30 +0200)]
generate-*: cosmetic changes

Print the file name if we use the default. Consider the header_flag for the
default name. Correct the help() desc for the --header flag (it takes no arg).

11 years agogenerate-*: add missing flag to help()
Stefan Sauer [Tue, 28 May 2013 21:03:17 +0000 (23:03 +0200)]
generate-*: add missing flag to help()

11 years agogenerate-bytecode: add ORC_BC_INSTRUCTION_FLAGS to generator
Stefan Sauer [Tue, 28 May 2013 21:11:46 +0000 (23:11 +0200)]
generate-bytecode: add ORC_BC_INSTRUCTION_FLAGS to generator

The checked in orcbytecodes.h already uses the flag.

11 years agoorc-test: Fix typo in #ifdef
Sebastian Dröge [Mon, 27 May 2013 11:52:40 +0000 (13:52 +0200)]
orc-test: Fix typo in #ifdef

11 years agoorc: fix cache flush for iOS
Andoni Morales Alastruey [Thu, 25 Apr 2013 15:09:22 +0000 (17:09 +0200)]
orc: fix cache flush for iOS

Apple does not provide an implementation of __clear_cache in ARM
but sys_icache_invalidate can be used instead

review-by: Sebastian Dröge

11 years agoconfigure: version back to unreleased
David Schleef [Mon, 1 Apr 2013 18:31:59 +0000 (11:31 -0700)]
configure: version back to unreleased

11 years agomips: deactivate loadupdb implementation as it is broken
Guillaume Emont [Fri, 29 Mar 2013 16:34:33 +0000 (11:34 -0500)]
mips: deactivate loadupdb implementation as it is broken

11 years agopkgconfig: in -uninstalled ensure to link with the proper library
Josep Torra [Sat, 30 Mar 2013 11:57:10 +0000 (12:57 +0100)]
pkgconfig: in -uninstalled ensure to link with the proper library

Fixes build of GStreamer in gst-uninstalled on OSX with older liborc
installed from macports at '/opt/local'.

11 years agoconfigure: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
Josep Torra [Sat, 30 Mar 2013 11:52:33 +0000 (12:52 +0100)]
configure: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS

AM_CONFIG_HEADER has been removed in the just-released automake 1.13:
https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html

11 years agoMerge branch '0.4.17'
David Schleef [Sun, 10 Mar 2013 19:16:49 +0000 (12:16 -0700)]
Merge branch '0.4.17'

11 years agoFix build on Android
Sebastian Dröge [Wed, 20 Feb 2013 15:04:01 +0000 (16:04 +0100)]
Fix build on Android

Android doesn't have a libpthread and includes all relevant functions
in libc.

11 years agoorcc: workaround a bug in the gcc 4.2 provided by XCode 3.2.6
Josep Torra [Wed, 20 Feb 2013 14:32:49 +0000 (15:32 +0100)]
orcc: workaround a bug in the gcc 4.2 provided by XCode 3.2.6

When building orc in OSX Snow Leopard with '-O2 -arch i386 -m32' a bug in
the compiler is triggered and wrong assembly is generated with
the following messages:

'non-relocatable subtraction expression, "LC0" minus "L00000000008$pb"'
'symbol: "L00000000008$pb" can't be undefined in a subtraction expression'
'undefined local symbol L00000000008$pb'

The issue is triggered when the compiler tries to optimize for a constant
value in the code but it does a bad job. Declaring 'volatile' the variable
that holds the constant prevents this optimization to be performed and the
orc C generated code can be properly built.

11 years agoRelease 0.4.17 orc-0.4.17
David Schleef [Wed, 20 Feb 2013 06:21:00 +0000 (22:21 -0800)]
Release 0.4.17

11 years agotest: Fix recent commit
David Schleef [Wed, 20 Feb 2013 04:02:03 +0000 (20:02 -0800)]
test: Fix recent commit

Separate allocated data and aligned data.

11 years agoneon: move orc_arm_loadw out of arm backend
David Schleef [Wed, 20 Feb 2013 03:41:36 +0000 (19:41 -0800)]
neon: move orc_arm_loadw out of arm backend