]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
resolve.c (get_temp_from_expr): Change mangling to start always with a _.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
73a1a707
RR
12013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2
3 PR target/19599
4 PR target/57340
5 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
6 (any_sibcall_could_use_r3): this and handle indirect calls.
7 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
8
d28073d4
BS
92013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10
11 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
12
bee0b10c
RB
132013-05-22 Richard Biener <rguenther@suse.de>
14
15 PR middle-end/57349
16 * profile.c (branch_prob): Do not split blocks that are
17 abnormally receiving from ECF_RETURNS_TWICE functions.
18
98409b51
RS
192013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20
21 * recog.c (offsettable_address_addr_space_p): Fix calculation of
22 address mode. Move pointer mode initialization to the same place.
23
c0602ab8
MZ
242013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25
26 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
27 while it has any effect.
28
4f7a634e
ER
292013-05-21 Easwaran Raman <eraman@google.com>
30
31 PR tree-optimization/57322
32 * (build_and_add_sum): If a BB is empty, set the UID of the statement
33 added to the BB to be 1.
34
a4ce1258
JJ
352013-05-21 Jakub Jelinek <jakub@redhat.com>
36
37 PR tree-optimization/57331
38 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize
39 comparison of conversion from pointer type to integral type
40 with integer.
41
1b14621a
MJ
422013-05-21 Martin Jambor <mjambor@suse.cz>
43
44 PR lto/57289
45 * ipa-prop.c (ipa_read_node_info): Process param_used and
46 controlled_uses in the same order as when writing.
47
e60661f0
MG
482013-05-21 Magnus Granberg <baldrick@free.fr>
49
50 PR plugins/56754
ee49aa34 51 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 52
4a61be9a
RB
532013-05-21 Richard Biener <rguenther@suse.de>
54
55 PR tree-optimization/57318
56 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
57 estimate stmts with side-effects as likely eliminated.
58
c52da5f7
RB
592013-05-21 Richard Biener <rguenther@suse.de>
60
61 PR tree-optimization/57330
62 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
63 preserve the call stmts fntype.
64
7ec67e2a
RB
652013-05-21 Richard Biener <rguenther@suse.de>
66
67 PR tree-optimization/57303
68 * tree-ssa-sink.c (statement_sink_location): Improve killing
69 stmt detection and properly handle self-assignments.
70
b112d513
CB
712013-05-21 Christian Bruel <christian.bruel@st.com>
72
73 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
74 spanning registers. LEAF_REG_REMAP is supported only for contiguous
75 registers. Set register size out of the PARALLEL loop.
76
14c2ec26
OE
772013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
78
79 PR target/56547
80 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
81 (*fmasf4, *fmasf4_media): New insns.
82
da734fa1
RS
832013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
84
85 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
86 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
87 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
88 (mips_idiv_insns): Update the comments to say that the returned
89 instruction counts are in units of BASE_INSN_LENGTH.
90 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
91 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
92 using 2 rather than 4 as the length of indirect MIPS16 and
93 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
94 length of a NOP. Don't divide MIPS16 lengths by 2.
95 (mips16_split_long_branches): Assume a branch is long if the
96 length is greater than 4 rather than 8.
97 * config/mips/mips.md (length): Give MIPS16 lengths directly,
98 rather than multiplying them by 2. Multiply instruction counts
99 by BASE_INSN_LENGTH rather than 4.
100 (*jump_mips16, tls_get_tp_mips16_<mode>)
101 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
102
13719e8b
RS
1032013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
104
105 * config/mips/mips.md (extended_mips16): Remove branch case.
106 (length): Remove duplicated extended_mips16 test.
107
c3850d14
RS
1082013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
109
110 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
111
8da2e059
RS
1122013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
113
114 * recog.h (Recog_data): Rename to...
115 (recog_data_d): ...this.
116 (recog_data): Update accordingly.
117 * recog.c (recog_data): Likewise.
118 * reload.c (save_recog_data): Likewise.
119 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
120 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
121
2df013f3
JB
1222013-05-17 Julian Brown <julian@codesourcery.com>
123
124 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
125 found in a REG_EQUAL note, invalidate it.
126
933f507d
ER
1272013-05-17 Easwaran Raman <eraman@google.com>
128
129 * tree-ssa-reassoc.c (find_insert_point): New function.
130 (insert_stmt_after): Likewise.
131 (get_def_stmt): Likewise.
132 (ensure_ops_are_available): Likewise.
133 (not_dominated_by): Likewise.
134 (rewrite_expr_tree): Do not move statements beyond what is
135 necessary. Remove call to swap_ops_for_binary_stmt...
136 (reassociate_bb): ... and move it here.
137 (build_and_add_sum): Assign UIDs for new statements.
138 (linearize_expr): Likewise.
139 (do_reassoc): Renumber gimple statement UIDs.
140
e01c7cca
JH
1412013-05-17 Jan Hubicka <jh@suse.cz>
142
143 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
144 weakrefs.
145 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
146 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
147 weakrefs.
e01c7cca
JH
148 (output_weakrefs): Update.
149
c3272a92
PCC
1502013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
151 Martin Jambor <mjambor@suse.cz>
152
153 PR middle-end/57276
154 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
155 value that corresponds to the given aggval is found in values vector.
156
11c2aa39
UB
1572013-05-17 Uros Bizjak <ubizjak@gmail.com>
158
159 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
160 sse, sse2, sse3, ssse3 and sse4a flags to options.
161
abecc8c6
DM
1622013-05-17 David Malcolm <dmalcolm@redhat.com>
163
164 * gengtype-state.c: (s_expr_writer): New class, to handle
165 prettifying of output layout of s-expressions.
166 (state_writer): New class, to write out gtype.state.
167 (state_written_type_count): Move this variable into member data of
168 state_writer.
169 (s_expr_writer::s_expr_writer): New code: constructor for new class
170 (state_writer::state_writer(): ditto
171 (s_expr_writer::write_new_line): New function
172 (s_expr_writer::write_any_indent): ditto
173 (s_expr_writer::begin_s_expr): ditto
174 (s_expr_writer::end_s_expr): ditto
175 (write_state_fileloc): convert to method of state_writer...
176 (state_writer:: write_state_fileloc): ...and use methods of
177 s_expr_writer to write indentation into the gtype.state output file
178 to visually represent the hierarchical structure of the list
179 structures
180 (write_state_fields): ditto, renaming to...
181 (state_writer::write_state_fields)
182 (write_state_a_string): ditto, renaming to...
183 (state_writer::write_state_a_string)
184 (write_state_string_option): ditto, renaming to...
185 (state_writer::write_state_string_option)
186 (write_state_type_option): ditto, renaming to...
187 (state_writer::write_state_type_option)
188 (write_state_nested_option): ditto, renaming to...
189 (state_writer::write_state_nested_option)
190 (write_state_option): ditto, renaming to...
191 (state_writer::write_state_option)
192 (write_state_options): ditto, renaming to...
193 (state_writer::write_state_options)
194 (write_state_lang_bitmap): ditto, renaming to...
195 (state_writer::write_state_lang_bitmap)
196 (write_state_version): ditto, renaming to...
197 (state_writer::write_state_version)
198 (write_state_scalar_type): ditto, renaming to...
199 (state_writer::write_state_scalar_type)
200 (write_state_string_type): ditto, renaming to...
201 (state_writer::write_state_string_type)
202 (write_state_undefined_type): ditto, renaming to...
203 (state_writer::write_state_undefined_type)
204 (write_state_struct_union_type): ditto, renaming to...
205 (state_writer::write_state_struct_union_type)
206 (write_state_struct_type): ditto, renaming to...
207 (state_writer::write_state_struct_type)
208 (write_state_user_struct_type): ditto, renaming to...
209 (state_writer::write_state_user_struct_type)
210 (write_state_lang_struct_type): ditto, renaming to...
211 (state_writer::write_state_lang_struct_type)
212 (write_state_param_struct_type): ditto, renaming to...
213 (state_writer::write_state_param_struct_type)
214 (write_state_pointer_type): ditto, renaming to...
215 (state_writer::write_state_pointer_type)
216 (write_state_array_type): ditto, renaming to...
217 (state_writer::write_state_array_type)
218 (write_state_gc_used): ditto, renaming to...
219 (state_writer::write_state_gc_used)
220 (write_state_common_type_content): ditto, renaming to...
221 (state_writer::write_state_common_type_content)
222 (write_state_type): ditto, renaming to...
223 (state_writer::write_state_type)
224 (write_state_pair_list): ditto, renaming to...
225 (state_writer::write_state_pair_list)
226 (write_state_pair): ditto, renaming to...
227 (state_writer::write_state_pair)
228 (write_state_typedefs): ditto, renaming to...
229 (state_writer::write_state_typedefs)
230 (write_state_structures): ditto, renaming to...
231 (state_writer::write_state_structures)
232 (write_state_param_structs): ditto, renaming to...
233 (state_writer::write_state_param_structs)
234 (write_state_variables): ditto, renaming to...
235 (state_writer::write_state_variables)
236 (write_state_srcdir): ditto, renaming to...
237 (state_writer::write_state_srcdir)
238 (write_state_files_list): ditto, renaming to...
239 (state_writer::write_state_files_list)
240 (write_state_languages): ditto, renaming to...
241 (state_writer::write_state_languages)
242 (write_state): create a state_writer instance and use it when
243 writing out the state file
244
d6545f29
MS
2452013-05-17 Mike Stump <mikestump@comcast.net>
246
816a3f73 247 PR rtl-optimization/57304
d6545f29
MS
248 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
249 accessing DF_REF_REAL_LOC.
250
38c821cf
JJ
2512013-05-17 Jakub Jelinek <jakub@redhat.com>
252
253 PR rtl-optimization/57281
254 PR rtl-optimization/57300
255 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
256 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
257 what the other splitter did if the registers are dead.
258
2a293391
RB
2592013-05-17 Richard Biener <rguenther@suse.de>
260
261 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
262 MEM_REF offsets.
263
17042d2b
JJ
2642013-05-17 Jakub Jelinek <jakub@redhat.com>
265
266 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
267 linking.
268
5b115c1f
MP
2692013-05-17 Marek Polacek <polacek@redhat.com>
270
11c2aa39
UB
271 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
272 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 273
52d84413
JJ
2742013-05-17 Jakub Jelinek <jakub@redhat.com>
275
68119618
JJ
276 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
277 vect_external_def oprnd1 with loop_vinfo, try to emit
278 optional cast, negation and and stmts on the loop preheader
279 edge instead of into the pattern def seq.
280
52d84413
JJ
281 PR tree-optimization/57051
282 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
283 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
284
17b962bd
NC
2852013-05-16 Nick Clifton <nickc@redhat.com>
286
287 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
288 (rl78_is_naked_func): New function.
289 (rl78_expand_prologue): Skip prologue generation for naked
290 functions.
291 (rl78_expand_epilogue): Skip epilogue generation for naked
292 functions.
293 * doc/extend.texi (naked): Add RL78 to the list of processors
294 that supports this attribute.
295
b1a0f84e
JL
2962013-05-16 Jeff Law <law@redhat.com>
297
298 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
299
af0e415b
UB
3002013-05-16 Uros Bizjak <ubizjak@gmail.com>
301
302 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
303 cache parameters using detect_caches_amd also for CYRIX,
304 NSC and TM2 signatures.
305
19db293a
UB
3062013-05-16 Uros Bizjak <ubizjak@gmail.com>
307 Dzianis Kahanovich <mahatma@eu.by>
308
309 PR target/45359
310 PR target/46396
311 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
312 VIA/Centaur processors and determine their cache parameters
313 using detect_caches_amd.
314
251a41b9
TJ
3152013-05-16 Teresa Johnson <tejohnson@google.com>
316
317 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
318 (rtl_verify_edges): New function.
319 (rtl_verify_bb_insns): Ditto.
320 (rtl_verify_bb_pointers): Ditto.
321 (rtl_verify_bb_insn_chain): Ditto.
322 (rtl_verify_fallthru): Ditto.
323 (rtl_verify_bb_layout): Ditto.
324 (rtl_verify_flow_info_1): Outline checks into new functions.
325 (rtl_verify_flow_info): Ditto.
326
f14540b6
SE
3272013-05-16 Steve Ellcey <sellcey@imgtec.com>
328
329 * cfghooks.c (copy_bbs): Add update_dominance argument.
330 * cfghooks.h (copy_bbs): Update prototype.
331 * tree-cfg.c (gimple_duplicate_sese_region):
332 Add update_dominance argument.
333 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
334 * tree-ssa-loop-ch.c (copy_loop_headers): Update
335 gimple_duplicate_sese_region call.
336 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
337 Update copy_bbs call.
338 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
339 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
340
7e9a3abb
JJ
3412013-05-16 Jakub Jelinek <jakub@redhat.com>
342
343 * tree-vectorizer.h (NUM_PATTERNS): Increment.
344 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
345 vect_recog_rotate_pattern.
346 (vect_recog_rotate_pattern): New function.
347
427b248d
JM
3482013-05-16 Jason Merrill <jason@redhat.com>
349
350 * Makefile.in (LLINKER): New variable.
351 (mostlyclean): Remove link mutex.
352 * configure.ac: Handle --enable-link-mutex.
353 * lock-and-run.sh: New script.
354
b871e3d2
RR
3552013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
356
357 PR target/19599
358 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
359 for NULL decl.
360
ce858126
RO
3612013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362
363 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
364
798d3d04
GY
3652013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
366
367 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
368 * config/arm/arm.c (next_consecutive_mem): New function.
369 (gen_movmem_ldrd_strd): Likewise.
370 * config/arm/arm.md (movmemqi): Update condition and code.
371 (unaligned_loaddi, unaligned_storedi): New patterns.
372
0baddc45
RO
3732013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374
375 * config.gcc: Obsolete *-*-solaris2.9*.
376 * doc/install.texi (Specific, *-*-solaris2*): Document it.
377
aa9d5bcf
RB
3782013-05-16 Richard Biener <rguenther@suse.de>
379
380 * passes.c (init_optimization_passes): Move pass_parallelize_loops
381 earlier, after GRAPHITE transforms and IV canonicalization.
382
5a0f4dd3
JJ
3832013-05-16 Jakub Jelinek <jakub@redhat.com>
384
385 * omp-low.c (extract_omp_for_data): For collapsed loops,
386 if at least one of the loops is known at compile time to
387 iterate zero times, set count to 0.
388 (expand_omp_regimplify_p): New function.
389 (expand_omp_for_generic): For collapsed loops, if at least
390 one of the loops isn't known to iterate at least once,
391 add runtime check with setting count to 0.
392 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
393 For unsigned types if it isn't known at compile time that
394 the loop will iterate at least once, add runtime check to bypass
395 the whole loop if initial condition isn't true.
396
e3753785
NS
3972013-05-16 Nathan Sidwell <nathan@codesourcery.com>
398
399 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
400
43bb4dd1
MG
4012013-05-16 Marc Glisse <marc.glisse@inria.fr>
402
403 PR middle-end/57286
404 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
405 transformations to avoid an infinite loop.
406
3571dde6
MP
4072013-05-16 Marek Polacek <polacek@redhat.com>
408
409 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
410
b8b3f0ca
LE
4112013-05-15 Leif Ekblad <leif@rdos.net>
412
413 * config/i386/i386.c (ix86_decompose_address): Use
414 DEFAULT_TLS_SEG_REG to access TLS segment register.
415 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
416 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
417 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
418
e299a383
RS
4192013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
420
421 PR target/57260
422 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
423 sibling calls to functions that would normally be lazily bound,
424 unless $gp is call-clobbered.
425
e7208ea3
UB
4262013-05-15 Uros Bizjak <ubizjak@gmail.com>
427
19db293a 428 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 429 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
430 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
431 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
432 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
433 of TARGET_3DNOW.
434 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
435
e7413f3d
AS
4362013-05-15 Andreas Schwab <schwab@suse.de>
437
438 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
439 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
440 third operand.
441
ad4db775
TJ
4422013-05-15 Teresa Johnson <tejohnson@google.com>
443
444 * loop-unroll.c (report_unroll_peel): Check decision before
445 emitting unroll/peel message.
446
af205f67
TJ
4472013-05-15 Teresa Johnson <tejohnson@google.com>
448
449 * function.h (has_bb_partition): New rtl_data flag.
450 (bb_reorder_complete): Ditto.
451 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
452 instead of flag_reorder_blocks_and_partition.
453 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
454 with some enhancements.
455 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
456 * bb-reorder.c (connect_traces): Check for has_bb_partition
457 instead of flag_reorder_blocks_and_partition.
458 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
459 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
460 verify_hot_cold_block_grouping.
461 (partition_hot_cold_basic_blocks): Set has_bb_partition.
462
9adcfa3c
RR
4632013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
464
465 PR target/19599
466 * config/arm/predicates.md (call_insn_operand): New predicate.
467 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
468 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
469 if insn is not a tail call.
470 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
471 registers.
472 * config/arm/arm.h (enum reg_class): New caller save register class.
473 (REG_CLASS_NAMES): Likewise.
474 (REG_CLASS_CONTENTS): Likewise.
475 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
476 without decls.
477
ccb3ad87
RB
4782013-05-15 Richard Biener <rguenther@suse.de>
479
480 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
481 of MSG_OPTIMIZED_LOCATIONS.
482 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
483 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
484 message.
485 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
486 of MSG_OPTIMIZED_LOCATIONS.
487 (execute_vect_slp): Likewise.
488 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
489 (vect_create_cond_for_alias_checks): Likewise.
490 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
491 (vect_recog_widen_mult_pattern): Likewise.
492 (vect_recog_widen_sum_pattern): Likewise.
493 (vect_recog_over_widening_pattern): Likewise.
494 (vect_recog_widen_shift_pattern): Likewise.
495 (vect_recog_vector_vector_shift_pattern): Likewise.
496 (vect_recog_divmod_pattern): Likewise.
497 (vect_recog_mixed_size_cond_pattern): Likewise.
498 (vect_recog_bool_pattern): Likewise.
499 (vect_pattern_recog_1): Likewise.
500
48b1474e
MJ
5012013-05-15 Martin Jambor <mjambor@suse.cz>
502
503 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
504 non-functions to builtin_unreachable.
505 * ipa-inline-transform.c (inline_call): Do not assert estimates were
506 correct when new direct edges were discovered.
507
9de04252
MJ
5082013-05-15 Martin Jambor <mjambor@suse.cz>
509
510 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
511 header, print symbol order instead of node uid, print more information
512 about indirect edge targets.
513 (ipa_make_edge_direct_to_target): Print symbol order instead of node
514 uids.
515 (ipa_make_edge_direct_to_target): Likewise.
516 (remove_described_reference): Likewise.
517 (propagate_controlled_uses): Likewise.
518 (ipa_print_node_params): Also print symbol order.
519 (ipcp_transform_function): Print symbol order instead of node uids.
520 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
521 (cgraph_get_create_real_symbol_node): Likewise.
522 * ipa-cp.c (print_lattice): Likewise.
523 (print_all_lattices): Likewise.
524 (determine_versionability): Likewise.
525 (initialize_node_lattices): Likewise.
526 (estimate_local_effects): Likewise.
527 (update_profiling_info): Likewise.
528 (create_specialized_node): Likewise.
529 (perhaps_add_new_callers): Likewise.
530 (decide_about_value): Likewise.
531 (decide_whether_version_node): Likewise.
532 (identify_dead_nodes): Likewise.
533 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
534 (dump_inline_summary): Likewise.
535 (estimate_node_size_and_time): Likewise.
536 (inline_analyze_function): Likewise.
537 * ipa-inline.c (report_inline_failed_reason): Likewise.
538 (want_early_inline_function_p): Likewise.
539 (edge_badness): Likewise.
540 (update_edge_key): Likewise.
541 (inline_small_functions): Likewise. Add dumping of order to two other
542 dumps.
543 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
544 instead of node uids.
545 (propagate_pure_const): Likewise.
546 (propagate_pure_const): Likewise.
547 * ipa-utils.c (dump_cgraph_node_set): Likewise.
548 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
549 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
550 of node uids.
551 * tree-pretty-print.c (dump_function_header): Likewise.
552 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
553 Print symbol order instead of node uids.
554
1dd03b91
AK
5552013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
556
557 * config/s390/s390.c (s390_register_move_cost): Don't impose the
558 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
559
fdf6a7b9
RB
5602013-05-15 Richard Biener <rguenther@suse.de>
561
562 PR tree-optimization/57275
563 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
564 return value for fail to do runtime alias checks for gather loads.
565
2d6e4603
JH
5662013-05-15 Jan Hubicka <jh@suse.cz>
567
568 PR lto/57038
569 PR lto/47375
e7208ea3
UB
570 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
571 weakrefs are not external.
572 (lto_symtab_merge_decls): Fix thinko when dealing with
573 non-lto_symtab decls.
2d6e4603
JH
574 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
575 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
576 * varpool.c (dump_varpool_node): Dump more flags.
577
83f44b39
GG
5782013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
579
580 * config/i386/i386.c (processor_alias_table): Add instruction
581 FSGSBASE for AMD bdver3 architecture.
582
2e55d062
JJ
5832013-05-14 Jakub Jelinek <jakub@redhat.com>
584
585 * tree.c (warn_deprecated_use): Print file:line using locus color.
586 * diagnostic.c (diagnostic_report_current_module): Print file:line
587 and file:line:column using locus color.
588
0bfdb81e
MS
5892013-05-14 Mike Stump <mikestump@comcast.net>
590
591 * gdbinit.in: Add __null.
592
a508ef22
MS
5932013-05-14 Mike Stump <mikestump@comcast.net>
594
595 * recog.h: Rename struct recog_data to Recog_data.
596 * recog.c: Likewise.
597 * reload.c (can_reload_into): Likewise.
598 * config/picochip/picochip.c: Likewise.
599
e7180acb
MS
6002013-05-14 Mike Stump <mikestump@comcast.net>
601
602 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
603
61216c26
SB
6042013-05-14 Steven Bosscher <steven@gcc.gnu.org>
605
fd6beed4
SB
606 * resource.h (struct resources): Remove unch_memory member.
607 (CLEAR_RESOURCE): Don't clear unch_memory.
608 * resource.c (mark_referenced_resources): Don't set it.
609 (mark_set_resources): Likewise.
610 (mark_target_live_regs): Don't clear it.
611 (init_resource_info): Likewise.
612 * reorg.c (resource_conflicts_p): Don't compare it.
613 (redundant_insn): Don't set it.
614
61216c26
SB
615 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
616 Remove prototypes.
617 * emit-rtl.c (next_label): Remove unused function.
618 (skip_consecutive_labels, link_cc0_insns): Move to ...
619 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
620 only place where these functions are used, and make them static.
621
418d1b87
MG
6222013-05-14 Marc Glisse <marc.glisse@inria.fr>
623
624 * fold-const.c (fold_negate_expr): Handle vectors.
625 (fold_truth_not_expr): Make it static.
626 (fold_invert_truthvalue): New static function.
627 (invert_truthvalue_loc): Handle vectors. Do not call
628 fold_truth_not_expr directly.
629 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
630 <TRUTH_NOT_EXPR>: Do not cast to boolean.
631 (fold_comparison): Handle vector constants.
632 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
633 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
634 * tree.h (fold_truth_not_expr): Remove declaration.
635
fc21784d
JG
6362013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
637
638 * config/aarch64/aarch64-simd.md
639 (aarch64_vcond_internal<mode>): Rename to...
640 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
641 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
642 float modes. Clarify all iterator modes.
643 (vcond<mode><mode>): Use new name for vcond expanders.
644 (vcond<v_cmp_result><mode>): Likewise.
645 (vcondu<mode><mode>: Likewise.
646 * config/aarch64/iterators.md (VDQF_COND): New.
647
d4c52634
MG
6482013-05-14 Marc Glisse <marc.glisse@inria.fr>
649
650 PR bootstrap/57266
651 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
652 variable for the shift amount. Check that we shift by non-negative
653 amounts.
654
2b261262
CLT
6552013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
656
657 PR target/42017
658 * config/arm/arm.h (EPILOGUE_USES): Only return true
659 for LR_REGNUM after epilogue_completed.
660
6e022d7b
JR
6612013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
662
663 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 664 is error_mark_node.
6e022d7b 665
56cf7859
RO
6662013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667
668 PR target/57261
669 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
670 and Solaris 11+/x86 with gld.
671 * configure: Regenerate.
672
75776c6d
JJ
6732013-05-14 Jakub Jelinek <jakub@redhat.com>
674
675 * expmed.c (expand_shift_1): Canonicalize rotates by
676 constant bitsize / 2 to bitsize - 1.
677 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
678 case ROTATERT>: Likewise.
679
680 Revert:
681 2013-05-10 Jakub Jelinek <jakub@redhat.com>
682
683 * config/i386/i386.md (rotateinv): New code attr.
684 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
685 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
686 roll $31, %eax, etc.
687
df35498a
RB
6882013-05-14 Richard Biener <rguenther@suse.de>
689
690 PR middle-end/57235
691 * tree-eh.c (sink_clobbers): Give up for successors with
692 multiple predecessors and no virtual uses.
693
cc6e7ece
EB
6942013-05-14 Eric Botcazou <ebotcazou@adacore.com>
695
696 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
697 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
698
f778dd4d
JJ
6992013-05-14 Jakub Jelinek <jakub@redhat.com>
700
701 PR middle-end/57251
702 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
703 the case when both op0 and op1 have VOIDmode.
704
bad4df9b
KP
7052013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
706
707 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
708 in multiply-accumulate mode.
709
56f3e9ac
GW
7102013-05-13 Guozhi Wei <carrot@google.com>
711
712 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
713
a3d7ab92
KT
7142013-05-13 Kai Tietz <ktietz@redhat.com>
715
716 PR target/56975
717 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 718 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 719 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 720 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
721 (ix86_expand_prologue): Likewise.
722 (ix86_expand_split_stack_prologue): Likewise.
723 (legitimate_pic_address_disp_p): Likewise.
724 (legitimize_pic_address): Likewise.
725 (legitimize_tls_address): Likewise.
726 (legitimize_pe_coff_symbol): Likewise.
727 (output_pic_addr_const): Likewise.
728 (construct_plt_address): Likewise.
729 (ix86_expand_call): Likewise.
730 (x86_output_mi_thunk): Likewise.
731 (x86_function_profiler): Likewise.
732
c59b7e28
SN
7332013-05-13 Sofiane Naci <sofiane.naci@arm.com>
734
735 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
736 similar switch cases.
737 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
738 (aarch64_simd_mov_to_<mode>low): Delete.
739 (aarch64_simd_mov_to_<mode>high): Delete.
740 (move_lo_quad_<mode>): Add w<-r alternative.
741 (aarch64_simd_move_hi_quad_<mode>): Likewise.
742 (aarch64_simd_mov_from_*): Update type attribute.
743 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
744 statement.
745
5f28524a
JH
7462013-05-13 Jan Hubicka <jh@suse.cz>
747
748 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
749 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
750 ix86_expand_epilogue, emit_i387_cw_initialization,
751 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
752 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 753
ae6fa899
JJ
7542013-05-13 Jakub Jelinek <jakub@redhat.com>
755
756 PR tree-optimization/45216
757 PR tree-optimization/57157
758 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
759 the (-Y) & (B - 1) variant if OP is |.
760 * expmed.c (expand_shift_1): For rotations by const0_rtx just
761 return shifted. Use (-op1) & (prec - 1) as other_amount
762 instead of prec - op1.
763
4502fe8d
MJ
7642013-05-13 Martin Jambor <mjambor@suse.cz>
765
766 PR middle-end/42371
767 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
768 (ipa_constant_data): New type.
769 (ipa_jump_func): Use ipa_constant_data to hold information about
770 constant jump functions.
771 (ipa_get_jf_constant): Adjust to jump function type changes.
772 (ipa_get_jf_constant_rdesc): New function.
773 (ipa_param_descriptor): New field controlled_uses.
774 (ipa_get_controlled_uses): New function.
775 (ipa_set_controlled_uses): Likewise.
776 * ipa-ref.h (ipa_find_reference): Declare.
777 * ipa-prop.c (ipa_cst_ref_desc): New type.
778 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
779 changes.
780 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
781 New parameter cs. Adjust all callers.
782 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
783 (remove_described_reference): New function.
784 (jfunc_rdesc_usable): Likewise.
785 (try_make_edge_direct_simple_call): Decrement controlled use count,
786 attempt to remove reference if it hits zero.
787 (combine_controlled_uses_counters): New function.
788 (propagate_controlled_uses): Likewise.
789 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
790 (ipa_edge_duplication_hook): Duplicate reference descriptions.
791 (ipa_print_node_params): Print described use counter.
792 (ipa_write_jump_function): Adjust to jump function type changes.
793 (ipa_read_jump_function): New parameter CS, pass it to
794 ipa_set_jf_constant. Adjust caller.
795 (ipa_write_node_info): Stream controlled use count
796 (ipa_read_node_info): Likewise.
797 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
798 asserting.
799 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
800 count. Remove cloning-added reference if it reaches zero.
801 * ipa-ref.c (ipa_find_reference): New function.
802
0864bfc2
GG
8032013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
804
e7208ea3 805 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
806 alignment values for AMD BD and BT architectures.
807
640bfeb2
MG
8082013-05-13 Marc Glisse <marc.glisse@inria.fr>
809
810 * tree-vect-generic.c (uniform_vector_p): Move ...
811 * tree.c (uniform_vector_p): ... here.
812 * tree.h (uniform_vector_p): Declare it.
813 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
814 into a scalar.
815
3a60f32b
JJ
8162013-05-13 Jakub Jelinek <jakub@redhat.com>
817
198fe1bf
JJ
818 PR tree-optimization/57230
819 * tree-ssa-strlen.c (handle_char_store): Record length for
820 array store from STRING_CST.
821
3a60f32b
JJ
822 PR tree-optimization/57230
823 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
824 check.
825
566be57c
JR
8262013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
827
828 * config/epiphany/epiphany.c (epiphany_init): Check size of
829 NUM_MODES_FOR_MODE_SWITCHING.
830 (epiphany_expand_prologue):
831 Remove CONFIG_REGNUM initial value handling code.
832 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
833 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 834 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
835 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
836 Don't return 1 for FP_MODE_NONE.
837 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
838 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
839 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
840 * config/epiphany/epiphany.md (save_config): New pattern.
841
0f2c2331
UB
8422013-05-12 Uros Bizjak <ubizjak@gmail.com>
843
844 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
845
5b3f93c7
UB
8462013-05-10 Uros Bizjak <ubizjak@gmail.com>
847
848 * config/i386/i386.md (memory): Handle sseishft1.
849 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
850 (*vec_extractv2di_1): Ditto.
851
1f873f0e
VM
8522013-05-10 Vladimir Makarov <vmakarov@redhat.com>
853
854 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
855 saved registers.
856
341427fa 8572013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
858
859 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
860 Add mthumb/march=armv7-a multilib.
861 Add mthumb/march=armv7-r multilib.
862 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
863
9e69bdde
RC
8642013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
865
866 * config/v850/t-rtems: Add more multilibs.
867
9ff09a22
RB
8682013-05-10 Richard Biener <rguenther@suse.de>
869
870 PR tree-optimization/57214
871 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
872 not propagate from SSA names that occur in abnormal PHI nodes.
873
a5e0cd1d
MG
8742013-05-10 Marc Glisse <marc.glisse@inria.fr>
875
876 * stor-layout.c (element_precision): New function.
877 * machmode.h (element_precision): Declare it.
878 * tree.c (build_minus_one_cst): New function.
879 (element_precision): Likewise.
880 * tree.h (build_minus_one_cst): Declare new function.
881 (element_precision): Likewise.
882 * fold-const.c (operand_equal_p): Use element_precision.
883 (fold_binary_loc): Handle vector types.
884 * convert.c (convert_to_integer): Use element_precision.
885 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
886 separately.
887
cb2558bc
RS
8882013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
889
890 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
891 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
892 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
893 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
894 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
895 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
896 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
897 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
898 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
899 (Uuw8): New constraints.
900 (Usb4): Move into alphabetical order.
901 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
902 (sd8_operand, ub8_operand, uw8_operand): New predicates.
903 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
904 previously unnamed patterns.
905 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
906 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
907 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
908 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
909 of set_attr_alternative/if_then_else. Use extended_mips16 instead
910 of specific lengths.
911
cb3b8d33
JJ
9122013-05-10 Jakub Jelinek <jakub@redhat.com>
913
6f93c008
JJ
914 * config/i386/i386.md (rotateinv): New code attr.
915 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
916 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
917 roll $31, %eax, etc.
918
cb3b8d33
JJ
919 PR tree-optimization/45216
920 PR tree-optimization/57157
921 * tree-ssa-forwprop.c (simplify_rotate): New function.
922 (ssa_forward_propagate_and_combine): Call it.
923
afb119be
RB
9242013-05-10 Richard Biener <rguenther@suse.de>
925
926 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
927 disable peeling when we version for aliasing.
928 (vector_alignment_reachable_p): Honor explicit user alignment.
929 (vect_supportable_dr_alignment): Likewise.
930 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
931 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
932 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
933 then peeling to arrange for the cost-model check to come first.
934
01ae4861
AM
9352013-05-10 Alan Modra <amodra@gmail.com>
936
937 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
938 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
939 * configure: Regenerate.
940
ebc9a431
AM
9412013-05-10 Alan Modra <amodra@gmail.com>
942
943 PR target/55033
944 * varasm.c (default_elf_select_section): Move !DECL_P check..
945 (get_named_section): ..to here before calling get_section_name.
946 Adjust assertion.
947 (default_section_type_flags): Add DECL_P check.
948 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
949 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
950
d4bca93c
JR
9512013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
952
953 * config/epiphany/epiphany.c (epiphany_expand_prologue):
954 When using gen_stack_adjust_str with a register offset, add a
955 REG_FRAME_RELATED_EXPR note.
956
60ca9a65
UB
9572013-05-09 Uros Bizjak <ubizjak@gmail.com>
958
959 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
960 (*vec_extractv4si_zext_mem): Ditto.
961 (*vec_extractv2di): Add 0->x and x->x alternatives.
962 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
963 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
964
a3409c02
JM
9652013-05-09 Jason Merrill <jason@redhat.com>
966
0138d6b2
JM
967 N3639 C++1y VLA support
968 * gimplify.c (gimplify_vla_decl): Don't touch an existing
969 DECL_VALUE_EXPR.
970
a3409c02
JM
971 * tree.c (build_constructor_va): New.
972 * tree.h: Declare it.
973
66e6b990
MJ
9742013-05-09 Martin Jambor <mjambor@suse.cz>
975
976 PR lto/57084
977 * gimple-fold.c (canonicalize_constructor_val): Call
978 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
979
64cfa6c0
JH
9802013-05-09 Jan Hubicka <jh@suse.cz>
981 Richard Biener <rguenther@suse.de>
982
983 PR lto/54095
984 * symtab.c (symtab_make_decl_local): Do not add private names.
985
c3167b00
JH
9862013-05-09 Jan Hubicka <jh@suse.cz>
987
988 PR lto/54095
989 * symtab.c (insert_to_assembler_name_hash): Handle clones.
990 (unlink_from_assembler_name_hash): Likewise.
991 (symtab_prevail_in_asm_name_hash, symtab_register_node,
992 symtab_unregister_node, symtab_initialize_asm_name_hash,
993 change_decl_assembler_name): Update.
994
12dc6974
SN
9952013-05-09 Sofiane Naci <sofiane.naci@arm.com>
996
997 * config/aarch64/aarch64.md: New movtf split.
998 (*movtf_aarch64): Update.
999 (aarch64_movdi_tilow): Handle TF modes and rename to
1000 aarch64_movdi_<mode>low.
1001 (aarch64_movdi_tihigh): Handle TF modes and rename to
1002 aarch64_movdi_<mode>high
1003 (aarch64_movtihigh_di): Handle TF modes and rename to
1004 aarch64_mov<mode>high_di
1005 (aarch64_movtilow_di): Handle TF modes and rename to
1006 aarch64_mov<mode>low_di
1007 (aarch64_movtilow_tilow): Remove spurious whitespace.
1008 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1009 splits.
1010 (aarch64_print_operand): Update.
1011
227eb343
AM
10122013-05-09 Alan Modra <amodra@gmail.com>
1013
1014 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1015 powerpc64le.
1016 * configure: Regenerate.
1017
0b013847
UB
10182013-05-08 Uros Bizjak <ubizjak@gmail.com>
1019
1020 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1021 splitter preparation statements.
1022 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1023 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1024 adjust_address_nv.
1025
1dc3d6e9
BS
10262013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1027
1028 * gimple-ssa-strength-reduction.c (count_candidates): Change
1029 return value to int.
1030 (analyze_candidates_and_replace): Change type of length to int.
1031
e61e7d28
UB
10322013-05-08 Uros Bizjak <ubizjak@gmail.com>
1033
1034 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1035 (*vec_extract<mode>): Use VI12_128 mode iterator.
1036 (*vec_extract<mode>_mem): Ditto.
1037 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1038 attribute.
1039
4fbfcf44
DN
10402013-05-08 Diego Novillo <dnovillo@google.com>
1041
1042 PR bootstrap/54659
1043
1044 Revert:
4fbfcf44
DN
1045 2012-08-17 Diego Novillo <dnovillo@google.com>
1046
e61e7d28
UB
1047 PR bootstrap/54281
1048 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1049 * config.in: Regenerate.
1050 * configure: Regenerate.
1051 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 1052
702d8703
JH
10532013-05-08 Jan Hubicka <jh@suse.cz>
1054
1055 PR lto/54095
1056 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1057 * cgraph.h (symtab_node_base): Add unique_name.
1058 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1059 input_overwrite_node, input_varpool_node): Stream unique_name.
1060 * cgraphclones.c (cgraph_create_virtual_clone,
1061 cgraph_function_versioning): Set unique_name.
1062 * ipa.c (function_and_variable_visibility): Set unique_name.
1063
8b28cf47
BS
10642013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1065
1066 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1067 (alloc_cand_and_find_basis): Restrict conditional candidate
1068 processing to CAND_MULTs.
1069
e86074fd
JH
10702013-05-08 Jan Hubicka <jh@suse.cz>
1071
1072 PR lto/54095
1073 lto-symtab.c (lto_symtab_symbol_p): New function.
1074 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1075 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1076 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1077 Skip static symbols.
1078
44398cbe
PC
10792013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1080
1081 PR tree-optimization/57200
1082 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1083 Only call inform if the preceding warning_at returns true.
1084
f6bc1c4a
HS
10852013-05-07 Han Shen <shenhan@google.com>
1086
1087 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1088 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1089 * common.opt (fstack-protector-strong): New option.
1090 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1091 * doc/invoke.texi (Optimization Options): Document
1092 "-fstack-protector-strong".
1093 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1094
4ffecb1f
SB
10952013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1096
1097 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1098
5a107a0f
VM
10992013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1100
1101 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1102 it is not lhs of the insn.
1103 (setup_reg_equiv): Remove insn having equiv memory which it is not
1104 lhs of the insn.
1105 * lra-constraints.c (process_address): Try to improve generation
1106 code for address base + disp.
1107 (lra_constraints): Make correct the code for checking insn setting
1108 up backward equivalence. Remove insn only if it is in the init
1109 insn list.
1110 * lra-eliminations.c (update_reg_eliminate): Change return value.
1111 (lra_eliminate): Use the result.
1112
3f5783ea
UB
11132013-05-07 Uros Bizjak <ubizjak@gmail.com>
1114
1115 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1116 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1117 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1118 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1119 register target operands.
1120 (*vec_extractv8hi_sse2): New pattern.
1121 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1122 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1123 (*vec_extract<mode>_mem): New insn and split pattern.
1124
8a5800b8
CL
11252013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1126
1127 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1128 (TARGET_ASAN_SHADOW_OFFSET): Define.
1129 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1130 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1131
7bf55a70
BS
11322013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1133
1134 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1135 (incr_vec_index): Return -1 if increment not found.
1136 (create_add_on_incoming_edge): Assert if increment not found.
1137 (record_increment): Limit number of increments recorded.
1138 (all_phi_incrs_profitable): Return false if an increment not found.
1139 (replace_profitable_candidates): Don't process increments that were
1140 not recorded.
1141 (analyze_candidates_and_replace): Limit size of incr_vec.
1142
3f8825c0
RB
11432013-05-07 Richard Biener <rguenther@suse.de>
1144
1145 * calls.c (special_function_p): setjmp-like functions are leaf.
1146 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1147 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1148
fd4842cd
SN
11492013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1150
1151 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1152 (aarch64_simd_mov<mode>): New expander.
1153 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1154 (aarch64_simd_mov_to_<mode>high): Likewise.
1155 (aarch64_simd_mov_from_<mode>low): Likewise.
1156 (aarch64_simd_mov_from_<mode>high): Likewise.
1157 (aarch64_dup_lane<mode>): Update.
1158 (aarch64_dup_lanedi): New instruction pattern.
1159 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1160 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1161
a7a7d10e
BS
11622013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1163
1164 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1165 (replace_mult_candidate): Remove unnecessary argument; remove
1166 unnecessary parameter from call to introduce_cast_before_cand.
1167 (replace_unconditional_candidate): Remove unnecessary parameter
1168 from call to replace_mult_candidate.
1169 (replace_conditional_candidate): Likewise.
1170 (insert_initializers): Use make_temp_ssa_name.
1171 (introduce_cast_before_cand): Remove unnecessary argument; use
1172 make_temp_ssa_name.
1173 (replace_one_candidate): Remove unnecessary argument; remove
1174 unnecessary parameter from calls to introduce_cast_before_cand.
1175 (replace_profitable_candidates): Remove unnecessary parameters
1176 from calls to replace_one_candidate.
1177
29105868
BS
11782013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1179
1180 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1181 phi def as possibly hiding a basis for a CAND_ADD whose operands
1182 have been commuted in the analysis.
1183 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1184
4095f9fa
N
11852013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1186
1187 * config/aarch64/aarch64.md
1188 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1189 shift value between 0-4.
1190
39e843e8
RB
11912013-05-07 Richard Biener <rguenther@suse.de>
1192
1193 * double-int.h (rshift): New overload.
1194 * double-int.c (rshift): New function.
1195 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1196 (create_reference_ops_from_ref): Remove.
1197 (vn_reference_insert): Use shared ops for constructing the
1198 reference and copy it.
1199
0a1a83cb
RB
12002013-05-07 Richard Biener <rguenther@suse.de>
1201
1202 PR middle-end/57190
1203 * tree-eh.c (sink_clobbers): Properly propagate
1204 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1205
43303d6f
JJ
12062013-05-07 Jakub Jelinek <jakub@redhat.com>
1207
ba7e83f8
JJ
1208 PR tree-optimization/57149
1209 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1210 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1211 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1212 uninit_undefined_value_p instead of ssa_undefined_value_p.
1213
43303d6f
JJ
1214 PR debug/57184
1215 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1216 for modifier == EXPAND_INITIALIZER.
1217
14523c25
AB
12182013-05-07 Anton Blanchard <anton@samba.org>
1219
1220 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1221 for powerpc64 little endian.
1222 * configure: Regenerate.
1223
cb7c8be9
GS
12242013-05-06 Graham Stott <grahams@btinternet.com>
1225
1226 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1227 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1228 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1229 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1230
12312013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
1232
1233 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1234 codes which allow non-lvalues.
1235
9a0ee7b0
MG
12362013-05-06 Marc Glisse <marc.glisse@inria.fr>
1237
1238 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1239 components are all 1s.
1240 (integer_minus_onep): New function.
1241 * tree.h (integer_minus_onep): Declare it.
1242 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1243 integer_minus_onep instead of integer_all_onesp.
1244
f2c17ea9
OE
12452013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1246
1247 PR target/52933
1248 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1249 variations of these patterns.
1250
f75e6a51
UB
12512013-05-06 Uros Bizjak <ubizjak@gmail.com>
1252
1253 * config/i386/i386.md (isa): Add x64_sse4 member.
1254 (enabled): Handle x64_sse4.
1255 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1256 instruction for 64bit SSE4_1 targets. Update insn attributes.
1257 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1258 instruction for SSE4_1 targets. Update insn attributes.
1259 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1260 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1261 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1262 const_1 selector.
1263 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1264 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1265 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1266
a986d468
OE
12672013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1268
1269 PR target/57108
1270 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1271
382522cb
MK
12722013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1273
1274 * final.c (do_assembler_dialects): Don't handle curly braces and
1275 vertical bar escaped by % as dialect delimiters.
1276 (output_asm_insn): Print curly braces and vertical bar if escaped
1277 by % and ASSEMBLER_DIALECT defined.
1278 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1279 * doc/tm.texi: Regenerated.
1280
fb0d5c60
SB
12812013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1282
fb0d5c60
SB
1283 * config/mips/mips.c: Include tree-pass.h.
1284 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1285 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1286 (pass_mips_machine_reorg2): New machine specific pass.
1287 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1288 (mips_option_override): Register the new pass.
1289 * rtl.h (cleanup_barriers): Remove prototype.
1290 (dbr_schedule): Likewise.
1291 * jump.c (cleanup_barriers): Make static.
1292 * reorg.c (dbr_schedule): Likewise.
1293
aa06a978
RB
12942013-05-06 Richard Biener <rguenther@suse.de>
1295
1296 PR tree-optimization/57185
1297 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1298 SSA names properly.
1299
0b953bec
UB
13002013-05-06 Uros Bizjak <ubizjak@gmail.com>
1301
1302 PR target/57106
1303 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1304 between "first_arg" and "insn", not "last" and "insn".
1305
28708525
WS
13062013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1307
1308 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1309 (find_candidates_in_block): Re-enable slsr_process_phi.
1310 (create_phi_basis): Fix double counting of candidate adjustment.
1311
0107dca2
RB
13122013-05-06 Richard Biener <rguenther@suse.de>
1313
1314 PR middle-end/57147
1315 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1316 the edge is also fallthru, preserve it and just clear the
1317 abnormal flag.
1318 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1319 also complex, preserve that and just clear the fallthru flag.
1320 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1321 update virtual operands.
1322
470d4d13
AM
13232013-05-06 Alan Modra <amodra@gmail.com>
1324
1325 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1326 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1327 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1328 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1329 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1330 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1331
8f1dbf8d
AM
13322013-05-06 Alan Modra <amodra@gmail.com>
1333
1334 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1335 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1336 (DEFAULT_ASM_ENDIAN): Define.
1337 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1338 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1339 Update -K PIC clause from sysv4.h.
1340 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1341 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1342
54890767
AM
13432013-05-06 Alan Modra <amodra@gmail.com>
1344
1345 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1346 twice for little-endian.
1347 (ashrdi3_no_power, ashrdi3): Support little-endian.
1348
2353515d
OE
13492013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1350
1351 PR target/55303
1352 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1353 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1354 related expanders.
1355 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1356 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1357 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1358 New predicates.
1359
33e67557
SB
13602013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1361 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1362
1363 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1364 * config/pa/pa.opt: Make mbig-switch a no-op.
1365 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1366 (CASE_VECTOR_MODE): Always return SImode.
1367 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1368 for the !TARGET_BIG_SWITCH case.
1369 * config/pa/pa-linux.h: Likewise.
1370 * config/pa/pa-openbsd.h: Likewise.
1371 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1372 * config/pa/pa.md (short_jump): Remove define_insn.
1373 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1374 (casesi0): Remove define_insn.
1375 (type): Remove btable_branch.
1376 (pa_combine_type): Likewise.
1377 (in_nullified_branch_delay): Likewise.
1378 (in_call_delay): Likewise.
1379 (define_delay): Likewise.
1380 (define_insn_reservation "Z3"): Likewise.
1381 (define_insn_reservation "Z4"): Likewise.
1382 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1383 (pa_adjust_insn_length): Remove adjustment for btable branches.
1384 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1385 and mno-big-switch
1386
3095685e
UB
13872013-05-05 Uros Bizjak <ubizjak@gmail.com>
1388
1389 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1390 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1391 Add m->r,x alternatives.
1392 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1393 splitters using SWI48x mode iterator.
1394 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1395 TARGET_64BIT. Add m->x alternative.
1396 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1397 Add o->x alternative. Enable for TARGET_SSE.
1398 (sse_storeq): Remove expander.
1399 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1400 with memory input operand.
1401 (*vec_extractv2di_1 splitter): New.
1402 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1403 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1404
4b36ae28
SB
14052013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1406
1407 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1408 (INT_LOWPART): Delete.
1409 (extract_MB): Adjust.
1410 (extract_ME): Adjust.
1411 (print_operand): Adjust.
1412
da226db2
SB
14132013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1414
1415 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1416 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1417 (reg_or_logical_cint_operand, easy_fp_constant,
1418 logical_const_operand): Delete "CONST_DOUBLE" case.
1419 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1420 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 1421 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
1422 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1423 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1424 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1425 test.
1426 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1427 CONST_DOUBLE DImode/VOIDmode case.
1428 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1429 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1430 CONST_DOUBLE VOIDmode case.
1431 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1432 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1433 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1434 Delete CONST_DOUBLE case.
1435 (splitters for mov FMOVE64 const_double): Delete
1436 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1437 "HOST_BITS_PER_WIDE_INT >= 64" test.
1438 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1439 case.
1440 (mov DI const_double): Delete.
1441
40de22d6
JJ
14422013-05-04 Jakub Jelinek <jakub@redhat.com>
1443
1444 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1445 on op shows all bits zero in mode of a lowpart subreg, return zero.
1446
5ec6aff2
MM
14472013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1448
1449 PR target/57150
1450 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1451 to save TFmode registers and DImode to save TImode registers for
1452 caller save operations.
1453 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1454 mark being partially clobbered since they only use the first
1455 double word.
1456
1457 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1458 and TDmode only use the upper 64-bits of each VSX register.
1459
2cefad90
BS
14602013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1461
1462 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1463 (find_candidates_in_block): Disable slsr_process_phi.
1464
d6d7eee1
GW
14652013-05-03 Guozhi Wei <carrot@google.com>
1466
1467 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
1468 constructor to ...
1469 (build_init_ctor): ... here.
d6d7eee1 1470
9b92d12b
BS
14712013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1472
1473 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1474 (slsr_cand_d): Redefine def_phi.
1475 (stride_status, phi_adjust_status, count_phis_status): New enums.
1476 (find_phi_def): New.
1477 (find_basis_for_base_expr): New.
1478 (find_basis_for_candidate): Handle hidden bases.
1479 (alloc_cand_and_find_basis): Handle phi candidates.
1480 (slsr_process_phi): New.
1481 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1482 (create_mul_imm_cand): Likewise.
1483 (create_add_ssa_cand): Exclude phi base candidates.
1484 (create_add_imm_cand): Likewise.
1485 (slsr_process_cast): Likewise.
1486 (slsr_process_copy): Likewise.
1487 (find_candidates_in_block): Handle phi candidates.
1488 (dump_candidate): Likewise.
1489 (unconditional_cands): Delete.
1490 (unconditional_cands_with_known_stride_p): Delete.
1491 (phi_dependent_cand_p): New.
1492 (cand_increment): Handle phi-dependent candidates.
1493 (replace_dependent): Delete.
1494 (replace_mult_candidate): New.
1495 (replace_unconditional_candidate): New.
1496 (incr_vec_index): Move to avoid forward reference.
1497 (create_add_on_incoming_edge): New.
1498 (create_phi_basis): New.
1499 (replace_dependents): Delete.
1500 (replace_conditional_candidate): New.
1501 (phi_add_costs): New.
1502 (replace_uncond_cands_and_profitable_phis): New.
1503 (record_increment): Handle phi adjustments.
1504 (record_phi_increments): New.
1505 (record_increments): Handle phi adjustments.
1506 (phi_incr_cost): New.
1507 (lowest_cost_path): Handle phis.
1508 (total_savings): Likewise.
1509 (analyze_increments): Likewise.
1510 (ncd_with_phi): New.
1511 (ncd_of_cand_and_phis): New.
1512 (nearest_common_dominator_for_cands): Handle phi increments.
1513 (all_phi_incrs_profitable): New.
1514 (replace_profitable_candidates): Handle phi-dependent candidates.
1515 (analyze_candidates_and_replace): Likewise.
1516
68f073d4
TJ
15172013-05-03 Teresa Johnson <tejohnson@google.com>
1518
1519 PR bootstrap/57154
1520 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1521 do not exceed REG_BR_PROB_BASE.
1522
a4ee7cb9
JL
15232013-05-03 Jeff Law <law@redhat.com>
1524
ade67f70 1525 PR tree-optimization/57144
a4ee7cb9
JL
1526 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1527 operand of the condition will bit into the new type when eliminating
1528 a cast feeding a condition.
1529
47954c4e
JJ
15302013-05-03 Jakub Jelinek <jakub@redhat.com>
1531
1532 PR rtl-optimization/57130
3095685e
UB
1533 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1534 of COMPARE as in_code to the recursive call if needed.
47954c4e 1535
3c21604f
UB
15362013-05-03 Uros Bizjak <ubizjak@gmail.com>
1537
1538 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1539 (enabled): Handle new members.
1540 * config/i386/sse.md (*vec_concatv2si): Merge from
1541 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1542 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1543
95c03b36
JR
15442013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1545
1546 PR tree-optimization/57027
1547 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1548 for fnms opportunity, check we got the prerequisite kind
1549 of tree / gimple before using accessor functions.
1550
07bfc9ec
RB
15512013-05-03 Richard Biener <rguenther@suse.de>
1552
1553 * double-int.h (lshift): New overload without precision
1554 and arith argument.
1555 (operator *=, operator +=, operator -=): Move ...
1556 * double-int.c (operator *=, operator +=, operator -=): ... here
1557 and implement more efficiently.
1558 (mul_double_with_sign): Remove.
1559 (lshift_double): Adjust to take unsinged shift argument, push
1560 dispatching code to callers.
1561 (mul_double_wide_with_sign): Add early out for callers that
1562 are not interested in high parts or overflow.
1563 (lshift): New function.
1564 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1565 dispatch code here.
1566 (lrotate, rrotate): Use logical shifts.
1567 * expr.c (get_inner_reference): Use lshift.
1568 * fixed-value.c (do_fixed_divide): Likewise.
1569 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1570 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1571 (indirect_refs_may_alias_p): Likewise.
1572 (stmt_kills_ref_p_1): Likewise.
1573
7769bb64
VP
15742013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1575
1576 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1577
1d0c8e5c
VP
15782013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1579
1580 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1581 scalar form of FABD instruction.
1582
f15feaf9
VM
15832013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1584
1585 * lra-constraints.c (process_alt_operands): Add checking alt
1586 number to choose the best alternative.
1587
d90e76d4
RB
15882013-05-02 Richard Biener <rguenther@suse.de>
1589
1590 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1591 bitmap and its handling.
1592 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1593
9f8e7a96
RB
15942013-05-02 Richard Biener <rguenther@suse.de>
1595
1596 PR middle-end/57140
1597 * tree-inline.c (copy_loops): Properly handle removed loops.
1598 (copy_cfg_body): Mark destination loops for fixup if source
1599 loops needed fixup.
1600
f3a81b39
GY
16012013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1602
1603 PR target/56732
1604 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1605 generating simple_return for naked functions.
1606
7b920a9a
MJ
16072013-05-02 Martin Jambor <mjambor@suse.cz>
1608
1609 PR middle-end/56988
1610 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1611 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1612 flags match.
1613 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1614 ipa_agg_replacement_value structures.
1615 (known_aggs_to_agg_replacement_list): Likewise.
1616 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1617 (read_agg_replacement_chain): Likewise.
1618 (ipcp_transform_function): Also check that by_ref flags match.
1619
2c41c19d
RB
16202013-05-02 Richard Biener <rguenther@suse.de>
1621
1622 * graphds.h (struct graph): Add obstack member.
1623 * graphds.c (new_graph): Initialize obstack and allocate
1624 vertices from it.
1625 (add_edge): Allocate edge from the obstack.
3c21604f 1626 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 1627
8b47039c
TJ
16282013-05-02 Teresa Johnson <tejohnson@google.com>
1629
1630 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1631 divides.
1632 * cfg.c (update_bb_profile_for_threading): Ditto.
1633 * tree-inline.c (copy_bb): Ditto.
1634 (copy_edges_for_bb): Ditto.
1635 (initialize_cfun): Ditto.
1636 (copy_cfg_body): Ditto.
1637 (expand_call_inline): Ditto.
1638 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1639 (estimate_node_size_and_time): Ditto.
1640 (inline_merge_summary): Ditto.
1641 * cgraphclones.c (cgraph_clone_edge): Ditto.
1642 (cgraph_clone_node): Ditto.
1643 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1644 (compute_trg_info): Ditto.
1645
da65928c
IB
16462013-05-02 Ian Bolton <ian.bolton@arm.com>
1647
1648 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1649 S reg when fp attribute set.
1650 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1651
add3c965
IB
16522013-05-02 Ian Bolton <ian.bolton@arm.com>
1653
1654 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1655 New pattern.
1656 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1657 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1658 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1659
fdd43ac4
RB
16602013-05-02 Richard Biener <rguenther@suse.de>
1661
1662 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1663 (struct instantiate_cache_entry): New type.
1664 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1665 (struct instantiate_cache_type): New type.
1666 (set_instantiated_value, get_instantiated_value): Remove.
1667 (get_instantiated_value_entry): New function.
1668 (instantiate_scev_name): Use the new cache and adjust.
1669 (instantiate_scev_poly): Adjust.
1670 (instantiate_scev_binary): Likewise.
1671 (instantiate_array_ref): Likewise.
1672 (instantiate_scev_convert): Likewise.
1673 (instantiate_scev_not): Likewise.
1674 (instantiate_scev_3): Likewise.
1675 (instantiate_scev_2): Likewise.
1676 (instantiate_scev_r): Likewise.
1677 (instantiate_scev): Likewise.
1678 (resolve_mixers): Likewise.
1679
36ff9dfb
VM
16802013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1681
1682 PR target/57091
1683 * lra-constraints.c (best_small_class_operands_num): Remove.
1684 (process_alt_operands): Remove small_class_operands_num. Take
1685 small classes operands into losers and only if the operand is not
1686 matched. Modify debugging output.
1687 (curr_insn_transform): Remove best_small_class_operands_num.
1688 Print insn name.
1689
36054fab
JG
16902013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1691
1692 * config/aarch64/aarch64-builtins.c
1693 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1694 * config/aarch64/aarch64-simd-builtins.def
1695 (reduc_splus_): Add new modes.
1696 (reduc_uplus_): New.
1697 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1698 (reduc_uplus_v4sf): Likewise.
1699 (reduc_splus_v4sf): Likewise.
1700 (aarch64_addv<mode>): Likewise.
1701 (reduc_uplus_<mode>): Likewise.
1702 (reduc_splus_<mode>): Likewise.
1703 (aarch64_addvv2di): Likewise.
1704 (reduc_uplus_v2di): Likewise.
1705 (reduc_splus_v2di): Likewise.
1706 (aarch64_addvv2si): Likewise.
1707 (reduc_uplus_v2si): Likewise.
1708 (reduc_splus_v2si): Likewise.
1709 (reduc_<sur>plus_<mode>): New.
1710 (reduc_<sur>plus_v2di): Likewise.
1711 (reduc_<sur>plus_v2si): Likewise.
1712 (reduc_<sur>plus_v4sf): Likewise.
1713 (aarch64_addpv4sf): Likewise.
1714 * config/aarch64/arm_neon.h
1715 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1716 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1717 add UNSPEC_SADDV, UNSPEC_UADDV.
1718 (SUADDV): New.
1719 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1720
6dce23a8
JG
17212013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1722
1723 * config/aarch64/arm_neon.h
1724 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1725
1598945b
JG
17262013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1727
1728 * config/aarch64/aarch64-builtins
1729 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1730
998eaf97
JG
17312013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1732
1733 * config/aarch64/aarch64-simd-builtins.def
1734 (reduc_smax_): New.
1735 (reduc_smin_): Likewise.
1736 (reduc_umax_): Likewise.
1737 (reduc_umin_): Likewise.
1738 (reduc_smax_nan_): Likewise.
1739 (reduc_smin_nan_): Likewise.
1740 (fmax): Remove.
1741 (fmin): Likewise.
1742 (smax): Update for V2SF, V4SF and V2DF modes.
1743 (smin): Likewise.
1744 (smax_nan): New.
1745 (smin_nan): Likewise.
1746 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1747 (<su><maxmin><mode>3): ...This, refactor.
1748 (s<maxmin><mode>3): New.
1749 (<maxmin_uns><mode>3): Likewise.
1750 (reduc_<maxmin_uns>_<mode>): Refactor.
1751 (reduc_<maxmin_uns>_v4sf): Likewise.
1752 (reduc_<maxmin_uns>_v2si): Likewise.
1753 (aarch64_<fmaxmin><mode>: Remove.
1754 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1755 new builtin names.
1756 (vmin<q>_f<32,64>): Likewise.
1757 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1758 (FMAXMIN): New.
1759 (su): Add mappings for smax, smin, umax, umin.
1760 (maxmin): New.
1761 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1762 (FMAXMIN): Rename as...
1763 (FMAXMIN_UNS): ...This.
1764 (maxminv): Remove.
1765 (fmaxminv): Likewise.
1766 (fmaxmin): Likewise.
1767 (maxmin_uns): New.
1768 (maxmin_uns_op): Likewise.
1769
bd11644e
JG
17702013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1771
1772 * config/aarch64/arm_neon.h
1773 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1774 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1775 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1776
75dd5ace
JG
17772013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1778
1779 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1780 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1781
7c19979f
JG
17822013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1783
1784 * config/aarch64/aarch64-simd.md
1785 (vcond<mode>_internal): Handle special cases for constant masks.
1786 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1787 (vcondu<mode><mode>): Likewise.
1788 (vcond<v_cmp_result><mode>): New.
1789
bb60efd9
JG
17902013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1791
1792 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1793 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1794 * config/aarch64/aarch64-simd-builtins.def
1795 (cmeq): Update to BUILTIN_VALLDI.
1796 (cmgt): Likewise.
1797 (cmge): Likewise.
1798 (cmle): Likewise.
1799 (cmlt): Likewise.
1800 * config/aarch64/arm_neon.h
1801 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1802 to builtins or C as appropriate.
1803
889b9412
JG
18042013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1805
1806 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1807 (cmgeu): ...This.
1808 (cmhi): Rename to...
1809 (cmgtu): ...This.
1810 * config/aarch64/aarch64-simd.md
1811 (simd_mode): Add SF.
1812 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1813 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1814 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1815 (cstore<mode>_neg): ...This.
1816 * config/aarch64/iterators.md
1817 (VALLF): new.
1818 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1819 (COMPARISONS): New.
1820 (UCOMPARISONS): Likewise.
1821 (optab): Add missing comparisons.
1822 (n_optab): New.
1823 (cmp_1): Likewise.
1824 (cmp_2): Likewise.
1825 (CMP): Likewise.
1826 (cmp): Remove.
1827 (VCMP_S): Likewise.
1828 (VCMP_U): Likewise.
1829 (V_cmp_result): Add DF, SF modes.
1830 (v_cmp_result): Likewise.
1831 (v): Likewise.
1832 (vmtype): Likewise.
1833 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1834
0a7dbb76
GY
18352013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
1836
1837 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1838 define_insn to define_insn_and_split.
1839 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1840 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1841 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1842 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1843 (thumb2_negscc): Likewise.
1844
fb614ca6
GY
18452013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1846
1847 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1848
9e64a0bf
GY
18492013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1850
1851 * config/arm/thumb2.md: Remove trailing whitespaces.
1852
d6b28156
RS
18532013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1854
1855 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1856 Use gen_int_mode rather than GEN_INT.
1857
f91674c3
L
18582013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1859
b0dec607 1860 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
1861 debug_gimple_stmt.
1862
3551257c
RB
18632013-04-30 Richard Biener <rguenther@suse.de>
1864
1865 PR middle-end/57122
3c21604f 1866 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 1867
4c1aff1c
RB
18682013-04-30 Richard Biener <rguenther@suse.de>
1869
1870 PR middle-end/57107
1871 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1872
54b8379a
AB
18732013-04-30 Andrey Belevantsev <abel@ispras.ru>
1874
1875 PR rtl-optimization/56957
1876 PR rtl-optimization/57105
54b8379a
AB
1877 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1878 variable. Use just INSN_UID for determining whether an insn
1879 should be only disconnected from the insn stream.
1880 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1881
abc27962
JJ
18822013-04-30 Jakub Jelinek <jakub@redhat.com>
1883
1884 PR tree-optimization/57104
1885 * tsan.c (instrument_expr): Don't instrument accesses to
1886 DECL_HARD_REGISTER VAR_DECLs.
1887
0fc822d0
RB
18882013-04-30 Richard Biener <rguenther@suse.de>
1889
1890 * function.h (loops_for_fn): New inline function.
1891 (set_loops_for_fn): Likewise.
1892 * cfgloop.h (place_new_loop): Add struct function parameter.
1893 (get_loop): Likewise.
1894 (get_loops): Likewise.
1895 (number_of_loops): Likewise.
1896 (fel_next): Adjust.
1897 (fel_init): Likewise.
1898 * cfg.c (get_loop_copy): Adjust.
1899 * cfgloop.c (flow_loops_dump): Likewise.
1900 (record_loop_exits): Likewise.
1901 (verify_loop_structure): Likewise.
1902 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1903 (estimate_reg_pressure_cost): Likewise.
1904 (mark_loop_exit_edges): Likewise.
1905 * cfgloopmanip.c (place_new_loop): Likewise.
1906 (add_loop): Likewise.
1907 (duplicate_loop): Likewise.
1908 * graph.c (draw_cfg_nodes): Likewise.
1909 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1910 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1911 (extract_affine_chrec): Likewise.
1912 (build_scop_iteration_domain): Likewise.
1913 * graphite.c (graphite_initialize): Likewise.
1914 * ira-build.c (create_loop_tree_nodes): Likewise.
1915 (more_one_region_p): Likewise.
1916 (rebuild_regno_allocno_maps): Likewise.
1917 (mark_loops_for_removal): Likewise.
1918 (mark_all_loops_for_removal): Likewise.
1919 (remove_unnecessary_regions): Likewise.
1920 (ira_build): Likewise.
1921 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1922 * loop-init.c (fix_loop_structure): Likewise.
1923 (gate_rtl_move_loop_invariants): Likewise.
1924 (gate_rtl_unswitch): Likewise.
1925 (gate_rtl_unroll_and_peel_loops): Likewise.
1926 (rtl_doloop): Likewise.
1927 * lto-streamer-in.c (input_cfg): Likewise.
1928 * lto-streamer-out.c (output_cfg): Likewise.
1929 * modulo-sched.c (sms_schedule): Likewise.
1930 * predict.c (tree_estimate_probability): Likewise.
1931 (tree_estimate_probability_driver): Likewise.
1932 (estimate_loops): Likewise.
1933 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1934 (move_sese_region_to_fn): Likewise.
1935 (debug_loop_num): Likewise.
1936 * tree-chrec.c (chrec_evaluate): Likewise.
1937 (hide_evolution_in_other_loops_than_loop): Likewise.
1938 (chrec_component_in_loop_num): Likewise.
1939 (reset_evolution_in_loop): Likewise.
1940 (evolution_function_is_invariant_rec_p): Likewise.
1941 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1942 * tree-inline.c (copy_loops): Likewise.
1943 (copy_cfg_body): Likewise.
1944 (tree_function_versioning): Likewise.
1945 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1946 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1947 Likewise.
1948 (add_to_evolution_1): Likewise.
1949 (scev_const_prop): Likewise.
1950 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1951 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1952 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1953 (tree_ssa_lim_initialize): Likewise.
1954 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1955 (verify_loop_closed_ssa): Likewise.
1956 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1957 (tree_ssa_loop_im): Likewise.
1958 (tree_ssa_loop_unswitch): Likewise.
1959 (tree_vectorize): Likewise.
1960 (check_data_deps): Likewise.
1961 (tree_ssa_loop_ivcanon): Likewise.
1962 (tree_ssa_loop_bounds): Likewise.
1963 (tree_complete_unroll): Likewise.
1964 (tree_complete_unroll_inner): Likewise.
1965 (tree_parallelize_loops): Likewise.
1966 (tree_ssa_loop_prefetch): Likewise.
1967 (tree_ssa_loop_ivopts): Likewise.
1968 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1969 * tree-vectorizer.c (vectorize_loops): Likewise.
1970
37953bd3
MF
19712013-04-29 Mike Frysinger <vapier@gentoo.org>
1972
1973 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1974 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1975 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1976 with EABI_LINK_SPEC.
1977
f9ed28db
UB
19782013-04-29 Uros Bizjak <ubizjak@gmail.com>
1979
1980 PR target/44578
1981 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1982 alternative.
1983
deca73f5
VM
19842013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1985
1986 PR target/57097
37953bd3 1987 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
1988 using memory for pseudos. Print cost dump for alternatives.
1989 Modify cost values for conflicts with early clobbers.
1990 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1991
fdca7d03
UB
19922013-04-29 Uros Bizjak <ubizjak@gmail.com>
1993
1994 PR target/57098
1995 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1996
0b064172
IB
19972013-04-29 Ian Bolton <ian.bolton@arm.com>
1998
1999 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2000 from/to S register.
2001 (movdi_aarch64): Support LDR/STR from/to D register.
2002
473cec55
IB
20032013-04-29 Ian Bolton <ian.bolton@arm.com>
2004
2005 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2006 or higher by default.
2007
a6f30e66
RB
20082013-04-29 Richard Biener <rguenther@suse.de>
2009
2010 PR middle-end/57075
2011 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2012 even if not adding abnormal edges for calls that can make
2013 abnormal gotos.
2014
0c2b2040
RB
20152013-04-29 Richard Biener <rguenther@suse.de>
2016
2017 PR middle-end/57103
2018 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2019 TREE_BLOCK.
2020 (move_stmt_r): Remove redundant checking.
2021
f41f80f9
TJ
20222013-04-29 Teresa Johnson <tejohnson@google.com>
2023
2024 PR bootstrap/57077
2025 * basic-block.h (apply_scale): New function.
2026 (apply_probability): Use apply_scale.
2027 * gimple-streamer-in.c (input_bb): Ditto.
2028 * lto-streamer-in.c (input_cfg): Ditto.
2029 * lto-cgraph.c (merge_profile_summaries): Ditto.
2030 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 2031 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
2032 (copy_edges_for_bb): Ditto.
2033 (copy_cfg_body): Ditto.
2034
315bbd2e
TV
20352013-04-29 Tom de Vries <tom@codesourcery.com>
2036
2037 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2038 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2039 (tail_merge_optimize): Handle current_loops == NULL.
2040
ebbd90d8
JL
20412013-04-26 Jeff Law <law@redhat.com>
2042
2043 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2044 (simplify_cond_using_ranges): Generalize code to simplify
2045 COND_EXPRs where one argument is a constant and the other
2046 is an SSA_NAME created by an integral type conversion.
2047
8b9b57eb
KT
20482013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2049
2050 * config/arm/arm.md (store_minmaxsi): Use only when
2051 optimize_insn_for_size_p.
2052
9498e5dc
CB
20532013-04-29 Christian Bruel <christian.bruel@st.com>
2054
2055 PR target/57108
2056 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2057
6093bc06
RB
20582013-04-29 Richard Biener <rguenther@suse.de>
2059
2060 PR middle-end/57089
fdca7d03
UB
2061 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2062 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
2063 (expand_omp_for_generic): Properly add loops.
2064 (expand_omp_for_static_nochunk): Likewise.
2065 (expand_omp_for_static_chunk): Likewise.
2066 (expand_omp_for): For the degenerate case fixup loops.
2067 (expand_omp_sections): Fix default bb placement in loops.
2068 (expand_omp_atomic_pipeline): Properly add loops.
2069
84aacbfd
KT
20702013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2071
2072 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2073
8dee4479
TV
20742013-04-29 Tom de Vries <tom@codesourcery.com>
2075
2076 * tree-ssa-tail-merge.c: Update header comment.
2077
47934dc4
JG
20782013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2079
2080 * config/aarch64/arm_neon.h
2081 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2082 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2083 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2084 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2085 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2086 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2087 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2088 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2089
384be29f
JG
20902013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2091
2092 * config/aarch64/aarch64-simd.md
2093 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2094 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2095 fix_trunc, fixuns_trunc.
2096 (ftrunc<VDQF:mode>2): New.
2097 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2098 (fix_trunc_optab): New.
2099
0386b123
JG
21002013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2101
2102 * config/aarch64/aarch64-builtins.c
2103 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2104 iceilf, lround, iroundf.
2105
00fcb892
UB
21062013-04-29 Uros Bizjak <ubizjak@gmail.com>
2107
2108 PR target/54349
2109 * config/i386/i386.h (enum ix86_tune_indices)
2110 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2111 New, split from X86_TUNE_INTER_UNIT_MOVES.
2112 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2113 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2114 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2115 (TARGET_INTER_UNIT_MOVES): Remove.
2116 * config/i386/i386.c (initial_ix86_tune_features): Update.
2117 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2118 (ix86_expand_convert_uns_didf_sse): Use
2119 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2120 (ix86_expand_vector_init_one_nonzero): Ditto.
2121 (ix86_expand_vector_init_interleave): Ditto.
2122 (inline_secondary_memory_needed): Return true for moves from SSE class
2123 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2124 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2125 * config/i386/constraints.md (Yi, Ym): Depend on
2126 TARGET_INTER_UNIT_MOVES_TO_VEC.
2127 (Yj, Yn): New constraints.
2128 * config/i386/i386.md (*movdi_internal): Change constraints of
2129 operand 1 from Yi to Yj and from Ym to Yn.
2130 (*movsi_internal): Ditto.
2131 (*movdf_internal): Ditto.
2132 (*movsf_internal): Ditto.
2133 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2134 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2135 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2136 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2137 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2138 * config/i386/sse.md (movdi_to_sse): Ditto.
2139 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2140 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2141 TARGET_INTER_UNIT_MOVES.
2142 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2143 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2144 instead of TARGET_INTER_UNIT_MOVES.
2145 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2146 operand 1 from Yi to Yj and from Ym to Yn.
2147
4c871069
JG
21482013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2149
2150 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2151 (float_truncate_hi_): Likewise.
2152 (float_extend_lo_): Likewise.
2153 (float_truncate_lo_): Likewise.
2154 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2155 (aarch64_float_extend_lo_v2df): Likewise.
2156 (vec_unpacks_hi_v4sf): Likewise.
2157 (aarch64_float_truncate_lo_v2sf): Likewise.
2158 (aarch64_float_truncate_hi_v4sf): Likewise.
2159 (vec_pack_trunc_v2df): Likewise.
2160 (vec_pack_trunc_df): Likewise.
2161
1709ff9b
JG
21622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2163
2164 * config/aarch64/aarch64-builtins.c
2165 (aarch64_fold_builtin): Fold float conversions.
2166 * config/aarch64/aarch64-simd-builtins.def
2167 (floatv2si, floatv4si, floatv2di): New.
2168 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2169 * config/aarch64/aarch64-simd.md
2170 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2171 * config/aarch64/iterators.md (FLOATUORS): New.
2172 (optab): Add float, floatuns.
2173 (su_optab): Likewise.
2174
ce966824
JG
21752013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2176
2177 * config/aarch64/aarch64-builtins.c
2178 (aarch64_builtin_vectorized_function): Use new names for
2179 fcvt builtins.
2180 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2181 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2182 (fcvtzu): Split as...
2183 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2184 (fcvtas): Split as...
2185 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2186 (fcvtau): Split as...
2187 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2188 (fcvtps): Split as...
2189 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2190 (fcvtpu): Split as...
2191 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2192 (fcvtms): Split as...
2193 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2194 (fcvtmu): Split as...
2195 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2196 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2197 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2198 (lfrintnusf, lfrintnudf): Likewise.
2199 * config/aarch64/aarch64-simd.md
2200 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2201 define_insn.
2202 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2203 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2204 (fcvt_pattern): Likewise.
2205
b9de24fe
JG
22062013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2207
2208 * config/aarch64/aarch64-simd.md
2209 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2210 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2211
77a205be
JG
22122013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2213
2214 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2215 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2216 (vrnd<a,m,n,p>_f32): Implement using builtins.
2217 (vrnd<i,x><q>_f<32, 64>): New.
2218
0659ce6f
JG
22192013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2220
2221 * config/aarch64/aarch64-builtins.c
2222 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2223 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2224 (frintz): Rename to...
2225 (btrunc): ...this.
2226 (frintp): Rename to...
2227 (ceil): ...this.
2228 (frintm): Rename to...
2229 (floor): ...this.
2230 (frinti): Rename to...
2231 (nearbyint): ...this.
2232 (frintx): Rename to...
2233 (rint): ...this.
2234 (frinta): Rename to...
2235 (round): ...this.
2236 * config/aarch64/aarch64-simd.md
2237 (aarch64_frint<frint_suffix><mode>): Delete.
2238 (<frint_pattern><mode>2): Convert to insn.
2239 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2240 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2241 (frint_pattern): Likewise.
2242 (frint_suffix): Likewise.
2243
ea78906a
RB
22442013-04-29 Richard Biener <rguenther@suse.de>
2245
2246 PR tree-optimization/57081
2247 * loop-init.c: Include tree-flow.h.
2248 (loop_optimizer_finalize): Free number of iteration estimates.
2249 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2250
baee1763
JJ
22512013-04-29 Jakub Jelinek <jakub@redhat.com>
2252
94dc5332
JJ
2253 PR tree-optimization/57083
2254 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2255 non-singleton shift count range, zero extend low_bound for uns case.
2256
baee1763
JJ
2257 * config/i386/predicates.md (general_vector_operand): New predicate.
2258 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2259 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2260 if they aren't nonimmediate operands. If their original values
2261 satisfy const_vector_equal_evenodd_p, don't shift them.
2262 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2263 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2264 if not nonimmediate_operand.
2265 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2266 instead of register_operand.
2267 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2268
a9073727 22692013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
2270
2271 * stor-layout.c (finalize_size_functions): Allocate a structure and
2272 reset cfun before dumping the functions.
2273
ba8011e6
JJ
22742013-04-27 Jakub Jelinek <jakub@redhat.com>
2275
d6fde69e
JJ
2276 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2277
ba8011e6
JJ
2278 PR target/56866
2279 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2280 use xop_pmacsdqh if uns_p.
2281 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2282 the immediate rotate count.
2283
2c62cbaa
VM
22842013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2285
2286 * rtl.h (struct rtx_def): Add comment for field jump.
2287 (LRA_SUBREG_P): New macro.
2288 * recog.c (register_operand): Check LRA_SUBREG_P.
2289 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2290 stack frame.
2291 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2292 (lra_final_code_change): Skip subreg change for operators.
2293 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2294 if there are no operand changes.
2295 * lra-constraints.c (curr_insn_set): New.
2296 (match_reload): Set LRA_SUBREG_P.
2297 (emit_spill_move): Ditto.
2298 (check_and_process_move): Use curr_insn_set. Process only single
2299 set insns. Don't initialize sec_mem_p and change_p.
2300 (simplify_operand_subreg): Use LRA_SUBREG_P.
2301 (reg_in_class_p): New function.
2302 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2303 of #ifdef. Add code to remove cycling.
2304 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2305 non-null disp. Reload inner instead of disp when base and index
2306 are null. Try to put lo_sum into register.
2307 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2308 (check_and_process_move): Move code for move cost check to
2309 simple_move_p. Remove equiv_substitution.
2310 (simple_move_p): New function.
2311 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2312 curr_insn_set. Call check_and_process_move only for single set
2313 insns. Use the new function. Move call of check_and_process_move
2314 after operand equiv substitution and address process.
2315
e7d764f3
JJ
23162013-04-26 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR go/57045
2319 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2320 with nonlocal goto receivers or returns twice calls, ignore
2321 unininitialized values from abnormal edges to nl goto receiver
2322 or returns twice call.
2323
41e10689
JJ
23242013-04-26 Jakub Jelinek <jakub@redhat.com>
2325
2326 PR tree-optimization/57051
2327 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2328 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2329 bitsize.
2330
d7ed20db
RB
23312013-04-26 Richard Biener <rguenther@suse.de>
2332
2333 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2334 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2335 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2336 (fixup_loop_arrays_after_move): New function.
2337 (move_sese_region_to_fn): Properly outline the loop tree parts
2338 of the SESE region.
2339
df93505e
UB
23402013-04-26 Uros Bizjak <ubizjak@gmail.com>
2341
2342 * config/i386/i386.md (type, unit): Fix long lines.
2343
dd366ec3
RB
23442013-04-26 Richard Biener <rguenther@suse.de>
2345
2346 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2347 (lto-streamer-out.o): Likewise.
2348 * cfgloop.c (init_loops_structure): Export, add struct function
2349 argument and adjust.
2350 (flow_loops_find): Adjust.
2351 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2352 (init_loops_structure): Declare.
2353 * lto-streamer-in.c: Include cfgloop.h.
2354 (input_cfg): Input the loop tree.
2355 * lto-streamer-out.c: Include cfgloop.h.
2356 (output_cfg): Output the loop tree.
2357 (output_struct_function_base): Do not drop PROP_loops.
2358
a9e0d843
RB
23592013-03-26 Richard Biener <rguenther@suse.de>
2360
2361 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2362 (pass_build_cfg): Provide PROP_loops.
2363 (move_sese_region_to_fn): Remove loops that are outlined into fn
2364 for now.
2365 * tree-inline.c: Include cfgloop.h.
2366 (initialize_cfun): Do not drop PROP_loops.
2367 (copy_loops): New function.
2368 (copy_cfg_body): Copy loop structure.
2369 (tree_function_versioning): Initialize destination loop tree.
2370 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2371 (pass_parallelize_loops): Do IL verification.
2372 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2373 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2374 the CFG make sure we fixup loops as well.
2375 * tree-ssa-tail-merge.c: Include cfgloop.h.
2376 (replace_block_by): When merging loop latches mark loops for fixup.
2377 * lto-streamer-out.c (output_struct_function_base): Drop
2378 PROP_loops for now.
2379 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2380 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2381 * ipa-split.c: Include cfgloop.h.
2382 (split_function): Add the new return block to the loop tree root.
2383 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2384 whether we have removed the forwarder block.
2385 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2386 * cfgloop.h (place_new_loop): Declare.
2387 * cfgloopmanip.c (place_new_loop): Export.
2388 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2389 (tree-switch-conversion.o): Likewise.
2390 (tree-complex.o): Likewise.
2391 (tree-inline.o): Likewise.
2392 (tree-ssa-tailmerge.o): Likewise.
2393 (ipa-split.o): Likewise.
2394 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2395 (tree-ssa-copy.o): Likewise.
2396 * tree-switch-conversion.c: Include cfgloop.h
2397 (process_switch): If we emit a bit-test cascade, schedule loops
2398 for fixup.
2399 * tree-complex.c: Include cfgloop.h.
2400 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2401 * asan.c: Include cfgloop.h.
2402 (create_cond_insert_point): Properly add new basic-blocks to
2403 loops, schedule loop fixup.
2404 * cfgloop.c (verify_loop_structure): Check that looks are not
2405 marked for fixup.
2406 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2407 to loops.
2408 (expand_omp_for_generic): Likewise.
2409 (expand_omp_sections): Likewise.
2410 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2411 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2412 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2413 is initialized, not when loops are present.
2414 * tree-parloops.c (parallelize_loops): Remove checking here.
2415 * passes.c (init_optimization_passes): Schedule a copy-propagation
2416 pass before complete unrolling of inner loops.
2417
e78e8a0b
JJ
24182013-04-26 Jakub Jelinek <jakub@redhat.com>
2419
a2e836b2
JJ
2420 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2421 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2422 (colorize_init): Add argument to _WIN32 version.
2423 * toplev.c: Include diagnostic-color.h.
2424 (process_options): Default to -fdiagnostics-color=auto if
2425 GCC_COLORS env var is in the environment.
2426 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
2427 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2428 env var is in the environment, the default is auto rather than never.
a2e836b2 2429
e78e8a0b
JJ
2430 * diagnostic.h (file_name_as_prefix): Add context argument.
2431 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2432 the string as locus.
2433 * langhooks.c (lhd_print_error_function): Adjust caller.
2434
013e5ef9
LC
24352013-04-25 Lawrence Crowl <crowl@google.com>
2436
2437 * var-tracking.c (shared_hash_def::htab):
2438 Change type to hash_table. Update dependent calls and types.
2439
4a8fb1a1
LC
24402013-04-25 Lawrence Crowl <crowl@google.com>
2441
2442 * Makefile.in: Update as needed below.
2443
2444 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2445 Move declaration to after the type's method definitons.
2446
2447 * attribs.c (htab_t scoped_attributes::attribute_hash):
2448 Change type to hash_table. Update dependent calls and types.
2449
2450 * bitmap.c (htab_t bitmap_desc_hash):
2451 Change type to hash_table. Update dependent calls and types.
2452
2453 * cselib.c (htab_t cselib_hash_table):
2454 Change type to hash_table. Update dependent calls and types.
2455
2456 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2457 (hash_string_slot_node): Move implementation into lto-streamer.h
2458 struct string_slot_hasher.
2459 (eq_string_slot_node): Likewise.
2460
2461 * data-streamer-out.c: Update output_block::string_hash_table
2462 dependent calls and types.
2463
2464 * dwarf2cfi.c (htab_t trace_index):
2465 Change type to hash_table. Update dependent calls and types.
2466
2467 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2468 Change type to hash_table. Update dependent calls and types.
2469 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2470 (htab_t optimize_external_refs::map): Likewise.
2471 (htab_t output_comp_unit::extern_map): Likewise.
2472 (htab_t output_comdat_type_unit::extern_map): Likewise.
2473 (htab_t output_macinfo::macinfo_htab): Likewise.
2474 (htab_t optimize_location_lists::htab): Likewise.
2475 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2476
2477 * except.c (htab_t ehspec_hash_type):
2478 Change type to hash_table. Update dependent calls and types.
2479 (assign_filter_values::ttypes): Likewise.
2480 (assign_filter_values::ehspec): Likewise.
2481 (sjlj_assign_call_site_values::ar_hash): Likewise.
2482 (convert_to_eh_region_ranges::ar_hash): Likewise.
2483
2484 * gcse.c (htab_t pre_ldst_table):
2485 Change type to hash_table. Update dependent calls and types.
2486
2487 * ggc-common.c (htab_t saving_htab):
2488 Change type to hash_table. Update dependent calls and types.
2489 (htab_t loc_hash): Likewise.
2490 (htab_t ptr_hash): Likewise.
2491 (call_count): Rename ggc_call_count.
2492 (call_alloc): Rename ggc_call_alloc.
2493 (loc_descriptor): Rename make_loc_descriptor.
2494 (add_statistics): Rename ggc_add_statistics.
2495
2496 * ggc-common.c (saving_htab):
2497 Change type to hash_table. Update dependent calls and types.
2498
2499 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2500 (push_gimplify_context): Likewise.
2501 (pop_gimplify_context): Likewise.
2502 (struct gimple_temp_hash_elt): Added.
2503 (struct gimplify_hasher): Likewise.
2504 (struct gimplify_ctx.temp_htab):
2505 Change type to hash_table. Update dependent calls and types.
2506
2507 * gimple-fold.c: Include gimplify-ctx.h.
2508
2509 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2510 Change type to hash_table. Update dependent calls and types.
2511 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2512 avoid potential global name collision.
2513
2514 * gimplify.c: Include gimplify-ctx.h.
2515 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2516 (htab_t gimplify_ctx::temp_htab):
2517 Update dependent calls and types for new type hash_table.
2518 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2519 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2520
2521 * gimplify-ctx.h: New.
2522 (struct gimple_temp_hash_elt): Move from gimplify.c.
2523 (class gimplify_hasher): New.
2524 (struct gimplify_ctx): Move from gimple.h.
2525 (htab_t gimplify_ctx::temp_htab):
2526 Change type to hash_table. Update dependent calls and types.
2527
2528 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2529 (htab_t ivs_params::newivs_index):
2530 Change type to hash_table. Update dependent calls and types.
2531 (htab_t ivs_params::params_index): Likewise.
2532 (htab_t print_generated_program::params_index): Likewise.
2533 (htab_t gloog::newivs_index): Likewise.
2534 (htab_t gloog::params_index): Likewise.
2535
2536 * graphite.c: Include graphite-htab.h.
2537 4htab_t graphite_transform_loops::bb_pbb_mapping):
2538 Change type to hash_table. Update dependent calls and types.
2539
2540 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2541 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2542 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2543
2544 * graphite-dependences.c: Include graphite-htab.h.
2545 (loop_is_parallel_p): Change hash table type of parameter.
2546
2547 * graphite-htab.h: New.
2548 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2549 (extern find_pbb_via_hash): Move from graphite-poly.h.
2550 (extern loop_is_parallel_p): Move from graphite-poly.h.
2551 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2552
2553 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2554 (extern loop_is_parallel_p): Move to graphite-htab.h.
2555 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2556
2557 * haifa-sched.c (htab_t delay_htab):
2558 Change type to hash_table. Update dependent calls and types.
2559 (htab_t delay_htab_i2): Likewise.
2560
2561 * ira-color.c (htab_t allocno_hard_regs_htab):
2562 Change type to hash_table. Update dependent calls and types.
2563
2564 * ira-costs.c (htab_t cost_classes_htab):
2565 Change type to hash_table. Update dependent calls and types.
2566
2567 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2568 Change type to hash_table. Update dependent calls and types.
2569
2570 * loop-iv.c (htab_t bivs):
2571 Change type to hash_table. Update dependent calls and types.
2572
2573 * loop-unroll.c (htab_t opt_info::insns_to_split):
2574 Change type to hash_table. Update dependent calls and types.
2575 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2576
2577 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2578 (struct string_slot_hasher): New.
2579 (htab_t output_block::string_hash_table):
2580 Change type to hash_table. Update dependent calls and types.
2581
2582 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2583 (htab_t file_name_hash_table):
2584 Change type to hash_table. Update dependent calls and types.
2585
2586 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2587 calls and types.
2588
2589 * lto-streamer.c (htab_t tree_htab):
2590 Change type to hash_table. Update dependent calls and types.
2591
2592 * omp-low.c: Include gimplify-ctx.h.
2593
2594 * passes.c (htab_t name_to_pass_map):
2595 Change type to hash_table. Update dependent calls and types.
2596 (pass_traverse): Rename to passes_pass_traverse.
2597
2598 * plugin.c (htab_t event_tab):
2599 Change type to hash_table. Update dependent calls and types.
2600
2601 * postreload-gcse.c (htab_t expr_table):
2602 Change type to hash_table. Update dependent calls and types.
2603 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2604
2605 * sese.c (debug_rename_map_1): Make extern.
2606 (htab_t copy_bb_and_scalar_dependences::rename_map):
2607 Change type to hash_table. Update dependent calls and types.
2608
2609 * sese.h (extern debug_rename_map): Move to .c file.
2610
2611 * store-motion.c (htab_t store_motion_mems_table):
2612 Change type to hash_table. Update dependent calls and types.
2613
2614 * trans-mem.c (htab_t tm_new_mem_hash):
2615 Change type to hash_table. Update dependent calls and types.
2616
2617 * tree-browser.c (htab_t TB_up_ht):
2618 Change type to hash_table. Update dependent calls and types.
2619
2620 * tree-cfg.c (htab_t discriminator_per_locus):
2621 Change type to hash_table. Update dependent calls and types.
2622
2623 * tree-complex.c: Include tree-hasher.h
2624 (htab_t complex_variable_components):
2625 Change type to hash_table. Update dependent calls and types.
2626
2627 * tree-eh.c (htab_t finally_tree):
2628 Change type to hash_table. Update dependent calls and types.
2629
2630 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2631 struct int_tree_hasher.
2632 (extern int_tree_map_eq): Likewise.
2633 (uid_decl_map_hash): Removed.
2634 (extern decl_tree_map_eq): Likewise.
2635
2636 * tree-hasher.h: New.
2637 (struct int_tree_hasher): New.
2638 (typedef int_tree_htab_type): New.
2639
2640 * tree-inline.c: Include gimplify-ctx.h.
2641
2642 * tree-mudflap.c: Include gimplify-ctx.h.
2643
2644 * tree-parloops.c: Include tree-hasher.h.
2645 (htab_t eliminate_local_variables_stmt::decl_address):
2646 Change type to hash_table. Update dependent calls and types.
2647 (htab_t separate_decls_in_region::decl_copies): Likewise.
2648
2649 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2650 Change type to hash_table. Update dependent calls and types.
2651
2652 * tree-sra.c (candidates):
2653 Change type to hash_table. Update dependent calls and types.
2654
2655 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2656 in tree-flow.h.
2657 (int_tree_map_hash): Likewise.
2658
2659 * tree-ssa-dom.c (htab_t avail_exprs):
2660 Change type to hash_table. Update dependent calls and types.
2661
2662 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2663 Change type to hash_table. Update dependent calls and types.
2664
2665 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2666 Change type to hash_table. Update dependent calls and types.
2667
2668 * tree-ssa-phiopt.c (seen_ssa_names):
2669 Change type to hash_table. Update dependent calls and types.
2670
2671 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2672 Change type to hash_table. Update dependent calls and types.
2673
2674 * tree-ssa-uncprop.c (equiv):
2675 Change type to hash_table. Update dependent calls and types.
2676
c5a44004
JJ
26772013-04-25 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR rtl-optimization/57003
2680 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2681 call note_stores with kill_clobbered_value callback again after
2682 killing regs_invalidated_by_call.
2683
09962a4a
JG
26842013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2685
2686 * config/aarch64/aarch64-simd.md
2687 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2688 (aarch64_simd_bsl<mode>): Likewise.
2689 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2690
ea28bb0b
MP
26912013-04-25 Marek Polacek <polacek@redhat.com>
2692
2693 PR tree-optimization/57066
3c21604f 2694 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 2695
96659611
JG
26962013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2697
2698 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2699
9697e620
JG
27002013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2701
2702 * config/aarch64/aarch64-builtins.c
2703 (aarch64_fold_builtin): New.
2704 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2705 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2706 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2707 * config/aarch64/arm_neon.h
2708 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2709
0ac198d3
JG
27102013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2711 Tejas Belagod <tejas.belagod@arm.com>
2712
2713 * config/aarch64/aarch64-builtins.c
2714 (aarch64_gimple_fold_builtin): New.
2715 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2716 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2717 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2718 (addvv4sf): Update.
2719 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2720
58cff58c
N
27212013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2722
df93505e 2723 * config/aarch64/aarch64.md
58cff58c
N
2724 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2725
7e0228bf
N
27262013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2727
2728 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2729 (*ngcsi_uxtw): New pattern.
2730
5819f96f 27312013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 2732 Julian Brown <julian@codesourcery.com>
5819f96f
KT
2733
2734 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2735 (TB_DREG): Add T_V4HF.
2736 (v4hf_UP): New macro.
2737 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 2738 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
2739 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2740 built-ins.
df93505e 2741 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
2742 (arm_vector_mode_supported_p): Handle V4HF.
2743 (arm_mangle_map): Handle V4HFmode.
2744 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2745 * config/arm/arm_neon_builtins.def: Add entries for
2746 vcvtv4hfv4sf, vcvtv4sfv4hf.
2747 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2748 (neon_vcvtv4hfv4sf): Likewise.
2749 * config/arm/neon-gen.ml: Handle half-precision floating point
2750 features.
2751 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2752 * config/arm/arm_neon.h: Regenerate.
2753 * config/arm/neon.ml (type elts): Add F16.
2754 (type vectype): Add T_float16x4, T_floatHF.
2755 (type vecmode): Add V4HF.
2756 (type features): Add Requires_FP_bit feature.
2757 (elt_width): Handle F16.
2758 (elt_class): Likewise.
2759 (elt_of_class_width): Likewise.
2760 (mode_of_elt): Refactor.
2761 (type_for_elt): Handle F16, fix error messages.
2762 (vectype_size): Handle T_float16x4.
2763 (vcvt_sh): New function.
2764 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2765 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2766 (string_of_mode): Handle V4HF.
2767 * doc/arm-neon-intrinsics.texi: Regenerate.
2768
1ef395e4
JG
27692013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2770
2771 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2772 format specifier in 'X' case.
2773
41c34e94
AM
27742013-04-25 Alan Modra <amodra@gmail.com>
2775
2776 PR target/57052
2777 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2778 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2779 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2780 Repeat for many other rotate/shift and mask patterns using subregs.
2781 Name lshiftrt insns.
2782 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2783 on WORDS_BIG_ENDIAN.
2784
b9a7eb5d
AM
27852013-04-25 Alan Modra <amodra@gmail.com>
2786
2787 * config.gcc: Support little-endian powerpc-linux targets.
2788 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2789 (LINK_OS_LINUX_SPEC): Define.
2790 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2791 Preserve MASK_LITTLE_ENDIAN.
2792 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2793 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2794 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2795 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2796 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2797 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2798 Correct fp word order for little-endian. Don't shift toc entries
2799 smaller than a word for little-endian.
2800 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2801 (bswapdi2 splits): Correct low-part subreg for little-endian.
2802 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2803 low/high where such is correct only for be.
2804 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2805 little-endian for -mcall-aixdesc.
2806
87f73374
AM
28072013-04-25 Alan Modra <amodra@gmail.com>
2808
2809 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2810 replace_equiv_address_nv.
2811
cabf91cd
AM
28122013-04-25 Alan Modra <amodra@gmail.com>
2813
2814 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2815
0ae24cc8
VM
28162013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2817
2818 Revert:
2819 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2820 * rtl.h (struct rtx_def): ...
cabf91cd 2821
77bce07c
VM
28222013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2823
2824 PR rtl-optimizations/57046
2825 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2826 for multi-reg splits.
2827
0db63e7f
L
28282013-04-24 H.J. Lu <hongjiu.lu@intel.com>
2829
2830 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2831
3362b6b6
SA
28322013-04-24 Sterling Augustine <saugustine@google.com>
2833
2834 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2835 (comp_dir_string, debug_str_dwo_section): New.
2836 (DEBUG_STR_DWO_SECTION): Rename to ...
2837 (DEBUG_DWO_STR_SECTION): ... this.
2838 (DEBUG_NORM_STR_SECTION): Delete.
2839 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2840 (DEBUG_STR_DWO_SECTION_FLAGS): New.
2841 (find_AT_string): Move most logic to ...
2842 (find_AT_string_in_table): ... here. New.
2843 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2844 add_skeleton_AT_string. Delete logic.
2845 (output_skeleton_debug_sections): Remove call to
2846 add_top_level_skeleton_die_attrs.
2847 (add_comp_dir_attribute): Move logic to comp_dir_string.
2848 (dwarf2out_init): Initialize debug_str_dwo_section.
2849 (output_indirect_string): Call find_string_form.
2850 (output_indirect_strings): Rewrite.
2851 (prune_unused_types): Empty skeleton_debug_str_hash.
2852 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2853 (dwarf2out_finish): Call output_indirect_strings.
2854
e93e18e9
PC
28552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2856
2857 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2858
f6ce35ac
VM
28592013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2860
cabf91cd 2861 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
2862 (LRA_SUBREG_P): New macro.
2863 * recog.c (register_operand): Check LRA_SUBREG_P.
2864 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2865 stack frame.
2866 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2867 (lra_final_code_change): Skip subreg change for operators.
2868 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2869 if there are no operand changes.
2870 * lra-constraints.c (curr_insn_set): New.
2871 (match_reload): Set LRA_SUBREG_P.
2872 (emit_spill_move): Ditto.
2873 (check_and_process_move): Use curr_insn_set. Process only single
2874 set insns. Don't initialize sec_mem_p and change_p.
2875 (simplify_operand_subreg): Use LRA_SUBREG_P.
2876 (reg_in_class_p): New function.
2877 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2878 of #ifdef. Add code to remove cycling.
2879 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2880 non-null disp. Reload inner instead of disp when base and index
2881 are null. Try to put lo_sum into register.
2882 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 2883 (check_and_process_move): Move code for move cost check to
f6ce35ac 2884 simple_move_p. Remove equiv_substitution.
cabf91cd 2885 (simple_move_p): New function.
f6ce35ac
VM
2886 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2887 curr_insn_set. Call check_and_process_move only for single set
2888 insns. Use the new function. Move call of check_and_process_move
2889 after operand equiv substitution and address process.
2890
38047d90
JG
28912013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2892
2893 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2894 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2895 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2896
13f39b2e
PC
28972013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2898
2899 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2900
97c116dc
MP
29012013-04-24 Marek Polacek <polacek@redhat.com>
2902
2903 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2904 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2905 (select_loops_exit_conditions): Likewise.
2906 (number_of_iterations_for_all_loops): Likewise.
2907 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2908 (scev_analysis): Likewise.
2909
83082391
CM
29102013-04-02 Catherine Moore <clm@codesourcery.com>
2911 Chao-ying Fu <fu@mips.com>
2912
cabf91cd
AM
2913 * config/mips/micromips.md (jraddiusp): New pattern.
2914 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2915 instruction if possible.
83082391 2916
19e34aa2
AM
29172013-04-24 Alan Modra <amodra@gmail.com>
2918
2919 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2920
fdb6603c
JB
29212013-04-24 Julian Brown <julian@codesourcery.com>
2922 Chung-Lin Tang <cltang@codesourcery.com>
2923
2924 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
2925 dependency behavior in enumeration type DIE generation. Add TODO note
2926 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 2927
bf190e8d
LC
29282013-04-23 Lawrence Crowl <crowl@google.com>
2929
2930 * Makefile.in: Update as needed below.
2931
2932 * hash-table.h (class hash_table):
2933 Correct many methods with parameter types compare_type to the correct
2934 value_type. (Correct code was unlikely to notice the change.)
2935 (hash_table::elements_with_deleted) New.
2936 (class hashtable::iterator): New.
2937 (hashtable::begin()): New.
2938 (hashtable::end()): New.
2939 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2940
2941 * statistics.c (statistics_hashes):
2942 Change type to hash_table. Update dependent calls and types.
2943
2944 * tree-into-ssa.c (var_infos):
2945 Change type to hash_table. Update dependent calls and types.
2946
2947 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2948 Change type to hash_table. Update dependent calls and types.
2949
2950 * tree-ssa-loop-im.c (struct mem_ref.refs):
2951 Change type to hash_table. Update dependent calls and types.
2952
2953 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2954 Change type to hash_table. Update dependent calls and types.
2955
2956 * tree-ssa-sccvn.c (vn_tables_s::nary):
2957 Change type to hash_table. Update dependent calls and types.
2958 (vn_tables_s::phis): Likewise.
2959 (vn_tables_s::references): Likewise.
2960
2961 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2962 (vn_reference_eq): Update parameter and return types.
2963
2964 * tree-ssa-structalias.c (pointer_equiv_class_table):
2965 Change type to hash_table. Update dependent calls and types.
2966 (location_equiv_class_table): Likewise.
2967
2968 * tree-vect-data-refs.c: Consequential changes for making
2969 peeling a hash_table.
2970
2971 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2972 (destroy_loop_vec_info): Dependent hash_table update.
2973
2974 * tree-vectorizer.h (peeling_htab):
2975 Change type to hash_table. Update dependent calls and types.
2976
d70a81dd
SC
29772013-04-23 Shiva Chen <shiva0217@gmail.com>
2978
cabf91cd
AM
2979 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2980 to check the register content is equal or not.
2981 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2982 to assign register content record.
2983 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 2984 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
2985 * lra-int.h (struct lra_reg): Add offset member.
2986 (lra_reg_val_equal_p): New static inline function.
2987 (lra_update_reg_val_offset): New static inline function.
2988 (lra_assign_reg_val): New static inline function.
2989 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2990 to assign register content record.
2991 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 2992
b894a1f3
CM
29932013-04-23 Catherine Moore <clm@codesourcery.com>
2994
2995 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2996 operands. Record compression.
2997
ecd14de9
XDL
29982013-04-23 Xinliang David Li <davidxl@google.com>
2999
3000 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3001
92e776e9
RB
30022013-04-23 Richard Biener <rguenther@suse.de>
3003
3004 PR middle-end/57036
3005 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3006 parameter, only add abnormal goto edges from the copied body
3007 if the call could perform abnormal gotos.
3008 (copy_cfg_body): Adjust.
3009
a15ee567
SN
30102013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3011
3012 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3013
08c52234
AS
30142013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3015
3016 * coretypes.h (gimple_stmt_iterator): Add struct to make
3017 compatible with C.
3018
999c1171
RB
30192013-04-23 Richard Biener <rguenther@suse.de>
3020
3021 PR tree-optimization/57026
3022 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3023 from SSA names occuring in abnormal PHI nodes.
3024
53669259
AK
30252013-04-22 Andi Kleen <ak@linux.intel.com>
3026
3027 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3028
1a0ad150
AK
30292013-04-22 Andi Kleen <ak@linux.intel.com>
3030
3031 * lto/lto.c (print_lto_report_1): Declare early.
3032 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3033
057f8f20
AK
30342013-04-22 Andi Kleen <ak@linux.intel.com>
3035
3036 * common.opt (-flto-report-wpa): Add.
3037 * doc/invoke.texi (-flto-report-wpa): Add.
3038 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3039 (lto_main): dito.
3040
473b1e05
XDL
30412013-04-22 Xinliang David Li <davidxl@google.com>
3042
3043 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3044 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3045 * Makefile.in: New dependency
3046
cabf91cd 3047 David Daney <ddaney.cavm@gmail.com>
b1485a33 3048
cabf91cd
AM
3049 * configure.ac (gcc_cv_as_micromips_support): Use the
3050 --fatal-warnings option.
3051 * configure: Regenerate.
b1485a33 3052
829d0168
MP
30532013-04-22 Marek Polacek <polacek@redhat.com>
3054
3055 PR sanitizer/56990
3056 * tsan.c (instrument_expr): Don't instrument expression
3057 in case its size is zero.
3058
6d9b7208
UB
30592013-04-22 Uros Bizjak <ubizjak@gmail.com>
3060
3061 PR target/57032
3062 Revert:
3063 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3064
3065 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3066
ea679d55
JG
30672013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3068
3069 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3070 (gimple_stmt_iterator): New typedef.
3071 * gimple.h (gimple_stmt_iterator): Rename to...
3072 (gimple_stmt_iterator_d): ... This.
3073 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3074 trees be valid for GIMPLE and GENERIC.
3075 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3076 * gimple-fold.c (gimple_fold_call): Call target hook
3077 gimple_fold_builtin.
3078 * hooks.c (hook_bool_gsiptr_false): New.
3079 * hooks.h (hook_bool_gsiptr_false): New.
3080 * target.def (fold_stmt): New.
3081 * doc/tm.texi: Regenerate.
3082
88a581da
VM
30832013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3084
3085 PR target/57018
3086 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3087 a set sp if no stack realignment.
3088
92be22dc
NC
30892013-04-22 Nick Clifton <nickc@redhat.com>
3090
3091 * config.gcc (tilegx-linux): Extend extra_objs rather than
3092 overwriting it.
3093 (tilepro-linux): Likewise.
3094
0ddec79f
JG
30952013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3096
3097 * config/aarch64/aarch64-builtins.c
3098 (CF): Remove.
3099 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3100 (VAR<1-12>): Add MAP parameter.
3101 (BUILTIN_*): Likewise.
3102 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3103 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3104 (aarch64_ushl_n<mode>): Likewise.
3105 (aarch64_sshr_n<mode>): Likewise.
3106 (aarch64_ushr_n<mode>): Likewise.
3107 (aarch64_<maxmin><mode>): Likewise.
3108 (aarch64_sqrt<mode>): Likewise.
3109 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3110 (vshr<q>_n_*): Likewise.
3111
0050faf8
JG
31122013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3113
3114 * config/aarch64/aarch64-builtins.c
3115 (aarch64_simd_builtin_type_mode): Handle SF types.
3116 (sf_UP): Define.
3117 (BUILTIN_GPF): Define.
3118 (aarch64_init_simd_builtins): Handle SF types.
3119 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3120 (frecps): Likewise.
3121 (frecpx): Likewise.
3122 * config/aarch64/aarch64-simd.md
3123 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3124 (aarch64_frecpe<mode>): New.
3125 (aarch64_frecps<mode>): Likewise.
3126 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3127 (v8type): Add frecp<esx>.
3128 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3129 (aarch64_frecps<mode>): Likewise.
3130 * config/aarch64/iterators.md (FRECP): New.
3131 (frecp_suffix): Likewise.
3132 * config/aarch64/arm_neon.h
3133 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3134
0fad3dbc 31352013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
3136
3137 PR target/56995
3138 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3139 (REG_CLASS_NAMES): Idem.
3140 (REG_CLASS_CONTENTS): Idem.
3141 (REGCLASS_HAS_FP_REG): Idem.
3142 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3143 (sh_conditional_register_usage): Idem.
3144
3e8a33f9
JL
31452013-04-21 Jeff Law <law@redhat.com>
3146
3147 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3148 (ssa_forward_propagate_and_combine): Use it.
3149
f38e1b0a
VM
31502013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3151
3152 * lra.c: Update the flow chart diagram.
3153
682303da
VM
31542013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3155
3156 PR rtl-optimization/56847
3157 * lra-constraints.c (process_alt_operands): Discourage alternative
3158 with non-matche doffsettable memory constraint fro memory with
3159 known offset.
3160
f6b64c35
RB
31612013-04-19 Richard Biener <rguenther@suse.de>
3162
3163 PR tree-optimization/56982
3164 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3165 function.
3166 * gimplify.c (gimplify_call_expr): Notice special calls.
3167 (gimplify_modify_expr): Likewise.
3168 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3169 abnormal control flow receivers.
3170 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3171 in the same way as cfun->has_nonlocal_labels.
3172 (gimple_purge_dead_abnormal_call_edges): Likewise.
3173 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3174 receivers start a basic-block.
3175
01d8bf07
RB
31762013-04-19 Richard Biener <rguenther@suse.de>
3177
3178 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3179 member ...
3180 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3181 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3182 (SLP_TREE_LOAD_PERMUTATION): Add.
3183 (vect_transform_slp_perm_load): Adjust prototype.
3184 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3185 (vect_free_slp_instance): Likewise.
3186 (vect_create_new_slp_node): Likewise.
3187 (vect_supported_slp_permutation_p): Remove.
3188 (vect_slp_rearrange_stmts): Adjust.
3189 (vect_supported_load_permutation_p): Likewise. Inline
3190 vect_supported_slp_permutation_p here.
3191 (vect_analyze_slp_instance): Compute load permutations per
3192 slp node instead of per instance.
3193 (vect_get_slp_defs): Adjust.
3194 (vect_transform_slp_perm_load): Likewise.
3195 (vect_schedule_slp_instance): Remove redundant code.
3196 (vect_schedule_slp): Remove hack for PR56270, add it ...
3197 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3198 CSE loads for SLP. Adjust.
3199
ede22fc3
GY
32002013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3201
3202 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3203 spelling in two comments.
3204
67bc84fb
GY
32052013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3206
3207 PR target/56797
3208 * config/arm/arm.c (load_multiple_sequence): Require SP
3209 as base register for loads if SP is in the register list.
3210
e248d83f
MJ
32112013-04-19 Martin Jambor <mjambor@suse.cz>
3212
3213 PR tree-optimization/56718
3214 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3215 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3216 and made public. Adjusted all callers.
3217 (ipa_intraprocedural_devirtualization): New function.
3218 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3219 (ipa_intraprocedural_devirtualization): Likewise.
3220 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3221
4891e8f8
RB
32222013-04-19 Richard Biener <rguenther@suse.de>
3223
3224 PR tree-optimization/57000
3225 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3226
dad89f7c
TG
32272013-04-19 Terry Guo <terry.guo@arm.com>
3228
3229 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3230 Replace with ...
3231 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3232 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3233 (cortex_m4_fmacs): Use new reservations.
3234 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3235
72ea0d47
VM
32362013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3237
f1e6512c 3238 PR rtl-optimization/56999
72ea0d47
VM
3239 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3240 related code.
3241 (lra_coalesce): Remove split_origin_bitmap and related code.
3242 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3243 ranges if necessary.
3244
780a5b71
UB
32452013-04-18 Uros Bizjak <ubizjak@gmail.com>
3246
3247 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3248 New array.
3249 (ix86_expand_call): Remove clobbered_registers array and use
3250 x86_64_ms_sysv_extra_clobbered_registers instead.
3251 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3252 Declare here.
3253 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3254 predicate.
3255 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3256 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3257 (*call_value_rex64_ms_sysv): Ditto.
3258
6f5a366a
CC
32592013-04-18 Cary Coutant <ccoutant@google.com>
3260
3261 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3262 parent instead of die_mark.
3263
475b8f37
DN
32642013-04-18 Diego Novillo <dnovillo@google.com>
3265
3266 * gimple.c (create_gimple_tmp): New.
3267 (get_expr_type): New.
3268 (build_assign): New.
3269 (build_type_cast): New.
3270 * gimple.h (enum ssa_mode): Define.
3271 (gimple_seq_set_location): New.
3272 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 3273 to use build_assign and build_type_cast.
475b8f37 3274
08940f33
RB
32752013-04-18 Richard Biener <rguenther@suse.de>
3276
3277 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3278 handle negative step. Remove redundant checks.
3279 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3280 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3281 for negative step and grouped loads fail to vectorize.
3282
0e0f87d4
SB
32832013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3284
3285 * emit-rtl.c (reset_insn_used_flags): New function.
3286 (reset_all_used_flags): Use it.
3287 (verify_insn_sharing): New function.
3288 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3289
4c445590
JJ
32902013-04-18 Jakub Jelinek <jakub@redhat.com>
3291
3292 PR tree-optimization/56984
3293 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3294 and (x >> M) >= N don't register any assertion if N << M is the
3295 minimum value.
3296
6873ecab
SB
32972013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3298
3299 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3300 do not delete_insn insns that have not yet been emitted, only
3301 unlink them with remove_insn.
3302 * df-scan.c (df_insn_delete): Revert r197492.
3303
3ccb989e
SB
33042013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3305
3306 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3307 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3308
33092013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
3310
3311 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3312 define_insn_and_split.
3313 (and_scc,ior_scc,negscc): Likewise.
3314 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3315
3ccb989e 33162013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
3317
3318 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3319 can benefit from using a sequence of LDRD instructions in epilogue
3320 instead of a single LDM instruction.
3321
6d10a203
MLI
33222013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3323
3324 PR 45688
3325 * doc/extend.texi: Fix typo.
3326
6983e6b5
RB
33272013-04-17 Richard Biener <rguenther@suse.de>
3328
3329 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3330 (vect_build_slp_tree): ... here.
3331 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3332 match. Remove special-casing of mismatched complex loads.
3333 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3334 re-try the match with swapped commutative operands.
3335 (vect_supported_load_permutation_p): Remove special-casing of
3336 mismatched complex loads.
3337 (vect_analyze_slp_instance): Adjust.
3338
ef23e6a2
RB
33392013-04-17 Richard Biener <rguenther@suse.de>
3340
3341 PR rtl-optimization/56921
3342 * cfgloop.h (struct loop): Add simple_loop_desc member.
3343 (struct niter_desc): Mark with GTY(()).
3344 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3345 * loop-iv.c (get_simple_loop_desc): Likewise.
3346 (free_simple_loop_desc): Likewise.
3347
3348 Revert
3349 2013-04-16 Richard Biener <rguenther@suse.de>
3350
3351 PR rtl-optimization/56921
3352 * loop-init.c (pass_rtl_move_loop_invariants): Add
3353 TODO_do_not_ggc_collect to todo_flags_finish.
3354 (pass_rtl_unswitch): Same.
3355 (pass_rtl_unroll_and_peel_loops): Same.
3356 (pass_rtl_doloop): Same.
3357
fc6f94f5
EB
33582013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3359
3360 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3361 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3362 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3363 references.
3364 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3365 * tree-streamer.c (record_common_node): Adjust reference in comment.
3366
10a88311
TG
33672013-04-17 Terry Guo <terry.guo@arm.com>
3368
3369 * config/arm/cortex-m4.md: Add a new bypass.
3370
6d9b7208 33712013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
3372
3373 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3374 New pattern.
3375 (*subs_<optab><mode>_multp2): New pattern.
3376 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3377 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3378
6d9b7208 33792013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
3380
3381 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3382 (*subs_mul_imm_<mode>): New pattern.
3383
18a6701e
DE
33842013-04-16 David Edelsohn <dje.gcc@gmail.com>
3385
3386 PR target/56948
3387 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3388 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3389 (vsx_movti_32bit): Change j->wa to O->wa.
3390
07c37b2f
RB
33912013-04-16 Richard Biener <rguenther@suse.de>
3392
3393 PR rtl-optimization/56921
3394 * loop-init.c (pass_rtl_move_loop_invariants): Add
3395 TODO_do_not_ggc_collect to todo_flags_finish.
3396 (pass_rtl_unswitch): Same.
3397 (pass_rtl_unroll_and_peel_loops): Same.
3398 (pass_rtl_doloop): Same.
3399
0e0f87d4 34002013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
3401
3402 * config/arm/arm.c (emit_multi_reg_push): New declaration
3403 for an existing function.
3404 (arm_emit_strd_push): New function.
3405 (arm_expand_prologue): Used here.
3406 (arm_emit_ldrd_pop): New function.
3407 (arm_expand_epilogue): Used here.
3408 (arm_get_frame_offsets): Update condition.
3409 (arm_emit_multi_reg_pop): Add a special case for load of a single
3410 register with writeback.
3411
5e8e2af4
UB
34122013-04-16 Uros Bizjak <ubizjak@gmail.com>
3413
3414 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3415 description.
3416
9fd9ccf7
RB
34172013-04-16 Richard Biener <rguenther@suse.de>
3418
3419 PR tree-optimization/56756
3420 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3421 (first_mem_ref_loc): New.
3422 (execute_sm): Place the load temporarily before a previous
3423 access instead of in the latch edge to ensure its SSA dependencies
3424 are defined at points dominating the load.
3425
96fba521
SB
34262013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3427
4c8af858
SB
3428 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3429 correct fix by moving header and footer insn to the footer of
3430 the merged basic block. Clear BB_END of the merged-away block.
3431
96fba521
SB
3432 PR middle-end/43631
3433 * emit-rtl.c (make_note_raw): New function.
3434 (link_insn_into_chain): New static inline function.
3435 (add_insn): Use it.
3436 (add_insn_before, add_insn_after): Factor insn chain linking code...
3437 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3438 using link_insn_into_chain.
3439 (note_outside_basic_block_p): New helper function for emit_note_after
3440 and emit_note_before.
3441 (emit_note_after): Use nobb variant of add_insn_after if the note
3442 should not be contained in a basic block.
3443 (emit_note_before): Use nobb variant of add_insn_before if the note
3444 should not be contained in a basic block.
3445 (emit_note_copy): Use make_note_raw.
3446 (emit_note): Likewise.
3447 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3448 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3449 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3450 the moved barrier the tail of the basic block it follows.
3451 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3452
7b8265ba
JJ
34532013-04-15 Jakub Jelinek <jakub@redhat.com>
3454
3455 PR tree-optimization/56962
3456 * gimple-ssa-strength-reduction.c (record_increment): Only set
3457 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3458 either rhs1 or rhs2 is equal to c->base_expr.
3459
5185d248
RB
34602013-04-15 Richard Biener <rguenther@suse.de>
3461
3462 PR tree-optimization/56933
3463 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3464 member.
3465 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3466 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3467 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3468 dependence check ...
3469 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3470 ... here.
3471 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3472 GROUP_READ_WRITE_DEPENDENCE.
3473
a24243a0
AK
34742013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3475
3476 * emit-rtl.c (reset_all_used_flags): New function.
3477 (verify_rtl_sharing): Call reset_all_used_flags before and after
3478 performing the checks.
3479
1c50eada
KT
34802013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3481
3482 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3483 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3484 * config/arm/constraints.md (De): New constraint.
3485 * config/arm/neon.md (anddi3_neon): Delete.
3486 (neon_vand<mode>): Expand to standard anddi3 pattern.
3487 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3488 Move earlier in the file.
3489 (neon_inv_logic_op2): Likewise.
3490 (arm_anddi_operand_neon): New predicate.
3491
e927b6ad
RO
34922013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3493
3494 * configure.ac (gcc_cv_ld_as_needed): Set
3495 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3496 Use -z ignore, -z record on *-*-solaris2*.
3497 (HAVE_LD_AS_NEEDED): Update comment.
3498 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3499 * configure: Regenerate.
3500 * config.in: Regenerate.
3501 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3502 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3503 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3504 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3505 equivalents. Fix markup.
3506 * doc/tm.texi: Regenerate.
3507
e0ea8797
AH
35082013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3509
3510 * config/i386/i386.opt: New option mstack-protector-guard=.
3511 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3512 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3513 TARGET_SSP_TLS_GUARD.
3514 * config/i386/i386.c (ix86_option_override_internal): Set
3515 ix86_stack_protector_guard.
3516 * config/i386/i386.md (stack_protect_set): Enable for
3517 TARGET_SSP_TLS_GUARD only.
3518 (stack_protect_set_<mode>): Ditto.
3519 (stack_protect_test): Ditto.
3520 (stack_protect_test_<mode>): Ditto.
3521 * doc/invoke.texi (i386 Option): Document.
3522
811b72f9
EB
35232013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3524
3525 PR target/56890
3526 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3527 (S_MODES): Set H_MODE bit.
3528 (SF_MODES): Set only S_MODE and SF_MODE bits.
3529 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3530 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3531 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3532 <MODE_FLOAT>: Likewise.
3533
5529fdd6
JY
35342013-04-15 Joey Ye <joey.ye@arm.com>
3535
3536 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3537
517b1da2
JY
35382013-04-15 Joey Ye <joey.ye@arm.com>
3539
3540 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3541 for real far jump.
3542 (thumb_far_jump_used_p): Count instruction size and set
3543 far_jump_used.
3544
01007ae0
EB
35452013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3546
3547 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3548 * resource.c (mark_target_live_regs): Reformat conditional block.
3549
c46f6580
SB
35502013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3551
3552 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3553 notes, they are emitted only just before final.
3554 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3555
1f397f45
SB
35562013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3557
3558 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3559 * cfgrtl.c (delete_insn): Call it here instead.
3560 * lra-spills.c (lra_final_code_change): Use delete_insn.
3561 * haifa-sched.c (sched_remove_insn): Likewise.
3562 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3563 returning to the nop pool.
3564 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3565 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3566
58a51369
SB
35672013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3568
3569 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3570 * doc/tm.texi: Regenerated.
3571
33159866
UB
35722013-04-12 Uros Bizjak <ubizjak@gmail.com>
3573
3574 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3575 QImode checks.
3576
226e378f
SB
35772013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3578
3579 * df-core.c (df_find_def): Compare register numbers.
3580 (df_find_use): Likewise.
3581
fafb9b18
VM
35822013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3583
3584 PR target/56903
3585 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3586 lra_in_progress for return.
3587
9a946fd6
GY
35882013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3589
3590 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3591 define_insn into define_insn_and_split and emit movsicc patterns.
3592
41b83758
GY
35932013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3594
3595 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3596
d3afd9aa
RB
35972013-04-12 Richard Biener <rguenther@suse.de>
3598
3599 * tree-pass.h (TODO_do_not_ggc_collect): New.
3600 * passes.c (execute_one_ipa_transform_pass): Honor
3601 TODO_do_not_ggc_collect.
3602 (execute_one_pass): Likewise.
3603
3604 Revert
3605 2013-04-10 Richard Biener <rguenther@suse.de>
3606
3607 * passes.c (init_optimization_passes): Remove reload pass.
3608 * ira.c (do_reload): Merge into ...
3609 (ira): ... this.
3610 (rest_of_handle_reload): Remove.
3611 (pass_reload): Likewise.
3612 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3613 of reload for vzeroupper pass placement.
3614
06f9b387
JJ
36152013-04-12 Jakub Jelinek <jakub@redhat.com>
3616
3617 PR tree-optimization/56918
3618 PR tree-optimization/56920
3619 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3620 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3621 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3622 use wide_mul_with_sign method.
3623
953094d2
RB
36242013-04-12 Richard Biener <rguenther@suse.de>
3625
3626 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3627 not be considered a gimple constant.
3628
bb506982
MG
36292013-04-12 Marc Glisse <marc.glisse@inria.fr>
3630
3631 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3632 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3633 operations.
3634
4b84d650
JJ
36352013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3636 Jakub Jelinek <jakub@redhat.com>
3637
3638 * opts.c: Include diagnostic-color.h.
3639 (common_handle_option): Handle OPT_fdiagnostics_color_.
3640 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3641 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3642 (diagnostic-color.o): New.
3643 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3644 (diagnostic_color_rule): New enum.
3645 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3646 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3647 the location string.
3648 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3649 either NULL, or color kind.
3650 * diagnostic-color.c: New file.
3651 * diagnostic-color.h: New file.
3652 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3653 arguments.
3654 * doc/invoke.texi (-fdiagnostics-color): Document.
3655 * pretty-print.h (pp_show_color): Define.
3656 (struct pretty_print_info): Add show_color field.
3657 * diagnostic.c: Include diagnostic-color.h.
3658 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3659 macros. Colorize error:, warning: etc. strings and also the location
3660 string.
3661 (diagnostic_show_locus): Colorize the caret line.
3662 * pretty-print.c: Include diagnostic-color.h.
3663 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3664 inside of %< %> quotes or quoted through q format modifier.
3665
067a1e71
AK
36662013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3667
33159866 3668 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 3669
33159866 36702013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
3671
3672 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3673 code in CC_NZ mode.
3674 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3675 pattern.
3676
7b55f98f
MP
36772013-04-11 Marek Polacek <polacek@redhat.com>
3678
3679 PR tree-optimization/48184
33159866 3680 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 3681
966b587e
EB
36822013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3683
3684 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3685 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3686 (skip_simple_arithmetic): Tidy up.
3687 * tree.h (skip_simple_constant_arithmetic): Declare.
3688
33159866 36892013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
3690
3691 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3692
1d42c1ec
RB
36932013-04-11 Richard Biener <rguenther@suse.de>
3694
3695 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3696 generate vector constants.
3697
4ba5ea11
RB
36982013-04-11 Richard Biener <rguenther@suse.de>
3699
3700 PR tree-optimization/56878
3701 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3702 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3703 New function.
3704 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3705 Prefer to align the DR with the most invariant base address.
3706
f0defe58
SKS
37072013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3708
3709 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3710 comment.
3711
d07458be
JG
37122013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3713
3714 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3715 floating-point vector comparisons against 0.
3716
146b8692
JJ
37172013-04-11 Jakub Jelinek <jakub@redhat.com>
3718
3719 PR tree-optimization/56899
3720 * fold-const.c (extract_muldiv_1): Apply distributive law
3721 only if TYPE_OVERFLOW_WRAPS (ctype).
3722
b8578ff7
BC
37232013-04-11 Bin Cheng <bin.cheng@arm.com>
3724
3725 PR target/56124
3726 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3727 loading has side effect.
3728
0ea8a6f9
SB
37292013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3730
3731 * config/sparc/sparc.c: Include tree-pass.h.
3732 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3733 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3734 head of file. Change return type. Split off gate function.
3735 (sparc_gate_work_around_errata): New function.
3736 (pass_work_around_errata): New pass definition.
3737 (insert_pass_work_around_errata) New pass insert definition to
3738 insert pass_work_around_errata just after delayed-branch scheduling.
3739 (sparc_option_override): Insert the pass.
3740 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3741
42e37616
DM
37422013-04-10 David S. Miller <davem@davemloft.net>
3743
89deeb3b
DM
3744 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3745 or -mcpu=hypersparc.
3746
42e37616
DM
3747 * target.def (cstore_mode): New hook.
3748 * target.h: Include insn-codes.h
3749 * targhooks.c: Likewise.
3750 (default_cstore_mode): New function.
3751 * targhooks.h: Declare it.
3752 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3753 * doc/tm.texi: Rebuild.
3754 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3755 target hook, rather than inspecting the insn_data.
3756 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3757 (TARGET_CSTORE_MODE): Redefine.
3758 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3759 result patterns.
3760 * config/sparc/predicates.md (cstore_result_operand): New special
3761 predicate.
3762 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3763 Use it for operand 0.
3764 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3765 (*snesi_special): Likewise.
3766 (*snesi_zero): Likewise.
3767 (*seqsi_zero): Likewise.
3768 (*sltu_insn): Likewise.
3769 (*sgeu_insn): Likewise.
3770 (*seqdi_special): Make operand 0 and comparison operation be of
3771 DImode.
3772 (*snedi_special): Likewise.
3773 (*snedi_special_vis3): Likewise.
3774 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3775 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3776 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3777 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3778 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3779 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3780 (*sltu_extend_sp64): Likewise.
3781 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3782 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3783 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3784 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3785 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3786
95ca411e
YZ
37872013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3788
3789 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3790 (aarch64_start_file): Use the new function.
3791
6782438d 37922013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 3793 Jason Merrill <jason@redhat.com>
6782438d
SKS
3794
3795 * common.opt: Add -gdwarf.
3796 * opts.c (common_handle_option): Handle it.
3797 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3798
bb313b93
RB
37992013-04-10 Richard Biener <rguenther@suse.de>
3800
3801 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3802 (execute_one_ipa_transform_pass): But unconditionally here.
3803 (execute_one_pass): And here.
3804 (init_optimization_passes): Remove reload pass.
3805 * tree-pass.h (TODO_ggc_collect): Remove.
3806 (pass_reload): Likewise.
3807 * ira.c (do_reload): Merge into ...
3808 (ira): ... this.
3809 (rest_of_handle_reload): Remove.
3810 (pass_reload): Likewise.
3811 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3812 of reload for vzeroupper pass placement.
3813 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3814 and todo_flags_finish of all passes.
3815
793d9a16
RB
38162013-04-10 Richard Biener <rguenther@suse.de>
3817
3818 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3819 first_const_oprnd field, rename first_def_type to first_op_type.
3820 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3821 (vect_get_and_check_slp_defs): Always use the type of the
3822 operand. Allow mixed vect_external_def, vect_constant_def types.
3823 (vect_get_constant_vectors): Handle mixed vect_external_def,
3824 vect_constant_def types.
3825
ee8a9b7b
JR
38262013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
3827
3828 PR tree-optimization/55524
3829 * tree-ssa-math-opts.c
3830 (convert_mult_to_fma): Don't use an fms construct
3831 when we don't have an fms operation, but fnma, and it looks
3832 likely that we'll be able to use the latter.
3833
6957a6f6
ZZ
38342013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3835
3836 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3837 function.
3838 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3839 inline fail caused by overwritable functions.
3840
34ab4a5b
CJW
38412013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
3842
3843 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3844 unnecessary bits in the constant power of two case.
3845
abf9bfbc
RB
38462013-04-10 Richard Biener <rguenther@suse.de>
3847
3848 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3849 broken code swapping operands.
3850 (vect_build_slp_tree): Do not compute load permutations here.
3851 (vect_analyze_slp_instance): Compute load permutations here,
3852 after building the SLP tree.
3853
f408477e
CB
38542013-04-09 Christian Bruel <christian.bruel@st.com>
3855
3856 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3857 of next/prev_real_insn.
3858
5ac42672
JH
38592013-04-09 Jan Hubicka <jh@suse.cz>
3860
abf9bfbc
RB
3861 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3862 Drop aliased parameter.
5ac42672
JH
3863 (function_and_variable_visibility): Do not handle alias pairs.
3864 * cgraph.c (varpool_externally_visible_p): Update prototype.
3865 * varpool.c (varpool_add_new_variable): Update.
3866
5017f1d2
KT
38672013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3868
3869 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3870
48eecbee
SB
38712013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3872
a949cf1c
SB
3873 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3874
48eecbee
SB
3875 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3876
75ef8e3d
MP
38772013-04-09 Marek Polacek <polacek@redhat.com>
3878
3879 PR tree-optimization/48762
33159866 3880 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 3881
23847df4
RB
38822013-04-09 Richard Biener <rguenther@suse.de>
3883
3884 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3885 dealing with cost.
3886 (vect_build_slp_tree): Likewise.
3887 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3888 calculating the cost of a SLP instance.
3889 (vect_analyze_slp_instance): Use it from here, after building
3890 the SLP tree.
3891
ea3a0fde
JJ
38922013-04-09 Jakub Jelinek <jakub@redhat.com>
3893
3894 PR middle-end/56883
3895 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3896 expand_omp_for_static_chunk): Use simple_p = true in
3897 force_gimple_operand_gsi calls when assigning to addressable decls.
3898
a32dfe9d
JL
38992013-04-09 Jeff Law <law@redhat.com>
3900
3901 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3902 when the boolean was created by converting a wider object which
3903 had a boolean range.
3904
d755c7ef
RB
39052013-04-09 Richard Biener <rguenther@suse.de>
3906
3907 * tree-vectorizer.h (slp_void_p): Remove.
3908 (slp_tree): Typedef before _slp_tree declaration.
3909 (struct _slp_tree): Use a vector of slp_tree as children.
3910 (vect_get_place_in_interleaving_chain): Remove.
3911 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3912 Move ...
3913 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3914 and make static.
3915 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3916 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3917 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3918 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3919 Use slp_node instead of slp_void_p and adjust.
3920
3d741091
RB
39212013-04-09 Richard Biener <rguenther@suse.de>
3922
3923 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3924 work that is not necessary.
3925
39307ba7
JJ
39262013-04-09 Jakub Jelinek <jakub@redhat.com>
3927
3928 PR tree-optimization/56854
3929 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3930 forward into clobber stmts if it would change MEM_REF lhs into
3931 non-MEM_REF.
3932
343881fd
MK
39332013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3934
3935 * tree.c (type_hash_lookup, type_hash_add): Make static.
3936 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3937
3922658a
RB
39382013-04-09 Richard Biener <rguenther@suse.de>
3939
3940 * tree.h (unsave_expr_now): Remove.
3941 * tree-inline.c (mark_local_for_remap_r): Remove.
3942 (unsave_expr_1): Likewise.
3943 (unsave_r): Likewise.
3944 (unsave_expr_now): Likewise.
3945 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3946 (propagate_tree_value): Likewise.
3947
9fb6b620
SB
39482013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3949
3950 * doc/rtl.texi (sequence): Rewrite documentation to match the
3951 current use of SEQUENCE rtl objects.
3952 * rtl.def (SEQUENCE): Likewise.
3953
3954 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3955 Update documentation.
3956 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3957 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3958
3959 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3960
8ddb5a29
TJ
39612013-04-08 Teresa Johnson <tejohnson@google.com>
3962
3963 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3964 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 3965 methods.
8ddb5a29
TJ
3966 (estimate_edge_size_and_time): Add comment to suggest using rounding
3967 methods.
3968 (estimate_node_size_and_time): Ditto.
3969 (remap_edge_change_prob): Use helper rounding divide methods.
3970 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3971 (gimple_mod_pow2_value_transform): Ditto.
3972 (gimple_mod_subtract_transform): Ditto.
3973 (gimple_ic_transform): Ditto.
3974 (gimple_stringops_transform): Ditto.
3975 * stmt.c (conditional_probability): Ditto.
3976 (emit_case_dispatch_table): Ditto.
3977 * lto-cgraph.c (merge_profile_summaries): Ditto.
3978 * tree-optimize.c (execute_fixup_cfg): Ditto.
3979 * cfgcleanup.c (try_forward_edges): Ditto.
3980 * cfgloopmanip.c (scale_loop_profile): Ditto.
3981 (loopify): Ditto.
3982 (duplicate_loop_to_header_edge): Ditto.
3983 (lv_adjust_loop_entry_edge): Ditto.
3984 * tree-vect-loop.c (vect_transform_loop): Ditto.
3985 * profile.c (compute_branch_probabilities): Ditto.
3986 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3987 * lto-streamer-in.c (input_cfg): Ditto.
3988 * gimple-streamer-in.c (input_bb): Ditto.
3989 * ipa-cp.c (update_profiling_info): Ditto.
3990 (update_specialized_profile): Ditto.
3991 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3992 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 3993 rounding methods.
8ddb5a29
TJ
3994 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3995 (compute_trg_info): Ditto.
3996 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3997 (purge_dead_edges): Ditto.
3998 * loop-unswitch.c (unswitch_loop): Ditto.
3999 * cgraphclones.c (cgraph_clone_edge): Ditto.
4000 (cgraph_clone_node): Ditto.
4001 * tree-inline.c (copy_bb): Ditto.
4002 (copy_edges_for_bb): Ditto.
4003 (initialize_cfun): Ditto.
4004 (copy_cfg_body): Ditto.
4005 (expand_call_inline): Ditto.
4006
661e6bd7
KT
40072013-04-08 Kai Tietz <ktietz@redhat.com>
4008
4009 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4010 TARGET_CYGWIN64 by TARGET_64BIT.
4011
105766f3
JR
40122013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4013
4014 * config/epiphany/epiphany.md (GPR_1): New constant.
4015 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4016 * config/epiphany/epiphany.c (gen_compare_reg):
4017 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4018 is already in place.
4019 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4020 Don't require being called during rtl expansion; If y operlaps r0,
4021 return 0.
4022 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4023 (epiphany_expand_epilogue): Likewise.
4024
8afab237
JR
4025 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4026 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 4027 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 4028
fa7707d6
JR
4029 * config/epiphany/constraints.md (CnL): New constraint.
4030 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4031 * config/epiphany/predicates.md (add_operand): Allow 1024.
4032
5138e18d
JR
4033 * config/epiphany/epiphany.md (logical_op): New code iterator.
4034 (op_mnc): New code attribute.
4035 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4036 (mov_f+1, mov_f+2): New peephole2 patterns.
4037
2ccc703d
JR
4038 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4039 (cstoresi4): Also allow re-use of zero result when doing a NE
4040 comparison to a non-zero operand.
aefb0819 4041 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 4042
093ac0a5
JR
4043 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4044 Use gen_addsi3_i / gen_subsi3_i.
4045
f223bb13
JJ
40462013-04-08 Jakub Jelinek <jakub@redhat.com>
4047
4048 PR c++/34949
4049 PR c++/50243
4050 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4051 contain anything but clobbers, at most one __builtin_stack_restore,
4052 optionally debug stmts and final resx, and if it has at least one
4053 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4054 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4055 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4056 which isn't defaut definition, remove them.
4057 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4058 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4059 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4060 with MEM_REF LHS with SSA_NAME address.
4061
4481581f
JL
40622013-04-08 Jeff Law <law@redhat.com>
4063
4064 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 4065
451dabda
RB
40662013-04-08 Richard Biener <rguenther@suse.de>
4067
4068 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4069 extra newline.
4070 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4071 determined vector type.
4072 (vect_analyze_data_refs): Likewise.
4073 (vect_get_new_vect_var): Adjust.
4074 (vect_create_destination_var): Preserve SSA name versions.
4075 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4076 not dump anything here.
4077
3b088b47
JR
40782013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4079
4080 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4081 Add member lr_slot_known.
4082 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4083 if necessary.
4084 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4085 Remove code that sets lr_slot_offset according to what a previous
4086 version of epiphany_emit_save_restore used to do.
4087 (epiphany_emit_save_restore): When doing an lr save or restore,
4088 set/verify lr_slot_known and lr_slot_offset.
4089
d8484d41
XQ
40902013-04-08 Xinyu Qi <xyqi@marvell.com>
4091
33159866
UB
4092 PR target/54338
4093 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
4094 in ALL_REGS.
4095
481be1c4
RB
40962013-04-08 Richard Biener <rguenther@suse.de>
4097
4098 * alias.c (find_base_term): Fix thinko in previous change.
4099
401f3a81
JJ
41002013-04-08 Jakub Jelinek <jakub@redhat.com>
4101
4102 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4103 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4104 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4105 if possible to compute val.
4106 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4107 For QImode integers don't require anything about precision. Use
4108 const_with_all_bytes_same to find out if the constant doesn't have
4109 repeated bytes in it.
4110
03ed99a8
AK
41112013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4112
4113 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4114 within mode size.
4115
781b2e62
MP
41162013-04-08 Marek Polacek <polacek@redhat.com>
4117
4118 PR rtl-optimization/48182
4119 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4120 value to 1.
4121
27e430a2
JDA
41222013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4123
4124 PR target/55487
4125 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4126 nuses, make sure we have a label.
4127
4902aa64
BS
41282013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4129
4130 PR target/56843
4131 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4132 (rs6000_emit_swdiv_low_precision): Remove.
4133 (rs6000_emit_swdiv): Rewrite to handle between one and four
4134 iterations of Newton-Raphson generally; modify required number of
4135 iterations for some cases.
4136 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4137
7bca81dc
SB
41382013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4139
4140 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4141 set-but-unused variable.
4142
4143 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4144 basic blocks of released function bodies garbage-collectable.
4145
4146 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4147 (struct rtl_opt_pass): Add TODO_df_finish.
4148
4149 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4150
4542a38a
GY
41512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4152
4153 * config/arm/constraints.md (q): New constraint.
4154 * config/arm/ldrdstrd.md: New file.
4155 * config/arm/arm.md (ldrdstrd.md) New include.
4156 (arm_movdi): Use "q" instead of "r" constraint
4157 for double-word memory access.
4158 (movdf_soft_insn): Likewise.
4159 * config/arm/vfp.md (movdi_vfp): Likewise.
4160 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 4161 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
4162 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4163 (mem_ok_for_ldrd_strd): Likewise.
4164 (output_move_double): Update assertion.
4165
2385b218
GY
41662013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4167
4168 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4169
75fe1cb5
GY
41702013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4171
4172 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4173 define_insn_and_split.
4174 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4175
dd660e8e
GY
41762013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4177
4178 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4179 define_insn_and_split.
33159866 4180 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
4181 (shiftsi3_compare): New pattern.
4182 (rrx): New pattern.
4183 * config/arm/unspecs.md (UNSPEC_RRX): New.
4184
045e472c
GY
41852013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4186
4187 * config/arm/arm.md (negdi_extendsidi): New pattern.
4188 (negdi_zero_extendsidi): Likewise.
4189
3f3bf1a8
GY
41902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4191
4192 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4193 define_insn_and_split.
4194 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4195 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4196
b0b49556
GY
41972013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4198
4199 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4200 define_insn_and_split.
4201 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4202 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4203
d633dd84
GY
42042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4205
4206 * config/arm/arm.md (subsi3_carryin): New pattern.
4207 (subsi3_carryin_const): Likewise.
4208 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4209 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4210
f4499066
GY
42112013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4212
4213 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4214
ceef6fd9
GY
42152013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4216
4217 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 4218 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 4219
ddbdd8a7
KT
42202013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4221
4222 * config/arm/arm.c (arm_expand_builtin): Change fcode
4223 type to unsigned int.
4224
8456d78a
RR
42252013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4226
4227 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4228
526c230f
ILT
42292013-04-04 Ian Lance Taylor <iant@google.com>
4230
33159866
UB
4231 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4232 language standard.
526c230f 4233
3cfbe04d
SB
42342013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4235
4236 PR middle-end/56729
4237 * df-scan.c (df_insn_delete): Disable failing assert.
4238
dfa3f8d0
KT
42392013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4240
4241 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4242 New function prototype.
4243 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4244 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4245 (arm_builtin_vectorized_function): New function.
4246
f7837758
KT
42472013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4248
4249 * config/arm/arm_neon_builtins.def: New file.
4250 * config/arm/arm.c (neon_builtin_data): Move contents to
4251 arm_neon_builtins.def.
4252 (enum arm_builtins): Include neon builtin definitions.
4253 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 4254 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 4255
39c1b6db
MP
42562013-04-04 Marek Polacek <polacek@redhat.com>
4257
4258 PR tree-optimization/48186
4259 * predict.c (maybe_hot_frequency_p): Return false if
4260 HOT_BB_FREQUENCY_FRACTION is 0.
4261 (cgraph_maybe_hot_edge_p): Likewise.
4262
314f64eb
RB
42632013-04-04 Richard Biener <rguenther@suse.de>
4264
4265 PR tree-optimization/56826
4266 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4267 more accurately.
4268
51a905b2
RB
42692013-04-04 Richard Biener <rguenther@suse.de>
4270
4271 PR tree-optimization/56213
4272 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 4273 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 4274
f1bf4f3a
RB
42752013-04-04 Richard Biener <rguenther@suse.de>
4276
4277 PR tree-optimization/56837
4278 * tree-loop-distribution.c (classify_partition): For non-zero
4279 values require that the value has the same precision as its
4280 mode to be useful as memset value.
4281
0bca7ded
NC
42822013-04-03 Nick Clifton <nickc@redhat.com>
4283
33159866 4284 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
4285 (fmssf4): Use fmsf.s on E3V5 architectures.
4286 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4287 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4288
b4019227
JL
42892013-04-03 Jeff Law <law@redhat.com>
4290
4291 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4292 (lra-eliminations.o): Likewise.
4293
f57ddb5b
TJ
42942013-04-03 Teresa Johnson <tejohnson@google.com>
4295
4296 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 4297 compute_working_sets here from profile.c.
f57ddb5b 4298 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
4299 (gcov_working_set_t): Moved typedef here from basic-block.h
4300 (compute_working_set): Declare.
f57ddb5b
TJ
4301 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4302 (get_working_sets): Renamed from compute_working_set,
33159866 4303 replace most of body with call to new compute_working_sets.
f57ddb5b 4304 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
4305 to get_working_sets.
4306 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 4307 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 4308 to get_working_sets.
f57ddb5b
TJ
4309 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4310 * gcov-dump.c (dump_working_sets): New function.
4311
5e0919f1
KZ
43122013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4313
4314 * hwint.c (sext_hwi, zext_hwi): New functions.
4315 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4316 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4317 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4318 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4319 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4320 (sext_hwi, zext_hwi): New functions.
0bca7ded 4321
be672e08
JL
43222013-04-03 Jeff Law <law@redhat.com>
4323
4324 PR tree-optimization/56799
33159866
UB
4325 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4326 back test for widening conversion erroneously dropped in prior change.
be672e08 4327
9d821fa5
KT
43282013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4329
4330 PR target/56809
4331 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4332 instead of next_real_insn.
4333
71c581e7
MP
43342013-04-03 Marek Polacek <polacek@redhat.com>
4335
4336 PR sanitizer/55702
33159866 4337 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 4338
4a32ef80
KT
43392013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4340
4341 PR target/56809
4342 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4343 next_real_insn.
4344 (thumb1_output_casesi): Likewise.
4345 (thumb2_output_casesi): Likewise.
4346
1b2253d4
RB
43472013-04-03 Richard Biener <rguenther@suse.de>
4348
4349 PR tree-optimization/56817
4350 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4351 Split out ...
4352 (tree_unroll_loops_completely_1): ... new function to manually
4353 walk the loop tree, properly defering outer loops of unrolled
4354 loops to later iterations.
4355
38000232
MG
43562013-04-03 Marc Glisse <marc.glisse@inria.fr>
4357
4358 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4359 (vectorizable_load): Likewise.
4360 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4361 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4362
3fa35298
MG
43632013-04-03 Marc Glisse <marc.glisse@inria.fr>
4364
4365 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4366 BIT_FIELD_REF.
4367
b3d45ff0
UW
43682013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4369
4370 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4371
ec9202a8
BC
43722013-04-03 Bin Cheng <bin.cheng@arm.com>
4373
4374 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4375
6805bd36
MG
43762013-04-03 Marc Glisse <marc.glisse@inria.fr>
4377
4378 PR tree-optimization/56790
33159866
UB
4379 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4380 folding.
6805bd36 4381
da694a77
MG
43822013-04-03 Marc Glisse <marc.glisse@inria.fr>
4383
4384 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4385 Handle VEC_MERGE.
4386 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4387 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4388 equal arguments.
4389
4e7d7b3d
JJ
43902013-04-03 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR c/19449
4393 * tree.h (force_folding_builtin_constant_p): New decl.
4394 * builtins.c (force_folding_builtin_constant_p): New variable.
4395 (fold_builtin_constant_p): Fold immediately also if
4396 force_folding_builtin_constant_p.
4397
e6c9d234
RB
43982013-04-03 Richard Biener <rguenther@suse.de>
4399
4400 PR tree-optimization/56812
4401 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4402 DRs of the same interleaving chain are independent.
4403
984d07dd
JM
44042013-04-02 Jason Merrill <jason@redhat.com>
4405
4406 * gdbinit.in (pbb): Use debug fn.
4407
622849c9
LC
44082013-04-02 Lawrence Crowl <crowl@google.com>
4409
4410 * sese.h (struct ivtype_map_elt_s): Remove unused.
4411 (extern debug_ivtype_map): Remove unused.
4412 (extern eq_ivtype_map_elts): Remove unused.
4413 * sese.c (debug_ivtype_map): Removed unused.
4414 (debug_ivtype_map_1): Removed unused.
4415 (debug_ivtype_elt): Remove unused.
4416 (eq_ivtype_map_elts): Remove unused.
4417
4418
82c0e1a0
KT
44192013-04-02 Kai Tietz <ktietz@redhat.com>
4420
4421 PR target/52790
4422 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4423 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
4424 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4425 function.
82c0e1a0
KT
4426 (legitimize_pe_coff_symbol): Likewise.
4427 (is_imported_p): New helper-function.
4428 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4429 for Windows x64 targets.
4430 (ix86_expand_prologue): Optimize for pe-coff targets.
4431 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4432 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4433 medium/large code-model.
4434 (legitimize_pic_address): Likewise.
4435 (legitimize_tls_address): Likewise.
4436 (ix86_expand_call): Likewise.
4437 (x86_output_mi_thunk): Likewise.
4438 (get_dllimport_decl): Add new beimport argument.
4439 (construct_plt_address): Don't assert for x64 pe-coff targets.
4440 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4441 targets.
4442 (SYMBOL_FLAG_STUBVAR): New macro.
4443 (SYMBOL_REF_STUBVAR_P): Likewise.
4444 * config/i386/winnt.c (stub_list): New structure.
4445 (stub_head): New local variable.
4446 (i386_pe_record_stub): New function.
4447 (i386_pe_file_end): Emit refptr-stubs.
4448
5d751b0c
JJ
44492013-04-02 Jakub Jelinek <jakub@redhat.com>
4450
09bb4c99
JJ
4451 PR rtl-optimization/56745
4452 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4453 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4454
a1d8947a
JJ
4455 PR c++/34949
4456 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4457 and both of them are MEM_REFs, just compare first argument for
4458 equality and attempt to deal even with differing offsets.
4459
5d751b0c
JJ
4460 PR c++/34949
4461 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4462 of gimple_clobber_p to be MEM_REF.
4463 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4464 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4465 after gimplification.
4466 * asan.c (get_mem_ref_of_assignment): Don't instrument
4467 gimple_clobber_p stmts.
4468 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4469 gimple_clobber_p stmt if they have MEM_REF lhs and
4470 are dead because of another gimple_clobber_p stmt.
4471 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4472 gimple_clobber_p stmts like debug stmts.
4473 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4474 that refer to unused VAR_DECLs or uninitialized values.
4475 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4476 gimple_clobber_p stmts if they refer to removed parameters.
4477 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4478 formatting.
4479
e594716a
UB
44802013-04-02 Uros Bizjak <ubizjak@gmail.com>
4481
4482 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4483 using SWI48 mode attribute.
4484
7a80735b
WM
44852013-04-02 Wei Mi <wmi@google.com>
4486
4487 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4488 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4489 *<rotate_insn><mode>3_mask in i386.md.
4490
f423a9e4
AI
44912013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4492
4493 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4494
90eb75f2
RB
44952013-04-02 Richard Biener <rguenther@suse.de>
4496
4497 PR tree-optimization/56778
4498 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4499 Runtime alias tests are not supported for gather loads.
4500 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4501 stmts referenced from SSA operands before updating SSA form.
4502
d8c69a92
IC
45032013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4504 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4505
4506 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
4507 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4508 * config/arm/cortex-a53.md: New file.
4509 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4510 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4511 * config/arm/arm.c (arm_issue_rate): Likewise.
4512 * config/arm/arm-tune.md: Regenerate
4513 * config/arm/arm-tables.opt: Regenerate.
4514 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 4515
239eb04c
ZC
45162013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4517
4518 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4519 non-static link.
4520
c902d3c8
SN
45212013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4522
d8c69a92
IC
4523 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4524 scalar load/store operations using B/H registers.
c902d3c8
SN
4525 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4526
051d0e2f
SN
45272013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4528
4529 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4530 scalar move.
4531 * config/aarch64/aarch64.c
4532 (aarch64_simd_scalar_immediate_valid_for_move): New.
4533 * config/aarch64/aarch64-protos.h
4534 (aarch64_simd_scalar_immediate_valid_for_move): New.
4535 * config/aarch64/constraints.md (Dh, Dq): New.
4536 * config/aarch64/iterators.md (hq): New.
4537
0ee1e3d9
EB
45382013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4539
4540 * reorg.c (get_branch_condition): Deal with conditional returns.
4541 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4542
136fb3f7
WM
45432013-04-01 Wei Mi <wmi@google.com>
4544
4545 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4546 Truncate operand 2 using %b asm operand modifier.
4547 (*<shift_insn><mode>3_mask): Ditto.
4548 (*<rotate_insn><mode>3_mask): Ditto.
4549
6388c738
SB
45502013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4551
4552 PR middle-end/56798
4553 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4554
f7a4d826
KK
45552013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4556
4557 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4558 of next_real_insn.
4559 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4560
4b943a49
LC
45612013-03-30 Lawrence Crowl <crowl@google.com>
4562
4563 * dse.c (clear_alias_sets): Remove never set.
4564 (disqualified_clear_alias_sets): Remove never set.
4565 (clear_alias_mode_pool): Remove never set.
4566 (dse_step0): Remove condition that is never true.
4567 (canon_address): Remove condition that is never true.
4568 (dse_step7): Remove condition that is never true.
4569 (rest_of_handle_dse): Remove condition that is never true.
4570 (rest_of_handle_dse::did_global): Remove never read from above.
4571 (dse_step2_spill): Remove never called from above.
4572 (dse_step5_spill): Remove never called from above.
4573
39718607
SB
45742013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4575
da5c6bde
SB
4576 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4577 JUMP_TABLE_DATA changes.
4578 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4579 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4580 (Insns) <jump_table_data>: New entry.
4581 * doc/tm.texi: Regenerate.
4582
39718607
SB
4583 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4584
4585 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4586 for table jump at the end of a basic block using tablejump_p.
4587 * targhooks.c (default_invalid_within_doloop): Likewise.
4588 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4589 target hook implementation that is identical to the default hook.
4590 (rs6000_invalid_within_doloop): Remove.
4591
4592 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4593 unused variable from tablejump_p call.
4594
4595 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4596 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4597 (INSN_DELETED_P): Likewise.
4598 (emit_jump_table_data): New prototype.
4599 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4600 after 4th as unused.
4601 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4602 * sched-vis.c (print_insn): Likewise.
4603 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4604 insn for compatibility with back ends that use next_active_insn to
4605 identify jump table data.
4606 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4607 (remove_insn): Likewise.
4608 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4609 to be emitted.
4610 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4611 (emit_jump_table_data): New function.
4612
4613 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4614 basic block, a JUMP_TABLE_DATA never is.
4615 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4616 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4617 off from code handling real insns.
4618 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4619 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4620 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4621 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4622 is not a NONDEBUG_INSN_P.
4623 * ira-costs.c (scan_one_insn): Likewise.
4624 * jump.c (mark_all_labels): Likewise.
4625 (mark_jump_label_1): Likewise.
4626 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4627 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4628 a basic block.
4629 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4630 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4631 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4632 JUMP_TABLE_DATA_P insns.
4633 (calculate_elim_costs_all_insns): Likewise.
4634 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4635 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4636 (delete_output_reload): Code style fixups.
4637 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4638 insn flags on this non-insn.
4639 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4640 as scheduling barriers, for pre-change compatibility.
4641 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4642 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4643
4644 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4645 redundant JUMP_TABLE_DATA_P test.
4646 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4647 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4648 (frv_for_each_packet): Likewise.
4649 * config/i386/i386.c (min_insn_size): Likewise.
4650 (ix86_avoid_jump_mispredicts): Likewise.
4651 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4652 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4653 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4654 (mips16_insn_length): Robustify.
4655 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4656 (mips16_split_long_branches): Likewise.
4657 * config/pa/pa.c (pa_combine_instructions): Likewise.
4658 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4659 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4660 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4661 as contributing to pool range lengths.
4662 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4663 Remove redundant JUMP_TABLE_DATA_P test.
4664 (sh_loop_align): Likewise.
4665 (split_branches): Likewise.
4666 (sh_insn_length_adjustment): Likewise.
4667 * config/spu/spu.c (get_branch_target): Likewise.
4668
0208f7da
JH
46692013-03-29 Jan Hubicka <jh@suse.cz>
4670
4671 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4672 gcov streaming; stream hot bb threshold to ltrans.
4673 * predict.c (get_hot_bb_threshold): Break out from ....
4674 (maybe_hot_count_p): ... here.
4675 (set_hot_bb_threshold): New function.
4676 * lto-section-in.c (lto_section_name): Add profile.
4677 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4678 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4679 and data-streamer.h
4680 (histogram_entry): New structure.
4681 (histogram, histogram_pool): New global vars.
4682 (histogram_hash): New structure.
4683 (histogram_hash::hash): New method.
4684 (histogram_hash::equal): Likewise.
4685 (account_time_size): New function.
4686 (cmp_counts): New function.
4687 (dump_histogram): New function.
4688 (ipa_profile_generate_summary): New function.
4689 (ipa_profile_write_summary): New function.
4690 (ipa_profile_read_summary): New function.
4691 (ipa_profile): Decide on threshold.
e594716a
UB
4692 (pass_ipa_profile): Add ipa_profile_write_summary and
4693 ipa_profile_read_summary.
0208f7da
JH
4694 * Makefile.in (ipa.o): Update dependencies.
4695 * lto-streamer.h (LTO_section_ipa_profile): New section.
4696
5a6ccc94
GDR
46972013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4698
4699 * tree.h (VAR_P): New.
4700
39385fa6
PC
47012013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4702
4703 PR lto/56777
4704 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4705
34f0d87a
SB
47062013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4707
4708 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4709 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4710 (control_flow_insn_p): Likewise.
4711 * cfgrtl.c (duplicate_insn_chain): Likewise.
4712 * final.c (get_attr_length_1): Likewise.
4713 (shorten_branches): Likewise.
4714 (final_scan_insn): Likewise.
4715 * function.c (instantiate_virtual_regs): Likewise.
4716 * gcse.c (insert_insn_end_basic_block): Likewise.
4717 * ira-costs.c (scan_one_insn): Likewise.
4718 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4719 * lra.c (check_rtl): Likewise.
4720 * reload1.c (elimination_costs_in_insn): Likewise.
4721 * reorg.c (follow_jumps): Likewise.
4722
4723 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4724 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4725 (thumb_far_jump_used_p): Likewise.
4726 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4727 (workaround_speculation): Likewise.
4728 (add_sched_insns_for_speculation): Likewise.
4729 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4730 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4731 (frv_for_each_packet): Likewise.
4732 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4733 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4734 (final_emit_insn_group_barriers): Likewise.
4735 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4736 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4737 (mips16_insn_length): Likewise.
4738 * config/pa/pa.c (pa_reorg): Likewise.
4739 (pa_combine_instructions): Likewise.
4740 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4741 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4742 (sh_reorg): Likewise.
4743 (split_branches): Likewise.
4744 * config/spu/spu.c (get_branch_target): Likewise.
4745
4746 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4747 JUMP_TABLE_DATA_P.
4748
4ac761b0
KY
47492013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4750
39385fa6 4751 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
4752 Fix declaration name.
4753
58a49189
LC
47542013-03-28 Lawrence Crowl <crowl@google.com>
4755
4756 * graphds.h (struct graph.indicies): Remove unused.
4757 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4758 (SCOP_ORIGINAL_PDDRS): Remove unused.
4759 * sese.h (extern insert_loop_close_phis): Removed unused.
4760 (extern insert_guard_phis): Removed unused.
4761 (extern ivtype_map_elt_info): Removed unused.
4762 (new_ivtype_map_elt): Removed unused.
4763 * sese.c (ivtype_map_elt_info): Removed unused.
4764
7b3b6ae4
LC
47652013-03-28 Lawrence Crowl <crowl@google.com>
4766
4767 * Makefile.in: Add several missing include dependences.
4768 (DUMPFILE_H): New.
4769 (test-dump.o): New. This object is not added to any executable,
4770 but is present for ad-hoc testing.
4771 * bitmap.c
4772 (debug (const bitmap_head_def &)): New.
4773 (debug (const bitmap_head_def *)): New.
4774 * bitmap.h
4775 (extern debug (const bitmap_head_def &)): New.
4776 (extern debug (const bitmap_head_def *)): New.
4777 * cfg.c
4778 (debug (edge_def &)): New.
4779 (debug (edge_def *)): New.
4780 * cfghooks.c
4781 (debug (basic_block_def &)): New.
4782 (debug (basic_block_def *)): New.
4783 * dumpfile.h
4784 (dump_node (const_tree, int, FILE *)): Correct source file.
4785 * dwarf2out.c
4786 (debug (die_struct &)): New.
4787 (debug (die_struct *)): New.
4788 * dwarf2out.h
4789 (extern debug (die_struct &)): New.
4790 (extern debug (die_struct *)): New.
4791 * gimple-pretty-print.c
4792 (debug (gimple_statement_d &)): New.
4793 (debug (gimple_statement_d *)): New.
4794 * gimple-pretty-print.h
4795 (extern debug (gimple_statement_d &)): New.
4796 (extern debug (gimple_statement_d *)): New.
4797 * ira-build.c
4798 (debug (ira_allocno_copy &)): New.
4799 (debug (ira_allocno_copy *)): New.
4800 (debug (ira_allocno &)): New.
4801 (debug (ira_allocno *)): New.
4802 * ira-int.h
4803 (extern debug (ira_allocno_copy &)): New.
4804 (extern debug (ira_allocno_copy *)): New.
4805 (extern debug (ira_allocno &)): New.
4806 (extern debug (ira_allocno *)): New.
4807 * ira-lives.c
4808 (debug (live_range &)): New.
4809 (debug (live_range *)): New.
4810 * lra-int.h
4811 (debug (lra_live_range &)): New.
4812 (debug (lra_live_range *)): New.
4813 * lra-lives.c
4814 (debug (lra_live_range &)): New.
4815 (debug (lra_live_range *)): New.
4816 * omega.c
4817 (debug (omega_pb_d &)): New.
4818 (debug (omega_pb_d *)): New.
4819 * omega.h
4820 (extern debug (omega_pb_d &)): New.
4821 (extern debug (omega_pb_d *)): New.
4822 * print-rtl.c
4823 (debug (const rtx_def &)): New.
4824 (debug (const rtx_def *)): New.
4825 * print-tree.c
4826 (debug_tree (tree): Move within file.
4827 (debug_raw (const tree_node &)): New.
4828 (debug_raw (const tree_node *)): New.
4829 (dump_tree_via_hooks (const tree_node *, int)): New.
4830 (debug (const tree_node &)): New.
4831 (debug (const tree_node *)): New.
4832 (debug_verbose (const tree_node &)): New.
4833 (debug_verbose (const tree_node *)): New.
4834 (debug_head (const tree_node &)): New.
4835 (debug_head (const tree_node *)): New.
4836 (debug_body (const tree_node &)): New.
4837 (debug_body (const tree_node *)): New.
4838 (debug_vec_tree (tree): Move and reimplement in terms of dump.
4839 (debug (vec<tree, va_gc> &)): New.
4840 (debug (vec<tree, va_gc> *)): New.
4841 * rtl.h
4842 (extern debug (const rtx_def &)): New.
4843 (extern debug (const rtx_def *)): New.
4844 * sbitmap.c
4845 (debug_raw (simple_bitmap_def &)): New.
4846 (debug_raw (simple_bitmap_def *)): New.
4847 (debug (simple_bitmap_def &)): New.
4848 (debug (simple_bitmap_def *)): New.
4849 * sbitmap.h
4850 (extern debug (simple_bitmap_def &)): New.
4851 (extern debug (simple_bitmap_def *)): New.
4852 (extern debug_raw (simple_bitmap_def &)): New.
4853 (extern debug_raw (simple_bitmap_def *)): New.
4854 * sel-sched-dump.c
4855 (debug (vinsn_def &)): New.
4856 (debug (vinsn_def *)): New.
4857 (debug_verbose (vinsn_def &)): New.
4858 (debug_verbose (vinsn_def *)): New.
4859 (debug (expr_def &)): New.
4860 (debug (expr_def *)): New.
4861 (debug_verbose (expr_def &)): New.
4862 (debug_verbose (expr_def *)): New.
4863 (debug (vec<rtx> &)): New.
4864 (debug (vec<rtx> *)): New.
4865 * sel-sched-dump.h
4866 (extern debug (vinsn_def &)): New.
4867 (extern debug (vinsn_def *)): New.
4868 (extern debug_verbose (vinsn_def &)): New.
4869 (extern debug_verbose (vinsn_def *)): New.
4870 (extern debug (expr_def &)): New.
4871 (extern debug (expr_def *)): New.
4872 (extern debug_verbose (expr_def &)): New.
4873 (extern debug_verbose (expr_def *)): New.
4874 (extern debug (vec<rtx> &)): New.
4875 (extern debug (vec<rtx> *)): New.
4876 * sel-sched-ir.h
4877 (_list_iter_cond_expr): Make inline instead of static.
4878 * sreal.c
4879 (debug (sreal &)): New.
4880 (debug (sreal *)): New.
4881 * sreal.h
4882 (extern debug (sreal &)): New.
4883 (extern debug (sreal *)): New.
4884 * tree.h
4885 (extern debug_raw (const tree_node &)): New.
4886 (extern debug_raw (const tree_node *)): New.
4887 (extern debug (const tree_node &)): New.
4888 (extern debug (const tree_node *)): New.
4889 (extern debug_verbose (const tree_node &)): New.
4890 (extern debug_verbose (const tree_node *)): New.
4891 (extern debug_head (const tree_node &)): New.
4892 (extern debug_head (const tree_node *)): New.
4893 (extern debug_body (const tree_node &)): New.
4894 (extern debug_body (const tree_node *)): New.
4895 (extern debug (vec<tree, va_gc> &)): New.
4896 (extern debug (vec<tree, va_gc> *)): New.
4897 * tree-cfg.c
4898 (debug (struct loop &)): New.
4899 (debug (struct loop *)): New.
4900 (debug_verbose (struct loop &)): New.
4901 (debug_verbose (struct loop *)): New.
4902 * tree-dump.c: Add header dependence.
4903 * tree-flow.h
4904 (extern debug (struct loop &)): New.
4905 (extern debug (struct loop *)): New.
4906 (extern debug_verbose (struct loop &)): New.
4907 (extern debug_verbose (struct loop *)): New.
4908 * tree-data-ref.c
4909 (debug (data_reference &)): New.
4910 (debug (data_reference *)): New.
4911 (debug (vec<data_reference_p> &)): New.
4912 (debug (vec<data_reference_p> *)): New.
4913 (debug (vec<ddr_p> &)): New.
4914 (debug (vec<ddr_p> *)): New.
4915 * tree-data-ref.h
4916 (extern debug (data_reference &)): New.
4917 (extern debug (data_reference *)): New.
4918 (extern debug (vec<data_reference_p> &)): New.
4919 (extern debug (vec<data_reference_p> *)): New.
4920 (extern debug (vec<ddr_p> &)): New.
4921 (extern debug (vec<ddr_p> *)): New.
4922 * tree-ssa-alias.c
4923 (debug (pt_solution &)): New.
4924 (debug (pt_solution *)): New.
4925 * tree-ssa-alias.h
4926 (extern debug (pt_solution &)): New.
4927 (extern debug (pt_solution *)): New.
4928 * tree-ssa-alias.c
4929 (debug (_var_map &)): New.
4930 (debug (_var_map *)): New.
4931 (debug (tree_live_info_d &)): New.
4932 (debug (tree_live_info_d *)): New.
4933 * tree-ssa-alias.h
4934 (extern debug (_var_map &)): New.
4935 (extern debug (_var_map *)): New.
4936 (extern debug (tree_live_info_d &)): New.
4937 (extern debug (tree_live_info_d *)): New.
4938
be77e1e5
JH
49392013-03-28 Jan Hubicka <jh@suse.cz>
4940
4941 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4942
777e6976
IB
49432013-03-28 Ian Bolton <ian.bolton@arm.com>
4944
4945 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4946 record only when desired or required.
4947
9cd347ae
UB
49482013-03-28 Uros Bizjak <ubizjak@gmail.com>
4949
4950 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4951 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4952
33159866 49532013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
4954
4955 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4956 (*andsi3_compare0_uxtw): New pattern.
4957 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4958 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4959
89ab31c1
JH
49602013-03-28 Jan Hubicka <jh@suse.cz>
4961
4962 * data-streamer-in.c (streamer_read_gcov_count): New function.
4963 * gimple-streamer-out.c: Include value-prof.h.
4964 (output_gimple_stmt): Output histogram.
4965 (output_bb): Use streamer_write_gcov_count.
4966 * value-prof.c: Include data-streamer.h
4967 (dump_histogram_value): Add HIST_TYPE_MAX.
4968 (stream_out_histogram_value): New function.
4969 (stream_in_histogram_value): New function.
4970 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4971 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4972 * data-streamer-out.c (streamer_write_gcov_count): New function.
4973 (streamer_write_gcov_count_stream): New function.
4974 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4975 (lto_output_node): Likewise.
4976 (input_node, input_edge): Likewise.
4977 * lto-streamer-out.c (output_cfg): Update streaming.
4978 * lto-streamer-in.c (input_cfg): Likewise.
4979 * data-streamer.h (streamer_write_gcov_count,
4980 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4981 * gimple-streamer-in.c: Include value-prof.h
4982 (input_gimple_stmt): Input histograms.
4983 (input_bb): Update profile streaming.
4984
e594716a 49852013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 4986
33159866 4987 * genmodes.c (emit_max_int): New function.
8697be17 4988 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
4989 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4990 Added doc.
8697be17 4991 * machmode.def: Fixed comment.
89ab31c1 4992
e594716a 49932013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
4994
4995 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
4996 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4997
74946978
MP
49982013-03-28 Marek Polacek <polacek@redhat.com>
4999 Richard Biener <rguenther@suse.de>
5000
5001 PR tree-optimization/56695
5002 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5003 build signed result of a vector comparison.
5004 * tree-cfg.c (verify_gimple_comparison): Check that a result
5005 of a vector comparison has signed type.
5006
a64b9c26
RB
50072013-03-28 Richard Biener <rguenther@suse.de>
5008
5009 PR tree-optimization/37021
5010 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5011 do not restrict gaps between groups.
5012 * tree-vect-stmts.c (vectorizable_load): Properly account for
5013 a gap between groups.
5014
a9dc2a2f
EB
50152013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5016
5017 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5018 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5019 is not enabled.
5020
53cb97f9
GP
50212013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5022
5023 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5024 * doc/extend.texi (Named Address Spaces): Ditto.
5025 (Variable Attributes): Ditto.
5026
b802ae5c
KT
50272013-03-27 Kai Tietz <ktietz@redhat.com>
5028
eddae10a
KT
5029 * config.build: Add support for cygwin x64 target.
5030 * config.gcc: Likewise.
5031 * config.host: Likewise.
5032 * configure.ac: Likewise
5033 * configure: Regenerated.
b802ae5c 5034
8269de54
KT
50352013-03-27 Kai Tietz <ktietz@redhat.com>
5036
5037 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5038 * config/i386/t-cygwin-w64: New file.
5039 * config/i386/cygwin-w64.h: New file.
5040 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5041 and add support for x64-cygwin target.
5042 (CPP_SPEC): Likewise.
5043 (CXX_WRAP_SPEC_LIST): Undefine before define.
5044 (LIBGCJ_SONAME): Use 15 as version.
5045
f49b33cb
RB
50462013-03-27 Richard Biener <rguenther@suse.de>
5047
5048 PR tree-optimization/56716
5049 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5050 dumping for ref nodes.
5051
b37a6ce5
MJ
50522013-03-27 Martin Jambor <mjambor@suse.cz>
5053
5054 PR tree-optimization/55334
5055 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5056 restricted pointers to arrays.
5057
9469b9b2
GDR
50582013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5059
5060 * Makefile.in (.SUFFIXES): Add .cc.
5061 (.c.o): Apply same recipe for implicit rule .cc.o.
5062
7d24f650
RB
50632013-03-27 Richard Biener <rguenther@suse.de>
5064
5065 PR tree-optimization/37021
5066 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5067 REALPART/IMAGPART_EXPRs around the supported refs.
5068 * tree-ssa-structalias.c (find_func_aliases): Assume that
5069 floating-point values are not used to transfer pointers.
5070
2f251a05
AI
50712013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5072
39385fa6
PC
5073 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5074 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5075 * doc/tm.texi: Regenerate.
5076 * targhooks.h (default_has_ifunc_p): New.
5077 * targhooks.c (default_has_ifunc_p): Ditto.
5078 * config/linux-protos.h: New file.
5079 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
5080 this hook for linux which disables support of indirect functions in
5081 android.
39385fa6
PC
5082 * config/linux-android.c: New file.
5083 * config/t-linux-android.c: Ditto.
5084 * config.gcc: Added new object file linux-android.o.
5085 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 5086 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 5087 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
5088 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5089 doesn't support indirect functions.
5090 * configure: Regenerate.
5091
78b4e425
BC
50922013-03-27 Bin Cheng <bin.cheng@arm.com>
5093
5094 PR target/56102
5095 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5096 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5097 mult-word mode.
5098
a5ba7b92
AK
50992013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5100
5101 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5102
be624986
TG
51032013-03-27 Terry Guo <terry.guo@arm.com>
5104
5105 * config/arm/arm-cores.def: Added core cortex-r7.
5106 * config/arm/arm-tune.md: Regenerated.
5107 * config/arm/arm-tables.opt: Regenerated.
5108 * doc/invoke.texi: Added entry for core cortex-r7.
5109
0a514f47
WL
51102013-03-27 Walter Lee <walt@tilera.com>
5111
5112 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5113 double-decrement of next_scratch_regno.
5114
9332b0d2
WL
51152013-03-27 Walter Lee <walt@tilera.com>
5116
801d9b2a 5117 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
5118 input operands.
5119 (insn_v1mulus): Ditto.
5120 (insn_v2muls): Ditto.
5121
f54ea5dd
WL
51222013-03-27 Walter Lee <walt@tilera.com>
5123
e594716a 5124 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
5125 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5126
bf60f4ca
WL
51272013-03-27 Walter Lee <walt@tilera.com>
5128
e594716a 5129 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
5130 (*sibcall_value): Ditto.
5131
e3b51eeb
WL
51322013-03-27 Walter Lee <walt@tilera.com>
5133
5134 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5135 (insn_mnz_v8qi): ... this ...
5136 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5137 vector equivalent.
5138 (insn_v<n>mnz): Replaced by ...
5139 (insn_v1mnz): ... this ...
5140 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5141 equivalent.
5142 (insn_mz_<mode>): Replaced by ...
5143 (insn_mz_v8qi): ... this ...
5144 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5145 vector equivalent.
5146 (insn_v<n>mz): Replaced by ...
5147 (insn_v1mz): ... this ...
5148 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5149 equivalent.
5150
4fc7b145
EB
51512013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5152
5153 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5154
6f33817e
RM
51552013-03-26 Roland McGrath <mcgrathr@google.com>
5156
5157 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5158 than fprintf with a non-constant, non-format string.
5159
93a4145b
UB
51602013-03-26 Uros Bizjak <ubizjak@gmail.com>
5161
5162 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5163 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5164 operand 0 predicate.
5165 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5166 attribute. Use general_x64nomem_operand as operand 1 predicate.
5167 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5168 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5169 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5170 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5171 (mov<mode>_insv_1): Remove expander. Merge insn with
5172 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5173 Use general_x64nomem_operand as operand 1 predicate.
5174 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5175 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5176 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5177 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5178 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5179 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5180 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5181 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5182 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5183 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5184 (general_x64nomem_operand): Ditto.
5185
c6a9ed5a 51862013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
5187
5188 * config/rtems.opt: Add -pthread option.
5189
31b0a960
RB
51902013-03-26 Richard Biener <rguenther@suse.de>
5191
93a4145b
UB
5192 * alias.c (find_base_term): Avoid redundant and not used recursion.
5193 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
5194 (true_dependence_1): Compute and pass base terms to base_alias_check.
5195 (write_dependence_p): Likewise.
5196 (may_alias_p): Likewise.
5197
79517551
SN
51982013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5199
5200 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5201 PC-relative load in SI modes and above only.
5202
a76213b9
XQ
52032013-03-26 Xinyu Qi <xyqi@marvell.com>
5204
5205 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
5206 * config/arm/iwmmxt.md (WCGR0): Update.
5207 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 5208
37ff9355
UB
52092013-03-26 Uros Bizjak <ubizjak@gmail.com>
5210
5211 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5212 Use x64 and nox64 isa attributes.
5213
30b0317c
RB
52142013-03-26 Richard Biener <rguenther@suse.de>
5215
5216 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5217 alignment computations and rely on get_object_alignment_1
5218 for the !TYPE_P case.
5219 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5220
cbcdb140
WL
52212013-03-26 Walter Lee <walt@tilera.com>
5222
5223 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5224 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5225
dd884525 52262013-03-25 Jeff Law <law@redhat.com>
be672e08 5227
33159866
UB
5228 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5229 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
5230 wrong version of prior patch.
5231
0051d3ec
WL
52322013-03-25 Walter Lee <walt@tilera.com>
5233
5234 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5235 TILEGX_INSN_SHUFFLEBYTES1.
5236 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5237 shufflebytes1.
5238 (tilegx_builtins): Ditto.
5239 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5240
065a3605
WL
52412013-03-25 Walter Lee <walt@tilera.com>
5242
5243 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
5244 (floatunssisf2): New pattern.
5245 (floatsidf2): New pattern.
5246 (floatunssidf2): New pattern.
065a3605 5247
5b2a3c82
WL
52482013-03-25 Walter Lee <walt@tilera.com>
5249
5250 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5251 tests for constraint J, K, N, P.
5252
192ea533
WL
52532013-03-25 Walter Lee <walt@tilera.com>
5254
5255 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5256 Use indirect/pcrel encoding.
5257 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5258 Ditto.
5259
855e0d0b
SE
52602013-03-25 Steve Ellcey <sellcey@mips.com>
5261
5262 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5263 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5264 * config/mips/mips.c (mips_option_override): Set IMADD default.
5265 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5266 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5267 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5268 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5269 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5270
39e45653
JL
52712013-03-25 Jeff Law <law@redhat.com>
5272
5273 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5274 slightly to avoid creating and folding useless trees. Simplify
5275 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5276
7482c470
UB
52772013-03-25 Uros Bizjak <ubizjak@gmail.com>
5278
5279 * config/i386/i386.md (*zero_extendsidi2): Merge with
5280 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5281 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5282 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5283 targets. Clarify comment.
5284
4a53743e
MJ
52852013-03-25 Martin Jambor <mjambor@suse.cz>
5286
5287 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5288 pass-through jump functions differently.
5289 (ipa_read_jump_function): Likewise. Also use setter functions to set
5290 up jump functions.
5291
162712de
MJ
52922013-03-25 Martin Jambor <mjambor@suse.cz>
5293
5294 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5295 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5296 process it.
5297 (ipa_get_indirect_edge_target): New function.
5298 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5299 ipa_get_indirect_edge_target. Update all callers.
5300 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5301 ipa_get_indirect_edge_target_1 instead of calling
5302 ipa_get_indirect_edge_target.
5303 (create_specialized_node): Pass aggvlas to
5304 ipcp_discover_new_direct_edges.
5305
a5a4c20a
KT
53062013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5307
5308 * config/arm/arm.md (f_sels, f_seld): New types.
5309 (*cmov<mode>): New pattern.
5310 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5311 predicate.
5312
f992b9fc
KT
53132013-03-25 Kai Tietz <ktietz@redhat.com>
5314
5315 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5316 POSIX-printf for mingw-hosted builds.
5317
c16fd676
RB
53182013-03-25 Richard Biener <rguenther@suse.de>
5319
5320 PR middle-end/56694
5321 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5322 must-not-throw stmt location.
5323
5ad29f12
KT
53242013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5325
5326 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5327 Emit load-acquire versions when acq is true.
5328 (arm_emit_store_exclusive): Add rel parameter.
5329 Emit store-release versions when rel is true.
5330 (arm_split_compare_and_swap): Use acquire-release instructions
5331 instead.
5332 of barriers when appropriate.
5333 (arm_split_atomic_op): Likewise.
5334 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5335 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5336 (VUNSPEC_SLX): Likewise.
5337 (VUNSPEC_LDA): Likewise.
5338 (VUNSPEC_STL): Likewise.
5339 * config/arm/sync.md (atomic_load<mode>): New pattern.
5340 (atomic_store<mode>): Likewise.
5341 (arm_load_acquire_exclusive<mode>): Likewise.
5342 (arm_load_acquire_exclusivesi): Likewise.
5343 (arm_load_acquire_exclusivedi): Likewise.
5344 (arm_store_release_exclusive<mode>): Likewise.
5345
03a7dddb
CM
53462013-03-25 Catherine Moore <clm@codesourcery.com>
5347
5348 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5349 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5350 * config/mip/predicates.md (lwsp_swsp_operand,
5351 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5352 sb16_operand, db4_operand, db7_operand, ib3_operand,
5353 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5354 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5355 andi16_operand): New predicates.
5356 * config/mips/mips.md (compression): New attribute.
5357 (enabled): New attribute.
5358 (length): Consider compression in computing length.
5359 (shift_compression): New code attribute.
5360 (*add<mode>3): New operands. Record compression.
5361 (sub<mode>3): Likewise.
5362 (one_cmpl<mode>2): Likewise.
5363 (*and<mode>3): Likewise.
5364 (*ior<mode>3): Likewise.
5365 (unnamed pattern for xor): Likewise.
5366 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5367 (*<optab><mode>3): Likewise.
5368 (*mov<mode>_internal: Likewise.
5369 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5370 (mips_unsigned_immediate_p): New.
5371 (umips_lwsp_swsp_address_p): New.
5372 (m16_based_address_p): New.
5373 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5374 (mips_unsigned_immediate_p): New prototype.
5375 (lwsp_swsp_address_p): New prototype.
5376 (m16_based_address_p): New prototype.
5377 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5378 (mips_signed_immediate_p): New function.
5379 (m16_based_address_p): New function.
5380 (lwsp_swsp_address_p): New function.
5381 (mips_print_operand_punctuation): Recognize short delay slot insns
5382 for microMIPS.add<mode>3"
5383
f35c297f 53842013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 5385
f35c297f
KT
5386 PR target/56720
5387 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5388 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5389
051b9446
RB
53902013-03-25 Richard Biener <rguenther@suse.de>
5391
5392 PR tree-optimization/56689
5393 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5394 any edge.
5395
374001cb
RB
53962013-03-25 Richard Biener <rguenther@suse.de>
5397
5398 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5399 of bitmap.
5400 (memory_references): Likewise.
5401 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5402 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5403 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5404 (gather_mem_refs_in_loops): Fold into ...
5405 (analyze_memory_references): ... this. Move initialization
5406 to tree_ssa_lim_initialize.
5407 (fill_always_executed_in): Rename to ...
5408 (fill_always_executed_in_1): ... this.
5409 (fill_always_executed_in): Move contains_call computation to
5410 this new function from ...
5411 (tree_ssa_lim_initialize): ... here.
5412 (tree_ssa_lim): Call fill_always_executed_in.
5413
57895947
EB
54142013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5415
5416 * postreload.c (reload_combine): Fix code detecting returns.
5417
1e1b18c1
EB
54182013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5419
5420 * function.c (emit_use_return_register_into_block): On cc0 targets,
5421 do not emit the sequence between cc0 setter and user.
5422
9216baf1
KT
54232013-03-25 Kai Tietz <ktietz@redhat.com>
5424
1e1b18c1
EB
5425 * config/i386/predicates.md (local_symbolic_operand): Interpret
5426 dll-imported symbols as none-local.
9216baf1 5427
76421b44
RB
54282013-03-25 Richard Biener <rguenther@suse.de>
5429
5430 * tree-ssa-loop-im.c (struct depend): Remove.
5431 (struct lim_aux_data): Make depends a vec of gimples.
5432 (free_lim_aux_data): Adjust.
5433 (add_dependency): Likewise.
5434 (set_level): Likewise.
5435
d154bfa2
RB
54362013-03-25 Richard Biener <rguenther@suse.de>
5437
5438 PR middle-end/56434
5439 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5440 the pointer returned by calls with ECF_MALLOC set.
5441
2cd9804e
UB
54422013-03-24 Uros Bizjak <ubizjak@gmail.com>
5443
acef5fe0
UB
5444 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5445
54462013-03-24 Uros Bizjak <ubizjak@gmail.com>
5447
5448 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
5449 using MMXMODE mode iterator.
5450 (*move<mode>_internal): Merge with *movv2sf_internal and
5451 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5452
225ccc68
SB
54532013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5454
85c0f02d
SB
5455 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5456 (record_last_mem_set_info): Likewise.
5457
225ccc68
SB
5458 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5459 of XNEWVEC followed by memset.
5460 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5461
b64925dc
SB
54622013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5463
5464 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5465 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5466 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5467 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5468 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5469 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5470 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5471 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5472 BARRIER_P instead of GET_CODE.
5473
b9aaf52e
EB
54742013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5475
5476 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5477 inaccuracy in the probing code.
5478
5479 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5480 (ctrapdi4): Likewise.
5481
66de4d7c
EB
54822013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5483
5484 * calls.c (expand_call): Add missing guard to code handling return
5485 of non-BLKmode structures in MSB.
5486 * function.c (expand_function_end): Likewise.
5487
4f25c8fb
EB
54882013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5489
5490 * combine.c (try_combine): Adjust comment. Do not add the set of
5491 insn #0 if the destination indirectly is set or dies in insn #2.
5492 Tidy up code to distribute a new note.
5493
23b7850d
UB
54942013-03-22 Uros Bizjak <ubizjak@gmail.com>
5495
5496 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5497 also for alternatives 16 and 17.
5498
bed852cf
UB
54992013-03-22 Uros Bizjak <ubizjak@gmail.com>
5500
5501 * config/i386/sse.md (*mov<mode>_internal): Merge with
5502 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5503 Emit insn template depending on type attribute. Use
5504 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5505 movd instead of movq mnemonic for interunit moves. Rewrite mode
5506 attribute calculation. Remove unit attribute calculation.
5507 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5508 Set prefix_data16 attribute for DImode ssemov types.
5509 Use Ym instead of y for SSE-MMX conversion alternatives.
5510 Reorder operand constraints.
5511
1e8a7937
SB
55122013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5513
5514 * df.h (df_insn_delete): Adjust prototype.
5515 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5516 and let it decide whether mark the basic block dirty.
5517 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5518 * df-scan.c (df_insn_info_delete): New helper function, split
5519 off from df_insn_delete.
5520 (df_scan_free_bb_info): Use it.
5521 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5522 Likewise.
5523 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5524 that the insn is actually an insn and it has a non-NULL basic block.
5525 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5526
e14d094c
RB
55272013-03-22 Richard Biener <rguenther@suse.de>
5528
5529 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5530 dep_ref members.
5531 (mem_ref_alloc): Do not allocate them.
5532 (refs_independent_p): Do not query or maintain a cache.
5533
e9cf7316
RB
55342013-03-22 Richard Biener <rguenther@suse.de>
5535
5536 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5537 (gather_mem_refs_in_loops): Do not compute it.
5538 (analyze_memory_references): Do not allocate it.
5539 (tree_ssa_lim_finalize): Do not free it.
5540 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5541
f046e81b
RB
55422013-03-22 Richard Biener <rguenther@suse.de>
5543
5544 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 5545
a05c0ddf
IB
55462013-03-22 Ian Bolton <ian.bolton@arm.com>
5547
5548 * config/aarch64/aarch64.c (aarch64_print_operand): New
5549 format specifier for printing a constant in hex.
5550 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5551 format specifier for printing second operand.
5552
c00217fc
RB
55532013-03-22 Richard Biener <rguenther@suse.de>
5554
5555 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5556 bitmaps.
5557 (gather_mem_refs_in_loops): Perform store accumulation here.
5558 (create_vop_ref_mapping_loop): Remove.
5559 (create_vop_ref_mapping): Likewise.
5560 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 5561 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
5562 (record_indep_loop): Remove.
5563 (record_dep_loop): New function.
5564 (ref_indep_loop_p_1): Adjust to only walk over references
5565 in the loop, not its subloops.
5566 (ref_indep_loop_p): Rename to ...
5567 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5568 maintaining a more fine-grained cache.
5569 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5570 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5571
15d19bf8
RB
55722013-03-22 Richard Biener <rguenther@suse.de>
5573
5574 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5575 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5576 aggregate mem_ref_loc.
5577 (free_mem_ref_locs): Inline into ...
5578 (memref_free): ... this and adjust.
5579 (mem_ref_alloc): Adjust.
5580 (mem_ref_locs_alloc): Remove.
5581 (record_mem_ref_loc): Adjust.
5582 (get_all_locs_in_loop): Rewrite into ...
5583 (for_all_locs_in_loop): ... this iterator.
5584 (rewrite_mem_ref_loc): New functor.
5585 (rewrite_mem_refs): Use for_all_locs_in_loop.
5586 (sm_set_flag_if_changed): New functor.
5587 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5588 (ref_always_accessed): New functor.
5589 (ref_always_accessed_p): Use for_all_locs_in_loop.
5590
6f37411d
MG
55912013-03-21 Marc Glisse <marc.glisse@inria.fr>
5592
5593 * tree-pass.h (PROP_gimple_lvec): New.
5594 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5595 (init_optimization_passes): Move pass_lower_vector.
5596 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5597 PROP_gimple_lvec.
5598 (pass_lower_vector): Provide PROP_gimple_lvec.
5599 (pass_lower_vector_ssa): Likewise.
5600 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5601
511ef689
MW
56022013-03-21 Mark Wielaard <mjw@redhat.com>
5603
5604 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5605
cc1df30b
UB
56062013-03-21 Uros Bizjak <ubizjak@gmail.com>
5607
5608 * config/i386/i386.md (*movdi_internal): Disparage slightly
5609 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5610 conversion alternatives.
5611
c845cfe1
JJ
56122013-03-21 Jakub Jelinek <jakub@redhat.com>
5613
37e99116
JJ
5614 PR middle-end/48087
5615 * diagnostic.def (DK_WERROR): New kind.
5616 * diagnostic.h (werrorcount): Define.
5617 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5618 promoted to DK_ERROR, increment DK_WERROR counter instead of
5619 DK_ERROR counter.
5620 * toplev.c (toplev_main): Call print_ignored_options even if
5621 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5622 even if just werrorcount is non-zero.
5623
c845cfe1
JJ
5624 PR debug/55608
5625 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5626 on failure.
5627 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5628 (string_cst_pool_decl): New function.
5629 (optimize_one_addr_into_implicit_ptr): New function.
5630 (resolve_addr_in_expr): Optimize DWARF location expression
5631 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5632 which doesn't live in memory, but has DW_AT_location or
5633 DW_AT_const_value, or refers to a string literal, into
5634 DW_OP_GNU_implicit_pointer.
5635 (optimize_location_into_implicit_ptr): New function.
5636 (resolve_addr): If removing DW_AT_location of a variable because
5637 it was DW_OP_addr of address of the variable, but the variable doesn't
5638 live in memory, try to emit const value attribute for the initializer.
5639
08e0cda6
MG
56402013-03-21 Marc Glisse <marc.glisse@inria.fr>
5641
5642 * tree.h (VECTOR_TYPE_P): New macro.
5643 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5644 TYPE_MODE): Use it.
5645 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5646 VEC_COND_EXPR cannot be lvalues.
5647 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5648
d08633b4
MG
56492013-03-21 Marc Glisse <marc.glisse@inria.fr>
5650
5651 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5652 Restrict the transformation to equal modes.
5653
e6647190
RB
56542013-03-21 Richard Biener <rguenther@suse.de>
5655
5656 PR tree-optimization/39326
5657 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5658 (MEM_ANALYZABLE): Adjust.
5659 (record_mem_ref_loc): Move bitmap ops ...
5660 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5661 unanalyzable refs, do not record locations for it.
5662 (analyze_memory_references): Allocate ref zero as shared
5663 unanalyzable ref.
5664 (refs_independent_p): Do not test for unanalyzed mems here.
5665 (ref_indep_loop_p_1): Special-case disambiguation against
5666 the unanalyzed ref.
cc1df30b 5667 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 5668
65074f54
CL
56692013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5670
5671 * config/arm/arm-protos.h (tune_params): Add
5672 prefer_neon_for_64bits field.
5673 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5674 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5675 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5676 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5677 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5678 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5679 (arm_option_override): Handle -mneon-for-64bits new option.
5680 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5681 (prefer_neon_for_64bits): Declare new variable.
5682 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 5683 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
5684 (arch_enabled): Handle new arch types. Remove support for onlya8
5685 and nota8.
5686 (one_cmpldi2): Use new arch names.
bc5faa5b 5687 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
5688 * config/arm/arm.opt (mneon-for-64bits): Add option.
5689 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5690 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5691 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5692 of onlya8.
5693 * doc/invoke.texi (-mneon-for-64bits): Document.
5694
5a2d2a79
RB
56952013-03-21 Richard Biener <rguenther@suse.de>
5696
5697 PR tree-optimization/39326
5698 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5699 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 5700 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 5701
5abe1e05
RB
57022013-03-21 Richard Biener <rguenther@suse.de>
5703
5704 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5705 (vect_insert_into_interleaving_chain): Likewise.
5706 (vect_drs_dependent_in_basic_block): Inline ...
5707 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5708 split out from ...
5709 (vect_analyze_data_ref_dependence): ... here. Simplify.
5710 (vect_check_interleaving): Simplify.
5711 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5712 (vect_slp_analyze_data_ref_dependences): ... this new function.
5713 (dr_group_sort_cmp): New function.
5714 (vect_analyze_data_ref_accesses): Compute data-reference groups
5715 here instead of in vect_analyze_data_ref_dependence. Use
5716 a more efficient algorithm.
5717 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5718 vect_slp_analyze_data_ref_dependences. Call
5719 vect_analyze_data_ref_accesses earlier.
5720 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5721 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5722 (vect_slp_analyze_data_ref_dependences): New prototype.
5723
cad1735b
RB
57242013-03-21 Richard Biener <rguenther@suse.de>
5725
5726 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5727 ref is stored in the loop.
5728 (find_refs_for_sm): Walk only over all stores.
5729 (store_motion_loop): Allocate from lim_bitmap_obstack.
5730 (store_motion): Likewise.
5731
141310ef
RB
57322013-03-21 Richard Biener <rguenther@suse.de>
5733
5734 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5735 Update virtual SSA form.
5736
5022315a
RO
57372013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5738
5739 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5740 * configure: Regenerate.
5741 * config.in: Regenerate.
5742 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5743 if !HAVE_LD_EH_FRAME_CIEV3.
5744
50d4421c
RB
57452013-03-21 Richard Biener <rguenther@suse.de>
5746
5747 * tree-cfg.c (verify_expr_no_block): New function.
5748 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5749 nor DECL_VALUE_EXPR have locations with associated blocks.
5750 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5751 (clear_unused_block_pointer): Remove code dealing with
5752 blocks in DECL_DEBUG_EXPR locations.
5753
839b422f
RB
57542013-03-21 Richard Biener <rguenther@suse.de>
5755
5756 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5757 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5758 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5759 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5760 instead of DECL_DEBUG_EXPR_IS_FROM.
5761 * gimplify.c (gimplify_modify_expr): Likewise.
5762 * tree-cfg.c (verify_expr_location_1): Likewise.
5763 * tree-complex.c (create_one_component_var): Likewise.
5764 * tree-sra.c (create_access_replacement): Likewise.
5765 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5766 (clear_unused_block_pointer): Likewise.
5767 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5768 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5769 * var-tracking.c (var_debug_decl): Likewise.
5770 (track_expr_p): Likewise.
5771 * tree-inline.c (add_local_variables): Likewise. Set
5772 DECL_HAS_DEBUG_EXPR_P after copying it.
5773 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5774 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5775
fe04878d
UB
57762013-03-21 Uros Bizjak <ubizjak@gmail.com>
5777
5778 PR bootstrap/56656
5779 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5780 * configure: Regenerate.
5781 * config.in: Regenerate.
5782 * config/i386/i386.md (*movdf_internal): Use
5783 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5784 movd instead of movq mnemonic for interunit moves.
5785 (*movdi_internal): Ditto.
5786
bd059b26 57872013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
5788
5789 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5790 (abd<mode>_3): New pattern.
5791 (aba<mode>_3): New pattern.
5792 (fabd<mode>_3): New pattern.
5793
bd059b26 57942013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
5795
5796 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5797 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5798 occurrence of REGISTER_PREFIX as its empty string.
5799
4f1f78b9
JL
58002013-03-20 Jeff Law <law@redhat.com>
5801
5802 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5803 addititional equivalences for equality comparisons between an SSA_NAME
5804 and a constant where the SSA_NAME was set from a widening conversion.
5805
327a1118
WL
58062013-03-20 Walter Lee <walt@tilera.com>
5807
5808 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5809
813e0036
UB
58102013-03-20 Uros Bizjak <ubizjak@gmail.com>
5811
5812 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5813 depending on type attribute.
5814 (*movti_internal): Ditto.
5815 (*movtf_internal): Ditto.
5816 (*movxf_internal): Ditto.
5817 (*movdf_internal): Ditto.
5818 (*movsf_internal): Ditto.
5819
7cf34aae
UB
58202013-03-20 Uros Bizjak <ubizjak@gmail.com>
5821
5822 * config/i386/i386.md (*movti_internal): Set prefix attribute to
5823 maybe_vex for sselog1 and ssemov types.
5824 (*movdi_internal): Reorder operand constraints.
5825 (*movsi_internal): Ditto. Set prefix attribute to
5826 maybe_vex for sselog1 and ssemov types.
5827 (*movtf_internal): Set prefix attribute to maybe_vex
5828 for sselog1 and ssemov types.
5829 (*movdf_internal): Ditto. Set prefix_data16 attribute for
5830 DImode ssemov types. Reorder operand constraints.
5831 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
5832 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
5833 attribute for SImode ssemov types. Reorder operand constraints.
5834
19321415
MJ
58352013-03-20 Martin Jambor <mjambor@suse.cz>
5836
5837 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5838 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5839
c6d5ff83
MM
58402013-03-20 Pat Haugen <pthaugen@us.ibm.com>
5841
5842 * config/rs6000/predicates.md (indexed_address, update_address_mem
5843 update_indexed_address_mem): New predicates.
5844 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5845 attribute for load/store instructions.
5846 * config/rs6000/dfp.md (movsd_store): Likewise.
5847 (movsd_load): Likewise.
5848 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5849 (unnamed HI->DI extend define_insn): Likewise.
5850 (unnamed SI->DI extend define_insn): Likewise.
5851 (unnamed QI->SI extend define_insn): Likewise.
5852 (unnamed QI->HI extend define_insn): Likewise.
5853 (unnamed HI->SI extend define_insn): Likewise.
5854 (unnamed HI->SI extend define_insn): Likewise.
5855 (extendsfdf2_fpr): Likewise.
5856 (movsi_internal1): Likewise.
5857 (movsi_internal1_single): Likewise.
5858 (movhi_internal): Likewise.
5859 (movqi_internal): Likewise.
5860 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5861 attribute for load/store instructions.
5862 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5863 instructions.
5864 (mov<mode>_softfloat): Likewise.
5865 (mov<mode>_hardfloat32): Likewise.
5866 (mov<mode>_hardfloat64): Likewise.
5867 (mov<mode>_softfloat64): Likewise.
5868 (movdi_internal32): Likewise.
5869 (movdi_internal64): Likewise.
5870 (probe_stack_<mode>): Likewise.
5871
58722013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5873
5874 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5875 floating point, and decimal floating point to reload iterator.
5876
5877 * config/rs6000/constraints.md (wl constraint): New constraints to
5878 return FLOAT_REGS if certain options are used to reduce the number
5879 of separate patterns that exist in the file.
5880 (wx constraint): Likewise.
5881 (wz constraint): Likewise.
5882
5883 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5884 -mdebug=reg, print wg, wl, wx, and wz constraints.
5885 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5886 Initialize the reload functions for 64-bit binary/decimal floating
5887 point types.
5888 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5889 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5890 create the buffer on the stack to overcome not having a 32-bit
5891 load and store.
5892 (rs6000_emit_move): Likewise.
5893 (rs6000_secondary_memory_needed_rtx): Likewise.
5894 (rs6000_alloc_sdmode_stack_slot): Likewise.
5895 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5896 via xxlxor, just like DFmode 0.0.
5897
5898 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5899 define as 1 if we are running on a power7 or newer.
5900 (enum r6000_reg_class_enum): Add new constraints.
5901
5902 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5903 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5904 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 5905 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
5906 (movsd splitter): Likewise.
5907 (movsd_hardfloat): Likewise.
5908 (movsd_softfloat): Likewise.
5909
5910 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5911 binary and decimal floating point moves.
5912 (fmove_ok): New attributes to combine binary and decimal floating
5913 point moves, and to combine power6x (mfpgpr) moves along normal
5914 floating moves.
5915 (real_value_to_target): Likewise.
5916 (f32_lr): Likewise.
5917 (f32_lm): Likewise.
5918 (f32_li): Likewise.
5919 (f32_sr): Likewise.
5920 (f32_sm): Likewise.
5921 (f32_si): Likewise.
5922 (movsf): Combine binary and decimal floating point moves. Combine
5923 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 5924 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
5925 (mov<mode> for SFmode/SDmode); Likewise.
5926 (SFmode/SDmode splitters): Likewise.
5927 (movsf_hardfloat): Likewise.
5928 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5929 (movsf_softfloat): Likewise.
5930 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5931
5932 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5933 wx and wz constraints.
5934
5935 * config/rs6000/constraints.md (wg constraint): New constraint to
5936 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5937
5938 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5939 constraint.
5940
5941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5942 -mdebug=reg, print wg, wl, wx, and wz constraints.
5943 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5944 Initialize the reload functions for 64-bit binary/decimal floating
5945 point types.
5946 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5947 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5948 create the buffer on the stack to overcome not having a 32-bit
5949 load and store.
5950 (rs6000_emit_move): Likewise.
5951 (rs6000_secondary_memory_needed_rtx): Likewise.
5952 (rs6000_alloc_sdmode_stack_slot): Likewise.
5953 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5954 via xxlxor, just like DFmode 0.0.
5955
c6d5ff83
MM
5956 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5957 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5958 with other moves by using conditional constraits (wg). Use LFIWZX
5959 and STFIWX for loading SDmode on power7.
5960 (movdd splitters): Likewise.
5961 (movdd_hardfloat32): Likewise.
5962 (movdd_softfloat32): Likewise.
5963 (movdd_hardfloat64_mfpgpr): Likewise.
5964 (movdd_hardfloat64): Likewise.
5965 (movdd_softfloat64): Likewise.
5966
5967 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5968 64-bit binary and decimal floating point moves.
5969 (FMOVE64X): Likewise.
5970 (movdf): Combine 64-bit binary and decimal floating point moves.
5971 Combine power6x (mfpgpr) moves with other moves by using
5972 conditional constraits (wg).
5973 (mov<mode> for DFmode/DDmode): Likewise.
5974 (DFmode/DDmode splitters): Likewise.
5975 (movdf_hardfloat32): Likewise.
5976 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5977 (movdf_softfloat32): Likewise.
5978 (movdf_hardfloat64_mfpgpr): Likewise.
5979 (movdf_hardfloat64): Likewise.
5980 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5981 (movdf_softfloat64): Likewise.
5982 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5983 (reload_<mode>_load): Move to later in the file so they aren't in
5984 the middle of the floating point move insns.
5985 (reload_<mode>_store): Likewise.
5986
5987 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5988 constraint.
5989
5990 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5991 constraint if -mdebug=reg.
bd059b26
UB
5992 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5993 Enable using dd reload support if needed.
c6d5ff83
MM
5994
5995 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5996 binary and decimal floating point moves in rs6000.md.
5997 (movtd_internal): Likewise.
5998
5999 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6000 decimal floating point moves.
6001 (movtf): Likewise.
6002 (movtf_internal): Likewise.
6003 (mov<mode>_internal, TDmode/TFmode): Likewise.
6004 (movtf_softfloat): Likewise.
6005 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6006
6007 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6008 movdi_internal64, using wg constraint for move direct operations.
6009 (movdi_internal64): Likewise.
6010
6011 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6012 MODES_TIEABLE_P for selected modes. Print the numerical value of
6013 the various virtual registers. Use GPR/FPR first/last values,
6014 instead of hard coding the register numbers. Print which modes
6015 have reload functions registered.
bd059b26
UB
6016 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6017 settings before/after setting cpu, target and subtarget settings.
6018 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6019 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
6020 (rs6000_secondary_reload_fail): Likewise.
6021 (rs6000_secondary_reload_inner): Likewise.
6022
6023 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6024 macros for first/last GPR and FPR registers.
6025 (LAST_GPR_REGNO): Likewise.
6026 (FIRST_FPR_REGNO): Likewise.
6027 (LAST_FPR_REGNO): Likewise.
6028
6029 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6030 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6031 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6032 (vcond<mode><mode>): Likewise.
6033 (vcondu<mode><mode>): Likewise.
6034 (vector_gtu<mode>): Likewise.
6035 (vector_gte<mode>): Likewise.
6036 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 6037 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
6038 (ior<mode>3): Likewise.
6039 (and<mode>3): Likewise.
6040 (one_cmpl<mode>2): Likewise.
6041 (nor<mode>3): Likewise.
6042 (andc<mode>3): Likewise.
6043
6044 * config/rs6000/constraints.md (wt constraint): New constraint
6045 that returns VSX_REGS if TImode is allowed in VSX registers.
6046
6047 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6048 constant under VSX.
6049
6050 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6051 similar to TImode, but it is restricted to being in the GPRs.
6052
6053 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6054 TImode to occupy a single VSX register.
6055
6056 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6057 -mvsx-timode for power7/power8.
6058 (power7 cpu): Likewise.
6059 (power8 cpu): Likewise.
6060
6061 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6062 sure that TFmode/TDmode take up two registers if they are ever
6063 allowed in the upper VSX registers.
6064 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6065 registers.
6066 (rs6000_init_hard_regno_mode_ok): Likewise.
6067 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6068 constraint. Print if LRA is turned on.
6069 (rs6000_option_override_internal): Give an error if -mvsx-timode
6070 and VSX is not enabled.
6071 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6072 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6073 to reg+offset addressing. Use PTImode when checking offset
6074 addresses for validity.
6075 (reg_offset_addressing_ok_p): Likewise.
6076 (rs6000_legitimate_offset_address_p): Likewise.
6077 (rs6000_legitimize_address): Likewise.
6078 (rs6000_legitimize_reload_address): Likewise.
6079 (rs6000_legitimate_address_p): Likewise.
6080 (rs6000_eliminate_indexed_memrefs): Likewise.
6081 (rs6000_emit_move): Likewise.
6082 (rs6000_secondary_reload): Likewise.
6083 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6084 reloads to fpr registers to continue to use reg+offset addressing,
6085 but 64-bit reloads to altivec registers need reg+reg addressing.
6086 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6087 it. Treat LO_SUM like a PLUS operation.
6088 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 6089 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
6090 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6091 registers to share a register with a smaller sized type, since VSX
6092 puts scalars in the upper 64-bits.
6093 (print_operand): Add support for PTImode.
6094 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6095 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6096 registers, but don't have arithmetic support.
6097 (rs6000_memory_move_cost): Add test for VSX.
6098 (rs6000_opt_masks): Add -mvsx-timode.
6099
6100 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6101 for TImode.
6102 (VSs): Likewise.
6103 (VSr): Use wt constraint for TImode.
6104 (VSv): Drop TImode support.
6105 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6106 (vsx_movti_64bit): Likewise.
6107 (vsx_movti_32bit): Likewise.
6108 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6109 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6110 one '?' on the appropriate output constraint. Do not allow TImode
6111 logical operations on 32-bit systems.
6112 (vsx_ior<mode>3): Likewise.
6113 (vsx_xor<mode>3): Likewise.
6114 (vsx_one_cmpl<mode>2): Likewise.
6115 (vsx_nor<mode>3): Likewise.
6116 (vsx_andc<mode>3): Likewise.
6117 (vsx_concat_<mode>): Likewise.
6118 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6119
6120 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6121 OPTION_MASK_VSX_TIMODE.
6122 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6123 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6124
6125 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6126 (TI2 iterator): New iterator for TImode, PTImode.
6127 (wd mode attribute): Add values for vector types.
bd059b26
UB
6128 (movti_string): Replace TI move operations with operations for TImode
6129 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
6130 (mov<mode>_string, TImode/PTImode): Likewise.
6131 (movti_ppc64): Likewise.
6132 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6133 (TI mode splitters): Likewise.
6134
6135 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6136 constraint.
6137
1fc5eced
MG
61382013-03-20 Marc Glisse <marc.glisse@inria.fr>
6139
6140 PR tree-optimization/56355
6141 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6142 Also handle integers with undefined overflow.
6143
22c4c869
CM
61442013-03-20 Catherine Moore <clm@codesourcery.com>
6145 Maciej W. Rozycki <macro@codesourcery.com>
6146 Tom de Vries <tom@codesourcery.com>
6147 Nathan Sidwell <nathan@codesourcery.com>
6148 Iain Sandoe <iain@codesourcery.com>
6149 Nathan Froyd <froydnj@codesourcery.com>
6150 Chao-ying Fu <fu@mips.com>
6151
6152 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 6153 Document new function attributes.
22c4c869
CM
6154 * doc/invoke.texi (minterlink-compressed, mmicromips,
6155 m14k, m14ke, m14kec): Document new options.
6156 (minterlink-mips16): Update documentation.
6157 * doc/md.texi (ZC, ZD): Document new constraints.
6158 * configure.ac (gcc_cv_as_micromips): Check if linker
6159 supports the .set micromips directive.
6160 * configure: Regenerate.
6161 * config.in: Regenerate.
6162 * config/mips/mips-tables.opt: Regenerate.
6163 * config/mips/micromips.md: New file.
6164 * constraints.md (ZC, ZD): New constraints.
6165 * config/mips/predicates.md (movep_src_register): New predicate.
6166 (movep_src_operand): New predicate.
6167 (non_volatile_mem_operand): New predicate.
6168 * config/mips/mips.md (multimem): New type.
6169 (length): Differentiate between 17-bit and 18-bit branch offsets.
6170 (MOVEP1, MOVEP2): New mode iterator.
33159866 6171 (mov_<load>l): Use ZC constraint.
22c4c869
CM
6172 (mov_<load>r): Likewise.
6173 (mov_<store>l): Likewise.
6174 (mov_<store>r): Likewise.
6175 (*branch_equality<mode>_inverted): Add microMIPS support.
6176 (*branch_equality<mode>): Likewise.
6177 (*jump_absolute): Likewise.
6178 (indirect_jump_<mode>): Likewise.
6179 (tablejump_<mode>): Likewise.
6180 (<optab>_internal): Likewise.
6181 (sibcall_internal): Likewise.
6182 (sibcall_value_internal): Likewise.
6183 (prefetch): Use constraint ZD.
6184 * config/mips/mips.opt (minterlink-compressed): New option.
6185 (minterlink-mips16): Now an alias for minterlink-compressed.
6186 (mmicromips): New option.
6187 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6188 (compare_and_swap_12): Likewise.
6189 (sync_add<mode>): Likewise.
6190 (sync_<optab>_12): Likewise.
6191 (sync_old_<optab>_12): Likewise.
6192 (sync_new_<optab>_12): Likewise.
6193 (sync_nand_12): Likewise.
6194 (sync_old_nand_12): Likewise.
6195 (sync_new_nand_12): Likewise.
6196 (sync_sub<mode>): Likewise.
6197 (sync_old_add<mode>): Likewise.
6198 (sync_old_sub<mode>): Likewise.
6199 (sync_new_add<mode>): Likewise.
6200 (sync_new_sub<mode>): Likewise.
6201 (sync_<optab><mode>): Likewise.
6202 (sync_old_<optab><mode>): Likewise.
6203 (sync_new_<optab><mode>): Likewise.
6204 (sync_nand<mode>): Likewise.
6205 (sync_old_nand<mode>): Likewise.
6206 (sync_new_nand<mode>): Likewise.
6207 (sync_lock_test_and_set<mode>): Likewise.
6208 (test_and_set_12): Likewise.
6209 (atomic_compare_and_swap<mode>): Likewise.
6210 (atomic_exchange<mode>_llsc): Likewise.
6211 (atomic_fetch_add<mode>_llsc): Likewise.
6212 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6213 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6214 (umips_save_restore_pattern_p): Likewise.
6215 (umips_load_store_pair_p): Likewise.
6216 (umips_output_load_store_pair): Likewise.
6217 (umips_movep_target_p): Likewise.
6218 (umips_12bit_offset_address_p): Likewise.
6219 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6220 (mips_base_mips16): Rename this...
6221 (mips_base_compression_flags): ...to this. Update all uses.
6222 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6223 (mips_mips16_decl_p): Delete.
6224 (mips_nomips16_decl_p): Delete.
33159866 6225 (mips_get_compress_on_flags): New function.
22c4c869
CM
6226 (mips_get_compress_off_flags): New function.
6227 (mips_get_compress_mode): New function.
6228 (mips_get_compress_on_name): New function.
6229 (mips_get_compress_off_name): New function.
6230 (mips_insert_attributes): Support multiple compression types.
6231 (mips_merge_decl_attributes): Likewise.
6232 (umips_12bit_offset_address_p): New function.
6233 (mips_start_function_definition): Emit .set micromips directive.
6234 (mips_call_may_need_jalx_p): New function.
6235 (mips_function_ok_for_sibcall): Add microMIPS support.
6236 (mips_print_operand_punctuation): Support short delay slots and
6237 compact jumps.
6238 (umips_swm_mask, umips_swm_encoding): New.
6239 (umips_build_save_restore): New function.
6240 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6241 (was_mips16_p): Remove.
6242 (old_compression_mode): New.
6243 (mips_set_compression_mode): New function.
6244 (mips_set_current_function): Add microMIPS support.
6245 (mips_option_override): Likewise.
6246 (umips_save_restore_pattern_p): New function.
6247 (umips_output_save_restore): New function.
6248 (umips_load_store_pair_p_1): New function.
6249 (umips_load_store_pair_p): New function.
6250 (umips_output_load_store_pair_1): New function.
6251 (umips_output_load_store_pair): New function.
6252 (umips_movep_target_p) New function.
6253 (mips_prepare_pch_save): Add microMIPS support.
6254 * config/mips/mips.h (TARGET_COMPRESSION): New.
6255 (TARGET_CPU_CPP_BUILTINS): Update macro
6256 to use new compression flags and to support microMIPS.
6257 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6258 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6259 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6260 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6261 (ASM_SPEC): Support mmicromips and mno-micromips.
6262 (M16STORE_REG_P): New macro.
6263 (MIPS_CALL): Support TARGET_MICROMIPS.
6264 (MICROMIPS_J): New macro.
6265 (mips_base_mips16): Rename this...
6266 (mips_base_compression_flags): ...to this.
6267 (UMIPS_12BIT_OFFSET_P): New macro.
6268 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6269 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
62702013-03-20 Richard Biener <rguenther@suse.de>
6271
6272 PR tree-optimization/56661
6273 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6274 the result does not have to be distinct.
6275
54714c68
RB
62762013-03-20 Richard Biener <rguenther@suse.de>
6277
6278 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6279 remap_gimple_op_r.
6280
cca1130d
BS
62812013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6282 Steven Bosscher <steven@gcc.gnu.org>
6283
6284 PR rtl-optimization/56605
6285 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6286
2a930377
UB
62872013-03-20 Uros Bizjak <ubizjak@gmail.com>
6288
6289 PR bootstrap/56656
6290 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6291 that require movd instead of movq.
6292
d6d305fe
RB
62932013-03-20 Richard Biener <rguenther@suse.de>
6294
6295 * tree-ssa-structalias.c (struct variable_info): Add pointer
6296 to the first field of an aggregate with sub-vars. Make
6297 this and the pointer to the next subfield its ID.
6298 (vi_next): New function.
6299 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6300 storedanything_id, integer_id): Increment by one.
6301 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6302 get_call_clobber_vi): Adjust.
6303 (solution_set_expand): Simplify and speedup.
6304 (solution_set_add): Inline into ...
6305 (set_union_with_increment): ... this. Adjust accordingly.
6306 (do_sd_constraint): Likewise.
6307 (do_ds_constraint): Likewise.
6308 (do_complex_constraint): Simplify.
6309 (build_pred_graph): Adjust.
6310 (solve_graph): Likewise. Simplify and speedup.
6311 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6312 get_constraint_for_component_ref, get_constraint_for_1,
6313 first_vi_for_offset, first_or_preceding_vi_for_offset,
6314 create_function_info_for, create_variable_info_for_1,
6315 create_variable_info_for, intra_create_variable_infos): Adjust.
6316 (init_base_vars): Push NULL for ID zero.
6317 (compute_points_to_sets): Adjust.
6318
a271b42d
RB
63192013-03-20 Richard Biener <rguenther@suse.de>
6320
6321 * cfgloop.c (verify_loop_structure): Streamline and avoid
6322 ICEing on corrupt loop tree.
6323 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6324 loop tree.
6325
ebd65954
RB
63262013-03-20 Richard Biener <rguenther@suse.de>
6327
6328 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6329 check whether an SSA update is needed.
6330
4547b7ee
RS
63312013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6332
6333 * config/mips/constraints.md (T): Rename to...
6334 (Yf): ...this.
6335 (U): Rename to...
6336 (Yd): ...this.
6337 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6338 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6339
0b8cdc58
IB
63402013-03-19 Ian Bolton <ian.bolton@arm.com>
6341
6342 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6343 (*subsi3_carryin_uxtw): Likewise.
6344
5977a10d
IB
63452013-03-19 Ian Bolton <ian.bolton@arm.com>
6346
6347 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6348 (*rorsi3_insn_uxtw): Likewise.
6349
bd83ff2c
IB
63502013-03-19 Ian Bolton <ian.bolton@arm.com>
6351
6352 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6353 (*extrsi5_insn_uxtw): Likewise.
6354
ba65123c
RB
63552013-03-19 Richard Biener <rguenther@suse.de>
6356
6357 PR tree-optimization/56273
6358 * passes.c (init_optimization_passes): Move second VRP after DOM.
6359
2eac0476
UB
63602013-03-19 Uros Bizjak <ubizjak@gmail.com>
6361
6362 * config/i386/i386.md (*movti_internal): Merge from
6363 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6364 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6365 nox64 isa attributes.
6366
6e55eda7
RB
63672013-03-18 Richard Biener <rguenther@suse.de>
6368
6369 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6370 (unite): Likewise.
6371 (merge_node_constraints): Likewise.
6372 (build_succ_graph): Likewise.
6373 (valid_graph_edge): Inline into single caller.
6374 (unify_nodes): Likewise. Use bitmap_set_bit return value
6375 and cache varinfo.
6376 (scc_visit): Fix formatting and variable use.
6377 (do_sd_constraint): Use gcc_checking_assert.
6378 (do_ds_constraint): Likewise.
6379 (do_complex_constraint): Likewise.
6380 (condense_visit): Likewise. Cleanup.
6381 (dump_pred_graph): New function.
6382 (perform_var_substitution): Dump the pred-graph before
6383 variable substitution.
6384 (find_equivalent_node): Use gcc_checking_assert.
6385 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6386
4bdd44c4
RB
63872013-03-18 Richard Biener <rguenther@suse.de>
6388
6389 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6390 Remove cond_expr_stmt_list argument and do not gimplify the
6391 built expression.
6392 (vect_loop_versioning): Adjust.
6393 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6394 Cleanup to use less temporaries.
6395 (vect_create_data_ref_ptr): Cleanup.
6396
38c56a5b
JJ
63972013-03-18 Jakub Jelinek <jakub@redhat.com>
6398
6399 PR tree-optimization/56635
6400 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6401 require types_compatible_p types.
6402
20b2e6a0
NC
64032013-03-18 Nick Clifton <nickc@redhat.com>
6404
a6178a25
NC
6405 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6406 spurious backslash.
6407
20b2e6a0
NC
6408 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6409 Add missing line to comment describing function.
6410
92608d0e
RB
64112013-03-18 Richard Biener <rguenther@suse.de>
6412
6413 PR tree-optimization/56210
6414 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6415 Handle string / character search functions.
6416 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6417
31348d52
RB
64182013-03-18 Richard Biener <rguenther@suse.de>
6419
6420 PR middle-end/56483
6421 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6422 and implement properly.
6423 * gimple.h (gimple_cond_single_var_p): Remove.
6424
fcac74a1
RB
64252013-03-18 Richard Biener <rguenther@suse.de>
6426
6427 * tree-data-ref.h (find_data_references_in_loop): Declare.
6428 * tree-data-ref.c (get_references_in_stmt): Use a stack
6429 vector pre-allocated in the callers.
6430 (find_data_references_in_stmt): Adjust.
6431 (graphite_find_data_references_in_stmt): Likewise.
6432 (create_rdg_vertices): Likewise.
6433 (find_data_references_in_loop): Export.
6434 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6435 Compute dependences here...
6436 (vect_analyze_data_refs): ...not here. When we encounter
6437 a non-vectorizable data reference in basic-block vectorization
6438 truncate the data reference vector. Do not bother to
6439 fixup data-dependence information for gather loads.
6440 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6441 of data references, as reported.
6442
0d5a1b56
RB
64432013-03-18 Richard Biener <rguenther@suse.de>
6444
6445 PR tree-optimization/3713
6446 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6447 has_constants and expr.
6448 (stmt_has_constants): Properly valueize SSA names when deciding
6449 whether the stmt has constants.
6450
789c34e3
RB
64512013-03-18 Richard Biener <rguenther@suse.de>
6452
6453 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6454 whole function when there is nothing to do.
6455 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6456 * tree-vectorizer.c (vectorize_loops): Update virtual and
6457 loop-closed SSA once.
6458 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6459
076b4605
RB
64602013-03-18 Richard Biener <rguenther@suse.de>
6461
6462 PR middle-end/56113
6463 * domwalk.c (bb_postorder): New global static.
6464 (cmp_bb_postorder): New function.
6465 (walk_dominator_tree): Replace scheme imposing an order for
6466 visiting dominator sons by one sorting them at the time they
6467 are pushed on the stack.
6468
bdb01696
RB
64692013-03-18 Richard Biener <rguenther@suse.de>
6470
6471 PR tree-optimization/39326
6472 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6473 (struct mem_ref): Replace mem member with ao_ref typed member.
6474 (MEM_ANALYZABLE): Adjust.
6475 (memref_eq): Likewise.
6476 (mem_ref_alloc): Likewise.
6477 (gather_mem_refs_stmt): Likewise.
6478 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6479 (execute_sm_if_changed_flag_set): Adjust.
6480 (execute_sm): Likewise.
6481 (ref_always_accessed_p): Likewise.
6482 (refs_independent_p): Likewise.
6483 (can_sm_ref_p): Likewise.
6484
12d2dc5e
JJ
64852013-03-18 Jakub Jelinek <jakub@redhat.com>
6486
6487 PR c/56566
6488 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6489 return 1 even for !unsignedp.
6490
286fb677
UB
64912013-03-17 Uros Bizjak <ubizjak@gmail.com>
6492
6493 * config/i386/i386.md (isa): Add x64 and nox64.
6494 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6495 (*pushtf): Enable *roF alternative for x64 isa only.
6496 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6497 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6498 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6499 (*movtf_internal): Merge from *movtf_internal_rex64 and
6500 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6501 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6502 nox64 isa attributes.
6503 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6504 nox64 isa attributes.
6505 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6506
88b97037
UB
65072013-03-17 Uros Bizjak <ubizjak@gmail.com>
6508
6509 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6510
9f4f1735
JJ
65112013-03-17 Jakub Jelinek <jakub@redhat.com>
6512
6513 PR target/56640
6514 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6515 class names. Remove trailing comma after "ALL_REGS".
6516
48f4a6fa
JH
65172013-03-16 Jan Hubicka <jh@suse.cz>
6518
6519 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6520 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6521 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6522 of cgraph_get_create_node.
6523 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6524
98e81123
JM
65252013-03-16 Jason Merrill <jason@redhat.com>
6526
6527 PR debug/49090
6528 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6529 with DW_AT_default_value.
6530
8a298c04
JJ
65312013-03-16 Jakub Jelinek <jakub@redhat.com>
6532
6533 * BASE-VER: Set to 4.9.0.
6534
4323afa0
AK
65352013-03-14 Andi Kleen <ak@linux.intel.com>
6536
6537 PR target/56619
6538 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6539 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6540 Document _x* TSX intrinsics.
6541
b3c0d469
JJ
65422013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6543 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
6544
6545 * configure.ac: Add MicroBlaze TLS support detection.
6546 * configure: Regenerate.
88b97037
UB
6547 * config/microblaze/microblaze-protos.h
6548 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6549 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6550 * config/microblaze/microblaze.c (microblaze_address_type): Add
6551 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
6552 (microblaze_address_info): Add tls_reloc.
6553 (TARGET_HAVE_TLS): Define.
6554 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6555 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
6556 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6557 load_tls_operand, microblaze_call_tls_get_addr,
6558 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
6559 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6560 (get_base_reg): Use microblaze_tls_symbol_p.
6561 (microblaze_classify_address): Handle TLS.
88b97037
UB
6562 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6563 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
6564 (microblaze_legitimize_address): Handle TLS.
6565 (microblaze_address_insns): Handle ADDRESS_TLS.
6566 (pic_address_needs_scratch): Handle TLS.
6567 (print_operand_address): Handle TLS.
6568 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6569 (microblaze_expand_move): Handle TLS.
88b97037
UB
6570 (microblaze_legitimate_constant_p): Check
6571 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
6572 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6573 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6574 (PIC_OFFSET_TABLE_REGNUM): Set.
6575 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6576 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6577 (addsi3, movsi_internal2, movdf_internal): Update constraints
6578 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
6579 (move_operand): Redefine as move_src_operand,
6580 check microblaze_tls_referenced_p.
8cc9a5a5 6581
d803a491
IB
65822013-03-14 Ian Bolton <ian.bolton@arm.com>
6583
6584 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6585 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6586
a8504f22
IB
65872013-03-14 Ian Bolton <ian.bolton@arm.com>
6588
6589 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6590 CC mode for AND.
6591
df2dfaea
JJ
65922013-03-14 Jakub Jelinek <jakub@redhat.com>
6593
fbd28bc3
JJ
6594 PR tree-optimization/53265
6595 * common.opt (Waggressive-loop-optimizations): New option.
6596 * tree-ssa-loop-niter.c: Include tree-pass.h.
6597 (do_warn_aggressive_loop_optimizations): New function.
6598 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6599 if number_of_latch_executions returned constant.
6600 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6601 early. If number_of_latch_executions returned constant, set
6602 nb_iterations_upper_bound back to it.
6603 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6604 field.
6605 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6606 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6607
df2dfaea
JJ
6608 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6609 (MULTILIB_OSDIRNAMES): Set.
6610 * genmultilib: If defaultosdirname doesn't start with :: , set
6611 defaultosdirname2 instead, clear it and emit two . multilib_raw
6612 entries instead of just one.
6613
ee0d2b68
KK
66142013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6615
6616 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6617 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6618 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6619 (SUBTARGET_OVERRIDE_OPTIONS): New.
6620
decc676e
OE
66212013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6622
6623 PR target/49880
6624 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6625 (musermode): Convert to Var(TARGET_USERMODE).
6626 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6627 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6628 * config/sh/sh.c (sh_option_override): Use
6629 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6630 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6631 condition.
6632 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6633 TARGET_SH4.
6634 (udivsi3_i4_single, divsi3_i4_single): Use
6635 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6636
f4b719c7
DK
66372013-03-13 Dave Korn <dave.korn.cygwin@....>
6638
6639 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6640 default setting.
6641
c40eced0
RB
66422013-03-13 Richard Biener <rguenther@suse.de>
6643
6644 PR tree-optimization/56608
6645 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6646 calls when vectorizing basic-blocks.
6647
1bfa5973
JJ
66482013-03-13 Jakub Jelinek <jakub@redhat.com>
6649
6650 PR plugins/45078
6651 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6652 tm_file.
6653
6fcf5434
JJ
66542013-03-12 Jakub Jelinek <jakub@redhat.com>
6655
6656 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6657
4f38fa8c
JH
66582013-03-11 Jan Hubicka <jh@suse.cz>
6659
6660 PR lto/56557
6661 * lto-streamer-out.c (output_symbol_p): Skip references from
6662 constructors of external variables.
6663
c5c5ba89
JH
66642013-03-11 Jan Hubicka <jh@suse.cz>
6665
6666 PR middle-end/56571
6667 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6668 from pseudos.
6669 * emit-rtl.c (verify_rtx_sharing): Likewise.
6670 (copy_insn_1): Likewise.
6671 * rtl.c (copy_rtx): Likewise.
6672
c2a939b1
GJL
66732013-03-11 Georg-Johann Lay <avr@gjlay.de>
6674
6675 PR target/56591
6676 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6677 output_operand_lossage message.
88b97037 6678
3c3279fb
RE
66792013-03-11 Richard Earnshaw <rearnsha@arm.com>
6680
6681 PR target/56470
6682 * arm.c (shift_op): Validate RTL pattern on the fly.
6683 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6684 the RTL.
6685
aef5ef9d
JDA
66862013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6687
6688 PR target/56347
6689 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6690 new call patterns that clobber %fr12.
6691 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6692 split and postreload patterns.
6693 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6694 registers %fr12 and %fr12R as call used.
6695
456610d3
SB
66962013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6697
6698 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6699 (canon_address, record_store, replace_read, check_mem_read_rtx,
6700 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6701 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6702 rest_of_handle_dse): Likewise.
6703
4b1baac8
RS
67042013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6705
6706 PR middle-end/56524
6707 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6708 Add base_optabs.
6709 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6710 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6711 (save_optabs_if_changed): Replace with...
6712 (init_tree_optimization_optabs): ...this.
6713 * optabs.c (save_optabs_if_changed): Rename to...
6714 (init_tree_optimization_optabs): ...this. Take the optimization node
6715 as argument. Do nothing if the base optabs are already correct.
6716 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6717 to recompute optabs.
6718 * function.h (function): Remove optabs field.
6719 * function.c (invoke_set_current_function_hook): Call
6720 init_tree_optimization_optabs. Use the result to initialize
6721 this_fn_optabs.
6722
b7a78683
AH
67232013-02-27 Aldy Hernandez <aldyh@redhat.com>
6724
6725 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6726 if GTMA_HAS_NO_INSTRUMENTATION.
6727 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6728 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6729 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6730 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6731 GTMA_HAS_NO_INSTRUMENTATION.
6732
6384c29b
JJ
67332013-03-08 Jakub Jelinek <jakub@redhat.com>
6734
6735 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6736 libasan_preinit.o.
6737
ecd4f20a
MP
67382013-03-08 Marek Polacek <polacek@redhat.com>
6739 Jakub Jelinek <jakub@redhat.com>
6740
6741 PR tree-optimization/56478
6742 * predict.c (is_comparison_with_loop_invariant_p): Change the
6743 type of loop_step to tree.
6744 (predict_loops): Adjust.
6745 (predict_iv_comparison): Perform the computations on double_ints.
6746
64366d35
RB
67472013-03-08 Richard Biener <rguenther@suse.de>
6748
6749 PR tree-optimization/56570
6750 * tree-cfg.c (verify_expr_location_1): Verify locations for
6751 DECL_DEBUG_EXPR.
6752 * tree-sra.c (create_access_replacement): Strip locations
6753 from DECL_DEBUG_EXPRs.
6754
a9d5a059
RB
67552013-03-08 Richard Biener <rguenther@suse.de>
6756
6757 * tree-inline.c (expand_call_inline): Do not associate
6758 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6759 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6760
b7aa4e9a
RB
67612013-03-08 Richard Biener <rguenther@suse.de>
6762
6763 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6764 or block changes with -Og. Fix for location / block encoding
6765 changes and PHI arguments with locations.
6766
c4c2f9fa
SB
67672013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6768
6769 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6770 for all counters.
6771 (struct output_info): Likewise.
6772 (register_overhead): Remove bad gcc_assert.
6773 (bitmap_find_bit): If there is only a single bitmap element, do not
6774 count a miss as a search.
6775 (print_statistics): Update for counter type changes.
6776 (dump_bitmap_statistics): Likewise. Print headers such that they
6777 are properly lined up with the printed counters.
6778
5bf6606a
JJ
67792013-03-07 Jakub Jelinek <jakub@redhat.com>
6780
6781 PR tree-optimization/56559
6782 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6783 check that it has only a single use.
6784
2c653d46
RB
67852013-03-07 Richard Biener <rguenther@suse.de>
6786
6787 * doc/invoke.texi (fwhole-program): Discourage use in combination
6788 with -flto.
6789
a72d8780
JJ
67902013-03-06 Jakub Jelinek <jakub@redhat.com>
6791
01a454df
JJ
6792 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6793
c1781047
JJ
6794 PR tree-optimization/56539
6795 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6796 instead of GSI_CONTINUE_LINKING as last argument to
6797 force_gimple_operand_gsi. Adjust function comment.
6798
9772c47a
JJ
6799 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6800 aarch64-cores.def.
6801
a72d8780
JJ
6802 PR middle-end/56548
6803 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6804 promoted mode, convert the result back to the original mode.
6805
fa5556de
RB
68062013-03-06 Richard Biener <rguenther@suse.de>
6807
6808 PR middle-end/56294
6809 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6810 (insert_updated_phi_nodes_compare_uids): New function.
6811 (update_ssa): Sort symbols_to_rename after UID before
6812 traversing it to insert PHI nodes.
6813
010403d1
RB
68142013-03-06 Richard Biener <rguenther@suse.de>
6815
6816 PR middle-end/50494
6817 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6818 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6819
6820 Revert
6821 2013-02-13 Richard Biener <rguenther@suse.de>
6822
6823 PR lto/50494
6824 * varasm.c (output_constant_def_1): Get the decl representing
6825 the constant as argument.
6826 (output_constant_def): Wrap output_constant_def_1.
6827 (make_decl_rtl): Use output_constant_def_1 with the decl
6828 representing the constant.
6829 (build_constant_desc): Optionally re-use a decl already
6830 representing the constant.
6831 (tree_output_constant_def): Adjust.
6832
3c27ce4c
JY
68332013-03-06 Joey Ye <joey.ye@arm.com>
6834
6835 PR lto/50293
6836 * gcc.c (convert_white_space): New function.
6837 (main): Handles white space in function name.
6838
8f6d1c86
OE
68392013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6840
6841 PR target/56529
6842 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6843 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
6844 to SH_DIV_CALL_TABLE for TARGET_SH2.
6845 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6846 list.
6847 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6848 call-table options.
6849
798a209f
SA
68502013-03-05 Sterling Augustine <saugustine@google.com>
6851 Cary Coutant <ccoutant@google.com>
6852
6853 PR debug/55364
6854 * dwarf2out.c (resolve_addr): Don't call
6855 remove_loc_list_addr_table_entries a second time for the same
6856 expression.
6857
6cfa417f 68582013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 6859
6cfa417f
JJ
6860 PR debug/56510
6861 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6862 (avoid_complex_debug_insns): New function.
6863 (expand_debug_locations): Call it.
6864
6865 PR rtl-optimization/56484
6866 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6867 lifetimes of hard registers on small register class machines.
6868
68692013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6870
6871 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 6872 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 6873 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
6874 fast_interrupt.
6875 (microblaze_fast_interrupt_function_p): New function.
6876 (microblaze_is_interrupt_handler): Rename to
6877 microblaze_is_interrupt_variant and add fast_interrupt check.
6878 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6879 (save_restore_insns): Likewise.
6880 (compute_frame_size): Likewise.
6881 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6882 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
6883 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6884 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
6885 microblaze_is_interrupt_variant.
6886
731aefac
KT
68872013-03-05 Kai Tietz <ktietz@redhat.com>
6888
6889 * sdbout.c (sdbout_one_type): Switch to current function's section
6890 supporting cold/hot.
6891
a72d8780 68922013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
6893
6894 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6895 -mxl-reorder.
6896
334e71e8
JJ
68972013-03-05 Jakub Jelinek <jakub@redhat.com>
6898
0b50e654
JJ
6899 PR middle-end/56461
6900 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6901 if VALGRIND_GET_VBITS is defined, temporarily make object
6902 memory all defined, and restore previous valgrind addressability
6903 and definability afterwards. Free this_object at the end.
6904
4ccf8f43
JJ
6905 PR middle-end/56461
6906 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6907 right before calling lra_create_live_ranges, also call it
6908 when clearing live_p. Only call lra_clear_live_ranges
6909 at the end if live_p.
6910
334e71e8
JJ
6911 PR middle-end/56461
6912 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6913
9ca966ca
RB
69142013-03-05 Richard Biener <rguenther@suse.de>
6915
6916 PR tree-optimization/56521
6917 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6918 value-id.
6919
d273b176
SB
69202013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6921
6922 PR c++/55135
6923 * except.h (remove_unreachable_eh_regions): New prototype.
6924 * except.c (remove_eh_handler_splicer): New function, split out
6925 of remove_eh_handler.
6926 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6927 warning about running it on many EH regions one at a time.
6928 (remove_unreachable_eh_regions_worker): New function, walk the
6929 EH tree in depth-first order and remove non-marked regions.
6930 (remove_unreachable_eh_regions): New function.
6931 * tree-eh.c (mark_reachable_handlers): New function, split out
6932 from remove_unreachable_handlers.
6933 (remove_unreachable_handlers): Use mark_reachable_handlers and
6934 remove_unreachable_eh_regions.
6935 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6936 and remove_unreachable_eh_regions.
6937
5e7f1aef
RB
69382013-03-05 Richard Biener <rguenther@suse.de>
6939
6940 PR middle-end/56525
6941 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6942 not freeing them until the end.
6943
f276b762
AK
69442013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6945
6946 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6947
12a43ab8
RB
69482013-03-05 Richard Biener <rguenther@suse.de>
6949
6950 PR tree-optimization/56270
6951 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6952 of loads after scheduling an SLP instance.
6953
93675444
JJ
69542013-03-05 Jakub Jelinek <jakub@redhat.com>
6955
db4138e3
JJ
6956 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6957 tic6x.exp.
6958 (check_gcc_parallelize): Run guality.exp as a separate job from
6959 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6960 struct-layout-1.exp with stackalign.exp.
6961
dd3d1ec0
JJ
6962 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6963
b8d381a3
JJ
6964 PR middle-end/56461
6965 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6966 load_index sbitmap even if some bit in it isn't set.
6967
b4f9786b
JJ
6968 PR middle-end/56461
6969 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6970 (discover_iteration_bound_by_body_walk): Change queues to
6971 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6972 spelling in comment. Call safe_push on queues[bound_index] directly.
6973 Release queues[queue_index] in every iteration unconditionally.
6974 Release bounds vector.
6975
93675444
JJ
6976 PR middle-end/56461
6977 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6978 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6979 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6980 inner_phis vector.
6981
3e492e9c
RB
69822013-03-05 Richard Biener <rguenther@suse.de>
6983
6984 PR lto/56515
6985 * tree-inline.c (remap_blocks_to_null): New function.
6986 (expand_call_inline): When expanding a call stmt without
6987 an associated block inline remap all callee blocks to NULL.
6988
a5d1569a
JJ
69892013-03-05 Jakub Jelinek <jakub@redhat.com>
6990
86efb5cd
JJ
6991 PR rtl-optimization/56494
6992 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6993 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6994 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6995
85f5dbea
JJ
6996 PR middle-end/56461
6997 * sel-sched-ir.c (free_sched_pools): Release
6998 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6999 if succs_info_pool.max_top isn't -1.
7000
a5d1569a
JJ
7001 PR bootstrap/56509
7002 * opts.c (opts_obstack, opts_concat): Moved to...
7003 * opts-common.c (opts_obstack, opts_concat): ... here.
7004
4432aa6c
JJ
70052013-03-04 Jakub Jelinek <jakub@redhat.com>
7006
7007 PR middle-end/56461
7008 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7009
f3a1fb91
MJ
70102013-03-04 Martin Jambor <mjambor@suse.cz>
7011
7012 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7013 all appropriate places.
7014
22110e6c
EB
70152013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7016
7017 PR tree-optimization/56424
7018 * ipa-split.c (split_function): Do not set the RSO flag if result is
7019 not by reference and its type is a register type.
7020
a72d8780 70212013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 7022
88b97037 7023 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 7024 (microblaze_legitimate_pic_operand): Likewise
88b97037 7025 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
7026 new function microblaze_legitimate_pic_operand
7027 * config/microblaze/microblaze-protos.h
7028 (microblaze_legitimate_pic_operand): Declare.
7029
a72d8780 70302013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 7031
a72d8780 7032 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 7033 New predicate for supported rtx code types.
a72d8780 7034 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
7035 call_insn_simple_operand predicate.
7036
541d9ac8
JJ
70372013-03-04 Jakub Jelinek <jakub@redhat.com>
7038
5eb010bc
JJ
7039 PR middle-end/56461
7040 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7041 partitions.ordered_remove.
7042
30862efc
JJ
7043 PR middle-end/56461
7044 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7045 vec_oprnds0.create (1) for modifier == NONE.
7046
8930f723
JJ
7047 PR middle-end/56461
7048 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7049 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7050 vec_oprnds1 right before pushing anything to it for
7051 scalar_shift_arg.
7052
541d9ac8
JJ
7053 PR middle-end/56461
7054 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7055 set nbbs to 0 instead of having separate code path.
7056 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7057 instead of false as last argument if returning NULL.
7058
7aa7f2e3
SL
70592013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7060
7061 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7062 the attribute is now called "target" instead of "option".
7063 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7064 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7065 attribute/pragma name for TARGET_OPTION_VALID_P and
7066 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7067 * doc/tm.texi: Regenerated.
7068
8930f723 70692013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 7070
8930f723 7071 * config/microblaze/microblaze.c:
cb8a1637 7072 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
7073 * config/microblaze/microblaze.h: Add -mxl-reorder to
7074 DRIVER_SELF_SPECS.
7075 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7076 instructions emitted if TARGET_REORDER.
88b97037
UB
7077 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7078 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 7079 separately.
cb8a1637 7080
4dc1d68c
XDL
70812013-03-01 Xinliang David Li <davidxl@google.com>
7082
7083 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7084 walk length.
7085
689eaba3
JJ
70862013-03-01 Jakub Jelinek <jakub@redhat.com>
7087
9d676bf6
JJ
7088 PR middle-end/56461
7089 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7090 vector even when returning true. Fix up function comment formatting.
7091
caff7edf
JJ
7092 PR middle-end/56461
7093 * ira-build.c (ira_loop_nodes_count): New variable.
7094 (create_loop_tree_nodes): Initialize it.
7095 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7096
b6b9227d
JJ
7097 PR middle-end/56461
7098 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7099 method on dr_chain and result_chain.
7100 * tree-vect-stmts.c (vectorizable_store): Only call
7101 result_chain.create if j == 0.
7102
689eaba3
JJ
7103 PR middle-end/56461
7104 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7105 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7106 before overwriting it.
7107
40bf31ed
TB
71082013-03-01 Tobias Burnus <burnus@net-b.de>
7109
7110 * doc/extended.texi (C Extensions): Change order in @menu
7111 to match @node.
7112 (Other MIPS Built-in Functions): Move last MIPS entry before
7113 "picoChip Built-in Functions".
7114 (SH Built-in Functions): Move after RX Built-in Functions.
7115 * doc/gcc.texi (Introduction): Change order in @menu
7116 to match @node.
7117 * doc/md.texi (Constraints): Ditto.
7118 * gty.texi (Type Information): Ditto.
7119 (User-provided marking routines for template types): Make
7120 subsection.
7121 * doc/invoke.texi (AArch64 Options): Move before
7122 "Adapteva Epiphany Options".
7123
e664c61c
KS
71242013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7125 Jakub Jelinek <jakub@redhat.com>
7126
7127 PR sanitizer/56454
7128 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7129 no_address_safety_analysis attribute.
7130 * doc/extend.texi (no_address_safety_attribute): Rename to
7131 no_sanitize_address attribute, mention no_address_safety_analysis
7132 attribute as deprecated alias.
7133
37b5ec8f
JJ
71342013-02-28 Jakub Jelinek <jakub@redhat.com>
7135
7136 PR middle-end/56461
7137 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7138 type to vec<vec<tree> > *.
7139 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7140 to be vec<tree> instead of vec<tree> *, set vec_defs
7141 to vNULL and call vec_defs.create (number_of_vects), adjust other
7142 uses of vec_defs.
7143 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7144 vectorizable_condition): Adjust vect_get_slp_defs callers.
7145
ba96cdfb
JG
71462013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7147
7148 * config/aarch64/aarch64.c
7149 (aarch64_float_const_representable): Remove unused variable.
7150
6f549691
JG
71512013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7152
7153 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7154
af55e82d
JG
71552013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7156
7157 * config/aarch64/aarch64-builtins.c
7158 (aarch64_init_simd_builtins): Make static.
7159
1df3f464
JG
71602013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7161
7162 * config/aarch64/aarch64.c
7163 (aarch64_simd_make_constant): Make static.
7164
f8f42513
MJ
71652013-02-28 Martin Jambor <mjambor@suse.cz>
7166
7167 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7168 with no initialization to the RHS of debug statements.
7169
b48b3fc4
MJ
71702013-02-28 Martin Jambor <mjambor@suse.cz>
7171
7172 PR tree-optimization/56294
7173 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7174 Adjust dumping.
7175 (get_access_replacement): Do not call create_access_replacement.
7176 Assert a replacement exists.
7177 (get_repl_default_def_ssa_name): Create the replacement declaration
7178 itself.
7179
c3ae224c
RR
71802013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7181
7182 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7183 final_end_function.
7184
45fa0eef
MP
71852013-02-28 Marek Polacek <polacek@redhat.com>
7186
7187 PR rtl-optimization/56466
7188 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7189 if we're changing a loop.
7190 (peel_loops_completely): Likewise.
7191
502c067d
PC
71922013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7193
7194 PR c++/55813
7195 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7196
ff24afc8
GJL
71972013-02-28 Georg-Johann Lay <avr@gjlay.de>
7198
7199 PR target/56445
7200 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7201 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7202 INTX_FTYPE_FX, FX_FTYPE_INTX.
7203 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7204
c7b1fc1b
GJL
72052013-02-28 Georg-Johann Lay <avr@gjlay.de>
7206
7207 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7208 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7209 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7210 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7211 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7212 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7213 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7214 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7215 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7216 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7217 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7218 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7219 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7220 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7221 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7222 (avrxmega6): Increase max flash segments from 5 to 6.
7223 * config/avr/t-multilib: Regenerate.
7224 * config/avr/avr-tables.opt: Regenerate.
7225 * doc/avr-mmcu.texi: Regenerate.
7226
4a0e3cfe
GJL
72272013-02-28 Georg-Johann Lay <avr@gjlay.de>
7228
7229 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7230 (avr_device_to_arch): Rename to avr_device_to_ld.
7231 (avr_device_to_as): New prototype.
7232 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7233 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7234 * config/avr/driver-avr.c (avr_device_to_as): New.
7235 (avr_device_to_arch): Rename to avr_device_to_ld.
7236
97785e52
JJ
72372013-02-27 Jakub Jelinek <jakub@redhat.com>
7238
3f292312
JJ
7239 PR middle-end/56461
7240 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7241 method on dr_chain and result_chain.
7242
a344216b
JJ
7243 PR middle-end/56461
7244 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7245 pointer_set_destroy on not_executed_last_iteration.
7246
f121ad02 7247 PR middle-end/56461
88b97037 7248 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 7249
307f83a3
JJ
7250 PR middle-end/56461
7251 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7252 FOR_EACH_DEFINED_FUNCTION when freeing state.
7253
e19624ee
JJ
7254 PR middle-end/56461
7255 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7256 pool_free.
7257 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7258 overwriting it.
7259
90e709fd
JJ
7260 PR middle-end/56461
7261 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7262 known_aggs[i].items and release known_aggs vector.
7263
97785e52
JJ
7264 PR middle-end/56461
7265 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7266
72672013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 7268
97785e52
JJ
7269 * config/microblaze/microblaze.c (microblaze_emit_compare):
7270 Use xor for EQ/NE comparisions.
7271 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7272 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 7273
6fa5e0ed
JJ
72742013-02-27 Jakub Jelinek <jakub@redhat.com>
7275
7276 PR middle-end/56461
7277 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7278 vector.
7279 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7280 vec_safe_push, always update *slot.
7281 (redirect_edge_var_map_clear): Use vec_free.
7282 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7283 (free_var_map_entry): Use vec_free.
7284 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7285 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7286
436a956a
AB
72872013-02-27 Andrey Belevantsev <abel@ispras.ru>
7288
7289 PR middle-end/45472
436a956a
AB
7290 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7291 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
7292 Reorder tests for speculativeness in the logical and operator.
7293
f5c2caca
JJ
72942013-02-27 Jakub Jelinek <jakub@redhat.com>
7295
0fcb564b
JJ
7296 * incpath.c (add_standard_paths): Use reconcat instead of concat
7297 where appropriate and avoid leaking memory.
7298
dc357798
JJ
7299 * opts.h: Include obstack.h.
7300 (opts_concat): New prototype.
7301 (opts_obstack): New declaration.
7302 * opts.c (opts_concat): New function.
7303 (opts_obstack): New variable.
7304 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7305 (finish_options): Use opts_concat instead of concat
7306 and XOBNEWVEC instead of XNEWVEC.
7307 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7308 generate_option): Likewise.
7309 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7310 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7311
f5c2caca
JJ
7312 PR target/56455
7313 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7314 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7315
d0163673
JJ
73162013-02-26 Jakub Jelinek <jakub@redhat.com>
7317
7318 PR middle-end/56461
7319 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7320
b5ad2b8e
JR
73212013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7322
7323 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7324 (arm_block_move_unaligned_straight): Likewise.
7325 (arm_adjust_block_mem): Likewise.
7326
9b639e2c
JR
73272013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7328
7329 PR target/48901
7330 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7331 temp, cond and label.
7332 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7333
e13a0ccb
JR
7334 PR target/52500
7335 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7336 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7337
fbe4f171
JR
7338 PR target/52501
7339 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7340 of prologue/epilogue functions.
7341
ae006543
JR
7342 PR target/52550
7343 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7344 Remove unused variable cfa_offset.
7345 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7346
c81369fa
JR
7347 PR target/54639
7348 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7349 type promotion to unsigned.
7350
f8a8fea7
JR
7351 PR target/54640
7352 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7353 for HOST_WIDE_INT of 32 bit / same size as int.
7354 (arm_block_move_unaligned_straight): Likewise.
7355 (arm_adjust_block_mem): Likewise.
7356
f8be5169
JR
7357 PR target/54662
7358 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7359 ALL_CFLAGS.
7360
f1ad3354
MP
73612013-02-26 Marek Polacek <polacek@redhat.com>
7362
7363 PR tree-optimization/56426
88b97037 7364 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 7365
a6af0f42
RB
73662013-02-26 Richard Biener <rguenther@suse.de>
7367
7368 PR target/56444
7369 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7370 unused variable loops.
7371
aca43c6c
JJ
73722013-02-26 Jakub Jelinek <jakub@redhat.com>
7373
cecbe5d9
JJ
7374 PR tree-optimization/56448
7375 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7376 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7377 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7378 later operands of the references, or even first operand for
7379 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7380
aca43c6c
JJ
7381 PR tree-optimization/56443
7382 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7383 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7384 to type_for_mode langhook.
7385
53e2e141
MT
73862013-02-25 Matt Turner <mattst88@gmail.com>
7387
7388 * doc/invoke.texi: Document r4700.
7389
259ee451
RB
73902013-02-25 Richard Biener <rguenther@suse.de>
7391
7392 PR tree-optimization/56175
7393 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7394 split out from ...
7395 (simplify_bitwise_binary): ... here. Also guard the conversion
7396 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7397
6d65e8f1
CM
73982013-02-25 Catherine Moore <clm@codesourcery.com>
7399
7400 Revert:
7401 2013-02-24 Catherine Moore <clm@codesourcery.com>
7402 Maciej W. Rozycki <macro@codesourcery.com>
7403 Tom de Vries <tom@codesourcery.com>
a72d8780 7404 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
7405 Iain Sandoe <iain@codesourcery.com>
7406 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7407 Chao-ying Fu <fu@mips.com>
88b97037 7408
6d65e8f1 7409 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7410 Document new function attributes.
6d65e8f1
CM
7411 * doc/invoke.texi (minterlink-compressed, mmicromips,
7412 m14k, m14ke, m14kec): Document new options.
7413 (minterlink-mips16): Update documentation.
7414 * doc/md.texi (ZC, ZD): Document new constraints.
7415 * configure.ac (gcc_cv_as_micromips): Check if linker
7416 supports the .set micromips directive.
7417 * configure: Regenerate.
7418 * config.in: Regenerate.
7419 * config/mips/mips-tables.opt: Regenerate.
7420 * config/mips/micromips.md: New file.
7421 * constraints.md (ZC, AD): New constraints.
7422 * config/mips/predicates.md (movep_src_register): New predicate.
7423 (movep_src_operand): New predicate.
7424 (non_volatile_mem_operand): New predicate.
7425 * config/mips/mips.md (multimem): New type.
7426 (length): Differentiate between 17-bit and 18-bit branch offsets.
7427 (MOVEP1, MOVEP2): New mode iterator.
7428 (mov_<load>l): Use ZC constraint.
7429 (mov_<load>r): Likewise.
7430 (mov_<store>l): Likewise.
7431 (mov_<store>r): Likewise.
7432 (*branch_equality<mode>_inverted): Add microMIPS support.
7433 (*branch_equality<mode>): Likewise.
7434 (*jump_absolute): Likewise.
7435 (indirect_jump_<mode>): Likewise.
7436 (tablejump_<mode>): Likewise.
7437 (<optab>_internal): Likewise.
7438 (sibcall_internal): Likewise.
7439 (sibcall_value_internal): Likewise.
7440 (prefetch): Use constraint ZD.
7441 * config/mips/mips.opt (minterlink-compressed): New option.
7442 (minterlink-mips16): Now an alias for minterlink-compressed.
7443 (mmicromips): New option.
7444 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7445 (compare_and_swap_12): Likewise.
7446 (sync_add<mode>): Likewise.
7447 (sync_<optab>_12): Likewise.
7448 (sync_old_<optab>_12): Likewise.
7449 (sync_new_<optab>_12): Likewise.
7450 (sync_nand_12): Likewise.
7451 (sync_old_nand_12): Likewise.
7452 (sync_new_nand_12): Likewise.
7453 (sync_sub<mode>): Likewise.
7454 (sync_old_add<mode>): Likewise.
7455 (sync_old_sub<mode>): Likewise.
7456 (sync_new_add<mode>): Likewise.
7457 (sync_new_sub<mode>): Likewise.
7458 (sync_<optab><mode>): Likewise.
7459 (sync_old_<optab><mode>): Likewise.
7460 (sync_new_<optab><mode>): Likewise.
7461 (sync_nand<mode>): Likewise.
7462 (sync_old_nand<mode>): Likewise.
7463 (sync_new_nand<mode>): Likewise.
7464 (sync_lock_test_and_set<mode>): Likewise.
7465 (test_and_set_12): Likewise.
7466 (atomic_compare_and_swap<mode>): Likewise.
7467 (atomic_exchange<mode>_llsc): Likewise.
7468 (atomic_fetch_add<mode>_llsc): Likewise.
7469 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7470 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7471 (umips_save_restore_pattern_p): Likewise.
7472 (umips_load_store_pair_p): Likewise.
7473 (umips_output_load_store_pair): Likewise.
7474 (umips_movep_target_p): Likewise.
7475 (umips_12bit_offset_address_p): Likewise.
7476 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7477 (mips_base_mips16): Rename this...
7478 (mips_base_compression_flags): ...to this. Update all uses.
7479 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7480 (mips_mips16_decl_p): Delete.
7481 (mips_nomips16_decl_p): Delete.
7482 (mips_get_compress_on_flags): New function.
7483 (mips_get_compress_off_flags): New function.
7484 (mips_get_compress_mode): New function.
7485 (mips_get_compress_on_name): New function.
7486 (mips_get_compress_off_name): New function.
7487 (mips_insert_attributes): Support multiple compression types.
7488 (mips_merge_decl_attributes): Likewise.
7489 (umips_12bit_offset_address_p): New function.
7490 (mips_start_function_definition): Emit .set micromips directive.
7491 (mips_call_may_need_jalx_p): New function.
7492 (mips_function_ok_for_sibcall): Add microMIPS support.
7493 (mips_print_operand_punctuation): Support short delay slots and
7494 compact jumps.
7495 (umips_swm_mask, umips_swm_encoding): New.
7496 (umips_build_save_restore): New function.
7497 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7498 (was_mips16_p): Remove.
7499 (old_compression_mode): New.
7500 (mips_set_compression_mode): New function.
7501 (mips_set_current_function): Add microMIPS support.
7502 (mips_option_override): Likewise.
7503 (umips_save_restore_pattern_p): New function.
7504 (umips_output_save_restore): New function.
7505 (umips_load_store_pair_p_1): New function.
7506 (umips_load_store_pair_p): New function.
7507 (umips_output_load_store_pair_1): New function.
7508 (umips_output_load_store_pair): New function.
7509 (umips_movep_target_p) New function.
7510 (mips_prepare_pch_save): Add microMIPS support.
7511 * config/mips/mips.h (TARGET_COMPRESSION): New.
7512 (TARGET_CPU_CPP_BUILTINS): Update macro
7513 to use new compression flags and to support microMIPS.
7514 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7515 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7516 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7517 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7518 (ASM_SPEC): Support mmicromips and mno-micromips.
7519 (M16STORE_REG_P): New macro.
7520 (MIPS_CALL): Support TARGET_MICROMIPS.
7521 (MICROMIPS_J): New macro.
7522 (mips_base_mips16): Rename this...
7523 (mips_base_compression_flags): ...to this.
7524 (UMIPS_12BIT_OFFSET_P): New macro.
7525 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7526 (MULTILIB_DIRNAMES): Likewise.
7527
5e5df392
TV
75282013-02-25 Tom de Vries <tom@codesourcery.com>
7529
7530 PR rtl-optimization/56131
7531 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7532 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7533 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7534
3fdb53c1
TB
75352013-02-25 Tobias Burnus <burnus@net-b.de>
7536
7537 * doc/invoke.texi (-fsanitize=): Move from optimization
7538 to debugging options.
7539
ed358aea
AB
75402013-02-25 Andrey Belevantsev <abel@ispras.ru>
7541
7542 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7543
f45e9053
AB
75442013-02-25 Andrey Belevantsev <abel@ispras.ru>
7545 Alexander Monakov <amonakov@ispras.ru>
7546
7547 PR middle-end/56077
7548 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7549 flush pending lists also on non-jumps. Adjust comment.
7550
6941b508
CM
75512013-02-24 Catherine Moore <clm@codesourcery.com>
7552 Maciej W. Rozycki <macro@codesourcery.com>
7553 Tom de Vries <tom@codesourcery.com>
a72d8780 7554 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
7555 Iain Sandoe <iain@codesourcery.com>
7556 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 7557 Chao-ying Fu <fu@mips.com>
6941b508
CM
7558
7559 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 7560 Document new function attributes.
6941b508
CM
7561 * doc/invoke.texi (minterlink-compressed, mmicromips,
7562 m14k, m14ke, m14kec): Document new options.
7563 (minterlink-mips16): Update documentation.
7564 * doc/md.texi (ZC, ZD): Document new constraints.
7565 * configure.ac (gcc_cv_as_micromips): Check if linker
7566 supports the .set micromips directive.
7567 * configure: Regenerate.
7568 * config.in: Regenerate.
7569 * config/mips/mips-tables.opt: Regenerate.
7570 * config/mips/micromips.md: New file.
7571 * constraints.md (ZC, AD): New constraints.
7572 * config/mips/predicates.md (movep_src_register): New predicate.
7573 (movep_src_operand): New predicate.
7574 (non_volatile_mem_operand): New predicate.
7575 * config/mips/mips.md (multimem): New type.
7576 (length): Differentiate between 17-bit and 18-bit branch offsets.
7577 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 7578 (mov_<load>l): Use ZC constraint.
6941b508
CM
7579 (mov_<load>r): Likewise.
7580 (mov_<store>l): Likewise.
7581 (mov_<store>r): Likewise.
7582 (*branch_equality<mode>_inverted): Add microMIPS support.
7583 (*branch_equality<mode>): Likewise.
7584 (*jump_absolute): Likewise.
7585 (indirect_jump_<mode>): Likewise.
7586 (tablejump_<mode>): Likewise.
7587 (<optab>_internal): Likewise.
7588 (sibcall_internal): Likewise.
7589 (sibcall_value_internal): Likewise.
7590 (prefetch): Use constraint ZD.
7591 * config/mips/mips.opt (minterlink-compressed): New option.
7592 (minterlink-mips16): Now an alias for minterlink-compressed.
7593 (mmicromips): New option.
7594 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7595 (compare_and_swap_12): Likewise.
7596 (sync_add<mode>): Likewise.
7597 (sync_<optab>_12): Likewise.
7598 (sync_old_<optab>_12): Likewise.
7599 (sync_new_<optab>_12): Likewise.
7600 (sync_nand_12): Likewise.
7601 (sync_old_nand_12): Likewise.
7602 (sync_new_nand_12): Likewise.
7603 (sync_sub<mode>): Likewise.
7604 (sync_old_add<mode>): Likewise.
7605 (sync_old_sub<mode>): Likewise.
7606 (sync_new_add<mode>): Likewise.
7607 (sync_new_sub<mode>): Likewise.
7608 (sync_<optab><mode>): Likewise.
7609 (sync_old_<optab><mode>): Likewise.
7610 (sync_new_<optab><mode>): Likewise.
7611 (sync_nand<mode>): Likewise.
7612 (sync_old_nand<mode>): Likewise.
7613 (sync_new_nand<mode>): Likewise.
7614 (sync_lock_test_and_set<mode>): Likewise.
7615 (test_and_set_12): Likewise.
7616 (atomic_compare_and_swap<mode>): Likewise.
7617 (atomic_exchange<mode>_llsc): Likewise.
7618 (atomic_fetch_add<mode>_llsc): Likewise.
7619 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7620 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7621 (umips_save_restore_pattern_p): Likewise.
7622 (umips_load_store_pair_p): Likewise.
7623 (umips_output_load_store_pair): Likewise.
7624 (umips_movep_target_p): Likewise.
7625 (umips_12bit_offset_address_p): Likewise.
7626 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7627 (mips_base_mips16): Rename this...
7628 (mips_base_compression_flags): ...to this. Update all uses.
7629 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7630 (mips_mips16_decl_p): Delete.
7631 (mips_nomips16_decl_p): Delete.
3fdb53c1 7632 (mips_get_compress_on_flags): New function.
6941b508
CM
7633 (mips_get_compress_off_flags): New function.
7634 (mips_get_compress_mode): New function.
7635 (mips_get_compress_on_name): New function.
7636 (mips_get_compress_off_name): New function.
7637 (mips_insert_attributes): Support multiple compression types.
7638 (mips_merge_decl_attributes): Likewise.
7639 (umips_12bit_offset_address_p): New function.
7640 (mips_start_function_definition): Emit .set micromips directive.
7641 (mips_call_may_need_jalx_p): New function.
7642 (mips_function_ok_for_sibcall): Add microMIPS support.
7643 (mips_print_operand_punctuation): Support short delay slots and
7644 compact jumps.
7645 (umips_swm_mask, umips_swm_encoding): New.
7646 (umips_build_save_restore): New function.
7647 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7648 (was_mips16_p): Remove.
7649 (old_compression_mode): New.
7650 (mips_set_compression_mode): New function.
7651 (mips_set_current_function): Add microMIPS support.
7652 (mips_option_override): Likewise.
7653 (umips_save_restore_pattern_p): New function.
7654 (umips_output_save_restore): New function.
7655 (umips_load_store_pair_p_1): New function.
7656 (umips_load_store_pair_p): New function.
7657 (umips_output_load_store_pair_1): New function.
7658 (umips_output_load_store_pair): New function.
7659 (umips_movep_target_p) New function.
7660 (mips_prepare_pch_save): Add microMIPS support.
7661 * config/mips/mips.h (TARGET_COMPRESSION): New.
7662 (TARGET_CPU_CPP_BUILTINS): Update macro
7663 to use new compression flags and to support microMIPS.
7664 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7665 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7666 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7667 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7668 (ASM_SPEC): Support mmicromips and mno-micromips.
7669 (M16STORE_REG_P): New macro.
7670 (MIPS_CALL): Support TARGET_MICROMIPS.
7671 (MICROMIPS_J): New macro.
7672 (mips_base_mips16): Rename this...
7673 (mips_base_compression_flags): ...to this.
7674 (UMIPS_12BIT_OFFSET_P): New macro.
7675 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7676 (MULTILIB_DIRNAMES): Likewise.
7677
cdebbc6d
JJ
76782013-02-24 Jakub Jelinek <jakub@redhat.com>
7679
7680 PR target/52555
7681 * target-globals.c (save_target_globals): For init_reg_sets and
7682 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7683
18c63565
JG
76842013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7685
7686 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7687 * config/aarch64/t-aarch64
7688 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7689
2194f7a2
VM
76902013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7691
7692 PR inline-asm/56148
7693 * lra-constraints.c (process_alt_operands): Reload operand
7694 conflicting with earlier clobber only if no more other conflicting
7695 operands.
7696
7d613735
JJ
76972013-02-22 Jakub Jelinek <jakub@redhat.com>
7698
7699 PR sanitizer/56393
7700 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7701 if not linking a shared library.
7702
ac8d93a7
SL
77032013-02-22 Seth LaForge <sethml@google.com>
7704
7705 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7706
e0237780
GY
77072013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7708
3fdb53c1
TB
7709 * config/arm/arm.md (split for extendsidi): Update condition.
7710 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7711 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7712 (qhs_zextenddi_cstr): Likewise.
e0237780 7713
d7fde18c
JJ
77142013-02-21 Jakub Jelinek <jakub@redhat.com>
7715
be63b77d
JJ
7716 PR middle-end/56420
7717 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7718 avoid signed wrapping.
7719 (expand_mult): Handle properly multiplication by
7720 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7721 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7722 in the compiler if coeff is HOST_WIDE_INT_MIN.
7723 (expand_divmod): Don't make ext_op1 static, change it's type to
7724 uhwi. Avoid undefined behavior in -INTVAL (op1).
7725
d7fde18c
JJ
7726 PR rtl-optimization/50339
7727 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7728 field.
7729 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7730 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7731 into splitting_ashiftrt field.
7732 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7733 ASHIFTRT.
7734 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7735 choices.
7736
6aad4455
AH
77372013-02-20 Aldy Hernandez <aldyh@redhat.com>
7738
7739 PR middle-end/56108
7740 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7741 are sure to go irrevocable.
7742
38fe784d
HPN
77432013-02-21 Hans-Peter Nilsson <hp@axis.com>
7744
7745 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7746 scalars are valid operands.
7747
0fd44da3
MJ
77482013-02-21 Martin Jambor <mjambor@suse.cz>
7749
7750 PR tree-optimization/56310
7751 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7752 only matching indices and non-negative final offsets.
7753 (intersect_aggregates_with_edge): Pass src_idx to
7754 agg_replacements_to_vector. Pass src_idx insstead of index to
7755 intersect_with_agg_replacements.
7756
7a92038b
MJ
77572013-02-21 Martin Jambor <mjambor@suse.cz>
7758
7759 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7760 instead of hard-wired defaults.
7761
c0da9c37
MR
77622013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7763
7764 * doc/invoke.texi (MIPS Options): Update documentation of the
7765 floating-point multiply-accumulate instruction restrictions.
7766
d247ea0c 77672013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
7768
7769 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7770 asan_shadow_offset on x86_64 linux.
7771
22deefcb
RB
77722013-02-21 Richard Biener <rguenther@suse.de>
7773
7774 PR tree-optimization/56415
7775 Revert
7776 2013-02-11 Richard Biener <rguenther@suse.de>
7777
7778 PR tree-optimization/56273
7779 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7780 first VRP run.
7781
7bcc6e75
JJ
77822013-02-21 Jakub Jelinek <jakub@redhat.com>
7783
a0ad148f
JJ
7784 PR bootstrap/56258
7785 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7786 instead of @itemx.
7787
7bcc6e75
JJ
7788 PR inline-asm/56405
7789 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7790 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7791
a0a7b611
JH
77922013-02-20 Jan Hubicka <jh@suse.cz>
7793
7794 PR tree-optimization/56265
88b97037
UB
7795 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7796 when target is referenced for first time.
a0a7b611 7797
c0e50f72
RB
77982013-02-20 Richard Biener <rguenther@suse.de>
7799
7800 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7801 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7802 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7803 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7804 not return anything.
7805 (rename_ssa_copies): Do not remove unused locals.
7806 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 7807 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
7808 * passes.c (execute_function_todo): Do not schedule unused locals
7809 removal if cleanup_tree_cfg did something.
7810 * tree-ssa-live.c (remove_unused_locals): Dump statistics
7811 about the number of removed locals.
7812
a52ca739
RB
78132013-02-20 Richard Biener <rguenther@suse.de>
7814
7815 PR tree-optimization/56398
88b97037 7816 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 7817
ec9c9d1b
MJ
78182013-02-20 Martin Jambor <mjambor@suse.cz>
7819
7820 PR tree-optimization/55334
7821 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7822 restricted pointers to arrays.
7823
e91c8ed6 78242013-02-20 Richard Biener <rguenther@suse.de>
88b97037 7825 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
7826
7827 PR tree-optimization/56396
7828 * tree-ssa-ccp.c (n_const_val): New static variable.
7829 (get_value): Return NULL for SSA names we don't have a lattice
7830 entry for.
7831 (ccp_initialize): Initialize n_const_val.
7832 * tree-ssa-copy.c (n_copy_of): New static variable.
7833 (init_copy_prop): Initialize n_copy_of.
7834 (get_value): Return NULL_TREE for SSA names we don't have a
7835 lattice entry for.
7836
3d916479
MJ
78372013-02-20 Martin Jambor <mjambor@suse.cz>
7838
7839 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7840
71a86758
RB
78412013-02-20 Richard Biener <rguenther@suse.de>
7842
7843 * genpreds.c (write_lookup_constraint): Do not compare first
7844 letter of the constraint again.
7845
79836a12
RB
78462013-02-20 Richard Biener <rguenther@suse.de>
7847
7848 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7849 and ceil_log2.
7850 (get_use_iv_cost): Terminate hashtable walk when coming across
7851 an empty entry.
7852
bbe4fb2c
IZ
78532013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
7854
7855 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7856 reassociation for avx2 targets.
7857
a72d8780 78582012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 7859
c77f83d5
EI
7860 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7861 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 7862 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
7863 version and TARGET_PATTERN_COMPARE check
7864 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 7865
a72d8780 78662012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 7867
a72d8780 7868 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
7869 function before branching.
7870
242387fa
AB
78712012-02-19 Andrey Belevantsev <abel@ispras.ru>
7872
7873 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7874 DUMP_INSN_RTX_UID.
7875 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7876
b4979ab9
AB
78772012-02-19 Andrey Belevantsev <abel@ispras.ru>
7878
7879 PR middle-end/55889
b4979ab9
AB
7880 * sel-sched.c: Include ira.h.
7881 (implicit_clobber_conflict_p): New function.
7882 (moveup_expr): Use it.
88b97037 7883 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 7884
24d63016
RB
78852013-02-19 Richard Biener <rguenther@suse.de>
7886
7887 PR tree-optimization/56384
7888 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7889 (vn_hash_type): Split out from ...
7890 (vn_hash_constant_with_type): ... here.
7891 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7892 (vn_phi_eq): Compare types from vn_phi_s structure.
7893 (vn_phi_lookup): Populate vn_phi_s type.
7894 (vn_phi_insert): Likewise.
7895
a475fd3d
JJ
78962013-02-19 Jakub Jelinek <jakub@redhat.com>
7897
47cc28f5
JJ
7898 PR tree-optimization/56350
7899 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7900 if haven't found reduction or nested cycle operand, rather than
7901 asserting we must find it.
7902
a475fd3d
JJ
7903 PR tree-optimization/56381
7904 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7905 to fold_build3.
7906
79072013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
7908 Jakub Jelinek <jakub@redhat.com>
7909
7910 PR target/52555
7911 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7912 (swap_optab_enable): Same.
7913 (init_all_optabs): Use argument instead of global.
88b97037 7914 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
7915 * expr.h (init_all_optabs): Add argument to prototype.
7916 (TREE_OPTIMIZATION_OPTABS): New.
7917 (save_optabs_if_changed): Protoize.
7918 * optabs.h: Declare this_fn_optabs.
7919 * optabs.c (save_optabs_if_changed): New.
7920 Declare this_fn_optabs.
7921 (init_optabs): Add argument to init_all_optabs() call.
7922 * function.c (invoke_set_current_function_hook): Handle per
7923 function optabs.
7924 * function.h (struct function): New field optabs.
7925 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7926 optimization_current_node has changed.
7927 * target-globals.h (save_target_globals_default_opts): Protoize.
7928 * target-globals.c (save_target_globals_default_opts): New.
7929
3f587ca3
JDA
79302013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7931
7932 PR target/56347
7933 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7934 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
7935
7936 PR target/56214
7937 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
7938 and HImode, require all displacements to be an integer multiple of
7939 their mode size.
ceaca33e
JDA
7940 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7941 only allow QImode and HImode when reload is in progress and strict is
7942 true. Likewise for symbolic addresses. Use base14_operand to check
7943 displacements in REG+BASE addresses.
7944
fe0b4796
RB
79452013-02-18 Richard Biener <rguenther@suse.de>
7946
7947 PR tree-optimization/56366
7948 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7949 handle sign-conversion of outer-loop initial induction value.
7950
6aaf596b
RB
79512013-02-18 Richard Biener <rguenther@suse.de>
7952
73db8ff1 7953 PR middle-end/56349
6aaf596b
RB
7954 * cfghooks.c (merge_blocks): If we merge a latch into another
7955 block adjust references to it.
7956 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7957 (verify_loop_structure): Verify that a recorded latch is in fact
7958 a latch.
7959
5e97dfb6
RB
79602013-02-18 Richard Biener <rguenther@suse.de>
7961
7962 PR tree-optimization/56321
7963 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7964 order SSA name release and virtual operand unlinking.
7965
825527e8
EI
79662013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7967
7968 * config/microblaze/microblaze.md (save_stack_block): Define.
7969 (restore_stack_block): Likewise.
7970
debd11d9
EI
79712013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7972
7973 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7974 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7975 * config/microblaze/microblaze.c (microblaze_option_override):
7976 Bail out early for PIC modes when target does not support PIC.
7977
8ec77be0
EI
79782013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7979
88b97037 7980 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
7981 Replace with a microblaze version.
7982 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 7983 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
7984 microblaze.
7985
b41288b3
JJ
79862013-02-16 Jakub Jelinek <jakub@redhat.com>
7987 Dodji Seketeli <dodji@redhat.com>
7988
7989 PR asan/56330
88b97037 7990 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
7991 (instrument_mem_region_access): Do not forget to always put
7992 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7993 0) statement, even for cases where either 'base' or 'base + len'
7994 are not instrumented -- because they have been previously
7995 instrumented. Simplify the logic by putting all the statements
7996 instrument 'base + len' inside a sequence, and then insert that
7997 sequence right before the current insertion point. Then, to
7998 instrument 'base + len', just get an iterator on that statement.
7999 And do not forget to update the pointer to iterator the function
8000 received as argument.
8001
47918951
VM
80022013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8003
8004 PR rtl-optimization/56348
8005 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8006
3fb7c699
SB
80072013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8008
8009 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8010 (clean_graph_dump_file): Pass base to start_graph_dump.
8011
576fe41a
RH
80122013-02-14 Richard Henderson <rth@redhat.com>
8013
8014 PR target/55941
8015 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8016
bb3accfa
SB
80172013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8018
8019 * collect2-aix.h: Define F_LOADONLY.
8020
03143140
RB
80212013-02-14 Richard Biener <rguenther@suse.de>
8022
8023 PR lto/50494
8024 * varasm.c (output_constant_def_1): Get the decl representing
8025 the constant as argument.
8026 (output_constant_def): Wrap output_constant_def_1.
8027 (make_decl_rtl): Use output_constant_def_1 with the decl
8028 representing the constant.
8029 (build_constant_desc): Optionally re-use a decl already
8030 representing the constant.
8031 (tree_output_constant_def): Adjust.
8032
8fb06726
DS
80332013-02-14 Dodji Seketeli <dodji@redhat.com>
8034
8035 Fix an asan crash
8036 * asan.c (instrument_builtin_call): Really put the length of the
8037 second source argument into src1_len.
8038
c4bfe8bf
JJ
80392013-02-13 Jakub Jelinek <jakub@redhat.com>
8040
8041 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8042 argument. If it is false, don't create edge from then_bb to
8043 fallthru_bb.
8044 (insert_if_then_before_iter): Pass true to it.
8045 (build_check_stmt): Pass false to it.
8046 (transform_statements): Flush hash table only on extended basic
8047 block boundaries, rather than at the beginning of every bb.
8048 Don't flush hash table on nonfreeing_call_p calls.
8049 * tree-flow.h (nonfreeing_call_p): New prototype.
8050 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8051
7afe2801
DM
80522013-02-13 David S. Miller <davem@davemloft.net>
8053
8054 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8055
70cc3288
VM
80562013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8057
8058 PR target/56184
8059 * ira.c (max_regno_before_ira): Move from ...
8060 (ira): ... here.
8061 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8062 vec_safe_length.
8063
6422242b
JJ
80642013-02-13 Jakub Jelinek <jakub@redhat.com>
8065
8066 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8067
976a81ee
RB
80682013-02-13 Richard Biener <rguenther@suse.de>
8069
8070 PR lto/56295
8071 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8072 globals in MEM_REFs.
8073
c1874a87
RB
80742013-02-13 Richard Biener <rguenther@suse.de>
8075
8076 * loop-init.c (loop_optimizer_init): Clear loop state when
8077 re-initializing preserved loops.
8078 * loop-unswitch.c (unswitch_single_loop): Return whether
8079 we unswitched the loop. Do not verify loop state here.
88b97037 8080 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 8081
b4ab7d34
KS
80822013-02-13 Kostya Serebryany <kcc@google.com>
8083
88b97037
UB
8084 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8085 on x86_64 linux.
b4ab7d34
KS
8086 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8087
bdcbe80c
DS
80882013-02-12 Dodji Seketeli <dodji@redhat.com>
8089
8090 Avoid instrumenting duplicated memory access in the same basic block
8091 * Makefile.in (asan.o): Add new dependency on hash-table.h
8092 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8093 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8094 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8095 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8096 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8097 (get_mem_ref_of_assignment): New functions.
8098 (get_mem_refs_of_builtin_call): Extract from
8099 instrument_builtin_call and tweak a little bit to make it fit with
8100 the new signature.
8101 (instrument_builtin_call): Use the new
8102 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8103 of is_gimple_builtin_call.
8104 (instrument_derefs, instrument_mem_region_access): Insert the
8105 instrumented memory reference into the hash table.
8106 (maybe_instrument_assignment): Renamed instrument_assignment into
8107 this, and change it to advance the iterator when instrumentation
8108 actually happened and return true in that case. This makes it
8109 homogeneous with maybe_instrument_assignment, and thus give a
8110 chance to callers to be more 'regular'.
8111 (transform_statements): Clear the memory reference hash table
8112 whenever we enter a new BB, when we cross a function call, or when
8113 we are done transforming statements. Use
8114 maybe_instrument_assignment instead of instrumentation. No more
8115 need to special case maybe_instrument_assignment and advance the
8116 iterator after calling it; it's now handled just like
8117 maybe_instrument_call. Update comment.
8118
4861a1f7
RB
81192013-02-13 Richard Biener <rguenther@suse.de>
8120
8121 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8122 Fix loop discovery code.
8123
1c86bd80
VM
81242013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8125
8126 PR inline-asm/56148
8127 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 8128 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
8129 the operand is not reloaded. Prefer to reload conflicting operand
8130 if earlyclobber and matching operands are the same.
8131
7cbda518
RB
81322013-02-12 Richard Biener <rguenther@suse.de>
8133
8134 PR lto/56297
8135 * lto-streamer-out.c (write_symbol): Do not output symbols
8136 for hard register variables.
8137
e68a4ef6
GJL
81382013-02-12 Georg-Johann Lay <avr@gjlay.de>
8139
8140 PR target/54222
8141 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8142 (umulsidi3_insn, mulsidi3_insn): New insns.
8143
a72d8780 81442013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
8145
8146 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8147 (struct tune_params): Add vec_costs field.
8148 * config/arm/arm.c (arm_builtin_vectorization_cost)
8149 (arm_add_stmt_cost): New functions.
8150 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8151 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8152 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8153 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8154 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8155 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8156 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8157
43320568
RB
81582013-02-12 Richard Biener <rguenther@suse.de>
8159
8160 PR lto/56295
8161 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8162 decls again if possible.
8163
a011aa39
RB
81642013-02-12 Richard Biener <rguenther@suse.de>
8165
8166 PR middle-end/56288
8167 * tree-ssa.c (verify_ssa_name): Fix check, move
8168 SSA_NAME_IN_FREE_LIST check up.
8169
6da26889
JJ
81702013-02-12 Jakub Jelinek <jakub@redhat.com>
8171 Steven Bosscher <steven@gcc.gnu.org>
8172
8173 PR rtl-optimization/56151
8174 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8175 equal to op0 or op1, and last_insn pattern is CODE operation
8176 with MEM dest and one of the operands matches that MEM.
8177
f80e0faf
ST
81782013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8179
8180 * doc/extend.texi: Document Function Multiversioning and "default"
8181 parameter string to target attribute.
8182 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8183 target attribute parameter is "default".
8184 (ix86_compare_version_priority): Remove checks for target attribute.
8185 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8186 Remove check for target attribute equal to NULL. Add assert.
8187 (ix86_generate_version_dispatcher_body): Change error to sorry.
8188
6c59ffd1
IS
81892013-02-11 Iain Sandoe <iain@codesourcery.com>
8190 Jack Howarth <howarth@bromo.med.uc.edu>
8191 Patrick Marlier <patrick.marlier@gmail.com>
8192
8193 PR libitm/55693
8194 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8195 define ENDFILE_SPEC as TM_DESTRUCTOR.
8196 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8197
a72d8780 81982013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
8199 Jack Howarth <howarth@bromo.med.uc.edu>
8200 Jakub Jelinek <jakub@redhat.com>
8201
8202 PR sanitizer/55617
8203 * config/darwin.c (cdtor_record): Rename ctor_record.
8204 (sort_cdtor_records): Rename sort_ctor_records.
8205 (finalize_dtors): New routine to sort destructors by
8206 priority before use in assemble_integer.
8207 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8208
b63fe007
UB
82092013-02-11 Uros Bizjak <ubizjak@gmail.com>
8210
8211 PR rtl-optimization/56275
8212 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8213 offset is non-negative and less than cmode size before
8214 calling simplify_subreg.
8215
8e89b5b5
RB
82162013-02-11 Richard Biener <rguenther@suse.de>
8217
8218 PR tree-optimization/56264
8219 * cfgloop.h (fix_loop_structure): Adjust prototype.
8220 * loop-init.c (fix_loop_structure): Return the number of
8221 newly discovered loops.
8222 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8223 are discovered, do a full loop-closed SSA rewrite.
8224
b4a4b56d
RB
82252013-02-11 Richard Biener <rguenther@suse.de>
8226
8227 PR tree-optimization/56273
8228 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8229 first VRP run.
8230 (check_array_ref): Fix missing newline in dumps.
8231 (search_for_addr_array): Likewise.
8232
0c885229
DE
82332013-02-09 David Edelsohn <dje.gcc@gmail.com>
8234
8235 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8236
59ac9a55
JJ
82372013-02-09 Jakub Jelinek <jakub@redhat.com>
8238
8239 PR target/56256
8240 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8241
25bb0bb5
VM
82422013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8243
8244 PR rtl-optimization/56246
0c885229 8245 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
8246 reload pseudo.
8247 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8248 constraints are satisfied.
8249
a698cc03
JL
82502013-02-08 Jeff Law <law@redhat.com>
8251
8252 PR debug/53948
8253 * emit-rtl.c (reg_is_parm_p): New function.
8254 * regs.h (reg_is_parm_p): New prototype.
8255 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8256 callee-clobbered registers.
8257
e1122ddd
MM
82582013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8259
8260 PR target/56043
8261 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8262 If there is no implicit builtin declaration, just return NULL.
8263
19c5f6e6
UB
82642013-02-08 Uros Bizjak <ubizjak@gmail.com>
8265
8266 * config/i386/sse.md (FMAMODEM): New mode iterator.
8267 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8268 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8269
2480f2ca 82702013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 8271
2480f2ca
UB
8272 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8273 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8274 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8275
82762013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8277
8278 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8279 (microblaze*-*-elf): Likewise.
8280 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8281 LINK_SPEC.
8282 * config/microblaze/microblaze-c.c: Add builtin defines for
8283 _LITTLE_ENDIAN and _BIG_ENDIAN.
8284 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8285 add to TARGET_DEFAULT flags.
76ef61fb 8286 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
8287 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8288 * config/microblaze/microblaze.md: Update extendsidi2 and
8289 movdi_internal instructions to use low-order / high-order reg
8290 print_operands.
8291 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8292 options and inversemask / mask of LITTLE_ENDIAN.
8293 * config/microblaze/t-microblaze: Expand multilib options to
8294 include mlittle-endian (le) and update exceptions patterns.
8295
600a5961
JJ
82962013-02-08 Jakub Jelinek <jakub@redhat.com>
8297
5df81313
JJ
8298 PR rtl-optimization/56195
8299 * lra-constraints.c (get_reload_reg): Don't reuse regs
8300 if they have smaller mode than requested, if they have
8301 wider mode than requested, try to return a SUBREG.
8302
600a5961
JJ
8303 PR tree-optimization/56250
8304 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8305 if type is unsigned and code isn't MULT_EXPR.
8306
ff544649
GJL
83072013-02-08 Georg-Johann Lay <avr@gjlay.de>
8308
8309 PR tree-optimization/56064
8310 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8311 bits according to mode.
8312 * fixed-value.h (fixed_from_double_int)
8313 (const_fixed_from_double_int): Adjust comments.
8314
e45cde98
RB
83152013-02-08 Richard Biener <rguenther@suse.de>
8316
8317 PR lto/56231
8318 * lto-streamer.h (struct data_in): Remove current_file, current_line
8319 and current_col members.
8320 * lto-streamer-out.c (lto_output_location): Stream changed bits
8321 en-block for efficiency.
8322 * lto-streamer-in.c (clear_line_info): Remove.
8323 (lto_input_location): Cache current file, line and column
8324 globally via local statics. Read changed bits en-block.
8325 (input_function): Do not call clear_line_info.
8326 (lto_read_body): Likewise.
8327 (lto_input_toplevel_asms): Likewise.
8328
c1ca73d8
MM
83292013-02-08 Michael Matz <matz@suse.de>
8330
8331 PR tree-optimization/52448
8332 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8333 (nt_call_phase): New static.
8334 (add_or_mark_expr): Only mark accesses with newer phase than any
8335 call seen.
8336 (nonfreeing_call_p): New.
8337 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8338 (nt_fini_block): Keep blocks marked as visited.
8339 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8340
57548aa2
RB
83412013-02-08 Richard Biener <rguenther@suse.de>
8342
8343 * ira.c (ira): Free broken dominator information.
8344
8e10366f
UB
83452013-02-08 Uros Bizjak <ubizjak@gmail.com>
8346
8347 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8348
f64fb0fa
MP
83492013-02-08 Marek Polacek <polacek@redhat.com>
8350
8e10366f 8351 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 8352
0375167b
RB
83532013-02-08 Richard Biener <rguenther@suse.de>
8354
8355 PR middle-end/56181
8356 * cfgloop.h (flow_loops_find): Adjust.
8357 (bb_loop_header_p): Declare.
8358 * cfgloop.c (bb_loop_header_p): New function split out from ...
8359 (flow_loops_find): ... here. Adjust function signature,
8360 support incremental loop structure update.
8361 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8362 * cfgloopmanip.c (fix_loop_structure): Move ...
8363 * loop-init.c (fix_loop_structure): ... here.
8364 (apply_loop_flags): Split out from ...
8365 (loop_optimizer_init): ... here.
8366 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8367 in incremental mode, only remove dead loops here.
8368
85d768f3
GJL
83692013-02-08 Georg-Johann Lay <avr@gjlay.de>
8370
8371 PR target/54222
8372 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8373 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8374 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8375 (*round<mode>3.libgcc): New insns for fixed-modes.
8376 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8377 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8378 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8379 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8380 implementations. Define to __builtin_avr_absFX,
8381 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8382 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8383 __builtin_avr_countlsFX, respectively.
8384 * config/avr/avr-c.c (target.h): Include it.
8385 (enum avr_builtin_id): New enum.
8386 (avr_resolve_overloaded_builtin): New static function.
8387 (avr_register_target_pragmas): Use it to set
8388 targetm.resolve_overloaded_builtin.
8389 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8390 tree nodes used by DEF_BUILTIN.
8391 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8392 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8393 <AVR_BUILTIN_xxBITS>: Same.
8394
661bc682
RB
83952013-02-08 Richard Biener <rguenther@suse.de>
8396
8397 * cfgloop.c (verify_loop_structure): Properly handle
8398 a loop exiting to another loop header.
8399 * ira-int.h (ira_loops): Remove.
8400 * ira.c (ira_loops): Remove.
8401 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8402 (do_reload): Use loop_optimizer_finalize.
8403 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8404 number_of_loops to access the loop tree.
8405 (more_one_region_p): Likewise.
8406 (finish_loop_tree_nodes): Likewise.
8407 (rebuild_regno_allocno_maps): Likewise.
8408 (mark_loops_for_removal): Likewise.
8409 (mark_all_loops_for_removal): Likewise.
8410 (remove_unnecessary_regions): Likewise.
8411 (ira_build): Likewise.
8412 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8413
0d5049b2
RB
84142013-02-08 Richard Biener <rguenther@suse.de>
8415
8416 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8417 * ipa-pure-const.c (analyze_function): Avoid calling
8418 mark_irreducible_loops twice.
8e10366f 8419 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 8420
499f32e8
DM
84212013-02-07 David S. Miller <davem@davemloft.net>
8422
8423 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8424 on 'reg'.
8425 * var-tracking.c (vt_add_function_parameter): Test the presence of
8426 HAVE_window_save properly and do not remap argument registers when
8427 we have a leaf function.
8428
6edc3e32
UB
84292013-02-07 Uros Bizjak <ubizjak@gmail.com>
8430
8431 PR bootstrap/56227
8432 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8433 instead of "ll".
8434 * config/i386/i386.c (ix86_print_operand): Ditto.
8435
5306401f
VM
84362013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8437
6edc3e32 8438 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 8439
027ece11
VM
84402013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8441
8442 PR rtl-optimization/56225
8443 * lra-constraints.c (process_alt_operands): Check that reload hard
8444 reg can hold value for strict_low_part.
8445
f980dfdb
JJ
84462013-02-07 Jakub Jelinek <jakub@redhat.com>
8447
8448 PR debug/56154
8449 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8450 dwarf2out_end_function.
8451 (in_first_function_p, maybe_at_text_label_p,
8452 first_loclabel_num_not_at_text_label): New variables.
8453 (dwarf2out_var_location): In the first function find out
6edc3e32 8454 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
8455 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8456 functions.
8457
73dd3123
EB
84582013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8459
8460 PR rtl-optimization/56178
8461 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8462 SUBREG of a register. Tidy up related block of code.
8463 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8464 note if the source is a register or a SUBREG of a register.
8465
e3936f47
JJ
84662013-02-07 Jakub Jelinek <jakub@redhat.com>
8467
8468 PR target/56228
8469 * config/rs6000/rs6000.md (ptrm): New mode attr.
8470 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8471 call_value_indirect_aix<pttrsize>,
8472 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8473 m in constraints.
8474
d96d674b
MH
84752013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8476
8477 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8478 if -bnortl. Convert to strcmp and strncmp.
8479
921f2dee
AM
84802013-02-07 Alan Modra <amodra@gmail.com>
8481
8482 PR target/54009
8483 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8484 addresses won't wrap when offsetting.
8485 (rs6000_secondary_reload): Provide secondary reloads needed for
8486 wrapping LO_SUM addresses.
8487
d09c7dba
TS
84882013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8489
8490 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8491 MACH, just __MACH__.
8492
a44bbd48
RB
84932013-02-06 Richard Biener <rguenther@suse.de>
8494
8495 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8496 instead of calling fix_loop_structure.
8497
6d840d99
JJ
84982013-02-06 Jakub Jelinek <jakub@redhat.com>
8499
8500 PR middle-end/56217
8501 * omp-low.c (use_pointer_for_field): Return false if
8502 lower_send_shared_vars doesn't generate any copy-out code.
8503
0f33baa9
TV
85042013-02-06 Tom de Vries <tom@codesourcery.com>
8505
8506 PR rtl-optimization/56131
8507 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8508 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8509 of the label is NULL. Add comment.
8510
11f1e3ab
JJ
85112013-02-05 Jakub Jelinek <jakub@redhat.com>
8512
31502f9f
JJ
8513 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8514
a74db9bd
JJ
8515 PR sanitizer/55374
8516 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8517 (STATIC_LIBTSAN_LIBS): Likewise.
8518 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8519 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8520 is defined, don't add anything else beyond that.
8521 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8522 (LINK_COMMAND_SPEC): Use them.
8523
11f1e3ab
JJ
8524 PR tree-optimization/56205
8525 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8526 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8527 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8528
14ac6aa2
RB
85292013-02-05 Richard Biener <rguenther@suse.de>
8530
8531 PR tree-optimization/53342
8532 PR tree-optimization/53185
8533 * tree-vectorizer.h (vect_check_strided_load): Remove.
8534 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8535 not disallow peeling for vectorized strided loads.
8536 (vect_check_strided_load): Make static and simplify.
8537 (vect_analyze_data_refs): Adjust.
8538 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8539 correctly when vectorizing strided loads.
8540
6f22445a
RB
85412013-02-05 Richard Biener <rguenther@suse.de>
8542
8543 * doc/install.texi: Refer to ISL, not PPL.
8544
39f9719e
JH
85452013-02-05 Jan Hubicka <jh@suse.cz>
8546
ec4224ac
JH
8547 PR tree-optimization/55789
8548 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8549
85502013-02-05 Jan Hubicka <jh@suse.cz>
8551
8552 PR tree-optimization/55789
39f9719e
JH
8553 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8554 the dead call anyway.
8555
956d3b33
EB
85562013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8557
8558 PR sanitizer/55374
8559 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8560
85612013-02-04 Alexander Potapenko <glider@google.com>
8562 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
8563 Jakub Jelinek <jakub@redhat.com>
8564
8565 PR sanitizer/55617
8566 * config/darwin.c (sort_ctor_records): Stabilized qsort
8567 on constructor priority by using original position.
8568 (finalize_ctors): New routine to sort constructors by
8569 priority before use in assemble_integer.
8570 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8571
7ac3af38
JJ
85722013-02-04 Jakub Jelinek <jakub@redhat.com>
8573
8574 PR libstdc++/54314
8575 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8576 about visibility on artificial decls.
8577 * config/sol2.c (solaris_assemble_visibility): Likewise.
8578
152689dc
KT
85792013-02-04 Kai Tietz <ktietz@redhat.com>
8580
8581 PR target/56186
8582 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8583 argument and improve checking of return-argument types for 16-byte
8584 modes.
8585 (ix86_function_value_1): Add additional valtype argument on call
8586 of function_value_64.
8587 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8588 handling infunction_value_64 function.
8589
2b5987b5
MGD
85902013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8591
7ac3af38 8592 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 8593
14597080
RB
85942013-02-04 Richard Biener <rguenther@suse.de>
8595
8596 PR tree-optimization/56188
8597 * tree-ssa-structalias.c (label_visit): Consider case with
8598 initially non-empty points-to set.
8599 (perform_var_substitution): Dump node mapping and clean up.
8600
ed73881e
RG
86012013-02-04 Richard Guenther <rguenther@suse.de>
8602
8603 PR lto/56168
8604 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8605 node prevail as last resort.
8606 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 8607 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 8608
139a0707
RB
86092013-02-04 Richard Biener <rguenther@suse.de>
8610
8611 PR tree-optimization/56113
8612 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8613 Merge into ...
8614 (equiv_class_lookup_or_add): ... this.
8615 (label_visit): Adjust and fix error in previous patch.
8616 (perform_var_substitution): Adjust.
8617
50fe8924
OE
86182013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8619
8620 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8621 * config/sh/sh4-300.md: Likewise.
8622 * config/sh/sh4a.md: Likewise.
8623 * config/sh/constraints.md: Likewise.
8624 * config/sh/sh.md: Likewise.
8625 * config/sh/netbsd-elf.h: Likewise.
8626 * config/sh/predicates.md: Likewise.
8627 * config/sh/sh-protos.h: Likewise.
8628 * config/sh/ushmedia.h: Likewise.
8629 * config/sh/linux.h: Likewise.
8630 * config/sh/sh.c: Likewise.
8631 * config/sh/superh.h: Likewise.
8632 * config/sh/elf.h: Likewise.
8633 * config/sh/sh4.md: Likewise.
8634 * config/sh/sh.h: Likewise.
8635
1a04ac2b
JDA
86362013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8637
8638 * config/pa/constraints.md: Adjust unused letters. Change "T"
8639 constraint to match_test floating_point_store_memory_operand().
8640 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8641 (base14_operand): New.
8642 (floating_point_store_memory_operand): New.
8643 (integer_store_memory_operand): Revise to use base14_operand and
8644 reg_plus_base_memory_operand.
8645 (move_dest_operand): Allow symbolic_memory_operands.
8646 (symbolic_memory_operand): Check for LO_SOM.
8647 (symbolic_operand): Change default case to break.
8648 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8649 CONST_DOUBLE values to be reloaded by putting them into memory when
8650 the destination is a floating point register.
8651 (movdf): Remove code to handle CONST_DOUBLE.
8652 (movsf): Likewise.
8653 (reload_indf_r1): New.
8654 (reload_insf_r1): New.
8655 Consistently use "Q" and "T" constraints with integer and floating
8656 point move instructions, respectively.
8657 (movdi): Remove FAIL.
8658 Change predicate for source operand unamed DImode move from
8659 general_operand to move_src_operand.
8660 (umulsidi3): Change predicate for destination operand to
8661 register_operand.
8662 Likewise for similar unamed patterns.
8663 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8664 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8665 (hppa_legitimize_address): Simplify mask calculation.
8666 (pa_emit_move_sequence): Revised handling of secondary reloads from
8667 REG+D addresses for floating point loads and stores. Directly handle
8668 loading CONST0_RTX (mode) to a floating point register.
8669 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8670 to floating point registers. Don't restrict secondary reloads to
8671 floating point registers to integer modes. Revise some comments and
8672 cleanup some code.
8673 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8674 (pa_legitimate_address_p): New.
8675 (pa_legitimize_reload_address): New.
8676 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8677 (STRICT_REG_OK_FOR_BASE_P): New.
8678 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8679 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8680
3bf65591
DE
86812013-02-03 David Edelsohn <dje.gcc@gmail.com>
8682 Andrew Dixie <andrewd@gentrack.com>
8683
8684 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8685 flag set.
8686
c0a8a3e6
RS
86872013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8688
8689 * expmed.c (extract_bit_field_1): Pass the full width of the
8690 structure to get_best_reg_extraction_insn.
8691
99113dff
DE
86922013-02-01 David Edelsohn <dje.gcc@gmail.com>
8693
8694 PR target/54601
8695 * configure.ac (use_cxa_atexit): Add AIX.
8696 * configure: Regenerate.
8697
8698 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8699
ddd84654
JJ
87002013-02-01 Jakub Jelinek <jakub@redhat.com>
8701
8702 PR debug/54793
8703 * final.c (need_profile_function): New variable.
8704 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8705 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8706 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8707 notes, targetm.asm_out.function_prologue doesn't emit anything,
8708 HAVE_prologue and profiler should be emitted before prologue,
8709 set need_profile_function instead of emitting it.
8710 (final_scan_insn): If need_profile_function, emit
8711 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8712 NOTE_INSN_FUNCTION_BEG note.
8713
87142013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
8715
8716 * config/rs6000/rs6000.md (smulditi3): New.
8717 (umulditi3): New.
8718
ff2a9d88
RH
8719 * config/alpha/alpha.md (umulditi3): New.
8720
14d52b90
DE
87212013-02-01 David Edelsohn <dje.gcc@gmail.com>
8722
8723 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8724 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8725
8c7ca45c
RB
87262013-02-01 Richard Biener <rguenther@suse.de>
8727
8728 PR tree-optimization/56113
8729 * tree-ssa-structalias.c (label_visit): Reduce work for
8730 single-predecessor nodes.
8731
9f419393
EB
87322013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8733
8734 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8735 range isn't testing for zero.
8736
c5f4be84
SB
87372013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8738
8739 PR middle-end/56113
8740 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8741
dbdbd982
NC
87422013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8743 Nick Clifton <nickc@redhat.com>
8744
8745 * config/v850/constraints.md (Q): Define as a memory constraint.
8746 * config/v850/predicates.md (label_ref_operand): New predicate.
8747 (e3v5_shift_operand): New predicate.
8748 (ior_operator): New predicate.
8749 * config/v850/t-v850: Add e3v5 multilib.
8750 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8751 (v850_gen_movdi): Prototype.
8752 * config/v850/v850.c: Add support for e3v5 architecture.
8753 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8754 TARGET_V850E_UP.
8755 (construct_save_jarl): Add e3v5 long JARL support.
8756 (v850_adjust_insn_length): New function. Adjust length of call
8757 insns when using e3v5 instructions.
8758 (v850_gen_movdi): New function: Generate instructions to move a
8759 DImode value.
8760 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8761 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8762 (TARGET_USE_FPU): Enable for e3v5.
8763 (CONST_OK_FOR_W): New macro.
8764 (ADJUST_INSN_LENGTH): Define.
8765 * config/v850/v850.md (UNSPEC_LOOP): Define.
8766 (attr cpu): Add v850e3v5.
8767 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8768 (movdi): New pattern.
8769 (movdi_internal): New pattern.
8770 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8771 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8772 (cstoresf4): Likewise.
8773 (cstoredf4): Likewise.
8774 (insv): New pattern.
8775 (rotlso3_a): New pattern.
8776 (rotlsi3_b): New pattern
8777 (rotlsi3_v850e3v5): New pattern.
8778 (doloop_begin): New pattern.
8779 (fix_loop_counter): New pattern.
8780 (doloop_end): New pattern.
8781 (branch_normal): Add e3v5 long branch support.
8782 (branch_invert): Likewise.
8783 (branch_z_normal): Likewise.
8784 (branch_z_invert): Likewise.
8785 (branch_nz_normal): Likewise.
8786 (branch_nz_invert): Likewise.
8787 (call_internal_short): Add e3v5 register-indirect JARL support.
8788 (call_internal_long): Likewise.
8789 (call_value_internal_short): Likewise.
8790 (call_value_internal_long): Likewise.
8791 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8792 (mloop): New option.
8793 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 8794 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 8795
73861a41
PK
87962013-01-31 Paul Koning <ni1d@arrl.net>
8797
8798 PR debug/55059
8799 PR debug/54508
8800 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8801 children if parent is a class.
8802 (prune_unused_types_prune): Don't add DW_AT_declaration.
8803
e44978dc
RB
88042013-01-31 Richard Biener <rguenther@suse.de>
8805
8806 PR tree-optimization/56157
8807 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8808 match up operand with SLP child.
8809
90b10dec
JM
88102013-01-31 Jason Merrill <jason@redhat.com>
8811
04d2dadd 8812 PR debug/54410
90b10dec
JM
8813 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8814 parameters the first time.
8815 (gen_scheduled_generic_parms_dies): Check completeness here.
8816
6e616110
RB
88172013-01-31 Richard Biener <rguenther@suse.de>
8818
8819 PR middle-end/53073
8820 * common.opt (faggressive-loop-optimizations): New flag,
8821 enabled by default.
8822 * doc/invoke.texi (faggressive-loop-optimizations): Document.
8823 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8824 infer_loop_bounds_from_undefined by it.
8825
636f59cf
RB
88262013-01-31 Richard Biener <rguenther@suse.de>
8827
8828 PR tree-optimization/56150
8829 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8830 visit virtual operands.
8831 (find_uses_to_rename_bb): Likewise.
8832
88332013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
8834
8835 PR tree-optimization/56150
8836 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8837 mixed store non-store stmts.
8838
32887460
JJ
88392013-01-30 Jakub Jelinek <jakub@redhat.com>
8840
e60e09a0
JJ
8841 PR sanitizer/55374
8842 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8843 LIBASAN_EARLY_SPEC is defined.
8844 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8845 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8846 before %o.
8847 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8848
32887460
JJ
8849 PR c++/55742
8850 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8851 invalid args instead of ICEing on it.
8852 (ix86_valid_target_attribute_tree): Return error_mark_node if
8853 ix86_valid_target_attribute_inner_p failed.
8854 (ix86_valid_target_attribute_p): Return false only if
8855 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8856 target("default") attribute.
8857 (sorted_attr_string): Change argument from const char * to tree,
8858 merge in all target attribute arguments rather than just one.
8859 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8860 instead of free. Avoid using strcat.
8861 (ix86_mangle_function_version_assembler_name): Mangle
8862 target("default") as if no target attribute is present. Adjust
8863 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8864 instead of xmalloc and XDELETEVEC instead of free.
8865 (ix86_function_versions): Don't return true if one of the decls
8866 doesn't have target attribute. If they don't and one of the decls
8867 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8868 sorted_attr_string caller. Use XDELETEVEC instead of free.
8869 (ix86_supports_function_versions): Remove.
8870 (make_name): Fix up formatting.
8871 (make_dispatcher_decl): Remove resolver_name and its initialization.
8872 Avoid leaking memory.
8873 (is_function_default_version): Return true if there is
8874 target("default") attribute rather than no target attribute at all.
8875 (make_resolver_func): Avoid leaking memory.
8876 (ix86_generate_version_dispatcher_body): Likewise.
8877 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8878 * target.def (supports_function_versions): Remove.
8879 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8880 * doc/tm.texi: Regenerated.
8881
73cca0cc
VM
88822013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8883
8884 PR rtl-optimization/56144
8885 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8886 for values with side effects.
8887
11452e7b
RB
88882013-01-30 Richard Biener <rguenther@suse.de>
8889
8890 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8891 (sparseset_pop): Likewise.
8892 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8893 to be able to use quick_push in the worker loop.
8894
01cb1ef5
MP
88952013-01-30 Marek Polacek <polacek@redhat.com>
8896
8897 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8898
e892936e
RB
88992013-01-30 Richard Biener <rguenther@suse.de>
8900
8901 PR lto/56147
6edc3e32 8902 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 8903
cc06c01d
GJL
89042013-01-30 Georg-Johann Lay <avr@gjlay.de>
8905
8906 PR tree-optimization/56064
8907 * fixed-value.c (fixed_from_double_int): New function.
8908 * fixed-value.h (fixed_from_double_int): New prototype.
8909 (const_fixed_from_double_int): New static inline function.
8910 * fold-const.c (native_interpret_fixed): New static function.
8911 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8912 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8913 (native_encode_fixed): New static function.
8914 (native_encode_expr) <FIXED_CST>: Use it.
8915 (native_interpret_int): Move double_int worker code to...
8916 * double-int.c (double_int::from_buffer): ...this new static method.
8917 * double-int.h (double_int::from_buffer): Prototype it.
8918
d394a308
RB
89192013-01-30 Richard Biener <rguenther@suse.de>
8920
8921 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8922 New pointer-map and obstack.
8923 (init_alias_vars): Allocate pointer-map and obstack.
8924 (delete_points_to_sets): Free them.
8925 (find_what_var_points_to): Cache result.
8926 (find_what_p_points_to): Adjust for changed interface of
8927 find_what_var_points_to.
8928 (compute_points_to_sets): Likewise.
8929 (ipa_pta_execute): Likewise.
8930
20804d96
RO
89312013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8932
8933 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8934 * configure: Regenerate.
8935 * config.in: Regenerate.
8936 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8937 #nobits/#progbits if supported.
8938
a7ad88a2
OE
89392013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8940
8941 PR target/56121
8942 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8943 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8944 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8945
7af79f92
GY
89462013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8947
91bfca59
OE
8948 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8949 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 8950
753bcf7b
GY
89512013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8952
91bfca59
OE
8953 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8954 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 8955
8cbc2ea8
GY
89562013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8957
91bfca59
OE
8958 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8959 declaration.
8960 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8961 * config/arm/cortex-a7.md: New bypasses using
8962 arm_mac_accumulator_is_result.
8cbc2ea8 8963
697a3325
GY
89642013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8965
91bfca59 8966 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 8967 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
8968 (cortex_a7_fpfmad): New reservation.
8969 (cortex_a7_fpmacs): Use ffmas and update required units.
8970 (cortex_a7_fpmuld): Update required units and latency.
8971 (cortex_a7_fpmacd): Likewise.
8972 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8973 (cortex_a7_neon). Likewise.
8974 (bypass) Update participating units.
697a3325 8975
29637783
GY
89762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8977
91bfca59
OE
8978 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8979 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8980 from fmac to ffma.
8981 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8982 (vfp_fmul): Use ffmad.
8983 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8984 (cortex_r4_fmacd): Use ffmad.
8985 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8986 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8987 (cortex_a9_fmacd): Use ffmad.
8988 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8989 (cortex_a8_vfp_macd): Use ffmad.
8990 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8991 (cortex_a5_fpmacd): Use ffmad.
8992 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8993 (cortex_a15_vfp_macd): Use ffmad.
8994 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 8995
2ee8a2d5
JM
89962013-01-29 Jason Merrill <jason@redhat.com>
8997
8998 PR libstdc++/54314
8999 * varasm.c (default_assemble_visibility): Don't warn about
9000 visibility on artificial decls.
9001
78d087bc
RB
90022013-01-29 Richard Biener <rguenther@suse.de>
9003
9004 PR tree-optimization/56113
9005 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9006 the bitmap leader.
9007 (label_visit): Free duplicate bitmaps and record the leader instead.
9008 (perform_var_substitution): Adjust.
9009
83ba4d6f
RB
90102013-01-29 Richard Biener <rguenther@suse.de>
9011
9012 PR tree-optimization/55270
9013 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9014 the CFG, schedule loops for fixup.
9015
66dfe13f
NC
90162013-01-29 Nick Clifton <nickc@redhat.com>
9017
9018 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9019 SP_REG.
9020
5a579c3b
LE
90212013-01-28 Leif Ekblad <leif@rdos.net>
9022
9023 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9024 * config/i386/i386.h (TARGET_RDOS): New macro.
9025 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9026 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9027 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9028 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9029 DEFAULT_LARGE_SECTION_THRESHOLD.
9030 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9031 * config/i386/rdos.h: New file.
9032 * config/i386/rdos64.h: New file.
9033
51e44392
BS
90342013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9035
9036 PR other/54814
9037 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9038 TEST_HARD_REG_BIT.
9039
db1fb332
JJ
90402013-01-28 Jakub Jelinek <jakub@redhat.com>
9041
9042 PR rtl-optimization/56117
9043 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9044 call cselib_lookup_from_insn on the MEM before calling
9045 add_insn_mem_dependence.
9046
16917761
RB
90472013-01-28 Richard Biener <rguenther@suse.de>
9048
9049 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9050 to a stmt that didn't have one.
9051 (copy_phis_for_bb): Likewise for PHI arguments.
9052 (copy_debug_stmt): Likewise for debug stmts.
9053
b9fc0497
RB
90542013-01-28 Richard Biener <rguenther@suse.de>
9055
9056 PR tree-optimization/56034
6edc3e32 9057 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
9058 (partition_builtin_p): Adjust.
9059 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9060 it is the last partition.
9061 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9062 up the vertex for the definition.
9063 (classify_partition): Classify whether a partition is a
9064 PKIND_REDUCTION, thus has uses outside of the loop.
9065 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9066 Merge all PKIND_REDUCTION partitions into the last partition.
9067 (tree_loop_distribution): Seed partitions from reductions as well.
9068
aa710d25
JJ
90692013-01-28 Jakub Jelinek <jakub@redhat.com>
9070
0bfbca58
JJ
9071 PR tree-optimization/56125
9072 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9073 pow(x,c) into sqrt(x) * powi(x, n/2) or
9074 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9075 optimizing for size.
9076 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9077 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9078 integer.
9079
aa710d25
JJ
9080 PR tree-optimization/56094
9081 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9082 to UNKNOWN_LOCATION while gimplifying expr.
9083
77dc5297
UB
90842013-01-27 Uros Bizjak <ubizjak@gmail.com>
9085
9086 PR target/56114
9087 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9088 operand 0 in movabs insn template for -masm=intel asm alternative.
9089 (*movabs<mode>_2): Ditto for operand 1.
9090
0bfbca58 90912013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
9092
9093 PR target/54663
9094 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9095 of microblaze-c.o
9096
0bfbca58 90972013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
9098
9099 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9100 tm_file.
9101
0bfbca58 91022013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
9103
9104 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9105 Undef to avoid warning.
9106
478f60f9
MH
91072013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9108
9109 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9110 * configure: Regenerate.
9111
d7fa6ee2
JJ
91122013-01-25 Jakub Jelinek <jakub@redhat.com>
9113
9114 PR tree-optimization/56098
9115 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9116 for stmts with volatile ops.
9117 (cond_store_replacement): Don't optimize if assign has volatile ops.
9118 (cond_if_else_store_replacement_1): Don't optimize if either
9119 then_assign or else_assign have volatile ops.
9120 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9121 volatile ops.
9122
f8fe87bd
GJL
91232013-01-25 Georg-Johann Lay <avr@gjlay.de>
9124
9125 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9126
28398d0d
GJL
91272013-01-25 Georg-Johann Lay <avr@gjlay.de>
9128
9129 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9130 missing ':' in asm example.
9131
b7d7d917
TB
91322013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9133
9134 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9135 entries into lane and laneq entries.
77dc5297
UB
9136 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9137 Remove AdvSIMD scalar modes.
b7d7d917
TB
9138 (aarch64_sq<r>dmulh_laneq<mode>): New.
9139 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9140 modes.
9141 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9142 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9143 * config/aarch64/iterators.md (VCOND): New.
9144 (VCONQ): New.
9145
556f9906
GJL
91462013-01-25 Georg-Johann Lay <avr@gjlay.de>
9147
9148 PR target/54222
9149 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9150 Add NULL LIBNAME argument to existing definitions.
9151 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9152 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9153 * config/avr/avr.c (DEF_BUILTIN): Same.
9154 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9155 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9156 implementation is available (DECL_ASSEMBLER_NAME is set).
9157 (avr_fold_absfx): New static function.
9158 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9159 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9160 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9161 AVR_BUILTIN_ABSLLK.
9162 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9163 (abshk, absk, abslk, absllk): Provide as static inline functions.
9164
1f546bbb
MP
91652013-01-25 Marek Polacek <polacek@redhat.com>
9166
9167 PR tree-optimization/56035
9168 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9169
7e184bd7
UB
91702012-01-24 Uros Bizjak <ubizjak@gmail.com>
9171
9172 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9173 (*movtf_internal_rex64): Add (!o,C) alternative
9174 (*movxf_internal_rex64): Ditto.
9175 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9176
f5ba49ac
SM
91772013-01-24 Shenghou Ma <minux.ma@gmail.com>
9178
9179 * doc/invoke.texi: fix typo.
9180 * doc/objc.texi: fix typo.
9181
a6343728
RS
91822013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9183
9184 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9185 for the first two alternatives.
9186
cd030c07
DN
91872013-01-24 Diego Novillo <dnovillo@google.com>
9188
77dc5297 9189 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
9190 (ggc-zone.o): Remove.
9191 * configure.ac: Remove option --with-gc.
9192 * configure: Re-generate.
9193 * doc/install.texi: Remove documentation for --with-gc.
9194 * gengtype.c (write_enum_defn): Remove. Update all users.
9195 (write_Types_process_field): Remove generation of gt_e_* argument.
9196 (output_type_enum): Remove. Update all users.
9197 (write_enum_defn): Remove. Update all users.
9198 (enum alloc_zone): Remove. Update all users.
77dc5297 9199 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
9200 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9201 Update all callers.
9202 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 9203 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
9204 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9205 Update all users.
aaf1e810 9206 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
9207 (struct alloc_zone): Remove.
9208 (ggc_internal_alloc_zone_stat): Remove.
9209 (ggc_internal_cleared_alloc_zone_stat): Remove.
9210 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
9211 (ggc_pch_count_object): Remove last argument. Update all users.
9212 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
9213 (struct alloc_zone): Remove.
9214 * ggc-zone.c: Remove.
77dc5297 9215 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
9216 (struct alloc_zone): Remove.
9217 (ggc_alloc_typed_stat): Remove.
9218 (ggc_alloc_typed): Remove.
9219 (ggc_splay_alloc): Remove first argument.
9220 (rtl_zone): Remove. Update all users.
9221 (tree_zone): Remove. Update all users.
9222 (tree_id_zone): Remove. Update all users.
9223 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 9224 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 9225 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 9226 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 9227
a861ffa4
GJL
92282013-01-24 Georg-Johann Lay <avr@gjlay.de>
9229
9230 * config/avr/avr.c (avr_out_fract): Make register numbers that
9231 might be outside of source operand signed.
9232
593c0ddd
UB
92332013-01-24 Uros Bizjak <ubizjak@gmail.com>
9234
9235 * config/i386/constraints.md (Yf): New constraint.
9236 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9237 of f constraint to conditionaly disable x87 register preferences.
9238 (*movdf_internal): Ditto.
9239 (*movsf_internal): Ditto.
9240
e86c0101
SB
92412013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9242
9243 PR inline-asm/55934
9244 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9245 that have operands with impossible constraints.
9246 Add a FIXME for a speed-up opportunity.
9247 * lra-constraints.c (process_alt_operands): Verify that a class
9248 selected from constraints on asms is valid for the operand mode.
9249 (curr_insn_transform): Remove incorrect comment.
9250
f6fee35f
DE
92512013-01-23 David Edelsohn <dje.gcc@gmail.com>
9252
9253 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9254 TOC operand is a valid symbol ref in the constant pool.
9255
92562013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 9257
aaf1e810 9258 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 9259
dc62d7d1
GJL
92602013-01-23 Georg-Johann Lay <avr@gjlay.de>
9261
9262 PR target/54222
9263 * config/avr/stdfix.h: New file.
9264 * t-avr (stdfix-gcc.h): New rule to build it.
9265 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9266
2660d12d
KS
92672013-01-23 Kostya Serebryany <kcc@google.com>
9268
77dc5297
UB
9269 * config/darwin.h: remove dependency on
9270 CoreFoundation (asan on Mac OS).
2660d12d 9271
a70418fc
JJ
92722013-01-23 Jakub Jelinek <jakub@redhat.com>
9273
9274 PR target/49069
9275 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9276 instead of cmpdi_operand for first comparison operand.
9277 Don't assert that comparison operands aren't both constants.
9278
47876a2a
JW
92792013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9280
9281 * doc/install.texi (Downloading the Source): Update references to
9282 downloading separate components.
9283
92842013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
9285
9286 * doc/extend.texi (__int128): Improve grammar.
9287
47876a2a 92882013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
9289
9290 PR target/56028
9291 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9292 alternative to (o,r).
9293 (*movdi_internal_rex64): Remove (!o,n) alternative.
9294 (DImode immediate->memory splitter): Remove.
9295 (DImode immediate->memory peephole2): Remove.
9296 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9297 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9298 alternative to (!o,*r).
9299 (*movtf_internal_sse): New pattern.
9300 (*movxf_internal_rex64): New pattern.
9301 (*movxf_internal): Disable for TARGET_64BIT.
9302 (*movdf_internal_rex64): Remove (!o,F) alternative.
9303
3a984f10
JJ
93042013-01-22 Jakub Jelinek <jakub@redhat.com>
9305
502498d5
JJ
9306 PR middle-end/56074
9307 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9308 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9309 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9310 stmt locations where LOCATION_LOCUS of the stmt location is
9311 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9312
3a984f10
JJ
9313 PR target/55686
9314 * config/i386/i386.md (UNSPEC_STOS): New.
9315 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9316 *strsetqi_1): Add UNSPEC_STOS.
9317
fa817f7f
PC
93182013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9319
9320 PR c++/56067
9321 * doc/invoke.texi: Remove left over -Wsynth example.
9322
8f498c1b
JJ
93232013-01-21 Jakub Jelinek <jakub@redhat.com>
9324
9325 PR tree-optimization/56051
9326 * fold-const.c (fold_binary_loc): Don't fold
9327 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9328 a narrowing conversion, or widening conversion from signed
9329 to unsigned.
9330
47876a2a 93312013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
9332
9333 PR rtl-optimization/56023
9334 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9335 dependent on debug instruction.
9336
5b9db1bc
MJ
93372013-01-21 Martin Jambor <mjambor@suse.cz>
9338
9339 PR middle-end/56022
9340 * function.c (allocate_struct_function): Call
9341 invoke_set_current_function_hook earlier.
9342
e8bb7d68
JJ
93432013-01-21 Jakub Jelinek <jakub@redhat.com>
9344
9345 * reload1.c (init_reload): Only initialize reload_obstack
9346 during the first call.
9347
616a4e32
MP
93482013-01-21 Marek Polacek <polacek@redhat.com>
9349
9350 * cfgloop.c (verify_loop_structure): Fix up grammar.
9351
4401981b
YHH
93522013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9353
9354 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9355 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9356
8e87740b
RR
93572013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9358
9359 PR target/56058
9360 * config/arm/marvell-pj4.md: Update copyright year.
9361 Fix up use of alu to alu_reg and simple_alu_imm.
9362
47876a2a 93632013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
9364
9365 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9366
89d56d79
VM
93672013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9368
9369 PR target/55433
9370 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 9371 insn for secondary memory move when memory mode should be different.
89d56d79 9372
fe603553
JDA
93732013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9374
9375 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9376 atomic_storedi_1): New patterns.
9377
01284895
VK
93782013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9379
9380 btver2 pipeline descriptions.
9381 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9382 descriptions.
9383 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 9384 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
9385 type attributes.
9386 * config/i386/btver2.md: New file describing btver2 pipelines.
9387
5630e3e1
JL
93882013-01-19 Andrew Pinski <apinski@cavium.com>
9389
9390 PR tree-optimization/52631
9391 * tree-ssa-sccvn (visit_use): Before looking up the original
9392 statement, try looking up the simplified expression.
9393
650ae806
AG
93942013-01-19 Anthony Green <green@moxielogic.com>
9395
9396 * config/moxie/moxie.c (moxie_expand_prologue): Set
9397 current_function_static_stack_size.
9398
e300ec2d
JJ
93992013-01-18 Jakub Jelinek <jakub@redhat.com>
9400
9401 PR tree-optimization/56029
9402 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9403 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9404
a3d7af04
SS
94052013-01-18 Sharad Singhai <singhai@google.com>
9406
9407 PR tree-optimization/55995
9408 * dumpfile.c (dump_loc): Print location only if available.
9409 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9410
66aa7879
VM
94112013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9412
9413 PR target/55433
9414 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9415 secondary memory move.
9416 (inherit_reload_reg): Use rclass instead of cl for
9417 check_secondary_memory_needed_p.
9418
3f0fee7b
JJ
94192013-01-18 Jakub Jelinek <jakub@redhat.com>
9420
9421 PR middle-end/56015
9422 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 9423 the case where writing real complex part of target modifies op1.
3f0fee7b 9424
70c67693
JG
94252013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9426
9427 * config/aarch64/aarch64-simd.md
9428 (aarch64_vcond_internal<mode>): Handle unordered cases.
9429 * config/aarch64/iterators.md (v_cmp_result): New.
9430
df8de9b3
YHH
94312013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9432 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9433
9434 * config/arm/marvell-pj4.md: New file.
9435 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9436 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9437 (generic_vfp): Likewise.
9438 * config/arm/arm-cores.def: Add marvell-pj4.
9439 * config/arm/arm-tune.md: Regenerate.
9440 * config/arm/arm-tables.opt: Regenerate.
9441 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9442 * doc/invoke.texi: Document marvell-pj4.
9443
be30c356
TB
94442013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9445
9446 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9447
0bfbca58 94482013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
9449
9450 PR debug/54114
9451 PR debug/54402
9452 PR debug/49888
9453 * var-tracking.c (negative_power_of_two_p): New.
9454 (global_get_addr_cache, local_get_addr_cache): New.
9455 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9456 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9457 heading comment.
9458 (vt_stack_offset_p): Remove.
9459 (vt_canon_true_dep): Always canonicalize loc's address.
9460 (clobber_overlapping_mems): Make sure we have a MEM.
9461 (local_get_addr_clear_given_value): New.
9462 (val_reset): Clear local cached entries.
9463 (compute_bb_dataflow): Create and release the local cache.
9464 Disable duplicate MEMs clobbering.
9465 (emit_notes_in_bb): Clobber MEMs likewise.
9466 (vt_emit_notes): Create and release the local cache.
9467 (vt_initialize, vt_finalize): Create and release the global
9468 cache, respectively.
1f6bc337 9469 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 9470
0bfbca58 94712013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
9472
9473 PR libmudflap/53359
9474 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9475 not found in the symtab.
9476
0bfbca58 94772013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 9478
c350ba53 9479 PR debug/56006
3aa03517
AO
9480 PR rtl-optimization/55547
9481 PR rtl-optimization/53827
9482 PR debug/53671
9483 PR debug/49888
9484 * alias.c (offset_overlap_p): New, factored out of...
9485 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9486 the conservative special case for symbolic constants. Don't
9487 adjust zero sizes on alignment.
9488
c664546f
JL
94892013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9490
9491 PR rtl-optimization/52573
9492 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9493 REG_UNUSED for the same register.
9494
1bd3f750
MP
94952013-01-17 Richard Biener <rguenther@suse.de>
9496 Marek Polacek <polacek@redhat.com>
9497
9498 PR rtl-optimization/55833
9499 * loop-unswitch.c (unswitch_loops): Move loop verification...
9500 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9501 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9502 Set it to true when we're removing a loop from hierarchy tree in
9503 an irreducible region.
9504 (fix_bb_placements): Adjust caller.
9505 (fix_loop_placements): Likewise.
9506
e52a8b71
GJL
95072013-01-17 Georg-Johann Lay <avr@gjlay.de>
9508
9509 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9510 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9511 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9512 Remove ID. Adjust comments.
9513 * config/avr/avr-c.c (avr_builtin_name): Remove.
9514 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9515 * config/avr/avr.c (avr_tolower): New static function.
9516 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9517 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9518 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9519 default expansion.
9520
8386a7ea
JH
95212013-01-17 Jan Hubicka <jh@suse.cz>
9522
610fb637 9523 PR tree-optimization/55273
8386a7ea
JH
9524 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9525
47876a2a 95262013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
9527
9528 PR target/55981
9529 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9530 store through atomic_store<mode>_1.
9531 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9532
8222c37e
MJ
95332013-01-17 Martin Jambor <mjambor@suse.cz>
9534
9535 PR tree-optimizations/55264
9536 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9537 for virtual methods.
9538 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9539 virtual methods before inlining is over.
9540 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9541 virtual functions.
9542 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9543 non-virtual.
9544
79f01c76
VM
95452013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9546
9547 PR rtl-optimization/56005
9548 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9549 pending reads for prefetch.
9550
d0b6bb1b
IB
95512013-01-16 Ian Bolton <ian.bolton@arm.com>
9552
aaf1e810 9553 * config/aarch64/aarch64.md
d0b6bb1b
IB
9554 (*cstoresi_neg_uxtw): New pattern.
9555 (*cmovsi_insn_uxtw): New pattern.
9556 (*<optab>si3_uxtw): New pattern.
9557 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9558 (*<optab>si3_insn_uxtw): New pattern.
9559 (*bswapsi2_uxtw): New pattern.
9560
cb9cf03b
RB
95612013-01-16 Richard Biener <rguenther@suse.de>
9562
9563 * tree-inline.c (tree_function_versioning): Remove set but
9564 never used variable.
9565
2cfc56b9
RB
95662013-01-16 Richard Biener <rguenther@suse.de>
9567
9568 PR tree-optimization/55964
9569 * tree-flow.h (rename_variables_in_loop): Remove.
9570 (rename_variables_in_bb): Likewise.
9571 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9572 (copy_loop_before): Adjust and delete update-ssa status.
9573 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 9574 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
9575 (rename_variables_in_loop): Remove.
9576 (slpeel_update_phis_for_duplicate_loop): Likewise.
9577 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9578 use available cfg machinery instead of duplicating it.
9579 Update PHI nodes and perform poor-mans SSA update here.
9580 (slpeel_tree_peel_loop_to_edge): Adjust.
9581
c25a0c60
RB
95822013-01-16 Richard Biener <rguenther@suse.de>
9583
9584 PR tree-optimization/54767
9585 PR tree-optimization/53465
9586 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9587 (vrp_visit_phi_node): For PHI arguments coming via backedges
9588 drop all symbolical range information.
9589 (execute_vrp): Compute backedges.
9590
04b535af
RB
95912013-01-16 Richard Biener <rguenther@suse.de>
9592
9593 * doc/install.texi: Update CLooG and ISL requirements to
9594 0.18.0 and 0.11.1.
9595
8b0a1e0b
CB
95962013-01-16 Christian Bruel <christian.bruel@st.com>
9597
9598 PR target/55301
9599 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9600 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9601 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9602
96032013-01-16 DJ Delorie <dj@redhat.com>
9604
9605 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9606 (UNSPECV_SP_SWITCH_E): New.
9607 (sp_switch_1): Change to an unspec.
9608 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9609 replace $r15.
9610
96112013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
9612
9613 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9614 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9615 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9616 (expand_mem_thread_fence): Ditto.
9617 (expand_mem_signal_fence): Ditto.
9618 (expand_atomic_load): Ditto.
9619 (expand_atomic_store): Ditto.
9620
0bfbca58 96212013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
9622
9623 PR rtl-optimization/55547
9624 PR rtl-optimization/53827
9625 PR debug/53671
9626 PR debug/49888
9627 * alias.c (memrefs_conflict_p): Set sizes to negative after
9628 AND adjustments.
9629
305e3ac1
JJ
96302013-01-15 Jakub Jelinek <jakub@redhat.com>
9631
9632 PR target/55940
9633 * function.c (thread_prologue_and_epilogue_insns): Always
9634 add crtl->drap_reg to set_up_by_prologue.set, even if
9635 stack_realign_drap is false.
9636
f78ac4f2
JBG
96372013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9638
9639 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9640 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9641 *call): Fix indention.
9642
a78a8cc4
TV
96432013-01-15 Tom de Vries <tom@codesourcery.com>
9644
9645 PR target/55876
9646 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9647 Update comment.
9648
0e80383f
VM
96492013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9650
305e3ac1 9651 PR rtl-optimization/55153
0e80383f
VM
9652 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9653
207b5956
MJ
96542013-01-15 Martin Jambor <mjambor@suse.cz>
9655
9656 PR tree-optimization/55920
9657 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9658 accesses as grp_to_be_debug_replaced.
9659
a7818b54
JJ
96602013-01-15 Jakub Jelinek <jakub@redhat.com>
9661
9662 PR tree-optimization/55920
9663 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9664 there is non-useless type conversion needed from debug rhs to lhs,
9665 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9666
b0fe107e
JM
96672013-01-15 Joseph Myers <joseph@codesourcery.com>
9668 Mikael Pettersson <mikpe@it.uu.se>
9669
9670 PR target/43961
9671 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9672 Thumb.
9673 (ASM_OUTPUT_CASE_LABEL): Remove.
9674 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9675 * final.c (shorten_branches): Update alignment of labels before
9676 jump tables if CASE_VECTOR_SHORTEN_MODE.
9677
34ab62ee
RB
96782013-01-15 Richard Biener <rguenther@suse.de>
9679
9680 PR bootstrap/55961
9681 * system.h: Do not include gmp.h for building host tools.
9682
783a3a05
RB
96832013-01-15 Richard Biener <rguenther@suse.de>
9684
9685 PR middle-end/55882
9686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9687 account for bitpos when computing alignment.
9688
3a579e09
VY
96892013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9690
9691 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9692 (ix86_target_macros_internal): Likewise.
9693
9694 * config/i386/i386.c (m_CORE2I7): Removed.
9695 (m_CORE_HASWELL): New macro.
9696 (m_CORE_ALL): Likewise.
9697 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9698 (initial_ix86_arch_features): Likewise.
9699 (processor_target_table): Initializations for Core avx2.
9700 (cpu_names): New names "core-avx2".
9701 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9702 PROCESSOR_CORE_HASWELL.
9703 (ix86_issue_rate): New case.
9704 (ia32_multipass_dfa_lookahead): Likewise.
9705 (ix86_sched_init_global): Likewise.
9706
9707 * config/i386/i386.h (TARGET_HASWELL): New macro.
9708 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9709 (processor_type): New PROCESSOR_HASWELL.
9710
955f5a07
JJ
97112013-01-15 Jakub Jelinek <jakub@redhat.com>
9712
ff784829
JJ
9713 PR tree-optimization/55955
9714 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9715 *SHIFT_EXPR and *ROTATE_EXPR codes.
9716
955f5a07
JJ
9717 PR tree-optimization/48766
9718 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9719 -ftrapv disable -fwrapv.
9720
aeb8b4e9
GJL
97212013-01-14 Georg-Johann Lay <avr@gjlay.de>
9722
9723 PR target/55974
9724 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9725 etc. to 1 and not to __flash.
9726 Use LL suffix for __INT24_MAX__ with -mint8.
9727 Use ULL suffix for __UINT24_MAX__ with -mint8.
9728
1c494c6a
GJL
97292013-01-14 Georg-Johann Lay <avr@gjlay.de>
9730
9731 * config/avr/avr-arch.h
9732 (struct base_arch_s): Use typedef avr_arch_t instead.
9733 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9734 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9735 * config/avr/avr.c: Same.
9736 * config/avr/avr-devices.c: Same.
9737 * config/avr/driver-avr.c: Same.
9738 * config/avr/gen-avr-mmcu-texi.c: Same.
9739 * config/avr/avr-mcus.def: Adjust comment.
9740
a50344cb
TB
97412013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9742
88e784e6
UB
9743 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9744 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 9745
47876a2a 97462013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
9747 Andi Kleen <ak@linux.intel.com>
9748
9749 PR target/55948
9750 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9751 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9752 memmodel flag.
9753
00892272
GJL
97542013-01-14 Georg-Johann Lay <avr@gjlay.de>
9755
9756 * config/avr/avr-stdint.h: Remove trailing blanks.
9757 * config/avr/avr-log.h: Same.
9758 * config/avr/avr-arch.h: Same.
9759 * config/avr/avr-devices.c: Same.
9760 * config/avr/avr-dimode.md: Same.
9761 * config/avr/predicates.md: Same.
9762 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 9763
00892272
GJL
9764 * config/avr/avr-protos.h: Same. And:
9765 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9766 (init_cumulative_args): Rename to avr_init_cumulative_args.
9767 (expand_prologue): Rename to avr_expand_prologue.
9768 (expand_epilogue): Rename to avr_expand_epilogue.
9769 (adjust_insn_length): Rename to avr_adjust_insn_length.
9770 (notice_update_cc): Rename to avr_notice_update_cc.
9771 (final_prescan_insn): Rename to avr_final_prescan_insn.
9772 * config/avr/avr.c: Same.
9773 * config/avr/avr.h: Same.
9774 * config/avr/avr.md: Remove trailing blanks.
9775 (prologue): Use avr_expand_prologue.
9776 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9777
7bb01996
RB
97782013-01-14 Richard Biener <rguenther@suse.de>
9779
9780 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9781 verify_location, collect_subblocks): New functions.
9782 (verify_gimple_in_cfg): Verify that locations only reference
9783 BLOCKs in the functions BLOCK tree.
9784
2724573f
RB
97852013-01-14 Richard Biener <rguenther@suse.de>
9786
9787 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9788 PHI argument.
9789 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9790 unshare reference.
9791 (insert_out_of_ssa_copy_on_edge): Likewise.
9792 (rewrite_close_phi_out_of_ssa): Likewise.
9793 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9794 debug expressions.
9795 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9796 propagated constants.
9797 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9798 can not be shared.
9799
9a0bbab6
GJL
98002013-01-14 Georg-Johann Lay <avr@gjlay.de>
9801
9802 * config/avr/avr-modes.def: Add GPL copyright notice.
9803
45805f17
UB
98042013-01-13 Uros Bizjak <ubizjak@gmail.com>
9805
9806 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9807 MEMMODEL_MASK to determine memory model.
9808 (atomic_store<mode>): Ditto from operands[2].
9809 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9810
9d60be38
JJ
98112013-01-13 Jakub Jelinek <jakub@redhat.com>
9812
9813 PR fortran/55935
45805f17 9814 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
9815 (fold_gimple_assign): Don't call unshare_expr here.
9816 (fold_ctor_reference): Call unshare_expr.
9817
e7f49d92
TG
98182013-01-13 Terry Guo <terry.guo@arm.com>
9819
aaf1e810
EB
9820 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9821 * doc/fragments.texi: Document MULTILIB_REUSE.
9822 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 9823 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 9824 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
9825 (tmpmultilib4): Ditto.
9826 (multilib_reuse): New multilib argument.
9827
fbd03a27
RS
98282013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
9829
9830 * Makefile.in: Update copyright.
9831
b3681f13
TV
98322013-01-12 Tom de Vries <tom@codesourcery.com>
9833
9834 PR middle-end/55890
9835 * calls.c (expand_call): Check if arg_nr is valid.
9836
3f287e4b
MM
98372013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9838
9839 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9840 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
9841 documentation. Add missing '__' in front of
9842 __builtin_ia32_packssdw256.
3f287e4b 9843
1abcd5eb
AK
98442013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9845
9846 PR target/55719
9847 * config/s390/s390.c (s390_preferred_reload_class): Do not return
9848 NO_REGS for larl operands.
9849 (s390_reload_larl_operand): Use s390_load_address instead of
9850 emit_move_insn.
9851
980d0812
RB
98522013-01-11 Richard Biener <rguenther@suse.de>
9853
9854 * tree-cfg.c (verify_node_sharing_1): Split out from ...
9855 (verify_node_sharing): ... here.
9856 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9857
7cb9fd07
EB
98582013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9859
9860 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9861 Substitute TREECHECKING.
9862 * configure: Regenerate.
9863 * Makefile.in (TREECHECKING): New.
9864
47876a2a 98652013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
9866
9867 PR tree-optimization/44061
9868 * tree-vrp.c (extract_range_basic): Compute zero as
9869 value-range for __builtin_constant_p of function parameters.
9870
d1e082c2
RS
98712013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9872
45805f17 9873 Update copyright years.
d1e082c2 9874
f85021b0
VM
98752013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9876
9d60be38 9877 PR rtl-optimization/55672
0160442c
VM
9878 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9879 const to be eliminable.
f85021b0 9880
7a8b1ec4
DE
98812013-01-10 David Edelsohn <dje.gcc@gmail.com>
9882
9883 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9884 * configure: Regenerate.
9885
ad2e5b71
RB
98862013-01-10 Richard Biener <rguenther@suse.de>
9887
ddf9322d 9888 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 9889
ffc5b2bb
RB
98902013-01-10 Richard Biener <rguenther@suse.de>
9891
9892 PR bootstrap/55792
9893 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9894 locations for virtual PHI arguments.
9895 (rewrite_update_phi_arguments): Likewise.
9896
e1f674e4
JS
98972013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9898
9899 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9900 on to assembler.
9901
a57fc743
JJ
99022013-01-10 Jakub Jelinek <jakub@redhat.com>
9903
9904 PR tree-optimization/55921
9905 * tree-complex.c (expand_complex_asm): New function.
9906 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9907
0ff4390d
AK
99082013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9909
9910 PR target/55718
9911 * config/s390/s390.c (s390_symref_operand_p)
9912 (s390_loadrelative_operand_p): Merge the two functions.
9913 (s390_check_qrst_address, print_operand_address): Add parameters
9914 to s390_loadrelative_operand_p invokation.
9915 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9916 (s390_reload_larl_operand, s390_secondary_reload): Use
9917 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9918 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9919
6f557e0e
MS
99202013-01-09 Mike Stump <mikestump@comcast.net>
9921
9922 * dse.c (record_store): Remove unnecessary assert.
9923
7770c9e9
JH
99242013-01-09 Jan Hubicka <jh@suse.cz>
9925
9926 PR tree-optimization/55569
9927 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9928 * cfgloop.h (scale_loop_profile): Likewise.
9929
a19b1432
JH
99302013-01-09 Jan Hubicka <jh@suse.cz>
9931
9932 PR lto/45375
ddf9322d
UB
9933 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9934 functions.
a19b1432
JH
9935 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9936
9a002da8
RS
99372013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9938
9939 PR middle-end/55114
9940 * expr.h (maybe_emit_group_store): Declare.
9941 * expr.c (maybe_emit_group_store): New function.
9942 * builtins.c (expand_builtin_int_roundingfn): Call it.
9943 (expand_builtin_int_roundingfn_2): Likewise.
9944
511dcace
VM
99452013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9946
e1f2b729 9947 PR rtl-optimization/55829
511dcace
VM
9948 * lra-constraints.c (match_reload): Add code for absent output.
9949 (curr_insn_transform): Add code for reloads of matched inputs
9950 without output.
9951
7b0fe4f4
UB
99522013-01-09 Uros Bizjak <ubizjak@gmail.com>
9953
9954 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9955 attribute of movddup insn to DF.
9956 (*vec_interleave_lowv2df): Ditto.
9957 (vec_dupv2df): Ditto.
9958
870ca331
JH
99592013-01-09 Jan Hubicka <jh@suse.cz>
9960
9961 PR tree-optimiation/55875
9962 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9963 EVERY_ITERATION parameter.
7b0fe4f4 9964 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
9965 (idx_infer_loop_bounds): Similarly here.
9966 (n_of_executions_at_most): Simplify
9967 to only test for cases where statement is dominated by the
7b0fe4f4 9968 particular bound; handle correctly the "postdominance" test.
870ca331
JH
9969 (scev_probably_wraps_p): Use max loop iterations info
9970 as a global bound first.
9971
6f575fe4 99722013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
9973 Nick Clifton <nickc@redhat.com>
9974
9975 * config/v850/v850.md (cbranchsf4): New pattern.
9976 (cstoresf4): New pattern.
9977 (cbranchdf4): New pattern.
9978 (cstoredf4): New pattern.
9979 (movsicc): Disallow floating point comparisons.
9980 (cmpsf_le_insn): Fix order of operators.
9981 (cmpsf_lt_insn): Likewise.
9982 (cmpsf_eq_insn): Likewise.
9983 (cmpdf_le_insn): Likewise.
9984 (cmpdf_lt_insn): Likewise.
9985 (cmpdf_eq_insn): Likewise.
9986 (cmpsf_ge_insn): Use LE comparison.
9987 (cmpdf_ge_insn): Likewise.
9988 (cmpsf_gt_insn): Use LT comparison.
9989 (cmpdf_gt_insn): Likewise.
9990 (cmpsf_ne_insn): Delete pattern.
9991 (cmpdf_ne_insn): Delete pattern.
9992 * config/v850/v850.c (v850_gen_float_compare): Use
9993 gen_cmpdf_eq_insn for NE comparison.
9994 (v850_float_z_comparison_operator)
9995 (v850_float_nz_comparison_operator): Move from here ...
9996 * config/v850/predicates.md: ... to here. Move GT and GE
9997 comparisons into v850_float_z_comparison_operator.
9998 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9999 Delete prototype.
10000 (v850_float_nz_comparison_operator): Likewise.
10001
f0d54148
JDA
100022013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10003
10004 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10005 with calls to gen_insvsi/gen_insvdi.
10006
8f01beca
VK
100072013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10008
10009 * config/i386/i386.c (initial_ix86_tune_features): Set up
10010 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10011
2aa579ad
JJ
100122013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10013 Jakub Jelinek <jakub@redhat.com>
10014
10015 PR tree-optimization/48189
10016 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10017 If nitercst is 0, don't predict the exit edge.
10018
6edc3e32 100192013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
10020
10021 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10022 in asm_fprintf with reg_names.
10023 (aarch64_print_operand_address): Likewise.
10024 (aarch64_return_addr): Likewise.
10025 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10026
f6f94d94
JDA
100272013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10028
10029 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10030 (INT_U6_BITS): Likewise.
10031 * config/pa/predicates.md (uint6_operand): New predicate.
10032 (shift5_operand, shift6_operand): Likewise.
10033 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10034 arith32_operand.
10035 (lshrdi3): Use shift6_operand.
10036 (shrpsi4, shrpdi4): New insn patterns.
10037 (extzv): Delete expander.
10038 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10039 predicates in unamed zero extract patterns. Tighten common constraint.
10040 (extv): Delete expander.
10041 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10042 predicates in unamed sign extract patterns. Tighten common constraint.
10043 (insv): Delete expander.
10044 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10045 predicates in unamed insert patterns. Tighten common constraint.
10046 Change uint32_operand predicate to uint6_operand predicate in unamed
10047 DImode pattern to insert constant values of type 1...1xxxx.
10048
36b72910
JH
100492013-01-04 Jan Hubicka <jh@suse.cz>
10050
10051 PR tree-optimization/55823
7b0fe4f4
UB
10052 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10053 issue.
36b72910 10054
47876a2a 100552013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
10056 Uros Bizjak <ubizjak@gmail.com>
10057
10058 PR rtl-optimization/55845
10059 * df-problems.c (can_move_insns_across): Stop scanning at
10060 volatile_insn_p source instruction or give up if
10061 across_from .. across_to range contains any volatile_insn_p
10062 instructions.
10063
4369c11e
TB
100642013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10065
7b0fe4f4
UB
10066 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10067 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10068 Declare.
4369c11e 10069 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 10070 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 10071
aeb7e7c1
JJ
100722013-01-08 Jakub Jelinek <jakub@redhat.com>
10073
10074 PR fortran/55341
10075 * asan.c (asan_clear_shadow): New function.
10076 (asan_emit_stack_protection): Use it.
10077
a02ad1aa
TB
100782013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10079
10080 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10081 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10082 with tab instead of space.
10083
f90d87f5
NC
100842013-01-08 Nick Clifton <nickc@redhat.com>
10085
10086 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10087 register bank 0 at the start of an interrupt handler.
83ffd964
NC
10088 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10089 MDBH registers.
f90d87f5 10090
385eb93d
JG
100912013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10092
10093 * config/aarch64/aarch64-simd.md
10094 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10095 (aarch64_simd_bsl): Likewise.
10096 (aarch64_vcond_internal<mode>): Likewise.
10097 (vcond<mode><mode>): Likewise.
10098 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10099 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10100
4dcd1054
JG
101012013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10102
10103 * config/aarch64/aarch64-builtins.c
10104 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10105
4267a4a6
MJ
101062013-01-08 Martin Jambor <mjambor@suse.cz>
10107
10108 PR debug/55579
10109 * tree-sra.c (analyze_access_subtree): Return true also after
10110 potentially creating a debug-only replacement.
10111
5f4e6de3
JJ
101122013-01-08 Jakub Jelinek <jakub@redhat.com>
10113
3138f224
JJ
10114 PR middle-end/55890
10115 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10116
5f4e6de3
JJ
10117 PR tree-optimization/54120
10118 * tree-vrp.c (range_fits_type_p): Don't allow
10119 src_precision < precision from signed vr to unsigned_p
10120 if vr->min or vr->max is negative.
10121 (simplify_float_conversion_using_ranges): Test can_float_p
10122 against CODE_FOR_nothing.
10123
f3ef18ff
JJ
101242013-01-08 Jakub Jelinek <jakub@redhat.com>
10125 Richard Biener <rguenther@suse.de>
10126
10127 PR middle-end/55851
10128 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10129 types instead of just INTEGER_TYPE types.
10130
25c210f9
MK
101312013-01-07 Mark Kettenis <kettenis@openbsd.org>
10132
10133 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10134 TF_SIZE): Define.
f90d87f5 10135
81826a7b
SE
101362013-01-07 Steve Ellcey <sellcey@mips.com>
10137
10138 PR target/42661
10139 * config/mips/mips.opt: Change mad to mmad to match documentation.
10140
35678514
GJL
101412013-01-07 Georg-Johann Lay <avr@gjlay.de>
10142
10143 PR target/55897
10144 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10145 .progmemx.data now.
10146
e5669488
GJL
101472013-01-07 Georg-Johann Lay <avr@gjlay.de>
10148
10149 PR target/55897
10150 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10151 (avr_addrspace_t): Add .section_name field.
10152 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10153 array size.
10154 (avr_addrspace): Same. Initialize .section_name. Remove last
10155 NULL entry. Put __memx into .progmemx.data.
10156 (progmem_section_prefix): Remove.
10157 (avr_asm_init_sections): No need to initialize progmem_section.
10158 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10159 section name prefix.
10160 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10161 retrieve the progmem section.
10162 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10163 boundary to run over avr_addrspace[].
10164 (avr_register_target_pragmas): Ditto.
10165
656e6f37
JJ
101662013-01-06 Jakub Jelinek <jakub@redhat.com>
10167
10168 * varasm.c (output_constant_def_contents): For asan_protect_global
10169 protected strings, adjust DECL_ALIGN if needed, before testing for
10170 anchored symbols.
10171 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10172 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10173 normal decls.
10174 (output_object_block): For asan protected decls, emit asan padding
10175 after their contents.
10176 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10177 (asan_finish_file): Test it here instead.
10178
6edc3e32
UB
101792013-01-07 Nick Clifton <nickc@redhat.com>
10180 Matthias Klose <doko@debian.org>
10181 Doug Kwan <dougkwan@google.com>
10182 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
10183
10184 PR driver/55470
10185 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10186
10187 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10188
10189 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10190
7b0fe4f4 10191 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
10192
10193 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10194
2a095093
GJL
101952013-01-07 Georg-Johann Lay <avr@gjlay.de>
10196
f3b503f4 10197 PR target/54461
2a095093
GJL
10198 * doc/install.texi (Cross-Compiler-Specific Options): Document
10199 --with-avrlibc.
10200
383f9b34
TB
102012013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10202
10203 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10204 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10205 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10206 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10207 vqmovun_high_s64): Fix source operand number and update copyright.
10208
3626621a
RB
102092013-01-07 Richard Biener <rguenther@suse.de>
10210
10211 PR middle-end/55890
10212 * gimple.h (gimple_call_builtin_p): New overload.
10213 * gimple.c (validate_call): New function.
10214 (gimple_call_builtin_p): Likewise.
10215 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10216 Use gimple_call_builtin_p.
10217 (find_func_clobbers): Likewise.
10218 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10219 (strlen_optimize_stmt): Likewise.
10220
8b2ea410
JG
102212013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10222
10223 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10224 (vld1q_dup_*): Likewise.
10225 (vld1_*): Likewise.
10226 (vld1q_*): Likewise.
10227 (vld1_lane_*): Likewise.
10228 (vld1q_lane_*): Likewise.
10229
9713d329
RB
102302013-01-07 Richard Biener <rguenther@suse.de>
10231
10232 * lto-streamer.h (LTO_minor_version): Bump to 2.
10233
3520f7cc
JG
102342013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10235
10236 * config/aarch64/aarch64-protos.h
10237 (aarch64_const_double_zero_rtx_p): Rename to...
10238 (aarch64_float_const_zero_rtx_p): ...this.
10239 (aarch64_float_const_representable_p): New.
10240 (aarch64_output_simd_mov_immediate): Likewise.
10241 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10242 move immediate case.
10243 * config/aarch64/aarch64.c
10244 (aarch64_const_double_zero_rtx_p): Rename to...
10245 (aarch64_float_const_zero_rtx_p): ...this.
10246 (aarch64_print_operand): Allow printing of new constants.
10247 (aarch64_valid_floating_const): New.
10248 (aarch64_legitimate_constant_p): Check for valid floating-point
10249 constants.
10250 (aarch64_simd_valid_immediate): Likewise.
10251 (aarch64_vect_float_const_representable_p): New.
10252 (aarch64_float_const_representable_p): Likewise.
10253 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10254 (aarch64_output_simd_mov_immediate): New.
10255 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10256 (*movdf_aarch64): Likewise.
10257 * config/aarch64/constraints.md (Ufc): New.
10258 (Y): call aarch64_float_const_zero_rtx.
10259 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10260
e167c04d
RB
102612013-01-07 Richard Biener <rguenther@suse.de>
10262
10263 PR tree-optimization/55888
10264 PR tree-optimization/55862
10265 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10266 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10267 not if it is contained therein.
10268
0139aaab
GJL
102692013-01-07 Georg-Johann Lay <avr@gjlay.de>
10270
10271 * config/avr/t-avr: Typo.
10272
4a176b23
GJL
102732013-01-07 Georg-Johann Lay <avr@gjlay.de>
10274
10275 PR55243
10276 * config/avr/t-avr: Don't automatically rebuild
10277 $(srcdir)/config/avr/t-multilib
10278 $(srcdir)/config/avr/avr-tables.opt
10279 $(srcdir)/doc/avr-mmcu.texi
10280 (avr-mcus): New phony target to build them on request.
10281 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10282 * avr/avr-mcus.def: Adjust comments.
10283
c7afdc98
UB
102842013-01-07 Uros Bizjak <ubizjak@gmail.com>
10285
10286 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10287
1ab05c31
RS
102882013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10289
10290 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10291
488e3acc
RS
102922013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10293
10294 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10295
a89599d2
DE
102962013-01-05 David Edelsohn <dje.gcc@gmail.com>
10297
10298 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10299 to generate profiling.
10300 * config/rs6000/aix64.h (LIB_SPEC): Same.
10301
70f09188
AP
103022013-01-04 Andrew Pinski <apinski@cavium.com>
10303
10304 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10305 New function.
10306 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10307
918d445f
UB
103082013-01-04 Uros Bizjak <ubizjak@gmail.com>
10309
10310 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10311 unconditionally.
10312 (ix86_expand_move): Ditto.
10313 (ix86_zero_extend_to_Pmode): Ditto.
10314 (ix86_expand_call): Ditto.
10315 (ix86_expand_special_args_builtin): Ditto.
10316 (ix86_expand_builtin): Ditto.
10317
361618ec
RB
103182013-01-04 Richard Biener <rguenther@suse.de>
10319
10320 PR tree-optimization/55862
10321 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10322 translating them through PHI nodes.
10323
87eab554
MJ
103242013-01-04 Martin Jambor <mjambor@suse.cz>
10325
10326 PR tree-optimization/55755
10327 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10328 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10329
33879b9f
MP
103302013-01-04 Marek Polacek <polacek@redhat.com>
10331
10332 PR middle-end/55859
10333 * opts.c (default_options_optimization): Clarify error message.
10334
3068819a
RB
103352013-01-04 Richard Biener <rguenther@suse.de>
10336
10337 PR middle-end/55863
10338 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10339 reassociation.
10340
0e4ae794
JDA
103412013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10342
10343 PR target/53789
10344 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
10345 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10346 references.
0e4ae794 10347
65c88cef
RH
103482013-01-03 Richard Henderson <rth@redhat.com>
10349
10350 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10351 after eliminating TLS symbols.
10352
8ac16127
MG
103532013-01-03 Marc Glisse <marc.glisse@inria.fr>
10354
10355 PR bootstrap/50167
10356 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10357 * graphite-poly.c (debug_gmp_value): Likewise.
10358
bb664f09
UB
103592013-01-03 Uros Bizjak <ubizjak@gmail.com>
10360
10361 PR target/55712
10362 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10363 selected code model, define __code_mode_small__, __code_model_medium__,
10364 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10365 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10366 xchg temporary register with %k. Declare temporary register as
10367 early clobbered.
10368 [__x86_64__]: For medium and large code models, preserve %rbx register.
10369
bcf1ef00
RB
103702013-01-03 Richard Biener <rguenther@suse.de>
10371
0506634a 10372 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
10373 (dump_subscript): Adjust.
10374 (finalize_ddr_dependent): Do not dump redundant info.
10375 (analyze_siv_subscript): Adjust.
10376 (subscript_dependence_tester): Likewise.
10377 (compute_affine_dependence): Likewise.
10378
59fd17e3
RB
103792013-01-03 Richard Biener <rguenther@suse.de>
10380
10381 Revert
10382 2013-01-03 Richard Biener <rguenther@suse.de>
10383
10384 PR tree-optimization/55857
10385 * tree-vect-stmts.c (vectorizable_load): Do not setup
10386 re-alignment for invariant loads.
10387
10388 2013-01-02 Richard Biener <rguenther@suse.de>
10389
10390 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10391 invariant load do not generate a vector load from the scalar location.
59fd17e3 10392
595c2679
RB
103932013-01-03 Richard Biener <rguenther@suse.de>
10394
10395 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10396 for not vectorizing.
10397 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10398 not build INDIRECT_REFs, call get_name once only.
10399 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10400 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10401
90bb7d7a
RB
104022013-01-03 Richard Biener <rguenther@suse.de>
10403
10404 PR tree-optimization/55857
10405 * tree-vect-stmts.c (vectorizable_load): Do not setup
10406 re-alignment for invariant loads.
10407
f09b77ca
RB
104082013-01-03 Richard Biener <rguenther@suse.de>
10409
10410 PR lto/55848
10411 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10412 prefer a built-in decl.
10413
3461a16e
JJ
104142013-01-03 Jakub Jelinek <jakub@redhat.com>
10415
df8e2b4f
JJ
10416 * gcc.c (process_command): Update copyright notice dates.
10417 * gcov.c (print_version): Likewise.
10418 * gcov-dump.c (print_version): Likewise.
10419
3461a16e
JJ
10420 PR rtl-optimization/55838
10421 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10422 iv0.step, iv1.step and step.
10423
8b5546d6
JJ
104242013-01-03 Jakub Jelinek <jakub@redhat.com>
10425 Marc Glisse <marc.glisse@inria.fr>
10426
10427 PR tree-optimization/55832
10428 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10429 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10430 integer_{one,zero}_node.
10431
8ab1d2e9
JJ
104322013-01-03 Jakub Jelinek <jakub@redhat.com>
10433
10434 PR debug/54402
10435 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10436 * var-tracking.c (reverse_op): Don't add reverse ops to
10437 VALUEs that have already
0506634a 10438 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 10439
5b9ad1d4
GP
104402013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10441
10442 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10443
e25a6711
TJ
104442013-01-02 Teresa Johnson <tejohnson@google.com>
10445
10446 * dumpfile.c (dump_loc): Print filename with location.
10447 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10448 new location_t parameter to emit complete unroll message with
10449 new dump framework.
10450 (canonicalize_loop_induction_variables): Compute loops location
10451 and pass to try_unroll_loop_completely.
10452 * loop-unroll.c (report_unroll_peel): New function.
10453 (peel_loops_completely): Use new dump format with location
10454 for main dumpfile message, and invoke report_unroll_peel on success.
10455 (decide_unrolling_and_peeling): Ditto.
10456 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10457 by report_unroll_peel.
10458 (decide_peel_completely): Ditto.
10459 (decide_unroll_constant_iterations): Ditto.
10460 (decide_unroll_runtime_iterations): Ditto.
10461 (decide_peel_simple): Ditto.
10462 (decide_unroll_stupid): Ditto.
10463 * cfgloop.c (get_loop_location): New function.
10464 * cfgloop.h (get_loop_location): Declare.
10465
77878621
ST
104662013-01-02 Sriraman Tallam <tmsriram@google.com>
10467
10468 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10469 NULL.
10470
9e65d03e
JDA
104712013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10472
10473 PR middle-end/55198
10474 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10475 BLKmode objects when EXPAND_MEMORY is specified.
10476
6a7da30f
ST
104772013-01-02 Sriraman Tallam <tmsriram@google.com>
10478
10479 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10480 in loop predicate.
10481 (fold_builtin_cpu): Do not share cpu model decls across statements.
10482
e78167f2
JM
104832013-01-02 Jason Merrill <jason@redhat.com>
10484
10485 PR c++/55804
10486 * tree.c (build_array_type_1): Revert earlier change.
10487
8c075fb4
YZ
104882013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10489
10490 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10491 "cortex-a57".
10492 * config/aarch64/aarch64-tune.md: Re-generate.
10493
0682ed3e
RB
104942013-01-02 Richard Biener <rguenther@suse.de>
10495
10496 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 10497 invariant load do not generate a vector load from the scalar location.
0682ed3e 10498
b8f6a302
RB
104992013-01-02 Richard Biener <rguenther@suse.de>
10500
10501 PR bootstrap/55784
10502 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10503 * configure: Regenerate.
10504
04b80dbb
RS
105052013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10506
10507 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10508 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10509 (expand_builtin_int_roundingfn_2): Keep the original target around
10510 for the fallback case.
10511
635b0b0c
RS
105122013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10513
10514 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10515 to be clear for sign changes.
10516
42d57399
JH
105172013-01-01 Jan Hubicka <jh@suse.cz>
10518
10519 * ipa-inline-analysis.c: Fix formatting.
10520
5bb6669d
JJ
105212013-01-01 Jakub Jelinek <jakub@redhat.com>
10522
10523 PR tree-optimization/55831
10524 * tree-vect-loop.c (get_initial_def_for_induction): Use
10525 gsi_after_labels instead of gsi_start_bb.
ad41bd84 10526\f
86a2db33 10527Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
10528
10529Copying and distribution of this file, with or without modification,
10530are permitted in any medium without royalty provided the copyright
10531notice and this notice are preserved.