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

799 Коммитов

Автор SHA1 Сообщение Дата
Alon Zakai ac641733e2 run sanity checks with -v + an input file 2014-07-23 12:07:12 -07:00
Alon Zakai 7e9e2436a5 Module.memoryInitializerPrefixURL option; #2542 2014-07-21 16:29:23 -07:00
Alon Zakai 18789e196d do not set EMCC_DEBUG=1 when -v; fixes #2538 2014-07-21 15:58:03 -07:00
Alon Zakai 812f051215 DEMANGLE_SUPPORT option to use libcxxabi's demangler in stackTrace() 2014-07-21 14:26:38 -07:00
Alon Zakai 2acb8de340 use compiler opts in -E, to use our target, system dirs, etc.; fixes #2534 2014-07-17 18:48:50 -07:00
Alon Zakai 1f4ad8a57b mention that .mem must be alongside .js 2014-07-17 18:17:14 -07:00
Alon Zakai 19ac7edd38 document -v saving temp files; #2538 2014-07-17 18:12:45 -07:00
Jukka Jylänki e9fe6202d5 Fix missing param in docs for --js-opts. 2014-07-15 11:07:25 +02:00
Alon Zakai 89cd8eb191 Merge pull request #2512 from waywardmonkeys/fix-windows-settings-issue
avoid the need for replacing backslashes with slashes on windows for some settings
2014-07-10 17:07:59 -07:00
Chad Austin c4b0f741fa avoid the need for replacing backslashes with slashes on windows for some settings 2014-07-10 22:18:53 +07:00
Alon Zakai 28f1413d46 move check for noExitRuntime into exit(), and fix up tests 2014-07-09 13:28:27 -07:00
Jukka Jylänki 3257531978 Add comment explaining why .dll is not present in DYNAMICLIB_ENDINGS. 2014-07-09 13:48:49 +03:00
Jukka Jylänki f3cb551046 Remove ".dll" from DYNAMICLIB_ENDINGS, since on Windows one never links to a .dll file directly (e.g. via a command line -lFile -> libFile.dll) either, but instead separate import libraries with suffix .lib are used. Note that for crosscompiling, it is _not_ recommended to generate Emscripten static bitcode libraries with suffix .lib, but instead generating files with suffixes .bc (or .a) is better form. 2014-07-08 17:02:37 +03:00
Alon Zakai 1703048fc6 re-enable optimizeShifts in non-asm builds; fixes #2481 2014-07-05 15:56:26 -07:00
Alon Zakai e6811d0e2d emit memory initialization file by default in -O2+ 2014-07-03 14:48:19 -07:00
Alon Zakai ada1288ddb PROXY_TO_WORKER_FILENAME option 2014-06-17 15:50:43 -07:00
Alon Zakai ac2c7bda57 support --proxy-to-worker with js target, emitting 2 files for client and worker 2014-06-16 16:10:46 -07:00
Alon Zakai 89d745163d cleanup 2014-06-16 15:33:48 -07:00
Alon Zakai ba387574f2 Merge branch 'incoming' into proxyGL 2014-06-16 14:40:45 -07:00
Alon Zakai 5bbcaa3df5 do not modify textual memory initializer when emitting source maps, as it messes up line numbers; fixes #2410 2014-06-09 15:18:28 -07:00
Alon Zakai 2fe530336f show an error on NO_DYNAMIC_EXECUTION with embind 2014-06-08 09:33:35 -07:00
Alon Zakai e543d370ae generalize context proxying to support not just 2d contexts 2014-06-05 16:04:03 -07:00
Alon Zakai 03d78f8afd export everything in the main module, so side modules can access it 2014-06-04 10:32:21 -07:00
Alon Zakai b2e680a109 NO_DYNAMIC_EXECUTION option to disable features using eval() or new Function() 2014-05-29 13:47:02 -07:00
Alon Zakai a0bb46803b fix case of exceptions whitelist being empty 2014-05-28 13:16:58 -07:00
Alon Zakai deaf15da84 clean up shell code using uglify, in optimized builds, when not using closure 2014-05-27 16:08:23 -07:00
Alon Zakai cad88b317c proper error message for linkable modules not supported in fastcomp 2014-05-27 11:36:57 -07:00
Alon Zakai d46e9600bc set MAX_SETJMPS to fastcomp; 1.18.4 2014-05-27 11:26:40 -07:00
Ryan Sturgell ca5246e413 Add whitelist of supported link flags 2014-05-23 10:50:12 -07:00
Alon Zakai 447f96296b Merge branch 'archive_groups' of github.com:rsturgell/emscripten into incoming
Conflicts:
	AUTHORS
