public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-7616] HSA: omp-grid.c – access proper clause code
@ 2020-04-08  9:55 Tobias Burnus
  0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2020-04-08  9:55 UTC (permalink / raw)
  To: gcc-cvs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1216 bytes --]

https://gcc.gnu.org/g:4ed1ff7ecbfbaef0a6dfd116f562192f08c50bb7

commit r10-7616-g4ed1ff7ecbfbaef0a6dfd116f562192f08c50bb7
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Wed Apr 8 11:54:29 2020 +0200

    HSA: omp-grid.c – access proper clause code
    
            * omp-grid.c (grid_eliminate_combined_simd_part): Use
            OMP_CLAUSE_CODE to access the omp clause code.

Diff:
---
 gcc/ChangeLog  | 5 +++++
 gcc/omp-grid.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6f2dcfb766c..07fff87d34d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
+
+	* omp-grid.c (grid_eliminate_combined_simd_part): Use
+	OMP_CLAUSE_CODE to access the omp clause code.
+
 2020-04-07  Jeff Law  <law@redhat.com>
 
 	PR rtl-optimization/92264
diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c
index b98e45de6a0..ba635fd3ea2 100644
--- a/gcc/omp-grid.c
+++ b/gcc/omp-grid.c
@@ -1065,7 +1065,7 @@ grid_eliminate_combined_simd_part (gomp_for *parloop)
   while (*pc)
     {
       tree c = *pc;
-      switch (TREE_CODE (c))
+      switch (OMP_CLAUSE_CODE (c))
 	{
 	case OMP_CLAUSE_LINEAR:
 	  {


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

only message in thread, other threads:[~2020-04-08  9:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08  9:55 [gcc r10-7616] HSA: omp-grid.c – access proper clause code Tobias Burnus

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