public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] darwin: Don't set dwarf_strict for D front-end
@ 2020-12-21 20:36 Iain D Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain D Sandoe @ 2020-12-21 20:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:14e2931fc2b799a182b1459bebb6fd6dc7b16086

commit 14e2931fc2b799a182b1459bebb6fd6dc7b16086
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Nov 30 10:13:47 2020 +0100

    darwin: Don't set dwarf_strict for D front-end

Diff:
---
 gcc/config/darwin.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 3265e3e6cb7..9c19b6e8f1e 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -97,6 +97,9 @@ static GTY(()) vec<cdtor_record, va_gc> *dtors = NULL;
    functions).  */
 int darwin_running_cxx;
 
+/* A flag to determine whether we are running D.  */
+int darwin_running_d;
+
 /* Some code-gen now depends on OS major version numbers (at least).  */
 int generating_for_darwin_version ;
 
@@ -3264,9 +3267,11 @@ darwin_override_options (void)
 		  global_options.x_flag_objc_abi);
     }
 
+  darwin_running_d = (strcmp (lang_hooks.name, "GNU D") == 0);
+
   /* Don't emit DWARF3/4 unless specifically selected.  This is a
      workaround for tool bugs.  */
-  if (!global_options_set.x_dwarf_strict)
+  if (!global_options_set.x_dwarf_strict && !darwin_running_d)
     dwarf_strict = 1;
   if (!global_options_set.x_dwarf_version)
     dwarf_version = 2;


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

* [gcc(refs/users/iains/heads/d-for-darwin)] darwin: Don't set dwarf_strict for D front-end
@ 2020-12-13 17:42 Iain D Sandoe
  0 siblings, 0 replies; 2+ messages in thread
From: Iain D Sandoe @ 2020-12-13 17:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e15007f8b3808b014719fc18f21e2b05bf417634

commit e15007f8b3808b014719fc18f21e2b05bf417634
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Mon Nov 30 10:13:47 2020 +0100

    darwin: Don't set dwarf_strict for D front-end

Diff:
---
 gcc/config/darwin.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 3265e3e6cb7..9c19b6e8f1e 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -97,6 +97,9 @@ static GTY(()) vec<cdtor_record, va_gc> *dtors = NULL;
    functions).  */
 int darwin_running_cxx;
 
+/* A flag to determine whether we are running D.  */
+int darwin_running_d;
+
 /* Some code-gen now depends on OS major version numbers (at least).  */
 int generating_for_darwin_version ;
 
@@ -3264,9 +3267,11 @@ darwin_override_options (void)
 		  global_options.x_flag_objc_abi);
     }
 
+  darwin_running_d = (strcmp (lang_hooks.name, "GNU D") == 0);
+
   /* Don't emit DWARF3/4 unless specifically selected.  This is a
      workaround for tool bugs.  */
-  if (!global_options_set.x_dwarf_strict)
+  if (!global_options_set.x_dwarf_strict && !darwin_running_d)
     dwarf_strict = 1;
   if (!global_options_set.x_dwarf_version)
     dwarf_version = 2;


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

end of thread, other threads:[~2020-12-21 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 20:36 [gcc(refs/users/iains/heads/d-for-darwin)] darwin: Don't set dwarf_strict for D front-end Iain D Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2020-12-13 17:42 Iain D Sandoe

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