2014-05-20 12:58:27 -07:00
Ryan Sturgell 6ccf5ba0e4 Archive groups code review changes. 2014-05-19 23:15:17 -07:00
Alon Zakai d3e3d803ad warn on bad exports, fixes #2338 2014-05-12 11:35:58 -07:00
Ryan Sturgell 6556a69f28 Track original flag positions in emcc.
Source files, libs, and linker flags all need to be separately
processed.  This allows them to be correctly shuffled back together for
further link processing.
2014-05-07 16:44:31 -07:00
Alon Zakai 77aa2a72f3 emit a global const for Math_fround(0) to avoid function call overheads in the fround polyfill 2014-05-03 12:29:23 -07:00
Alon Zakai 63f913cc53 fix return code when precompiling headers 2014-04-30 13:26:47 -07:00
Alon Zakai 9f99c740d8 allow registerizeHarder with outlining 2014-04-30 13:19:13 -07:00
Alon Zakai d5cf59ac87 support -o with precompiled headers; fixes #2320 2014-04-29 14:45:40 -07:00
Chad Austin ef5c2dfb21 enable asm.js when using embind 2014-04-13 09:28:41 -07:00
Alon Zakai 3d43191017 Merge pull request #2232 from abergmeier/empkg_prerequisites
Empkg prerequisites
2014-04-03 13:09:48 -07:00
Andreas Bergmeier 7bcb4e0be2 Apply requested formatting changes. 2014-04-03 15:44:19 +02:00
Andreas Bergmeier 5d3c5f80ff Add valid_abspath option to emcc --help. 2014-04-03 15:36:02 +02:00
Alon Zakai cde38c81c2 fix the case where emcc's input and output is a bitcode file 2014-03-28 16:52:28 -07:00
Alon Zakai 20bfe6cf84 emcc logging improvements 2014-03-28 16:33:34 -07:00
Alon Zakai 9ce739dbab improve debug logging of emcc invocation 2014-03-27 13:25:18 -07:00
Alon Zakai e01dac87da typo in .d code generation 2014-03-26 17:43:57 -07:00
Alon Zakai c4038a1fc9 handle --default-object-ext properly, and other emcc fixes 2014-03-26 10:43:07 -07:00
Alon Zakai 78d5d9c1e1 let emcc directly access bitcode files when possible, to emit proper .d files and avoid unnecessary copies 2014-03-25 17:55:34 -07:00
Alon Zakai 5817cd8af0 --emit-symbol-map option 2014-03-24 20:23:11 -07:00
Alon Zakai 5cd4da6dee comment on webrtc test 2014-03-18 12:25:55 -07:00
Alon Zakai dc797a4570 make simplifyIfs a settings option 2014-03-17 17:56:17 -07:00
Alon Zakai 6c31546ced uncommaify between ifs that can potentially be simplified 2014-03-17 17:56:17 -07:00
Alon Zakai 3215f80b20 simplifyIfs js optimizer pass 2014-03-17 17:56:17 -07:00
Andreas Bergmeier 47df13e72b Add option valid-abspath to add absolute path, which should be considered valid. 2014-03-17 14:45:26 +01:00
Alon Zakai 355a67d3a1 add -profiling option 2014-03-14 19:56:21 -07:00
Alon Zakai f69f770f7c improve CHECK_HEAP_ALIGN message 2014-03-11 10:07:48 -07:00
Alon Zakai 131713b71a avoid llvm-dis when using save-bc in fastcomp 2014-03-10 14:16:11 -07:00
Alon Zakai 54b0f19d9e forward CLOSURE_COMPILER to settings, and use that to avoid a closure-specific workaround for Module detection; fixes #2209 2014-03-10 13:24:37 -07:00
Alon Zakai b2f504275d add commented out line to help debugging llvm opt aborts 2014-03-06 11:42:43 -08:00
Alon Zakai 20d5ffb592 add docs and testing for mem init file being async 2014-03-06 11:42:43 -08:00
Alon Zakai 8acb7867b3 make NO_EXIT_RUNTIME work properly with llvm lto 2014-02-27 16:02:53 -08:00
Alon Zakai b4605f200c run -globalopt when NO_EXIT_RUNTIME, to get rid of global initializers entirely in some cases 2014-02-27 12:47:33 -08:00
Alon Zakai d57fad6e2f support -Os and -Oz as arguments to emcc 2014-02-27 12:47:33 -08:00
Alon Zakai 28cd0d4f2b improve -v output, and add some docs 2014-02-26 10:56:22 -08:00
Alon Zakai 01efb0bfc5 pass NO_EXIT_RUNTIME flag to fastcomp and add test 2014-02-26 09:48:27 -08:00
Alon Zakai e2d05d569d run sanity checks on emcc -v even without inputs 2014-02-25 21:48:03 -08:00
Alon Zakai 52e38c266a check sanity on emcc -v 2014-02-25 21:45:44 -08:00
Alon Zakai 3e489d4ba4 run a sanity check after clearing the cache 2014-02-25 20:23:56 -08:00
Dan Gohman 264a5a91c4 Introduce the asmjs-unknown-emscripten target triple. 2014-02-25 11:58:52 -08:00
Dan Gohman e024e7f3ac Fix a variety of pylint warnings. 2014-02-25 11:58:52 -08:00
Alon Zakai a75d43ec8d Merge branch 'fastcomp-by-default' into incoming 2014-02-24 14:33:34 -08:00
Alon Zakai ae764ac73f deprecate jcache 2014-02-24 12:36:55 -08:00
Haneef Mubarak 960e1eb848 update year to 2014 2014-02-22 12:12:34 -08:00
Alon Zakai bc0a257c98 error on CORRUPTION_CHECK in fastcomp 2014-02-21 17:00:24 -08:00
Alon Zakai 005950752c RUNTIME_TYPE_INFO is not supported in fastcomp 2014-02-21 15:13:03 -08:00
Alon Zakai 91745dd0c8 add message pointing people to the fastcomp wiki page that explains how to disable it, when a compiler setting is not fastcomp-compatible 2014-02-21 11:57:30 -08:00
Alon Zakai d484101045 avoid warning about aliasing function pointers in fastcomp, it has good debug info on assertions 1 and especially 2 anyhow 2014-02-21 10:58:18 -08:00
Alon Zakai 025dea98e4 turn fastcomp on by default, disabling can be done with EMCC_FAST_COMPILER=0 in the env 2014-02-21 10:10:49 -08:00
Alon Zakai 2f9106e232 error on INIT_HEAP in fastcomp 2014-02-19 13:20:45 -08:00
Alon Zakai 722a170453 support reserved function pointers in fastcomp 2014-02-17 18:14:59 -08:00
Alon Zakai 36baff8892 error on MAX_SETJMPS changed in fastcomp 2014-02-17 17:19:45 -08:00
Alon Zakai 749325298a support memory growth in (non-validating) asm.js 2014-02-16 19:28:43 -08:00
Alon Zakai 153f2d9352 RETAIN_COMPILER_SETTINGS, Runtime.getCompilerSetting and emscripten_get_compiler_setting - an optional way to look up compiler flags at runtime 2014-02-16 12:30:22 -08:00
Alon Zakai ea8830dc5c improve emcc help on shell file, and add minimal shell file example 2014-02-13 14:01:34 -08:00
Alon Zakai e22e4a8192 optimize redundant frounds in -O3 2014-02-11 15:24:42 -08:00
Dan Gohman 6342cd7fbc Use -mllvm -disable-llvm-optzns.
The -O options affect the clang front-end in a variety of ways, so allow
them to be passed through to clang. To disable just the optimization passes,
use -mllvm -disable-llvm-optzns.
2014-02-10 16:40:31 -08:00
Alon Zakai 4bdc1c2d1d validate as asm.js in fastcomp -O1 and above, not -O0 output which is very unoptimized 2014-02-10 10:15:05 -08:00
Alon Zakai 079f019c35 detect .C as c; fixes #2109 2014-02-09 20:26:35 -08:00
Alon Zakai ab1ea19af2 deprecate --split option and disable browser tests using it in fastcomp 2014-02-09 14:50:42 -08:00
Alon Zakai 9faadeb8a4 enable legacy gl emulation in fastcomp 2014-02-09 11:52:02 -08:00
Alon Zakai b3ab733682 system libs fixes 2014-02-08 20:31:56 -08:00
Alon Zakai 157f3151a4 move system libs calculation to its own file 2014-02-08 12:14:56 -08:00
Alon Zakai 2c1fbefac1 TODO 2014-02-07 16:45:33 -05:00
Alon Zakai 4a2e11d8d4 move deps info to file 2014-02-07 16:43:18 -05:00
Alon Zakai 94c4724ebf make sdl malloc hack nicer, and improve back deps trick 2014-02-07 13:45:15 -05:00
Alon Zakai 534faf1530 add mechanism to add a C library dependency from a JS library, in emcc 2014-02-07 13:36:50 -05:00
Alon Zakai f546a415cc do not include system libs in shared libs 2014-02-07 11:32:53 -05:00
Alon Zakai b286fb5aa3 comments on --embed-file being inefficient, and recommending --preload-file 2014-02-07 10:48:58 -05:00
Jukka Jylänki 95b77f9e4a Add strcoll as well so that library.js does not need to depend on musl libc code. 2014-02-06 17:26:38 -05:00
Jukka Jylänki a2f95d5098 Add optimized versions of musl libc string and memory comparison functions. 2014-02-06 17:07:04 -05:00
Alon Zakai 13f89e4c79 avoid blobs when not necessary for client code mods 2014-02-05 18:31:55 -05:00
Alon Zakai 0c9c8b4c52 optimize out fround calls on clients that do not support fround 2014-02-05 15:16:05 -05:00
Alon Zakai 3136112a00 proper fix for simplifying f32-int bitcasts 2014-02-03 23:38:50 -05:00
Alon Zakai a3632a129d support EXCEPTION_CATCHING_WHITELIST in fastcomp 2014-02-02 17:07:37 -08:00
Alon Zakai 53af8ab2eb comment 2014-01-31 16:21:10 -08:00
Alon Zakai 8a6bb8d78f option to allow modifying code before executing it 2014-01-31 15:59:23 -08:00
Alon Zakai 146eff4208 run js opts for safe heap 2014-01-28 16:39:55 -08:00
Alon Zakai dd8ef8c71c comment 2014-01-27 18:36:11 -08:00
Alon Zakai c1c1cb7533 fix some safeHeap errors with the new exceptions code; fixes #2068 2014-01-27 17:52:02 -08:00
Alon Zakai 25e736cbb7 improve mem init help text; fixes #2066 2014-01-27 15:56:59 -08:00
Alon Zakai a5243b4365 support precompiled headers; fixes #2045 2014-01-26 19:25:17 -08:00
Alon Zakai cc77e14246 do not registerizeHarder when outlining 2014-01-21 19:20:54 -08:00
Ryan Kelly 68d6af077f Registerize based on full liveness analysis.
This does a much-more-expensive but much-more-thorough registerization
pass based a live-variable analysis for each function.

