Граф коммитов

377 Коммитов

Автор SHA1 Сообщение Дата
Alon Zakai 26a3a085fc emscripten_jcache_printf 2013-03-04 17:07:25 -08:00
Alon Zakai 1ee2b439f4 remove ASM_JS warning and add check for exception catching being off in it, the last remaining issue for it 2013-03-03 12:49:06 -08:00
Alon Zakai 7880f929b4 inline by default, now that lto is off by default 2013-02-28 11:33:24 -05:00
Alon Zakai 8060d8fc69 disable llvm lto except for -O3, due to issues we have been seeing 2013-02-28 10:43:13 -05:00
Alon Zakai 013dbae927 experimental EMCC_OPTIMIZE_NORMALLY option 2013-02-27 13:05:46 -05:00
Alon Zakai 631f2c60e1 jcache docs 2013-02-27 10:27:51 -05:00
Alon Zakai f4cceb902a fix DEBUG ? 2 checks 2013-02-26 20:19:44 -05:00
Vladimir Vukicevic d08b1ad1ec add cache debugging 2013-02-26 19:42:31 -05:00
Alon Zakai df7d3ce735 clean up response file code 2013-02-26 19:13:09 -05:00
Vladimir Vukicevic b2496c286d Add basic response file parsing to emcc 2013-02-26 17:34:22 -05:00
Alon Zakai e26971d4ef EMCC_FORCE_STDLIBS option 2013-02-25 14:21:22 -05:00
Alon Zakai e24cfb71df only do symbol checks for libcxx etc. if not forcing them anyhow 2013-02-25 11:49:16 -05:00
Alon Zakai 941c8e583d Merge pull request #859 from waywardmonkeys/cmdline-fixes
Cmdline fixes
2013-02-21 18:32:43 -08:00
Bruce Mitchener 21f7959f64 emcc: Improve handling of -O flag.
Previously, while gcc supports -O, emcc would fail. It now interprets
-O as -O2, just as gcc does.

Additionally, it was only looking at the first character after -O, so
nonsense like -O34 would be accepted (and treated as -O3).
2013-02-21 08:50:49 +07:00
Alon Zakai 54ff0c7c5a do not wipe out llvm debug info if linespecific corrections are done 2013-02-20 17:16:01 -08:00
Alon Zakai 5afd8a25d1 remove bad_cast/typeinfo.cpp from libcxx, no longer needed since it is in libcxxabi 2013-02-20 16:58:18 -08:00
Alon Zakai dce46c9c2a build base type_info class with libcxxabi, fixes #862 2013-02-20 16:33:29 -08:00
Alon Zakai 805741f649 closure docs on emcc --help 2013-02-19 07:27:40 -08:00
Alon Zakai 06b262b3f1 run closure in -O3, it makes sense there with the other unsafe optimizations 2013-02-18 15:47:07 -08:00
Alon Zakai 7675539916 remove LLVM debug info in -O1+, since the optimizer removes it anyhow 2013-02-18 12:52:41 -08:00
Alon Zakai 4dc72e6473 fix emcc --version in other dirs 2013-02-18 08:58:05 -08:00
Alon Zakai f9b489d426 default closure to off in all optimization levels - we rely on registerize for much faster effects on runtime speed 2013-02-17 12:43:41 +01:00
Alon Zakai d646177eae use registerize only when not keeping debug, and also use it when closure is disabled, not just ASM_JS mode (which is just one case where closure is disabled) 2013-02-17 11:27:12 +01:00
Alon Zakai 13c0ad5f16 disable closure if debug info was requested (-g) 2013-02-17 11:26:12 +01:00
Alon Zakai 0495b5b1b1 show version and git revision in emcc --version 2013-02-17 05:32:33 +01:00
Alon Zakai 42a910da1f Merge pull request #825 from juj/std
Std
2013-02-03 18:51:29 -08:00
Alon Zakai 3605e51ea9 do not run unnecessary optimizeShiftsAggressive+eliminate steps in asm mode, it is pointless and just wastes compilation time 2013-02-03 10:17:32 -08:00
Alon Zakai 5df5e8b68f do not build musl memcpy 2013-02-02 10:20:50 -08:00
Alon Zakai 4ac3b898cb docs for file packager 2013-02-01 14:28:09 -08:00
Jukka Jylänki 9dd7e94ecd Compile with -std=c++03 consistently on all platforms. By default, Clang 3.2 inconsistently uses C++11 for Windows and C++03 for Linux if user did not specify -std= on the command line. Fixes other.test_embind and *.test_llvmswitch. Add unit tests that confirm that .cpp files are compiled with C++03 std by default. 2013-02-01 22:51:35 +02:00
Alon Zakai db418cbf5c hand-optimize memcpy/asm 2013-01-31 14:50:26 -08:00
Alon Zakai a532ce2fc8 remove emcc asm test wrapping 2013-01-19 20:53:36 -08:00
Alon Zakai 14b42a9d07 do not run js optimizer needlessly on 'last' 2013-01-13 12:25:42 -08:00
Alon Zakai b40b122720 emit 0.0 in asm double definitions 2013-01-12 14:34:39 -08:00
Alon Zakai 49e12f1a7b fix emcc calls to js optimizer 2013-01-12 14:14:34 -08:00
Alon Zakai 832358c295 refactor use of asm in js optimizer 2013-01-12 12:15:41 -08:00
Alon Zakai d233c37920 export memcpy in asm mode so non-asm library functions can use it 2013-01-10 16:15:50 -08:00
Alon Zakai 60c6395d05 fix compiling of postrinsic memcpy when in forced c++ mode for the main file 2013-01-10 10:54:10 -08:00
Alon Zakai a3c256bf34 link in memcpy after opts and lto if it shows up only at that time 2013-01-10 10:38:23 -08:00
Alon Zakai b41145cc84 use musl memcpy instead of out handwritten js one 2013-01-09 16:01:58 -08:00
Alon Zakai 8e283ee92b rename dlmalloc to libc in cache, in preparation for adding further code there 2013-01-09 12:38:43 -08:00
Alon Zakai 4c4caded64 make docs mention that bitcode is the default 2013-01-08 17:59:58 -08:00
Alon Zakai 78dbafb289 keep a coercion right on top of heap accesses in asm mode 2013-01-08 16:43:52 -08:00
Alon Zakai cdbb625213 TODO for asm double literals 2013-01-07 11:48:08 -08:00
Alon Zakai 95feb649fe warn about ASM_JS 2013-01-03 12:10:41 -08:00
Alon Zakai 2325baf34e Merge branch 'incoming' into asm_js
Conflicts:
	src/library_browser.js
