diff mbox

[1/6] OpenMP 4.0 C FE support

Message ID 87r43lvbql.fsf@kepler.schwinge.homeip.net
State New
Headers show

Commit Message

Thomas Schwinge May 22, 2014, 7:45 p.m. UTC
Hi!

On Tue, 8 Oct 2013 21:52:40 +0200, Jakub Jelinek <jakub@redhat.com> wrote:
> --- gcc/c/c-parser.c	(.../trunk)	(revision 203241)
> +++ gcc/c/c-parser.c	(.../branches/gomp-4_0-branch)	(revision 203287)

> +c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
> [...]
> +  location_t num_teams_loc = c_parser_peek_token (parser)->location;

Applied in r210821:

commit 22ac3f78e77bed5dd3ede9db86954581175dcd96
Author:     tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
AuthorDate: Thu May 22 19:44:14 2014 +0000
Commit:     tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
CommitDate: Thu May 22 19:44:14 2014 +0000

    Fix copy'n'pasto.
    
    	gcc/c/
    	* c-parser.c (c_parser_omp_clause_thread_limit): Rename
    	num_teams_loc variable to num_thread_limit_loc.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210821 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/c/ChangeLog  | 5 +++++
 gcc/c/c-parser.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)



Grüße,
 Thomas
diff mbox

Patch

diff --git gcc/c/ChangeLog gcc/c/ChangeLog
index 76d5c46..9acc6f7 100644
--- gcc/c/ChangeLog
+++ gcc/c/ChangeLog
@@ -1,3 +1,8 @@ 
+2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
+
+	* c-parser.c (c_parser_omp_clause_thread_limit): Rename
+	num_teams_loc variable to num_thread_limit_loc.
+
 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
 
 	* c-array-notation.c (expand_array_notations): Use void_node
diff --git gcc/c/c-parser.c gcc/c/c-parser.c
index bfc7147..a7e33b0 100644
--- gcc/c/c-parser.c
+++ gcc/c/c-parser.c
@@ -10453,7 +10453,7 @@  c_parser_omp_clause_num_teams (c_parser *parser, tree list)
 static tree
 c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
 {
-  location_t num_teams_loc = c_parser_peek_token (parser)->location;
+  location_t num_thread_limit_loc = c_parser_peek_token (parser)->location;
   if (c_parser_require (parser, CPP_OPEN_PAREN, "expected %<(%>"))
     {
       location_t expr_loc = c_parser_peek_token (parser)->location;
@@ -10483,7 +10483,7 @@  c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
       check_no_duplicate_clause (list, OMP_CLAUSE_THREAD_LIMIT,
 				 "thread_limit");
 
-      c = build_omp_clause (num_teams_loc, OMP_CLAUSE_THREAD_LIMIT);
+      c = build_omp_clause (num_thread_limit_loc, OMP_CLAUSE_THREAD_LIMIT);
       OMP_CLAUSE_THREAD_LIMIT_EXPR (c) = t;
       OMP_CLAUSE_CHAIN (c) = list;
       list = c;