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

687 Коммитов

Автор SHA1 Сообщение Дата
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
Alon Zakai 48dbd4de6e differentiate suffixes from endings in filename_type_ending as well 2013-12-24 09:47:20 -08:00
Alon Zakai b1f10031a3 clearly differentiate suffixes from endings (dot + suffix) in emcc 2013-12-24 09:41:07 -08:00
Alon Zakai cb046b74b3 do not link in dynamic libraries when compiling to bitcode in intermediate stages, only link them in when building to js or html. closes #1886 2013-12-23 21:22:46 -08:00
Alon Zakai 8dd12f6e6c error on unsupported features in fastcomp 2013-12-21 11:08:25 -08:00
Alon Zakai 058910ca69 fix emcc usage of file packager 2013-12-20 20:42:20 -08:00
Alon Zakai 982d3e0bc5 Merge pull request #1922 from coolwanglu/embed_dot_files
--exclude-file
2013-12-20 17:26:15 -08:00
Alon Zakai 2d5f34d150 simplify ir for fastcomp after the autodebugger runs 2013-12-20 11:27:25 -08:00
Alon Zakai 4efa4270a2 simplify for fastcomp together with other link operations 2013-12-19 22:01:09 -08:00
Alon Zakai ed65cfdcf1 move fastcomp simplification code into emcc, and simplify it 2013-12-19 21:51:37 -08:00
Alon Zakai 0d3ef7fc93 avoid llvm-dis in fastcomp 2013-12-19 21:32:41 -08:00
Jukka Jylänki e98f5e310d Implement command line passing to work to emrun when --emrun is passed. 2013-12-19 18:10:29 +02:00
Alon Zakai 611d08896c allow -O0 in fastcomp, still in asm mode 2013-12-16 21:06:54 -08:00