public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix regressions introduced by Fortran compiler identification series
@ 2022-06-07 10:16 Nils-Christian Kempke
  2022-06-07 10:16 ` [PATCH v2 1/2] gdb/testsuite: use test_compiler_info in gcc_major_version Nils-Christian Kempke
  2022-06-07 10:16 ` [PATCH v2 2/2] gdb/testsuite: cache compiler_info on a per language basis Nils-Christian Kempke
  0 siblings, 2 replies; 18+ messages in thread
From: Nils-Christian Kempke @ 2022-06-07 10:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: aburgess, JiniSusan.George, tdevries, Nils-Christian Kempke

This is v2 of the series found here:

  https://sourceware.org/pipermail/gdb-patches/2022-June/189778.html

Changes since v1:
	* Patch 2/2: There was a mistake in the naming of the c++
	compiler_info variable.  Inside of compiler.cc it was named
	cc_compiler_info while in gdb.exp cpp_compiler_info was used in
	some places.  It is now called cc_compiler_info everywhere.
	Additionally, I added a section to get_compiler_info, which, if
	the compiler identification failed for a specific language (so if
	get_compiler_info would return 'unknown' for this call) caches
	the result in the respective compiler_info variable.  The first
	version of the patch had missed to do this.  Earlier setting the
	variable to 'unknown' because of some unknown compiler
	diagnostics was not properly cached.  Similarly, if the
	preprocessing of the compiler.** files did not set the
	respective **_compiler_info variable 'unknown' was returned but 
	never cached.

Patch 1/2 did not change.


Best,

Nils

Nils-Christian Kempke (2):
  gdb/testsuite: use test_compiler_info in gcc_major_version
  gdb/testsuite: cache compiler_info on a per language basis

 gdb/testsuite/lib/compiler.F90 | 14 +++---
 gdb/testsuite/lib/compiler.c   | 18 ++++----
 gdb/testsuite/lib/compiler.cc  | 18 ++++----
 gdb/testsuite/lib/gdb.exp      | 79 ++++++++++++++++++++++++++++------
 4 files changed, 91 insertions(+), 38 deletions(-)

-- 
2.25.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-06-10 11:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-07 10:16 [PATCH v2 0/2] Fix regressions introduced by Fortran compiler identification series Nils-Christian Kempke
2022-06-07 10:16 ` [PATCH v2 1/2] gdb/testsuite: use test_compiler_info in gcc_major_version Nils-Christian Kempke
2022-06-08  9:50   ` Andrew Burgess
2022-06-07 10:16 ` [PATCH v2 2/2] gdb/testsuite: cache compiler_info on a per language basis Nils-Christian Kempke
2022-06-08 14:18   ` Andrew Burgess
2022-06-08 14:22     ` [PATCH 0/5] Solve caching problems with compiler_info Andrew Burgess
2022-06-08 14:22       ` [PATCH 1/5] gdb/testsuite: use test_compiler_info in gcc_major_version Andrew Burgess
2022-06-08 14:22       ` [PATCH 2/5] gdb/testsuite: remove unneeded get_compiler_info calls from gdb.exp Andrew Burgess
2022-06-09 13:39         ` Andrew Burgess
2022-06-08 14:22       ` [PATCH 3/5] gdb/testsuite: make 'c' default language for get/test compiler info Andrew Burgess
2022-06-08 16:06         ` Kempke, Nils-Christian
2022-06-09 13:40           ` Andrew Burgess
2022-06-08 14:22       ` [PATCH 4/5] gdb/testsuite: handle errors better in test_compiler_info Andrew Burgess
2022-06-08 14:22       ` [PATCH 5/5] gdb/testsuite: solve problems with compiler_info caching Andrew Burgess
2022-06-08 16:21       ` [PATCH 0/5] Solve caching problems with compiler_info Kempke, Nils-Christian
2022-06-09 13:42         ` Andrew Burgess
2022-06-09 16:25           ` Tom de Vries
2022-06-10 11:03             ` Andrew Burgess

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).