/toolchain/binutils/binutils-2.25/libiberty/ |
D | getopt.c | 281 store_args_and_env (int argc, char *const *argv) in store_args_and_env() argument 286 original_argv = argv; in store_args_and_env() 317 exchange (char **argv) in exchange() argument 362 tem = argv[bottom + i]; in exchange() 363 argv[bottom + i] = argv[top - (middle - bottom) + i]; in exchange() 364 argv[top - (middle - bottom) + i] = tem; in exchange() 379 tem = argv[bottom + i]; in exchange() 380 argv[bottom + i] = argv[middle + i]; in exchange() 381 argv[middle + i] = tem; in exchange() 402 char *const *argv ATTRIBUTE_UNUSED, in _getopt_initialize() [all …]
|
D | argv.c | 65 dupargv (char **argv) in dupargv() argument 70 if (argv == NULL) in dupargv() 74 for (argc = 0; argv[argc] != NULL; argc++); in dupargv() 78 for (argc = 0; argv[argc] != NULL; argc++) in dupargv() 80 int len = strlen (argv[argc]); in dupargv() 82 strcpy (copy[argc], argv[argc]); in dupargv() 182 char **argv = NULL; in buildargv() local 198 if (argv == NULL) in buildargv() 206 nargv = (char **) xrealloc (argv, maxargc * sizeof (char *)); in buildargv() 208 argv = nargv; in buildargv() [all …]
|
D | pex-win32.c | 327 argv_to_argc (char *const *argv) in argv_to_argc() argument 329 char *const *i = argv; in argv_to_argc() 332 return i - argv; in argv_to_argc() 339 argv_to_cmdline (char *const *argv) in argv_to_cmdline() argument 348 for (i = 0; argv[i]; i++) in argv_to_cmdline() 357 for (j = 0; argv[i][j]; j++) in argv_to_cmdline() 359 if (argv[i][j] == ' ' || argv[i][j] == '\t' || argv[i][j] == '"') in argv_to_cmdline() 364 if (argv[i][j] == '"') in argv_to_cmdline() 367 for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) in argv_to_cmdline() 377 for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) in argv_to_cmdline() [all …]
|
D | getopt1.c | 69 getopt_long (int argc, char *const *argv, const char *options, in getopt_long() argument 72 return _getopt_internal (argc, argv, options, long_options, opt_index, 0); in getopt_long() 81 getopt_long_only (int argc, char *const *argv, const char *options, in getopt_long_only() argument 84 return _getopt_internal (argc, argv, options, long_options, opt_index, 1); in getopt_long_only() 95 main (int argc, char **argv) in main() argument 115 c = getopt_long (argc, argv, "abc:d:0123456789", in main() 173 printf ("%s ", argv[optind++]); in main()
|
/toolchain/binutils/binutils-2.25/gas/config/ |
D | tc-nds32.c | 2103 typedef void (*nds32_pseudo_opcode_func) (int argc, char *argv[], int pv); 2194 do_pseudo_b (int argc ATTRIBUTE_UNUSED, char *argv[], int pv ATTRIBUTE_UNUSED) in do_pseudo_b() argument 2196 char *arg_label = argv[0]; in do_pseudo_b() 2214 do_pseudo_bal (int argc ATTRIBUTE_UNUSED, char *argv[], int pv ATTRIBUTE_UNUSED) in do_pseudo_bal() argument 2216 char *arg_label = argv[0]; in do_pseudo_bal() 2235 do_pseudo_bge (int argc ATTRIBUTE_UNUSED, char *argv[], int pv ATTRIBUTE_UNUSED) in do_pseudo_bge() argument 2238 md_assemblef ("slt $ta,%s,%s", argv[0], argv[1]); in do_pseudo_bge() 2239 md_assemblef ("beqz $ta,%s", argv[2]); in do_pseudo_bge() 2243 do_pseudo_bges (int argc ATTRIBUTE_UNUSED, char *argv[], int pv ATTRIBUTE_UNUSED) in do_pseudo_bges() argument 2246 md_assemblef ("slts $ta,%s,%s", argv[0], argv[1]); in do_pseudo_bges() [all …]
|
D | tc-ns32k.c | 902 char **argv, in encode_operand() argument 938 get_addr_mode (argv[i], &addr_modeP); in encode_operand() 983 sprintf (freeptr, "((%s-1)*%d)", argv[i], desc->im_size); in encode_operand() 984 argv[i] = freeptr; in encode_operand() 993 IIF (12, 2, suffixP[i], (unsigned long) argv[i], 0, in encode_operand() 1000 IIF (12, 2, suffixP[i], (unsigned long) argv[i], 0, in encode_operand() 1005 IIF (11, 2, 42, (unsigned long) argv[i], 0, 0, 0, 0, 0, in encode_operand() 1009 list_search (argv[i], opt6, &tmp); in encode_operand() 1014 optlist (argv[i], opt3, &tmp); in encode_operand() 1019 optlist (argv[i], opt4, &tmp); in encode_operand() [all …]
|
/toolchain/binutils/binutils-2.25/binutils/ |
D | ar.c | 427 decode_options (int argc, char **argv) in decode_options() argument 434 if (argc > 1 && argv[1][0] != '-') in decode_options() 450 new_argc = argc - 1 + strlen (argv[1]); in decode_options() 451 new_argv = xmalloc ((new_argc + 1) * sizeof (*argv)); in decode_options() 452 in = argv; in decode_options() 466 while (in < argv + argc) in decode_options() 473 argv = new_argv; in decode_options() 476 while ((c = getopt_long (argc, argv, "hdmpqrtxlcoVsSuvabiMNfPTDU", in decode_options() 594 return &argv[optind]; in decode_options() 607 ranlib_main (int argc, char **argv) in ranlib_main() argument [all …]
|
D | bin2c.c | 26 main (int argc, char *argv[]) in main() argument 36 if (argc == 2 && argv[1][0] == '-') in main() 38 const char *opt = &argv[1][1]; in main() 45 fprintf (stream, "Usage: %s < input_file > output_file\n", argv[0]); in main()
|
D | cxxfilt.c | 171 main (int argc, char **argv) in main() argument 177 program_name = argv[0]; in main() 180 expandargv (&argc, &argv); in main() 182 while ((c = getopt_long (argc, argv, "_hinps:tv", long_options, (int *) 0)) != EOF) in main() 226 demangle_it (argv[optind]); in main()
|
D | strings.c | 151 main (int argc, char **argv) in main() argument 165 program_name = argv[0]; in main() 168 expandargv (&argc, &argv); in main() 181 while ((optc = getopt_long (argc, argv, "adfhHn:wot:e:T:Vv0123456789", in main() 266 string_min = (int) strtoul (argv[numeric_opt - 1] + 1, &s, 0); in main() 268 fatal (_("invalid integer argument %s"), argv[numeric_opt - 1] + 1); in main() 305 if (strcmp (argv[optind], "-") == 0) in main() 310 exit_status |= strings_file (argv[optind]) == FALSE; in main()
|
D | bfdtest2.c | 75 main (int argc, const char** argv) in main() argument 83 file = fopen(argv[1], "rb"); in main() 87 abfd = bfd_openr_iovec (argv[1], 0, iovec_open, file, in main()
|
D | dllwrap.c | 352 const char **argv; in run() local 367 argv = alloca (sizeof (char *) * (i + 3)); in run() 369 argv[i++] = what; in run() 379 argv[i++] = s; in run() 388 argv[i++] = NULL; in run() 393 pid = pexecute (argv[0], (char * const *) argv, prog_name, temp_base, in run() 607 main (int argc, char **argv) in main() argument 630 prog_name = argv[0]; in main() 641 expandargv (&argc, &argv); in main() 648 size_t len = strlen (argv[i]); in main() [all …]
|
/toolchain/binutils/binutils-2.25/ld/ |
D | ldmain.c | 188 main (int argc, char **argv) in main() argument 205 program_name = argv[0]; in main() 210 expandargv (&argc, &argv); in main() 224 ld_sysroot = get_sysroot (argc, argv); in main() 301 emulation = get_emulation (argc, argv); in main() 303 default_target = ldemul_choose_target (argc, argv); in main() 309 parse_args (argc, argv); in main() 566 get_sysroot (int argc, char **argv) in get_sysroot() argument 572 if (CONST_STRNEQ (argv[i], "--sysroot=")) in get_sysroot() 573 return argv[i] + strlen ("--sysroot="); in get_sysroot() [all …]
|
D | ldemul.c | 147 ldemul_parse_args (int argc, char **argv) in ldemul_parse_args() argument 151 return (*ld_emulation->parse_args) (argc, argv); in ldemul_parse_args() 176 ldemul_choose_target (int argc, char **argv) in ldemul_choose_target() argument 178 return ld_emulation->choose_target (argc, argv); in ldemul_choose_target() 185 ldemul_default_target (int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) in ldemul_default_target()
|
/toolchain/binutils/binutils-2.25/gold/ |
D | main.cc | 72 collect_argv(int argc, char** argv) in collect_argv() argument 80 const char* argpos = argv[i]; in collect_argv() 138 main(int argc, char** argv) in main() argument 149 program_name = argv[0]; in main() 152 expandargv(&argc, &argv); in main() 155 std::string args = collect_argv(argc, argv); in main() 165 command_line.process(argc - 1, const_cast<const char**>(argv + 1)); in main() 233 layout.incremental_inputs()->report_command_line(argc, argv); in main()
|
D | options.cc | 771 parse_long_option(int argc, const char** argv, bool equals_only, in parse_long_option() argument 774 const char* const this_argv = argv[*i]; in parse_long_option() 828 *arg = argv[(*i)++]; in parse_long_option() 847 parse_short_option(int argc, const char** argv, int pos_in_argv_i, in parse_short_option() argument 850 const char* const this_argv = argv[*i]; in parse_short_option() 889 *arg = argv[(*i)++]; in parse_short_option() 1449 Command_line::process_one_option(int argc, const char** argv, int i, in process_one_option() argument 1452 gold_assert(argv[i][0] == '-' && !(*no_more_options)); in process_one_option() 1455 if (argv[i][1] == '-' && argv[i][2] == '\0') in process_one_option() 1466 option = parse_long_option(argc, argv, false, &arg, &new_i); in process_one_option() [all …]
|
D | incremental-dump.cc | 455 main(int argc, char** argv) in main() argument 459 fprintf(stderr, "Usage: %s <file>\n", argv[0]); in main() 462 const char* filename = argv[1]; in main() 469 fprintf(stderr, "%s: open_base_file(%s): %s\n", argv[0], filename, in main() 478 fprintf(stderr, "%s: open_incremental_binary(%s): %s\n", argv[0], in main() 488 argv[0], filename, in main() 495 argv[0], filename, in main() 502 argv[0], filename, in main() 509 argv[0], filename, in main()
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/all/ |
D | itbl-test.c | 37 main (int argc, char **argv) in main() argument 46 printf ("usage: %s itbl asm.s\n", argv[0]); in main() 49 if (itbl_parse (argv[1]) != 0) in main() 55 fas = fopen (argv[2], "r"); in main() 58 printf ("failed to open asm file %s\n", argv[2]); in main()
|
/toolchain/binutils/binutils-2.25/gas/ |
D | as.c | 145 select_emulation_mode (int argc, char **argv) in select_emulation_mode() argument 151 if (!strncmp ("--em", argv[i], 4)) in select_emulation_mode() 157 p = strchr (argv[i], '='); in select_emulation_mode() 161 p = argv[i + 1]; in select_emulation_mode() 1059 perform_an_assembly_pass (int argc, char ** argv) in perform_an_assembly_pass() argument 1107 argv++; in perform_an_assembly_pass() 1112 if (*argv) in perform_an_assembly_pass() 1117 read_a_source_file (*argv); in perform_an_assembly_pass() 1119 argv++; /* Completed that argv. */ in perform_an_assembly_pass() 1127 main (int argc, char ** argv) in main() argument [all …]
|
/toolchain/binutils/binutils-2.25/include/ |
D | getopt.h | 113 extern int getopt (int argc, char *const *argv, const char *shortopts); 121 extern int getopt_long (int argc, char *const *argv, const char *shortopts, 123 extern int getopt_long_only (int argc, char *const *argv, 128 extern int _getopt_internal (int argc, char *const *argv,
|
/toolchain/binutils/binutils-2.25/libiberty/testsuite/ |
D | test-pexecute.c | 178 main (int argc, char **argv) in main() argument 191 if (argc > 1 && strcmp (argv[1], "-t") == 0) in main() 195 ++argv; in main() 199 do_cmd (argc, argv); in main() 442 do_cmd (int argc, char **argv) in do_cmd() argument 457 s = argv[1]; in do_cmd() 468 fputs (argv[i], stdout); in do_cmd() 481 fputs (argv[i], (i & 1) == 0 ? stdout : stderr); in do_cmd() 504 e = fopen (argv[2], "w"); in do_cmd() 517 snprintf (buf, sizeof buf, "unrecognized command %s", argv[1]); in do_cmd()
|
D | demangler-fuzzer.c | 51 main (int argc, char *argv[]) in main() argument 58 program_name = argv[0]; in main() 62 optchr = getopt (argc, argv, "hs:m:t:"); in main()
|
/toolchain/binutils/binutils-2.25/gprof/ |
D | gprof.c | 184 main (int argc, char **argv) in main() argument 201 whoami = argv[0]; in main() 204 expandargv (&argc, &argv); in main() 206 while ((ch = getopt_long (argc, argv, in main() 505 a_out_name = argv[optind++]; in main() 508 gmon_name = argv[optind++]; in main() 551 gmon_name = argv[optind]; in main()
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/hppa/parse/ |
D | exprbug.s | 15 ; FIRST, argv array of pointers to args, 1st is same as path. 21 .word 0 ; fourth, NULL argv terminator (pad) 22 .word 0 ; third, NULL argv terminator
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/hppa/unsorted/ |
D | labeldiffs.s | 17 ; FIRST, argv array of pointers to args, 1st is same as path. 23 .word 0 ; fourth, NULL argv terminator (pad) 24 .word 0 ; third, NULL argv terminator
|