================
@@ -292,6 +292,10 @@ void Flang::addDebugOptions(const llvm::opt::ArgList 
&Args, const JobAction &JA,
                    options::OPT_fno_openacc_multiple_names_in_routine,
                    options::OPT_finstrument_functions});
 
+  // Forward whichever of -fbacktrace/-fno-backtrace appears last. Pass
----------------
shivaramaarao wrote:

@eugeneepshteyn apologies for misleading in my earlier comment. flang-rt has 
only support for printing backtrace. it is not controlled by environment 
variables but controlled by compile time #ifdef HAVE_BACKTRACE (set during 
configure step). It also doesn't print backtrace for  runtime error, ERROR 
STOP, or a deadly signal such as SIGSEGV or SIGFPE. It is called only by abort 
and backtrace functions. I am using same function to print backtrace.

I use environment variable FLANG_ERROR_BACKTRACE to print the backtrace. This 
variable is set to 1 by default and set to 0 when -fno-backtrace option is 
passed as mentioned by you.

https://github.com/llvm/llvm-project/pull/241967
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to