Alexandre Julliard : winegcc: Add support for the -fasynchronous-unwind-tables option.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 09:54:06 CDT 2010


Module: wine
Branch: master
Commit: 5288196f788c126ce702f19a7935b3183b28c0cf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5288196f788c126ce702f19a7935b3183b28c0cf

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Apr 11 12:32:01 2010 +0200

winegcc: Add support for the -fasynchronous-unwind-tables option.

---

 tools/winegcc/winegcc.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index a690754..7023ff4 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -195,6 +195,7 @@ struct options
     int compile_only;
     int force_pointer_size;
     int large_address_aware;
+    int unwind_tables;
     const char* wine_objdir;
     const char* output_name;
     const char* image_base;
@@ -488,6 +489,8 @@ static strarray *get_winebuild_args(struct options *opts)
         strarray_add( spec_args, "--target" );
         strarray_add( spec_args, opts->target );
     }
+    if (opts->unwind_tables) strarray_add( spec_args, "-fasynchronous-unwind-tables" );
+    else strarray_add( spec_args, "-fno-asynchronous-unwind-tables" );
     return spec_args;
 }
 
@@ -1224,6 +1227,10 @@ int main(int argc, char **argv)
 		case 'f':
 		    if (strcmp("-fno-short-wchar", argv[i]) == 0)
                         opts.noshortwchar = 1;
+		    else if (!strcmp("-fasynchronous-unwind-tables", argv[i]))
+                        opts.unwind_tables = 1;
+		    else if (!strcmp("-fno-asynchronous-unwind-tables", argv[i]))
+                        opts.unwind_tables = 0;
 		    break;
 		case 'l':
 		    strarray_add(opts.files, strmake("-l%s", option_arg));




More information about the wine-cvs mailing list