Commit Graph

115 Commits

Author SHA1 Message Date
Oliver Stöneberg
413b612c11 fixed clang 3.4 compilation (nw) 2015-02-05 21:43:50 +01:00
Oliver Stöneberg
e1469ee855 re-enabled some C++11 compiler warnings (nw) 2015-02-05 17:52:09 +01:00
Oliver Stöneberg
56f03a8f8f fixed -Wunused-local-typedefs warnings with ATTR_UNUSED and enabled it again (nw) 2015-02-05 16:41:05 +01:00
Oliver Stöneberg
f303a5c155 disable a GCC warning with CPP11=1 (nw)
also moved clang C++11 warning supression into CPP11 define
2015-02-05 15:38:41 +01:00
Oliver Stöneberg
6790ff2ebd flags_clang.mak: additions for clang 3.6 and cleanups (nw)
also enabled some warning by default again. they were disabled because
of bugs in clang which have been fixed by now. unfortunately the
disabling predates the proper version handling, so it's not clear for
which versions they should be ignored. so if they come up again we just
need to re-add them by checking for the proper version
2015-02-05 14:49:05 +01:00
Oliver Stöneberg
e93a559587 [MT05835] show correct version number in file datils [Oliver Stöneberg]
adjusted verinfo code for new version.c format / also added more
errorhandling and removed some unnecessary code
2015-01-30 01:46:36 +01:00
Oliver Stöneberg
1e29bb1347 moved some clang-specific stuff from makefile to src/build/flags_clang.mak (nw) 2015-01-27 23:27:08 +01:00
Mike Naberezny
3c3e649d72 Remove unused imports. (nw) 2015-01-25 23:17:28 -08:00
couriersud
af80347955 png2bdc.py: reverted debug changes. (nw) 2015-01-22 20:50:44 +01:00
couriersud
974bf6697e png2bdc.py: Converted to python 2.5 syntax. (nw) 2015-01-22 20:48:48 +01:00
Miodrag Milanovic
fb5c151082 Converted png2bcd tool to python [Andrew Gardner] 2015-01-10 11:35:34 +01:00
couriersud
d7baf9f5d8 Make file2str.pv compatible with python 2.5 (nw) 2015-01-08 01:29:24 +01:00
Ramiro Polla
c26b76f6b7 Run build tools based on build OS 2015-01-04 16:23:45 +01:00
Oliver Stöneberg
1c94c3f408 introduced BASELIBS to makefile to link smaller tools with less dependencies (nw) 2015-01-01 15:17:09 +01:00
Osso
09b27d605a Fixed debug build (nw) 2014-12-15 19:00:30 +01:00
Miodrag Milanovic
0d35e225af fix space and tab mixing (nw) 2014-12-15 16:46:04 +01:00
Miodrag Milanovic
09a636c2ff Converted file2str to python (nw) 2014-12-15 15:19:55 +01:00
Miodrag Milanovic
e51894d529 made build tools dependencies smaller (nw) 2014-12-15 11:15:01 +01:00
Oliver Stöneberg
639d7eea9a re-enabled -Wconstant-logical-operand for clang 3.5 (nw) 2014-11-01 20:24:47 +01:00
Oliver Stöneberg
cc6ed14d5c re-enabled -Wdynamic-class-memaccess for clang 3.5 now that all warnings have been fixed (nw) 2014-11-01 14:59:13 +01:00
Oliver Stöneberg
eb80c98fcd updated comments/TODOs about invalid vptr warnings (nw) 2014-11-01 11:50:26 +01:00
Dirk Best
2d5eacd0f5 Allow compilation on cygwin based terminals on Windows (like cmder) 2014-10-23 10:32:38 +02:00
Oliver Stöneberg
d5cf855364 disabled -Wconstant-logical-operand again for clang / src/emu/cpu/tms34010/34010gfx.c cleanups (nw) 2014-09-26 14:45:59 +00:00
Wilbert Pol
062528e4a5 34010gfx.c: Work around clang shift overflow warnings; silly fix... (nw) 2014-09-23 19:24:20 +00:00
Oliver Stöneberg
0cf86be9a7 "properly fixed" clang -Wconstant-logical-operand warnings and enabled it (nw) 2014-09-23 10:13:12 +00:00
Oliver Stöneberg
d05fb42842 actually avoid clang warning in src/mame/video/jagblit.inc / avoid clang warning in src/emu/cpu/h8/h8_timer16.c (nw) 2014-09-23 10:02:18 +00:00
Oliver Stöneberg
2598d2a29b fixed clang warning in src/mame/video/jagblit.inc (nw) 2014-09-23 09:47:40 +00:00
Oliver Stöneberg
7f72372098 documented more disabled clang compiler warnings (nw) 2014-09-23 09:40:59 +00:00
Oliver Stöneberg
da9ac3ce74 documented some disabled clang compiler warnings / re-enabled -Wformat-security for clang 3.5 (was disabled because of a bug in clang) / disabled c++11 warnings so it compiles out-of-the-box / added TODO (nw) 2014-09-23 08:46:14 +00:00
Oliver Stöneberg
eea7952f4a another workaround for XCode 6.0.1 out-of-the-box compilation (nw) 2014-09-22 20:55:29 +00:00
Oliver Stöneberg
c2f4497c54 added workaround to build with XCode 6.0.1 out-of-the-box [Oliver Stöneberg] 2014-09-22 15:57:34 +00:00
Oliver Stöneberg
0911ce55ef flagged some functions as noreturn (nw) 2014-09-10 06:12:19 +00:00
Oliver Stöneberg
318d01b5ae removed -Wno-strict-overflow for GCC 4.8 as well (nw) 2014-09-09 19:10:56 +00:00
Oliver Stöneberg
7dbc5d190f removed -Wno-strict-overflow for GCC 4.9 (nw) 2014-09-08 18:25:05 +00:00
Oliver Stöneberg
824687e131 make clang 3.5 compile out-of-the-box by disabling some warnings for now / added TODO (nw) 2014-09-06 11:28:28 +00:00
Miodrag Milanovic
08da5835ef Make it compile on 4.9.x (nw) 2014-09-02 13:42:52 +00:00
Oliver Stöneberg
71282cd78d added GCC 4.9 handling to build/flags_gcc.mak now it has been released (nw) 2014-05-07 10:41:39 +00:00
Miodrag Milanovic
fec65e0b57 Cleanups and version bump 2014-04-07 06:04:18 +00:00
Miodrag Milanovic
51f413a192 Same rule applies to all GCC 4.8.x so on Windows as well (nw) 2014-03-30 13:59:10 +00:00
Justin Kerk
446ac03dd9 Allow JSMESS to compile with -Werror (nw) 2014-03-12 16:22:04 +00:00
Oliver Stöneberg
0dfcb99251 "fixed" VS2012 linking of makemak.exe and makelist.exe (nw) 2014-03-12 10:46:25 +00:00
Aaron Giles
4ea9df02a1 Moved core template container classes up from emutempl.h to coretmpl.h:
[Aaron Giles]
 * these classes now no longer take a resource_pool; everything is
    managed globally -- this means that objects added to lists must be
    allocated with global_alloc
 * added new auto_pointer<> template which wraps a pointer and auto-frees
    it upon destruction; it also defaults to NULL so it doesn't need to
    be explicitly initialized
 * moved tagged_list template to tagmap.h

