*** mame/makefile~	2012-09-08 15:58:12.000000000 +0000
--- mame/makefile	2012-11-26 01:40:01.000000000 +0000
***************
*** 308,315 ****
  
  # compiler, linker and utilities
  AR = @ar
! CC = @gcc
! LD = @g++
  MD = -mkdir$(EXE)
  RM = @rm -f
  OBJDUMP = @objdump
--- 308,315 ----
  
  # compiler, linker and utilities
  AR = @ar
! CC = @gcc-4.7
! LD = @g++-4.7
  MD = -mkdir$(EXE)
  RM = @rm -f
  OBJDUMP = @objdump
***************
*** 490,496 ****
  # add a basic set of warnings
  CCOMFLAGS += \
  	-Wall \
- 	-Wcast-align \
  	-Wundef \
  	-Wformat-security \
  	-Wwrite-strings \
--- 490,495 ----
***************
*** 509,515 ****
  
  # warnings only applicable to C++ compiles
  CPPONLYFLAGS += \
! 	-Woverloaded-virtual
  
  
  #-------------------------------------------------
--- 508,515 ----
  
  # warnings only applicable to C++ compiles
  CPPONLYFLAGS += \
! 	-Woverloaded-virtual \
! 	-Wno-narrowing
  
  
  #-------------------------------------------------
*** mame/src/osd/sdl/osinline.h	2010-01-15 22:12:06.000000000 -0800
--- ../../../mame-0147/src/osd/sdl/osinline.h	2012-11-11 16:12:23.000000000 -0800
***************
*** 47,53 ****
  #endif /* __x86_64__ */
  
  
! #elif defined(__ppc__) || defined (__PPC__) || defined(__ppc64__) || defined(__PPC64__)
  
  
  INLINE void ATTR_FORCE_INLINE
--- 47,53 ----
  #endif /* __x86_64__ */
  
  
! #elif defined(__ppc__) || defined (__PPC__) || defined(__ppc64__) || defined(__PPC64__) || defined(__arm__)
  
  
  INLINE void ATTR_FORCE_INLINE
*** mame/src/osd/osdcomm.h~	2011-11-06 23:16:36.000000000 +0000
--- mame/src/osd/osdcomm.h	2012-11-28 03:00:33.000000000 +0000
***************
*** 79,85 ****
  #define UNEXPECTED(exp)			__builtin_expect(!!(exp), 0)
  #define EXPECTED(exp)			__builtin_expect(!!(exp), 1)
  #define RESTRICT				__restrict__
! #define SETJMP_GNUC_PROTECT()	(void)__builtin_return_address(1)
  #else
  #define ATTR_UNUSED
  #define ATTR_NORETURN
--- 79,85 ----
  #define UNEXPECTED(exp)			__builtin_expect(!!(exp), 0)
  #define EXPECTED(exp)			__builtin_expect(!!(exp), 1)
  #define RESTRICT				__restrict__
! #define SETJMP_GNUC_PROTECT()	(void)__builtin_return_address(0)
  #else
  #define ATTR_UNUSED
  #define ATTR_NORETURN
