summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix function declaration warnings with clang (#226)HEADmasterBiswapriyo Nath2023-05-171-2/+1
| | | | | | | | | | | | This fixes the following compiler warnings with clang tools/genperf/perfect.c:65:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] frontends/yasm/yasm.c:1379:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] modules/objfmts/elf/elf.c:225:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
* Fix allocator mismatch (#107)Duncan Ogilvie2023-05-122-11/+11
|
* Fix EOL handling in genmacro.c (#123)mx2372020-05-031-1/+1
|
* Avoid shadowing warning when building with VS2015Scott Graham2015-02-191-3/+3
|
* missing 'break' in initalen()Maks Naumov2014-04-111-0/+1
|
* Drop success-path chatter from genperf.Ami Fischman2012-03-021-9/+0
|
* re2c: Work around tmpfile() issue on win32.Peter Johnson2011-10-311-0/+59
| | | | | | | | | tmpfile() defaults to C:\, and on Windows 7 can run into permissions issues. Add workaround implementation from cairo (http://cgit.freedesktop.org/cairo/commit/?id=4fa46e3caaffb54f4419887418d8d0ea39816092) See also: http://msdn.microsoft.com/en-us/library/x8x7sakw(v=VS.80).aspx (community content section)
* re2c: Use tmpfile instead of fixed temporary filename.Peter Johnson2011-10-021-2/+1
| | | | | | | | | This could cause a race condition when running parallel make. Tracked down by Volker Braun. [#238 state:resolved] [#165 state:resolved]
* Remove $Id$ and RCSID() usage.Peter Johnson2011-08-1917-25/+4
| | | | These are useless now that we're using git.
* Fix build with recent Cython.Peter Johnson2011-06-251-2/+2
| | | | [#216 state:resolved]
* Update Pyxelator to avoid deprecation warnings on recent Python versions.Peter Johnson2010-01-032-6/+20
| | | | svn path=/trunk/yasm/; revision=2264
* Use Cython instead of Pyrex.Peter Johnson2010-01-012-3/+3
| | | | svn path=/trunk/yasm/; revision=2256
* Some minor Pyrex fixes:Peter Johnson2010-01-012-5/+5
| | | | | | | - Don't return self in IntNum.__abs__ (return a copy instead). - yasm_sym_status enum values have YASM_ prefixes. svn path=/trunk/yasm/; revision=2255
* All Pyrex files: Use __cinit__ instead of __new__ in extension classes.Peter Johnson2010-01-016-10/+10
| | | | svn path=/trunk/yasm/; revision=2254
* Unbreak python bindings on 64-bit Linux.Peter Johnson2009-12-302-6/+2
| | | | svn path=/trunk/yasm/; revision=2252
* Fix #189: Avoid compiler warning in genperf.Peter Johnson2009-11-031-1/+1
| | | | svn path=/trunk/yasm/; revision=2235
* Fix #187: Add new variable CFLAGS_FOR_BUILD for CC_FOR_BUILD compiles.Peter Johnson2009-10-313-15/+30
| | | | | | | | | Due to the need to support cross-building, CC_FOR_BUILD is used instead of CC for tools that will be run as part of the build process. However, it is sometimes necessary to add custom CFLAGS for these builds; CFLAGS_FOR_BUILD supports this cleanly. svn path=/trunk/yasm/; revision=2234
* Add gencheck.py Python script to make it easier to generate expected resultsPeter Johnson2009-05-101-0/+59
| | | | | | | from long .asm files that generate simple binary output (e.g. for opcode testing). svn path=/trunk/yasm/; revision=2198
* Enable DLL/plugin builds with cmake on Windows.Peter Johnson2008-05-231-0/+1
| | | | | | | Add proper declspec dllimport/dllexport to all libyasm functions. Use macros to make these do nothing on non-cmake and Unix builds. svn path=/trunk/yasm/; revision=2101
* Add cmake build infrastructure.Peter Johnson2008-05-224-0/+24
| | | | | | | | | | | | | | | | | Not default nor even distributed in the .tar.gz, the cmake build allows for loadable yasm plugins by building libyasm as a shared library. Example plugins are in the plugins/ directory, and may be loaded into a cmake-built yasm using the -N command line option (non-cmake builds will not have this option). Tested only on Linux so far, but should be relatively painless to port to Windows thanks to the use of cmake rather than libtool to create shared libraries. The only modification to the main source tree is some conditional-compiled additions to yasm.c. svn path=/trunk/yasm/; revision=2098
* Make ISO C89 compliant (too long constant string, use of // comment).Peter Johnson2008-05-151-4/+7
| | | | svn path=/trunk/yasm/; revision=2096
* Commit moved, updated genmacro script missed in [2082] commit.Peter Johnson2008-05-093-0/+151
| | | | svn path=/trunk/yasm/; revision=2084
* Fix some re2c memory/initialization issues.Peter Johnson2008-04-253-2/+6
| | | | | | Found by: valgrind svn path=/trunk/yasm/; revision=2072
* tools/xdf: Make 64-bit safe.Peter Johnson2008-01-192-13/+38
| | | | svn path=/trunk/yasm/; revision=2027
* re2c: Fix -b generation in certain cases.Peter Johnson2007-12-151-1/+2
| | | | | | Fix from re2c repo r417 (sourceforge bug 1479044). svn path=/trunk/yasm/; revision=2025
* Remove unused variable.Peter Johnson2007-09-181-1/+0
| | | | svn path=/trunk/yasm/; revision=1959
* Finish cleanup made in [1948].Peter Johnson2007-09-141-1/+1
| | | | svn path=/trunk/yasm/; revision=1951
* Now that part of the build uses just Python, break apart the PythonPeter Johnson2007-09-131-1/+1
| | | | | | and Pyrex (only required for bindings) checks. svn path=/trunk/yasm/; revision=1948
* Now that genperf takes an output filename, change informational outputsPeter Johnson2007-09-111-3/+3
| | | | | | to stdout instead of stderr. svn path=/trunk/yasm/; revision=1942
* Change genperf to take input and output filenames rather than outputting toPeter Johnson2007-09-102-10/+20
| | | | | | | standard output. This makes for better error handling behavior with make (redirecting the standard output could leave empty files behind on error). svn path=/trunk/yasm/; revision=1939
* Change x86 instruction tables to be automatically generated.Peter Johnson2007-09-101-0/+5
| | | | | | | | | | | | | | | This combines the C and perfect hash tables into a single source file, and allows for easier future changes to the source-level structures. The Python-built files are included in the distribution so that Python is not added as a dependency. The generated code has been verified equal against the old tables, excepting a number of bugfixes. Most of the bugs fixed are in the CPU field, plus a few GAS suffix fixes. svn path=/trunk/yasm/; revision=1937
* Windows build fixes:Peter Johnson2007-09-081-4/+16
| | | | | | | | * modules.vcproj: Add x86cpu.c, x86regtmod.c, and lc3b arch files to fix build. * x85geninsn.c: Clean up a couple of unused variables. * genperf.c: Use sprintf instead of snprintf; convert filename backslashes to slashes. svn path=/trunk/yasm/; revision=1932
* Break apart perfect hash lookup generation and x86 arch-specificPeter Johnson2007-09-078-900/+565
| | | | | | | | | instruction handling. Use the GNU gperf file format, but continue to use our custom minimal perfect hash generator. svn path=/trunk/yasm/; revision=1929
* Unbreak distcheck when Python is available by pulling in bitvect.h.Peter Johnson2007-09-071-1/+1
| | | | svn path=/trunk/yasm/; revision=1927
* Add support for second parameter (fill value) to .org directive in GASPeter Johnson2007-07-201-2/+2
| | | | | | | | | | | parser. Add testcase for both local labels and .org fill. Noticed by: Jung Lee <moorang@gmail.com> Testcase from: Xiaoming Mo <xiaoming.mo@skelix.org> svn path=/trunk/yasm/; revision=1899
* Update all copyright dates.Peter Johnson2007-04-222-2/+2
| | | | svn path=/trunk/yasm/; revision=1827
* Bite the bullet and convert tabs to spaces. Previously yasm's source hasPeter Johnson2007-04-224-514/+514
| | | | | | | | been using a mix of tabs and 4 spaces to indent; this looks horrible if tab size is ever not 8. While I debated converting to tab-only indentation that would have been a far higher impact to the source. svn path=/trunk/yasm/; revision=1825
* Massive warnings cleanup and cleanup of size_t vs uintptr_t vs unsigned long.Peter Johnson2007-02-242-2/+2
| | | | svn path=/trunk/yasm/; revision=1792
* Pyxelator generation should depend on HEADERS rather than SOURCES.Peter Johnson2007-01-291-1/+1
| | | | svn path=/trunk/yasm/; revision=1747
* Clean up sed usage a tiny bit (don't use cat).Peter Johnson2007-01-291-3/+2
| | | | svn path=/trunk/yasm/; revision=1746
* Massive Python/Pyrex wrapper cleanup. We now use Pyxelator to generatePeter Johnson2007-01-2912-564/+158
| | | | | | | | | | | | | | the C function and data structure wrappers for Pyrex. We now require Pyrex 0.9.5 to build the Python wrappers, as only >=0.9.5 has working weakref support. We actually need 0.9.5.1, but it's not yet released (0.9.5 has a crash bug in enum wrapping that we trigger). Pyxelator works a lot better with non-anonymous enums/structs, so libyasm has been scrubbed for this. Next step: full Yasm data structure inspection. svn path=/trunk/yasm/; revision=1745
* Make python module DESTDIR-clean to unbreak distcheck when python module isPeter Johnson2007-01-261-2/+2
| | | | | | enabled. svn path=/trunk/yasm/; revision=1741
* Remove yasm_immval, moving remaining unique information (sign flag) intoPeter Johnson2007-01-212-36/+1
| | | | | | yasm_value. svn path=/trunk/yasm/; revision=1740
* intnum.c: Better internal error checking on intnum creation input strings.Peter Johnson2007-01-202-8/+27
| | | | svn path=/trunk/yasm/; revision=1739
* python-yasm/Makefile.inc: Pull in CPPFLAGS for Python build, which on somePeter Johnson2006-12-301-1/+1
| | | | | | systems can have important include directories that aren't in INCLUDES. svn path=/trunk/yasm/; revision=1726
* Port re2c parser from YACC to recursive descent.Peter Johnson2006-12-246-221/+288
| | | | svn path=/trunk/yasm/; revision=1718
* Pyxelator: Rip out code wrapper generation. Reindent. Add yasm wrapperPeter Johnson2006-12-1220-9478/+1846
| | | | | | | generator script. Still needs additional tweaks before it can be tied into the build. svn path=/trunk/yasm/; revision=1711
* Bring Pyxelator-r428 into trunk.Peter Johnson2006-12-1222-0/+11051
| | | | svn path=/trunk/yasm/; revision=1710
* Take [1423] to the next logical step by supporting the general case ofPeter Johnson2006-12-102-10/+22
| | | | | | | | | | | | (sym in other section)-(sym in this section) rather than just (sym in other section)-(curpos) (e.g. sym-$). Unfortunately supporting this required precbc to be flowed down to the value_finalize functions, but it's relatively reasonable to do so, as all of the _finalize() routines have access to precbc. Reported by: Peter Tanski <peter_tanski@cox.net> svn path=/trunk/yasm/; revision=1705
* expr.pxi: Sync with [1702].Peter Johnson2006-11-271-1/+0
| | | | svn path=/trunk/yasm/; revision=1703