public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, obvious] OpenMP: GIMPLE_OMP_STRUCTURED_BLOCK bug fix
@ 2023-09-27  3:36 Sandra Loosemore
  0 siblings, 0 replies; only message in thread
From: Sandra Loosemore @ 2023-09-27  3:36 UTC (permalink / raw)
  To: GCC Patches; +Cc: Jakub Jelinek, Tobias Burnus

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]

I'm planning to push the attached 1-liner bug fix to mainline tomorrow, when 
testing has completed.  I think this qualifies as "obvious".  There's no test 
case because I discovered it while testing the updated loop transformation 
patches, which are still a work in progress; it fixed an ICE in the newly-added 
tests for that.  This is clearly just a bug in existing code unrelated to the 
new functionality, though.

-Sandra

[-- Attachment #2: missing-case.patch --]
[-- Type: text/x-patch, Size: 894 bytes --]

commit 4c3db8cf0611fa99886d698b62102ba15058776f
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Wed Sep 27 03:21:43 2023 +0000

    OpenMP: GIMPLE_OMP_STRUCTURED_BLOCK bug fix
    
    This is a bug fix for commit a62c8324e7e31ae6614f549bdf9d8a653233f8fc,
    which added GIMPLE_OMP_STRUCTURED_BLOCK.  I found a big switch statement
    over gimple codes that needs to know about this new node, but didn't.
    
    gcc/ChangeLog
            * gimple.cc (gimple_copy): Add case GIMPLE_OMP_STRUCTURED_BLOCK.

diff --git a/gcc/gimple.cc b/gcc/gimple.cc
index d5a4f634416..46f28784e07 100644
--- a/gcc/gimple.cc
+++ b/gcc/gimple.cc
@@ -2163,6 +2163,7 @@ gimple_copy (gimple *stmt)
 
 	case GIMPLE_OMP_SECTION:
 	case GIMPLE_OMP_MASTER:
+	case GIMPLE_OMP_STRUCTURED_BLOCK:
 	copy_omp_body:
 	  new_seq = gimple_seq_copy (gimple_omp_body (stmt));
 	  gimple_omp_set_body (copy, new_seq);

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

only message in thread, other threads:[~2023-09-27  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  3:36 [PATCH, obvious] OpenMP: GIMPLE_OMP_STRUCTURED_BLOCK bug fix Sandra Loosemore

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