2012-12-31 11:56:53 -08:00
Alon Zakai cbf61df3d0 move llvm opt debug messages 2012-12-24 20:49:27 -08:00
Alon Zakai 8aa6919b7a merge incoming 2012-12-21 20:43:10 -08:00
Alon Zakai 4fa23c0a8c improve lto 2012-12-21 10:47:41 -08:00
Alon Zakai 2221065294 avoid separate lto pass 2012-12-21 10:47:41 -08:00
Alon Zakai 68fa40ad92 safely internalize in s_x_x tests too 2012-12-21 10:47:40 -08:00
Alon Zakai 98fda6ea81 do lto before dce, since lto opens up dce opportunities 2012-12-21 10:47:40 -08:00
Alon Zakai 7f1fdbef4c be careful with internalize in llvm LTO, and mark needed symbols for relooper 2012-12-21 10:47:39 -08:00
Alon Zakai e9fe31fb2f llvm 3.2 internalize internalizes even main, so manually keep it and other exports alive 2012-12-21 10:47:39 -08:00
Alan Kligman a2bc9a30de Updated to add a PYTHON config option instead of defaulting to python2. This should preserve the default behavior in a way that can be overridden. 2012-12-19 18:06:48 -05:00
Alan Kligman 315f13e5a1 Updated scripts to call python2 directly rather than relying on python symlink pointing to the right place. See PEP394 for details on why this should be OK. 2012-12-19 18:06:48 -05:00
Alon Zakai 1c796635aa remove --remove-duplicates 2012-12-19 14:02:34 -08:00
Alon Zakai c83b1d4e9e Merge branch 'incoming' into asm_js 2012-12-11 14:01:06 -08:00
Alon Zakai 42b03394eb warni when ignoring libs 2012-12-10 19:01:53 -08:00
Alon Zakai 3ee9d95f98 test fixes and set sign and overflow correction to 1 when in asm mode 2012-12-07 14:23:24 -08:00
Alon Zakai 1189e117b7 improve asm test wrapping 2012-12-07 14:23:22 -08:00
Alon Zakai ee32a53886 move emcc minify decision to after we potentially modify closure 2012-12-07 14:23:20 -08:00
Alon Zakai 48447d1ece typo 2012-12-07 14:23:20 -08:00
Alon Zakai 3c642441a9 do registerize in asm.js+reloop mode, as an alternative to closure 2012-12-07 14:23:20 -08:00
Alon Zakai 1b591a0b0c add eliminator mode for asm 2012-12-07 14:23:19 -08:00
Alon Zakai a917909969 disable closure when ASM_JS 2012-12-07 14:23:19 -08:00
Alon Zakai b0b611c9f7 add parts of system bitcode libraries when necessary, and refactor library inclusion decision code 2012-12-07 12:32:49 -08:00
Alon Zakai 4df6589efa Merge pull request #735 from eclecticdave/emcc_so_fix
Fixes to emcc to make autoconf enable shared objs
2012-12-04 16:45:57 -08:00
Alon Zakai c735bb6469 do not apply -l if not generating an executable or a library 2012-12-03 14:30:09 -08:00
Alon Zakai 30f484d68f ignore argument after -I -L for purposes of input detection in emcc 2012-12-03 13:36:37 -08:00
David Claughton 5d48629cf0 Fixes to emcc to make autoconf enable shared objs
When using emcc as a linker, autoconf disables
shared object support.  This is because it expects
the text returned by the -v and --help options to
match certain things that GNU ld prints.