azakai: perform this on -O3 and above
2014-01-21 17:50:46 -08:00
Alon Zakai e1f18ae55d document what -O3 will be 2014-01-21 16:07:44 -08:00
Alon Zakai 4757fe2534 deprecate -O3 in preparation for using it for heavier js opts 2014-01-21 14:37:07 -08:00
Alon Zakai 7fff4e3eaa better error message for asm.js not supporting growable heap yet 2014-01-19 12:09:18 -08:00
Alon Zakai 27a17f57f8 don't remove whitespace in emcc, not worth the time 2014-01-17 15:10:12 -08:00
Alon Zakai c0ea7656d7 clean up emcc timing logging 2014-01-17 14:31:40 -08:00
Alon Zakai 620ff9a94d optimize memory initializer if it is large 2014-01-17 10:01:04 -08:00
Alon Zakai e138af189b remove current memory initialization chunking via .concat(..) 2014-01-17 10:01:04 -08:00
Alon Zakai 5bb976ed71 add fnmatch; fixes #2002 2014-01-16 15:42:14 -08:00
Alon Zakai a310827131 enable a form of safe heap in asm, using js optimizer pass to ensure full coverage and support for fastcomp 2014-01-16 11:27:39 -08:00
Alon Zakai 7600935358 Merge pull request #2016 from rfk/rfk/minify-names-separately
Split name-minification into a separate pass from registerization.
2014-01-15 21:33:17 -08:00
Alon Zakai c5522c6456 add musl fputws, fix vswprintf, add testing for fwprintf and swprintf as well 2014-01-15 11:26:48 -08:00
Ryan Kelly ba54ecbc93 Split name-minification into a separate pass from registerization. 2014-01-16 01:02:43 +11:00
Bruce Mitchener db88b6cd9b Fill in undefined math symbols. 2014-01-15 12:01:56 +07:00
Bruce Mitchener 8f85a8ed68 Move err/warn/etc from libc to libcextra. 2014-01-14 15:05:21 +07:00
Bruce Mitchener 58713dc426 Replace getopt_long with musl version. 2014-01-14 15:05:21 +07:00
Bruce Mitchener bba4dd6fd3 Replace implementation of warn*/err*.
This eliminates a large number of warnings about incompatible function pointer
casts when compiling for asm.js.
2014-01-14 15:05:21 +07:00
Bruce Mitchener a15486ffea Fix asm2 compilation where __toread was used. 2014-01-14 15:05:20 +07:00
Alon Zakai 0e36f078d4 add fputwc, which enables wprintf 2014-01-13 17:03:24 -08:00
Bruce Mitchener e3825afd87 Move scalbn to libc to fix broken functionality. Disable test on x86. 2014-01-14 02:21:11 +07:00
Bruce Mitchener 3b62c6587c Add lots of math functions. 2014-01-14 02:21:11 +07:00
Bruce Mitchener b167b3c751 Add gamma functions. 2014-01-14 02:21:11 +07:00
Bruce Mitchener c0229303f8 Add strtod(), wcstod(), wcstol() and friends.
This implementation of strtod() replaces the old as it implements
support for parsing hex constants which is needed by various tests.
2014-01-14 02:21:11 +07:00
Bruce Mitchener 4353f5df1e Missing string.h functionality. 2014-01-13 17:59:15 +07:00
Alon Zakai bcce3b5fb4 support exceptions using fastcomp 2014-01-09 16:06:40 -08:00
Alon Zakai 0b3416a1dc Merge branch 'incoming' into llvm-3.4
Conflicts:
	tests/test_benchmark.py
	tools/shared.py
