Print this page
use thread_local for ntoa buf


1204                                                 newae(ctx->i_ae, "-fbuiltin");
1205                                         break;
1206                                 }
1207                                 error(arg);
1208                                 break;
1209                         case 'C':
1210                                 /* Accept C++ style comments -- ignore */
1211                                 if (strcmp(arg, "-xCC") == 0)
1212                                         break;
1213                                 error(arg);
1214                                 break;
1215                         case 'c':
1216                                 if (strncmp(arg, "-xc99=%all", 10) == 0) {
1217                                         newae(ctx->i_ae, "-std=gnu99");
1218                                         break;
1219                                 }
1220                                 if (strncmp(arg, "-xc99=%none", 11) == 0) {
1221                                         newae(ctx->i_ae, "-std=gnu89");
1222                                         break;
1223                                 }




1224                                 if (strncmp(arg, "-xchip=", 7) == 0) {
1225                                         xlate(ctx->i_ae, arg + 7, xchip_tbl);
1226                                         break;
1227                                 }
1228                                 if (strncmp(arg, "-xcode=", 7) == 0) {
1229                                         xlate(ctx->i_ae, arg + 7, xcode_tbl);
1230                                         if (strncmp(arg + 7, "pic", 3) == 0)
1231                                                 pic = 1;
1232                                         break;
1233                                 }
1234                                 if (strncmp(arg, "-xcache=", 8) == 0)
1235                                         break;
1236                                 if (strncmp(arg, "-xcrossfile", 11) == 0)
1237                                         break;
1238                                 error(arg);
1239                                 break;
1240                         case 'd':
1241                                 if (strcmp(arg, "-xdepend") == 0)
1242                                         break;
1243                                 if (strncmp(arg, "-xdebugformat=", 14) == 0)




1204                                                 newae(ctx->i_ae, "-fbuiltin");
1205                                         break;
1206                                 }
1207                                 error(arg);
1208                                 break;
1209                         case 'C':
1210                                 /* Accept C++ style comments -- ignore */
1211                                 if (strcmp(arg, "-xCC") == 0)
1212                                         break;
1213                                 error(arg);
1214                                 break;
1215                         case 'c':
1216                                 if (strncmp(arg, "-xc99=%all", 10) == 0) {
1217                                         newae(ctx->i_ae, "-std=gnu99");
1218                                         break;
1219                                 }
1220                                 if (strncmp(arg, "-xc99=%none", 11) == 0) {
1221                                         newae(ctx->i_ae, "-std=gnu89");
1222                                         break;
1223                                 }
1224                                 if (strncmp(arg, "-xc11=%all", 10) == 0) {
1225                                         newae(ctx->i_ae, "-std=gnu11");
1226                                         break;
1227                                 }
1228                                 if (strncmp(arg, "-xchip=", 7) == 0) {
1229                                         xlate(ctx->i_ae, arg + 7, xchip_tbl);
1230                                         break;
1231                                 }
1232                                 if (strncmp(arg, "-xcode=", 7) == 0) {
1233                                         xlate(ctx->i_ae, arg + 7, xcode_tbl);
1234                                         if (strncmp(arg + 7, "pic", 3) == 0)
1235                                                 pic = 1;
1236                                         break;
1237                                 }
1238                                 if (strncmp(arg, "-xcache=", 8) == 0)
1239                                         break;
1240                                 if (strncmp(arg, "-xcrossfile", 11) == 0)
1241                                         break;
1242                                 error(arg);
1243                                 break;
1244                         case 'd':
1245                                 if (strcmp(arg, "-xdepend") == 0)
1246                                         break;
1247                                 if (strncmp(arg, "-xdebugformat=", 14) == 0)