public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Correct fix offload dwarf info
@ 2021-05-13 16:18 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:033e70def6a27d1d8b3b504444ac7fbc26eae5ff

commit 033e70def6a27d1d8b3b504444ac7fbc26eae5ff
Author: Andrew Stubbs <ams@codesourcery.com>
Date:   Sat Jan 16 15:18:07 2021 +0000

    Correct fix offload dwarf info
    
    The previous patch wasn't quite right, apparently.  Somehow the behaviour
    changed after another clean build?  This tweak fixes it.
    
    This patch should be squashed with fdcb23540a2 to go to mainline.
    
    gcc/ChangeLog:
    
            * dwarf2out.c (gen_subprogram_die): Check offload attributes only.

Diff:
---
 gcc/dwarf2out.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 5fe94fe07e2..81e1c361b99 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -23426,9 +23426,8 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
 		will ignore the function and everything nested within unless
 		we give it a notional code range (the values aren't
 		important, as long as they are valid).  */
-	     if (flag_generate_offload
-		 && lookup_attribute ("omp target entrypoint",
-				      DECL_ATTRIBUTES (decl))
+	     if (lookup_attribute ("omp target entrypoint",
+				   DECL_ATTRIBUTES (decl))
 		 && subr_die->die_parent
 		 && subr_die->die_parent->die_tag == DW_TAG_subprogram
 		 && !get_AT_low_pc (subr_die->die_parent))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 16:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:18 [gcc/devel/omp/gcc-11] Correct fix offload dwarf info Kwok Yeung

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