2014-01-07 15:40:53 -08:00
Alon Zakai 582e3e62db make aggressiveVariableElimination usable through a setting 2014-01-07 12:24:40 -08:00
Alon Zakai c683909099 apply EMMAKEN_CFLAGS directly to commandline, not just to clang calls, so that we can parse it in emcc and e.g. disable vectorization as necessary 2014-01-06 13:38:25 -08:00
Alon Zakai c6cba031d9 other.test_emcc fixes for fastcomp 2014-01-06 11:23:37 -08:00
Alon Zakai 0895a9801e todo about async script tags 2014-01-04 16:34:06 -08:00
Alon Zakai 6d87b56593 adjust TOTAL_MEMORY at runtime, to take into account last minute changes to Module.TOTAL_MEMORY 2014-01-02 18:53:44 -08:00
Alon Zakai 8bd21f1fff deprecate compression 2014-01-02 18:38:44 -08:00
Alon Zakai 8468d6fa55 fix --save-bc in fastcomp 2013-12-30 16:59:01 -08:00
Alon Zakai 094cbfd615 disable jcache in fastcomp, and fake emscripten_jcache_printf 2013-12-30 12:14:49 -08:00
juj d492872d61 Merge pull request #1946 from juj/default_obj_ext
--default-obj-ext
2013-12-30 02:11:35 -08:00
Jukka Jylänki 480fa4d6ea Define behavior that 'emcc -c a.c -o dir/' shall compile and generate object file 'dir/a.o'. Previous behavior when directory was specified in -o was accidental, and it generated an object file 'dir/a_0.o'. Add new command line option --default-obj-ext that allows specifying the file suffix that is used when the output object filename is generated in this manner. '.o' is a good default suffix since it parallels the existing gcc/clang/linux convention. For Windows Visual Studio+CMake+Emscripten integration, CMake has been hardcoded to assume that if Visual Studio is targeted, the compiler will always generate '.obj' files. Hence having the ability to adjust the default naming scheme with --default-obj-ext enables working around CMake inflexibility, and add support for CMake+VS+Emscripten triple. 2013-12-29 11:04:23 +02:00
Alon Zakai 2dc5962c8b better error on missing input files, fixes #1930 2013-12-25 12:21:57 -08:00
Alon Zakai 4202310613 fix LEAVE_INPUTS_RAW in fastcomp 2013-12-24 10:55:37 -08:00
Alon Zakai a0ce0dce7d properly check for libx.so.1.2.3 types when deciding what to link in statically, and improve testing for that; fixes #1886 2013-12-24 10:07:25 -08:00