comparison gcc/config/nvptx/mkoffload.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Offload image generation tool for PTX. 1 /* Offload image generation tool for PTX.
2 2
3 Copyright (C) 2014-2018 Free Software Foundation, Inc. 3 Copyright (C) 2014-2020 Free Software Foundation, Inc.
4 4
5 Contributed by Nathan Sidwell <nathan@codesourcery.com> and 5 Contributed by Nathan Sidwell <nathan@codesourcery.com> and
6 Bernd Schmidt <bernds@codesourcery.com>. 6 Bernd Schmidt <bernds@codesourcery.com>.
7 7
8 This file is part of GCC. 8 This file is part of GCC.
452 free_array_of_ptrs ((void **) paths, n_paths); 452 free_array_of_ptrs ((void **) paths, n_paths);
453 } 453 }
454 454
455 if (!found) 455 if (!found)
456 fatal_error (input_location, 456 fatal_error (input_location,
457 "offload compiler %s not found (consider using '-B')", 457 "offload compiler %s not found (consider using %<-B%>)",
458 GCC_INSTALL_NAME); 458 GCC_INSTALL_NAME);
459 459
460 /* We may be called with all the arguments stored in some file and 460 /* We may be called with all the arguments stored in some file and
461 passed with @file. Expand them into argv before processing. */ 461 passed with @file. Expand them into argv before processing. */
462 expandargv (&argc, &argv); 462 expandargv (&argc, &argv);
486 save_temps = true; 486 save_temps = true;
487 else if (strcmp (argv[i], "-v") == 0) 487 else if (strcmp (argv[i], "-v") == 0)
488 verbose = true; 488 verbose = true;
489 } 489 }
490 if (!(fopenacc ^ fopenmp)) 490 if (!(fopenacc ^ fopenmp))
491 fatal_error (input_location, "either -fopenacc or -fopenmp must be set"); 491 fatal_error (input_location, "either %<-fopenacc%> or %<-fopenmp%> "
492 "must be set");
492 493
493 struct obstack argv_obstack; 494 struct obstack argv_obstack;
494 obstack_init (&argv_obstack); 495 obstack_init (&argv_obstack);
495 obstack_ptr_grow (&argv_obstack, driver); 496 obstack_ptr_grow (&argv_obstack, driver);
496 if (save_temps) 497 if (save_temps)