diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/04-default-is-optimized.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/04-default-is-optimized.patch | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/meta/recipes-devtools/python/python3/04-default-is-optimized.patch b/meta/recipes-devtools/python/python3/04-default-is-optimized.patch index d5afd40025..3b8f264a58 100644 --- a/meta/recipes-devtools/python/python3/04-default-is-optimized.patch +++ b/meta/recipes-devtools/python/python3/04-default-is-optimized.patch | |||
@@ -1,20 +1,21 @@ | |||
1 | Upstream-Status: Inappropriate [embedded specific] | 1 | Upstream-Status: Inappropriate [embedded specific] |
2 | 2 | ||
3 | Updated original patch for python 2.7.3 | ||
4 | |||
5 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
6 | 2012/05/01 | ||
7 | |||
8 | |||
9 | # when compiling for an embedded system, we need every bit of | 3 | # when compiling for an embedded system, we need every bit of |
10 | # performance we can get. default to optimized with the option | 4 | # performance we can get. default to optimized with the option |
11 | # of opt-out. | 5 | # of opt-out. |
12 | # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de> | 6 | # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de> |
13 | 7 | ||
14 | Index: Python-3.2.3/Python/compile.c | 8 | |
9 | 2012/05/01 | ||
10 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | |||
12 | Rebased for 3.4.2 02/2015 | ||
13 | Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | ||
14 | |||
15 | Index: Python-3.4.2/Python/compile.c | ||
15 | =================================================================== | 16 | =================================================================== |
16 | --- Python-3.2.3.orig/Python/compile.c 2012-04-10 23:54:08.000000000 -0700 | 17 | --- Python-3.4.2.orig/Python/compile.c |
17 | +++ Python-3.2.3/Python/compile.c 2012-09-19 15:58:46.649123998 -0700 | 18 | +++ Python-3.4.2/Python/compile.c |
18 | @@ -30,7 +30,7 @@ | 19 | @@ -30,7 +30,7 @@ |
19 | #include "symtable.h" | 20 | #include "symtable.h" |
20 | #include "opcode.h" | 21 | #include "opcode.h" |
@@ -24,28 +25,28 @@ Index: Python-3.2.3/Python/compile.c | |||
24 | 25 | ||
25 | #define DEFAULT_BLOCK_SIZE 16 | 26 | #define DEFAULT_BLOCK_SIZE 16 |
26 | #define DEFAULT_BLOCKS 8 | 27 | #define DEFAULT_BLOCKS 8 |
27 | Index: Python-3.2.3/Modules/main.c | 28 | Index: Python-3.4.2/Modules/main.c |
28 | =================================================================== | 29 | =================================================================== |
29 | --- Python-3.2.3.orig/Modules/main.c 2012-04-10 23:54:07.000000000 -0700 | 30 | --- Python-3.4.2.orig/Modules/main.c |
30 | +++ Python-3.2.3/Modules/main.c 2012-09-19 16:00:32.153124053 -0700 | 31 | +++ Python-3.4.2/Modules/main.c |
31 | @@ -46,7 +46,7 @@ | 32 | @@ -38,7 +38,7 @@ static wchar_t **orig_argv; |
32 | static int orig_argc; | 33 | static int orig_argc; |
33 | 34 | ||
34 | /* command line options */ | 35 | /* command line options */ |
35 | -#define BASE_OPTS L"bBc:dEhiJm:OqRsStuvVW:xX:?" | 36 | -#define BASE_OPTS L"bBc:dEhiIJm:OqRsStuvVW:xX:?" |
36 | +#define BASE_OPTS L"bBc:dEhiJm:NOqRsStuvVW:xX:?" | 37 | +#define BASE_OPTS L"bBc:dEhiIJm:NOqRsStuvVW:xX:?" |
37 | 38 | ||
38 | #define PROGRAM_OPTS BASE_OPTS | 39 | #define PROGRAM_OPTS BASE_OPTS |
39 | 40 | ||
40 | @@ -71,6 +71,7 @@ | 41 | @@ -64,6 +64,7 @@ static char *usage_2 = "\ |
41 | -m mod : run library module as a script (terminates option list)\n\ | 42 | -m mod : run library module as a script (terminates option list)\n\ |
42 | -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ | 43 | -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ |
43 | -OO : remove doc-strings in addition to the -O optimizations\n\ | 44 | -OO : remove doc-strings in addition to the -O optimizations\n\ |
44 | +-N : do NOT optimize generated bytecode\n\ | 45 | +-N : do NOT optimize generated bytecode\n\ |
45 | -q : don't print version and copyright messages on interactive startup\n\ | 46 | -q : don't print version and copyright messages on interactive startup\n\ |
46 | -R : use a pseudo-random salt to make hash() values of various types be\n\ | 47 | -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ |
47 | unpredictable between separate invocations of the interpreter, as\n\ | 48 | -S : don't imply 'import site' on initialization\n\ |
48 | @@ -407,8 +408,8 @@ | 49 | @@ -418,8 +419,8 @@ Py_Main(int argc, wchar_t **argv) |
49 | 50 | ||
50 | /* case 'J': reserved for Jython */ | 51 | /* case 'J': reserved for Jython */ |
51 | 52 | ||