Print this page
10051 cw(1) shouldn't have to translate -g
@@ -35,11 +35,11 @@
* Since the translation is inexact, this is something of a work-in-progress.
*
*/
/* If you modify this file, you must increment CW_VERSION */
-#define CW_VERSION "3.0"
+#define CW_VERSION "4.0"
/*
* -# Verbose mode
* -### Show compiler commands built by driver, no compilation
* -A<name[(tokens)]> Preprocessor predicate assertion
@@ -213,11 +213,10 @@
* -xarch=<a> table
* -xbuiltin[=<b>] -fbuiltin (-fno-builtin otherwise)
* -xCC ignore
* -xchip=<c> table
* -xcode=<c> table
- * -xdebugformat=<format> ignore (always use dwarf-2 for gcc)
* -xcrossfile[=<n>] ignore
* -xe error
* -xF error
* -xhelp=<f> error
* -xildoff ignore
@@ -730,13 +729,10 @@
newae(ctx->i_ae, arg);
break;
}
error(arg);
break;
- case 'g':
- newae(ctx->i_ae, "-gdwarf-2");
- break;
case 'E':
if (arglen == 1) {
newae(ctx->i_ae, "-xc");
newae(ctx->i_ae, arg);
op = CW_O_PREPROCESS;
@@ -760,10 +756,11 @@
break;
}
error(arg);
break;
case 'A':
+ case 'g':
case 'h':
case 'I':
case 'i':
case 'L':
case 'l':
@@ -1074,15 +1071,10 @@
}
if (strncmp(arg, "-xcrossfile", 11) == 0)
break;
error(arg);
break;
- case 'd':
- if (strncmp(arg, "-xdebugformat=", 14) == 0)
- break;
- error(arg);
- break;
case 'F':
/*
* Compile for mapfile reordering, or unused
* section elimination, syntax can be -xF or
* more complex, like -xF=%all -- ignore.