#define ASM_SPEC "-triple=amdgcn--amdhsa -mattr=-code-object-v3 " \
"%:last_arg(%{march=*:-mcpu=%*}) " \
"-filetype=obj"
-/* Add -mlocal-symbol-id=<source-file-basename> unless the user (or mkoffload)
- passes the option explicitly on the command line. The option also causes
- several dump-matching tests to fail in the testsuite, so the option is not
- added when or tree dump/compare-debug options used in the testsuite are
- present.
- This has the potential for surprise, but a user can still use an explicit
- -mlocal-symbol-id=<whatever> option manually together with -fdump-tree or
- -fcompare-debug options. */
-#define CC1_SPEC "%{!mlocal-symbol-id=*:%{!fdump-tree-*:" \
- "%{!fdump-ipa-*:%{!fcompare-debug*:-mlocal-symbol-id=%b}}}}"
#define LINK_SPEC "--pie"
#define LIB_SPEC "-lc"
Target Report RejectNegative Joined UInteger Var(stack_size_opt) Init(-1)
-mstack-size=<number> Set the private segment size per wave-front, in bytes.
-mlocal-symbol-id=
-Target RejectNegative Report JoinedOrMissing Var(local_symbol_id) Init(0)
-
Wopenacc-dims
Target Var(warn_openacc_dims) Warning
Warn about invalid OpenACC dimensions.
FILE *in = stdin;
FILE *out = stdout;
FILE *cfile = stdout;
- const char *outname = 0, *offloadsrc = 0;
+ const char *outname = 0;
progname = "mkoffload";
diagnostic_initialize (global_dc, 0);
if (!strcmp (argv[ix], "-o") && ix + 1 != argc)
outname = argv[++ix];
else
- {
- obstack_ptr_grow (&cc_argv_obstack, argv[ix]);
-
- if (argv[ix][0] != '-')
- offloadsrc = argv[ix];
- }
+ obstack_ptr_grow (&cc_argv_obstack, argv[ix]);
}
obstack_ptr_grow (&cc_argv_obstack, "-o");
obstack_ptr_grow (&cc_argv_obstack, gcn_s1_name);
- obstack_ptr_grow (&cc_argv_obstack,
- concat ("-mlocal-symbol-id=", offloadsrc, NULL));
obstack_ptr_grow (&cc_argv_obstack, NULL);
const char **cc_argv = XOBFINISH (&cc_argv_obstack, const char **);
/* { dg-do compile } */
-/* { dg-additional-options "-mlocal-symbol-id=" { target amdgcn-*-* } } */
/* { dg-final { scan-assembler-not {foo[1-9]\.[0-9]} } } */
/* Check that we don't get .0 suffixes on static variables when not using