public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4718] nvptx: Use fatal_error when -march= is missing not an assert [PR111093]
@ 2023-10-18 10:24 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2023-10-18 10:24 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d3961765b506f75233e6ea144a80930629c3426b
commit r14-4718-gd3961765b506f75233e6ea144a80930629c3426b
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Wed Oct 18 12:23:38 2023 +0200
nvptx: Use fatal_error when -march= is missing not an assert [PR111093]
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.
Diff:
---
gcc/config/nvptx/nvptx.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/config/nvptx/nvptx.cc b/gcc/config/nvptx/nvptx.cc
index edef39fb5e1e..634c31673be9 100644
--- a/gcc/config/nvptx/nvptx.cc
+++ b/gcc/config/nvptx/nvptx.cc
@@ -335,8 +335,9 @@ nvptx_option_override (void)
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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-18 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-18 10:24 [gcc r14-4718] nvptx: Use fatal_error when -march= is missing not an assert [PR111093] Tobias Burnus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).