aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/c/ChangeLog6
-rw-r--r--gcc/c/c-parser.c1
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/call.c2
4 files changed, 13 insertions, 2 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index a1831d4..b6af676 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/94629
+ * c-parser.c (c_parser_oacc_routine): Remove redundant assignment
+ to data.clauses.
+
2020-04-15 Jakub Jelinek <jakub@redhat.com>
PR c/94593
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c
index 679c14d..4e90d55 100644
--- a/gcc/c/c-parser.c
+++ b/gcc/c/c-parser.c
@@ -16939,7 +16939,6 @@ c_parser_oacc_routine (c_parser *parser, enum pragma_context context)
oacc_routine_data data;
data.error_seen = false;
data.fndecl_seen = false;
- data.clauses = NULL_TREE;
data.loc = c_parser_peek_token (parser)->location;
c_parser_consume_pragma (parser);
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b2acd89..8410ff1 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/94629
+ * call.c (build_conditional_expr_1): Remove redundant assignment to
+ arg2.
+
2020-04-16 Patrick Palka <ppalka@redhat.com>
PR c++/94475
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 1f3d9d2..c582316 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -5112,7 +5112,7 @@ build_conditional_expr_1 (const op_location_t &loc,
/* Make sure that lvalues remain lvalues. See g++.oliva/ext1.C. */
if (glvalue_p (arg1))
{
- arg2 = arg1 = cp_stabilize_reference (arg1);
+ arg1 = cp_stabilize_reference (arg1);
arg2 = arg1 = prevent_lifetime_extension (arg1);
}
else