Patchwork : Fix for PR 52123 additional patch for 32bit mingw

login
register
mail settings
Submitter Rainer Emrich
Date Feb. 13, 2013, 5:58 p.m.
Message ID <511BD45A.7050005@emrich-ebersheim.de>
Download mbox | patch
Permalink /patch/220218/
State New
Headers show

Comments

Rainer Emrich - Feb. 13, 2013, 5:58 p.m.
Here's a simple additional patch against trunk for 32bit mingw.

OK to apply?

Rainer

2013-02-13  Rainer Emrich  <rainer@emrich-ebersheim.de>

	PR target/52123
	* tracebak.c: Cast from pointer via FARPROC
Arnaud Charlet - Feb. 13, 2013, 5:59 p.m.
> Here's a simple additional patch against trunk for 32bit mingw.
> 
> OK to apply?

OK, thanks.

> Rainer
> 
> 2013-02-13  Rainer Emrich  <rainer@emrich-ebersheim.de>
> 
> 	PR target/52123
> 	* tracebak.c: Cast from pointer via FARPROC

Patch

Index: ada/tracebak.c
===================================================================
--- ada/tracebak.c      (revision 195803)
+++ ada/tracebak.c      (working copy)
@@ -415,7 +415,7 @@  struct layout

 #if defined (__WIN32)
 #include <windows.h>
-#define IS_BAD_PTR(ptr) (IsBadCodePtr((void *)ptr))
+#define IS_BAD_PTR(ptr) (IsBadCodePtr((FARPROC)ptr))
 #elif defined (sun)
 #define IS_BAD_PTR(ptr) ((unsigned long)ptr == -1UL)
 #else