Specifically it expects the output of emcc -v to include
the word 'GNU' and the output of emcc -v to match the
regexp ': supported targets.* elf'

Modified the messages returned by emcc for these options
to make autoconf happy.
2012-11-30 21:56:00 +00:00
Alon Zakai fc56ff9c04 fix test_failure_error_code 2012-11-23 16:38:47 +01:00
Alon Zakai 453ec4adfa jcache docs 2012-11-23 14:15:24 +01:00
Alon Zakai b74207976b print out total time in emcc in debug mode 2012-11-21 20:47:02 +01:00
Alon Zakai db65c00f8e fix missing jcache passing 2012-11-21 20:47:02 +01:00
Alon Zakai f199880bb1 set up parameter passing for jcache 2012-11-21 20:47:01 +01:00
Alon Zakai ed6571e237 return error code on no input files 2012-11-15 11:46:01 -08:00
Jukka Jylänki 4ab1c8acec Python system command line may come with untrimmed items at least on Windows Vista, cmake is bad at producing these, so trim off the excessive spaces before working on the command line. Fixes other.test_cmake on Windows Vista build bot. 2012-11-14 18:44:23 +02:00
Alon Zakai 587a1b3fdf forward -v to child processes 2012-11-13 17:42:35 -08:00
Jukka Jylänki 4f25d496a1 Don't pass all emcc command line inputs e.g. those of form '-DsomeDefine=1' etc. to shared.Building.is_ar() for testing whether a file by that name is a LLVM archive file. 2012-11-12 21:14:37 +02:00
Alon Zakai d27357b5fe cleanup 2012-11-09 16:27:26 -08:00
Alon Zakai a38333433a stop doing old-relooper-related js optimizer passes 2012-11-08 18:30:49 -08:00
Alon Zakai f0c024d982 refactor link time opts code 2012-11-07 11:39:54 -08:00
Alon Zakai f033c67b5c split up js optimizer passes only in EMCC_DEBUG=2, not 1 2012-11-07 10:57:41 -08:00
Alon Zakai 466af17eb9 strip debug info in -O1 and above by default, unless -g is specified when converting to JS, since (1) js optimizations strip it anyhow, and (2) it slows down compilation 2012-11-07 10:32:54 -08:00
Alon Zakai 7dee40c6bb fix temp dir in emcc 2012-11-06 20:59:08 -08:00
Alon Zakai 6f9780c50e more non-clang configure fixes for configure tests 2012-10-29 18:52:23 -07:00
Alon Zakai 99fb6b9b81 more non-clang configure work and debugging tools 2012-10-29 18:10:35 -07:00
Alon Zakai 83faf34660 configure debugging tools 2012-10-29 17:25:42 -07:00
Alon Zakai dcc877f3bd add experimental and non-enabled non-clang configure mode 2012-10-28 15:23:56 -07:00
Alon Zakai ed88bc7051 memory growth must be manually enabled with ALLOW_MEMORY_GROWTH, in which case the eliminator runs in safe mode 2012-10-27 20:07:07 -07:00
Alon Zakai d6e695eb2b comment on -O3 2012-10-26 17:53:46 -07:00
Alon Zakai 94ee68349b integrate eliminator as js optimizer pass 2012-10-23 17:35:37 -07:00
Alon Zakai 2781c7dca6 report times of passes in EMCC_DEBUG 2012-10-20 17:48:35 -07:00
Alon Zakai 844faf36eb do not include C library in shared library 2 2012-10-17 12:43:59 -07:00
Alon Zakai 922608f31f build libcxx and libcxxabi using direct commands, not a makefile, to make this more easily portable to windows where make is not always present 2012-10-13 17:10:01 -07:00
Alon Zakai 3a156a34e8 get almost all of embind test passing 2012-10-12 16:26:22 -05:00
Alon Zakai 217dbc2b3f embind integration in emcc and work towards a test 2012-10-12 15:40:12 -05:00
Alon Zakai 6a1702024c Merge branch 'master' into incoming 2012-10-12 14:56:21 -05:00
Alon Zakai f377f670cc indentation fix 2012-10-11 14:00:20 -05:00