summaryrefslogtreecommitdiff
path: root/orc/orcvariable.h
Commit message (Collapse)AuthorAgeFilesLines
* compiler: keep track of temp variables that contain param/constWim Taymans2014-09-191-0/+3
| | | | | | | 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.
* orcc: workaround a bug in the gcc 4.2 provided by XCode 3.2.6Josep Torra2013-02-201-0/+3
| | | | | | | | | | | | | | | 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.
* Split headers out of orcprogram.hDavid Schleef2012-03-261-0/+75