diff options
| author | sherrym <none@none> | 2005-08-19 11:27:44 -0700 |
|---|---|---|
| committer | sherrym <none@none> | 2005-08-19 11:27:44 -0700 |
| commit | 8c1a37169a24b27841d468d8ee412f6d286ab3ed (patch) | |
| tree | c2b42debed48938dfae4d640424b735e7b85879d /usr/src/tools/cw/cw.c | |
| parent | 7d6fbbeaa4386096e2c1c6aa68d1e583b2198c52 (diff) | |
| download | illumos-joyent-8c1a37169a24b27841d468d8ee412f6d286ab3ed.tar.gz | |
6311076 cw should recognize -xdebugformat and -W0,-xdbggen
Diffstat (limited to 'usr/src/tools/cw/cw.c')
| -rw-r--r-- | usr/src/tools/cw/cw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c index def1e52f6f..53d3193bae 100644 --- a/usr/src/tools/cw/cw.c +++ b/usr/src/tools/cw/cw.c @@ -239,6 +239,7 @@ * -xchar_byte_order=<o> error * -xchip=<c> table * -xcode=<c> table + * -xdebugformat=<format> ignore (always use dwarf-2 for gcc) * -xcrossfile[=<n>] ignore * -xe error * -xF error @@ -272,6 +273,8 @@ * -xtransition -Wtransition * -xtrigraphs=<yes|no> -trigraphs -notrigraphs * -xunroll=n error + * -W0,-xdbggen=no%usedonly -fno-eliminate-unused-debug-symbols + * -fno-eliminate-unused-debug-types * -Y<c>,<dir> error * -YA,<dir> error * -YI,<dir> -nostdinc -I<dir> @@ -891,6 +894,11 @@ do_gcc(const char *dir, const char *cmd, int argc, char **argv, */ break; } + if (strcmp(arg, "-W0,-xdbggen=no%usedonly") == 0) { + newae(h, "-fno-eliminate-unused-debug-symbols"); + newae(h, "-fno-eliminate-unused-debug-types"); + break; + } if (strcmp(arg, "-W2,-Rcond_elim") == 0) { /* * Elimination and expansion of conditionals; @@ -1019,6 +1027,8 @@ do_gcc(const char *dir, const char *cmd, int argc, char **argv, case 'd': if (strcmp(arg, "-xdepend") == 0) break; + if (strncmp(arg, "-xdebugformat=", 14) == 0) + break; error(arg); break; case 'F': |
