From 58c9fe6e74100d6b718cec9ccf01d317e801b006 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 2 Dec 2004 16:14:56 +0000 Subject: [PATCH] - added new switch -no-beos-fixes that deactivates the automatic linking of fix_bdirectwin_typeinfo.o. git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@10347 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- gcc/gcc/gcc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gcc/gcc/gcc.c b/gcc/gcc/gcc.c index 1a106be2a2..63e05d93d8 100644 --- a/gcc/gcc/gcc.c +++ b/gcc/gcc/gcc.c @@ -858,6 +858,7 @@ struct option_map option_map[] = {"--library-directory", "-L", "a"}, {"--machine", "-m", "aj"}, {"--machine-", "-m", "*j"}, + {"--no-beos-fixes", "-no-beos-fixes", 0}, {"--no-line-commands", "-P", 0}, {"--no-precompiled-includes", "-noprecomp", 0}, {"--no-standard-includes", "-nostdinc", 0}, @@ -2518,6 +2519,7 @@ display_help () printf (" 'none' means revert to the default behaviour of\n"); printf (" guessing the language based on the file's extension\n"); printf (" -priority= Specify thread-priority to use (1-10, default is 5)\n"); + printf (" -no-beos-fixes Disable any BeOS-R5 compatibility fixes\n"); printf ("\nOptions starting with -g, -f, -m, -O or -W are automatically passed on to\n"); printf ("the various sub-processes invoked by %s. In order to pass other options\n", @@ -2796,6 +2798,10 @@ process_command (argc, argv) add_linker_option (argv[i], strlen(argv[i])); n_switches++; } + else if (!strcmp (argv[i], "-no-beos-fixes")) + { + n_switches++; + } #endif else if (! strcmp (argv[i], "-print-search-dirs")) print_search_dirs = 1; @@ -3189,6 +3195,16 @@ process_command (argc, argv) ; else if (! strcmp (argv[i], "-print-multi-directory")) ; + else if (! strcmp (argv[i], "-no-beos-fixes")) + { + /* Preserve the switch so that it can be caught by the + cc1 spec string. */ + switches[n_switches].part1 = argv[i]+1; + switches[n_switches].args = 0; + switches[n_switches].live_cond = 0; + switches[n_switches].validated = 0; + n_switches++; + } else if (! strncmp (argv[i], "-priority=", 10)) { /* Preserve the switch so that it can be caught by the