Print this page
cw: don't shadow pure pre-processing

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cw/cw.c
          +++ new/usr/src/tools/cw/cw.c
↓ open down ↓ 1463 lines elided ↑ open up ↑
1464 1464                  newae(ctx->i_ae, "-mv8plus");
1465 1465  #endif
1466 1466                  break;
1467 1467          case (SS12|M64):
1468 1468                  break;
1469 1469          default:
1470 1470                  (void) fprintf(stderr,
1471 1471                      "Incompatible -xarch= and/or -m32/-m64 options used.\n");
1472 1472                  exit(2);
1473 1473          }
1474      -        if (op == CW_O_LINK && (ctx->i_flags & CW_F_SHADOW))
     1474 +
     1475 +        if ((op == CW_O_LINK || op == CW_O_PREPROCESS) &&
     1476 +            (ctx->i_flags & CW_F_SHADOW))
1475 1477                  exit(0);
1476 1478  
1477 1479          if (model && !pic)
1478 1480                  newae(ctx->i_ae, model);
1479 1481          if (!nolibc)
1480 1482                  newae(ctx->i_ae, "-lc");
1481 1483          if (!seen_o && (ctx->i_flags & CW_F_SHADOW)) {
1482 1484                  newae(ctx->i_ae, "-o");
1483 1485                  newae(ctx->i_ae, ctx->i_discard);
1484 1486          }
↓ open down ↓ 430 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX