Skip to content

Commit b894ff3

Browse files
author
Damian Rouson
committed
Merge remote-tracking branch 'sourceryinstitute/master' into teams
2 parents ad67261 + b522f2e commit b894ff3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2183
-486
lines changed

gcc/ChangeLog

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,172 @@
1+
2017-09-21 Martin Sebor <[email protected]>
2+
3+
* PR c/81882
4+
* doc/extend.texi (attribute ifunc): Avoid relying on ill-formed
5+
code (in C++) or code that triggers warnings.
6+
7+
2017-09-21 Eric Botcazou <[email protected]>
8+
9+
* stor-layout.c (bit_from_pos): Do not distribute the conversion.
10+
11+
2017-09-21 Segher Boessenkool <[email protected]>
12+
13+
* haifa-sched.c: Rename insn_cost to insn_sched_cost.
14+
* sched-rgn.c: Ditto.
15+
* sel-sched-ir.c: Ditto.
16+
17+
2017-09-21 Alexander Monakov <[email protected]>
18+
19+
* toplev.h (set_random_seed): Adjust return type.
20+
* toplev.c (init_local_tick): Move eager initialization of random_seed
21+
to get_random_seed. Adjust comment.
22+
(init_random_seed): Inline to get_random_seed, delete.
23+
(get_random_seed): Initialize random_seed lazily.
24+
(set_random_seed): Do not return previous value.
25+
(print_switch_value): Do not call get_random_seed.
26+
27+
2017-09-21 Evgeny Kudryashov <[email protected]>
28+
29+
* cgraph.c (delete_function_version): New, broken out from...
30+
(cgraph_node::delete_function_version): ...here. Rename to
31+
cgraph_node::delete_function_version_by_decl. Update all uses.
32+
(cgraph_node::remove): Call delete_function_version.
33+
34+
2017-09-21 Jakub Jelinek <[email protected]>
35+
36+
PR sanitizer/81715
37+
* tree-inline.c (expand_call_inline): Emit clobber stmts for
38+
VAR_DECLs to which addressable non-volatile parameters are mapped
39+
and for id->retvar after the return value assignment. Clear
40+
id->retval and id->retbnd after inlining.
41+
42+
2017-09-21 Richard Biener <[email protected]>
43+
44+
PR tree-optimization/82276
45+
PR tree-optimization/82244
46+
* tree-vrp.c (build_assert_expr_for): Set
47+
SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the variable we assert on
48+
has it set.
49+
(remove_range_assertions): Revert earlier change.
50+
51+
2017-09-21 Wilco Dijkstra <[email protected]>
52+
53+
PR target/71951
54+
* config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
55+
56+
2017-09-21 Richard Biener <[email protected]>
57+
58+
* graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
59+
Restore valid IL after code generation errors.
60+
* graphite.c (graphite_transform_loops): Diagnose code
61+
generation issues as MSG_MISSED_OPTIMIZATION and continue
62+
with processing SCOPs.
63+
64+
2017-09-21 Richard Sandiford <[email protected]>
65+
Alan Hayward <[email protected]>
66+
David Sherwood <[email protected]>
67+
68+
* calls.c (compute_argument_addresses): Use simplify_gen_binary
69+
rather than choosing between plus_constant and gen_rtx_<CODE>.
70+
* expr.c (emit_push_insn): Likewise.
71+
(expand_expr_real_2): Likewise.
72+
73+
2017-09-21 Richard Sandiford <[email protected]>
74+
Alan Hayward <[email protected]>
75+
David Sherwood <[email protected]>
76+
77+
* loop-unroll.c (split_iv): Call copy_rtx on the step.
78+
79+
2017-09-21 Richard Sandiford <[email protected]>
80+
Alan Hayward <[email protected]>
81+
David Sherwood <[email protected]>
82+
83+
* tree.c (find_atomic_core_type): Check tree_fits_uhwi_p before
84+
calling tree_to_uhwi.
85+
86+
2017-09-21 Richard Sandiford <[email protected]>
87+
Alan Hayward <[email protected]>
88+
David Sherwood <[email protected]>
89+
90+
* tree-ssa-ccp.c (get_value_for_expr): Use a positive test for
91+
INTEGER_CST rather than a negative test for ADDR_EXPR.
92+
93+
2017-09-21 Richard Sandiford <[email protected]>
94+
Alan Hayward <[email protected]>
95+
David Sherwood <[email protected]>
96+
97+
* tree-vrp.c (extract_range_from_binary_expr_1): Check
98+
int_cst_rangeN before calling value_range_constant_singleton (&vrN).
99+
100+
2017-09-21 Richard Biener <[email protected]>
101+
102+
PR tree-optimization/71351
103+
* graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::
104+
graphite_create_new_loop_guard): Remove, fold remaining parts
105+
into caller ...
106+
(translate_isl_ast_node_for): ... here and simplify.
107+
108+
2017-09-21 Jakub Jelinek <[email protected]>
109+
110+
PR target/82260
111+
* config/i386/i386.md (*movqi_internal): Replace (=q,q) alternative
112+
with (=Q,Q), (=R,R) and (=r,r) alternatives, only enable the
113+
latter two for 64-bit, renumber alternatives, for -Os imov (=q,n)
114+
alternative always use QI mode, for -Os imov (=R,R) alternative
115+
always use SI mode, for imov (=Q,Q) or (=r,r) alternatives
116+
ignore -Os.
117+
118+
2017-09-20 Andreas Krebbel <[email protected]>
119+
Jeff Law <[email protected]>
120+
121+
* config/s390/s390.c (MIN_UNROLL_PROBES): Define.
122+
(allocate_stack_space): New function, partially extracted from
123+
s390_emit_prologue.
124+
(s390_emit_prologue): Track offset to most recent stack probe.
125+
Code to allocate space moved into allocate_stack_space.
126+
Dump actions when no stack is allocated.
127+
(s390_prologue_plus_offset): New function.
128+
(s390_emit_stack_probe): Likewise.
129+
130+
2017-09-20 Alexandre Oliva <[email protected]>
131+
132+
* common.opt (Wa, Wl, Wp, g, gz=): Add
133+
RejectNegative.
134+
(gno-column-info): Remove.
135+
(gcolumn-info): Drop RejectNegative.
136+
(gno-): New prefix.
137+
(gno-record-gcc-switches): Remove.
138+
(grecord-gcc-switches): Drop RejectNegative.
139+
(gno-split-dwarf): Remove.
140+
(gsplit-dwarf): Drop RejectNegative.
141+
(gno-strict-dwarf): Remove.
142+
(gstrict-dwarf): Drop RejectNegative.
143+
* config/darwin.opt (gfull, gused): Add RejectNegative.
144+
* dwarf2out.c (gen_producer_string): Drop
145+
gno-record-gcc-switches handler.
146+
* optc-gen.awk: Add g to prefixes with negative forms.
147+
* opts-common.c (remapping_prefix_p): New.
148+
(find_opt): Check it.
149+
(generate_canonical_option): Test g prefix.
150+
(option_map): Add -gno- mapping.
151+
(add_misspelling_candidates): Check remapping_prefix_p.
152+
153+
2017-09-20 Jeff Law <[email protected]>
154+
155+
* config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
156+
thinko in stack clash protection support.
157+
158+
* explow.c (compute_stack_clash_protection_loop_data): Use
159+
CONST_INT_P instead of explicit test. Verify object is a
160+
CONST_INT_P before looking at INTVAL.
161+
(anti_adjust_stack_and_probe_stack_clash): Use CONST_INT_P
162+
instead of explicit test.
163+
164+
2017-09-20 Segher Boessenkool <[email protected]>
165+
166+
PR target/77687
167+
* config/rs6000/rs6000.md (stack_restore_tie): Store to a scratch
168+
address instead of to r1 and r11.
169+
1170
2017-09-20 Sebastian Peryt <[email protected]>
2171

3172
* config.gcc: Support "knm".

gcc/DATESTAMP

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20170920
1+
20170921

gcc/ada/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-09-20 Alexandre Oliva <[email protected]>
2+
3+
* gcc-interface/lang.opt (gant, gnatO, gnat): Add RejectNegative.
4+
15
2017-09-18 Bob Duff <[email protected]>
26

37
* sem_ch4.adb (Complete_Object_Operation): Do not insert 'Access for

gcc/ada/gcc-interface/lang.opt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ Ada AdaWhy AdaSCIL
8181
Make \"char\" signed by default.
8282

8383
gant
84-
Ada AdaWhy AdaSCIL Driver Joined Undocumented
84+
Ada AdaWhy AdaSCIL Driver Joined Undocumented RejectNegative
8585
Catch typos.
8686

8787
gnatO
88-
Ada AdaWhy AdaSCIL Driver Separate
88+
Ada AdaWhy AdaSCIL Driver Separate RejectNegative
8989
Set name of output ALI file (internal switch).
9090

9191
gnat
92-
Ada AdaWhy AdaSCIL Driver Joined
92+
Ada AdaWhy AdaSCIL Driver Joined RejectNegative
9393
-gnat<options> Specify options to GNAT.
9494

9595
fbuiltin-printf

gcc/c-family/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-09-20 Alexandre Oliva <[email protected]>
2+
3+
* c.opt (gen-decls): Add RejectNegative.
4+
15
2017-09-15 Andrew Sutton <[email protected]>
26
Jakub Jelinek <[email protected]>
37

gcc/c-family/c.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1810,7 +1810,7 @@ ObjC ObjC++ Var(flag_zero_link)
18101810
Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode.
18111811

18121812
gen-decls
1813-
ObjC ObjC++ Driver Var(flag_gen_declaration)
1813+
ObjC ObjC++ Driver Var(flag_gen_declaration) RejectNegative
18141814
Dump declarations to a .decl file.
18151815

18161816
femit-struct-debug-baseonly

gcc/calls.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,11 +2197,7 @@ compute_argument_addresses (struct arg_data *args, rtx argblock, int num_actuals
21972197
if (POINTER_BOUNDS_P (args[i].tree_value))
21982198
continue;
21992199

2200-
if (CONST_INT_P (offset))
2201-
addr = plus_constant (Pmode, arg_reg, INTVAL (offset));
2202-
else
2203-
addr = gen_rtx_PLUS (Pmode, arg_reg, offset);
2204-
2200+
addr = simplify_gen_binary (PLUS, Pmode, arg_reg, offset);
22052201
addr = plus_constant (Pmode, addr, arg_offset);
22062202

22072203
if (args[i].partial != 0)
@@ -2231,11 +2227,7 @@ compute_argument_addresses (struct arg_data *args, rtx argblock, int num_actuals
22312227
}
22322228
set_mem_align (args[i].stack, align);
22332229

2234-
if (CONST_INT_P (slot_offset))
2235-
addr = plus_constant (Pmode, arg_reg, INTVAL (slot_offset));
2236-
else
2237-
addr = gen_rtx_PLUS (Pmode, arg_reg, slot_offset);
2238-
2230+
addr = simplify_gen_binary (PLUS, Pmode, arg_reg, slot_offset);
22392231
addr = plus_constant (Pmode, addr, arg_offset);
22402232

22412233
if (args[i].partial != 0)

gcc/cgraph.c

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,30 +190,34 @@ cgraph_node::insert_new_function_version (void)
190190
return version_info_node;
191191
}
192192

193-
/* Remove the cgraph_function_version_info and cgraph_node for DECL. This
194-
DECL is a duplicate declaration. */
195-
void
196-
cgraph_node::delete_function_version (tree decl)
193+
/* Remove the cgraph_function_version_info node given by DECL_V. */
194+
static void
195+
delete_function_version (cgraph_function_version_info *decl_v)
197196
{
198-
cgraph_node *decl_node = cgraph_node::get (decl);
199-
cgraph_function_version_info *decl_v = NULL;
200-
201-
if (decl_node == NULL)
202-
return;
203-
204-
decl_v = decl_node->function_version ();
205-
206197
if (decl_v == NULL)
207198
return;
208199

209200
if (decl_v->prev != NULL)
210-
decl_v->prev->next = decl_v->next;
201+
decl_v->prev->next = decl_v->next;
211202

212203
if (decl_v->next != NULL)
213204
decl_v->next->prev = decl_v->prev;
214205

215206
if (cgraph_fnver_htab != NULL)
216207
cgraph_fnver_htab->remove_elt (decl_v);
208+
}
209+
210+
/* Remove the cgraph_function_version_info and cgraph_node for DECL. This
211+
DECL is a duplicate declaration. */
212+
void
213+
cgraph_node::delete_function_version_by_decl (tree decl)
214+
{
215+
cgraph_node *decl_node = cgraph_node::get (decl);
216+
217+
if (decl_node == NULL)
218+
return;
219+
220+
delete_function_version (decl_node->function_version ());
217221

218222
decl_node->remove ();
219223
}
@@ -1844,6 +1848,7 @@ cgraph_node::remove (void)
18441848
remove_callers ();
18451849
remove_callees ();
18461850
ipa_transforms_to_apply.release ();
1851+
delete_function_version (function_version ());
18471852

18481853
/* Incremental inlining access removed nodes stored in the postorder list.
18491854
*/

gcc/cgraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ struct GTY((tag ("SYMTAB_FUNCTION"))) cgraph_node : public symtab_node {
12721272

12731273
/* Remove the cgraph_function_version_info and cgraph_node for DECL. This
12741274
DECL is a duplicate declaration. */
1275-
static void delete_function_version (tree decl);
1275+
static void delete_function_version_by_decl (tree decl);
12761276

12771277
/* Add the function FNDECL to the call graph.
12781278
Unlike finalize_function, this function is intended to be used

0 commit comments

Comments
 (0)