]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
avr.c, [...]: Where applicable...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
b64925dc
SB
12013-03-23 Steven Bosscher <steven@gcc.gnu.org>
2
3 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
11 BARRIER_P instead of GET_CODE.
12
b9aaf52e
EB
132013-03-23 Eric Botcazou <ebotcazou@adacore.com>
14
15 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
16 inaccuracy in the probing code.
17
18 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
19 (ctrapdi4): Likewise.
20
66de4d7c
EB
212013-03-23 Eric Botcazou <ebotcazou@adacore.com>
22
23 * calls.c (expand_call): Add missing guard to code handling return
24 of non-BLKmode structures in MSB.
25 * function.c (expand_function_end): Likewise.
26
4f25c8fb
EB
272013-03-23 Eric Botcazou <ebotcazou@adacore.com>
28
29 * combine.c (try_combine): Adjust comment. Do not add the set of
30 insn #0 if the destination indirectly is set or dies in insn #2.
31 Tidy up code to distribute a new note.
32
23b7850d
UB
332013-03-22 Uros Bizjak <ubizjak@gmail.com>
34
35 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
36 also for alternatives 16 and 17.
37
bed852cf
UB
382013-03-22 Uros Bizjak <ubizjak@gmail.com>
39
40 * config/i386/sse.md (*mov<mode>_internal): Merge with
41 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
42 Emit insn template depending on type attribute. Use
43 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
44 movd instead of movq mnemonic for interunit moves. Rewrite mode
45 attribute calculation. Remove unit attribute calculation.
46 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
47 Set prefix_data16 attribute for DImode ssemov types.
48 Use Ym instead of y for SSE-MMX conversion alternatives.
49 Reorder operand constraints.
50
1e8a7937
SB
512013-03-22 Steven Bosscher <steven@gcc.gnu.org>
52
53 * df.h (df_insn_delete): Adjust prototype.
54 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
55 and let it decide whether mark the basic block dirty.
56 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
57 * df-scan.c (df_insn_info_delete): New helper function, split
58 off from df_insn_delete.
59 (df_scan_free_bb_info): Use it.
60 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
61 Likewise.
62 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
63 that the insn is actually an insn and it has a non-NULL basic block.
64 Do not mark basic block dirty if only deleting a DEBUG_INSN.
65
e14d094c
RB
662013-03-22 Richard Biener <rguenther@suse.de>
67
68 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
69 dep_ref members.
70 (mem_ref_alloc): Do not allocate them.
71 (refs_independent_p): Do not query or maintain a cache.
72
e9cf7316
RB
732013-03-22 Richard Biener <rguenther@suse.de>
74
75 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
76 (gather_mem_refs_in_loops): Do not compute it.
77 (analyze_memory_references): Do not allocate it.
78 (tree_ssa_lim_finalize): Do not free it.
79 (for_all_locs_in_loop): Do not query all_refs_in_loop.
80
f046e81b
RB
812013-03-22 Richard Biener <rguenther@suse.de>
82
83 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 84
a05c0ddf
IB
852013-03-22 Ian Bolton <ian.bolton@arm.com>
86
87 * config/aarch64/aarch64.c (aarch64_print_operand): New
88 format specifier for printing a constant in hex.
89 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
90 format specifier for printing second operand.
91
c00217fc
RB
922013-03-22 Richard Biener <rguenther@suse.de>
93
94 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
95 bitmaps.
96 (gather_mem_refs_in_loops): Perform store accumulation here.
97 (create_vop_ref_mapping_loop): Remove.
98 (create_vop_ref_mapping): Likewise.
99 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 100 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
101 (record_indep_loop): Remove.
102 (record_dep_loop): New function.
103 (ref_indep_loop_p_1): Adjust to only walk over references
104 in the loop, not its subloops.
105 (ref_indep_loop_p): Rename to ...
106 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
107 maintaining a more fine-grained cache.
108 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
109 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
110
15d19bf8
RB
1112013-03-22 Richard Biener <rguenther@suse.de>
112
113 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
114 (struct mem_ref): Make accesses_in_loop a vec of a vec of
115 aggregate mem_ref_loc.
116 (free_mem_ref_locs): Inline into ...
117 (memref_free): ... this and adjust.
118 (mem_ref_alloc): Adjust.
119 (mem_ref_locs_alloc): Remove.
120 (record_mem_ref_loc): Adjust.
121 (get_all_locs_in_loop): Rewrite into ...
122 (for_all_locs_in_loop): ... this iterator.
123 (rewrite_mem_ref_loc): New functor.
124 (rewrite_mem_refs): Use for_all_locs_in_loop.
125 (sm_set_flag_if_changed): New functor.
126 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
127 (ref_always_accessed): New functor.
128 (ref_always_accessed_p): Use for_all_locs_in_loop.
129
6f37411d
MG
1302013-03-21 Marc Glisse <marc.glisse@inria.fr>
131
132 * tree-pass.h (PROP_gimple_lvec): New.
133 * passes.c (dump_properties): Handle PROP_gimple_lvec.
134 (init_optimization_passes): Move pass_lower_vector.
135 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
136 PROP_gimple_lvec.
137 (pass_lower_vector): Provide PROP_gimple_lvec.
138 (pass_lower_vector_ssa): Likewise.
139 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
140
511ef689
MW
1412013-03-21 Mark Wielaard <mjw@redhat.com>
142
143 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
144
cc1df30b
UB
1452013-03-21 Uros Bizjak <ubizjak@gmail.com>
146
147 * config/i386/i386.md (*movdi_internal): Disparage slightly
148 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
149 conversion alternatives.
150
c845cfe1
JJ
1512013-03-21 Jakub Jelinek <jakub@redhat.com>
152
37e99116
JJ
153 PR middle-end/48087
154 * diagnostic.def (DK_WERROR): New kind.
155 * diagnostic.h (werrorcount): Define.
156 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
157 promoted to DK_ERROR, increment DK_WERROR counter instead of
158 DK_ERROR counter.
159 * toplev.c (toplev_main): Call print_ignored_options even if
160 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
161 even if just werrorcount is non-zero.
162
c845cfe1
JJ
163 PR debug/55608
164 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
165 on failure.
166 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
167 (string_cst_pool_decl): New function.
168 (optimize_one_addr_into_implicit_ptr): New function.
169 (resolve_addr_in_expr): Optimize DWARF location expression
170 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
171 which doesn't live in memory, but has DW_AT_location or
172 DW_AT_const_value, or refers to a string literal, into
173 DW_OP_GNU_implicit_pointer.
174 (optimize_location_into_implicit_ptr): New function.
175 (resolve_addr): If removing DW_AT_location of a variable because
176 it was DW_OP_addr of address of the variable, but the variable doesn't
177 live in memory, try to emit const value attribute for the initializer.
178
08e0cda6
MG
1792013-03-21 Marc Glisse <marc.glisse@inria.fr>
180
181 * tree.h (VECTOR_TYPE_P): New macro.
182 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
183 TYPE_MODE): Use it.
184 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
185 VEC_COND_EXPR cannot be lvalues.
186 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
187
d08633b4
MG
1882013-03-21 Marc Glisse <marc.glisse@inria.fr>
189
190 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
191 Restrict the transformation to equal modes.
192
e6647190
RB
1932013-03-21 Richard Biener <rguenther@suse.de>
194
195 PR tree-optimization/39326
196 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
197 (MEM_ANALYZABLE): Adjust.
198 (record_mem_ref_loc): Move bitmap ops ...
199 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
200 unanalyzable refs, do not record locations for it.
201 (analyze_memory_references): Allocate ref zero as shared
202 unanalyzable ref.
203 (refs_independent_p): Do not test for unanalyzed mems here.
204 (ref_indep_loop_p_1): Special-case disambiguation against
205 the unanalyzed ref.
cc1df30b 206 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 207
65074f54
CL
2082013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
209
210 * config/arm/arm-protos.h (tune_params): Add
211 prefer_neon_for_64bits field.
212 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
213 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
214 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
215 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
216 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
217 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
218 (arm_option_override): Handle -mneon-for-64bits new option.
219 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
220 (prefer_neon_for_64bits): Declare new variable.
221 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 222 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
223 (arch_enabled): Handle new arch types. Remove support for onlya8
224 and nota8.
225 (one_cmpldi2): Use new arch names.
bc5faa5b 226 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
227 * config/arm/arm.opt (mneon-for-64bits): Add option.
228 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
229 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
230 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
231 of onlya8.
232 * doc/invoke.texi (-mneon-for-64bits): Document.
233
5a2d2a79
RB
2342013-03-21 Richard Biener <rguenther@suse.de>
235
236 PR tree-optimization/39326
237 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
238 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 239 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 240
5abe1e05
RB
2412013-03-21 Richard Biener <rguenther@suse.de>
242
243 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
244 (vect_insert_into_interleaving_chain): Likewise.
245 (vect_drs_dependent_in_basic_block): Inline ...
246 (vect_slp_analyze_data_ref_dependence): ... here. New function,
247 split out from ...
248 (vect_analyze_data_ref_dependence): ... here. Simplify.
249 (vect_check_interleaving): Simplify.
250 (vect_analyze_data_ref_dependences): Likewise. Split out ...
251 (vect_slp_analyze_data_ref_dependences): ... this new function.
252 (dr_group_sort_cmp): New function.
253 (vect_analyze_data_ref_accesses): Compute data-reference groups
254 here instead of in vect_analyze_data_ref_dependence. Use
255 a more efficient algorithm.
256 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
257 vect_slp_analyze_data_ref_dependences. Call
258 vect_analyze_data_ref_accesses earlier.
259 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
260 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
261 (vect_slp_analyze_data_ref_dependences): New prototype.
262
cad1735b
RB
2632013-03-21 Richard Biener <rguenther@suse.de>
264
265 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
266 ref is stored in the loop.
267 (find_refs_for_sm): Walk only over all stores.
268 (store_motion_loop): Allocate from lim_bitmap_obstack.
269 (store_motion): Likewise.
270
141310ef
RB
2712013-03-21 Richard Biener <rguenther@suse.de>
272
273 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
274 Update virtual SSA form.
275
5022315a
RO
2762013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
277
278 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
279 * configure: Regenerate.
280 * config.in: Regenerate.
281 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
282 if !HAVE_LD_EH_FRAME_CIEV3.
283
50d4421c
RB
2842013-03-21 Richard Biener <rguenther@suse.de>
285
286 * tree-cfg.c (verify_expr_no_block): New function.
287 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
288 nor DECL_VALUE_EXPR have locations with associated blocks.
289 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
290 (clear_unused_block_pointer): Remove code dealing with
291 blocks in DECL_DEBUG_EXPR locations.
292
839b422f
RB
2932013-03-21 Richard Biener <rguenther@suse.de>
294
295 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
296 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
297 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
298 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
299 instead of DECL_DEBUG_EXPR_IS_FROM.
300 * gimplify.c (gimplify_modify_expr): Likewise.
301 * tree-cfg.c (verify_expr_location_1): Likewise.
302 * tree-complex.c (create_one_component_var): Likewise.
303 * tree-sra.c (create_access_replacement): Likewise.
304 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
305 (clear_unused_block_pointer): Likewise.
306 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
307 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
308 * var-tracking.c (var_debug_decl): Likewise.
309 (track_expr_p): Likewise.
310 * tree-inline.c (add_local_variables): Likewise. Set
311 DECL_HAS_DEBUG_EXPR_P after copying it.
312 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
313 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
314
fe04878d
UB
3152013-03-21 Uros Bizjak <ubizjak@gmail.com>
316
317 PR bootstrap/56656
318 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
319 * configure: Regenerate.
320 * config.in: Regenerate.
321 * config/i386/i386.md (*movdf_internal): Use
322 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
323 movd instead of movq mnemonic for interunit moves.
324 (*movdi_internal): Ditto.
325
bd059b26 3262013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
327
328 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
329 (abd<mode>_3): New pattern.
330 (aba<mode>_3): New pattern.
331 (fabd<mode>_3): New pattern.
332
bd059b26 3332013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
334
335 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
336 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
337 occurrence of REGISTER_PREFIX as its empty string.
338
4f1f78b9
JL
3392013-03-20 Jeff Law <law@redhat.com>
340
341 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
342 addititional equivalences for equality comparisons between an SSA_NAME
343 and a constant where the SSA_NAME was set from a widening conversion.
344
327a1118
WL
3452013-03-20 Walter Lee <walt@tilera.com>
346
347 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
348
813e0036
UB
3492013-03-20 Uros Bizjak <ubizjak@gmail.com>
350
351 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
352 depending on type attribute.
353 (*movti_internal): Ditto.
354 (*movtf_internal): Ditto.
355 (*movxf_internal): Ditto.
356 (*movdf_internal): Ditto.
357 (*movsf_internal): Ditto.
358
7cf34aae
UB
3592013-03-20 Uros Bizjak <ubizjak@gmail.com>
360
361 * config/i386/i386.md (*movti_internal): Set prefix attribute to
362 maybe_vex for sselog1 and ssemov types.
363 (*movdi_internal): Reorder operand constraints.
364 (*movsi_internal): Ditto. Set prefix attribute to
365 maybe_vex for sselog1 and ssemov types.
366 (*movtf_internal): Set prefix attribute to maybe_vex
367 for sselog1 and ssemov types.
368 (*movdf_internal): Ditto. Set prefix_data16 attribute for
369 DImode ssemov types. Reorder operand constraints.
370 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
371 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
372 attribute for SImode ssemov types. Reorder operand constraints.
373
19321415
MJ
3742013-03-20 Martin Jambor <mjambor@suse.cz>
375
376 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
377 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
378
c6d5ff83
MM
3792013-03-20 Pat Haugen <pthaugen@us.ibm.com>
380
381 * config/rs6000/predicates.md (indexed_address, update_address_mem
382 update_indexed_address_mem): New predicates.
383 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
384 attribute for load/store instructions.
385 * config/rs6000/dfp.md (movsd_store): Likewise.
386 (movsd_load): Likewise.
387 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
388 (unnamed HI->DI extend define_insn): Likewise.
389 (unnamed SI->DI extend define_insn): Likewise.
390 (unnamed QI->SI extend define_insn): Likewise.
391 (unnamed QI->HI extend define_insn): Likewise.
392 (unnamed HI->SI extend define_insn): Likewise.
393 (unnamed HI->SI extend define_insn): Likewise.
394 (extendsfdf2_fpr): Likewise.
395 (movsi_internal1): Likewise.
396 (movsi_internal1_single): Likewise.
397 (movhi_internal): Likewise.
398 (movqi_internal): Likewise.
399 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
400 attribute for load/store instructions.
401 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
402 instructions.
403 (mov<mode>_softfloat): Likewise.
404 (mov<mode>_hardfloat32): Likewise.
405 (mov<mode>_hardfloat64): Likewise.
406 (mov<mode>_softfloat64): Likewise.
407 (movdi_internal32): Likewise.
408 (movdi_internal64): Likewise.
409 (probe_stack_<mode>): Likewise.
410
4112013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
412
413 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
414 floating point, and decimal floating point to reload iterator.
415
416 * config/rs6000/constraints.md (wl constraint): New constraints to
417 return FLOAT_REGS if certain options are used to reduce the number
418 of separate patterns that exist in the file.
419 (wx constraint): Likewise.
420 (wz constraint): Likewise.
421
422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
423 -mdebug=reg, print wg, wl, wx, and wz constraints.
424 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
425 Initialize the reload functions for 64-bit binary/decimal floating
426 point types.
427 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
428 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
429 create the buffer on the stack to overcome not having a 32-bit
430 load and store.
431 (rs6000_emit_move): Likewise.
432 (rs6000_secondary_memory_needed_rtx): Likewise.
433 (rs6000_alloc_sdmode_stack_slot): Likewise.
434 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
435 via xxlxor, just like DFmode 0.0.
436
437 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
438 define as 1 if we are running on a power7 or newer.
439 (enum r6000_reg_class_enum): Add new constraints.
440
441 * config/rs6000/dfp.md (movsd): Delete, combine with binary
442 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
443 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 444 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
445 (movsd splitter): Likewise.
446 (movsd_hardfloat): Likewise.
447 (movsd_softfloat): Likewise.
448
449 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
450 binary and decimal floating point moves.
451 (fmove_ok): New attributes to combine binary and decimal floating
452 point moves, and to combine power6x (mfpgpr) moves along normal
453 floating moves.
454 (real_value_to_target): Likewise.
455 (f32_lr): Likewise.
456 (f32_lm): Likewise.
457 (f32_li): Likewise.
458 (f32_sr): Likewise.
459 (f32_sm): Likewise.
460 (f32_si): Likewise.
461 (movsf): Combine binary and decimal floating point moves. Combine
462 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 463 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
464 (mov<mode> for SFmode/SDmode); Likewise.
465 (SFmode/SDmode splitters): Likewise.
466 (movsf_hardfloat): Likewise.
467 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
468 (movsf_softfloat): Likewise.
469 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
470
471 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
472 wx and wz constraints.
473
474 * config/rs6000/constraints.md (wg constraint): New constraint to
475 return FLOAT_REGS if -mmfpgpr (power6x) was used.
476
477 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
478 constraint.
479
480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
481 -mdebug=reg, print wg, wl, wx, and wz constraints.
482 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
483 Initialize the reload functions for 64-bit binary/decimal floating
484 point types.
485 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
486 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
487 create the buffer on the stack to overcome not having a 32-bit
488 load and store.
489 (rs6000_emit_move): Likewise.
490 (rs6000_secondary_memory_needed_rtx): Likewise.
491 (rs6000_alloc_sdmode_stack_slot): Likewise.
492 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
493 via xxlxor, just like DFmode 0.0.
494
c6d5ff83
MM
495 * config/rs6000/dfp.md (movdd): Delete, combine with binary
496 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
497 with other moves by using conditional constraits (wg). Use LFIWZX
498 and STFIWX for loading SDmode on power7.
499 (movdd splitters): Likewise.
500 (movdd_hardfloat32): Likewise.
501 (movdd_softfloat32): Likewise.
502 (movdd_hardfloat64_mfpgpr): Likewise.
503 (movdd_hardfloat64): Likewise.
504 (movdd_softfloat64): Likewise.
505
506 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
507 64-bit binary and decimal floating point moves.
508 (FMOVE64X): Likewise.
509 (movdf): Combine 64-bit binary and decimal floating point moves.
510 Combine power6x (mfpgpr) moves with other moves by using
511 conditional constraits (wg).
512 (mov<mode> for DFmode/DDmode): Likewise.
513 (DFmode/DDmode splitters): Likewise.
514 (movdf_hardfloat32): Likewise.
515 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
516 (movdf_softfloat32): Likewise.
517 (movdf_hardfloat64_mfpgpr): Likewise.
518 (movdf_hardfloat64): Likewise.
519 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
520 (movdf_softfloat64): Likewise.
521 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
522 (reload_<mode>_load): Move to later in the file so they aren't in
523 the middle of the floating point move insns.
524 (reload_<mode>_store): Likewise.
525
526 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
527 constraint.
528
529 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
530 constraint if -mdebug=reg.
bd059b26
UB
531 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
532 Enable using dd reload support if needed.
c6d5ff83
MM
533
534 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
535 binary and decimal floating point moves in rs6000.md.
536 (movtd_internal): Likewise.
537
538 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
539 decimal floating point moves.
540 (movtf): Likewise.
541 (movtf_internal): Likewise.
542 (mov<mode>_internal, TDmode/TFmode): Likewise.
543 (movtf_softfloat): Likewise.
544 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
545
546 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
547 movdi_internal64, using wg constraint for move direct operations.
548 (movdi_internal64): Likewise.
549
550 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
551 MODES_TIEABLE_P for selected modes. Print the numerical value of
552 the various virtual registers. Use GPR/FPR first/last values,
553 instead of hard coding the register numbers. Print which modes
554 have reload functions registered.
bd059b26
UB
555 (rs6000_option_override_internal): If -mdebug=reg, trace the options
556 settings before/after setting cpu, target and subtarget settings.
557 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
558 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
559 (rs6000_secondary_reload_fail): Likewise.
560 (rs6000_secondary_reload_inner): Likewise.
561
562 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
563 macros for first/last GPR and FPR registers.
564 (LAST_GPR_REGNO): Likewise.
565 (FIRST_FPR_REGNO): Likewise.
566 (LAST_FPR_REGNO): Likewise.
567
568 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
569 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
570 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
571 (vcond<mode><mode>): Likewise.
572 (vcondu<mode><mode>): Likewise.
573 (vector_gtu<mode>): Likewise.
574 (vector_gte<mode>): Likewise.
575 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 576 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
577 (ior<mode>3): Likewise.
578 (and<mode>3): Likewise.
579 (one_cmpl<mode>2): Likewise.
580 (nor<mode>3): Likewise.
581 (andc<mode>3): Likewise.
582
583 * config/rs6000/constraints.md (wt constraint): New constraint
584 that returns VSX_REGS if TImode is allowed in VSX registers.
585
586 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
587 constant under VSX.
588
589 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
590 similar to TImode, but it is restricted to being in the GPRs.
591
592 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
593 TImode to occupy a single VSX register.
594
595 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
596 -mvsx-timode for power7/power8.
597 (power7 cpu): Likewise.
598 (power8 cpu): Likewise.
599
600 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
601 sure that TFmode/TDmode take up two registers if they are ever
602 allowed in the upper VSX registers.
603 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
604 registers.
605 (rs6000_init_hard_regno_mode_ok): Likewise.
606 (rs6000_debug_reg_global): Add debugging for PTImode and wt
607 constraint. Print if LRA is turned on.
608 (rs6000_option_override_internal): Give an error if -mvsx-timode
609 and VSX is not enabled.
610 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
611 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
612 to reg+offset addressing. Use PTImode when checking offset
613 addresses for validity.
614 (reg_offset_addressing_ok_p): Likewise.
615 (rs6000_legitimate_offset_address_p): Likewise.
616 (rs6000_legitimize_address): Likewise.
617 (rs6000_legitimize_reload_address): Likewise.
618 (rs6000_legitimate_address_p): Likewise.
619 (rs6000_eliminate_indexed_memrefs): Likewise.
620 (rs6000_emit_move): Likewise.
621 (rs6000_secondary_reload): Likewise.
622 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
623 reloads to fpr registers to continue to use reg+offset addressing,
624 but 64-bit reloads to altivec registers need reg+reg addressing.
625 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
626 it. Treat LO_SUM like a PLUS operation.
627 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 628 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
629 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
630 registers to share a register with a smaller sized type, since VSX
631 puts scalars in the upper 64-bits.
632 (print_operand): Add support for PTImode.
633 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
634 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
635 registers, but don't have arithmetic support.
636 (rs6000_memory_move_cost): Add test for VSX.
637 (rs6000_opt_masks): Add -mvsx-timode.
638
639 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
640 for TImode.
641 (VSs): Likewise.
642 (VSr): Use wt constraint for TImode.
643 (VSv): Drop TImode support.
644 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
645 (vsx_movti_64bit): Likewise.
646 (vsx_movti_32bit): Likewise.
647 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
648 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
649 one '?' on the appropriate output constraint. Do not allow TImode
650 logical operations on 32-bit systems.
651 (vsx_ior<mode>3): Likewise.
652 (vsx_xor<mode>3): Likewise.
653 (vsx_one_cmpl<mode>2): Likewise.
654 (vsx_nor<mode>3): Likewise.
655 (vsx_andc<mode>3): Likewise.
656 (vsx_concat_<mode>): Likewise.
657 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
658
659 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
660 OPTION_MASK_VSX_TIMODE.
661 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
662 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
663
664 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
665 (TI2 iterator): New iterator for TImode, PTImode.
666 (wd mode attribute): Add values for vector types.
bd059b26
UB
667 (movti_string): Replace TI move operations with operations for TImode
668 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
669 (mov<mode>_string, TImode/PTImode): Likewise.
670 (movti_ppc64): Likewise.
671 (mov<mode>_ppc64, TImode/PTImode): Likewise.
672 (TI mode splitters): Likewise.
673
674 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
675 constraint.
676
1fc5eced
MG
6772013-03-20 Marc Glisse <marc.glisse@inria.fr>
678
679 PR tree-optimization/56355
680 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
681 Also handle integers with undefined overflow.
682
22c4c869
CM
6832013-03-20 Catherine Moore <clm@codesourcery.com>
684 Maciej W. Rozycki <macro@codesourcery.com>
685 Tom de Vries <tom@codesourcery.com>
686 Nathan Sidwell <nathan@codesourcery.com>
687 Iain Sandoe <iain@codesourcery.com>
688 Nathan Froyd <froydnj@codesourcery.com>
689 Chao-ying Fu <fu@mips.com>
690
691 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 692 Document new function attributes.
22c4c869
CM
693 * doc/invoke.texi (minterlink-compressed, mmicromips,
694 m14k, m14ke, m14kec): Document new options.
695 (minterlink-mips16): Update documentation.
696 * doc/md.texi (ZC, ZD): Document new constraints.
697 * configure.ac (gcc_cv_as_micromips): Check if linker
698 supports the .set micromips directive.
699 * configure: Regenerate.
700 * config.in: Regenerate.
701 * config/mips/mips-tables.opt: Regenerate.
702 * config/mips/micromips.md: New file.
703 * constraints.md (ZC, ZD): New constraints.
704 * config/mips/predicates.md (movep_src_register): New predicate.
705 (movep_src_operand): New predicate.
706 (non_volatile_mem_operand): New predicate.
707 * config/mips/mips.md (multimem): New type.
708 (length): Differentiate between 17-bit and 18-bit branch offsets.
709 (MOVEP1, MOVEP2): New mode iterator.
710 (mov_<load>l): Use ZC constraint.
711 (mov_<load>r): Likewise.
712 (mov_<store>l): Likewise.
713 (mov_<store>r): Likewise.
714 (*branch_equality<mode>_inverted): Add microMIPS support.
715 (*branch_equality<mode>): Likewise.
716 (*jump_absolute): Likewise.
717 (indirect_jump_<mode>): Likewise.
718 (tablejump_<mode>): Likewise.
719 (<optab>_internal): Likewise.
720 (sibcall_internal): Likewise.
721 (sibcall_value_internal): Likewise.
722 (prefetch): Use constraint ZD.
723 * config/mips/mips.opt (minterlink-compressed): New option.
724 (minterlink-mips16): Now an alias for minterlink-compressed.
725 (mmicromips): New option.
726 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
727 (compare_and_swap_12): Likewise.
728 (sync_add<mode>): Likewise.
729 (sync_<optab>_12): Likewise.
730 (sync_old_<optab>_12): Likewise.
731 (sync_new_<optab>_12): Likewise.
732 (sync_nand_12): Likewise.
733 (sync_old_nand_12): Likewise.
734 (sync_new_nand_12): Likewise.
735 (sync_sub<mode>): Likewise.
736 (sync_old_add<mode>): Likewise.
737 (sync_old_sub<mode>): Likewise.
738 (sync_new_add<mode>): Likewise.
739 (sync_new_sub<mode>): Likewise.
740 (sync_<optab><mode>): Likewise.
741 (sync_old_<optab><mode>): Likewise.
742 (sync_new_<optab><mode>): Likewise.
743 (sync_nand<mode>): Likewise.
744 (sync_old_nand<mode>): Likewise.
745 (sync_new_nand<mode>): Likewise.
746 (sync_lock_test_and_set<mode>): Likewise.
747 (test_and_set_12): Likewise.
748 (atomic_compare_and_swap<mode>): Likewise.
749 (atomic_exchange<mode>_llsc): Likewise.
750 (atomic_fetch_add<mode>_llsc): Likewise.
751 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
752 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
753 (umips_save_restore_pattern_p): Likewise.
754 (umips_load_store_pair_p): Likewise.
755 (umips_output_load_store_pair): Likewise.
756 (umips_movep_target_p): Likewise.
757 (umips_12bit_offset_address_p): Likewise.
758 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
759 (mips_base_mips16): Rename this...
760 (mips_base_compression_flags): ...to this. Update all uses.
761 (mips_attribute_table): Add micromips, nomicromips and nocompression.
762 (mips_mips16_decl_p): Delete.
763 (mips_nomips16_decl_p): Delete.
764 (mips_get_compress_on_flags): New function.
765 (mips_get_compress_off_flags): New function.
766 (mips_get_compress_mode): New function.
767 (mips_get_compress_on_name): New function.
768 (mips_get_compress_off_name): New function.
769 (mips_insert_attributes): Support multiple compression types.
770 (mips_merge_decl_attributes): Likewise.
771 (umips_12bit_offset_address_p): New function.
772 (mips_start_function_definition): Emit .set micromips directive.
773 (mips_call_may_need_jalx_p): New function.
774 (mips_function_ok_for_sibcall): Add microMIPS support.
775 (mips_print_operand_punctuation): Support short delay slots and
776 compact jumps.
777 (umips_swm_mask, umips_swm_encoding): New.
778 (umips_build_save_restore): New function.
779 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
780 (was_mips16_p): Remove.
781 (old_compression_mode): New.
782 (mips_set_compression_mode): New function.
783 (mips_set_current_function): Add microMIPS support.
784 (mips_option_override): Likewise.
785 (umips_save_restore_pattern_p): New function.
786 (umips_output_save_restore): New function.
787 (umips_load_store_pair_p_1): New function.
788 (umips_load_store_pair_p): New function.
789 (umips_output_load_store_pair_1): New function.
790 (umips_output_load_store_pair): New function.
791 (umips_movep_target_p) New function.
792 (mips_prepare_pch_save): Add microMIPS support.
793 * config/mips/mips.h (TARGET_COMPRESSION): New.
794 (TARGET_CPU_CPP_BUILTINS): Update macro
795 to use new compression flags and to support microMIPS.
796 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
797 (MIPS_ARCH_FLOAT_SPEC): Likewise.
798 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
799 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
800 (ASM_SPEC): Support mmicromips and mno-micromips.
801 (M16STORE_REG_P): New macro.
802 (MIPS_CALL): Support TARGET_MICROMIPS.
803 (MICROMIPS_J): New macro.
804 (mips_base_mips16): Rename this...
805 (mips_base_compression_flags): ...to this.
806 (UMIPS_12BIT_OFFSET_P): New macro.
807 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
808 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
8092013-03-20 Richard Biener <rguenther@suse.de>
810
811 PR tree-optimization/56661
812 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
813 the result does not have to be distinct.
814
54714c68
RB
8152013-03-20 Richard Biener <rguenther@suse.de>
816
817 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
818 remap_gimple_op_r.
819
cca1130d
BS
8202013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
821 Steven Bosscher <steven@gcc.gnu.org>
822
823 PR rtl-optimization/56605
824 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
825
2a930377
UB
8262013-03-20 Uros Bizjak <ubizjak@gmail.com>
827
828 PR bootstrap/56656
829 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
830 that require movd instead of movq.
831
d6d305fe
RB
8322013-03-20 Richard Biener <rguenther@suse.de>
833
834 * tree-ssa-structalias.c (struct variable_info): Add pointer
835 to the first field of an aggregate with sub-vars. Make
836 this and the pointer to the next subfield its ID.
837 (vi_next): New function.
838 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
839 storedanything_id, integer_id): Increment by one.
840 (new_var_info, get_call_vi, lookup_call_clobber_vi,
841 get_call_clobber_vi): Adjust.
842 (solution_set_expand): Simplify and speedup.
843 (solution_set_add): Inline into ...
844 (set_union_with_increment): ... this. Adjust accordingly.
845 (do_sd_constraint): Likewise.
846 (do_ds_constraint): Likewise.
847 (do_complex_constraint): Simplify.
848 (build_pred_graph): Adjust.
849 (solve_graph): Likewise. Simplify and speedup.
850 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
851 get_constraint_for_component_ref, get_constraint_for_1,
852 first_vi_for_offset, first_or_preceding_vi_for_offset,
853 create_function_info_for, create_variable_info_for_1,
854 create_variable_info_for, intra_create_variable_infos): Adjust.
855 (init_base_vars): Push NULL for ID zero.
856 (compute_points_to_sets): Adjust.
857
a271b42d
RB
8582013-03-20 Richard Biener <rguenther@suse.de>
859
860 * cfgloop.c (verify_loop_structure): Streamline and avoid
861 ICEing on corrupt loop tree.
862 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
863 loop tree.
864
ebd65954
RB
8652013-03-20 Richard Biener <rguenther@suse.de>
866
867 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
868 check whether an SSA update is needed.
869
4547b7ee
RS
8702013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
871
872 * config/mips/constraints.md (T): Rename to...
873 (Yf): ...this.
874 (U): Rename to...
875 (Yd): ...this.
876 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
877 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
878
0b8cdc58
IB
8792013-03-19 Ian Bolton <ian.bolton@arm.com>
880
881 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
882 (*subsi3_carryin_uxtw): Likewise.
883
5977a10d
IB
8842013-03-19 Ian Bolton <ian.bolton@arm.com>
885
886 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
887 (*rorsi3_insn_uxtw): Likewise.
888
bd83ff2c
IB
8892013-03-19 Ian Bolton <ian.bolton@arm.com>
890
891 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
892 (*extrsi5_insn_uxtw): Likewise.
893
ba65123c
RB
8942013-03-19 Richard Biener <rguenther@suse.de>
895
896 PR tree-optimization/56273
897 * passes.c (init_optimization_passes): Move second VRP after DOM.
898
2eac0476
UB
8992013-03-19 Uros Bizjak <ubizjak@gmail.com>
900
901 * config/i386/i386.md (*movti_internal): Merge from
902 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
903 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
904 nox64 isa attributes.
905
6e55eda7
RB
9062013-03-18 Richard Biener <rguenther@suse.de>
907
908 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
909 (unite): Likewise.
910 (merge_node_constraints): Likewise.
911 (build_succ_graph): Likewise.
912 (valid_graph_edge): Inline into single caller.
913 (unify_nodes): Likewise. Use bitmap_set_bit return value
914 and cache varinfo.
915 (scc_visit): Fix formatting and variable use.
916 (do_sd_constraint): Use gcc_checking_assert.
917 (do_ds_constraint): Likewise.
918 (do_complex_constraint): Likewise.
919 (condense_visit): Likewise. Cleanup.
920 (dump_pred_graph): New function.
921 (perform_var_substitution): Dump the pred-graph before
922 variable substitution.
923 (find_equivalent_node): Use gcc_checking_assert.
924 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
925
4bdd44c4
RB
9262013-03-18 Richard Biener <rguenther@suse.de>
927
928 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
929 Remove cond_expr_stmt_list argument and do not gimplify the
930 built expression.
931 (vect_loop_versioning): Adjust.
932 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
933 Cleanup to use less temporaries.
934 (vect_create_data_ref_ptr): Cleanup.
935
38c56a5b
JJ
9362013-03-18 Jakub Jelinek <jakub@redhat.com>
937
938 PR tree-optimization/56635
939 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
940 require types_compatible_p types.
941
20b2e6a0
NC
9422013-03-18 Nick Clifton <nickc@redhat.com>
943
a6178a25
NC
944 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
945 spurious backslash.
946
20b2e6a0
NC
947 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
948 Add missing line to comment describing function.
949
92608d0e
RB
9502013-03-18 Richard Biener <rguenther@suse.de>
951
952 PR tree-optimization/56210
953 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
954 Handle string / character search functions.
955 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
956
31348d52
RB
9572013-03-18 Richard Biener <rguenther@suse.de>
958
959 PR middle-end/56483
960 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
961 and implement properly.
962 * gimple.h (gimple_cond_single_var_p): Remove.
963
fcac74a1
RB
9642013-03-18 Richard Biener <rguenther@suse.de>
965
966 * tree-data-ref.h (find_data_references_in_loop): Declare.
967 * tree-data-ref.c (get_references_in_stmt): Use a stack
968 vector pre-allocated in the callers.
969 (find_data_references_in_stmt): Adjust.
970 (graphite_find_data_references_in_stmt): Likewise.
971 (create_rdg_vertices): Likewise.
972 (find_data_references_in_loop): Export.
973 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
974 Compute dependences here...
975 (vect_analyze_data_refs): ...not here. When we encounter
976 a non-vectorizable data reference in basic-block vectorization
977 truncate the data reference vector. Do not bother to
978 fixup data-dependence information for gather loads.
979 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
980 of data references, as reported.
981
0d5a1b56
RB
9822013-03-18 Richard Biener <rguenther@suse.de>
983
984 PR tree-optimization/3713
985 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
986 has_constants and expr.
987 (stmt_has_constants): Properly valueize SSA names when deciding
988 whether the stmt has constants.
989
789c34e3
RB
9902013-03-18 Richard Biener <rguenther@suse.de>
991
992 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
993 whole function when there is nothing to do.
994 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
995 * tree-vectorizer.c (vectorize_loops): Update virtual and
996 loop-closed SSA once.
997 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
998
076b4605
RB
9992013-03-18 Richard Biener <rguenther@suse.de>
1000
1001 PR middle-end/56113
1002 * domwalk.c (bb_postorder): New global static.
1003 (cmp_bb_postorder): New function.
1004 (walk_dominator_tree): Replace scheme imposing an order for
1005 visiting dominator sons by one sorting them at the time they
1006 are pushed on the stack.
1007
bdb01696
RB
10082013-03-18 Richard Biener <rguenther@suse.de>
1009
1010 PR tree-optimization/39326
1011 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1012 (struct mem_ref): Replace mem member with ao_ref typed member.
1013 (MEM_ANALYZABLE): Adjust.
1014 (memref_eq): Likewise.
1015 (mem_ref_alloc): Likewise.
1016 (gather_mem_refs_stmt): Likewise.
1017 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1018 (execute_sm_if_changed_flag_set): Adjust.
1019 (execute_sm): Likewise.
1020 (ref_always_accessed_p): Likewise.
1021 (refs_independent_p): Likewise.
1022 (can_sm_ref_p): Likewise.
1023
12d2dc5e
JJ
10242013-03-18 Jakub Jelinek <jakub@redhat.com>
1025
1026 PR c/56566
1027 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1028 return 1 even for !unsignedp.
1029
286fb677
UB
10302013-03-17 Uros Bizjak <ubizjak@gmail.com>
1031
1032 * config/i386/i386.md (isa): Add x64 and nox64.
1033 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1034 (*pushtf): Enable *roF alternative for x64 isa only.
1035 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1036 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1037 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1038 (*movtf_internal): Merge from *movtf_internal_rex64 and
1039 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1040 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1041 nox64 isa attributes.
1042 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1043 nox64 isa attributes.
1044 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1045
88b97037
UB
10462013-03-17 Uros Bizjak <ubizjak@gmail.com>
1047
1048 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1049
9f4f1735
JJ
10502013-03-17 Jakub Jelinek <jakub@redhat.com>
1051
1052 PR target/56640
1053 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1054 class names. Remove trailing comma after "ALL_REGS".
1055
48f4a6fa
JH
10562013-03-16 Jan Hubicka <jh@suse.cz>
1057
1058 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1059 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1060 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1061 of cgraph_get_create_node.
1062 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1063
98e81123
JM
10642013-03-16 Jason Merrill <jason@redhat.com>
1065
1066 PR debug/49090
1067 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1068 with DW_AT_default_value.
1069
8a298c04
JJ
10702013-03-16 Jakub Jelinek <jakub@redhat.com>
1071
1072 * BASE-VER: Set to 4.9.0.
1073
4323afa0
AK
10742013-03-14 Andi Kleen <ak@linux.intel.com>
1075
1076 PR target/56619
1077 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1078 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1079 Document _x* TSX intrinsics.
1080
b3c0d469
JJ
10812013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1082 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
1083
1084 * configure.ac: Add MicroBlaze TLS support detection.
1085 * configure: Regenerate.
88b97037
UB
1086 * config/microblaze/microblaze-protos.h
1087 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1088 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1089 * config/microblaze/microblaze.c (microblaze_address_type): Add
1090 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
1091 (microblaze_address_info): Add tls_reloc.
1092 (TARGET_HAVE_TLS): Define.
1093 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1094 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
1095 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1096 load_tls_operand, microblaze_call_tls_get_addr,
1097 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
1098 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1099 (get_base_reg): Use microblaze_tls_symbol_p.
1100 (microblaze_classify_address): Handle TLS.
88b97037
UB
1101 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1102 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
1103 (microblaze_legitimize_address): Handle TLS.
1104 (microblaze_address_insns): Handle ADDRESS_TLS.
1105 (pic_address_needs_scratch): Handle TLS.
1106 (print_operand_address): Handle TLS.
1107 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1108 (microblaze_expand_move): Handle TLS.
88b97037
UB
1109 (microblaze_legitimate_constant_p): Check
1110 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
1111 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1112 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1113 (PIC_OFFSET_TABLE_REGNUM): Set.
1114 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1115 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1116 (addsi3, movsi_internal2, movdf_internal): Update constraints
1117 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
1118 (move_operand): Redefine as move_src_operand,
1119 check microblaze_tls_referenced_p.
8cc9a5a5 1120
d803a491
IB
11212013-03-14 Ian Bolton <ian.bolton@arm.com>
1122
1123 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1124 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1125
a8504f22
IB
11262013-03-14 Ian Bolton <ian.bolton@arm.com>
1127
1128 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1129 CC mode for AND.
1130
df2dfaea
JJ
11312013-03-14 Jakub Jelinek <jakub@redhat.com>
1132
fbd28bc3
JJ
1133 PR tree-optimization/53265
1134 * common.opt (Waggressive-loop-optimizations): New option.
1135 * tree-ssa-loop-niter.c: Include tree-pass.h.
1136 (do_warn_aggressive_loop_optimizations): New function.
1137 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1138 if number_of_latch_executions returned constant.
1139 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1140 early. If number_of_latch_executions returned constant, set
1141 nb_iterations_upper_bound back to it.
1142 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1143 field.
1144 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1145 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1146
df2dfaea
JJ
1147 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1148 (MULTILIB_OSDIRNAMES): Set.
1149 * genmultilib: If defaultosdirname doesn't start with :: , set
1150 defaultosdirname2 instead, clear it and emit two . multilib_raw
1151 entries instead of just one.
1152
ee0d2b68
KK
11532013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1154
1155 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1156 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1157 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1158 (SUBTARGET_OVERRIDE_OPTIONS): New.
1159
decc676e
OE
11602013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1161
1162 PR target/49880
1163 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1164 (musermode): Convert to Var(TARGET_USERMODE).
1165 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1166 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1167 * config/sh/sh.c (sh_option_override): Use
1168 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1169 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1170 condition.
1171 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1172 TARGET_SH4.
1173 (udivsi3_i4_single, divsi3_i4_single): Use
1174 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1175
f4b719c7
DK
11762013-03-13 Dave Korn <dave.korn.cygwin@....>
1177
1178 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1179 default setting.
1180
c40eced0
RB
11812013-03-13 Richard Biener <rguenther@suse.de>
1182
1183 PR tree-optimization/56608
1184 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1185 calls when vectorizing basic-blocks.
1186
1bfa5973
JJ
11872013-03-13 Jakub Jelinek <jakub@redhat.com>
1188
1189 PR plugins/45078
1190 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1191 tm_file.
1192
6fcf5434
JJ
11932013-03-12 Jakub Jelinek <jakub@redhat.com>
1194
1195 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1196
4f38fa8c
JH
11972013-03-11 Jan Hubicka <jh@suse.cz>
1198
1199 PR lto/56557
1200 * lto-streamer-out.c (output_symbol_p): Skip references from
1201 constructors of external variables.
1202
c5c5ba89
JH
12032013-03-11 Jan Hubicka <jh@suse.cz>
1204
1205 PR middle-end/56571
1206 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1207 from pseudos.
1208 * emit-rtl.c (verify_rtx_sharing): Likewise.
1209 (copy_insn_1): Likewise.
1210 * rtl.c (copy_rtx): Likewise.
1211
c2a939b1
GJL
12122013-03-11 Georg-Johann Lay <avr@gjlay.de>
1213
1214 PR target/56591
1215 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1216 output_operand_lossage message.
88b97037 1217
3c3279fb
RE
12182013-03-11 Richard Earnshaw <rearnsha@arm.com>
1219
1220 PR target/56470
1221 * arm.c (shift_op): Validate RTL pattern on the fly.
1222 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1223 the RTL.
1224
aef5ef9d
JDA
12252013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1226
1227 PR target/56347
1228 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1229 new call patterns that clobber %fr12.
1230 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1231 split and postreload patterns.
1232 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1233 registers %fr12 and %fr12R as call used.
1234
456610d3
SB
12352013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1236
1237 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1238 (canon_address, record_store, replace_read, check_mem_read_rtx,
1239 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1240 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1241 rest_of_handle_dse): Likewise.
1242
4b1baac8
RS
12432013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1244
1245 PR middle-end/56524
1246 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1247 Add base_optabs.
1248 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1249 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1250 (save_optabs_if_changed): Replace with...
1251 (init_tree_optimization_optabs): ...this.
1252 * optabs.c (save_optabs_if_changed): Rename to...
1253 (init_tree_optimization_optabs): ...this. Take the optimization node
1254 as argument. Do nothing if the base optabs are already correct.
1255 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1256 to recompute optabs.
1257 * function.h (function): Remove optabs field.
1258 * function.c (invoke_set_current_function_hook): Call
1259 init_tree_optimization_optabs. Use the result to initialize
1260 this_fn_optabs.
1261
b7a78683
AH
12622013-02-27 Aldy Hernandez <aldyh@redhat.com>
1263
1264 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1265 if GTMA_HAS_NO_INSTRUMENTATION.
1266 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1267 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1268 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1269 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1270 GTMA_HAS_NO_INSTRUMENTATION.
1271
6384c29b
JJ
12722013-03-08 Jakub Jelinek <jakub@redhat.com>
1273
1274 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1275 libasan_preinit.o.
1276
ecd4f20a
MP
12772013-03-08 Marek Polacek <polacek@redhat.com>
1278 Jakub Jelinek <jakub@redhat.com>
1279
1280 PR tree-optimization/56478
1281 * predict.c (is_comparison_with_loop_invariant_p): Change the
1282 type of loop_step to tree.
1283 (predict_loops): Adjust.
1284 (predict_iv_comparison): Perform the computations on double_ints.
1285
64366d35
RB
12862013-03-08 Richard Biener <rguenther@suse.de>
1287
1288 PR tree-optimization/56570
1289 * tree-cfg.c (verify_expr_location_1): Verify locations for
1290 DECL_DEBUG_EXPR.
1291 * tree-sra.c (create_access_replacement): Strip locations
1292 from DECL_DEBUG_EXPRs.
1293
a9d5a059
RB
12942013-03-08 Richard Biener <rguenther@suse.de>
1295
1296 * tree-inline.c (expand_call_inline): Do not associate
1297 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1298 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1299
b7aa4e9a
RB
13002013-03-08 Richard Biener <rguenther@suse.de>
1301
1302 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1303 or block changes with -Og. Fix for location / block encoding
1304 changes and PHI arguments with locations.
1305
c4c2f9fa
SB
13062013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1307
1308 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1309 for all counters.
1310 (struct output_info): Likewise.
1311 (register_overhead): Remove bad gcc_assert.
1312 (bitmap_find_bit): If there is only a single bitmap element, do not
1313 count a miss as a search.
1314 (print_statistics): Update for counter type changes.
1315 (dump_bitmap_statistics): Likewise. Print headers such that they
1316 are properly lined up with the printed counters.
1317
5bf6606a
JJ
13182013-03-07 Jakub Jelinek <jakub@redhat.com>
1319
1320 PR tree-optimization/56559
1321 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1322 check that it has only a single use.
1323
2c653d46
RB
13242013-03-07 Richard Biener <rguenther@suse.de>
1325
1326 * doc/invoke.texi (fwhole-program): Discourage use in combination
1327 with -flto.
1328
a72d8780
JJ
13292013-03-06 Jakub Jelinek <jakub@redhat.com>
1330
01a454df
JJ
1331 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1332
c1781047
JJ
1333 PR tree-optimization/56539
1334 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1335 instead of GSI_CONTINUE_LINKING as last argument to
1336 force_gimple_operand_gsi. Adjust function comment.
1337
9772c47a
JJ
1338 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1339 aarch64-cores.def.
1340
a72d8780
JJ
1341 PR middle-end/56548
1342 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1343 promoted mode, convert the result back to the original mode.
1344
fa5556de
RB
13452013-03-06 Richard Biener <rguenther@suse.de>
1346
1347 PR middle-end/56294
1348 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1349 (insert_updated_phi_nodes_compare_uids): New function.
1350 (update_ssa): Sort symbols_to_rename after UID before
1351 traversing it to insert PHI nodes.
1352
010403d1
RB
13532013-03-06 Richard Biener <rguenther@suse.de>
1354
1355 PR middle-end/50494
1356 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1357 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1358
1359 Revert
1360 2013-02-13 Richard Biener <rguenther@suse.de>
1361
1362 PR lto/50494
1363 * varasm.c (output_constant_def_1): Get the decl representing
1364 the constant as argument.
1365 (output_constant_def): Wrap output_constant_def_1.
1366 (make_decl_rtl): Use output_constant_def_1 with the decl
1367 representing the constant.
1368 (build_constant_desc): Optionally re-use a decl already
1369 representing the constant.
1370 (tree_output_constant_def): Adjust.
1371
3c27ce4c
JY
13722013-03-06 Joey Ye <joey.ye@arm.com>
1373
1374 PR lto/50293
1375 * gcc.c (convert_white_space): New function.
1376 (main): Handles white space in function name.
1377
8f6d1c86
OE
13782013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1379
1380 PR target/56529
1381 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1382 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1383 to SH_DIV_CALL_TABLE for TARGET_SH2.
1384 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1385 list.
1386 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1387 call-table options.
1388
798a209f
SA
13892013-03-05 Sterling Augustine <saugustine@google.com>
1390 Cary Coutant <ccoutant@google.com>
1391
1392 PR debug/55364
1393 * dwarf2out.c (resolve_addr): Don't call
1394 remove_loc_list_addr_table_entries a second time for the same
1395 expression.
1396
6cfa417f 13972013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 1398
6cfa417f
JJ
1399 PR debug/56510
1400 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1401 (avoid_complex_debug_insns): New function.
1402 (expand_debug_locations): Call it.
1403
1404 PR rtl-optimization/56484
1405 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1406 lifetimes of hard registers on small register class machines.
1407
14082013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1409
1410 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 1411 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 1412 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
1413 fast_interrupt.
1414 (microblaze_fast_interrupt_function_p): New function.
1415 (microblaze_is_interrupt_handler): Rename to
1416 microblaze_is_interrupt_variant and add fast_interrupt check.
1417 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1418 (save_restore_insns): Likewise.
1419 (compute_frame_size): Likewise.
1420 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1421 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
1422 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1423 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
1424 microblaze_is_interrupt_variant.
1425
731aefac
KT
14262013-03-05 Kai Tietz <ktietz@redhat.com>
1427
1428 * sdbout.c (sdbout_one_type): Switch to current function's section
1429 supporting cold/hot.
1430
a72d8780 14312013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
1432
1433 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1434 -mxl-reorder.
1435
334e71e8
JJ
14362013-03-05 Jakub Jelinek <jakub@redhat.com>
1437
0b50e654
JJ
1438 PR middle-end/56461
1439 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1440 if VALGRIND_GET_VBITS is defined, temporarily make object
1441 memory all defined, and restore previous valgrind addressability
1442 and definability afterwards. Free this_object at the end.
1443
4ccf8f43
JJ
1444 PR middle-end/56461
1445 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1446 right before calling lra_create_live_ranges, also call it
1447 when clearing live_p. Only call lra_clear_live_ranges
1448 at the end if live_p.
1449
334e71e8
JJ
1450 PR middle-end/56461
1451 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1452
9ca966ca
RB
14532013-03-05 Richard Biener <rguenther@suse.de>
1454
1455 PR tree-optimization/56521
1456 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1457 value-id.
1458
d273b176
SB
14592013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1460
1461 PR c++/55135
1462 * except.h (remove_unreachable_eh_regions): New prototype.
1463 * except.c (remove_eh_handler_splicer): New function, split out
1464 of remove_eh_handler.
1465 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1466 warning about running it on many EH regions one at a time.
1467 (remove_unreachable_eh_regions_worker): New function, walk the
1468 EH tree in depth-first order and remove non-marked regions.
1469 (remove_unreachable_eh_regions): New function.
1470 * tree-eh.c (mark_reachable_handlers): New function, split out
1471 from remove_unreachable_handlers.
1472 (remove_unreachable_handlers): Use mark_reachable_handlers and
1473 remove_unreachable_eh_regions.
1474 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1475 and remove_unreachable_eh_regions.
1476
5e7f1aef
RB
14772013-03-05 Richard Biener <rguenther@suse.de>
1478
1479 PR middle-end/56525
1480 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1481 not freeing them until the end.
1482
f276b762
AK
14832013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1484
1485 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1486
12a43ab8
RB
14872013-03-05 Richard Biener <rguenther@suse.de>
1488
1489 PR tree-optimization/56270
1490 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1491 of loads after scheduling an SLP instance.
1492
93675444
JJ
14932013-03-05 Jakub Jelinek <jakub@redhat.com>
1494
db4138e3
JJ
1495 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1496 tic6x.exp.
1497 (check_gcc_parallelize): Run guality.exp as a separate job from
1498 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1499 struct-layout-1.exp with stackalign.exp.
1500
dd3d1ec0
JJ
1501 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1502
b8d381a3
JJ
1503 PR middle-end/56461
1504 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1505 load_index sbitmap even if some bit in it isn't set.
1506
b4f9786b
JJ
1507 PR middle-end/56461
1508 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1509 (discover_iteration_bound_by_body_walk): Change queues to
1510 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1511 spelling in comment. Call safe_push on queues[bound_index] directly.
1512 Release queues[queue_index] in every iteration unconditionally.
1513 Release bounds vector.
1514
93675444
JJ
1515 PR middle-end/56461
1516 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1517 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1518 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1519 inner_phis vector.
1520
3e492e9c
RB
15212013-03-05 Richard Biener <rguenther@suse.de>
1522
1523 PR lto/56515
1524 * tree-inline.c (remap_blocks_to_null): New function.
1525 (expand_call_inline): When expanding a call stmt without
1526 an associated block inline remap all callee blocks to NULL.
1527
a5d1569a
JJ
15282013-03-05 Jakub Jelinek <jakub@redhat.com>
1529
86efb5cd
JJ
1530 PR rtl-optimization/56494
1531 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1532 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1533 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1534
85f5dbea
JJ
1535 PR middle-end/56461
1536 * sel-sched-ir.c (free_sched_pools): Release
1537 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1538 if succs_info_pool.max_top isn't -1.
1539
a5d1569a
JJ
1540 PR bootstrap/56509
1541 * opts.c (opts_obstack, opts_concat): Moved to...
1542 * opts-common.c (opts_obstack, opts_concat): ... here.
1543
4432aa6c
JJ
15442013-03-04 Jakub Jelinek <jakub@redhat.com>
1545
1546 PR middle-end/56461
1547 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1548
f3a1fb91
MJ
15492013-03-04 Martin Jambor <mjambor@suse.cz>
1550
1551 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1552 all appropriate places.
1553
22110e6c
EB
15542013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 PR tree-optimization/56424
1557 * ipa-split.c (split_function): Do not set the RSO flag if result is
1558 not by reference and its type is a register type.
1559
a72d8780 15602013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 1561
88b97037 1562 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 1563 (microblaze_legitimate_pic_operand): Likewise
88b97037 1564 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
1565 new function microblaze_legitimate_pic_operand
1566 * config/microblaze/microblaze-protos.h
1567 (microblaze_legitimate_pic_operand): Declare.
1568
a72d8780 15692013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 1570
a72d8780 1571 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 1572 New predicate for supported rtx code types.
a72d8780 1573 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
1574 call_insn_simple_operand predicate.
1575
541d9ac8
JJ
15762013-03-04 Jakub Jelinek <jakub@redhat.com>
1577
5eb010bc
JJ
1578 PR middle-end/56461
1579 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1580 partitions.ordered_remove.
1581
30862efc
JJ
1582 PR middle-end/56461
1583 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1584 vec_oprnds0.create (1) for modifier == NONE.
1585
8930f723
JJ
1586 PR middle-end/56461
1587 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1588 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1589 vec_oprnds1 right before pushing anything to it for
1590 scalar_shift_arg.
1591
541d9ac8
JJ
1592 PR middle-end/56461
1593 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1594 set nbbs to 0 instead of having separate code path.
1595 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1596 instead of false as last argument if returning NULL.
1597
7aa7f2e3
SL
15982013-03-03 Sandra Loosemore <sandra@codesourcery.com>
1599
1600 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1601 the attribute is now called "target" instead of "option".
1602 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1603 * doc/tm.texi.in (Target Attributes): Likewise document the correct
1604 attribute/pragma name for TARGET_OPTION_VALID_P and
1605 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
1606 * doc/tm.texi: Regenerated.
1607
8930f723 16082013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 1609
8930f723 1610 * config/microblaze/microblaze.c:
cb8a1637 1611 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
1612 * config/microblaze/microblaze.h: Add -mxl-reorder to
1613 DRIVER_SELF_SPECS.
1614 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
1615 instructions emitted if TARGET_REORDER.
88b97037
UB
1616 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
1617 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 1618 separately.
cb8a1637 1619
4dc1d68c
XDL
16202013-03-01 Xinliang David Li <davidxl@google.com>
1621
1622 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
1623 walk length.
1624
689eaba3
JJ
16252013-03-01 Jakub Jelinek <jakub@redhat.com>
1626
9d676bf6
JJ
1627 PR middle-end/56461
1628 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
1629 vector even when returning true. Fix up function comment formatting.
1630
caff7edf
JJ
1631 PR middle-end/56461
1632 * ira-build.c (ira_loop_nodes_count): New variable.
1633 (create_loop_tree_nodes): Initialize it.
1634 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
1635
b6b9227d
JJ
1636 PR middle-end/56461
1637 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
1638 method on dr_chain and result_chain.
1639 * tree-vect-stmts.c (vectorizable_store): Only call
1640 result_chain.create if j == 0.
1641
689eaba3
JJ
1642 PR middle-end/56461
1643 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
1644 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
1645 before overwriting it.
1646
40bf31ed
TB
16472013-03-01 Tobias Burnus <burnus@net-b.de>
1648
1649 * doc/extended.texi (C Extensions): Change order in @menu
1650 to match @node.
1651 (Other MIPS Built-in Functions): Move last MIPS entry before
1652 "picoChip Built-in Functions".
1653 (SH Built-in Functions): Move after RX Built-in Functions.
1654 * doc/gcc.texi (Introduction): Change order in @menu
1655 to match @node.
1656 * doc/md.texi (Constraints): Ditto.
1657 * gty.texi (Type Information): Ditto.
1658 (User-provided marking routines for template types): Make
1659 subsection.
1660 * doc/invoke.texi (AArch64 Options): Move before
1661 "Adapteva Epiphany Options".
1662
e664c61c
KS
16632013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1664 Jakub Jelinek <jakub@redhat.com>
1665
1666 PR sanitizer/56454
1667 * asan.c (gate_asan): Lookup no_sanitize_address instead of
1668 no_address_safety_analysis attribute.
1669 * doc/extend.texi (no_address_safety_attribute): Rename to
1670 no_sanitize_address attribute, mention no_address_safety_analysis
1671 attribute as deprecated alias.
1672
37b5ec8f
JJ
16732013-02-28 Jakub Jelinek <jakub@redhat.com>
1674
1675 PR middle-end/56461
1676 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
1677 type to vec<vec<tree> > *.
1678 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
1679 to be vec<tree> instead of vec<tree> *, set vec_defs
1680 to vNULL and call vec_defs.create (number_of_vects), adjust other
1681 uses of vec_defs.
1682 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
1683 vectorizable_condition): Adjust vect_get_slp_defs callers.
1684
ba96cdfb
JG
16852013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1686
1687 * config/aarch64/aarch64.c
1688 (aarch64_float_const_representable): Remove unused variable.
1689
6f549691
JG
16902013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1691
1692 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
1693
af55e82d
JG
16942013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1695
1696 * config/aarch64/aarch64-builtins.c
1697 (aarch64_init_simd_builtins): Make static.
1698
1df3f464
JG
16992013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
1700
1701 * config/aarch64/aarch64.c
1702 (aarch64_simd_make_constant): Make static.
1703
f8f42513
MJ
17042013-02-28 Martin Jambor <mjambor@suse.cz>
1705
1706 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
1707 with no initialization to the RHS of debug statements.
1708
b48b3fc4
MJ
17092013-02-28 Martin Jambor <mjambor@suse.cz>
1710
1711 PR tree-optimization/56294
1712 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
1713 Adjust dumping.
1714 (get_access_replacement): Do not call create_access_replacement.
1715 Assert a replacement exists.
1716 (get_repl_default_def_ssa_name): Create the replacement declaration
1717 itself.
1718
c3ae224c
RR
17192013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1720
1721 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
1722 final_end_function.
1723
45fa0eef
MP
17242013-02-28 Marek Polacek <polacek@redhat.com>
1725
1726 PR rtl-optimization/56466
1727 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
1728 if we're changing a loop.
1729 (peel_loops_completely): Likewise.
1730
502c067d
PC
17312013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
1732
1733 PR c++/55813
1734 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
1735
ff24afc8
GJL
17362013-02-28 Georg-Johann Lay <avr@gjlay.de>
1737
1738 PR target/56445
1739 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
1740 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
1741 INTX_FTYPE_FX, FX_FTYPE_INTX.
1742 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
1743
c7b1fc1b
GJL
17442013-02-28 Georg-Johann Lay <avr@gjlay.de>
1745
1746 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
1747 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
1748 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
1749 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
1750 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
1751 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
1752 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
1753 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
1754 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
1755 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
1756 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
1757 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
1758 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
1759 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
1760 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
1761 (avrxmega6): Increase max flash segments from 5 to 6.
1762 * config/avr/t-multilib: Regenerate.
1763 * config/avr/avr-tables.opt: Regenerate.
1764 * doc/avr-mmcu.texi: Regenerate.
1765
4a0e3cfe
GJL
17662013-02-28 Georg-Johann Lay <avr@gjlay.de>
1767
1768 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
1769 (avr_device_to_arch): Rename to avr_device_to_ld.
1770 (avr_device_to_as): New prototype.
1771 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
1772 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
1773 * config/avr/driver-avr.c (avr_device_to_as): New.
1774 (avr_device_to_arch): Rename to avr_device_to_ld.
1775
97785e52
JJ
17762013-02-27 Jakub Jelinek <jakub@redhat.com>
1777
3f292312
JJ
1778 PR middle-end/56461
1779 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
1780 method on dr_chain and result_chain.
1781
a344216b
JJ
1782 PR middle-end/56461
1783 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
1784 pointer_set_destroy on not_executed_last_iteration.
1785
f121ad02 1786 PR middle-end/56461
88b97037 1787 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 1788
307f83a3
JJ
1789 PR middle-end/56461
1790 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
1791 FOR_EACH_DEFINED_FUNCTION when freeing state.
1792
e19624ee
JJ
1793 PR middle-end/56461
1794 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
1795 pool_free.
1796 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
1797 overwriting it.
1798
90e709fd
JJ
1799 PR middle-end/56461
1800 * ipa-cp.c (decide_whether_version_node): Call vec_free on
1801 known_aggs[i].items and release known_aggs vector.
1802
97785e52
JJ
1803 PR middle-end/56461
1804 * ipa-reference.c (propagate): Free node_info even for alias nodes.
1805
18062013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 1807
97785e52
JJ
1808 * config/microblaze/microblaze.c (microblaze_emit_compare):
1809 Use xor for EQ/NE comparisions.
1810 * config/microblaze/microblaze.md (cstoresf4): Add constraints
1811 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 1812
6fa5e0ed
JJ
18132013-02-27 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR middle-end/56461
1816 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
1817 vector.
1818 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
1819 vec_safe_push, always update *slot.
1820 (redirect_edge_var_map_clear): Use vec_free.
1821 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
1822 (free_var_map_entry): Use vec_free.
1823 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
1824 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
1825
436a956a
AB
18262013-02-27 Andrey Belevantsev <abel@ispras.ru>
1827
1828 PR middle-end/45472
436a956a
AB
1829 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
1830 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
1831 Reorder tests for speculativeness in the logical and operator.
1832
f5c2caca
JJ
18332013-02-27 Jakub Jelinek <jakub@redhat.com>
1834
0fcb564b
JJ
1835 * incpath.c (add_standard_paths): Use reconcat instead of concat
1836 where appropriate and avoid leaking memory.
1837
dc357798
JJ
1838 * opts.h: Include obstack.h.
1839 (opts_concat): New prototype.
1840 (opts_obstack): New declaration.
1841 * opts.c (opts_concat): New function.
1842 (opts_obstack): New variable.
1843 (init_options_struct): Call gcc_init_obstack on opts_obstack.
1844 (finish_options): Use opts_concat instead of concat
1845 and XOBNEWVEC instead of XNEWVEC.
1846 * opts-common.c (generate_canonical_option, decode_cmdline_option,
1847 generate_option): Likewise.
1848 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
1849 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
1850
f5c2caca
JJ
1851 PR target/56455
1852 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
1853 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
1854
d0163673
JJ
18552013-02-26 Jakub Jelinek <jakub@redhat.com>
1856
1857 PR middle-end/56461
1858 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
1859
b5ad2b8e
JR
18602013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1861
1862 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
1863 (arm_block_move_unaligned_straight): Likewise.
1864 (arm_adjust_block_mem): Likewise.
1865
9b639e2c
JR
18662013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
1867
1868 PR target/48901
1869 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
1870 temp, cond and label.
1871 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
1872
e13a0ccb
JR
1873 PR target/52500
1874 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
1875 * config/c6x/c6x.h (dbx_register_map): Update declaration.
1876
fbe4f171
JR
1877 PR target/52501
1878 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
1879 of prologue/epilogue functions.
1880
ae006543
JR
1881 PR target/52550
1882 * config/tilegx/tilegx.c (tilegx_expand_prologue):
1883 Remove unused variable cfa_offset.
1884 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
1885
c81369fa
JR
1886 PR target/54639
1887 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
1888 type promotion to unsigned.
1889
f8a8fea7
JR
1890 PR target/54640
1891 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
1892 for HOST_WIDE_INT of 32 bit / same size as int.
1893 (arm_block_move_unaligned_straight): Likewise.
1894 (arm_adjust_block_mem): Likewise.
1895
f8be5169
JR
1896 PR target/54662
1897 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
1898 ALL_CFLAGS.
1899
f1ad3354
MP
19002013-02-26 Marek Polacek <polacek@redhat.com>
1901
1902 PR tree-optimization/56426
88b97037 1903 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 1904
a6af0f42
RB
19052013-02-26 Richard Biener <rguenther@suse.de>
1906
1907 PR target/56444
1908 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
1909 unused variable loops.
1910
aca43c6c
JJ
19112013-02-26 Jakub Jelinek <jakub@redhat.com>
1912
cecbe5d9
JJ
1913 PR tree-optimization/56448
1914 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
1915 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
1916 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
1917 later operands of the references, or even first operand for
1918 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
1919
aca43c6c
JJ
1920 PR tree-optimization/56443
1921 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
1922 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
1923 to type_for_mode langhook.
1924
53e2e141
MT
19252013-02-25 Matt Turner <mattst88@gmail.com>
1926
1927 * doc/invoke.texi: Document r4700.
1928
259ee451
RB
19292013-02-25 Richard Biener <rguenther@suse.de>
1930
1931 PR tree-optimization/56175
1932 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
1933 split out from ...
1934 (simplify_bitwise_binary): ... here. Also guard the conversion
1935 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
1936
6d65e8f1
CM
19372013-02-25 Catherine Moore <clm@codesourcery.com>
1938
1939 Revert:
1940 2013-02-24 Catherine Moore <clm@codesourcery.com>
1941 Maciej W. Rozycki <macro@codesourcery.com>
1942 Tom de Vries <tom@codesourcery.com>
a72d8780 1943 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
1944 Iain Sandoe <iain@codesourcery.com>
1945 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 1946 Chao-ying Fu <fu@mips.com>
88b97037 1947
6d65e8f1 1948 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 1949 Document new function attributes.
6d65e8f1
CM
1950 * doc/invoke.texi (minterlink-compressed, mmicromips,
1951 m14k, m14ke, m14kec): Document new options.
1952 (minterlink-mips16): Update documentation.
1953 * doc/md.texi (ZC, ZD): Document new constraints.
1954 * configure.ac (gcc_cv_as_micromips): Check if linker
1955 supports the .set micromips directive.
1956 * configure: Regenerate.
1957 * config.in: Regenerate.
1958 * config/mips/mips-tables.opt: Regenerate.
1959 * config/mips/micromips.md: New file.
1960 * constraints.md (ZC, AD): New constraints.
1961 * config/mips/predicates.md (movep_src_register): New predicate.
1962 (movep_src_operand): New predicate.
1963 (non_volatile_mem_operand): New predicate.
1964 * config/mips/mips.md (multimem): New type.
1965 (length): Differentiate between 17-bit and 18-bit branch offsets.
1966 (MOVEP1, MOVEP2): New mode iterator.
1967 (mov_<load>l): Use ZC constraint.
1968 (mov_<load>r): Likewise.
1969 (mov_<store>l): Likewise.
1970 (mov_<store>r): Likewise.
1971 (*branch_equality<mode>_inverted): Add microMIPS support.
1972 (*branch_equality<mode>): Likewise.
1973 (*jump_absolute): Likewise.
1974 (indirect_jump_<mode>): Likewise.
1975 (tablejump_<mode>): Likewise.
1976 (<optab>_internal): Likewise.
1977 (sibcall_internal): Likewise.
1978 (sibcall_value_internal): Likewise.
1979 (prefetch): Use constraint ZD.
1980 * config/mips/mips.opt (minterlink-compressed): New option.
1981 (minterlink-mips16): Now an alias for minterlink-compressed.
1982 (mmicromips): New option.
1983 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1984 (compare_and_swap_12): Likewise.
1985 (sync_add<mode>): Likewise.
1986 (sync_<optab>_12): Likewise.
1987 (sync_old_<optab>_12): Likewise.
1988 (sync_new_<optab>_12): Likewise.
1989 (sync_nand_12): Likewise.
1990 (sync_old_nand_12): Likewise.
1991 (sync_new_nand_12): Likewise.
1992 (sync_sub<mode>): Likewise.
1993 (sync_old_add<mode>): Likewise.
1994 (sync_old_sub<mode>): Likewise.
1995 (sync_new_add<mode>): Likewise.
1996 (sync_new_sub<mode>): Likewise.
1997 (sync_<optab><mode>): Likewise.
1998 (sync_old_<optab><mode>): Likewise.
1999 (sync_new_<optab><mode>): Likewise.
2000 (sync_nand<mode>): Likewise.
2001 (sync_old_nand<mode>): Likewise.
2002 (sync_new_nand<mode>): Likewise.
2003 (sync_lock_test_and_set<mode>): Likewise.
2004 (test_and_set_12): Likewise.
2005 (atomic_compare_and_swap<mode>): Likewise.
2006 (atomic_exchange<mode>_llsc): Likewise.
2007 (atomic_fetch_add<mode>_llsc): Likewise.
2008 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2009 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2010 (umips_save_restore_pattern_p): Likewise.
2011 (umips_load_store_pair_p): Likewise.
2012 (umips_output_load_store_pair): Likewise.
2013 (umips_movep_target_p): Likewise.
2014 (umips_12bit_offset_address_p): Likewise.
2015 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2016 (mips_base_mips16): Rename this...
2017 (mips_base_compression_flags): ...to this. Update all uses.
2018 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2019 (mips_mips16_decl_p): Delete.
2020 (mips_nomips16_decl_p): Delete.
2021 (mips_get_compress_on_flags): New function.
2022 (mips_get_compress_off_flags): New function.
2023 (mips_get_compress_mode): New function.
2024 (mips_get_compress_on_name): New function.
2025 (mips_get_compress_off_name): New function.
2026 (mips_insert_attributes): Support multiple compression types.
2027 (mips_merge_decl_attributes): Likewise.
2028 (umips_12bit_offset_address_p): New function.
2029 (mips_start_function_definition): Emit .set micromips directive.
2030 (mips_call_may_need_jalx_p): New function.
2031 (mips_function_ok_for_sibcall): Add microMIPS support.
2032 (mips_print_operand_punctuation): Support short delay slots and
2033 compact jumps.
2034 (umips_swm_mask, umips_swm_encoding): New.
2035 (umips_build_save_restore): New function.
2036 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2037 (was_mips16_p): Remove.
2038 (old_compression_mode): New.
2039 (mips_set_compression_mode): New function.
2040 (mips_set_current_function): Add microMIPS support.
2041 (mips_option_override): Likewise.
2042 (umips_save_restore_pattern_p): New function.
2043 (umips_output_save_restore): New function.
2044 (umips_load_store_pair_p_1): New function.
2045 (umips_load_store_pair_p): New function.
2046 (umips_output_load_store_pair_1): New function.
2047 (umips_output_load_store_pair): New function.
2048 (umips_movep_target_p) New function.
2049 (mips_prepare_pch_save): Add microMIPS support.
2050 * config/mips/mips.h (TARGET_COMPRESSION): New.
2051 (TARGET_CPU_CPP_BUILTINS): Update macro
2052 to use new compression flags and to support microMIPS.
2053 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2054 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2055 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2056 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2057 (ASM_SPEC): Support mmicromips and mno-micromips.
2058 (M16STORE_REG_P): New macro.
2059 (MIPS_CALL): Support TARGET_MICROMIPS.
2060 (MICROMIPS_J): New macro.
2061 (mips_base_mips16): Rename this...
2062 (mips_base_compression_flags): ...to this.
2063 (UMIPS_12BIT_OFFSET_P): New macro.
2064 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2065 (MULTILIB_DIRNAMES): Likewise.
2066
5e5df392
TV
20672013-02-25 Tom de Vries <tom@codesourcery.com>
2068
2069 PR rtl-optimization/56131
2070 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2071 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2072 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2073
3fdb53c1
TB
20742013-02-25 Tobias Burnus <burnus@net-b.de>
2075
2076 * doc/invoke.texi (-fsanitize=): Move from optimization
2077 to debugging options.
2078
ed358aea
AB
20792013-02-25 Andrey Belevantsev <abel@ispras.ru>
2080
2081 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2082
f45e9053
AB
20832013-02-25 Andrey Belevantsev <abel@ispras.ru>
2084 Alexander Monakov <amonakov@ispras.ru>
2085
2086 PR middle-end/56077
2087 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2088 flush pending lists also on non-jumps. Adjust comment.
2089
6941b508
CM
20902013-02-24 Catherine Moore <clm@codesourcery.com>
2091 Maciej W. Rozycki <macro@codesourcery.com>
2092 Tom de Vries <tom@codesourcery.com>
a72d8780 2093 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
2094 Iain Sandoe <iain@codesourcery.com>
2095 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 2096 Chao-ying Fu <fu@mips.com>
6941b508
CM
2097
2098 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 2099 Document new function attributes.
6941b508
CM
2100 * doc/invoke.texi (minterlink-compressed, mmicromips,
2101 m14k, m14ke, m14kec): Document new options.
2102 (minterlink-mips16): Update documentation.
2103 * doc/md.texi (ZC, ZD): Document new constraints.
2104 * configure.ac (gcc_cv_as_micromips): Check if linker
2105 supports the .set micromips directive.
2106 * configure: Regenerate.
2107 * config.in: Regenerate.
2108 * config/mips/mips-tables.opt: Regenerate.
2109 * config/mips/micromips.md: New file.
2110 * constraints.md (ZC, AD): New constraints.
2111 * config/mips/predicates.md (movep_src_register): New predicate.
2112 (movep_src_operand): New predicate.
2113 (non_volatile_mem_operand): New predicate.
2114 * config/mips/mips.md (multimem): New type.
2115 (length): Differentiate between 17-bit and 18-bit branch offsets.
2116 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 2117 (mov_<load>l): Use ZC constraint.
6941b508
CM
2118 (mov_<load>r): Likewise.
2119 (mov_<store>l): Likewise.
2120 (mov_<store>r): Likewise.
2121 (*branch_equality<mode>_inverted): Add microMIPS support.
2122 (*branch_equality<mode>): Likewise.
2123 (*jump_absolute): Likewise.
2124 (indirect_jump_<mode>): Likewise.
2125 (tablejump_<mode>): Likewise.
2126 (<optab>_internal): Likewise.
2127 (sibcall_internal): Likewise.
2128 (sibcall_value_internal): Likewise.
2129 (prefetch): Use constraint ZD.
2130 * config/mips/mips.opt (minterlink-compressed): New option.
2131 (minterlink-mips16): Now an alias for minterlink-compressed.
2132 (mmicromips): New option.
2133 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2134 (compare_and_swap_12): Likewise.
2135 (sync_add<mode>): Likewise.
2136 (sync_<optab>_12): Likewise.
2137 (sync_old_<optab>_12): Likewise.
2138 (sync_new_<optab>_12): Likewise.
2139 (sync_nand_12): Likewise.
2140 (sync_old_nand_12): Likewise.
2141 (sync_new_nand_12): Likewise.
2142 (sync_sub<mode>): Likewise.
2143 (sync_old_add<mode>): Likewise.
2144 (sync_old_sub<mode>): Likewise.
2145 (sync_new_add<mode>): Likewise.
2146 (sync_new_sub<mode>): Likewise.
2147 (sync_<optab><mode>): Likewise.
2148 (sync_old_<optab><mode>): Likewise.
2149 (sync_new_<optab><mode>): Likewise.
2150 (sync_nand<mode>): Likewise.
2151 (sync_old_nand<mode>): Likewise.
2152 (sync_new_nand<mode>): Likewise.
2153 (sync_lock_test_and_set<mode>): Likewise.
2154 (test_and_set_12): Likewise.
2155 (atomic_compare_and_swap<mode>): Likewise.
2156 (atomic_exchange<mode>_llsc): Likewise.
2157 (atomic_fetch_add<mode>_llsc): Likewise.
2158 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2159 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2160 (umips_save_restore_pattern_p): Likewise.
2161 (umips_load_store_pair_p): Likewise.
2162 (umips_output_load_store_pair): Likewise.
2163 (umips_movep_target_p): Likewise.
2164 (umips_12bit_offset_address_p): Likewise.
2165 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2166 (mips_base_mips16): Rename this...
2167 (mips_base_compression_flags): ...to this. Update all uses.
2168 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2169 (mips_mips16_decl_p): Delete.
2170 (mips_nomips16_decl_p): Delete.
3fdb53c1 2171 (mips_get_compress_on_flags): New function.
6941b508
CM
2172 (mips_get_compress_off_flags): New function.
2173 (mips_get_compress_mode): New function.
2174 (mips_get_compress_on_name): New function.
2175 (mips_get_compress_off_name): New function.
2176 (mips_insert_attributes): Support multiple compression types.
2177 (mips_merge_decl_attributes): Likewise.
2178 (umips_12bit_offset_address_p): New function.
2179 (mips_start_function_definition): Emit .set micromips directive.
2180 (mips_call_may_need_jalx_p): New function.
2181 (mips_function_ok_for_sibcall): Add microMIPS support.
2182 (mips_print_operand_punctuation): Support short delay slots and
2183 compact jumps.
2184 (umips_swm_mask, umips_swm_encoding): New.
2185 (umips_build_save_restore): New function.
2186 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2187 (was_mips16_p): Remove.
2188 (old_compression_mode): New.
2189 (mips_set_compression_mode): New function.
2190 (mips_set_current_function): Add microMIPS support.
2191 (mips_option_override): Likewise.
2192 (umips_save_restore_pattern_p): New function.
2193 (umips_output_save_restore): New function.
2194 (umips_load_store_pair_p_1): New function.
2195 (umips_load_store_pair_p): New function.
2196 (umips_output_load_store_pair_1): New function.
2197 (umips_output_load_store_pair): New function.
2198 (umips_movep_target_p) New function.
2199 (mips_prepare_pch_save): Add microMIPS support.
2200 * config/mips/mips.h (TARGET_COMPRESSION): New.
2201 (TARGET_CPU_CPP_BUILTINS): Update macro
2202 to use new compression flags and to support microMIPS.
2203 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2204 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2205 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2206 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2207 (ASM_SPEC): Support mmicromips and mno-micromips.
2208 (M16STORE_REG_P): New macro.
2209 (MIPS_CALL): Support TARGET_MICROMIPS.
2210 (MICROMIPS_J): New macro.
2211 (mips_base_mips16): Rename this...
2212 (mips_base_compression_flags): ...to this.
2213 (UMIPS_12BIT_OFFSET_P): New macro.
2214 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2215 (MULTILIB_DIRNAMES): Likewise.
2216
cdebbc6d
JJ
22172013-02-24 Jakub Jelinek <jakub@redhat.com>
2218
2219 PR target/52555
2220 * target-globals.c (save_target_globals): For init_reg_sets and
2221 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2222
18c63565
JG
22232013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2224
2225 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2226 * config/aarch64/t-aarch64
2227 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2228
2194f7a2
VM
22292013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2230
2231 PR inline-asm/56148
2232 * lra-constraints.c (process_alt_operands): Reload operand
2233 conflicting with earlier clobber only if no more other conflicting
2234 operands.
2235
7d613735
JJ
22362013-02-22 Jakub Jelinek <jakub@redhat.com>
2237
2238 PR sanitizer/56393
2239 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2240 if not linking a shared library.
2241
ac8d93a7
SL
22422013-02-22 Seth LaForge <sethml@google.com>
2243
2244 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2245
e0237780
GY
22462013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2247
3fdb53c1
TB
2248 * config/arm/arm.md (split for extendsidi): Update condition.
2249 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2250 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2251 (qhs_zextenddi_cstr): Likewise.
e0237780 2252
d7fde18c
JJ
22532013-02-21 Jakub Jelinek <jakub@redhat.com>
2254
be63b77d
JJ
2255 PR middle-end/56420
2256 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2257 avoid signed wrapping.
2258 (expand_mult): Handle properly multiplication by
2259 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2260 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2261 in the compiler if coeff is HOST_WIDE_INT_MIN.
2262 (expand_divmod): Don't make ext_op1 static, change it's type to
2263 uhwi. Avoid undefined behavior in -INTVAL (op1).
2264
d7fde18c
JJ
2265 PR rtl-optimization/50339
2266 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2267 field.
2268 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2269 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2270 into splitting_ashiftrt field.
2271 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2272 ASHIFTRT.
2273 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2274 choices.
2275
6aad4455
AH
22762013-02-20 Aldy Hernandez <aldyh@redhat.com>
2277
2278 PR middle-end/56108
2279 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2280 are sure to go irrevocable.
2281
38fe784d
HPN
22822013-02-21 Hans-Peter Nilsson <hp@axis.com>
2283
2284 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2285 scalars are valid operands.
2286
0fd44da3
MJ
22872013-02-21 Martin Jambor <mjambor@suse.cz>
2288
2289 PR tree-optimization/56310
2290 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2291 only matching indices and non-negative final offsets.
2292 (intersect_aggregates_with_edge): Pass src_idx to
2293 agg_replacements_to_vector. Pass src_idx insstead of index to
2294 intersect_with_agg_replacements.
2295
7a92038b
MJ
22962013-02-21 Martin Jambor <mjambor@suse.cz>
2297
2298 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2299 instead of hard-wired defaults.
2300
c0da9c37
MR
23012013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2302
2303 * doc/invoke.texi (MIPS Options): Update documentation of the
2304 floating-point multiply-accumulate instruction restrictions.
2305
d247ea0c 23062013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
2307
2308 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2309 asan_shadow_offset on x86_64 linux.
2310
22deefcb
RB
23112013-02-21 Richard Biener <rguenther@suse.de>
2312
2313 PR tree-optimization/56415
2314 Revert
2315 2013-02-11 Richard Biener <rguenther@suse.de>
2316
2317 PR tree-optimization/56273
2318 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2319 first VRP run.
2320
7bcc6e75
JJ
23212013-02-21 Jakub Jelinek <jakub@redhat.com>
2322
a0ad148f
JJ
2323 PR bootstrap/56258
2324 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2325 instead of @itemx.
2326
7bcc6e75
JJ
2327 PR inline-asm/56405
2328 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2329 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2330
a0a7b611
JH
23312013-02-20 Jan Hubicka <jh@suse.cz>
2332
2333 PR tree-optimization/56265
88b97037
UB
2334 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2335 when target is referenced for first time.
a0a7b611 2336
c0e50f72
RB
23372013-02-20 Richard Biener <rguenther@suse.de>
2338
2339 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2340 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2341 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2342 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2343 not return anything.
2344 (rename_ssa_copies): Do not remove unused locals.
2345 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 2346 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
2347 * passes.c (execute_function_todo): Do not schedule unused locals
2348 removal if cleanup_tree_cfg did something.
2349 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2350 about the number of removed locals.
2351
a52ca739
RB
23522013-02-20 Richard Biener <rguenther@suse.de>
2353
2354 PR tree-optimization/56398
88b97037 2355 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 2356
ec9c9d1b
MJ
23572013-02-20 Martin Jambor <mjambor@suse.cz>
2358
2359 PR tree-optimization/55334
2360 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2361 restricted pointers to arrays.
2362
e91c8ed6 23632013-02-20 Richard Biener <rguenther@suse.de>
88b97037 2364 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
2365
2366 PR tree-optimization/56396
2367 * tree-ssa-ccp.c (n_const_val): New static variable.
2368 (get_value): Return NULL for SSA names we don't have a lattice
2369 entry for.
2370 (ccp_initialize): Initialize n_const_val.
2371 * tree-ssa-copy.c (n_copy_of): New static variable.
2372 (init_copy_prop): Initialize n_copy_of.
2373 (get_value): Return NULL_TREE for SSA names we don't have a
2374 lattice entry for.
2375
3d916479
MJ
23762013-02-20 Martin Jambor <mjambor@suse.cz>
2377
2378 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2379
71a86758
RB
23802013-02-20 Richard Biener <rguenther@suse.de>
2381
2382 * genpreds.c (write_lookup_constraint): Do not compare first
2383 letter of the constraint again.
2384
79836a12
RB
23852013-02-20 Richard Biener <rguenther@suse.de>
2386
2387 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2388 and ceil_log2.
2389 (get_use_iv_cost): Terminate hashtable walk when coming across
2390 an empty entry.
2391
bbe4fb2c
IZ
23922013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2393
2394 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2395 reassociation for avx2 targets.
2396
a72d8780 23972012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 2398
c77f83d5
EI
2399 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2400 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 2401 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
2402 version and TARGET_PATTERN_COMPARE check
2403 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 2404
a72d8780 24052012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 2406
a72d8780 2407 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
2408 function before branching.
2409
242387fa
AB
24102012-02-19 Andrey Belevantsev <abel@ispras.ru>
2411
2412 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2413 DUMP_INSN_RTX_UID.
2414 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2415
b4979ab9
AB
24162012-02-19 Andrey Belevantsev <abel@ispras.ru>
2417
2418 PR middle-end/55889
b4979ab9
AB
2419 * sel-sched.c: Include ira.h.
2420 (implicit_clobber_conflict_p): New function.
2421 (moveup_expr): Use it.
88b97037 2422 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 2423
24d63016
RB
24242013-02-19 Richard Biener <rguenther@suse.de>
2425
2426 PR tree-optimization/56384
2427 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2428 (vn_hash_type): Split out from ...
2429 (vn_hash_constant_with_type): ... here.
2430 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2431 (vn_phi_eq): Compare types from vn_phi_s structure.
2432 (vn_phi_lookup): Populate vn_phi_s type.
2433 (vn_phi_insert): Likewise.
2434
a475fd3d
JJ
24352013-02-19 Jakub Jelinek <jakub@redhat.com>
2436
47cc28f5
JJ
2437 PR tree-optimization/56350
2438 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2439 if haven't found reduction or nested cycle operand, rather than
2440 asserting we must find it.
2441
a475fd3d
JJ
2442 PR tree-optimization/56381
2443 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2444 to fold_build3.
2445
24462013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
2447 Jakub Jelinek <jakub@redhat.com>
2448
2449 PR target/52555
2450 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2451 (swap_optab_enable): Same.
2452 (init_all_optabs): Use argument instead of global.
88b97037 2453 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
2454 * expr.h (init_all_optabs): Add argument to prototype.
2455 (TREE_OPTIMIZATION_OPTABS): New.
2456 (save_optabs_if_changed): Protoize.
2457 * optabs.h: Declare this_fn_optabs.
2458 * optabs.c (save_optabs_if_changed): New.
2459 Declare this_fn_optabs.
2460 (init_optabs): Add argument to init_all_optabs() call.
2461 * function.c (invoke_set_current_function_hook): Handle per
2462 function optabs.
2463 * function.h (struct function): New field optabs.
2464 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2465 optimization_current_node has changed.
2466 * target-globals.h (save_target_globals_default_opts): Protoize.
2467 * target-globals.c (save_target_globals_default_opts): New.
2468
3f587ca3
JDA
24692013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2470
2471 PR target/56347
2472 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2473 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
2474
2475 PR target/56214
2476 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
2477 and HImode, require all displacements to be an integer multiple of
2478 their mode size.
ceaca33e
JDA
2479 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2480 only allow QImode and HImode when reload is in progress and strict is
2481 true. Likewise for symbolic addresses. Use base14_operand to check
2482 displacements in REG+BASE addresses.
2483
fe0b4796
RB
24842013-02-18 Richard Biener <rguenther@suse.de>
2485
2486 PR tree-optimization/56366
2487 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2488 handle sign-conversion of outer-loop initial induction value.
2489
6aaf596b
RB
24902013-02-18 Richard Biener <rguenther@suse.de>
2491
73db8ff1 2492 PR middle-end/56349
6aaf596b
RB
2493 * cfghooks.c (merge_blocks): If we merge a latch into another
2494 block adjust references to it.
2495 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2496 (verify_loop_structure): Verify that a recorded latch is in fact
2497 a latch.
2498
5e97dfb6
RB
24992013-02-18 Richard Biener <rguenther@suse.de>
2500
2501 PR tree-optimization/56321
2502 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2503 order SSA name release and virtual operand unlinking.
2504
825527e8
EI
25052013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2506
2507 * config/microblaze/microblaze.md (save_stack_block): Define.
2508 (restore_stack_block): Likewise.
2509
debd11d9
EI
25102013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2511
2512 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2513 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2514 * config/microblaze/microblaze.c (microblaze_option_override):
2515 Bail out early for PIC modes when target does not support PIC.
2516
8ec77be0
EI
25172013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2518
88b97037 2519 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
2520 Replace with a microblaze version.
2521 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 2522 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
2523 microblaze.
2524
b41288b3
JJ
25252013-02-16 Jakub Jelinek <jakub@redhat.com>
2526 Dodji Seketeli <dodji@redhat.com>
2527
2528 PR asan/56330
88b97037 2529 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
2530 (instrument_mem_region_access): Do not forget to always put
2531 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2532 0) statement, even for cases where either 'base' or 'base + len'
2533 are not instrumented -- because they have been previously
2534 instrumented. Simplify the logic by putting all the statements
2535 instrument 'base + len' inside a sequence, and then insert that
2536 sequence right before the current insertion point. Then, to
2537 instrument 'base + len', just get an iterator on that statement.
2538 And do not forget to update the pointer to iterator the function
2539 received as argument.
2540
47918951
VM
25412013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2542
2543 PR rtl-optimization/56348
2544 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2545
3fb7c699
SB
25462013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2547
2548 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2549 (clean_graph_dump_file): Pass base to start_graph_dump.
2550
576fe41a
RH
25512013-02-14 Richard Henderson <rth@redhat.com>
2552
2553 PR target/55941
2554 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2555
bb3accfa
SB
25562013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2557
2558 * collect2-aix.h: Define F_LOADONLY.
2559
03143140
RB
25602013-02-14 Richard Biener <rguenther@suse.de>
2561
2562 PR lto/50494
2563 * varasm.c (output_constant_def_1): Get the decl representing
2564 the constant as argument.
2565 (output_constant_def): Wrap output_constant_def_1.
2566 (make_decl_rtl): Use output_constant_def_1 with the decl
2567 representing the constant.
2568 (build_constant_desc): Optionally re-use a decl already
2569 representing the constant.
2570 (tree_output_constant_def): Adjust.
2571
8fb06726
DS
25722013-02-14 Dodji Seketeli <dodji@redhat.com>
2573
2574 Fix an asan crash
2575 * asan.c (instrument_builtin_call): Really put the length of the
2576 second source argument into src1_len.
2577
c4bfe8bf
JJ
25782013-02-13 Jakub Jelinek <jakub@redhat.com>
2579
2580 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2581 argument. If it is false, don't create edge from then_bb to
2582 fallthru_bb.
2583 (insert_if_then_before_iter): Pass true to it.
2584 (build_check_stmt): Pass false to it.
2585 (transform_statements): Flush hash table only on extended basic
2586 block boundaries, rather than at the beginning of every bb.
2587 Don't flush hash table on nonfreeing_call_p calls.
2588 * tree-flow.h (nonfreeing_call_p): New prototype.
2589 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2590
7afe2801
DM
25912013-02-13 David S. Miller <davem@davemloft.net>
2592
2593 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2594
70cc3288
VM
25952013-02-13 Vladimir Makarov <vmakarov@redhat.com>
2596
2597 PR target/56184
2598 * ira.c (max_regno_before_ira): Move from ...
2599 (ira): ... here.
2600 (fix_reg_equiv_init): Use max_regno_before_ira instead of
2601 vec_safe_length.
2602
6422242b
JJ
26032013-02-13 Jakub Jelinek <jakub@redhat.com>
2604
2605 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2606
976a81ee
RB
26072013-02-13 Richard Biener <rguenther@suse.de>
2608
2609 PR lto/56295
2610 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
2611 globals in MEM_REFs.
2612
c1874a87
RB
26132013-02-13 Richard Biener <rguenther@suse.de>
2614
2615 * loop-init.c (loop_optimizer_init): Clear loop state when
2616 re-initializing preserved loops.
2617 * loop-unswitch.c (unswitch_single_loop): Return whether
2618 we unswitched the loop. Do not verify loop state here.
88b97037 2619 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 2620
b4ab7d34
KS
26212013-02-13 Kostya Serebryany <kcc@google.com>
2622
88b97037
UB
2623 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
2624 on x86_64 linux.
b4ab7d34
KS
2625 * sanitizer.def: Rename __asan_init to __asan_init_v1.
2626
bdcbe80c
DS
26272013-02-12 Dodji Seketeli <dodji@redhat.com>
2628
2629 Avoid instrumenting duplicated memory access in the same basic block
2630 * Makefile.in (asan.o): Add new dependency on hash-table.h
2631 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
2632 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
2633 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
2634 (free_mem_ref_resources, has_mem_ref_been_instrumented)
2635 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
2636 (get_mem_ref_of_assignment): New functions.
2637 (get_mem_refs_of_builtin_call): Extract from
2638 instrument_builtin_call and tweak a little bit to make it fit with
2639 the new signature.
2640 (instrument_builtin_call): Use the new
2641 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
2642 of is_gimple_builtin_call.
2643 (instrument_derefs, instrument_mem_region_access): Insert the
2644 instrumented memory reference into the hash table.
2645 (maybe_instrument_assignment): Renamed instrument_assignment into
2646 this, and change it to advance the iterator when instrumentation
2647 actually happened and return true in that case. This makes it
2648 homogeneous with maybe_instrument_assignment, and thus give a
2649 chance to callers to be more 'regular'.
2650 (transform_statements): Clear the memory reference hash table
2651 whenever we enter a new BB, when we cross a function call, or when
2652 we are done transforming statements. Use
2653 maybe_instrument_assignment instead of instrumentation. No more
2654 need to special case maybe_instrument_assignment and advance the
2655 iterator after calling it; it's now handled just like
2656 maybe_instrument_call. Update comment.
2657
4861a1f7
RB
26582013-02-13 Richard Biener <rguenther@suse.de>
2659
2660 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
2661 Fix loop discovery code.
2662
1c86bd80
VM
26632013-02-12 Vladimir Makarov <vmakarov@redhat.com>
2664
2665 PR inline-asm/56148
2666 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 2667 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
2668 the operand is not reloaded. Prefer to reload conflicting operand
2669 if earlyclobber and matching operands are the same.
2670
7cbda518
RB
26712013-02-12 Richard Biener <rguenther@suse.de>
2672
2673 PR lto/56297
2674 * lto-streamer-out.c (write_symbol): Do not output symbols
2675 for hard register variables.
2676
e68a4ef6
GJL
26772013-02-12 Georg-Johann Lay <avr@gjlay.de>
2678
2679 PR target/54222
2680 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
2681 (umulsidi3_insn, mulsidi3_insn): New insns.
2682
a72d8780 26832013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
2684
2685 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
2686 (struct tune_params): Add vec_costs field.
2687 * config/arm/arm.c (arm_builtin_vectorization_cost)
2688 (arm_add_stmt_cost): New functions.
2689 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
2690 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
2691 (arm_default_vec_cost): New struct of type cpu_vec_costs.
2692 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2693 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
2694 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
2695 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
2696
43320568
RB
26972013-02-12 Richard Biener <rguenther@suse.de>
2698
2699 PR lto/56295
2700 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
2701 decls again if possible.
2702
a011aa39
RB
27032013-02-12 Richard Biener <rguenther@suse.de>
2704
2705 PR middle-end/56288
2706 * tree-ssa.c (verify_ssa_name): Fix check, move
2707 SSA_NAME_IN_FREE_LIST check up.
2708
6da26889
JJ
27092013-02-12 Jakub Jelinek <jakub@redhat.com>
2710 Steven Bosscher <steven@gcc.gnu.org>
2711
2712 PR rtl-optimization/56151
2713 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
2714 equal to op0 or op1, and last_insn pattern is CODE operation
2715 with MEM dest and one of the operands matches that MEM.
2716
f80e0faf
ST
27172013-02-11 Sriraman Tallam <tmsriramgoogle.com>
2718
2719 * doc/extend.texi: Document Function Multiversioning and "default"
2720 parameter string to target attribute.
2721 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
2722 target attribute parameter is "default".
2723 (ix86_compare_version_priority): Remove checks for target attribute.
2724 (ix86_mangle_function_version_assembler_name): Change error to sorry.
2725 Remove check for target attribute equal to NULL. Add assert.
2726 (ix86_generate_version_dispatcher_body): Change error to sorry.
2727
6c59ffd1
IS
27282013-02-11 Iain Sandoe <iain@codesourcery.com>
2729 Jack Howarth <howarth@bromo.med.uc.edu>
2730 Patrick Marlier <patrick.marlier@gmail.com>
2731
2732 PR libitm/55693
2733 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
2734 define ENDFILE_SPEC as TM_DESTRUCTOR.
2735 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
2736
a72d8780 27372013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
2738 Jack Howarth <howarth@bromo.med.uc.edu>
2739 Jakub Jelinek <jakub@redhat.com>
2740
2741 PR sanitizer/55617
2742 * config/darwin.c (cdtor_record): Rename ctor_record.
2743 (sort_cdtor_records): Rename sort_ctor_records.
2744 (finalize_dtors): New routine to sort destructors by
2745 priority before use in assemble_integer.
2746 (machopic_asm_out_destructor): Use finalize_dtors if needed.
2747
b63fe007
UB
27482013-02-11 Uros Bizjak <ubizjak@gmail.com>
2749
2750 PR rtl-optimization/56275
2751 * simplify-rtx.c (avoid_constant_pool_reference): Check that
2752 offset is non-negative and less than cmode size before
2753 calling simplify_subreg.
2754
8e89b5b5
RB
27552013-02-11 Richard Biener <rguenther@suse.de>
2756
2757 PR tree-optimization/56264
2758 * cfgloop.h (fix_loop_structure): Adjust prototype.
2759 * loop-init.c (fix_loop_structure): Return the number of
2760 newly discovered loops.
2761 * tree-cfgcleanup.c (repair_loop_structures): When new loops
2762 are discovered, do a full loop-closed SSA rewrite.
2763
b4a4b56d
RB
27642013-02-11 Richard Biener <rguenther@suse.de>
2765
2766 PR tree-optimization/56273
2767 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2768 first VRP run.
2769 (check_array_ref): Fix missing newline in dumps.
2770 (search_for_addr_array): Likewise.
2771
0c885229
DE
27722013-02-09 David Edelsohn <dje.gcc@gmail.com>
2773
2774 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
2775
59ac9a55
JJ
27762013-02-09 Jakub Jelinek <jakub@redhat.com>
2777
2778 PR target/56256
2779 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
2780
25bb0bb5
VM
27812013-02-08 Vladimir Makarov <vmakarov@redhat.com>
2782
2783 PR rtl-optimization/56246
0c885229 2784 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
2785 reload pseudo.
2786 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
2787 constraints are satisfied.
2788
a698cc03
JL
27892013-02-08 Jeff Law <law@redhat.com>
2790
2791 PR debug/53948
2792 * emit-rtl.c (reg_is_parm_p): New function.
2793 * regs.h (reg_is_parm_p): New prototype.
2794 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
2795 callee-clobbered registers.
2796
e1122ddd
MM
27972013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
2798
2799 PR target/56043
2800 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
2801 If there is no implicit builtin declaration, just return NULL.
2802
19c5f6e6
UB
28032013-02-08 Uros Bizjak <ubizjak@gmail.com>
2804
2805 * config/i386/sse.md (FMAMODEM): New mode iterator.
2806 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
2807 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
2808
2480f2ca 28092013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 2810
2480f2ca
UB
2811 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
2812 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
2813 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
2814
28152013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2816
2817 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
2818 (microblaze*-*-elf): Likewise.
2819 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
2820 LINK_SPEC.
2821 * config/microblaze/microblaze-c.c: Add builtin defines for
2822 _LITTLE_ENDIAN and _BIG_ENDIAN.
2823 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
2824 add to TARGET_DEFAULT flags.
76ef61fb 2825 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
2826 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
2827 * config/microblaze/microblaze.md: Update extendsidi2 and
2828 movdi_internal instructions to use low-order / high-order reg
2829 print_operands.
2830 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
2831 options and inversemask / mask of LITTLE_ENDIAN.
2832 * config/microblaze/t-microblaze: Expand multilib options to
2833 include mlittle-endian (le) and update exceptions patterns.
2834
600a5961
JJ
28352013-02-08 Jakub Jelinek <jakub@redhat.com>
2836
5df81313
JJ
2837 PR rtl-optimization/56195
2838 * lra-constraints.c (get_reload_reg): Don't reuse regs
2839 if they have smaller mode than requested, if they have
2840 wider mode than requested, try to return a SUBREG.
2841
600a5961
JJ
2842 PR tree-optimization/56250
2843 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
2844 if type is unsigned and code isn't MULT_EXPR.
2845
ff544649
GJL
28462013-02-08 Georg-Johann Lay <avr@gjlay.de>
2847
2848 PR tree-optimization/56064
2849 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
2850 bits according to mode.
2851 * fixed-value.h (fixed_from_double_int)
2852 (const_fixed_from_double_int): Adjust comments.
2853
e45cde98
RB
28542013-02-08 Richard Biener <rguenther@suse.de>
2855
2856 PR lto/56231
2857 * lto-streamer.h (struct data_in): Remove current_file, current_line
2858 and current_col members.
2859 * lto-streamer-out.c (lto_output_location): Stream changed bits
2860 en-block for efficiency.
2861 * lto-streamer-in.c (clear_line_info): Remove.
2862 (lto_input_location): Cache current file, line and column
2863 globally via local statics. Read changed bits en-block.
2864 (input_function): Do not call clear_line_info.
2865 (lto_read_body): Likewise.
2866 (lto_input_toplevel_asms): Likewise.
2867
c1ca73d8
MM
28682013-02-08 Michael Matz <matz@suse.de>
2869
2870 PR tree-optimization/52448
2871 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
2872 (nt_call_phase): New static.
2873 (add_or_mark_expr): Only mark accesses with newer phase than any
2874 call seen.
2875 (nonfreeing_call_p): New.
2876 (nt_init_block): Update nt_call_phase, mark blocks as visited.
2877 (nt_fini_block): Keep blocks marked as visited.
2878 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
2879
57548aa2
RB
28802013-02-08 Richard Biener <rguenther@suse.de>
2881
2882 * ira.c (ira): Free broken dominator information.
2883
8e10366f
UB
28842013-02-08 Uros Bizjak <ubizjak@gmail.com>
2885
2886 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
2887
f64fb0fa
MP
28882013-02-08 Marek Polacek <polacek@redhat.com>
2889
8e10366f 2890 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 2891
0375167b
RB
28922013-02-08 Richard Biener <rguenther@suse.de>
2893
2894 PR middle-end/56181
2895 * cfgloop.h (flow_loops_find): Adjust.
2896 (bb_loop_header_p): Declare.
2897 * cfgloop.c (bb_loop_header_p): New function split out from ...
2898 (flow_loops_find): ... here. Adjust function signature,
2899 support incremental loop structure update.
2900 (verify_loop_structure): Cleanup. Verify a loop is a loop.
2901 * cfgloopmanip.c (fix_loop_structure): Move ...
2902 * loop-init.c (fix_loop_structure): ... here.
2903 (apply_loop_flags): Split out from ...
2904 (loop_optimizer_init): ... here.
2905 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
2906 in incremental mode, only remove dead loops here.
2907
85d768f3
GJL
29082013-02-08 Georg-Johann Lay <avr@gjlay.de>
2909
2910 PR target/54222
2911 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
2912 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
2913 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
2914 (*round<mode>3.libgcc): New insns for fixed-modes.
2915 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
2916 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
2917 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
2918 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
2919 implementations. Define to __builtin_avr_absFX,
2920 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
2921 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
2922 __builtin_avr_countlsFX, respectively.
2923 * config/avr/avr-c.c (target.h): Include it.
2924 (enum avr_builtin_id): New enum.
2925 (avr_resolve_overloaded_builtin): New static function.
2926 (avr_register_target_pragmas): Use it to set
2927 targetm.resolve_overloaded_builtin.
2928 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
2929 tree nodes used by DEF_BUILTIN.
2930 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
2931 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
2932 <AVR_BUILTIN_xxBITS>: Same.
2933
661bc682
RB
29342013-02-08 Richard Biener <rguenther@suse.de>
2935
2936 * cfgloop.c (verify_loop_structure): Properly handle
2937 a loop exiting to another loop header.
2938 * ira-int.h (ira_loops): Remove.
2939 * ira.c (ira_loops): Remove.
2940 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
2941 (do_reload): Use loop_optimizer_finalize.
2942 * ira-build.c (create_loop_tree_nodes): Use get_loops and
2943 number_of_loops to access the loop tree.
2944 (more_one_region_p): Likewise.
2945 (finish_loop_tree_nodes): Likewise.
2946 (rebuild_regno_allocno_maps): Likewise.
2947 (mark_loops_for_removal): Likewise.
2948 (mark_all_loops_for_removal): Likewise.
2949 (remove_unnecessary_regions): Likewise.
2950 (ira_build): Likewise.
2951 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2952
0d5049b2
RB
29532013-02-08 Richard Biener <rguenther@suse.de>
2954
2955 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
2956 * ipa-pure-const.c (analyze_function): Avoid calling
2957 mark_irreducible_loops twice.
8e10366f 2958 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 2959
499f32e8
DM
29602013-02-07 David S. Miller <davem@davemloft.net>
2961
2962 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
2963 on 'reg'.
2964 * var-tracking.c (vt_add_function_parameter): Test the presence of
2965 HAVE_window_save properly and do not remap argument registers when
2966 we have a leaf function.
2967
6edc3e32
UB
29682013-02-07 Uros Bizjak <ubizjak@gmail.com>
2969
2970 PR bootstrap/56227
2971 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
2972 instead of "ll".
2973 * config/i386/i386.c (ix86_print_operand): Ditto.
2974
5306401f
VM
29752013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2976
6edc3e32 2977 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 2978
027ece11
VM
29792013-02-07 Vladimir Makarov <vmakarov@redhat.com>
2980
2981 PR rtl-optimization/56225
2982 * lra-constraints.c (process_alt_operands): Check that reload hard
2983 reg can hold value for strict_low_part.
2984
f980dfdb
JJ
29852013-02-07 Jakub Jelinek <jakub@redhat.com>
2986
2987 PR debug/56154
2988 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
2989 dwarf2out_end_function.
2990 (in_first_function_p, maybe_at_text_label_p,
2991 first_loclabel_num_not_at_text_label): New variables.
2992 (dwarf2out_var_location): In the first function find out
6edc3e32 2993 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
2994 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
2995 functions.
2996
73dd3123
EB
29972013-02-07 Eric Botcazou <ebotcazou@adacore.com>
2998
2999 PR rtl-optimization/56178
3000 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3001 SUBREG of a register. Tidy up related block of code.
3002 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3003 note if the source is a register or a SUBREG of a register.
3004
e3936f47
JJ
30052013-02-07 Jakub Jelinek <jakub@redhat.com>
3006
3007 PR target/56228
3008 * config/rs6000/rs6000.md (ptrm): New mode attr.
3009 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3010 call_value_indirect_aix<pttrsize>,
3011 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3012 m in constraints.
3013
d96d674b
MH
30142013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3015
3016 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3017 if -bnortl. Convert to strcmp and strncmp.
3018
921f2dee
AM
30192013-02-07 Alan Modra <amodra@gmail.com>
3020
3021 PR target/54009
3022 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3023 addresses won't wrap when offsetting.
3024 (rs6000_secondary_reload): Provide secondary reloads needed for
3025 wrapping LO_SUM addresses.
3026
d09c7dba
TS
30272013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3028
3029 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3030 MACH, just __MACH__.
3031
a44bbd48
RB
30322013-02-06 Richard Biener <rguenther@suse.de>
3033
3034 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3035 instead of calling fix_loop_structure.
3036
6d840d99
JJ
30372013-02-06 Jakub Jelinek <jakub@redhat.com>
3038
3039 PR middle-end/56217
3040 * omp-low.c (use_pointer_for_field): Return false if
3041 lower_send_shared_vars doesn't generate any copy-out code.
3042
0f33baa9
TV
30432013-02-06 Tom de Vries <tom@codesourcery.com>
3044
3045 PR rtl-optimization/56131
3046 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3047 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3048 of the label is NULL. Add comment.
3049
11f1e3ab
JJ
30502013-02-05 Jakub Jelinek <jakub@redhat.com>
3051
31502f9f
JJ
3052 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3053
a74db9bd
JJ
3054 PR sanitizer/55374
3055 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3056 (STATIC_LIBTSAN_LIBS): Likewise.
3057 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3058 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3059 is defined, don't add anything else beyond that.
3060 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3061 (LINK_COMMAND_SPEC): Use them.
3062
11f1e3ab
JJ
3063 PR tree-optimization/56205
3064 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3065 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3066 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3067
14ac6aa2
RB
30682013-02-05 Richard Biener <rguenther@suse.de>
3069
3070 PR tree-optimization/53342
3071 PR tree-optimization/53185
3072 * tree-vectorizer.h (vect_check_strided_load): Remove.
3073 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3074 not disallow peeling for vectorized strided loads.
3075 (vect_check_strided_load): Make static and simplify.
3076 (vect_analyze_data_refs): Adjust.
3077 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3078 correctly when vectorizing strided loads.
3079
6f22445a
RB
30802013-02-05 Richard Biener <rguenther@suse.de>
3081
3082 * doc/install.texi: Refer to ISL, not PPL.
3083
39f9719e
JH
30842013-02-05 Jan Hubicka <jh@suse.cz>
3085
ec4224ac
JH
3086 PR tree-optimization/55789
3087 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3088
30892013-02-05 Jan Hubicka <jh@suse.cz>
3090
3091 PR tree-optimization/55789
39f9719e
JH
3092 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3093 the dead call anyway.
3094
956d3b33
EB
30952013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3096
3097 PR sanitizer/55374
3098 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3099
31002013-02-04 Alexander Potapenko <glider@google.com>
3101 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
3102 Jakub Jelinek <jakub@redhat.com>
3103
3104 PR sanitizer/55617
3105 * config/darwin.c (sort_ctor_records): Stabilized qsort
3106 on constructor priority by using original position.
3107 (finalize_ctors): New routine to sort constructors by
3108 priority before use in assemble_integer.
3109 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3110
7ac3af38
JJ
31112013-02-04 Jakub Jelinek <jakub@redhat.com>
3112
3113 PR libstdc++/54314
3114 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3115 about visibility on artificial decls.
3116 * config/sol2.c (solaris_assemble_visibility): Likewise.
3117
152689dc
KT
31182013-02-04 Kai Tietz <ktietz@redhat.com>
3119
3120 PR target/56186
3121 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3122 argument and improve checking of return-argument types for 16-byte
3123 modes.
3124 (ix86_function_value_1): Add additional valtype argument on call
3125 of function_value_64.
3126 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3127 handling infunction_value_64 function.
3128
2b5987b5
MGD
31292013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3130
7ac3af38 3131 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 3132
14597080
RB
31332013-02-04 Richard Biener <rguenther@suse.de>
3134
3135 PR tree-optimization/56188
3136 * tree-ssa-structalias.c (label_visit): Consider case with
3137 initially non-empty points-to set.
3138 (perform_var_substitution): Dump node mapping and clean up.
3139
ed73881e
RG
31402013-02-04 Richard Guenther <rguenther@suse.de>
3141
3142 PR lto/56168
3143 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3144 node prevail as last resort.
3145 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 3146 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 3147
139a0707
RB
31482013-02-04 Richard Biener <rguenther@suse.de>
3149
3150 PR tree-optimization/56113
3151 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3152 Merge into ...
3153 (equiv_class_lookup_or_add): ... this.
3154 (label_visit): Adjust and fix error in previous patch.
3155 (perform_var_substitution): Adjust.
3156
50fe8924
OE
31572013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3158
3159 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3160 * config/sh/sh4-300.md: Likewise.
3161 * config/sh/sh4a.md: Likewise.
3162 * config/sh/constraints.md: Likewise.
3163 * config/sh/sh.md: Likewise.
3164 * config/sh/netbsd-elf.h: Likewise.
3165 * config/sh/predicates.md: Likewise.
3166 * config/sh/sh-protos.h: Likewise.
3167 * config/sh/ushmedia.h: Likewise.
3168 * config/sh/linux.h: Likewise.
3169 * config/sh/sh.c: Likewise.
3170 * config/sh/superh.h: Likewise.
3171 * config/sh/elf.h: Likewise.
3172 * config/sh/sh4.md: Likewise.
3173 * config/sh/sh.h: Likewise.
3174
1a04ac2b
JDA
31752013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3176
3177 * config/pa/constraints.md: Adjust unused letters. Change "T"
3178 constraint to match_test floating_point_store_memory_operand().
3179 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3180 (base14_operand): New.
3181 (floating_point_store_memory_operand): New.
3182 (integer_store_memory_operand): Revise to use base14_operand and
3183 reg_plus_base_memory_operand.
3184 (move_dest_operand): Allow symbolic_memory_operands.
3185 (symbolic_memory_operand): Check for LO_SOM.
3186 (symbolic_operand): Change default case to break.
3187 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3188 CONST_DOUBLE values to be reloaded by putting them into memory when
3189 the destination is a floating point register.
3190 (movdf): Remove code to handle CONST_DOUBLE.
3191 (movsf): Likewise.
3192 (reload_indf_r1): New.
3193 (reload_insf_r1): New.
3194 Consistently use "Q" and "T" constraints with integer and floating
3195 point move instructions, respectively.
3196 (movdi): Remove FAIL.
3197 Change predicate for source operand unamed DImode move from
3198 general_operand to move_src_operand.
3199 (umulsidi3): Change predicate for destination operand to
3200 register_operand.
3201 Likewise for similar unamed patterns.
3202 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3203 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3204 (hppa_legitimize_address): Simplify mask calculation.
3205 (pa_emit_move_sequence): Revised handling of secondary reloads from
3206 REG+D addresses for floating point loads and stores. Directly handle
3207 loading CONST0_RTX (mode) to a floating point register.
3208 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3209 to floating point registers. Don't restrict secondary reloads to
3210 floating point registers to integer modes. Revise some comments and
3211 cleanup some code.
3212 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3213 (pa_legitimate_address_p): New.
3214 (pa_legitimize_reload_address): New.
3215 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3216 (STRICT_REG_OK_FOR_BASE_P): New.
3217 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3218 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3219
3bf65591
DE
32202013-02-03 David Edelsohn <dje.gcc@gmail.com>
3221 Andrew Dixie <andrewd@gentrack.com>
3222
3223 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3224 flag set.
3225
c0a8a3e6
RS
32262013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3227
3228 * expmed.c (extract_bit_field_1): Pass the full width of the
3229 structure to get_best_reg_extraction_insn.
3230
99113dff
DE
32312013-02-01 David Edelsohn <dje.gcc@gmail.com>
3232
3233 PR target/54601
3234 * configure.ac (use_cxa_atexit): Add AIX.
3235 * configure: Regenerate.
3236
3237 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3238
ddd84654
JJ
32392013-02-01 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR debug/54793
3242 * final.c (need_profile_function): New variable.
3243 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3244 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3245 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3246 notes, targetm.asm_out.function_prologue doesn't emit anything,
3247 HAVE_prologue and profiler should be emitted before prologue,
3248 set need_profile_function instead of emitting it.
3249 (final_scan_insn): If need_profile_function, emit
3250 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3251 NOTE_INSN_FUNCTION_BEG note.
3252
32532013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
3254
3255 * config/rs6000/rs6000.md (smulditi3): New.
3256 (umulditi3): New.
3257
ff2a9d88
RH
3258 * config/alpha/alpha.md (umulditi3): New.
3259
14d52b90
DE
32602013-02-01 David Edelsohn <dje.gcc@gmail.com>
3261
3262 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3263 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3264
8c7ca45c
RB
32652013-02-01 Richard Biener <rguenther@suse.de>
3266
3267 PR tree-optimization/56113
3268 * tree-ssa-structalias.c (label_visit): Reduce work for
3269 single-predecessor nodes.
3270
9f419393
EB
32712013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3272
3273 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3274 range isn't testing for zero.
3275
c5f4be84
SB
32762013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3277
3278 PR middle-end/56113
3279 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3280
dbdbd982
NC
32812013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3282 Nick Clifton <nickc@redhat.com>
3283
3284 * config/v850/constraints.md (Q): Define as a memory constraint.
3285 * config/v850/predicates.md (label_ref_operand): New predicate.
3286 (e3v5_shift_operand): New predicate.
3287 (ior_operator): New predicate.
3288 * config/v850/t-v850: Add e3v5 multilib.
3289 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3290 (v850_gen_movdi): Prototype.
3291 * config/v850/v850.c: Add support for e3v5 architecture.
3292 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3293 TARGET_V850E_UP.
3294 (construct_save_jarl): Add e3v5 long JARL support.
3295 (v850_adjust_insn_length): New function. Adjust length of call
3296 insns when using e3v5 instructions.
3297 (v850_gen_movdi): New function: Generate instructions to move a
3298 DImode value.
3299 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3300 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3301 (TARGET_USE_FPU): Enable for e3v5.
3302 (CONST_OK_FOR_W): New macro.
3303 (ADJUST_INSN_LENGTH): Define.
3304 * config/v850/v850.md (UNSPEC_LOOP): Define.
3305 (attr cpu): Add v850e3v5.
3306 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3307 (movdi): New pattern.
3308 (movdi_internal): New pattern.
3309 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3310 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3311 (cstoresf4): Likewise.
3312 (cstoredf4): Likewise.
3313 (insv): New pattern.
3314 (rotlso3_a): New pattern.
3315 (rotlsi3_b): New pattern
3316 (rotlsi3_v850e3v5): New pattern.
3317 (doloop_begin): New pattern.
3318 (fix_loop_counter): New pattern.
3319 (doloop_end): New pattern.
3320 (branch_normal): Add e3v5 long branch support.
3321 (branch_invert): Likewise.
3322 (branch_z_normal): Likewise.
3323 (branch_z_invert): Likewise.
3324 (branch_nz_normal): Likewise.
3325 (branch_nz_invert): Likewise.
3326 (call_internal_short): Add e3v5 register-indirect JARL support.
3327 (call_internal_long): Likewise.
3328 (call_value_internal_short): Likewise.
3329 (call_value_internal_long): Likewise.
3330 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3331 (mloop): New option.
3332 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 3333 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 3334
73861a41
PK
33352013-01-31 Paul Koning <ni1d@arrl.net>
3336
3337 PR debug/55059
3338 PR debug/54508
3339 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3340 children if parent is a class.
3341 (prune_unused_types_prune): Don't add DW_AT_declaration.
3342
e44978dc
RB
33432013-01-31 Richard Biener <rguenther@suse.de>
3344
3345 PR tree-optimization/56157
3346 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3347 match up operand with SLP child.
3348
90b10dec
JM
33492013-01-31 Jason Merrill <jason@redhat.com>
3350
04d2dadd 3351 PR debug/54410
90b10dec
JM
3352 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3353 parameters the first time.
3354 (gen_scheduled_generic_parms_dies): Check completeness here.
3355
6e616110
RB
33562013-01-31 Richard Biener <rguenther@suse.de>
3357
3358 PR middle-end/53073
3359 * common.opt (faggressive-loop-optimizations): New flag,
3360 enabled by default.
3361 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3362 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3363 infer_loop_bounds_from_undefined by it.
3364
636f59cf
RB
33652013-01-31 Richard Biener <rguenther@suse.de>
3366
3367 PR tree-optimization/56150
3368 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3369 visit virtual operands.
3370 (find_uses_to_rename_bb): Likewise.
3371
33722013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
3373
3374 PR tree-optimization/56150
3375 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3376 mixed store non-store stmts.
3377
32887460
JJ
33782013-01-30 Jakub Jelinek <jakub@redhat.com>
3379
e60e09a0
JJ
3380 PR sanitizer/55374
3381 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3382 LIBASAN_EARLY_SPEC is defined.
3383 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3384 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3385 before %o.
3386 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3387
32887460
JJ
3388 PR c++/55742
3389 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3390 invalid args instead of ICEing on it.
3391 (ix86_valid_target_attribute_tree): Return error_mark_node if
3392 ix86_valid_target_attribute_inner_p failed.
3393 (ix86_valid_target_attribute_p): Return false only if
3394 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3395 target("default") attribute.
3396 (sorted_attr_string): Change argument from const char * to tree,
3397 merge in all target attribute arguments rather than just one.
3398 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3399 instead of free. Avoid using strcat.
3400 (ix86_mangle_function_version_assembler_name): Mangle
3401 target("default") as if no target attribute is present. Adjust
3402 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3403 instead of xmalloc and XDELETEVEC instead of free.
3404 (ix86_function_versions): Don't return true if one of the decls
3405 doesn't have target attribute. If they don't and one of the decls
3406 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3407 sorted_attr_string caller. Use XDELETEVEC instead of free.
3408 (ix86_supports_function_versions): Remove.
3409 (make_name): Fix up formatting.
3410 (make_dispatcher_decl): Remove resolver_name and its initialization.
3411 Avoid leaking memory.
3412 (is_function_default_version): Return true if there is
3413 target("default") attribute rather than no target attribute at all.
3414 (make_resolver_func): Avoid leaking memory.
3415 (ix86_generate_version_dispatcher_body): Likewise.
3416 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3417 * target.def (supports_function_versions): Remove.
3418 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3419 * doc/tm.texi: Regenerated.
3420
73cca0cc
VM
34212013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3422
3423 PR rtl-optimization/56144
3424 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3425 for values with side effects.
3426
11452e7b
RB
34272013-01-30 Richard Biener <rguenther@suse.de>
3428
3429 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3430 (sparseset_pop): Likewise.
3431 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3432 to be able to use quick_push in the worker loop.
3433
01cb1ef5
MP
34342013-01-30 Marek Polacek <polacek@redhat.com>
3435
3436 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3437
e892936e
RB
34382013-01-30 Richard Biener <rguenther@suse.de>
3439
3440 PR lto/56147
6edc3e32 3441 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 3442
cc06c01d
GJL
34432013-01-30 Georg-Johann Lay <avr@gjlay.de>
3444
3445 PR tree-optimization/56064
3446 * fixed-value.c (fixed_from_double_int): New function.
3447 * fixed-value.h (fixed_from_double_int): New prototype.
3448 (const_fixed_from_double_int): New static inline function.
3449 * fold-const.c (native_interpret_fixed): New static function.
3450 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3451 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3452 (native_encode_fixed): New static function.
3453 (native_encode_expr) <FIXED_CST>: Use it.
3454 (native_interpret_int): Move double_int worker code to...
3455 * double-int.c (double_int::from_buffer): ...this new static method.
3456 * double-int.h (double_int::from_buffer): Prototype it.
3457
d394a308
RB
34582013-01-30 Richard Biener <rguenther@suse.de>
3459
3460 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3461 New pointer-map and obstack.
3462 (init_alias_vars): Allocate pointer-map and obstack.
3463 (delete_points_to_sets): Free them.
3464 (find_what_var_points_to): Cache result.
3465 (find_what_p_points_to): Adjust for changed interface of
3466 find_what_var_points_to.
3467 (compute_points_to_sets): Likewise.
3468 (ipa_pta_execute): Likewise.
3469
20804d96
RO
34702013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3471
3472 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3473 * configure: Regenerate.
3474 * config.in: Regenerate.
3475 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3476 #nobits/#progbits if supported.
3477
a7ad88a2
OE
34782013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3479
3480 PR target/56121
3481 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3482 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3483 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3484
7af79f92
GY
34852013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3486
91bfca59
OE
3487 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3488 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 3489
753bcf7b
GY
34902013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3491
91bfca59
OE
3492 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3493 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 3494
8cbc2ea8
GY
34952013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3496
91bfca59
OE
3497 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3498 declaration.
3499 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3500 * config/arm/cortex-a7.md: New bypasses using
3501 arm_mac_accumulator_is_result.
8cbc2ea8 3502
697a3325
GY
35032013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3504
91bfca59 3505 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 3506 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
3507 (cortex_a7_fpfmad): New reservation.
3508 (cortex_a7_fpmacs): Use ffmas and update required units.
3509 (cortex_a7_fpmuld): Update required units and latency.
3510 (cortex_a7_fpmacd): Likewise.
3511 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3512 (cortex_a7_neon). Likewise.
3513 (bypass) Update participating units.
697a3325 3514
29637783
GY
35152013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3516
91bfca59
OE
3517 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3518 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3519 from fmac to ffma.
3520 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3521 (vfp_fmul): Use ffmad.
3522 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3523 (cortex_r4_fmacd): Use ffmad.
3524 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3525 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3526 (cortex_a9_fmacd): Use ffmad.
3527 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3528 (cortex_a8_vfp_macd): Use ffmad.
3529 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3530 (cortex_a5_fpmacd): Use ffmad.
3531 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3532 (cortex_a15_vfp_macd): Use ffmad.
3533 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 3534
2ee8a2d5
JM
35352013-01-29 Jason Merrill <jason@redhat.com>
3536
3537 PR libstdc++/54314
3538 * varasm.c (default_assemble_visibility): Don't warn about
3539 visibility on artificial decls.
3540
78d087bc
RB
35412013-01-29 Richard Biener <rguenther@suse.de>
3542
3543 PR tree-optimization/56113
3544 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3545 the bitmap leader.
3546 (label_visit): Free duplicate bitmaps and record the leader instead.
3547 (perform_var_substitution): Adjust.
3548
83ba4d6f
RB
35492013-01-29 Richard Biener <rguenther@suse.de>
3550
3551 PR tree-optimization/55270
3552 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3553 the CFG, schedule loops for fixup.
3554
66dfe13f
NC
35552013-01-29 Nick Clifton <nickc@redhat.com>
3556
3557 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3558 SP_REG.
3559
5a579c3b
LE
35602013-01-28 Leif Ekblad <leif@rdos.net>
3561
3562 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3563 * config/i386/i386.h (TARGET_RDOS): New macro.
3564 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3565 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3566 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3567 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3568 DEFAULT_LARGE_SECTION_THRESHOLD.
3569 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3570 * config/i386/rdos.h: New file.
3571 * config/i386/rdos64.h: New file.
3572
51e44392
BS
35732013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3574
3575 PR other/54814
3576 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3577 TEST_HARD_REG_BIT.
3578
db1fb332
JJ
35792013-01-28 Jakub Jelinek <jakub@redhat.com>
3580
3581 PR rtl-optimization/56117
3582 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3583 call cselib_lookup_from_insn on the MEM before calling
3584 add_insn_mem_dependence.
3585
16917761
RB
35862013-01-28 Richard Biener <rguenther@suse.de>
3587
3588 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3589 to a stmt that didn't have one.
3590 (copy_phis_for_bb): Likewise for PHI arguments.
3591 (copy_debug_stmt): Likewise for debug stmts.
3592
b9fc0497
RB
35932013-01-28 Richard Biener <rguenther@suse.de>
3594
3595 PR tree-optimization/56034
6edc3e32 3596 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
3597 (partition_builtin_p): Adjust.
3598 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
3599 it is the last partition.
3600 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3601 up the vertex for the definition.
3602 (classify_partition): Classify whether a partition is a
3603 PKIND_REDUCTION, thus has uses outside of the loop.
3604 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3605 Merge all PKIND_REDUCTION partitions into the last partition.
3606 (tree_loop_distribution): Seed partitions from reductions as well.
3607
aa710d25
JJ
36082013-01-28 Jakub Jelinek <jakub@redhat.com>
3609
0bfbca58
JJ
3610 PR tree-optimization/56125
3611 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
3612 pow(x,c) into sqrt(x) * powi(x, n/2) or
3613 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
3614 optimizing for size.
3615 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
3616 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
3617 integer.
3618
aa710d25
JJ
3619 PR tree-optimization/56094
3620 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
3621 to UNKNOWN_LOCATION while gimplifying expr.
3622
77dc5297
UB
36232013-01-27 Uros Bizjak <ubizjak@gmail.com>
3624
3625 PR target/56114
3626 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
3627 operand 0 in movabs insn template for -masm=intel asm alternative.
3628 (*movabs<mode>_2): Ditto for operand 1.
3629
0bfbca58 36302013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
3631
3632 PR target/54663
3633 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
3634 of microblaze-c.o
3635
0bfbca58 36362013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
3637
3638 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
3639 tm_file.
3640
0bfbca58 36412013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
3642
3643 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
3644 Undef to avoid warning.
3645
478f60f9
MH
36462013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3647
3648 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
3649 * configure: Regenerate.
3650
d7fa6ee2
JJ
36512013-01-25 Jakub Jelinek <jakub@redhat.com>
3652
3653 PR tree-optimization/56098
3654 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
3655 for stmts with volatile ops.
3656 (cond_store_replacement): Don't optimize if assign has volatile ops.
3657 (cond_if_else_store_replacement_1): Don't optimize if either
3658 then_assign or else_assign have volatile ops.
3659 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
3660 volatile ops.
3661
f8fe87bd
GJL
36622013-01-25 Georg-Johann Lay <avr@gjlay.de>
3663
3664 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
3665
28398d0d
GJL
36662013-01-25 Georg-Johann Lay <avr@gjlay.de>
3667
3668 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
3669 missing ':' in asm example.
3670
b7d7d917
TB
36712013-01-25 Tejas Belagod <tejas.belagod@arm.com>
3672
3673 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
3674 entries into lane and laneq entries.
77dc5297
UB
3675 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
3676 Remove AdvSIMD scalar modes.
b7d7d917
TB
3677 (aarch64_sq<r>dmulh_laneq<mode>): New.
3678 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
3679 modes.
3680 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
3681 builtin implementations to relfect changes in RTL in aarch64-simd.md.
3682 * config/aarch64/iterators.md (VCOND): New.
3683 (VCONQ): New.
3684
556f9906
GJL
36852013-01-25 Georg-Johann Lay <avr@gjlay.de>
3686
3687 PR target/54222
3688 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
3689 Add NULL LIBNAME argument to existing definitions.
3690 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
3691 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
3692 * config/avr/avr.c (DEF_BUILTIN): Same.
3693 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
3694 (avr_expand_builtin): Expand to a vanilla call if a libgcc
3695 implementation is available (DECL_ASSEMBLER_NAME is set).
3696 (avr_fold_absfx): New static function.
3697 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
3698 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
3699 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
3700 AVR_BUILTIN_ABSLLK.
3701 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
3702 (abshk, absk, abslk, absllk): Provide as static inline functions.
3703
1f546bbb
MP
37042013-01-25 Marek Polacek <polacek@redhat.com>
3705
3706 PR tree-optimization/56035
3707 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
3708
7e184bd7
UB
37092012-01-24 Uros Bizjak <ubizjak@gmail.com>
3710
3711 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
3712 (*movtf_internal_rex64): Add (!o,C) alternative
3713 (*movxf_internal_rex64): Ditto.
3714 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
3715
f5ba49ac
SM
37162013-01-24 Shenghou Ma <minux.ma@gmail.com>
3717
3718 * doc/invoke.texi: fix typo.
3719 * doc/objc.texi: fix typo.
3720
a6343728
RS
37212013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3722
3723 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
3724 for the first two alternatives.
3725
cd030c07
DN
37262013-01-24 Diego Novillo <dnovillo@google.com>
3727
77dc5297 3728 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
3729 (ggc-zone.o): Remove.
3730 * configure.ac: Remove option --with-gc.
3731 * configure: Re-generate.
3732 * doc/install.texi: Remove documentation for --with-gc.
3733 * gengtype.c (write_enum_defn): Remove. Update all users.
3734 (write_Types_process_field): Remove generation of gt_e_* argument.
3735 (output_type_enum): Remove. Update all users.
3736 (write_enum_defn): Remove. Update all users.
3737 (enum alloc_zone): Remove. Update all users.
77dc5297 3738 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
3739 * ggc-common.c (ggc_splay_alloc): Remove first argument.
3740 Update all callers.
3741 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 3742 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
3743 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
3744 Update all users.
aaf1e810 3745 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
3746 (struct alloc_zone): Remove.
3747 (ggc_internal_alloc_zone_stat): Remove.
3748 (ggc_internal_cleared_alloc_zone_stat): Remove.
3749 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
3750 (ggc_pch_count_object): Remove last argument. Update all users.
3751 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
3752 (struct alloc_zone): Remove.
3753 * ggc-zone.c: Remove.
77dc5297 3754 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
3755 (struct alloc_zone): Remove.
3756 (ggc_alloc_typed_stat): Remove.
3757 (ggc_alloc_typed): Remove.
3758 (ggc_splay_alloc): Remove first argument.
3759 (rtl_zone): Remove. Update all users.
3760 (tree_zone): Remove. Update all users.
3761 (tree_id_zone): Remove. Update all users.
3762 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 3763 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 3764 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 3765 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 3766
a861ffa4
GJL
37672013-01-24 Georg-Johann Lay <avr@gjlay.de>
3768
3769 * config/avr/avr.c (avr_out_fract): Make register numbers that
3770 might be outside of source operand signed.
3771
593c0ddd
UB
37722013-01-24 Uros Bizjak <ubizjak@gmail.com>
3773
3774 * config/i386/constraints.md (Yf): New constraint.
3775 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
3776 of f constraint to conditionaly disable x87 register preferences.
3777 (*movdf_internal): Ditto.
3778 (*movsf_internal): Ditto.
3779
e86c0101
SB
37802013-01-24 Steven Bosscher <steven@gcc.gnu.org>
3781
3782 PR inline-asm/55934
3783 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
3784 that have operands with impossible constraints.
3785 Add a FIXME for a speed-up opportunity.
3786 * lra-constraints.c (process_alt_operands): Verify that a class
3787 selected from constraints on asms is valid for the operand mode.
3788 (curr_insn_transform): Remove incorrect comment.
3789
f6fee35f
DE
37902013-01-23 David Edelsohn <dje.gcc@gmail.com>
3791
3792 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
3793 TOC operand is a valid symbol ref in the constant pool.
3794
37952013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 3796
aaf1e810 3797 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 3798
dc62d7d1
GJL
37992013-01-23 Georg-Johann Lay <avr@gjlay.de>
3800
3801 PR target/54222
3802 * config/avr/stdfix.h: New file.
3803 * t-avr (stdfix-gcc.h): New rule to build it.
3804 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
3805
2660d12d
KS
38062013-01-23 Kostya Serebryany <kcc@google.com>
3807
77dc5297
UB
3808 * config/darwin.h: remove dependency on
3809 CoreFoundation (asan on Mac OS).
2660d12d 3810
a70418fc
JJ
38112013-01-23 Jakub Jelinek <jakub@redhat.com>
3812
3813 PR target/49069
3814 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
3815 instead of cmpdi_operand for first comparison operand.
3816 Don't assert that comparison operands aren't both constants.
3817
47876a2a
JW
38182013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
3819
3820 * doc/install.texi (Downloading the Source): Update references to
3821 downloading separate components.
3822
38232013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
3824
3825 * doc/extend.texi (__int128): Improve grammar.
3826
47876a2a 38272013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
3828
3829 PR target/56028
3830 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
3831 alternative to (o,r).
3832 (*movdi_internal_rex64): Remove (!o,n) alternative.
3833 (DImode immediate->memory splitter): Remove.
3834 (DImode immediate->memory peephole2): Remove.
3835 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
3836 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
3837 alternative to (!o,*r).
3838 (*movtf_internal_sse): New pattern.
3839 (*movxf_internal_rex64): New pattern.
3840 (*movxf_internal): Disable for TARGET_64BIT.
3841 (*movdf_internal_rex64): Remove (!o,F) alternative.
3842
3a984f10
JJ
38432013-01-22 Jakub Jelinek <jakub@redhat.com>
3844
502498d5
JJ
3845 PR middle-end/56074
3846 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
3847 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
3848 * tree-vect-loop-manip.c (find_loop_location): Also ignore
3849 stmt locations where LOCATION_LOCUS of the stmt location is
3850 UNKNOWN_LOCATION or BUILTINS_LOCATION.
3851
3a984f10
JJ
3852 PR target/55686
3853 * config/i386/i386.md (UNSPEC_STOS): New.
3854 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
3855 *strsetqi_1): Add UNSPEC_STOS.
3856
fa817f7f
PC
38572013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
3858
3859 PR c++/56067
3860 * doc/invoke.texi: Remove left over -Wsynth example.
3861
8f498c1b
JJ
38622013-01-21 Jakub Jelinek <jakub@redhat.com>
3863
3864 PR tree-optimization/56051
3865 * fold-const.c (fold_binary_loc): Don't fold
3866 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
3867 a narrowing conversion, or widening conversion from signed
3868 to unsigned.
3869
47876a2a 38702013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
3871
3872 PR rtl-optimization/56023
3873 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
3874 dependent on debug instruction.
3875
5b9db1bc
MJ
38762013-01-21 Martin Jambor <mjambor@suse.cz>
3877
3878 PR middle-end/56022
3879 * function.c (allocate_struct_function): Call
3880 invoke_set_current_function_hook earlier.
3881
e8bb7d68
JJ
38822013-01-21 Jakub Jelinek <jakub@redhat.com>
3883
3884 * reload1.c (init_reload): Only initialize reload_obstack
3885 during the first call.
3886
616a4e32
MP
38872013-01-21 Marek Polacek <polacek@redhat.com>
3888
3889 * cfgloop.c (verify_loop_structure): Fix up grammar.
3890
4401981b
YHH
38912013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
3892
3893 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
3894 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
3895
8e87740b
RR
38962013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3897
3898 PR target/56058
3899 * config/arm/marvell-pj4.md: Update copyright year.
3900 Fix up use of alu to alu_reg and simple_alu_imm.
3901
47876a2a 39022013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
3903
3904 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
3905
89d56d79
VM
39062013-01-20 Vladimir Makarov <vmakarov@redhat.com>
3907
3908 PR target/55433
3909 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 3910 insn for secondary memory move when memory mode should be different.
89d56d79 3911
fe603553
JDA
39122013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3913
3914 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
3915 atomic_storedi_1): New patterns.
3916
01284895
VK
39172013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3918
3919 btver2 pipeline descriptions.
3920 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
3921 descriptions.
3922 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 3923 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
3924 type attributes.
3925 * config/i386/btver2.md: New file describing btver2 pipelines.
3926
5630e3e1
JL
39272013-01-19 Andrew Pinski <apinski@cavium.com>
3928
3929 PR tree-optimization/52631
3930 * tree-ssa-sccvn (visit_use): Before looking up the original
3931 statement, try looking up the simplified expression.
3932
650ae806
AG
39332013-01-19 Anthony Green <green@moxielogic.com>
3934
3935 * config/moxie/moxie.c (moxie_expand_prologue): Set
3936 current_function_static_stack_size.
3937
e300ec2d
JJ
39382013-01-18 Jakub Jelinek <jakub@redhat.com>
3939
3940 PR tree-optimization/56029
3941 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
3942 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
3943
a3d7af04
SS
39442013-01-18 Sharad Singhai <singhai@google.com>
3945
3946 PR tree-optimization/55995
3947 * dumpfile.c (dump_loc): Print location only if available.
3948 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
3949
66aa7879
VM
39502013-01-18 Vladimir Makarov <vmakarov@redhat.com>
3951
3952 PR target/55433
3953 * lra-constraints.c (curr_insn_transform): Reuse original insn for
3954 secondary memory move.
3955 (inherit_reload_reg): Use rclass instead of cl for
3956 check_secondary_memory_needed_p.
3957
3f0fee7b
JJ
39582013-01-18 Jakub Jelinek <jakub@redhat.com>
3959
3960 PR middle-end/56015
3961 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 3962 the case where writing real complex part of target modifies op1.
3f0fee7b 3963
70c67693
JG
39642013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
3965
3966 * config/aarch64/aarch64-simd.md
3967 (aarch64_vcond_internal<mode>): Handle unordered cases.
3968 * config/aarch64/iterators.md (v_cmp_result): New.
3969
df8de9b3
YHH
39702013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
3971 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3972
3973 * config/arm/marvell-pj4.md: New file.
3974 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
3975 * config/arm/arm.md (generic_sched): Add marvell_pj4.
3976 (generic_vfp): Likewise.
3977 * config/arm/arm-cores.def: Add marvell-pj4.
3978 * config/arm/arm-tune.md: Regenerate.
3979 * config/arm/arm-tables.opt: Regenerate.
3980 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
3981 * doc/invoke.texi: Document marvell-pj4.
3982
be30c356
TB
39832013-01-18 Tejas Belagod <tejas.belagod@arm.com>
3984
3985 * config/aarch64/arm_neon.h: Map scalar types to standard types.
3986
0bfbca58 39872013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
3988
3989 PR debug/54114
3990 PR debug/54402
3991 PR debug/49888
3992 * var-tracking.c (negative_power_of_two_p): New.
3993 (global_get_addr_cache, local_get_addr_cache): New.
3994 (get_addr_from_global_cache, get_addr_from_local_cache): New.
3995 (vt_canonicalize_addr): Rewrite using the above. Adjust the
3996 heading comment.
3997 (vt_stack_offset_p): Remove.
3998 (vt_canon_true_dep): Always canonicalize loc's address.
3999 (clobber_overlapping_mems): Make sure we have a MEM.
4000 (local_get_addr_clear_given_value): New.
4001 (val_reset): Clear local cached entries.
4002 (compute_bb_dataflow): Create and release the local cache.
4003 Disable duplicate MEMs clobbering.
4004 (emit_notes_in_bb): Clobber MEMs likewise.
4005 (vt_emit_notes): Create and release the local cache.
4006 (vt_initialize, vt_finalize): Create and release the global
4007 cache, respectively.
1f6bc337 4008 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 4009
0bfbca58 40102013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
4011
4012 PR libmudflap/53359
4013 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4014 not found in the symtab.
4015
0bfbca58 40162013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 4017
c350ba53 4018 PR debug/56006
3aa03517
AO
4019 PR rtl-optimization/55547
4020 PR rtl-optimization/53827
4021 PR debug/53671
4022 PR debug/49888
4023 * alias.c (offset_overlap_p): New, factored out of...
4024 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4025 the conservative special case for symbolic constants. Don't
4026 adjust zero sizes on alignment.
4027
c664546f
JL
40282013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4029
4030 PR rtl-optimization/52573
4031 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4032 REG_UNUSED for the same register.
4033
1bd3f750
MP
40342013-01-17 Richard Biener <rguenther@suse.de>
4035 Marek Polacek <polacek@redhat.com>
4036
4037 PR rtl-optimization/55833
4038 * loop-unswitch.c (unswitch_loops): Move loop verification...
4039 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4040 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4041 Set it to true when we're removing a loop from hierarchy tree in
4042 an irreducible region.
4043 (fix_bb_placements): Adjust caller.
4044 (fix_loop_placements): Likewise.
4045
e52a8b71
GJL
40462013-01-17 Georg-Johann Lay <avr@gjlay.de>
4047
4048 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4049 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4050 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4051 Remove ID. Adjust comments.
4052 * config/avr/avr-c.c (avr_builtin_name): Remove.
4053 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4054 * config/avr/avr.c (avr_tolower): New static function.
4055 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4056 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4057 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4058 default expansion.
4059
8386a7ea
JH
40602013-01-17 Jan Hubicka <jh@suse.cz>
4061
610fb637 4062 PR tree-optimization/55273
8386a7ea
JH
4063 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4064
47876a2a 40652013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
4066
4067 PR target/55981
4068 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4069 store through atomic_store<mode>_1.
4070 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4071
8222c37e
MJ
40722013-01-17 Martin Jambor <mjambor@suse.cz>
4073
4074 PR tree-optimizations/55264
4075 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4076 for virtual methods.
4077 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4078 virtual methods before inlining is over.
4079 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4080 virtual functions.
4081 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4082 non-virtual.
4083
79f01c76
VM
40842013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4085
4086 PR rtl-optimization/56005
4087 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4088 pending reads for prefetch.
4089
d0b6bb1b
IB
40902013-01-16 Ian Bolton <ian.bolton@arm.com>
4091
aaf1e810 4092 * config/aarch64/aarch64.md
d0b6bb1b
IB
4093 (*cstoresi_neg_uxtw): New pattern.
4094 (*cmovsi_insn_uxtw): New pattern.
4095 (*<optab>si3_uxtw): New pattern.
4096 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4097 (*<optab>si3_insn_uxtw): New pattern.
4098 (*bswapsi2_uxtw): New pattern.
4099
cb9cf03b
RB
41002013-01-16 Richard Biener <rguenther@suse.de>
4101
4102 * tree-inline.c (tree_function_versioning): Remove set but
4103 never used variable.
4104
2cfc56b9
RB
41052013-01-16 Richard Biener <rguenther@suse.de>
4106
4107 PR tree-optimization/55964
4108 * tree-flow.h (rename_variables_in_loop): Remove.
4109 (rename_variables_in_bb): Likewise.
4110 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4111 (copy_loop_before): Adjust and delete update-ssa status.
4112 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 4113 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
4114 (rename_variables_in_loop): Remove.
4115 (slpeel_update_phis_for_duplicate_loop): Likewise.
4116 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4117 use available cfg machinery instead of duplicating it.
4118 Update PHI nodes and perform poor-mans SSA update here.
4119 (slpeel_tree_peel_loop_to_edge): Adjust.
4120
c25a0c60
RB
41212013-01-16 Richard Biener <rguenther@suse.de>
4122
4123 PR tree-optimization/54767
4124 PR tree-optimization/53465
4125 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4126 (vrp_visit_phi_node): For PHI arguments coming via backedges
4127 drop all symbolical range information.
4128 (execute_vrp): Compute backedges.
4129
04b535af
RB
41302013-01-16 Richard Biener <rguenther@suse.de>
4131
4132 * doc/install.texi: Update CLooG and ISL requirements to
4133 0.18.0 and 0.11.1.
4134
8b0a1e0b
CB
41352013-01-16 Christian Bruel <christian.bruel@st.com>
4136
4137 PR target/55301
4138 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4139 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4140 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4141
41422013-01-16 DJ Delorie <dj@redhat.com>
4143
4144 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4145 (UNSPECV_SP_SWITCH_E): New.
4146 (sp_switch_1): Change to an unspec.
4147 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4148 replace $r15.
4149
41502013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
4151
4152 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4153 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4154 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4155 (expand_mem_thread_fence): Ditto.
4156 (expand_mem_signal_fence): Ditto.
4157 (expand_atomic_load): Ditto.
4158 (expand_atomic_store): Ditto.
4159
0bfbca58 41602013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
4161
4162 PR rtl-optimization/55547
4163 PR rtl-optimization/53827
4164 PR debug/53671
4165 PR debug/49888
4166 * alias.c (memrefs_conflict_p): Set sizes to negative after
4167 AND adjustments.
4168
305e3ac1
JJ
41692013-01-15 Jakub Jelinek <jakub@redhat.com>
4170
4171 PR target/55940
4172 * function.c (thread_prologue_and_epilogue_insns): Always
4173 add crtl->drap_reg to set_up_by_prologue.set, even if
4174 stack_realign_drap is false.
4175
f78ac4f2
JBG
41762013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4177
4178 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4179 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4180 *call): Fix indention.
4181
a78a8cc4
TV
41822013-01-15 Tom de Vries <tom@codesourcery.com>
4183
4184 PR target/55876
4185 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4186 Update comment.
4187
0e80383f
VM
41882013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4189
305e3ac1 4190 PR rtl-optimization/55153
0e80383f
VM
4191 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4192
207b5956
MJ
41932013-01-15 Martin Jambor <mjambor@suse.cz>
4194
4195 PR tree-optimization/55920
4196 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4197 accesses as grp_to_be_debug_replaced.
4198
a7818b54
JJ
41992013-01-15 Jakub Jelinek <jakub@redhat.com>
4200
4201 PR tree-optimization/55920
4202 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4203 there is non-useless type conversion needed from debug rhs to lhs,
4204 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4205
b0fe107e
JM
42062013-01-15 Joseph Myers <joseph@codesourcery.com>
4207 Mikael Pettersson <mikpe@it.uu.se>
4208
4209 PR target/43961
4210 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4211 Thumb.
4212 (ASM_OUTPUT_CASE_LABEL): Remove.
4213 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4214 * final.c (shorten_branches): Update alignment of labels before
4215 jump tables if CASE_VECTOR_SHORTEN_MODE.
4216
34ab62ee
RB
42172013-01-15 Richard Biener <rguenther@suse.de>
4218
4219 PR bootstrap/55961
4220 * system.h: Do not include gmp.h for building host tools.
4221
783a3a05
RB
42222013-01-15 Richard Biener <rguenther@suse.de>
4223
4224 PR middle-end/55882
4225 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4226 account for bitpos when computing alignment.
4227
3a579e09
VY
42282013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4229
4230 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4231 (ix86_target_macros_internal): Likewise.
4232
4233 * config/i386/i386.c (m_CORE2I7): Removed.
4234 (m_CORE_HASWELL): New macro.
4235 (m_CORE_ALL): Likewise.
4236 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4237 (initial_ix86_arch_features): Likewise.
4238 (processor_target_table): Initializations for Core avx2.
4239 (cpu_names): New names "core-avx2".
4240 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4241 PROCESSOR_CORE_HASWELL.
4242 (ix86_issue_rate): New case.
4243 (ia32_multipass_dfa_lookahead): Likewise.
4244 (ix86_sched_init_global): Likewise.
4245
4246 * config/i386/i386.h (TARGET_HASWELL): New macro.
4247 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4248 (processor_type): New PROCESSOR_HASWELL.
4249
955f5a07
JJ
42502013-01-15 Jakub Jelinek <jakub@redhat.com>
4251
ff784829
JJ
4252 PR tree-optimization/55955
4253 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4254 *SHIFT_EXPR and *ROTATE_EXPR codes.
4255
955f5a07
JJ
4256 PR tree-optimization/48766
4257 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4258 -ftrapv disable -fwrapv.
4259
aeb8b4e9
GJL
42602013-01-14 Georg-Johann Lay <avr@gjlay.de>
4261
4262 PR target/55974
4263 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4264 etc. to 1 and not to __flash.
4265 Use LL suffix for __INT24_MAX__ with -mint8.
4266 Use ULL suffix for __UINT24_MAX__ with -mint8.
4267
1c494c6a
GJL
42682013-01-14 Georg-Johann Lay <avr@gjlay.de>
4269
4270 * config/avr/avr-arch.h
4271 (struct base_arch_s): Use typedef avr_arch_t instead.
4272 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4273 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4274 * config/avr/avr.c: Same.
4275 * config/avr/avr-devices.c: Same.
4276 * config/avr/driver-avr.c: Same.
4277 * config/avr/gen-avr-mmcu-texi.c: Same.
4278 * config/avr/avr-mcus.def: Adjust comment.
4279
a50344cb
TB
42802013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4281
88e784e6
UB
4282 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4283 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 4284
47876a2a 42852013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
4286 Andi Kleen <ak@linux.intel.com>
4287
4288 PR target/55948
4289 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4290 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4291 memmodel flag.
4292
00892272
GJL
42932013-01-14 Georg-Johann Lay <avr@gjlay.de>
4294
4295 * config/avr/avr-stdint.h: Remove trailing blanks.
4296 * config/avr/avr-log.h: Same.
4297 * config/avr/avr-arch.h: Same.
4298 * config/avr/avr-devices.c: Same.
4299 * config/avr/avr-dimode.md: Same.
4300 * config/avr/predicates.md: Same.
4301 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 4302
00892272
GJL
4303 * config/avr/avr-protos.h: Same. And:
4304 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4305 (init_cumulative_args): Rename to avr_init_cumulative_args.
4306 (expand_prologue): Rename to avr_expand_prologue.
4307 (expand_epilogue): Rename to avr_expand_epilogue.
4308 (adjust_insn_length): Rename to avr_adjust_insn_length.
4309 (notice_update_cc): Rename to avr_notice_update_cc.
4310 (final_prescan_insn): Rename to avr_final_prescan_insn.
4311 * config/avr/avr.c: Same.
4312 * config/avr/avr.h: Same.
4313 * config/avr/avr.md: Remove trailing blanks.
4314 (prologue): Use avr_expand_prologue.
4315 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4316
7bb01996
RB
43172013-01-14 Richard Biener <rguenther@suse.de>
4318
4319 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4320 verify_location, collect_subblocks): New functions.
4321 (verify_gimple_in_cfg): Verify that locations only reference
4322 BLOCKs in the functions BLOCK tree.
4323
2724573f
RB
43242013-01-14 Richard Biener <rguenther@suse.de>
4325
4326 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4327 PHI argument.
4328 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4329 unshare reference.
4330 (insert_out_of_ssa_copy_on_edge): Likewise.
4331 (rewrite_close_phi_out_of_ssa): Likewise.
4332 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4333 debug expressions.
4334 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4335 propagated constants.
4336 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4337 can not be shared.
4338
9a0bbab6
GJL
43392013-01-14 Georg-Johann Lay <avr@gjlay.de>
4340
4341 * config/avr/avr-modes.def: Add GPL copyright notice.
4342
45805f17
UB
43432013-01-13 Uros Bizjak <ubizjak@gmail.com>
4344
4345 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4346 MEMMODEL_MASK to determine memory model.
4347 (atomic_store<mode>): Ditto from operands[2].
4348 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4349
9d60be38
JJ
43502013-01-13 Jakub Jelinek <jakub@redhat.com>
4351
4352 PR fortran/55935
45805f17 4353 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
4354 (fold_gimple_assign): Don't call unshare_expr here.
4355 (fold_ctor_reference): Call unshare_expr.
4356
e7f49d92
TG
43572013-01-13 Terry Guo <terry.guo@arm.com>
4358
aaf1e810
EB
4359 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4360 * doc/fragments.texi: Document MULTILIB_REUSE.
4361 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 4362 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 4363 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
4364 (tmpmultilib4): Ditto.
4365 (multilib_reuse): New multilib argument.
4366
fbd03a27
RS
43672013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4368
4369 * Makefile.in: Update copyright.
4370
b3681f13
TV
43712013-01-12 Tom de Vries <tom@codesourcery.com>
4372
4373 PR middle-end/55890
4374 * calls.c (expand_call): Check if arg_nr is valid.
4375
3f287e4b
MM
43762013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4377
4378 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4379 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
4380 documentation. Add missing '__' in front of
4381 __builtin_ia32_packssdw256.
3f287e4b 4382
1abcd5eb
AK
43832013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4384
4385 PR target/55719
4386 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4387 NO_REGS for larl operands.
4388 (s390_reload_larl_operand): Use s390_load_address instead of
4389 emit_move_insn.
4390
980d0812
RB
43912013-01-11 Richard Biener <rguenther@suse.de>
4392
4393 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4394 (verify_node_sharing): ... here.
4395 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4396
7cb9fd07
EB
43972013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4398
4399 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4400 Substitute TREECHECKING.
4401 * configure: Regenerate.
4402 * Makefile.in (TREECHECKING): New.
4403
47876a2a 44042013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
4405
4406 PR tree-optimization/44061
4407 * tree-vrp.c (extract_range_basic): Compute zero as
4408 value-range for __builtin_constant_p of function parameters.
4409
d1e082c2
RS
44102013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4411
45805f17 4412 Update copyright years.
d1e082c2 4413
f85021b0
VM
44142013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4415
9d60be38 4416 PR rtl-optimization/55672
0160442c
VM
4417 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4418 const to be eliminable.
f85021b0 4419
7a8b1ec4
DE
44202013-01-10 David Edelsohn <dje.gcc@gmail.com>
4421
4422 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4423 * configure: Regenerate.
4424
ad2e5b71
RB
44252013-01-10 Richard Biener <rguenther@suse.de>
4426
ddf9322d 4427 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 4428
ffc5b2bb
RB
44292013-01-10 Richard Biener <rguenther@suse.de>
4430
4431 PR bootstrap/55792
4432 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4433 locations for virtual PHI arguments.
4434 (rewrite_update_phi_arguments): Likewise.
4435
e1f674e4
JS
44362013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4437
4438 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4439 on to assembler.
4440
a57fc743
JJ
44412013-01-10 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR tree-optimization/55921
4444 * tree-complex.c (expand_complex_asm): New function.
4445 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4446
0ff4390d
AK
44472013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4448
4449 PR target/55718
4450 * config/s390/s390.c (s390_symref_operand_p)
4451 (s390_loadrelative_operand_p): Merge the two functions.
4452 (s390_check_qrst_address, print_operand_address): Add parameters
4453 to s390_loadrelative_operand_p invokation.
4454 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4455 (s390_reload_larl_operand, s390_secondary_reload): Use
4456 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4457 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4458
6f557e0e
MS
44592013-01-09 Mike Stump <mikestump@comcast.net>
4460
4461 * dse.c (record_store): Remove unnecessary assert.
4462
7770c9e9
JH
44632013-01-09 Jan Hubicka <jh@suse.cz>
4464
4465 PR tree-optimization/55569
4466 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4467 * cfgloop.h (scale_loop_profile): Likewise.
4468
a19b1432
JH
44692013-01-09 Jan Hubicka <jh@suse.cz>
4470
4471 PR lto/45375
ddf9322d
UB
4472 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4473 functions.
a19b1432
JH
4474 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4475
9a002da8
RS
44762013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4477
4478 PR middle-end/55114
4479 * expr.h (maybe_emit_group_store): Declare.
4480 * expr.c (maybe_emit_group_store): New function.
4481 * builtins.c (expand_builtin_int_roundingfn): Call it.
4482 (expand_builtin_int_roundingfn_2): Likewise.
4483
511dcace
VM
44842013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4485
e1f2b729 4486 PR rtl-optimization/55829
511dcace
VM
4487 * lra-constraints.c (match_reload): Add code for absent output.
4488 (curr_insn_transform): Add code for reloads of matched inputs
4489 without output.
4490
7b0fe4f4
UB
44912013-01-09 Uros Bizjak <ubizjak@gmail.com>
4492
4493 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4494 attribute of movddup insn to DF.
4495 (*vec_interleave_lowv2df): Ditto.
4496 (vec_dupv2df): Ditto.
4497
870ca331
JH
44982013-01-09 Jan Hubicka <jh@suse.cz>
4499
4500 PR tree-optimiation/55875
4501 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4502 EVERY_ITERATION parameter.
7b0fe4f4 4503 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
4504 (idx_infer_loop_bounds): Similarly here.
4505 (n_of_executions_at_most): Simplify
4506 to only test for cases where statement is dominated by the
7b0fe4f4 4507 particular bound; handle correctly the "postdominance" test.
870ca331
JH
4508 (scev_probably_wraps_p): Use max loop iterations info
4509 as a global bound first.
4510
6f575fe4 45112013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
4512 Nick Clifton <nickc@redhat.com>
4513
4514 * config/v850/v850.md (cbranchsf4): New pattern.
4515 (cstoresf4): New pattern.
4516 (cbranchdf4): New pattern.
4517 (cstoredf4): New pattern.
4518 (movsicc): Disallow floating point comparisons.
4519 (cmpsf_le_insn): Fix order of operators.
4520 (cmpsf_lt_insn): Likewise.
4521 (cmpsf_eq_insn): Likewise.
4522 (cmpdf_le_insn): Likewise.
4523 (cmpdf_lt_insn): Likewise.
4524 (cmpdf_eq_insn): Likewise.
4525 (cmpsf_ge_insn): Use LE comparison.
4526 (cmpdf_ge_insn): Likewise.
4527 (cmpsf_gt_insn): Use LT comparison.
4528 (cmpdf_gt_insn): Likewise.
4529 (cmpsf_ne_insn): Delete pattern.
4530 (cmpdf_ne_insn): Delete pattern.
4531 * config/v850/v850.c (v850_gen_float_compare): Use
4532 gen_cmpdf_eq_insn for NE comparison.
4533 (v850_float_z_comparison_operator)
4534 (v850_float_nz_comparison_operator): Move from here ...
4535 * config/v850/predicates.md: ... to here. Move GT and GE
4536 comparisons into v850_float_z_comparison_operator.
4537 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4538 Delete prototype.
4539 (v850_float_nz_comparison_operator): Likewise.
4540
f0d54148
JDA
45412013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4542
4543 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4544 with calls to gen_insvsi/gen_insvdi.
4545
8f01beca
VK
45462013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4547
4548 * config/i386/i386.c (initial_ix86_tune_features): Set up
4549 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4550
2aa579ad
JJ
45512013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4552 Jakub Jelinek <jakub@redhat.com>
4553
4554 PR tree-optimization/48189
4555 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4556 If nitercst is 0, don't predict the exit edge.
4557
6edc3e32 45582013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
4559
4560 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4561 in asm_fprintf with reg_names.
4562 (aarch64_print_operand_address): Likewise.
4563 (aarch64_return_addr): Likewise.
4564 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4565
f6f94d94
JDA
45662013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4567
4568 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4569 (INT_U6_BITS): Likewise.
4570 * config/pa/predicates.md (uint6_operand): New predicate.
4571 (shift5_operand, shift6_operand): Likewise.
4572 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4573 arith32_operand.
4574 (lshrdi3): Use shift6_operand.
4575 (shrpsi4, shrpdi4): New insn patterns.
4576 (extzv): Delete expander.
4577 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4578 predicates in unamed zero extract patterns. Tighten common constraint.
4579 (extv): Delete expander.
4580 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4581 predicates in unamed sign extract patterns. Tighten common constraint.
4582 (insv): Delete expander.
4583 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4584 predicates in unamed insert patterns. Tighten common constraint.
4585 Change uint32_operand predicate to uint6_operand predicate in unamed
4586 DImode pattern to insert constant values of type 1...1xxxx.
4587
36b72910
JH
45882013-01-04 Jan Hubicka <jh@suse.cz>
4589
4590 PR tree-optimization/55823
7b0fe4f4
UB
4591 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4592 issue.
36b72910 4593
47876a2a 45942013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
4595 Uros Bizjak <ubizjak@gmail.com>
4596
4597 PR rtl-optimization/55845
4598 * df-problems.c (can_move_insns_across): Stop scanning at
4599 volatile_insn_p source instruction or give up if
4600 across_from .. across_to range contains any volatile_insn_p
4601 instructions.
4602
4369c11e
TB
46032013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4604
7b0fe4f4
UB
4605 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4606 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4607 Declare.
4369c11e 4608 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 4609 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 4610
aeb7e7c1
JJ
46112013-01-08 Jakub Jelinek <jakub@redhat.com>
4612
4613 PR fortran/55341
4614 * asan.c (asan_clear_shadow): New function.
4615 (asan_emit_stack_protection): Use it.
4616
a02ad1aa
TB
46172013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4618
4619 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
4620 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
4621 with tab instead of space.
4622
f90d87f5
NC
46232013-01-08 Nick Clifton <nickc@redhat.com>
4624
4625 * config/rl78/rl78.c (rl78_expand_prologue): Always select
4626 register bank 0 at the start of an interrupt handler.
83ffd964
NC
4627 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
4628 MDBH registers.
f90d87f5 4629
385eb93d
JG
46302013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4631
4632 * config/aarch64/aarch64-simd.md
4633 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
4634 (aarch64_simd_bsl): Likewise.
4635 (aarch64_vcond_internal<mode>): Likewise.
4636 (vcond<mode><mode>): Likewise.
4637 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
4638 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
4639
4dcd1054
JG
46402013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
4641
4642 * config/aarch64/aarch64-builtins.c
4643 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
4644
4267a4a6
MJ
46452013-01-08 Martin Jambor <mjambor@suse.cz>
4646
4647 PR debug/55579
4648 * tree-sra.c (analyze_access_subtree): Return true also after
4649 potentially creating a debug-only replacement.
4650
5f4e6de3
JJ
46512013-01-08 Jakub Jelinek <jakub@redhat.com>
4652
3138f224
JJ
4653 PR middle-end/55890
4654 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
4655
5f4e6de3
JJ
4656 PR tree-optimization/54120
4657 * tree-vrp.c (range_fits_type_p): Don't allow
4658 src_precision < precision from signed vr to unsigned_p
4659 if vr->min or vr->max is negative.
4660 (simplify_float_conversion_using_ranges): Test can_float_p
4661 against CODE_FOR_nothing.
4662
f3ef18ff
JJ
46632013-01-08 Jakub Jelinek <jakub@redhat.com>
4664 Richard Biener <rguenther@suse.de>
4665
4666 PR middle-end/55851
4667 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
4668 types instead of just INTEGER_TYPE types.
4669
25c210f9
MK
46702013-01-07 Mark Kettenis <kettenis@openbsd.org>
4671
4672 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
4673 TF_SIZE): Define.
f90d87f5 4674
81826a7b
SE
46752013-01-07 Steve Ellcey <sellcey@mips.com>
4676
4677 PR target/42661
4678 * config/mips/mips.opt: Change mad to mmad to match documentation.
4679
35678514
GJL
46802013-01-07 Georg-Johann Lay <avr@gjlay.de>
4681
4682 PR target/55897
4683 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
4684 .progmemx.data now.
4685
e5669488
GJL
46862013-01-07 Georg-Johann Lay <avr@gjlay.de>
4687
4688 PR target/55897
4689 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
4690 (avr_addrspace_t): Add .section_name field.
4691 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
4692 array size.
4693 (avr_addrspace): Same. Initialize .section_name. Remove last
4694 NULL entry. Put __memx into .progmemx.data.
4695 (progmem_section_prefix): Remove.
4696 (avr_asm_init_sections): No need to initialize progmem_section.
4697 (avr_asm_named_section): Use avr_addrspace[].section_name to get
4698 section name prefix.
4699 (avr_asm_select_section): Ditto. And use get_unnamed_section to
4700 retrieve the progmem section.
4701 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
4702 boundary to run over avr_addrspace[].
4703 (avr_register_target_pragmas): Ditto.
4704
656e6f37
JJ
47052013-01-06 Jakub Jelinek <jakub@redhat.com>
4706
4707 * varasm.c (output_constant_def_contents): For asan_protect_global
4708 protected strings, adjust DECL_ALIGN if needed, before testing for
4709 anchored symbols.
4710 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
4711 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
4712 normal decls.
4713 (output_object_block): For asan protected decls, emit asan padding
4714 after their contents.
4715 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
4716 (asan_finish_file): Test it here instead.
4717
6edc3e32
UB
47182013-01-07 Nick Clifton <nickc@redhat.com>
4719 Matthias Klose <doko@debian.org>
4720 Doug Kwan <dougkwan@google.com>
4721 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
4722
4723 PR driver/55470
4724 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
4725
4726 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
4727
4728 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
4729
7b0fe4f4 4730 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
4731
4732 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
4733
2a095093
GJL
47342013-01-07 Georg-Johann Lay <avr@gjlay.de>
4735
f3b503f4 4736 PR target/54461
2a095093
GJL
4737 * doc/install.texi (Cross-Compiler-Specific Options): Document
4738 --with-avrlibc.
4739
383f9b34
TB
47402013-01-07 Tejas Belagod <tejas.belagod@arm.com>
4741
4742 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
4743 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
4744 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
4745 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
4746 vqmovun_high_s64): Fix source operand number and update copyright.
4747
3626621a
RB
47482013-01-07 Richard Biener <rguenther@suse.de>
4749
4750 PR middle-end/55890
4751 * gimple.h (gimple_call_builtin_p): New overload.
4752 * gimple.c (validate_call): New function.
4753 (gimple_call_builtin_p): Likewise.
4754 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4755 Use gimple_call_builtin_p.
4756 (find_func_clobbers): Likewise.
4757 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
4758 (strlen_optimize_stmt): Likewise.
4759
8b2ea410
JG
47602013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4761
4762 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
4763 (vld1q_dup_*): Likewise.
4764 (vld1_*): Likewise.
4765 (vld1q_*): Likewise.
4766 (vld1_lane_*): Likewise.
4767 (vld1q_lane_*): Likewise.
4768
9713d329
RB
47692013-01-07 Richard Biener <rguenther@suse.de>
4770
4771 * lto-streamer.h (LTO_minor_version): Bump to 2.
4772
3520f7cc
JG
47732013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
4774
4775 * config/aarch64/aarch64-protos.h
4776 (aarch64_const_double_zero_rtx_p): Rename to...
4777 (aarch64_float_const_zero_rtx_p): ...this.
4778 (aarch64_float_const_representable_p): New.
4779 (aarch64_output_simd_mov_immediate): Likewise.
4780 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
4781 move immediate case.
4782 * config/aarch64/aarch64.c
4783 (aarch64_const_double_zero_rtx_p): Rename to...
4784 (aarch64_float_const_zero_rtx_p): ...this.
4785 (aarch64_print_operand): Allow printing of new constants.
4786 (aarch64_valid_floating_const): New.
4787 (aarch64_legitimate_constant_p): Check for valid floating-point
4788 constants.
4789 (aarch64_simd_valid_immediate): Likewise.
4790 (aarch64_vect_float_const_representable_p): New.
4791 (aarch64_float_const_representable_p): Likewise.
4792 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
4793 (aarch64_output_simd_mov_immediate): New.
4794 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
4795 (*movdf_aarch64): Likewise.
4796 * config/aarch64/constraints.md (Ufc): New.
4797 (Y): call aarch64_float_const_zero_rtx.
4798 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
4799
e167c04d
RB
48002013-01-07 Richard Biener <rguenther@suse.de>
4801
4802 PR tree-optimization/55888
4803 PR tree-optimization/55862
4804 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
4805 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
4806 not if it is contained therein.
4807
0139aaab
GJL
48082013-01-07 Georg-Johann Lay <avr@gjlay.de>
4809
4810 * config/avr/t-avr: Typo.
4811
4a176b23
GJL
48122013-01-07 Georg-Johann Lay <avr@gjlay.de>
4813
4814 PR55243
4815 * config/avr/t-avr: Don't automatically rebuild
4816 $(srcdir)/config/avr/t-multilib
4817 $(srcdir)/config/avr/avr-tables.opt
4818 $(srcdir)/doc/avr-mmcu.texi
4819 (avr-mcus): New phony target to build them on request.
4820 (s-avr-mlib, s-avr-mmcu-texi): Remove.
4821 * avr/avr-mcus.def: Adjust comments.
4822
c7afdc98
UB
48232013-01-07 Uros Bizjak <ubizjak@gmail.com>
4824
4825 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
4826
1ab05c31
RS
48272013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4828
4829 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
4830
488e3acc
RS
48312013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
4832
4833 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
4834
a89599d2
DE
48352013-01-05 David Edelsohn <dje.gcc@gmail.com>
4836
4837 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
4838 to generate profiling.
4839 * config/rs6000/aix64.h (LIB_SPEC): Same.
4840
70f09188
AP
48412013-01-04 Andrew Pinski <apinski@cavium.com>
4842
4843 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
4844 New function.
4845 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4846
918d445f
UB
48472013-01-04 Uros Bizjak <ubizjak@gmail.com>
4848
4849 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
4850 unconditionally.
4851 (ix86_expand_move): Ditto.
4852 (ix86_zero_extend_to_Pmode): Ditto.
4853 (ix86_expand_call): Ditto.
4854 (ix86_expand_special_args_builtin): Ditto.
4855 (ix86_expand_builtin): Ditto.
4856
361618ec
RB
48572013-01-04 Richard Biener <rguenther@suse.de>
4858
4859 PR tree-optimization/55862
4860 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
4861 translating them through PHI nodes.
4862
87eab554
MJ
48632013-01-04 Martin Jambor <mjambor@suse.cz>
4864
4865 PR tree-optimization/55755
4866 * tree-sra.c (sra_modify_assign): Do not check that an access has no
4867 children when trying to avoid producing a VIEW_CONVERT_EXPR.
4868
33879b9f
MP
48692013-01-04 Marek Polacek <polacek@redhat.com>
4870
4871 PR middle-end/55859
4872 * opts.c (default_options_optimization): Clarify error message.
4873
3068819a
RB
48742013-01-04 Richard Biener <rguenther@suse.de>
4875
4876 PR middle-end/55863
4877 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
4878 reassociation.
4879
0e4ae794
JDA
48802013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4881
4882 PR target/53789
4883 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
4884 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
4885 references.
0e4ae794 4886
65c88cef
RH
48872013-01-03 Richard Henderson <rth@redhat.com>
4888
4889 * config/i386/i386.c (ix86_expand_move): Always assign to op1
4890 after eliminating TLS symbols.
4891
8ac16127
MG
48922013-01-03 Marc Glisse <marc.glisse@inria.fr>
4893
4894 PR bootstrap/50167
4895 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
4896 * graphite-poly.c (debug_gmp_value): Likewise.
4897
bb664f09
UB
48982013-01-03 Uros Bizjak <ubizjak@gmail.com>
4899
4900 PR target/55712
4901 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
4902 selected code model, define __code_mode_small__, __code_model_medium__,
4903 __code_model_large__, __code_model_32__ or __code_model_kernel__.
4904 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
4905 xchg temporary register with %k. Declare temporary register as
4906 early clobbered.
4907 [__x86_64__]: For medium and large code models, preserve %rbx register.
4908
bcf1ef00
RB
49092013-01-03 Richard Biener <rguenther@suse.de>
4910
0506634a 4911 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
4912 (dump_subscript): Adjust.
4913 (finalize_ddr_dependent): Do not dump redundant info.
4914 (analyze_siv_subscript): Adjust.
4915 (subscript_dependence_tester): Likewise.
4916 (compute_affine_dependence): Likewise.
4917
59fd17e3
RB
49182013-01-03 Richard Biener <rguenther@suse.de>
4919
4920 Revert
4921 2013-01-03 Richard Biener <rguenther@suse.de>
4922
4923 PR tree-optimization/55857
4924 * tree-vect-stmts.c (vectorizable_load): Do not setup
4925 re-alignment for invariant loads.
4926
4927 2013-01-02 Richard Biener <rguenther@suse.de>
4928
4929 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 4930 invariant load do not generate a vector load from the scalar location.
59fd17e3 4931
595c2679
RB
49322013-01-03 Richard Biener <rguenther@suse.de>
4933
4934 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
4935 for not vectorizing.
4936 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
4937 not build INDIRECT_REFs, call get_name once only.
4938 (vect_create_data_ref_ptr): Likewise. Dump base object kind
4939 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
4940
90bb7d7a
RB
49412013-01-03 Richard Biener <rguenther@suse.de>
4942
4943 PR tree-optimization/55857
4944 * tree-vect-stmts.c (vectorizable_load): Do not setup
4945 re-alignment for invariant loads.
4946
f09b77ca
RB
49472013-01-03 Richard Biener <rguenther@suse.de>
4948
4949 PR lto/55848
4950 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
4951 prefer a built-in decl.
4952
3461a16e
JJ
49532013-01-03 Jakub Jelinek <jakub@redhat.com>
4954
df8e2b4f
JJ
4955 * gcc.c (process_command): Update copyright notice dates.
4956 * gcov.c (print_version): Likewise.
4957 * gcov-dump.c (print_version): Likewise.
4958
3461a16e
JJ
4959 PR rtl-optimization/55838
4960 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
4961 iv0.step, iv1.step and step.
4962
8b5546d6
JJ
49632013-01-03 Jakub Jelinek <jakub@redhat.com>
4964 Marc Glisse <marc.glisse@inria.fr>
4965
4966 PR tree-optimization/55832
4967 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
4968 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
4969 integer_{one,zero}_node.
4970
8ab1d2e9
JJ
49712013-01-03 Jakub Jelinek <jakub@redhat.com>
4972
4973 PR debug/54402
4974 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
4975 * var-tracking.c (reverse_op): Don't add reverse ops to
4976 VALUEs that have already
0506634a 4977 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 4978
5b9ad1d4
GP
49792013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
4980
4981 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
4982
e25a6711
TJ
49832013-01-02 Teresa Johnson <tejohnson@google.com>
4984
4985 * dumpfile.c (dump_loc): Print filename with location.
4986 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
4987 new location_t parameter to emit complete unroll message with
4988 new dump framework.
4989 (canonicalize_loop_induction_variables): Compute loops location
4990 and pass to try_unroll_loop_completely.
4991 * loop-unroll.c (report_unroll_peel): New function.
4992 (peel_loops_completely): Use new dump format with location
4993 for main dumpfile message, and invoke report_unroll_peel on success.
4994 (decide_unrolling_and_peeling): Ditto.
4995 (decide_peel_once_rolling): Remove old dumpfile message subsumed
4996 by report_unroll_peel.
4997 (decide_peel_completely): Ditto.
4998 (decide_unroll_constant_iterations): Ditto.
4999 (decide_unroll_runtime_iterations): Ditto.
5000 (decide_peel_simple): Ditto.
5001 (decide_unroll_stupid): Ditto.
5002 * cfgloop.c (get_loop_location): New function.
5003 * cfgloop.h (get_loop_location): Declare.
5004
77878621
ST
50052013-01-02 Sriraman Tallam <tmsriram@google.com>
5006
5007 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5008 NULL.
5009
9e65d03e
JDA
50102013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5011
5012 PR middle-end/55198
5013 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5014 BLKmode objects when EXPAND_MEMORY is specified.
5015
6a7da30f
ST
50162013-01-02 Sriraman Tallam <tmsriram@google.com>
5017
5018 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5019 in loop predicate.
5020 (fold_builtin_cpu): Do not share cpu model decls across statements.
5021
e78167f2
JM
50222013-01-02 Jason Merrill <jason@redhat.com>
5023
5024 PR c++/55804
5025 * tree.c (build_array_type_1): Revert earlier change.
5026
8c075fb4
YZ
50272013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5028
5029 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5030 "cortex-a57".
5031 * config/aarch64/aarch64-tune.md: Re-generate.
5032
0682ed3e
RB
50332013-01-02 Richard Biener <rguenther@suse.de>
5034
5035 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 5036 invariant load do not generate a vector load from the scalar location.
0682ed3e 5037
b8f6a302
RB
50382013-01-02 Richard Biener <rguenther@suse.de>
5039
5040 PR bootstrap/55784
5041 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5042 * configure: Regenerate.
5043
04b80dbb
RS
50442013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5045
5046 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5047 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5048 (expand_builtin_int_roundingfn_2): Keep the original target around
5049 for the fallback case.
5050
635b0b0c
RS
50512013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5052
5053 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5054 to be clear for sign changes.
5055
42d57399
JH
50562013-01-01 Jan Hubicka <jh@suse.cz>
5057
5058 * ipa-inline-analysis.c: Fix formatting.
5059
5bb6669d
JJ
50602013-01-01 Jakub Jelinek <jakub@redhat.com>
5061
5062 PR tree-optimization/55831
5063 * tree-vect-loop.c (get_initial_def_for_induction): Use
5064 gsi_after_labels instead of gsi_start_bb.
ad41bd84 5065\f
86a2db33 5066Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
5067
5068Copying and distribution of this file, with or without modification,
5069are permitted in any medium without royalty provided the copyright
5070notice and this notice are preserved.