gcc/ChangeLog:
PR target/111093
* config/nvptx/nvptx.cc (nvptx_option_override): Issue fatal error
instead of an assert ICE when no -march= has been specified.
init_machine_status = nvptx_init_machine_status;
/* Via nvptx 'OPTION_DEFAULT_SPECS', '-misa' always appears on the command
- line. */
- gcc_checking_assert (OPTION_SET_P (ptx_isa_option));
+ line; but handle the case that the compiler is not run via the driver. */
+ if (!OPTION_SET_P (ptx_isa_option))
+ fatal_error (UNKNOWN_LOCATION, "%<-march=%> must be specified");
handle_ptx_version_option ();