Redo of the low-level memory tracking system: [Aaron Giles]
 * moved low-level tracking out of emu\emualloc into lib\util\corealloc
    so it can be shared among all components and used by core libraries
 * global_alloc and friends no longer use a resource pool to track
    allocations; turns out this was a wholly redundant system that wasted
    a lot of memory
 * removed global_resource_pool entirely
 * added global_free_array to delete arrays allocated with 
    global_alloc_array
 * added tracking of object versus array allocation; we will now error
    if you use global_free on an array, or global_free_array on an object

Added new utility helper const_string_pool which can be used to 
efficiently accumulate strings that are not intended to be modified.
Used by updated makelist and software list code. [Aaron Giles]

Updated png2bdc and makelist tools to not leak memory and use more modern
techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles]

Deprecated auto_strdup and removed all uses by way of caller-managed 
astrings and the software list rewrite. [Aaron Giles]

Rewrote software list management: [Aaron Giles]
 * removed the notion of a software_list that is separate from a
    software_list_device; they are one and the same now
 * moved several functions into device_image_interface since they really
    didn't belong in the core software list class
 * lots of simplification as a result of the above changes

Additional notes (no whatsnew):

Moved definition of FPTR to osdcomm.h.

Some changes happened in the OSD code to fix issues, especially regarding
freeing arrays. SDL folks may need to fix up some of these.

The following devices still are using tokens and should be modernized
(I found them because they kept their token as void * and tried to
delete it, which you can't):

namco_52xx_device (mame/audio/namco52.c)
namco_54xx_device (mame/audio/namco54.c)
namco_06xx_device (mame/machine/namco06.c)
namco_50xx_device (mame/machine/namco50.c)
namco_51xx_device (mame/machine/namco51.c)
namco_53xx_device (mame/machine/namco53.c)
voodoo_device (emu/video/voodoo.c)
mos6581_device (emu/sound/mos6581.c)
aica_device (emu/sound/aica.c)
scsp_device (emu/sound/scsp.c)
dmadac_sound_device (emu/sound/dmadac.c)
s3c2440_device (emu/machine/s3c2440.c)
wd1770_device (emu/machine/wd17xx.c)
latch8_device (emu/machine/latch8.c)
duart68681_device (emu/machine/68681.c)
s3c2400_device (emu/machine/s3c2400.c)
s3c2410_device (emu/machine/s3c2410.c)
strataflash_device (mess/machine/strata.c)
hd63450_device (mess/machine/hd63450.c)
tap_990_device (mess/machine/ti99/990_tap.c)
omti8621_device (mess/machine/omti8621.c)
vdt911_device (mess/video/911_vdt.c)
apollo_graphics_15i (mess/video/apollo.c)
asr733_device (mess/video/733_asr.c)
2014-03-11 15:54:58 +00:00
Miodrag Milanovic
544b60f82a Include bus resolve in dynamic build procedure (nw) 2014-03-09 08:40:56 +00:00
Alex W. Jackson
dcaa1db090 Fix SDL compile (nw) 2014-03-02 17:41:19 +00:00
Oliver Stöneberg
2726675591 moved compiler-specific warning generation to shared files (nw) 2014-03-02 16:17:12 +00:00
Miodrag Milanovic
ca546caa6e Cleanups and version bump 2013-12-24 07:24:51 +00:00
Couriersud
a179f1be7f makedepend now ignores "-D" defines as well. 2013-12-01 20:49:09 +00:00
Curt Coder
f329b77e35 Fixed make depend on OS X. (nw) 2013-11-13 20:40:52 +00:00
Justin Kerk
8a9b273f9c More cross_build stuff (nw)
<jvilk> DFJustin: the issue is that if you do not add those targets in, then those targets are not defined when you do a CROSS_BUILD
<jvilk> and Make fails
<jvilk> because targets depend on them
<jvilk> the 'correct' fix would be to have the targets that depend on them depend on the correct location of the tools
<jvilk> because I think what was happening is that they depended on the location of the tools assuming that they were built for the target platform
2013-11-03 03:53:05 +00:00
Aaron Giles
5d0ce54f9e Bulk convert files that already had standard BSD license in my name
to new license tagged form.
2013-10-16 08:14:49 +00:00