lto-cgraph.c (output_profile_summary, [...]): Use gcov streaming; stream hot bb thres...
[gcc.git] / gcc / ChangeLog
1 2013-03-29 Jan Hubicka <jh@suse.cz>
2
3 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4 gcov streaming; stream hot bb threshold to ltrans.
5 * predict.c (get_hot_bb_threshold): Break out from ....
6 (maybe_hot_count_p): ... here.
7 (set_hot_bb_threshold): New function.
8 * lto-section-in.c (lto_section_name): Add profile.
9 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
10 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
11 and data-streamer.h
12 (histogram_entry): New structure.
13 (histogram, histogram_pool): New global vars.
14 (histogram_hash): New structure.
15 (histogram_hash::hash): New method.
16 (histogram_hash::equal): Likewise.
17 (account_time_size): New function.
18 (cmp_counts): New function.
19 (dump_histogram): New function.
20 (ipa_profile_generate_summary): New function.
21 (ipa_profile_write_summary): New function.
22 (ipa_profile_read_summary): New function.
23 (ipa_profile): Decide on threshold.
24 (pass_ipa_profile): Add ipa_profile_write_summary and ipa_profile_read_summary.
25 * Makefile.in (ipa.o): Update dependencies.
26 * lto-streamer.h (LTO_section_ipa_profile): New section.
27
28 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
29
30 * tree.h (VAR_P): New.
31
32 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
33
34 PR lto/56777
35 * doc/invoke.texi ([-fwhole-program]): Fix typo.
36
37 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
38
39 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
40 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
41 (control_flow_insn_p): Likewise.
42 * cfgrtl.c (duplicate_insn_chain): Likewise.
43 * final.c (get_attr_length_1): Likewise.
44 (shorten_branches): Likewise.
45 (final_scan_insn): Likewise.
46 * function.c (instantiate_virtual_regs): Likewise.
47 * gcse.c (insert_insn_end_basic_block): Likewise.
48 * ira-costs.c (scan_one_insn): Likewise.
49 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
50 * lra.c (check_rtl): Likewise.
51 * reload1.c (elimination_costs_in_insn): Likewise.
52 * reorg.c (follow_jumps): Likewise.
53
54 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
55 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
56 (thumb_far_jump_used_p): Likewise.
57 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
58 (workaround_speculation): Likewise.
59 (add_sched_insns_for_speculation): Likewise.
60 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
61 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
62 (frv_for_each_packet): Likewise.
63 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
64 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
65 (final_emit_insn_group_barriers): Likewise.
66 * config/m32r/m32r.c (m32r_is_insn): Likewise.
67 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
68 (mips16_insn_length): Likewise.
69 * config/pa/pa.c (pa_reorg): Likewise.
70 (pa_combine_instructions): Likewise.
71 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
72 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
73 (sh_reorg): Likewise.
74 (split_branches): Likewise.
75 * config/spu/spu.c (get_branch_target): Likewise.
76
77 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
78 JUMP_TABLE_DATA_P.
79
80 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
81
82 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
83 Fix declaration name.
84
85 2013-03-28 Lawrence Crowl <crowl@google.com>
86
87 * graphds.h (struct graph.indicies): Remove unused.
88 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
89 (SCOP_ORIGINAL_PDDRS): Remove unused.
90 * sese.h (extern insert_loop_close_phis): Removed unused.
91 (extern insert_guard_phis): Removed unused.
92 (extern ivtype_map_elt_info): Removed unused.
93 (new_ivtype_map_elt): Removed unused.
94 * sese.c (ivtype_map_elt_info): Removed unused.
95
96 2013-03-28 Lawrence Crowl <crowl@google.com>
97
98 * Makefile.in: Add several missing include dependences.
99 (DUMPFILE_H): New.
100 (test-dump.o): New. This object is not added to any executable,
101 but is present for ad-hoc testing.
102 * bitmap.c
103 (debug (const bitmap_head_def &)): New.
104 (debug (const bitmap_head_def *)): New.
105 * bitmap.h
106 (extern debug (const bitmap_head_def &)): New.
107 (extern debug (const bitmap_head_def *)): New.
108 * cfg.c
109 (debug (edge_def &)): New.
110 (debug (edge_def *)): New.
111 * cfghooks.c
112 (debug (basic_block_def &)): New.
113 (debug (basic_block_def *)): New.
114 * dumpfile.h
115 (dump_node (const_tree, int, FILE *)): Correct source file.
116 * dwarf2out.c
117 (debug (die_struct &)): New.
118 (debug (die_struct *)): New.
119 * dwarf2out.h
120 (extern debug (die_struct &)): New.
121 (extern debug (die_struct *)): New.
122 * gimple-pretty-print.c
123 (debug (gimple_statement_d &)): New.
124 (debug (gimple_statement_d *)): New.
125 * gimple-pretty-print.h
126 (extern debug (gimple_statement_d &)): New.
127 (extern debug (gimple_statement_d *)): New.
128 * ira-build.c
129 (debug (ira_allocno_copy &)): New.
130 (debug (ira_allocno_copy *)): New.
131 (debug (ira_allocno &)): New.
132 (debug (ira_allocno *)): New.
133 * ira-int.h
134 (extern debug (ira_allocno_copy &)): New.
135 (extern debug (ira_allocno_copy *)): New.
136 (extern debug (ira_allocno &)): New.
137 (extern debug (ira_allocno *)): New.
138 * ira-lives.c
139 (debug (live_range &)): New.
140 (debug (live_range *)): New.
141 * lra-int.h
142 (debug (lra_live_range &)): New.
143 (debug (lra_live_range *)): New.
144 * lra-lives.c
145 (debug (lra_live_range &)): New.
146 (debug (lra_live_range *)): New.
147 * omega.c
148 (debug (omega_pb_d &)): New.
149 (debug (omega_pb_d *)): New.
150 * omega.h
151 (extern debug (omega_pb_d &)): New.
152 (extern debug (omega_pb_d *)): New.
153 * print-rtl.c
154 (debug (const rtx_def &)): New.
155 (debug (const rtx_def *)): New.
156 * print-tree.c
157 (debug_tree (tree): Move within file.
158 (debug_raw (const tree_node &)): New.
159 (debug_raw (const tree_node *)): New.
160 (dump_tree_via_hooks (const tree_node *, int)): New.
161 (debug (const tree_node &)): New.
162 (debug (const tree_node *)): New.
163 (debug_verbose (const tree_node &)): New.
164 (debug_verbose (const tree_node *)): New.
165 (debug_head (const tree_node &)): New.
166 (debug_head (const tree_node *)): New.
167 (debug_body (const tree_node &)): New.
168 (debug_body (const tree_node *)): New.
169 (debug_vec_tree (tree): Move and reimplement in terms of dump.
170 (debug (vec<tree, va_gc> &)): New.
171 (debug (vec<tree, va_gc> *)): New.
172 * rtl.h
173 (extern debug (const rtx_def &)): New.
174 (extern debug (const rtx_def *)): New.
175 * sbitmap.c
176 (debug_raw (simple_bitmap_def &)): New.
177 (debug_raw (simple_bitmap_def *)): New.
178 (debug (simple_bitmap_def &)): New.
179 (debug (simple_bitmap_def *)): New.
180 * sbitmap.h
181 (extern debug (simple_bitmap_def &)): New.
182 (extern debug (simple_bitmap_def *)): New.
183 (extern debug_raw (simple_bitmap_def &)): New.
184 (extern debug_raw (simple_bitmap_def *)): New.
185 * sel-sched-dump.c
186 (debug (vinsn_def &)): New.
187 (debug (vinsn_def *)): New.
188 (debug_verbose (vinsn_def &)): New.
189 (debug_verbose (vinsn_def *)): New.
190 (debug (expr_def &)): New.
191 (debug (expr_def *)): New.
192 (debug_verbose (expr_def &)): New.
193 (debug_verbose (expr_def *)): New.
194 (debug (vec<rtx> &)): New.
195 (debug (vec<rtx> *)): New.
196 * sel-sched-dump.h
197 (extern debug (vinsn_def &)): New.
198 (extern debug (vinsn_def *)): New.
199 (extern debug_verbose (vinsn_def &)): New.
200 (extern debug_verbose (vinsn_def *)): New.
201 (extern debug (expr_def &)): New.
202 (extern debug (expr_def *)): New.
203 (extern debug_verbose (expr_def &)): New.
204 (extern debug_verbose (expr_def *)): New.
205 (extern debug (vec<rtx> &)): New.
206 (extern debug (vec<rtx> *)): New.
207 * sel-sched-ir.h
208 (_list_iter_cond_expr): Make inline instead of static.
209 * sreal.c
210 (debug (sreal &)): New.
211 (debug (sreal *)): New.
212 * sreal.h
213 (extern debug (sreal &)): New.
214 (extern debug (sreal *)): New.
215 * tree.h
216 (extern debug_raw (const tree_node &)): New.
217 (extern debug_raw (const tree_node *)): New.
218 (extern debug (const tree_node &)): New.
219 (extern debug (const tree_node *)): New.
220 (extern debug_verbose (const tree_node &)): New.
221 (extern debug_verbose (const tree_node *)): New.
222 (extern debug_head (const tree_node &)): New.
223 (extern debug_head (const tree_node *)): New.
224 (extern debug_body (const tree_node &)): New.
225 (extern debug_body (const tree_node *)): New.
226 (extern debug (vec<tree, va_gc> &)): New.
227 (extern debug (vec<tree, va_gc> *)): New.
228 * tree-cfg.c
229 (debug (struct loop &)): New.
230 (debug (struct loop *)): New.
231 (debug_verbose (struct loop &)): New.
232 (debug_verbose (struct loop *)): New.
233 * tree-dump.c: Add header dependence.
234 * tree-flow.h
235 (extern debug (struct loop &)): New.
236 (extern debug (struct loop *)): New.
237 (extern debug_verbose (struct loop &)): New.
238 (extern debug_verbose (struct loop *)): New.
239 * tree-data-ref.c
240 (debug (data_reference &)): New.
241 (debug (data_reference *)): New.
242 (debug (vec<data_reference_p> &)): New.
243 (debug (vec<data_reference_p> *)): New.
244 (debug (vec<ddr_p> &)): New.
245 (debug (vec<ddr_p> *)): New.
246 * tree-data-ref.h
247 (extern debug (data_reference &)): New.
248 (extern debug (data_reference *)): New.
249 (extern debug (vec<data_reference_p> &)): New.
250 (extern debug (vec<data_reference_p> *)): New.
251 (extern debug (vec<ddr_p> &)): New.
252 (extern debug (vec<ddr_p> *)): New.
253 * tree-ssa-alias.c
254 (debug (pt_solution &)): New.
255 (debug (pt_solution *)): New.
256 * tree-ssa-alias.h
257 (extern debug (pt_solution &)): New.
258 (extern debug (pt_solution *)): New.
259 * tree-ssa-alias.c
260 (debug (_var_map &)): New.
261 (debug (_var_map *)): New.
262 (debug (tree_live_info_d &)): New.
263 (debug (tree_live_info_d *)): New.
264 * tree-ssa-alias.h
265 (extern debug (_var_map &)): New.
266 (extern debug (_var_map *)): New.
267 (extern debug (tree_live_info_d &)): New.
268 (extern debug (tree_live_info_d *)): New.
269
270 2013-03-28 Jan Hubicka <jh@suse.cz>
271
272 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
273
274 2013-03-28 Ian Bolton <ian.bolton@arm.com>
275
276 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
277 record only when desired or required.
278
279 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
280
281 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
282 *vec_extractv2di_1_rex64. Use x64 isa attribute.
283
284 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
285
286 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
287 (*andsi3_compare0_uxtw): New pattern.
288 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
289 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
290
291 2013-03-28 Jan Hubicka <jh@suse.cz>
292
293 * data-streamer-in.c (streamer_read_gcov_count): New function.
294 * gimple-streamer-out.c: Include value-prof.h.
295 (output_gimple_stmt): Output histogram.
296 (output_bb): Use streamer_write_gcov_count.
297 * value-prof.c: Include data-streamer.h
298 (dump_histogram_value): Add HIST_TYPE_MAX.
299 (stream_out_histogram_value): New function.
300 (stream_in_histogram_value): New function.
301 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
302 (stream_out_histogram_value, stream_in_histogram_value): Declare.
303 * data-streamer-out.c (streamer_write_gcov_count): New function.
304 (streamer_write_gcov_count_stream): New function.
305 * lto-cgraph.c (lto_output_edge): Update counter streaming.
306 (lto_output_node): Likewise.
307 (input_node, input_edge): Likewise.
308 * lto-streamer-out.c (output_cfg): Update streaming.
309 * lto-streamer-in.c (input_cfg): Likewise.
310 * data-streamer.h (streamer_write_gcov_count,
311 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
312 * gimple-streamer-in.c: Include value-prof.h
313 (input_gimple_stmt): Input histograms.
314 (input_bb): Update profile streaming.
315
316 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
317
318 * genmodes.c (emit_max_int): New function.
319 (emit_insn_modes_h): Added call to emit_max_function.
320 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
321 Added doc.
322 * machmode.def: Fixed comment.
323
324 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
325
326 * combine.c (try_combine): Removed useless assert.
327 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
328
329 2013-03-28 Marek Polacek <polacek@redhat.com>
330 Richard Biener <rguenther@suse.de>
331
332 PR tree-optimization/56695
333 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
334 build signed result of a vector comparison.
335 * tree-cfg.c (verify_gimple_comparison): Check that a result
336 of a vector comparison has signed type.
337
338 2013-03-28 Richard Biener <rguenther@suse.de>
339
340 PR tree-optimization/37021
341 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
342 do not restrict gaps between groups.
343 * tree-vect-stmts.c (vectorizable_load): Properly account for
344 a gap between groups.
345
346 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
347
348 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
349 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
350 is not enabled.
351
352 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
353
354 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
355 * doc/extend.texi (Named Address Spaces): Ditto.
356 (Variable Attributes): Ditto.
357
358 2013-03-27 Kai Tietz <ktietz@redhat.com>
359
360 * config.build: Add support for cygwin x64 target.
361 * config.gcc: Likewise.
362 * config.host: Likewise.
363 * configure.ac: Likewise
364 * configure: Regenerated.
365
366 2013-03-27 Kai Tietz <ktietz@redhat.com>
367
368 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
369 * config/i386/t-cygwin-w64: New file.
370 * config/i386/cygwin-w64.h: New file.
371 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
372 and add support for x64-cygwin target.
373 (CPP_SPEC): Likewise.
374 (CXX_WRAP_SPEC_LIST): Undefine before define.
375 (LIBGCJ_SONAME): Use 15 as version.
376
377 2013-03-27 Richard Biener <rguenther@suse.de>
378
379 PR tree-optimization/56716
380 * tree-ssa-structalias.c (perform_var_substitution): Adjust
381 dumping for ref nodes.
382
383 2013-03-27 Martin Jambor <mjambor@suse.cz>
384
385 PR tree-optimization/55334
386 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
387 restricted pointers to arrays.
388
389 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
390
391 * Makefile.in (.SUFFIXES): Add .cc.
392 (.c.o): Apply same recipe for implicit rule .cc.o.
393
394 2013-03-27 Richard Biener <rguenther@suse.de>
395
396 PR tree-optimization/37021
397 * tree-vect-data-refs.c (vect_check_strided_load): Allow
398 REALPART/IMAGPART_EXPRs around the supported refs.
399 * tree-ssa-structalias.c (find_func_aliases): Assume that
400 floating-point values are not used to transfer pointers.
401
402 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
403
404 * target.def (TARGET_HAS_IFUNC_P): New target hook.
405 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
406 * doc/tm.texi: Regenerate.
407 * targhooks.h (default_has_ifunc_p): New.
408 * targhooks.c (default_has_ifunc_p): Ditto.
409 * config/linux-protos.h: New file.
410 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
411 this hook for linux which disables support of indirect functions in
412 android.
413 * config/linux-android.c: New file.
414 * config/t-linux-android.c: Ditto.
415 * config.gcc: Added new object file linux-android.o.
416 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
417 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
418 * varasm.c (do_assemble_alias): Likewise.
419 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
420 doesn't support indirect functions.
421 * configure: Regenerate.
422
423 2013-03-27 Bin Cheng <bin.cheng@arm.com>
424
425 PR target/56102
426 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
427 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
428 mult-word mode.
429
430 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
431
432 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
433
434 2013-03-27 Terry Guo <terry.guo@arm.com>
435
436 * config/arm/arm-cores.def: Added core cortex-r7.
437 * config/arm/arm-tune.md: Regenerated.
438 * config/arm/arm-tables.opt: Regenerated.
439 * doc/invoke.texi: Added entry for core cortex-r7.
440
441 2013-03-27 Walter Lee <walt@tilera.com>
442
443 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
444 double-decrement of next_scratch_regno.
445
446 2013-03-27 Walter Lee <walt@tilera.com>
447
448 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
449 input operands.
450 (insn_v1mulus): Ditto.
451 (insn_v2muls): Ditto.
452
453 2013-03-27 Walter Lee <walt@tilera.com>
454
455 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
456 extra tab.
457 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
458
459 2013-03-27 Walter Lee <walt@tilera.com>
460
461 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
462 for jr.
463 (*sibcall_value): Ditto.
464
465 2013-03-27 Walter Lee <walt@tilera.com>
466
467 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
468 (insn_mnz_v8qi): ... this ...
469 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
470 vector equivalent.
471 (insn_v<n>mnz): Replaced by ...
472 (insn_v1mnz): ... this ...
473 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
474 equivalent.
475 (insn_mz_<mode>): Replaced by ...
476 (insn_mz_v8qi): ... this ...
477 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
478 vector equivalent.
479 (insn_v<n>mz): Replaced by ...
480 (insn_v1mz): ... this ...
481 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
482 equivalent.
483
484 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
485
486 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
487
488 2013-03-26 Roland McGrath <mcgrathr@google.com>
489
490 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
491 than fprintf with a non-constant, non-format string.
492
493 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
494
495 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
496 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
497 operand 0 predicate.
498 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
499 attribute. Use general_x64nomem_operand as operand 1 predicate.
500 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
501 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
502 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
503 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
504 (mov<mode>_insv_1): Remove expander. Merge insn with
505 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
506 Use general_x64nomem_operand as operand 1 predicate.
507 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
508 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
509 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
510 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
511 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
512 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
513 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
514 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
515 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
516 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
517 (general_x64nomem_operand): Ditto.
518
519 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
520
521 * config/rtems.opt: Add -pthread option.
522
523 2013-03-26 Richard Biener <rguenther@suse.de>
524
525 * alias.c (find_base_term): Avoid redundant and not used recursion.
526 (base_alias_check): Get the initial base term from the caller.
527 (true_dependence_1): Compute and pass base terms to base_alias_check.
528 (write_dependence_p): Likewise.
529 (may_alias_p): Likewise.
530
531 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
532
533 * config/aarch64/aarch64.c (aarch64_classify_address): Support
534 PC-relative load in SI modes and above only.
535
536 2013-03-26 Xinyu Qi <xyqi@marvell.com>
537
538 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
539 * config/arm/iwmmxt.md (WCGR0): Update.
540 (WCGR1, WCGR2, WCGR3): Likewise.
541
542 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
543
544 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
545 Use x64 and nox64 isa attributes.
546
547 2013-03-26 Richard Biener <rguenther@suse.de>
548
549 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
550 alignment computations and rely on get_object_alignment_1
551 for the !TYPE_P case.
552 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
553
554 2013-03-26 Walter Lee <walt@tilera.com>
555
556 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
557 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
558
559 2013-03-25 Jeff Law <law@redhat.com>
560 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
561 check for INTEGRAL_TYPE_P that was missing due to checking in
562 wrong version of prior patch.
563
564 2013-03-25 Walter Lee <walt@tilera.com>
565
566 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
567 TILEGX_INSN_SHUFFLEBYTES1.
568 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
569 shufflebytes1.
570 (tilegx_builtins): Ditto.
571 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
572
573 2013-03-25 Walter Lee <walt@tilera.com>
574
575 * config/tilegx/tilegx.md (floatsisf2): New pattern.
576 (floatunssisf2): New pattern.
577 (floatsidf2): New pattern.
578 (floatunssidf2): New pattern.
579
580 2013-03-25 Walter Lee <walt@tilera.com>
581
582 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
583 tests for constraint J, K, N, P.
584
585 2013-03-25 Walter Lee <walt@tilera.com>
586
587 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
588 Use indirect/pcrel encoding.
589 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
590 Ditto.
591
592 2013-03-25 Steve Ellcey <sellcey@mips.com>
593
594 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
595 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
596 * config/mips/mips.c (mips_option_override): Set IMADD default.
597 * config/mips/mips.h (PTF_AVOID_IMADD): New.
598 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
599 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
600 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
601 * doc/invoke.texi (-mimadd/-mno-imadd): New.
602
603 2013-03-25 Jeff Law <law@redhat.com>
604
605 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
606 slightly to avoid creating and folding useless trees. Simplify
607 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
608
609 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
610
611 * config/i386/i386.md (*zero_extendsidi2): Merge with
612 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
613 * config/i386/predicates.md (x86_64_zext_operand): Rename from
614 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
615 targets. Clarify comment.
616
617 2013-03-25 Martin Jambor <mjambor@suse.cz>
618
619 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
620 pass-through jump functions differently.
621 (ipa_read_jump_function): Likewise. Also use setter functions to set
622 up jump functions.
623
624 2013-03-25 Martin Jambor <mjambor@suse.cz>
625
626 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
627 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
628 process it.
629 (ipa_get_indirect_edge_target): New function.
630 (devirtualization_time_bonus): New parameter known_aggs, pass it to
631 ipa_get_indirect_edge_target. Update all callers.
632 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
633 ipa_get_indirect_edge_target_1 instead of calling
634 ipa_get_indirect_edge_target.
635 (create_specialized_node): Pass aggvlas to
636 ipcp_discover_new_direct_edges.
637
638 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
639
640 * config/arm/arm.md (f_sels, f_seld): New types.
641 (*cmov<mode>): New pattern.
642 * config/arm/predicates.md (arm_vsel_comparison_operator): New
643 predicate.
644
645 2013-03-25 Kai Tietz <ktietz@redhat.com>
646
647 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
648 POSIX-printf for mingw-hosted builds.
649
650 2013-03-25 Richard Biener <rguenther@suse.de>
651
652 PR middle-end/56694
653 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
654 must-not-throw stmt location.
655
656 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
657
658 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
659 Emit load-acquire versions when acq is true.
660 (arm_emit_store_exclusive): Add rel parameter.
661 Emit store-release versions when rel is true.
662 (arm_split_compare_and_swap): Use acquire-release instructions
663 instead.
664 of barriers when appropriate.
665 (arm_split_atomic_op): Likewise.
666 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
667 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
668 (VUNSPEC_SLX): Likewise.
669 (VUNSPEC_LDA): Likewise.
670 (VUNSPEC_STL): Likewise.
671 * config/arm/sync.md (atomic_load<mode>): New pattern.
672 (atomic_store<mode>): Likewise.
673 (arm_load_acquire_exclusive<mode>): Likewise.
674 (arm_load_acquire_exclusivesi): Likewise.
675 (arm_load_acquire_exclusivedi): Likewise.
676 (arm_store_release_exclusive<mode>): Likewise.
677
678 2013-03-25 Catherine Moore <clm@codesourcery.com>
679
680 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
681 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
682 * config/mip/predicates.md (lwsp_swsp_operand,
683 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
684 sb16_operand, db4_operand, db7_operand, ib3_operand,
685 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
686 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
687 andi16_operand): New predicates.
688 * config/mips/mips.md (compression): New attribute.
689 (enabled): New attribute.
690 (length): Consider compression in computing length.
691 (shift_compression): New code attribute.
692 (*add<mode>3): New operands. Record compression.
693 (sub<mode>3): Likewise.
694 (one_cmpl<mode>2): Likewise.
695 (*and<mode>3): Likewise.
696 (*ior<mode>3): Likewise.
697 (unnamed pattern for xor): Likewise.
698 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
699 (*<optab><mode>3): Likewise.
700 (*mov<mode>_internal: Likewise.
701 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
702 (mips_unsigned_immediate_p): New.
703 (umips_lwsp_swsp_address_p): New.
704 (m16_based_address_p): New.
705 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
706 (mips_unsigned_immediate_p): New prototype.
707 (lwsp_swsp_address_p): New prototype.
708 (m16_based_address_p): New prototype.
709 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
710 (mips_signed_immediate_p): New function.
711 (m16_based_address_p): New function.
712 (lwsp_swsp_address_p): New function.
713 (mips_print_operand_punctuation): Recognize short delay slot insns
714 for microMIPS.add<mode>3"
715
716 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
717
718 PR target/56720
719 * config/arm/iterators.md (v_cmp_result): New mode attribute.
720 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
721
722 2013-03-25 Richard Biener <rguenther@suse.de>
723
724 PR tree-optimization/56689
725 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
726 any edge.
727
728 2013-03-25 Richard Biener <rguenther@suse.de>
729
730 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
731 of bitmap.
732 (memory_references): Likewise.
733 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
734 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
735 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
736 (gather_mem_refs_in_loops): Fold into ...
737 (analyze_memory_references): ... this. Move initialization
738 to tree_ssa_lim_initialize.
739 (fill_always_executed_in): Rename to ...
740 (fill_always_executed_in_1): ... this.
741 (fill_always_executed_in): Move contains_call computation to
742 this new function from ...
743 (tree_ssa_lim_initialize): ... here.
744 (tree_ssa_lim): Call fill_always_executed_in.
745
746 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
747
748 * postreload.c (reload_combine): Fix code detecting returns.
749
750 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
751
752 * function.c (emit_use_return_register_into_block): On cc0 targets,
753 do not emit the sequence between cc0 setter and user.
754
755 2013-03-25 Kai Tietz <ktietz@redhat.com>
756
757 * config/i386/predicates.md (local_symbolic_operand): Interpret
758 dll-imported symbols as none-local.
759
760 2013-03-25 Richard Biener <rguenther@suse.de>
761
762 * tree-ssa-loop-im.c (struct depend): Remove.
763 (struct lim_aux_data): Make depends a vec of gimples.
764 (free_lim_aux_data): Adjust.
765 (add_dependency): Likewise.
766 (set_level): Likewise.
767
768 2013-03-25 Richard Biener <rguenther@suse.de>
769
770 PR middle-end/56434
771 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
772 the pointer returned by calls with ECF_MALLOC set.
773
774 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
775
776 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
777
778 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
779
780 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
781 using MMXMODE mode iterator.
782 (*move<mode>_internal): Merge with *movv2sf_internal and
783 *movv2sf_internal_rex64 using MMXMODE mode iterator.
784
785 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
786
787 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
788 (record_last_mem_set_info): Likewise.
789
790 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
791 of XNEWVEC followed by memset.
792 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
793
794 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
795
796 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
797 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
798 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
799 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
800 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
801 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
802 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
803 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
804 BARRIER_P instead of GET_CODE.
805
806 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
807
808 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
809 inaccuracy in the probing code.
810
811 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
812 (ctrapdi4): Likewise.
813
814 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
815
816 * calls.c (expand_call): Add missing guard to code handling return
817 of non-BLKmode structures in MSB.
818 * function.c (expand_function_end): Likewise.
819
820 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
821
822 * combine.c (try_combine): Adjust comment. Do not add the set of
823 insn #0 if the destination indirectly is set or dies in insn #2.
824 Tidy up code to distribute a new note.
825
826 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
827
828 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
829 also for alternatives 16 and 17.
830
831 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
832
833 * config/i386/sse.md (*mov<mode>_internal): Merge with
834 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
835 Emit insn template depending on type attribute. Use
836 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
837 movd instead of movq mnemonic for interunit moves. Rewrite mode
838 attribute calculation. Remove unit attribute calculation.
839 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
840 Set prefix_data16 attribute for DImode ssemov types.
841 Use Ym instead of y for SSE-MMX conversion alternatives.
842 Reorder operand constraints.
843
844 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
845
846 * df.h (df_insn_delete): Adjust prototype.
847 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
848 and let it decide whether mark the basic block dirty.
849 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
850 * df-scan.c (df_insn_info_delete): New helper function, split
851 off from df_insn_delete.
852 (df_scan_free_bb_info): Use it.
853 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
854 Likewise.
855 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
856 that the insn is actually an insn and it has a non-NULL basic block.
857 Do not mark basic block dirty if only deleting a DEBUG_INSN.
858
859 2013-03-22 Richard Biener <rguenther@suse.de>
860
861 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
862 dep_ref members.
863 (mem_ref_alloc): Do not allocate them.
864 (refs_independent_p): Do not query or maintain a cache.
865
866 2013-03-22 Richard Biener <rguenther@suse.de>
867
868 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
869 (gather_mem_refs_in_loops): Do not compute it.
870 (analyze_memory_references): Do not allocate it.
871 (tree_ssa_lim_finalize): Do not free it.
872 (for_all_locs_in_loop): Do not query all_refs_in_loop.
873
874 2013-03-22 Richard Biener <rguenther@suse.de>
875
876 * is-a.h (as_a): Use gcc_checking_assert.
877
878 2013-03-22 Ian Bolton <ian.bolton@arm.com>
879
880 * config/aarch64/aarch64.c (aarch64_print_operand): New
881 format specifier for printing a constant in hex.
882 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
883 format specifier for printing second operand.
884
885 2013-03-22 Richard Biener <rguenther@suse.de>
886
887 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
888 bitmaps.
889 (gather_mem_refs_in_loops): Perform store accumulation here.
890 (create_vop_ref_mapping_loop): Remove.
891 (create_vop_ref_mapping): Likewise.
892 (analyze_memory_references): Initialize refs_stored_in_loop.
893 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
894 (record_indep_loop): Remove.
895 (record_dep_loop): New function.
896 (ref_indep_loop_p_1): Adjust to only walk over references
897 in the loop, not its subloops.
898 (ref_indep_loop_p): Rename to ...
899 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
900 maintaining a more fine-grained cache.
901 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
902 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
903
904 2013-03-22 Richard Biener <rguenther@suse.de>
905
906 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
907 (struct mem_ref): Make accesses_in_loop a vec of a vec of
908 aggregate mem_ref_loc.
909 (free_mem_ref_locs): Inline into ...
910 (memref_free): ... this and adjust.
911 (mem_ref_alloc): Adjust.
912 (mem_ref_locs_alloc): Remove.
913 (record_mem_ref_loc): Adjust.
914 (get_all_locs_in_loop): Rewrite into ...
915 (for_all_locs_in_loop): ... this iterator.
916 (rewrite_mem_ref_loc): New functor.
917 (rewrite_mem_refs): Use for_all_locs_in_loop.
918 (sm_set_flag_if_changed): New functor.
919 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
920 (ref_always_accessed): New functor.
921 (ref_always_accessed_p): Use for_all_locs_in_loop.
922
923 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
924
925 * tree-pass.h (PROP_gimple_lvec): New.
926 * passes.c (dump_properties): Handle PROP_gimple_lvec.
927 (init_optimization_passes): Move pass_lower_vector.
928 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
929 PROP_gimple_lvec.
930 (pass_lower_vector): Provide PROP_gimple_lvec.
931 (pass_lower_vector_ssa): Likewise.
932 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
933
934 2013-03-21 Mark Wielaard <mjw@redhat.com>
935
936 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
937
938 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
939
940 * config/i386/i386.md (*movdi_internal): Disparage slightly
941 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
942 conversion alternatives.
943
944 2013-03-21 Jakub Jelinek <jakub@redhat.com>
945
946 PR middle-end/48087
947 * diagnostic.def (DK_WERROR): New kind.
948 * diagnostic.h (werrorcount): Define.
949 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
950 promoted to DK_ERROR, increment DK_WERROR counter instead of
951 DK_ERROR counter.
952 * toplev.c (toplev_main): Call print_ignored_options even if
953 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
954 even if just werrorcount is non-zero.
955
956 PR debug/55608
957 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
958 on failure.
959 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
960 (string_cst_pool_decl): New function.
961 (optimize_one_addr_into_implicit_ptr): New function.
962 (resolve_addr_in_expr): Optimize DWARF location expression
963 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
964 which doesn't live in memory, but has DW_AT_location or
965 DW_AT_const_value, or refers to a string literal, into
966 DW_OP_GNU_implicit_pointer.
967 (optimize_location_into_implicit_ptr): New function.
968 (resolve_addr): If removing DW_AT_location of a variable because
969 it was DW_OP_addr of address of the variable, but the variable doesn't
970 live in memory, try to emit const value attribute for the initializer.
971
972 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
973
974 * tree.h (VECTOR_TYPE_P): New macro.
975 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
976 TYPE_MODE): Use it.
977 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
978 VEC_COND_EXPR cannot be lvalues.
979 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
980
981 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
982
983 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
984 Restrict the transformation to equal modes.
985
986 2013-03-21 Richard Biener <rguenther@suse.de>
987
988 PR tree-optimization/39326
989 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
990 (MEM_ANALYZABLE): Adjust.
991 (record_mem_ref_loc): Move bitmap ops ...
992 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
993 unanalyzable refs, do not record locations for it.
994 (analyze_memory_references): Allocate ref zero as shared
995 unanalyzable ref.
996 (refs_independent_p): Do not test for unanalyzed mems here.
997 (ref_indep_loop_p_1): Special-case disambiguation against
998 the unanalyzed ref.
999 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
1000
1001 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
1002
1003 * config/arm/arm-protos.h (tune_params): Add
1004 prefer_neon_for_64bits field.
1005 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1006 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1007 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1008 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1009 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1010 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1011 (arm_option_override): Handle -mneon-for-64bits new option.
1012 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1013 (prefer_neon_for_64bits): Declare new variable.
1014 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
1015 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
1016 (arch_enabled): Handle new arch types. Remove support for onlya8
1017 and nota8.
1018 (one_cmpldi2): Use new arch names.
1019 (zero_extend<mode>di2, extend<mode>di2): Ditto.
1020 * config/arm/arm.opt (mneon-for-64bits): Add option.
1021 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
1022 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
1023 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
1024 of onlya8.
1025 * doc/invoke.texi (-mneon-for-64bits): Document.
1026
1027 2013-03-21 Richard Biener <rguenther@suse.de>
1028
1029 PR tree-optimization/39326
1030 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
1031 (sort_bbs_in_loop_postorder_cmp): New function.
1032 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
1033
1034 2013-03-21 Richard Biener <rguenther@suse.de>
1035
1036 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
1037 (vect_insert_into_interleaving_chain): Likewise.
1038 (vect_drs_dependent_in_basic_block): Inline ...
1039 (vect_slp_analyze_data_ref_dependence): ... here. New function,
1040 split out from ...
1041 (vect_analyze_data_ref_dependence): ... here. Simplify.
1042 (vect_check_interleaving): Simplify.
1043 (vect_analyze_data_ref_dependences): Likewise. Split out ...
1044 (vect_slp_analyze_data_ref_dependences): ... this new function.
1045 (dr_group_sort_cmp): New function.
1046 (vect_analyze_data_ref_accesses): Compute data-reference groups
1047 here instead of in vect_analyze_data_ref_dependence. Use
1048 a more efficient algorithm.
1049 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
1050 vect_slp_analyze_data_ref_dependences. Call
1051 vect_analyze_data_ref_accesses earlier.
1052 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1053 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
1054 (vect_slp_analyze_data_ref_dependences): New prototype.
1055
1056 2013-03-21 Richard Biener <rguenther@suse.de>
1057
1058 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
1059 ref is stored in the loop.
1060 (find_refs_for_sm): Walk only over all stores.
1061 (store_motion_loop): Allocate from lim_bitmap_obstack.
1062 (store_motion): Likewise.
1063
1064 2013-03-21 Richard Biener <rguenther@suse.de>
1065
1066 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
1067 Update virtual SSA form.
1068
1069 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1070
1071 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
1072 * configure: Regenerate.
1073 * config.in: Regenerate.
1074 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
1075 if !HAVE_LD_EH_FRAME_CIEV3.
1076
1077 2013-03-21 Richard Biener <rguenther@suse.de>
1078
1079 * tree-cfg.c (verify_expr_no_block): New function.
1080 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
1081 nor DECL_VALUE_EXPR have locations with associated blocks.
1082 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
1083 (clear_unused_block_pointer): Remove code dealing with
1084 blocks in DECL_DEBUG_EXPR locations.
1085
1086 2013-03-21 Richard Biener <rguenther@suse.de>
1087
1088 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
1089 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
1090 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
1091 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
1092 instead of DECL_DEBUG_EXPR_IS_FROM.
1093 * gimplify.c (gimplify_modify_expr): Likewise.
1094 * tree-cfg.c (verify_expr_location_1): Likewise.
1095 * tree-complex.c (create_one_component_var): Likewise.
1096 * tree-sra.c (create_access_replacement): Likewise.
1097 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
1098 (clear_unused_block_pointer): Likewise.
1099 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1100 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1101 * var-tracking.c (var_debug_decl): Likewise.
1102 (track_expr_p): Likewise.
1103 * tree-inline.c (add_local_variables): Likewise. Set
1104 DECL_HAS_DEBUG_EXPR_P after copying it.
1105 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1106 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1107
1108 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
1109
1110 PR bootstrap/56656
1111 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
1112 * configure: Regenerate.
1113 * config.in: Regenerate.
1114 * config/i386/i386.md (*movdf_internal): Use
1115 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1116 movd instead of movq mnemonic for interunit moves.
1117 (*movdi_internal): Ditto.
1118
1119 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1120
1121 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
1122 (abd<mode>_3): New pattern.
1123 (aba<mode>_3): New pattern.
1124 (fabd<mode>_3): New pattern.
1125
1126 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1127
1128 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
1129 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
1130 occurrence of REGISTER_PREFIX as its empty string.
1131
1132 2013-03-20 Jeff Law <law@redhat.com>
1133
1134 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
1135 addititional equivalences for equality comparisons between an SSA_NAME
1136 and a constant where the SSA_NAME was set from a widening conversion.
1137
1138 2013-03-20 Walter Lee <walt@tilera.com>
1139
1140 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1141
1142 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1143
1144 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
1145 depending on type attribute.
1146 (*movti_internal): Ditto.
1147 (*movtf_internal): Ditto.
1148 (*movxf_internal): Ditto.
1149 (*movdf_internal): Ditto.
1150 (*movsf_internal): Ditto.
1151
1152 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1153
1154 * config/i386/i386.md (*movti_internal): Set prefix attribute to
1155 maybe_vex for sselog1 and ssemov types.
1156 (*movdi_internal): Reorder operand constraints.
1157 (*movsi_internal): Ditto. Set prefix attribute to
1158 maybe_vex for sselog1 and ssemov types.
1159 (*movtf_internal): Set prefix attribute to maybe_vex
1160 for sselog1 and ssemov types.
1161 (*movdf_internal): Ditto. Set prefix_data16 attribute for
1162 DImode ssemov types. Reorder operand constraints.
1163 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
1164 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
1165 attribute for SImode ssemov types. Reorder operand constraints.
1166
1167 2013-03-20 Martin Jambor <mjambor@suse.cz>
1168
1169 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
1170 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
1171
1172 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
1173
1174 * config/rs6000/predicates.md (indexed_address, update_address_mem
1175 update_indexed_address_mem): New predicates.
1176 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
1177 attribute for load/store instructions.
1178 * config/rs6000/dfp.md (movsd_store): Likewise.
1179 (movsd_load): Likewise.
1180 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
1181 (unnamed HI->DI extend define_insn): Likewise.
1182 (unnamed SI->DI extend define_insn): Likewise.
1183 (unnamed QI->SI extend define_insn): Likewise.
1184 (unnamed QI->HI extend define_insn): Likewise.
1185 (unnamed HI->SI extend define_insn): Likewise.
1186 (unnamed HI->SI extend define_insn): Likewise.
1187 (extendsfdf2_fpr): Likewise.
1188 (movsi_internal1): Likewise.
1189 (movsi_internal1_single): Likewise.
1190 (movhi_internal): Likewise.
1191 (movqi_internal): Likewise.
1192 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
1193 attribute for load/store instructions.
1194 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
1195 instructions.
1196 (mov<mode>_softfloat): Likewise.
1197 (mov<mode>_hardfloat32): Likewise.
1198 (mov<mode>_hardfloat64): Likewise.
1199 (mov<mode>_softfloat64): Likewise.
1200 (movdi_internal32): Likewise.
1201 (movdi_internal64): Likewise.
1202 (probe_stack_<mode>): Likewise.
1203
1204 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1205
1206 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
1207 floating point, and decimal floating point to reload iterator.
1208
1209 * config/rs6000/constraints.md (wl constraint): New constraints to
1210 return FLOAT_REGS if certain options are used to reduce the number
1211 of separate patterns that exist in the file.
1212 (wx constraint): Likewise.
1213 (wz constraint): Likewise.
1214
1215 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1216 -mdebug=reg, print wg, wl, wx, and wz constraints.
1217 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1218 Initialize the reload functions for 64-bit binary/decimal floating
1219 point types.
1220 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1221 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1222 create the buffer on the stack to overcome not having a 32-bit
1223 load and store.
1224 (rs6000_emit_move): Likewise.
1225 (rs6000_secondary_memory_needed_rtx): Likewise.
1226 (rs6000_alloc_sdmode_stack_slot): Likewise.
1227 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1228 via xxlxor, just like DFmode 0.0.
1229
1230 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
1231 define as 1 if we are running on a power7 or newer.
1232 (enum r6000_reg_class_enum): Add new constraints.
1233
1234 * config/rs6000/dfp.md (movsd): Delete, combine with binary
1235 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1236 with other moves by using conditional constraits (wg). Use LFIWZX
1237 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
1238 (movsd splitter): Likewise.
1239 (movsd_hardfloat): Likewise.
1240 (movsd_softfloat): Likewise.
1241
1242 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
1243 binary and decimal floating point moves.
1244 (fmove_ok): New attributes to combine binary and decimal floating
1245 point moves, and to combine power6x (mfpgpr) moves along normal
1246 floating moves.
1247 (real_value_to_target): Likewise.
1248 (f32_lr): Likewise.
1249 (f32_lm): Likewise.
1250 (f32_li): Likewise.
1251 (f32_sr): Likewise.
1252 (f32_sm): Likewise.
1253 (f32_si): Likewise.
1254 (movsf): Combine binary and decimal floating point moves. Combine
1255 power6x (mfpgpr) moves with other moves by using conditional
1256 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
1257 (mov<mode> for SFmode/SDmode); Likewise.
1258 (SFmode/SDmode splitters): Likewise.
1259 (movsf_hardfloat): Likewise.
1260 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
1261 (movsf_softfloat): Likewise.
1262 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
1263
1264 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
1265 wx and wz constraints.
1266
1267 * config/rs6000/constraints.md (wg constraint): New constraint to
1268 return FLOAT_REGS if -mmfpgpr (power6x) was used.
1269
1270 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
1271 constraint.
1272
1273 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1274 -mdebug=reg, print wg, wl, wx, and wz constraints.
1275 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1276 Initialize the reload functions for 64-bit binary/decimal floating
1277 point types.
1278 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1279 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1280 create the buffer on the stack to overcome not having a 32-bit
1281 load and store.
1282 (rs6000_emit_move): Likewise.
1283 (rs6000_secondary_memory_needed_rtx): Likewise.
1284 (rs6000_alloc_sdmode_stack_slot): Likewise.
1285 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1286 via xxlxor, just like DFmode 0.0.
1287
1288 * config/rs6000/dfp.md (movdd): Delete, combine with binary
1289 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
1290 with other moves by using conditional constraits (wg). Use LFIWZX
1291 and STFIWX for loading SDmode on power7.
1292 (movdd splitters): Likewise.
1293 (movdd_hardfloat32): Likewise.
1294 (movdd_softfloat32): Likewise.
1295 (movdd_hardfloat64_mfpgpr): Likewise.
1296 (movdd_hardfloat64): Likewise.
1297 (movdd_softfloat64): Likewise.
1298
1299 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
1300 64-bit binary and decimal floating point moves.
1301 (FMOVE64X): Likewise.
1302 (movdf): Combine 64-bit binary and decimal floating point moves.
1303 Combine power6x (mfpgpr) moves with other moves by using
1304 conditional constraits (wg).
1305 (mov<mode> for DFmode/DDmode): Likewise.
1306 (DFmode/DDmode splitters): Likewise.
1307 (movdf_hardfloat32): Likewise.
1308 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
1309 (movdf_softfloat32): Likewise.
1310 (movdf_hardfloat64_mfpgpr): Likewise.
1311 (movdf_hardfloat64): Likewise.
1312 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
1313 (movdf_softfloat64): Likewise.
1314 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
1315 (reload_<mode>_load): Move to later in the file so they aren't in
1316 the middle of the floating point move insns.
1317 (reload_<mode>_store): Likewise.
1318
1319 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
1320 constraint.
1321
1322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
1323 constraint if -mdebug=reg.
1324 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
1325 Enable using dd reload support if needed.
1326
1327 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
1328 binary and decimal floating point moves in rs6000.md.
1329 (movtd_internal): Likewise.
1330
1331 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
1332 decimal floating point moves.
1333 (movtf): Likewise.
1334 (movtf_internal): Likewise.
1335 (mov<mode>_internal, TDmode/TFmode): Likewise.
1336 (movtf_softfloat): Likewise.
1337 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
1338
1339 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
1340 movdi_internal64, using wg constraint for move direct operations.
1341 (movdi_internal64): Likewise.
1342
1343 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
1344 MODES_TIEABLE_P for selected modes. Print the numerical value of
1345 the various virtual registers. Use GPR/FPR first/last values,
1346 instead of hard coding the register numbers. Print which modes
1347 have reload functions registered.
1348 (rs6000_option_override_internal): If -mdebug=reg, trace the options
1349 settings before/after setting cpu, target and subtarget settings.
1350 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1351 and for secondary reload failures in rs6000_secondary_reload_inner.
1352 (rs6000_secondary_reload_fail): Likewise.
1353 (rs6000_secondary_reload_inner): Likewise.
1354
1355 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1356 macros for first/last GPR and FPR registers.
1357 (LAST_GPR_REGNO): Likewise.
1358 (FIRST_FPR_REGNO): Likewise.
1359 (LAST_FPR_REGNO): Likewise.
1360
1361 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1362 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1363 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1364 (vcond<mode><mode>): Likewise.
1365 (vcondu<mode><mode>): Likewise.
1366 (vector_gtu<mode>): Likewise.
1367 (vector_gte<mode>): Likewise.
1368 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
1369 to prevent the compiler from converting DImode operations to TImode.
1370 (ior<mode>3): Likewise.
1371 (and<mode>3): Likewise.
1372 (one_cmpl<mode>2): Likewise.
1373 (nor<mode>3): Likewise.
1374 (andc<mode>3): Likewise.
1375
1376 * config/rs6000/constraints.md (wt constraint): New constraint
1377 that returns VSX_REGS if TImode is allowed in VSX registers.
1378
1379 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1380 constant under VSX.
1381
1382 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1383 similar to TImode, but it is restricted to being in the GPRs.
1384
1385 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1386 TImode to occupy a single VSX register.
1387
1388 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1389 -mvsx-timode for power7/power8.
1390 (power7 cpu): Likewise.
1391 (power8 cpu): Likewise.
1392
1393 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1394 sure that TFmode/TDmode take up two registers if they are ever
1395 allowed in the upper VSX registers.
1396 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1397 registers.
1398 (rs6000_init_hard_regno_mode_ok): Likewise.
1399 (rs6000_debug_reg_global): Add debugging for PTImode and wt
1400 constraint. Print if LRA is turned on.
1401 (rs6000_option_override_internal): Give an error if -mvsx-timode
1402 and VSX is not enabled.
1403 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1404 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1405 to reg+offset addressing. Use PTImode when checking offset
1406 addresses for validity.
1407 (reg_offset_addressing_ok_p): Likewise.
1408 (rs6000_legitimate_offset_address_p): Likewise.
1409 (rs6000_legitimize_address): Likewise.
1410 (rs6000_legitimize_reload_address): Likewise.
1411 (rs6000_legitimate_address_p): Likewise.
1412 (rs6000_eliminate_indexed_memrefs): Likewise.
1413 (rs6000_emit_move): Likewise.
1414 (rs6000_secondary_reload): Likewise.
1415 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1416 reloads to fpr registers to continue to use reg+offset addressing,
1417 but 64-bit reloads to altivec registers need reg+reg addressing.
1418 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1419 it. Treat LO_SUM like a PLUS operation.
1420 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1421 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1422 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1423 registers to share a register with a smaller sized type, since VSX
1424 puts scalars in the upper 64-bits.
1425 (print_operand): Add support for PTImode.
1426 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1427 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1428 registers, but don't have arithmetic support.
1429 (rs6000_memory_move_cost): Add test for VSX.
1430 (rs6000_opt_masks): Add -mvsx-timode.
1431
1432 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1433 for TImode.
1434 (VSs): Likewise.
1435 (VSr): Use wt constraint for TImode.
1436 (VSv): Drop TImode support.
1437 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1438 (vsx_movti_64bit): Likewise.
1439 (vsx_movti_32bit): Likewise.
1440 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1441 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1442 one '?' on the appropriate output constraint. Do not allow TImode
1443 logical operations on 32-bit systems.
1444 (vsx_ior<mode>3): Likewise.
1445 (vsx_xor<mode>3): Likewise.
1446 (vsx_one_cmpl<mode>2): Likewise.
1447 (vsx_nor<mode>3): Likewise.
1448 (vsx_andc<mode>3): Likewise.
1449 (vsx_concat_<mode>): Likewise.
1450 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1451
1452 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1453 OPTION_MASK_VSX_TIMODE.
1454 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1455 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1456
1457 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1458 (TI2 iterator): New iterator for TImode, PTImode.
1459 (wd mode attribute): Add values for vector types.
1460 (movti_string): Replace TI move operations with operations for TImode
1461 and PTImode. Add support for TImode being allowed in VSX registers.
1462 (mov<mode>_string, TImode/PTImode): Likewise.
1463 (movti_ppc64): Likewise.
1464 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1465 (TI mode splitters): Likewise.
1466
1467 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1468 constraint.
1469
1470 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1471
1472 PR tree-optimization/56355
1473 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1474 Also handle integers with undefined overflow.
1475
1476 2013-03-20 Catherine Moore <clm@codesourcery.com>
1477 Maciej W. Rozycki <macro@codesourcery.com>
1478 Tom de Vries <tom@codesourcery.com>
1479 Nathan Sidwell <nathan@codesourcery.com>
1480 Iain Sandoe <iain@codesourcery.com>
1481 Nathan Froyd <froydnj@codesourcery.com>
1482 Chao-ying Fu <fu@mips.com>
1483
1484 * doc/extend.texi: (micromips, nomicromips, nocompression):
1485 Document new function attributes.
1486 * doc/invoke.texi (minterlink-compressed, mmicromips,
1487 m14k, m14ke, m14kec): Document new options.
1488 (minterlink-mips16): Update documentation.
1489 * doc/md.texi (ZC, ZD): Document new constraints.
1490 * configure.ac (gcc_cv_as_micromips): Check if linker
1491 supports the .set micromips directive.
1492 * configure: Regenerate.
1493 * config.in: Regenerate.
1494 * config/mips/mips-tables.opt: Regenerate.
1495 * config/mips/micromips.md: New file.
1496 * constraints.md (ZC, ZD): New constraints.
1497 * config/mips/predicates.md (movep_src_register): New predicate.
1498 (movep_src_operand): New predicate.
1499 (non_volatile_mem_operand): New predicate.
1500 * config/mips/mips.md (multimem): New type.
1501 (length): Differentiate between 17-bit and 18-bit branch offsets.
1502 (MOVEP1, MOVEP2): New mode iterator.
1503 (mov_<load>l): Use ZC constraint.
1504 (mov_<load>r): Likewise.
1505 (mov_<store>l): Likewise.
1506 (mov_<store>r): Likewise.
1507 (*branch_equality<mode>_inverted): Add microMIPS support.
1508 (*branch_equality<mode>): Likewise.
1509 (*jump_absolute): Likewise.
1510 (indirect_jump_<mode>): Likewise.
1511 (tablejump_<mode>): Likewise.
1512 (<optab>_internal): Likewise.
1513 (sibcall_internal): Likewise.
1514 (sibcall_value_internal): Likewise.
1515 (prefetch): Use constraint ZD.
1516 * config/mips/mips.opt (minterlink-compressed): New option.
1517 (minterlink-mips16): Now an alias for minterlink-compressed.
1518 (mmicromips): New option.
1519 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1520 (compare_and_swap_12): Likewise.
1521 (sync_add<mode>): Likewise.
1522 (sync_<optab>_12): Likewise.
1523 (sync_old_<optab>_12): Likewise.
1524 (sync_new_<optab>_12): Likewise.
1525 (sync_nand_12): Likewise.
1526 (sync_old_nand_12): Likewise.
1527 (sync_new_nand_12): Likewise.
1528 (sync_sub<mode>): Likewise.
1529 (sync_old_add<mode>): Likewise.
1530 (sync_old_sub<mode>): Likewise.
1531 (sync_new_add<mode>): Likewise.
1532 (sync_new_sub<mode>): Likewise.
1533 (sync_<optab><mode>): Likewise.
1534 (sync_old_<optab><mode>): Likewise.
1535 (sync_new_<optab><mode>): Likewise.
1536 (sync_nand<mode>): Likewise.
1537 (sync_old_nand<mode>): Likewise.
1538 (sync_new_nand<mode>): Likewise.
1539 (sync_lock_test_and_set<mode>): Likewise.
1540 (test_and_set_12): Likewise.
1541 (atomic_compare_and_swap<mode>): Likewise.
1542 (atomic_exchange<mode>_llsc): Likewise.
1543 (atomic_fetch_add<mode>_llsc): Likewise.
1544 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1545 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1546 (umips_save_restore_pattern_p): Likewise.
1547 (umips_load_store_pair_p): Likewise.
1548 (umips_output_load_store_pair): Likewise.
1549 (umips_movep_target_p): Likewise.
1550 (umips_12bit_offset_address_p): Likewise.
1551 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1552 (mips_base_mips16): Rename this...
1553 (mips_base_compression_flags): ...to this. Update all uses.
1554 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1555 (mips_mips16_decl_p): Delete.
1556 (mips_nomips16_decl_p): Delete.
1557 (mips_get_compress_on_flags): New function.
1558 (mips_get_compress_off_flags): New function.
1559 (mips_get_compress_mode): New function.
1560 (mips_get_compress_on_name): New function.
1561 (mips_get_compress_off_name): New function.
1562 (mips_insert_attributes): Support multiple compression types.
1563 (mips_merge_decl_attributes): Likewise.
1564 (umips_12bit_offset_address_p): New function.
1565 (mips_start_function_definition): Emit .set micromips directive.
1566 (mips_call_may_need_jalx_p): New function.
1567 (mips_function_ok_for_sibcall): Add microMIPS support.
1568 (mips_print_operand_punctuation): Support short delay slots and
1569 compact jumps.
1570 (umips_swm_mask, umips_swm_encoding): New.
1571 (umips_build_save_restore): New function.
1572 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1573 (was_mips16_p): Remove.
1574 (old_compression_mode): New.
1575 (mips_set_compression_mode): New function.
1576 (mips_set_current_function): Add microMIPS support.
1577 (mips_option_override): Likewise.
1578 (umips_save_restore_pattern_p): New function.
1579 (umips_output_save_restore): New function.
1580 (umips_load_store_pair_p_1): New function.
1581 (umips_load_store_pair_p): New function.
1582 (umips_output_load_store_pair_1): New function.
1583 (umips_output_load_store_pair): New function.
1584 (umips_movep_target_p) New function.
1585 (mips_prepare_pch_save): Add microMIPS support.
1586 * config/mips/mips.h (TARGET_COMPRESSION): New.
1587 (TARGET_CPU_CPP_BUILTINS): Update macro
1588 to use new compression flags and to support microMIPS.
1589 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1590 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1591 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1592 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1593 (ASM_SPEC): Support mmicromips and mno-micromips.
1594 (M16STORE_REG_P): New macro.
1595 (MIPS_CALL): Support TARGET_MICROMIPS.
1596 (MICROMIPS_J): New macro.
1597 (mips_base_mips16): Rename this...
1598 (mips_base_compression_flags): ...to this.
1599 (UMIPS_12BIT_OFFSET_P): New macro.
1600 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1601 (MULTILIB_DIRNAMES): Likewise.
1602 2013-03-20 Richard Biener <rguenther@suse.de>
1603
1604 PR tree-optimization/56661
1605 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1606 the result does not have to be distinct.
1607
1608 2013-03-20 Richard Biener <rguenther@suse.de>
1609
1610 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1611 remap_gimple_op_r.
1612
1613 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1614 Steven Bosscher <steven@gcc.gnu.org>
1615
1616 PR rtl-optimization/56605
1617 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1618
1619 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1620
1621 PR bootstrap/56656
1622 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1623 that require movd instead of movq.
1624
1625 2013-03-20 Richard Biener <rguenther@suse.de>
1626
1627 * tree-ssa-structalias.c (struct variable_info): Add pointer
1628 to the first field of an aggregate with sub-vars. Make
1629 this and the pointer to the next subfield its ID.
1630 (vi_next): New function.
1631 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1632 storedanything_id, integer_id): Increment by one.
1633 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1634 get_call_clobber_vi): Adjust.
1635 (solution_set_expand): Simplify and speedup.
1636 (solution_set_add): Inline into ...
1637 (set_union_with_increment): ... this. Adjust accordingly.
1638 (do_sd_constraint): Likewise.
1639 (do_ds_constraint): Likewise.
1640 (do_complex_constraint): Simplify.
1641 (build_pred_graph): Adjust.
1642 (solve_graph): Likewise. Simplify and speedup.
1643 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1644 get_constraint_for_component_ref, get_constraint_for_1,
1645 first_vi_for_offset, first_or_preceding_vi_for_offset,
1646 create_function_info_for, create_variable_info_for_1,
1647 create_variable_info_for, intra_create_variable_infos): Adjust.
1648 (init_base_vars): Push NULL for ID zero.
1649 (compute_points_to_sets): Adjust.
1650
1651 2013-03-20 Richard Biener <rguenther@suse.de>
1652
1653 * cfgloop.c (verify_loop_structure): Streamline and avoid
1654 ICEing on corrupt loop tree.
1655 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1656 loop tree.
1657
1658 2013-03-20 Richard Biener <rguenther@suse.de>
1659
1660 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1661 check whether an SSA update is needed.
1662
1663 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1664
1665 * config/mips/constraints.md (T): Rename to...
1666 (Yf): ...this.
1667 (U): Rename to...
1668 (Yd): ...this.
1669 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1670 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1671
1672 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1673
1674 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1675 (*subsi3_carryin_uxtw): Likewise.
1676
1677 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1678
1679 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1680 (*rorsi3_insn_uxtw): Likewise.
1681
1682 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1683
1684 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1685 (*extrsi5_insn_uxtw): Likewise.
1686
1687 2013-03-19 Richard Biener <rguenther@suse.de>
1688
1689 PR tree-optimization/56273
1690 * passes.c (init_optimization_passes): Move second VRP after DOM.
1691
1692 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1693
1694 * config/i386/i386.md (*movti_internal): Merge from
1695 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1696 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1697 nox64 isa attributes.
1698
1699 2013-03-18 Richard Biener <rguenther@suse.de>
1700
1701 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1702 (unite): Likewise.
1703 (merge_node_constraints): Likewise.
1704 (build_succ_graph): Likewise.
1705 (valid_graph_edge): Inline into single caller.
1706 (unify_nodes): Likewise. Use bitmap_set_bit return value
1707 and cache varinfo.
1708 (scc_visit): Fix formatting and variable use.
1709 (do_sd_constraint): Use gcc_checking_assert.
1710 (do_ds_constraint): Likewise.
1711 (do_complex_constraint): Likewise.
1712 (condense_visit): Likewise. Cleanup.
1713 (dump_pred_graph): New function.
1714 (perform_var_substitution): Dump the pred-graph before
1715 variable substitution.
1716 (find_equivalent_node): Use gcc_checking_assert.
1717 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1718
1719 2013-03-18 Richard Biener <rguenther@suse.de>
1720
1721 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1722 Remove cond_expr_stmt_list argument and do not gimplify the
1723 built expression.
1724 (vect_loop_versioning): Adjust.
1725 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1726 Cleanup to use less temporaries.
1727 (vect_create_data_ref_ptr): Cleanup.
1728
1729 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1730
1731 PR tree-optimization/56635
1732 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1733 require types_compatible_p types.
1734
1735 2013-03-18 Nick Clifton <nickc@redhat.com>
1736
1737 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1738 spurious backslash.
1739
1740 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1741 Add missing line to comment describing function.
1742
1743 2013-03-18 Richard Biener <rguenther@suse.de>
1744
1745 PR tree-optimization/56210
1746 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1747 Handle string / character search functions.
1748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1749
1750 2013-03-18 Richard Biener <rguenther@suse.de>
1751
1752 PR middle-end/56483
1753 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1754 and implement properly.
1755 * gimple.h (gimple_cond_single_var_p): Remove.
1756
1757 2013-03-18 Richard Biener <rguenther@suse.de>
1758
1759 * tree-data-ref.h (find_data_references_in_loop): Declare.
1760 * tree-data-ref.c (get_references_in_stmt): Use a stack
1761 vector pre-allocated in the callers.
1762 (find_data_references_in_stmt): Adjust.
1763 (graphite_find_data_references_in_stmt): Likewise.
1764 (create_rdg_vertices): Likewise.
1765 (find_data_references_in_loop): Export.
1766 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1767 Compute dependences here...
1768 (vect_analyze_data_refs): ...not here. When we encounter
1769 a non-vectorizable data reference in basic-block vectorization
1770 truncate the data reference vector. Do not bother to
1771 fixup data-dependence information for gather loads.
1772 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1773 of data references, as reported.
1774
1775 2013-03-18 Richard Biener <rguenther@suse.de>
1776
1777 PR tree-optimization/3713
1778 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1779 has_constants and expr.
1780 (stmt_has_constants): Properly valueize SSA names when deciding
1781 whether the stmt has constants.
1782
1783 2013-03-18 Richard Biener <rguenther@suse.de>
1784
1785 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1786 whole function when there is nothing to do.
1787 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1788 * tree-vectorizer.c (vectorize_loops): Update virtual and
1789 loop-closed SSA once.
1790 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1791
1792 2013-03-18 Richard Biener <rguenther@suse.de>
1793
1794 PR middle-end/56113
1795 * domwalk.c (bb_postorder): New global static.
1796 (cmp_bb_postorder): New function.
1797 (walk_dominator_tree): Replace scheme imposing an order for
1798 visiting dominator sons by one sorting them at the time they
1799 are pushed on the stack.
1800
1801 2013-03-18 Richard Biener <rguenther@suse.de>
1802
1803 PR tree-optimization/39326
1804 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1805 (struct mem_ref): Replace mem member with ao_ref typed member.
1806 (MEM_ANALYZABLE): Adjust.
1807 (memref_eq): Likewise.
1808 (mem_ref_alloc): Likewise.
1809 (gather_mem_refs_stmt): Likewise.
1810 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1811 (execute_sm_if_changed_flag_set): Adjust.
1812 (execute_sm): Likewise.
1813 (ref_always_accessed_p): Likewise.
1814 (refs_independent_p): Likewise.
1815 (can_sm_ref_p): Likewise.
1816
1817 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1818
1819 PR c/56566
1820 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1821 return 1 even for !unsignedp.
1822
1823 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1824
1825 * config/i386/i386.md (isa): Add x64 and nox64.
1826 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1827 (*pushtf): Enable *roF alternative for x64 isa only.
1828 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1829 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1830 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1831 (*movtf_internal): Merge from *movtf_internal_rex64 and
1832 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1833 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1834 nox64 isa attributes.
1835 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1836 nox64 isa attributes.
1837 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1838
1839 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1840
1841 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1842
1843 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR target/56640
1846 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1847 class names. Remove trailing comma after "ALL_REGS".
1848
1849 2013-03-16 Jan Hubicka <jh@suse.cz>
1850
1851 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1852 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1853 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1854 of cgraph_get_create_node.
1855 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1856
1857 2013-03-16 Jason Merrill <jason@redhat.com>
1858
1859 PR debug/49090
1860 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1861 with DW_AT_default_value.
1862
1863 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1864
1865 * BASE-VER: Set to 4.9.0.
1866
1867 2013-03-14 Andi Kleen <ak@linux.intel.com>
1868
1869 PR target/56619
1870 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1871 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1872 Document _x* TSX intrinsics.
1873
1874 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1875 David Holsgrove <david.holsgrove@xilinx.com>
1876
1877 * configure.ac: Add MicroBlaze TLS support detection.
1878 * configure: Regenerate.
1879 * config/microblaze/microblaze-protos.h
1880 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1881 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1882 * config/microblaze/microblaze.c (microblaze_address_type): Add
1883 ADDRESS_TLS and tls_reloc address types.
1884 (microblaze_address_info): Add tls_reloc.
1885 (TARGET_HAVE_TLS): Define.
1886 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1887 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1888 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1889 load_tls_operand, microblaze_call_tls_get_addr,
1890 microblaze_legitimize_tls_address): New functions.
1891 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1892 (get_base_reg): Use microblaze_tls_symbol_p.
1893 (microblaze_classify_address): Handle TLS.
1894 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1895 label_mentioned_p and microblaze_tls_referenced_p.
1896 (microblaze_legitimize_address): Handle TLS.
1897 (microblaze_address_insns): Handle ADDRESS_TLS.
1898 (pic_address_needs_scratch): Handle TLS.
1899 (print_operand_address): Handle TLS.
1900 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1901 (microblaze_expand_move): Handle TLS.
1902 (microblaze_legitimate_constant_p): Check
1903 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1904 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1905 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1906 (PIC_OFFSET_TABLE_REGNUM): Set.
1907 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1908 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1909 (addsi3, movsi_internal2, movdf_internal): Update constraints
1910 * config/microblaze/predicates.md (arith_plus_operand): Define
1911 (move_operand): Redefine as move_src_operand,
1912 check microblaze_tls_referenced_p.
1913
1914 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1915
1916 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1917 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1918
1919 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1920
1921 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1922 CC mode for AND.
1923
1924 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1925
1926 PR tree-optimization/53265
1927 * common.opt (Waggressive-loop-optimizations): New option.
1928 * tree-ssa-loop-niter.c: Include tree-pass.h.
1929 (do_warn_aggressive_loop_optimizations): New function.
1930 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1931 if number_of_latch_executions returned constant.
1932 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1933 early. If number_of_latch_executions returned constant, set
1934 nb_iterations_upper_bound back to it.
1935 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1936 field.
1937 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1938 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1939
1940 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1941 (MULTILIB_OSDIRNAMES): Set.
1942 * genmultilib: If defaultosdirname doesn't start with :: , set
1943 defaultosdirname2 instead, clear it and emit two . multilib_raw
1944 entries instead of just one.
1945
1946 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1947
1948 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1949 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1950 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1951 (SUBTARGET_OVERRIDE_OPTIONS): New.
1952
1953 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1954
1955 PR target/49880
1956 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1957 (musermode): Convert to Var(TARGET_USERMODE).
1958 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1959 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1960 * config/sh/sh.c (sh_option_override): Use
1961 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1962 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1963 condition.
1964 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1965 TARGET_SH4.
1966 (udivsi3_i4_single, divsi3_i4_single): Use
1967 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1968
1969 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1970
1971 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1972 default setting.
1973
1974 2013-03-13 Richard Biener <rguenther@suse.de>
1975
1976 PR tree-optimization/56608
1977 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1978 calls when vectorizing basic-blocks.
1979
1980 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1981
1982 PR plugins/45078
1983 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1984 tm_file.
1985
1986 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1987
1988 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1989
1990 2013-03-11 Jan Hubicka <jh@suse.cz>
1991
1992 PR lto/56557
1993 * lto-streamer-out.c (output_symbol_p): Skip references from
1994 constructors of external variables.
1995
1996 2013-03-11 Jan Hubicka <jh@suse.cz>
1997
1998 PR middle-end/56571
1999 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2000 from pseudos.
2001 * emit-rtl.c (verify_rtx_sharing): Likewise.
2002 (copy_insn_1): Likewise.
2003 * rtl.c (copy_rtx): Likewise.
2004
2005 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
2006
2007 PR target/56591
2008 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2009 output_operand_lossage message.
2010
2011 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
2012
2013 PR target/56470
2014 * arm.c (shift_op): Validate RTL pattern on the fly.
2015 (arm_print_operand, case 'S'): Don't use shift_operator to validate
2016 the RTL.
2017
2018 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2019
2020 PR target/56347
2021 * config/pa/pa.md (call_value): Check for calls to powf and direct to
2022 new call patterns that clobber %fr12.
2023 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2024 split and postreload patterns.
2025 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2026 registers %fr12 and %fr12R as call used.
2027
2028 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
2029
2030 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2031 (canon_address, record_store, replace_read, check_mem_read_rtx,
2032 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2033 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2034 rest_of_handle_dse): Likewise.
2035
2036 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2037
2038 PR middle-end/56524
2039 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2040 Add base_optabs.
2041 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2042 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2043 (save_optabs_if_changed): Replace with...
2044 (init_tree_optimization_optabs): ...this.
2045 * optabs.c (save_optabs_if_changed): Rename to...
2046 (init_tree_optimization_optabs): ...this. Take the optimization node
2047 as argument. Do nothing if the base optabs are already correct.
2048 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2049 to recompute optabs.
2050 * function.h (function): Remove optabs field.
2051 * function.c (invoke_set_current_function_hook): Call
2052 init_tree_optimization_optabs. Use the result to initialize
2053 this_fn_optabs.
2054
2055 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
2056
2057 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2058 if GTMA_HAS_NO_INSTRUMENTATION.
2059 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2060 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2061 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2062 * gimple-pretty-print.c (dump_gimple_transaction): Handle
2063 GTMA_HAS_NO_INSTRUMENTATION.
2064
2065 2013-03-08 Jakub Jelinek <jakub@redhat.com>
2066
2067 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2068 libasan_preinit.o.
2069
2070 2013-03-08 Marek Polacek <polacek@redhat.com>
2071 Jakub Jelinek <jakub@redhat.com>
2072
2073 PR tree-optimization/56478
2074 * predict.c (is_comparison_with_loop_invariant_p): Change the
2075 type of loop_step to tree.
2076 (predict_loops): Adjust.
2077 (predict_iv_comparison): Perform the computations on double_ints.
2078
2079 2013-03-08 Richard Biener <rguenther@suse.de>
2080
2081 PR tree-optimization/56570
2082 * tree-cfg.c (verify_expr_location_1): Verify locations for
2083 DECL_DEBUG_EXPR.
2084 * tree-sra.c (create_access_replacement): Strip locations
2085 from DECL_DEBUG_EXPRs.
2086
2087 2013-03-08 Richard Biener <rguenther@suse.de>
2088
2089 * tree-inline.c (expand_call_inline): Do not associate
2090 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2091 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2092
2093 2013-03-08 Richard Biener <rguenther@suse.de>
2094
2095 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2096 or block changes with -Og. Fix for location / block encoding
2097 changes and PHI arguments with locations.
2098
2099 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
2100
2101 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2102 for all counters.
2103 (struct output_info): Likewise.
2104 (register_overhead): Remove bad gcc_assert.
2105 (bitmap_find_bit): If there is only a single bitmap element, do not
2106 count a miss as a search.
2107 (print_statistics): Update for counter type changes.
2108 (dump_bitmap_statistics): Likewise. Print headers such that they
2109 are properly lined up with the printed counters.
2110
2111 2013-03-07 Jakub Jelinek <jakub@redhat.com>
2112
2113 PR tree-optimization/56559
2114 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2115 check that it has only a single use.
2116
2117 2013-03-07 Richard Biener <rguenther@suse.de>
2118
2119 * doc/invoke.texi (fwhole-program): Discourage use in combination
2120 with -flto.
2121
2122 2013-03-06 Jakub Jelinek <jakub@redhat.com>
2123
2124 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2125
2126 PR tree-optimization/56539
2127 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2128 instead of GSI_CONTINUE_LINKING as last argument to
2129 force_gimple_operand_gsi. Adjust function comment.
2130
2131 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2132 aarch64-cores.def.
2133
2134 PR middle-end/56548
2135 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2136 promoted mode, convert the result back to the original mode.
2137
2138 2013-03-06 Richard Biener <rguenther@suse.de>
2139
2140 PR middle-end/56294
2141 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2142 (insert_updated_phi_nodes_compare_uids): New function.
2143 (update_ssa): Sort symbols_to_rename after UID before
2144 traversing it to insert PHI nodes.
2145
2146 2013-03-06 Richard Biener <rguenther@suse.de>
2147
2148 PR middle-end/50494
2149 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2150 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2151
2152 Revert
2153 2013-02-13 Richard Biener <rguenther@suse.de>
2154
2155 PR lto/50494
2156 * varasm.c (output_constant_def_1): Get the decl representing
2157 the constant as argument.
2158 (output_constant_def): Wrap output_constant_def_1.
2159 (make_decl_rtl): Use output_constant_def_1 with the decl
2160 representing the constant.
2161 (build_constant_desc): Optionally re-use a decl already
2162 representing the constant.
2163 (tree_output_constant_def): Adjust.
2164
2165 2013-03-06 Joey Ye <joey.ye@arm.com>
2166
2167 PR lto/50293
2168 * gcc.c (convert_white_space): New function.
2169 (main): Handles white space in function name.
2170
2171 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
2172
2173 PR target/56529
2174 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2175 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
2176 to SH_DIV_CALL_TABLE for TARGET_SH2.
2177 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2178 list.
2179 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2180 call-table options.
2181
2182 2013-03-05 Sterling Augustine <saugustine@google.com>
2183 Cary Coutant <ccoutant@google.com>
2184
2185 PR debug/55364
2186 * dwarf2out.c (resolve_addr): Don't call
2187 remove_loc_list_addr_table_entries a second time for the same
2188 expression.
2189
2190 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2191
2192 PR debug/56510
2193 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2194 (avoid_complex_debug_insns): New function.
2195 (expand_debug_locations): Call it.
2196
2197 PR rtl-optimization/56484
2198 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2199 lifetimes of hard registers on small register class machines.
2200
2201 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2202
2203 * config/microblaze/microblaze-protos.h: Rename
2204 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2205 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2206 fast_interrupt.
2207 (microblaze_fast_interrupt_function_p): New function.
2208 (microblaze_is_interrupt_handler): Rename to
2209 microblaze_is_interrupt_variant and add fast_interrupt check.
2210 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2211 (save_restore_insns): Likewise.
2212 (compute_frame_size): Likewise.
2213 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2214 (microblaze_globalize_label): Likewise.
2215 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2216 * config/microblaze/microblaze.md: Use wrapper
2217 microblaze_is_interrupt_variant.
2218
2219 2013-03-05 Kai Tietz <ktietz@redhat.com>
2220
2221 * sdbout.c (sdbout_one_type): Switch to current function's section
2222 supporting cold/hot.
2223
2224 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
2225
2226 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2227 -mxl-reorder.
2228
2229 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2230
2231 PR middle-end/56461
2232 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2233 if VALGRIND_GET_VBITS is defined, temporarily make object
2234 memory all defined, and restore previous valgrind addressability
2235 and definability afterwards. Free this_object at the end.
2236
2237 PR middle-end/56461
2238 * lra.c (lra): Call lra_clear_live_ranges if live_p,
2239 right before calling lra_create_live_ranges, also call it
2240 when clearing live_p. Only call lra_clear_live_ranges
2241 at the end if live_p.
2242
2243 PR middle-end/56461
2244 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2245
2246 2013-03-05 Richard Biener <rguenther@suse.de>
2247
2248 PR tree-optimization/56521
2249 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2250 value-id.
2251
2252 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
2253
2254 PR c++/55135
2255 * except.h (remove_unreachable_eh_regions): New prototype.
2256 * except.c (remove_eh_handler_splicer): New function, split out
2257 of remove_eh_handler.
2258 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
2259 warning about running it on many EH regions one at a time.
2260 (remove_unreachable_eh_regions_worker): New function, walk the
2261 EH tree in depth-first order and remove non-marked regions.
2262 (remove_unreachable_eh_regions): New function.
2263 * tree-eh.c (mark_reachable_handlers): New function, split out
2264 from remove_unreachable_handlers.
2265 (remove_unreachable_handlers): Use mark_reachable_handlers and
2266 remove_unreachable_eh_regions.
2267 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2268 and remove_unreachable_eh_regions.
2269
2270 2013-03-05 Richard Biener <rguenther@suse.de>
2271
2272 PR middle-end/56525
2273 * loop-init.c (fix_loop_structure): Remove loops in two stages,
2274 not freeing them until the end.
2275
2276 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2277
2278 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2279
2280 2013-03-05 Richard Biener <rguenther@suse.de>
2281
2282 PR tree-optimization/56270
2283 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2284 of loads after scheduling an SLP instance.
2285
2286 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2287
2288 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2289 tic6x.exp.
2290 (check_gcc_parallelize): Run guality.exp as a separate job from
2291 vect.exp with unsorted.exp and $(dg_target_exps) separately from
2292 struct-layout-1.exp with stackalign.exp.
2293
2294 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2295
2296 PR middle-end/56461
2297 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2298 load_index sbitmap even if some bit in it isn't set.
2299
2300 PR middle-end/56461
2301 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2302 (discover_iteration_bound_by_body_walk): Change queues to
2303 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
2304 spelling in comment. Call safe_push on queues[bound_index] directly.
2305 Release queues[queue_index] in every iteration unconditionally.
2306 Release bounds vector.
2307
2308 PR middle-end/56461
2309 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2310 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2311 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2312 inner_phis vector.
2313
2314 2013-03-05 Richard Biener <rguenther@suse.de>
2315
2316 PR lto/56515
2317 * tree-inline.c (remap_blocks_to_null): New function.
2318 (expand_call_inline): When expanding a call stmt without
2319 an associated block inline remap all callee blocks to NULL.
2320
2321 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2322
2323 PR rtl-optimization/56494
2324 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2325 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2326 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2327
2328 PR middle-end/56461
2329 * sel-sched-ir.c (free_sched_pools): Release
2330 succs_info_pool.stack[succs_info_pool.max_top] vectors too
2331 if succs_info_pool.max_top isn't -1.
2332
2333 PR bootstrap/56509
2334 * opts.c (opts_obstack, opts_concat): Moved to...
2335 * opts-common.c (opts_obstack, opts_concat): ... here.
2336
2337 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2338
2339 PR middle-end/56461
2340 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2341
2342 2013-03-04 Martin Jambor <mjambor@suse.cz>
2343
2344 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2345 all appropriate places.
2346
2347 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
2348
2349 PR tree-optimization/56424
2350 * ipa-split.c (split_function): Do not set the RSO flag if result is
2351 not by reference and its type is a register type.
2352
2353 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
2354
2355 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
2356 (microblaze_legitimate_pic_operand): Likewise
2357 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
2358 new function microblaze_legitimate_pic_operand
2359 * config/microblaze/microblaze-protos.h
2360 (microblaze_legitimate_pic_operand): Declare.
2361
2362 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2363
2364 * config/microblaze/predicates.md (call_insn_simple_operand):
2365 New predicate for supported rtx code types.
2366 * config/microblaze/microblaze.md (call_internal1): Use
2367 call_insn_simple_operand predicate.
2368
2369 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2370
2371 PR middle-end/56461
2372 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2373 partitions.ordered_remove.
2374
2375 PR middle-end/56461
2376 * tree-vect-stmts.c (vectorizable_conversion): Don't call
2377 vec_oprnds0.create (1) for modifier == NONE.
2378
2379 PR middle-end/56461
2380 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2381 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2382 vec_oprnds1 right before pushing anything to it for
2383 scalar_shift_arg.
2384
2385 PR middle-end/56461
2386 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2387 set nbbs to 0 instead of having separate code path.
2388 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2389 instead of false as last argument if returning NULL.
2390
2391 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
2392
2393 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2394 the attribute is now called "target" instead of "option".
2395 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2396 * doc/tm.texi.in (Target Attributes): Likewise document the correct
2397 attribute/pragma name for TARGET_OPTION_VALID_P and
2398 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
2399 * doc/tm.texi: Regenerated.
2400
2401 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2402
2403 * config/microblaze/microblaze.c:
2404 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2405 * config/microblaze/microblaze.h: Add -mxl-reorder to
2406 DRIVER_SELF_SPECS.
2407 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2408 instructions emitted if TARGET_REORDER.
2409 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2410 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2411 separately.
2412
2413 2013-03-01 Xinliang David Li <davidxl@google.com>
2414
2415 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2416 walk length.
2417
2418 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2419
2420 PR middle-end/56461
2421 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2422 vector even when returning true. Fix up function comment formatting.
2423
2424 PR middle-end/56461
2425 * ira-build.c (ira_loop_nodes_count): New variable.
2426 (create_loop_tree_nodes): Initialize it.
2427 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2428
2429 PR middle-end/56461
2430 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2431 method on dr_chain and result_chain.
2432 * tree-vect-stmts.c (vectorizable_store): Only call
2433 result_chain.create if j == 0.
2434
2435 PR middle-end/56461
2436 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2437 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2438 before overwriting it.
2439
2440 2013-03-01 Tobias Burnus <burnus@net-b.de>
2441
2442 * doc/extended.texi (C Extensions): Change order in @menu
2443 to match @node.
2444 (Other MIPS Built-in Functions): Move last MIPS entry before
2445 "picoChip Built-in Functions".
2446 (SH Built-in Functions): Move after RX Built-in Functions.
2447 * doc/gcc.texi (Introduction): Change order in @menu
2448 to match @node.
2449 * doc/md.texi (Constraints): Ditto.
2450 * gty.texi (Type Information): Ditto.
2451 (User-provided marking routines for template types): Make
2452 subsection.
2453 * doc/invoke.texi (AArch64 Options): Move before
2454 "Adapteva Epiphany Options".
2455
2456 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2457 Jakub Jelinek <jakub@redhat.com>
2458
2459 PR sanitizer/56454
2460 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2461 no_address_safety_analysis attribute.
2462 * doc/extend.texi (no_address_safety_attribute): Rename to
2463 no_sanitize_address attribute, mention no_address_safety_analysis
2464 attribute as deprecated alias.
2465
2466 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2467
2468 PR middle-end/56461
2469 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2470 type to vec<vec<tree> > *.
2471 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2472 to be vec<tree> instead of vec<tree> *, set vec_defs
2473 to vNULL and call vec_defs.create (number_of_vects), adjust other
2474 uses of vec_defs.
2475 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2476 vectorizable_condition): Adjust vect_get_slp_defs callers.
2477
2478 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2479
2480 * config/aarch64/aarch64.c
2481 (aarch64_float_const_representable): Remove unused variable.
2482
2483 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2484
2485 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2486
2487 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2488
2489 * config/aarch64/aarch64-builtins.c
2490 (aarch64_init_simd_builtins): Make static.
2491
2492 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2493
2494 * config/aarch64/aarch64.c
2495 (aarch64_simd_make_constant): Make static.
2496
2497 2013-02-28 Martin Jambor <mjambor@suse.cz>
2498
2499 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2500 with no initialization to the RHS of debug statements.
2501
2502 2013-02-28 Martin Jambor <mjambor@suse.cz>
2503
2504 PR tree-optimization/56294
2505 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2506 Adjust dumping.
2507 (get_access_replacement): Do not call create_access_replacement.
2508 Assert a replacement exists.
2509 (get_repl_default_def_ssa_name): Create the replacement declaration
2510 itself.
2511
2512 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2513
2514 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2515 final_end_function.
2516
2517 2013-02-28 Marek Polacek <polacek@redhat.com>
2518
2519 PR rtl-optimization/56466
2520 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2521 if we're changing a loop.
2522 (peel_loops_completely): Likewise.
2523
2524 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2525
2526 PR c++/55813
2527 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2528
2529 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2530
2531 PR target/56445
2532 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2533 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2534 INTX_FTYPE_FX, FX_FTYPE_INTX.
2535 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2536
2537 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2538
2539 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2540 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2541 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2542 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2543 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2544 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2545 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2546 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2547 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2548 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2549 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2550 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2551 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2552 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2553 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2554 (avrxmega6): Increase max flash segments from 5 to 6.
2555 * config/avr/t-multilib: Regenerate.
2556 * config/avr/avr-tables.opt: Regenerate.
2557 * doc/avr-mmcu.texi: Regenerate.
2558
2559 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2560
2561 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2562 (avr_device_to_arch): Rename to avr_device_to_ld.
2563 (avr_device_to_as): New prototype.
2564 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2565 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2566 * config/avr/driver-avr.c (avr_device_to_as): New.
2567 (avr_device_to_arch): Rename to avr_device_to_ld.
2568
2569 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2570
2571 PR middle-end/56461
2572 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2573 method on dr_chain and result_chain.
2574
2575 PR middle-end/56461
2576 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2577 pointer_set_destroy on not_executed_last_iteration.
2578
2579 PR middle-end/56461
2580 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2581
2582 PR middle-end/56461
2583 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2584 FOR_EACH_DEFINED_FUNCTION when freeing state.
2585
2586 PR middle-end/56461
2587 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2588 pool_free.
2589 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2590 overwriting it.
2591
2592 PR middle-end/56461
2593 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2594 known_aggs[i].items and release known_aggs vector.
2595
2596 PR middle-end/56461
2597 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2598
2599 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2600
2601 * config/microblaze/microblaze.c (microblaze_emit_compare):
2602 Use xor for EQ/NE comparisions.
2603 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2604 (cbranchsf4): Adjust operator to comparison_operator.
2605
2606 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2607
2608 PR middle-end/56461
2609 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2610 vector.
2611 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2612 vec_safe_push, always update *slot.
2613 (redirect_edge_var_map_clear): Use vec_free.
2614 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2615 (free_var_map_entry): Use vec_free.
2616 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2617 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2618
2619 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2620
2621 PR middle-end/45472
2622 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2623 when the may_trap_p bit of the exprs being merged differs.
2624 Reorder tests for speculativeness in the logical and operator.
2625
2626 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2627
2628 * incpath.c (add_standard_paths): Use reconcat instead of concat
2629 where appropriate and avoid leaking memory.
2630
2631 * opts.h: Include obstack.h.
2632 (opts_concat): New prototype.
2633 (opts_obstack): New declaration.
2634 * opts.c (opts_concat): New function.
2635 (opts_obstack): New variable.
2636 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2637 (finish_options): Use opts_concat instead of concat
2638 and XOBNEWVEC instead of XNEWVEC.
2639 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2640 generate_option): Likewise.
2641 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2642 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2643
2644 PR target/56455
2645 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2646 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2647
2648 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2649
2650 PR middle-end/56461
2651 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2652
2653 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2654
2655 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2656 (arm_block_move_unaligned_straight): Likewise.
2657 (arm_adjust_block_mem): Likewise.
2658
2659 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2660
2661 PR target/48901
2662 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2663 temp, cond and label.
2664 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2665
2666 PR target/52500
2667 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2668 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2669
2670 PR target/52501
2671 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2672 of prologue/epilogue functions.
2673
2674 PR target/52550
2675 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2676 Remove unused variable cfa_offset.
2677 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2678
2679 PR target/54639
2680 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2681 type promotion to unsigned.
2682
2683 PR target/54640
2684 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2685 for HOST_WIDE_INT of 32 bit / same size as int.
2686 (arm_block_move_unaligned_straight): Likewise.
2687 (arm_adjust_block_mem): Likewise.
2688
2689 PR target/54662
2690 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2691 ALL_CFLAGS.
2692
2693 2013-02-26 Marek Polacek <polacek@redhat.com>
2694
2695 PR tree-optimization/56426
2696 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2697
2698 2013-02-26 Richard Biener <rguenther@suse.de>
2699
2700 PR target/56444
2701 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2702 unused variable loops.
2703
2704 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2705
2706 PR tree-optimization/56448
2707 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2708 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2709 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2710 later operands of the references, or even first operand for
2711 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2712
2713 PR tree-optimization/56443
2714 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2715 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2716 to type_for_mode langhook.
2717
2718 2013-02-25 Matt Turner <mattst88@gmail.com>
2719
2720 * doc/invoke.texi: Document r4700.
2721
2722 2013-02-25 Richard Biener <rguenther@suse.de>
2723
2724 PR tree-optimization/56175
2725 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2726 split out from ...
2727 (simplify_bitwise_binary): ... here. Also guard the conversion
2728 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2729
2730 2013-02-25 Catherine Moore <clm@codesourcery.com>
2731
2732 Revert:
2733 2013-02-24 Catherine Moore <clm@codesourcery.com>
2734 Maciej W. Rozycki <macro@codesourcery.com>
2735 Tom de Vries <tom@codesourcery.com>
2736 Nathan Sidwell <nathan@codesourcery.com>
2737 Iain Sandoe <iain@codesourcery.com>
2738 Nathan Froyd <froydnj@codesourcery.com>
2739 Chao-ying Fu <fu@mips.com>
2740
2741 * doc/extend.texi: (micromips, nomicromips, nocompression):
2742 Document new function attributes.
2743 * doc/invoke.texi (minterlink-compressed, mmicromips,
2744 m14k, m14ke, m14kec): Document new options.
2745 (minterlink-mips16): Update documentation.
2746 * doc/md.texi (ZC, ZD): Document new constraints.
2747 * configure.ac (gcc_cv_as_micromips): Check if linker
2748 supports the .set micromips directive.
2749 * configure: Regenerate.
2750 * config.in: Regenerate.
2751 * config/mips/mips-tables.opt: Regenerate.
2752 * config/mips/micromips.md: New file.
2753 * constraints.md (ZC, AD): New constraints.
2754 * config/mips/predicates.md (movep_src_register): New predicate.
2755 (movep_src_operand): New predicate.
2756 (non_volatile_mem_operand): New predicate.
2757 * config/mips/mips.md (multimem): New type.
2758 (length): Differentiate between 17-bit and 18-bit branch offsets.
2759 (MOVEP1, MOVEP2): New mode iterator.
2760 (mov_<load>l): Use ZC constraint.
2761 (mov_<load>r): Likewise.
2762 (mov_<store>l): Likewise.
2763 (mov_<store>r): Likewise.
2764 (*branch_equality<mode>_inverted): Add microMIPS support.
2765 (*branch_equality<mode>): Likewise.
2766 (*jump_absolute): Likewise.
2767 (indirect_jump_<mode>): Likewise.
2768 (tablejump_<mode>): Likewise.
2769 (<optab>_internal): Likewise.
2770 (sibcall_internal): Likewise.
2771 (sibcall_value_internal): Likewise.
2772 (prefetch): Use constraint ZD.
2773 * config/mips/mips.opt (minterlink-compressed): New option.
2774 (minterlink-mips16): Now an alias for minterlink-compressed.
2775 (mmicromips): New option.
2776 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2777 (compare_and_swap_12): Likewise.
2778 (sync_add<mode>): Likewise.
2779 (sync_<optab>_12): Likewise.
2780 (sync_old_<optab>_12): Likewise.
2781 (sync_new_<optab>_12): Likewise.
2782 (sync_nand_12): Likewise.
2783 (sync_old_nand_12): Likewise.
2784 (sync_new_nand_12): Likewise.
2785 (sync_sub<mode>): Likewise.
2786 (sync_old_add<mode>): Likewise.
2787 (sync_old_sub<mode>): Likewise.
2788 (sync_new_add<mode>): Likewise.
2789 (sync_new_sub<mode>): Likewise.
2790 (sync_<optab><mode>): Likewise.
2791 (sync_old_<optab><mode>): Likewise.
2792 (sync_new_<optab><mode>): Likewise.
2793 (sync_nand<mode>): Likewise.
2794 (sync_old_nand<mode>): Likewise.
2795 (sync_new_nand<mode>): Likewise.
2796 (sync_lock_test_and_set<mode>): Likewise.
2797 (test_and_set_12): Likewise.
2798 (atomic_compare_and_swap<mode>): Likewise.
2799 (atomic_exchange<mode>_llsc): Likewise.
2800 (atomic_fetch_add<mode>_llsc): Likewise.
2801 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2802 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2803 (umips_save_restore_pattern_p): Likewise.
2804 (umips_load_store_pair_p): Likewise.
2805 (umips_output_load_store_pair): Likewise.
2806 (umips_movep_target_p): Likewise.
2807 (umips_12bit_offset_address_p): Likewise.
2808 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2809 (mips_base_mips16): Rename this...
2810 (mips_base_compression_flags): ...to this. Update all uses.
2811 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2812 (mips_mips16_decl_p): Delete.
2813 (mips_nomips16_decl_p): Delete.
2814 (mips_get_compress_on_flags): New function.
2815 (mips_get_compress_off_flags): New function.
2816 (mips_get_compress_mode): New function.
2817 (mips_get_compress_on_name): New function.
2818 (mips_get_compress_off_name): New function.
2819 (mips_insert_attributes): Support multiple compression types.
2820 (mips_merge_decl_attributes): Likewise.
2821 (umips_12bit_offset_address_p): New function.
2822 (mips_start_function_definition): Emit .set micromips directive.
2823 (mips_call_may_need_jalx_p): New function.
2824 (mips_function_ok_for_sibcall): Add microMIPS support.
2825 (mips_print_operand_punctuation): Support short delay slots and
2826 compact jumps.
2827 (umips_swm_mask, umips_swm_encoding): New.
2828 (umips_build_save_restore): New function.
2829 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2830 (was_mips16_p): Remove.
2831 (old_compression_mode): New.
2832 (mips_set_compression_mode): New function.
2833 (mips_set_current_function): Add microMIPS support.
2834 (mips_option_override): Likewise.
2835 (umips_save_restore_pattern_p): New function.
2836 (umips_output_save_restore): New function.
2837 (umips_load_store_pair_p_1): New function.
2838 (umips_load_store_pair_p): New function.
2839 (umips_output_load_store_pair_1): New function.
2840 (umips_output_load_store_pair): New function.
2841 (umips_movep_target_p) New function.
2842 (mips_prepare_pch_save): Add microMIPS support.
2843 * config/mips/mips.h (TARGET_COMPRESSION): New.
2844 (TARGET_CPU_CPP_BUILTINS): Update macro
2845 to use new compression flags and to support microMIPS.
2846 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2847 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2848 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2849 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2850 (ASM_SPEC): Support mmicromips and mno-micromips.
2851 (M16STORE_REG_P): New macro.
2852 (MIPS_CALL): Support TARGET_MICROMIPS.
2853 (MICROMIPS_J): New macro.
2854 (mips_base_mips16): Rename this...
2855 (mips_base_compression_flags): ...to this.
2856 (UMIPS_12BIT_OFFSET_P): New macro.
2857 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2858 (MULTILIB_DIRNAMES): Likewise.
2859
2860 2013-02-25 Tom de Vries <tom@codesourcery.com>
2861
2862 PR rtl-optimization/56131
2863 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2864 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2865 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2866
2867 2013-02-25 Tobias Burnus <burnus@net-b.de>
2868
2869 * doc/invoke.texi (-fsanitize=): Move from optimization
2870 to debugging options.
2871
2872 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2873
2874 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2875
2876 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2877 Alexander Monakov <amonakov@ispras.ru>
2878
2879 PR middle-end/56077
2880 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2881 flush pending lists also on non-jumps. Adjust comment.
2882
2883 2013-02-24 Catherine Moore <clm@codesourcery.com>
2884 Maciej W. Rozycki <macro@codesourcery.com>
2885 Tom de Vries <tom@codesourcery.com>
2886 Nathan Sidwell <nathan@codesourcery.com>
2887 Iain Sandoe <iain@codesourcery.com>
2888 Nathan Froyd <froydnj@codesourcery.com>
2889 Chao-ying Fu <fu@mips.com>
2890
2891 * doc/extend.texi: (micromips, nomicromips, nocompression):
2892 Document new function attributes.
2893 * doc/invoke.texi (minterlink-compressed, mmicromips,
2894 m14k, m14ke, m14kec): Document new options.
2895 (minterlink-mips16): Update documentation.
2896 * doc/md.texi (ZC, ZD): Document new constraints.
2897 * configure.ac (gcc_cv_as_micromips): Check if linker
2898 supports the .set micromips directive.
2899 * configure: Regenerate.
2900 * config.in: Regenerate.
2901 * config/mips/mips-tables.opt: Regenerate.
2902 * config/mips/micromips.md: New file.
2903 * constraints.md (ZC, AD): New constraints.
2904 * config/mips/predicates.md (movep_src_register): New predicate.
2905 (movep_src_operand): New predicate.
2906 (non_volatile_mem_operand): New predicate.
2907 * config/mips/mips.md (multimem): New type.
2908 (length): Differentiate between 17-bit and 18-bit branch offsets.
2909 (MOVEP1, MOVEP2): New mode iterator.
2910 (mov_<load>l): Use ZC constraint.
2911 (mov_<load>r): Likewise.
2912 (mov_<store>l): Likewise.
2913 (mov_<store>r): Likewise.
2914 (*branch_equality<mode>_inverted): Add microMIPS support.
2915 (*branch_equality<mode>): Likewise.
2916 (*jump_absolute): Likewise.
2917 (indirect_jump_<mode>): Likewise.
2918 (tablejump_<mode>): Likewise.
2919 (<optab>_internal): Likewise.
2920 (sibcall_internal): Likewise.
2921 (sibcall_value_internal): Likewise.
2922 (prefetch): Use constraint ZD.
2923 * config/mips/mips.opt (minterlink-compressed): New option.
2924 (minterlink-mips16): Now an alias for minterlink-compressed.
2925 (mmicromips): New option.
2926 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2927 (compare_and_swap_12): Likewise.
2928 (sync_add<mode>): Likewise.
2929 (sync_<optab>_12): Likewise.
2930 (sync_old_<optab>_12): Likewise.
2931 (sync_new_<optab>_12): Likewise.
2932 (sync_nand_12): Likewise.
2933 (sync_old_nand_12): Likewise.
2934 (sync_new_nand_12): Likewise.
2935 (sync_sub<mode>): Likewise.
2936 (sync_old_add<mode>): Likewise.
2937 (sync_old_sub<mode>): Likewise.
2938 (sync_new_add<mode>): Likewise.
2939 (sync_new_sub<mode>): Likewise.
2940 (sync_<optab><mode>): Likewise.
2941 (sync_old_<optab><mode>): Likewise.
2942 (sync_new_<optab><mode>): Likewise.
2943 (sync_nand<mode>): Likewise.
2944 (sync_old_nand<mode>): Likewise.
2945 (sync_new_nand<mode>): Likewise.
2946 (sync_lock_test_and_set<mode>): Likewise.
2947 (test_and_set_12): Likewise.
2948 (atomic_compare_and_swap<mode>): Likewise.
2949 (atomic_exchange<mode>_llsc): Likewise.
2950 (atomic_fetch_add<mode>_llsc): Likewise.
2951 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2952 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2953 (umips_save_restore_pattern_p): Likewise.
2954 (umips_load_store_pair_p): Likewise.
2955 (umips_output_load_store_pair): Likewise.
2956 (umips_movep_target_p): Likewise.
2957 (umips_12bit_offset_address_p): Likewise.
2958 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2959 (mips_base_mips16): Rename this...
2960 (mips_base_compression_flags): ...to this. Update all uses.
2961 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2962 (mips_mips16_decl_p): Delete.
2963 (mips_nomips16_decl_p): Delete.
2964 (mips_get_compress_on_flags): New function.
2965 (mips_get_compress_off_flags): New function.
2966 (mips_get_compress_mode): New function.
2967 (mips_get_compress_on_name): New function.
2968 (mips_get_compress_off_name): New function.
2969 (mips_insert_attributes): Support multiple compression types.
2970 (mips_merge_decl_attributes): Likewise.
2971 (umips_12bit_offset_address_p): New function.
2972 (mips_start_function_definition): Emit .set micromips directive.
2973 (mips_call_may_need_jalx_p): New function.
2974 (mips_function_ok_for_sibcall): Add microMIPS support.
2975 (mips_print_operand_punctuation): Support short delay slots and
2976 compact jumps.
2977 (umips_swm_mask, umips_swm_encoding): New.
2978 (umips_build_save_restore): New function.
2979 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2980 (was_mips16_p): Remove.
2981 (old_compression_mode): New.
2982 (mips_set_compression_mode): New function.
2983 (mips_set_current_function): Add microMIPS support.
2984 (mips_option_override): Likewise.
2985 (umips_save_restore_pattern_p): New function.
2986 (umips_output_save_restore): New function.
2987 (umips_load_store_pair_p_1): New function.
2988 (umips_load_store_pair_p): New function.
2989 (umips_output_load_store_pair_1): New function.
2990 (umips_output_load_store_pair): New function.
2991 (umips_movep_target_p) New function.
2992 (mips_prepare_pch_save): Add microMIPS support.
2993 * config/mips/mips.h (TARGET_COMPRESSION): New.
2994 (TARGET_CPU_CPP_BUILTINS): Update macro
2995 to use new compression flags and to support microMIPS.
2996 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2997 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2998 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2999 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3000 (ASM_SPEC): Support mmicromips and mno-micromips.
3001 (M16STORE_REG_P): New macro.
3002 (MIPS_CALL): Support TARGET_MICROMIPS.
3003 (MICROMIPS_J): New macro.
3004 (mips_base_mips16): Rename this...
3005 (mips_base_compression_flags): ...to this.
3006 (UMIPS_12BIT_OFFSET_P): New macro.
3007 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3008 (MULTILIB_DIRNAMES): Likewise.
3009
3010 2013-02-24 Jakub Jelinek <jakub@redhat.com>
3011
3012 PR target/52555
3013 * target-globals.c (save_target_globals): For init_reg_sets and
3014 target_reinit remporarily set this_fn_optabs to this_target_optabs.
3015
3016 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
3017
3018 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3019 * config/aarch64/t-aarch64
3020 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3021
3022 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
3023
3024 PR inline-asm/56148
3025 * lra-constraints.c (process_alt_operands): Reload operand
3026 conflicting with earlier clobber only if no more other conflicting
3027 operands.
3028
3029 2013-02-22 Jakub Jelinek <jakub@redhat.com>
3030
3031 PR sanitizer/56393
3032 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3033 if not linking a shared library.
3034
3035 2013-02-22 Seth LaForge <sethml@google.com>
3036
3037 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3038
3039 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
3040
3041 * config/arm/arm.md (split for extendsidi): Update condition.
3042 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3043 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3044 (qhs_zextenddi_cstr): Likewise.
3045
3046 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3047
3048 PR middle-end/56420
3049 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3050 avoid signed wrapping.
3051 (expand_mult): Handle properly multiplication by
3052 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
3053 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
3054 in the compiler if coeff is HOST_WIDE_INT_MIN.
3055 (expand_divmod): Don't make ext_op1 static, change it's type to
3056 uhwi. Avoid undefined behavior in -INTVAL (op1).
3057
3058 PR rtl-optimization/50339
3059 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3060 field.
3061 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3062 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3063 into splitting_ashiftrt field.
3064 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3065 ASHIFTRT.
3066 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3067 choices.
3068
3069 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
3070
3071 PR middle-end/56108
3072 * trans-mem.c (execute_tm_mark): Do not expand transactions that
3073 are sure to go irrevocable.
3074
3075 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
3076
3077 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3078 scalars are valid operands.
3079
3080 2013-02-21 Martin Jambor <mjambor@suse.cz>
3081
3082 PR tree-optimization/56310
3083 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3084 only matching indices and non-negative final offsets.
3085 (intersect_aggregates_with_edge): Pass src_idx to
3086 agg_replacements_to_vector. Pass src_idx insstead of index to
3087 intersect_with_agg_replacements.
3088
3089 2013-02-21 Martin Jambor <mjambor@suse.cz>
3090
3091 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3092 instead of hard-wired defaults.
3093
3094 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
3095
3096 * doc/invoke.texi (MIPS Options): Update documentation of the
3097 floating-point multiply-accumulate instruction restrictions.
3098
3099 2013-02-21 Kostya Serebryany <kcc@google.com>
3100
3101 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3102 asan_shadow_offset on x86_64 linux.
3103
3104 2013-02-21 Richard Biener <rguenther@suse.de>
3105
3106 PR tree-optimization/56415
3107 Revert
3108 2013-02-11 Richard Biener <rguenther@suse.de>
3109
3110 PR tree-optimization/56273
3111 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3112 first VRP run.
3113
3114 2013-02-21 Jakub Jelinek <jakub@redhat.com>
3115
3116 PR bootstrap/56258
3117 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3118 instead of @itemx.
3119
3120 PR inline-asm/56405
3121 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3122 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3123
3124 2013-02-20 Jan Hubicka <jh@suse.cz>
3125
3126 PR tree-optimization/56265
3127 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
3128 when target is referenced for first time.
3129
3130 2013-02-20 Richard Biener <rguenther@suse.de>
3131
3132 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3133 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3134 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3135 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3136 not return anything.
3137 (rename_ssa_copies): Do not remove unused locals.
3138 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
3139 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
3140 * passes.c (execute_function_todo): Do not schedule unused locals
3141 removal if cleanup_tree_cfg did something.
3142 * tree-ssa-live.c (remove_unused_locals): Dump statistics
3143 about the number of removed locals.
3144
3145 2013-02-20 Richard Biener <rguenther@suse.de>
3146
3147 PR tree-optimization/56398
3148 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
3149
3150 2013-02-20 Martin Jambor <mjambor@suse.cz>
3151
3152 PR tree-optimization/55334
3153 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3154 restricted pointers to arrays.
3155
3156 2013-02-20 Richard Biener <rguenther@suse.de>
3157 Jakub Jelinek <jakub@redhat.com>
3158
3159 PR tree-optimization/56396
3160 * tree-ssa-ccp.c (n_const_val): New static variable.
3161 (get_value): Return NULL for SSA names we don't have a lattice
3162 entry for.
3163 (ccp_initialize): Initialize n_const_val.
3164 * tree-ssa-copy.c (n_copy_of): New static variable.
3165 (init_copy_prop): Initialize n_copy_of.
3166 (get_value): Return NULL_TREE for SSA names we don't have a
3167 lattice entry for.
3168
3169 2013-02-20 Martin Jambor <mjambor@suse.cz>
3170
3171 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3172
3173 2013-02-20 Richard Biener <rguenther@suse.de>
3174
3175 * genpreds.c (write_lookup_constraint): Do not compare first
3176 letter of the constraint again.
3177
3178 2013-02-20 Richard Biener <rguenther@suse.de>
3179
3180 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3181 and ceil_log2.
3182 (get_use_iv_cost): Terminate hashtable walk when coming across
3183 an empty entry.
3184
3185 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
3186
3187 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3188 reassociation for avx2 targets.
3189
3190 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3191
3192 * config/microblaze/microblaze.c: microblaze_has_clz = 0
3193 Add version check for v8.10.a to enable microblaze_has_clz
3194 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3195 version and TARGET_PATTERN_COMPARE check
3196 * config/microblaze/microblaze.md: New clzsi2 instruction
3197
3198 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3199
3200 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3201 function before branching.
3202
3203 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3204
3205 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3206 DUMP_INSN_RTX_UID.
3207 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3208
3209 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
3210
3211 PR middle-end/55889
3212 * sel-sched.c: Include ira.h.
3213 (implicit_clobber_conflict_p): New function.
3214 (moveup_expr): Use it.
3215 * Makefile.in (sel-sched.o): Depend on ira.h.
3216
3217 2013-02-19 Richard Biener <rguenther@suse.de>
3218
3219 PR tree-optimization/56384
3220 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3221 (vn_hash_type): Split out from ...
3222 (vn_hash_constant_with_type): ... here.
3223 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3224 (vn_phi_eq): Compare types from vn_phi_s structure.
3225 (vn_phi_lookup): Populate vn_phi_s type.
3226 (vn_phi_insert): Likewise.
3227
3228 2013-02-19 Jakub Jelinek <jakub@redhat.com>
3229
3230 PR tree-optimization/56350
3231 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3232 if haven't found reduction or nested cycle operand, rather than
3233 asserting we must find it.
3234
3235 PR tree-optimization/56381
3236 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3237 to fold_build3.
3238
3239 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3240 Jakub Jelinek <jakub@redhat.com>
3241
3242 PR target/52555
3243 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3244 (swap_optab_enable): Same.
3245 (init_all_optabs): Use argument instead of global.
3246 * tree.h (struct tree_optimization_option): New field target_optabs.
3247 * expr.h (init_all_optabs): Add argument to prototype.
3248 (TREE_OPTIMIZATION_OPTABS): New.
3249 (save_optabs_if_changed): Protoize.
3250 * optabs.h: Declare this_fn_optabs.
3251 * optabs.c (save_optabs_if_changed): New.
3252 Declare this_fn_optabs.
3253 (init_optabs): Add argument to init_all_optabs() call.
3254 * function.c (invoke_set_current_function_hook): Handle per
3255 function optabs.
3256 * function.h (struct function): New field optabs.
3257 * config/mips/mips.c (mips_set_mips16_mode): Handle when
3258 optimization_current_node has changed.
3259 * target-globals.h (save_target_globals_default_opts): Protoize.
3260 * target-globals.c (save_target_globals_default_opts): New.
3261
3262 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3263
3264 PR target/56347
3265 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3266 registers %fr12 and %fr12R as call used.
3267
3268 PR target/56214
3269 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3270 and HImode, require all displacements to be an integer multiple of
3271 their mode size.
3272 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3273 only allow QImode and HImode when reload is in progress and strict is
3274 true. Likewise for symbolic addresses. Use base14_operand to check
3275 displacements in REG+BASE addresses.
3276
3277 2013-02-18 Richard Biener <rguenther@suse.de>
3278
3279 PR tree-optimization/56366
3280 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3281 handle sign-conversion of outer-loop initial induction value.
3282
3283 2013-02-18 Richard Biener <rguenther@suse.de>
3284
3285 PR middle-end/56349
3286 * cfghooks.c (merge_blocks): If we merge a latch into another
3287 block adjust references to it.
3288 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3289 (verify_loop_structure): Verify that a recorded latch is in fact
3290 a latch.
3291
3292 2013-02-18 Richard Biener <rguenther@suse.de>
3293
3294 PR tree-optimization/56321
3295 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3296 order SSA name release and virtual operand unlinking.
3297
3298 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3299
3300 * config/microblaze/microblaze.md (save_stack_block): Define.
3301 (restore_stack_block): Likewise.
3302
3303 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3304
3305 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3306 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3307 * config/microblaze/microblaze.c (microblaze_option_override):
3308 Bail out early for PIC modes when target does not support PIC.
3309
3310 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3311
3312 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3313 Replace with a microblaze version.
3314 (microblaze_trampoline_init): Adapt for microblaze.
3315 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3316 microblaze.
3317
3318 2013-02-16 Jakub Jelinek <jakub@redhat.com>
3319 Dodji Seketeli <dodji@redhat.com>
3320
3321 PR asan/56330
3322 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
3323 (instrument_mem_region_access): Do not forget to always put
3324 instrumentation of the of 'base' and 'base + len' in a "if (len !=
3325 0) statement, even for cases where either 'base' or 'base + len'
3326 are not instrumented -- because they have been previously
3327 instrumented. Simplify the logic by putting all the statements
3328 instrument 'base + len' inside a sequence, and then insert that
3329 sequence right before the current insertion point. Then, to
3330 instrument 'base + len', just get an iterator on that statement.
3331 And do not forget to update the pointer to iterator the function
3332 received as argument.
3333
3334 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
3335
3336 PR rtl-optimization/56348
3337 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3338
3339 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
3340
3341 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3342 (clean_graph_dump_file): Pass base to start_graph_dump.
3343
3344 2013-02-14 Richard Henderson <rth@redhat.com>
3345
3346 PR target/55941
3347 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3348
3349 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
3350
3351 * collect2-aix.h: Define F_LOADONLY.
3352
3353 2013-02-14 Richard Biener <rguenther@suse.de>
3354
3355 PR lto/50494
3356 * varasm.c (output_constant_def_1): Get the decl representing
3357 the constant as argument.
3358 (output_constant_def): Wrap output_constant_def_1.
3359 (make_decl_rtl): Use output_constant_def_1 with the decl
3360 representing the constant.
3361 (build_constant_desc): Optionally re-use a decl already
3362 representing the constant.
3363 (tree_output_constant_def): Adjust.
3364
3365 2013-02-14 Dodji Seketeli <dodji@redhat.com>
3366
3367 Fix an asan crash
3368 * asan.c (instrument_builtin_call): Really put the length of the
3369 second source argument into src1_len.
3370
3371 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3372
3373 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3374 argument. If it is false, don't create edge from then_bb to
3375 fallthru_bb.
3376 (insert_if_then_before_iter): Pass true to it.
3377 (build_check_stmt): Pass false to it.
3378 (transform_statements): Flush hash table only on extended basic
3379 block boundaries, rather than at the beginning of every bb.
3380 Don't flush hash table on nonfreeing_call_p calls.
3381 * tree-flow.h (nonfreeing_call_p): New prototype.
3382 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3383
3384 2013-02-13 David S. Miller <davem@davemloft.net>
3385
3386 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3387
3388 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
3389
3390 PR target/56184
3391 * ira.c (max_regno_before_ira): Move from ...
3392 (ira): ... here.
3393 (fix_reg_equiv_init): Use max_regno_before_ira instead of
3394 vec_safe_length.
3395
3396 2013-02-13 Jakub Jelinek <jakub@redhat.com>
3397
3398 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3399
3400 2013-02-13 Richard Biener <rguenther@suse.de>
3401
3402 PR lto/56295
3403 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3404 globals in MEM_REFs.
3405
3406 2013-02-13 Richard Biener <rguenther@suse.de>
3407
3408 * loop-init.c (loop_optimizer_init): Clear loop state when
3409 re-initializing preserved loops.
3410 * loop-unswitch.c (unswitch_single_loop): Return whether
3411 we unswitched the loop. Do not verify loop state here.
3412 (unswitch_loops): When we unswitched a loop discover new loops.
3413
3414 2013-02-13 Kostya Serebryany <kcc@google.com>
3415
3416 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3417 on x86_64 linux.
3418 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3419
3420 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3421
3422 Avoid instrumenting duplicated memory access in the same basic block
3423 * Makefile.in (asan.o): Add new dependency on hash-table.h
3424 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3425 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3426 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3427 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3428 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3429 (get_mem_ref_of_assignment): New functions.
3430 (get_mem_refs_of_builtin_call): Extract from
3431 instrument_builtin_call and tweak a little bit to make it fit with
3432 the new signature.
3433 (instrument_builtin_call): Use the new
3434 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3435 of is_gimple_builtin_call.
3436 (instrument_derefs, instrument_mem_region_access): Insert the
3437 instrumented memory reference into the hash table.
3438 (maybe_instrument_assignment): Renamed instrument_assignment into
3439 this, and change it to advance the iterator when instrumentation
3440 actually happened and return true in that case. This makes it
3441 homogeneous with maybe_instrument_assignment, and thus give a
3442 chance to callers to be more 'regular'.
3443 (transform_statements): Clear the memory reference hash table
3444 whenever we enter a new BB, when we cross a function call, or when
3445 we are done transforming statements. Use
3446 maybe_instrument_assignment instead of instrumentation. No more
3447 need to special case maybe_instrument_assignment and advance the
3448 iterator after calling it; it's now handled just like
3449 maybe_instrument_call. Update comment.
3450
3451 2013-02-13 Richard Biener <rguenther@suse.de>
3452
3453 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3454 Fix loop discovery code.
3455
3456 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3457
3458 PR inline-asm/56148
3459 * lra-constraints.c (process_alt_operands): Match early clobber
3460 operand with itself. Check conflicts with earlyclobber only if
3461 the operand is not reloaded. Prefer to reload conflicting operand
3462 if earlyclobber and matching operands are the same.
3463
3464 2013-02-12 Richard Biener <rguenther@suse.de>
3465
3466 PR lto/56297
3467 * lto-streamer-out.c (write_symbol): Do not output symbols
3468 for hard register variables.
3469
3470 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3471
3472 PR target/54222
3473 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3474 (umulsidi3_insn, mulsidi3_insn): New insns.
3475
3476 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3477
3478 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3479 (struct tune_params): Add vec_costs field.
3480 * config/arm/arm.c (arm_builtin_vectorization_cost)
3481 (arm_add_stmt_cost): New functions.
3482 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3483 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3484 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3485 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3486 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3487 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3488 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3489
3490 2013-02-12 Richard Biener <rguenther@suse.de>
3491
3492 PR lto/56295
3493 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3494 decls again if possible.
3495
3496 2013-02-12 Richard Biener <rguenther@suse.de>
3497
3498 PR middle-end/56288
3499 * tree-ssa.c (verify_ssa_name): Fix check, move
3500 SSA_NAME_IN_FREE_LIST check up.
3501
3502 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3503 Steven Bosscher <steven@gcc.gnu.org>
3504
3505 PR rtl-optimization/56151
3506 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3507 equal to op0 or op1, and last_insn pattern is CODE operation
3508 with MEM dest and one of the operands matches that MEM.
3509
3510 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3511
3512 * doc/extend.texi: Document Function Multiversioning and "default"
3513 parameter string to target attribute.
3514 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3515 target attribute parameter is "default".
3516 (ix86_compare_version_priority): Remove checks for target attribute.
3517 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3518 Remove check for target attribute equal to NULL. Add assert.
3519 (ix86_generate_version_dispatcher_body): Change error to sorry.
3520
3521 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3522 Jack Howarth <howarth@bromo.med.uc.edu>
3523 Patrick Marlier <patrick.marlier@gmail.com>
3524
3525 PR libitm/55693
3526 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3527 define ENDFILE_SPEC as TM_DESTRUCTOR.
3528 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3529
3530 2013-02-11 Alexander Potapenko <glider@google.com>
3531 Jack Howarth <howarth@bromo.med.uc.edu>
3532 Jakub Jelinek <jakub@redhat.com>
3533
3534 PR sanitizer/55617
3535 * config/darwin.c (cdtor_record): Rename ctor_record.
3536 (sort_cdtor_records): Rename sort_ctor_records.
3537 (finalize_dtors): New routine to sort destructors by
3538 priority before use in assemble_integer.
3539 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3540
3541 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3542
3543 PR rtl-optimization/56275
3544 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3545 offset is non-negative and less than cmode size before
3546 calling simplify_subreg.
3547
3548 2013-02-11 Richard Biener <rguenther@suse.de>
3549
3550 PR tree-optimization/56264
3551 * cfgloop.h (fix_loop_structure): Adjust prototype.
3552 * loop-init.c (fix_loop_structure): Return the number of
3553 newly discovered loops.
3554 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3555 are discovered, do a full loop-closed SSA rewrite.
3556
3557 2013-02-11 Richard Biener <rguenther@suse.de>
3558
3559 PR tree-optimization/56273
3560 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3561 first VRP run.
3562 (check_array_ref): Fix missing newline in dumps.
3563 (search_for_addr_array): Likewise.
3564
3565 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3566
3567 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3568
3569 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3570
3571 PR target/56256
3572 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3573
3574 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3575
3576 PR rtl-optimization/56246
3577 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3578 reload pseudo.
3579 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3580 constraints are satisfied.
3581
3582 2013-02-08 Jeff Law <law@redhat.com>
3583
3584 PR debug/53948
3585 * emit-rtl.c (reg_is_parm_p): New function.
3586 * regs.h (reg_is_parm_p): New prototype.
3587 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3588 callee-clobbered registers.
3589
3590 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3591
3592 PR target/56043
3593 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3594 If there is no implicit builtin declaration, just return NULL.
3595
3596 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3597
3598 * config/i386/sse.md (FMAMODEM): New mode iterator.
3599 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3600 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3601
3602 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3603
3604 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3605 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3606 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3607
3608 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3609
3610 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3611 (microblaze*-*-elf): Likewise.
3612 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3613 LINK_SPEC.
3614 * config/microblaze/microblaze-c.c: Add builtin defines for
3615 _LITTLE_ENDIAN and _BIG_ENDIAN.
3616 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3617 add to TARGET_DEFAULT flags.
3618 Expand ASM_SPEC and LINK_SPEC.
3619 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3620 * config/microblaze/microblaze.md: Update extendsidi2 and
3621 movdi_internal instructions to use low-order / high-order reg
3622 print_operands.
3623 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3624 options and inversemask / mask of LITTLE_ENDIAN.
3625 * config/microblaze/t-microblaze: Expand multilib options to
3626 include mlittle-endian (le) and update exceptions patterns.
3627
3628 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3629
3630 PR rtl-optimization/56195
3631 * lra-constraints.c (get_reload_reg): Don't reuse regs
3632 if they have smaller mode than requested, if they have
3633 wider mode than requested, try to return a SUBREG.
3634
3635 PR tree-optimization/56250
3636 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3637 if type is unsigned and code isn't MULT_EXPR.
3638
3639 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3640
3641 PR tree-optimization/56064
3642 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3643 bits according to mode.
3644 * fixed-value.h (fixed_from_double_int)
3645 (const_fixed_from_double_int): Adjust comments.
3646
3647 2013-02-08 Richard Biener <rguenther@suse.de>
3648
3649 PR lto/56231
3650 * lto-streamer.h (struct data_in): Remove current_file, current_line
3651 and current_col members.
3652 * lto-streamer-out.c (lto_output_location): Stream changed bits
3653 en-block for efficiency.
3654 * lto-streamer-in.c (clear_line_info): Remove.
3655 (lto_input_location): Cache current file, line and column
3656 globally via local statics. Read changed bits en-block.
3657 (input_function): Do not call clear_line_info.
3658 (lto_read_body): Likewise.
3659 (lto_input_toplevel_asms): Likewise.
3660
3661 2013-02-08 Michael Matz <matz@suse.de>
3662
3663 PR tree-optimization/52448
3664 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3665 (nt_call_phase): New static.
3666 (add_or_mark_expr): Only mark accesses with newer phase than any
3667 call seen.
3668 (nonfreeing_call_p): New.
3669 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3670 (nt_fini_block): Keep blocks marked as visited.
3671 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3672
3673 2013-02-08 Richard Biener <rguenther@suse.de>
3674
3675 * ira.c (ira): Free broken dominator information.
3676
3677 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3678
3679 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3680
3681 2013-02-08 Marek Polacek <polacek@redhat.com>
3682
3683 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3684
3685 2013-02-08 Richard Biener <rguenther@suse.de>
3686
3687 PR middle-end/56181
3688 * cfgloop.h (flow_loops_find): Adjust.
3689 (bb_loop_header_p): Declare.
3690 * cfgloop.c (bb_loop_header_p): New function split out from ...
3691 (flow_loops_find): ... here. Adjust function signature,
3692 support incremental loop structure update.
3693 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3694 * cfgloopmanip.c (fix_loop_structure): Move ...
3695 * loop-init.c (fix_loop_structure): ... here.
3696 (apply_loop_flags): Split out from ...
3697 (loop_optimizer_init): ... here.
3698 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3699 in incremental mode, only remove dead loops here.
3700
3701 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3702
3703 PR target/54222
3704 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3705 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3706 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3707 (*round<mode>3.libgcc): New insns for fixed-modes.
3708 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3709 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3710 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3711 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3712 implementations. Define to __builtin_avr_absFX,
3713 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3714 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3715 __builtin_avr_countlsFX, respectively.
3716 * config/avr/avr-c.c (target.h): Include it.
3717 (enum avr_builtin_id): New enum.
3718 (avr_resolve_overloaded_builtin): New static function.
3719 (avr_register_target_pragmas): Use it to set
3720 targetm.resolve_overloaded_builtin.
3721 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3722 tree nodes used by DEF_BUILTIN.
3723 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3724 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3725 <AVR_BUILTIN_xxBITS>: Same.
3726
3727 2013-02-08 Richard Biener <rguenther@suse.de>
3728
3729 * cfgloop.c (verify_loop_structure): Properly handle
3730 a loop exiting to another loop header.
3731 * ira-int.h (ira_loops): Remove.
3732 * ira.c (ira_loops): Remove.
3733 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3734 (do_reload): Use loop_optimizer_finalize.
3735 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3736 number_of_loops to access the loop tree.
3737 (more_one_region_p): Likewise.
3738 (finish_loop_tree_nodes): Likewise.
3739 (rebuild_regno_allocno_maps): Likewise.
3740 (mark_loops_for_removal): Likewise.
3741 (mark_all_loops_for_removal): Likewise.
3742 (remove_unnecessary_regions): Likewise.
3743 (ira_build): Likewise.
3744 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3745
3746 2013-02-08 Richard Biener <rguenther@suse.de>
3747
3748 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3749 * ipa-pure-const.c (analyze_function): Avoid calling
3750 mark_irreducible_loops twice.
3751 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3752
3753 2013-02-07 David S. Miller <davem@davemloft.net>
3754
3755 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3756 on 'reg'.
3757 * var-tracking.c (vt_add_function_parameter): Test the presence of
3758 HAVE_window_save properly and do not remap argument registers when
3759 we have a leaf function.
3760
3761 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3762
3763 PR bootstrap/56227
3764 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3765 instead of "ll".
3766 * config/i386/i386.c (ix86_print_operand): Ditto.
3767
3768 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3769
3770 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3771
3772 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3773
3774 PR rtl-optimization/56225
3775 * lra-constraints.c (process_alt_operands): Check that reload hard
3776 reg can hold value for strict_low_part.
3777
3778 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3779
3780 PR debug/56154
3781 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3782 dwarf2out_end_function.
3783 (in_first_function_p, maybe_at_text_label_p,
3784 first_loclabel_num_not_at_text_label): New variables.
3785 (dwarf2out_var_location): In the first function find out
3786 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3787 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3788 functions.
3789
3790 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3791
3792 PR rtl-optimization/56178
3793 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3794 SUBREG of a register. Tidy up related block of code.
3795 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3796 note if the source is a register or a SUBREG of a register.
3797
3798 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3799
3800 PR target/56228
3801 * config/rs6000/rs6000.md (ptrm): New mode attr.
3802 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3803 call_value_indirect_aix<pttrsize>,
3804 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3805 m in constraints.
3806
3807 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3808
3809 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3810 if -bnortl. Convert to strcmp and strncmp.
3811
3812 2013-02-07 Alan Modra <amodra@gmail.com>
3813
3814 PR target/54009
3815 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3816 addresses won't wrap when offsetting.
3817 (rs6000_secondary_reload): Provide secondary reloads needed for
3818 wrapping LO_SUM addresses.
3819
3820 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3821
3822 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3823 MACH, just __MACH__.
3824
3825 2013-02-06 Richard Biener <rguenther@suse.de>
3826
3827 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3828 instead of calling fix_loop_structure.
3829
3830 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3831
3832 PR middle-end/56217
3833 * omp-low.c (use_pointer_for_field): Return false if
3834 lower_send_shared_vars doesn't generate any copy-out code.
3835
3836 2013-02-06 Tom de Vries <tom@codesourcery.com>
3837
3838 PR rtl-optimization/56131
3839 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3840 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3841 of the label is NULL. Add comment.
3842
3843 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3844
3845 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3846
3847 PR sanitizer/55374
3848 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3849 (STATIC_LIBTSAN_LIBS): Likewise.
3850 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3851 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3852 is defined, don't add anything else beyond that.
3853 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3854 (LINK_COMMAND_SPEC): Use them.
3855
3856 PR tree-optimization/56205
3857 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3858 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3859 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3860
3861 2013-02-05 Richard Biener <rguenther@suse.de>
3862
3863 PR tree-optimization/53342
3864 PR tree-optimization/53185
3865 * tree-vectorizer.h (vect_check_strided_load): Remove.
3866 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3867 not disallow peeling for vectorized strided loads.
3868 (vect_check_strided_load): Make static and simplify.
3869 (vect_analyze_data_refs): Adjust.
3870 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3871 correctly when vectorizing strided loads.
3872
3873 2013-02-05 Richard Biener <rguenther@suse.de>
3874
3875 * doc/install.texi: Refer to ISL, not PPL.
3876
3877 2013-02-05 Jan Hubicka <jh@suse.cz>
3878
3879 PR tree-optimization/55789
3880 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3881
3882 2013-02-05 Jan Hubicka <jh@suse.cz>
3883
3884 PR tree-optimization/55789
3885 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3886 the dead call anyway.
3887
3888 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3889
3890 PR sanitizer/55374
3891 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3892
3893 2013-02-04 Alexander Potapenko <glider@google.com>
3894 Jack Howarth <howarth@bromo.med.uc.edu>
3895 Jakub Jelinek <jakub@redhat.com>
3896
3897 PR sanitizer/55617
3898 * config/darwin.c (sort_ctor_records): Stabilized qsort
3899 on constructor priority by using original position.
3900 (finalize_ctors): New routine to sort constructors by
3901 priority before use in assemble_integer.
3902 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3903
3904 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3905
3906 PR libstdc++/54314
3907 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3908 about visibility on artificial decls.
3909 * config/sol2.c (solaris_assemble_visibility): Likewise.
3910
3911 2013-02-04 Kai Tietz <ktietz@redhat.com>
3912
3913 PR target/56186
3914 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3915 argument and improve checking of return-argument types for 16-byte
3916 modes.
3917 (ix86_function_value_1): Add additional valtype argument on call
3918 of function_value_64.
3919 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3920 handling infunction_value_64 function.
3921
3922 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3923
3924 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3925
3926 2013-02-04 Richard Biener <rguenther@suse.de>
3927
3928 PR tree-optimization/56188
3929 * tree-ssa-structalias.c (label_visit): Consider case with
3930 initially non-empty points-to set.
3931 (perform_var_substitution): Dump node mapping and clean up.
3932
3933 2013-02-04 Richard Guenther <rguenther@suse.de>
3934
3935 PR lto/56168
3936 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3937 node prevail as last resort.
3938 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3939 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3940
3941 2013-02-04 Richard Biener <rguenther@suse.de>
3942
3943 PR tree-optimization/56113
3944 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3945 Merge into ...
3946 (equiv_class_lookup_or_add): ... this.
3947 (label_visit): Adjust and fix error in previous patch.
3948 (perform_var_substitution): Adjust.
3949
3950 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3951
3952 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3953 * config/sh/sh4-300.md: Likewise.
3954 * config/sh/sh4a.md: Likewise.
3955 * config/sh/constraints.md: Likewise.
3956 * config/sh/sh.md: Likewise.
3957 * config/sh/netbsd-elf.h: Likewise.
3958 * config/sh/predicates.md: Likewise.
3959 * config/sh/sh-protos.h: Likewise.
3960 * config/sh/ushmedia.h: Likewise.
3961 * config/sh/linux.h: Likewise.
3962 * config/sh/sh.c: Likewise.
3963 * config/sh/superh.h: Likewise.
3964 * config/sh/elf.h: Likewise.
3965 * config/sh/sh4.md: Likewise.
3966 * config/sh/sh.h: Likewise.
3967
3968 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3969
3970 * config/pa/constraints.md: Adjust unused letters. Change "T"
3971 constraint to match_test floating_point_store_memory_operand().
3972 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3973 (base14_operand): New.
3974 (floating_point_store_memory_operand): New.
3975 (integer_store_memory_operand): Revise to use base14_operand and
3976 reg_plus_base_memory_operand.
3977 (move_dest_operand): Allow symbolic_memory_operands.
3978 (symbolic_memory_operand): Check for LO_SOM.
3979 (symbolic_operand): Change default case to break.
3980 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3981 CONST_DOUBLE values to be reloaded by putting them into memory when
3982 the destination is a floating point register.
3983 (movdf): Remove code to handle CONST_DOUBLE.
3984 (movsf): Likewise.
3985 (reload_indf_r1): New.
3986 (reload_insf_r1): New.
3987 Consistently use "Q" and "T" constraints with integer and floating
3988 point move instructions, respectively.
3989 (movdi): Remove FAIL.
3990 Change predicate for source operand unamed DImode move from
3991 general_operand to move_src_operand.
3992 (umulsidi3): Change predicate for destination operand to
3993 register_operand.
3994 Likewise for similar unamed patterns.
3995 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3996 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3997 (hppa_legitimize_address): Simplify mask calculation.
3998 (pa_emit_move_sequence): Revised handling of secondary reloads from
3999 REG+D addresses for floating point loads and stores. Directly handle
4000 loading CONST0_RTX (mode) to a floating point register.
4001 (pa_secondary_reload): Handle reloading DF and SFmode constant values
4002 to floating point registers. Don't restrict secondary reloads to
4003 floating point registers to integer modes. Revise some comments and
4004 cleanup some code.
4005 (TARGET_LEGITIMATE_ADDRESS_P): Define.
4006 (pa_legitimate_address_p): New.
4007 (pa_legitimize_reload_address): New.
4008 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4009 (STRICT_REG_OK_FOR_BASE_P): New.
4010 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
4011 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4012
4013 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
4014 Andrew Dixie <andrewd@gentrack.com>
4015
4016 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4017 flag set.
4018
4019 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
4020
4021 * expmed.c (extract_bit_field_1): Pass the full width of the
4022 structure to get_best_reg_extraction_insn.
4023
4024 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4025
4026 PR target/54601
4027 * configure.ac (use_cxa_atexit): Add AIX.
4028 * configure: Regenerate.
4029
4030 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4031
4032 2013-02-01 Jakub Jelinek <jakub@redhat.com>
4033
4034 PR debug/54793
4035 * final.c (need_profile_function): New variable.
4036 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4037 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4038 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4039 notes, targetm.asm_out.function_prologue doesn't emit anything,
4040 HAVE_prologue and profiler should be emitted before prologue,
4041 set need_profile_function instead of emitting it.
4042 (final_scan_insn): If need_profile_function, emit
4043 profile_function on the first NOTE_INSN_BASIC_BLOCK or
4044 NOTE_INSN_FUNCTION_BEG note.
4045
4046 2013-02-01 Richard Henderson <rth@redhat.com>
4047
4048 * config/rs6000/rs6000.md (smulditi3): New.
4049 (umulditi3): New.
4050
4051 * config/alpha/alpha.md (umulditi3): New.
4052
4053 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
4054
4055 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4056 (ASM_OUTPUT_ALIGNED_LOCAL): New.
4057
4058 2013-02-01 Richard Biener <rguenther@suse.de>
4059
4060 PR tree-optimization/56113
4061 * tree-ssa-structalias.c (label_visit): Reduce work for
4062 single-predecessor nodes.
4063
4064 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
4065
4066 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4067 range isn't testing for zero.
4068
4069 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
4070
4071 PR middle-end/56113
4072 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4073
4074 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
4075 Nick Clifton <nickc@redhat.com>
4076
4077 * config/v850/constraints.md (Q): Define as a memory constraint.
4078 * config/v850/predicates.md (label_ref_operand): New predicate.
4079 (e3v5_shift_operand): New predicate.
4080 (ior_operator): New predicate.
4081 * config/v850/t-v850: Add e3v5 multilib.
4082 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4083 (v850_gen_movdi): Prototype.
4084 * config/v850/v850.c: Add support for e3v5 architecture.
4085 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4086 TARGET_V850E_UP.
4087 (construct_save_jarl): Add e3v5 long JARL support.
4088 (v850_adjust_insn_length): New function. Adjust length of call
4089 insns when using e3v5 instructions.
4090 (v850_gen_movdi): New function: Generate instructions to move a
4091 DImode value.
4092 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4093 (CPP_SPEC): Define __v850e3v5__ as appropriate.
4094 (TARGET_USE_FPU): Enable for e3v5.
4095 (CONST_OK_FOR_W): New macro.
4096 (ADJUST_INSN_LENGTH): Define.
4097 * config/v850/v850.md (UNSPEC_LOOP): Define.
4098 (attr cpu): Add v850e3v5.
4099 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4100 (movdi): New pattern.
4101 (movdi_internal): New pattern.
4102 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4103 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4104 (cstoresf4): Likewise.
4105 (cstoredf4): Likewise.
4106 (insv): New pattern.
4107 (rotlso3_a): New pattern.
4108 (rotlsi3_b): New pattern
4109 (rotlsi3_v850e3v5): New pattern.
4110 (doloop_begin): New pattern.
4111 (fix_loop_counter): New pattern.
4112 (doloop_end): New pattern.
4113 (branch_normal): Add e3v5 long branch support.
4114 (branch_invert): Likewise.
4115 (branch_z_normal): Likewise.
4116 (branch_z_invert): Likewise.
4117 (branch_nz_normal): Likewise.
4118 (branch_nz_invert): Likewise.
4119 (call_internal_short): Add e3v5 register-indirect JARL support.
4120 (call_internal_long): Likewise.
4121 (call_value_internal_short): Likewise.
4122 (call_value_internal_long): Likewise.
4123 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4124 (mloop): New option.
4125 * config.gcc: Add support for configuring v840e3v5 target.
4126 * doc/invoke.texi: Document new v850 specific command line options.
4127
4128 2013-01-31 Paul Koning <ni1d@arrl.net>
4129
4130 PR debug/55059
4131 PR debug/54508
4132 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4133 children if parent is a class.
4134 (prune_unused_types_prune): Don't add DW_AT_declaration.
4135
4136 2013-01-31 Richard Biener <rguenther@suse.de>
4137
4138 PR tree-optimization/56157
4139 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4140 match up operand with SLP child.
4141
4142 2013-01-31 Jason Merrill <jason@redhat.com>
4143
4144 PR debug/54410
4145 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4146 parameters the first time.
4147 (gen_scheduled_generic_parms_dies): Check completeness here.
4148
4149 2013-01-31 Richard Biener <rguenther@suse.de>
4150
4151 PR middle-end/53073
4152 * common.opt (faggressive-loop-optimizations): New flag,
4153 enabled by default.
4154 * doc/invoke.texi (faggressive-loop-optimizations): Document.
4155 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4156 infer_loop_bounds_from_undefined by it.
4157
4158 2013-01-31 Richard Biener <rguenther@suse.de>
4159
4160 PR tree-optimization/56150
4161 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4162 visit virtual operands.
4163 (find_uses_to_rename_bb): Likewise.
4164
4165 2013-01-31 Richard Biener <rguenther@suse.de>
4166
4167 PR tree-optimization/56150
4168 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4169 mixed store non-store stmts.
4170
4171 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4172
4173 PR sanitizer/55374
4174 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4175 LIBASAN_EARLY_SPEC is defined.
4176 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4177 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4178 before %o.
4179 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4180
4181 PR c++/55742
4182 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4183 invalid args instead of ICEing on it.
4184 (ix86_valid_target_attribute_tree): Return error_mark_node if
4185 ix86_valid_target_attribute_inner_p failed.
4186 (ix86_valid_target_attribute_p): Return false only if
4187 ix86_valid_target_attribute_tree returned error_mark_node. Allow
4188 target("default") attribute.
4189 (sorted_attr_string): Change argument from const char * to tree,
4190 merge in all target attribute arguments rather than just one.
4191 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
4192 instead of free. Avoid using strcat.
4193 (ix86_mangle_function_version_assembler_name): Mangle
4194 target("default") as if no target attribute is present. Adjust
4195 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
4196 instead of xmalloc and XDELETEVEC instead of free.
4197 (ix86_function_versions): Don't return true if one of the decls
4198 doesn't have target attribute. If they don't and one of the decls
4199 is DECL_FUNCTION_VERSIONED, report an error. Adjust
4200 sorted_attr_string caller. Use XDELETEVEC instead of free.
4201 (ix86_supports_function_versions): Remove.
4202 (make_name): Fix up formatting.
4203 (make_dispatcher_decl): Remove resolver_name and its initialization.
4204 Avoid leaking memory.
4205 (is_function_default_version): Return true if there is
4206 target("default") attribute rather than no target attribute at all.
4207 (make_resolver_func): Avoid leaking memory.
4208 (ix86_generate_version_dispatcher_body): Likewise.
4209 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4210 * target.def (supports_function_versions): Remove.
4211 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4212 * doc/tm.texi: Regenerated.
4213
4214 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
4215
4216 PR rtl-optimization/56144
4217 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4218 for values with side effects.
4219
4220 2013-01-30 Richard Biener <rguenther@suse.de>
4221
4222 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4223 (sparseset_pop): Likewise.
4224 * cfganal.c (compute_idf): Likewise. Increase work-stack size
4225 to be able to use quick_push in the worker loop.
4226
4227 2013-01-30 Marek Polacek <polacek@redhat.com>
4228
4229 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4230
4231 2013-01-30 Richard Biener <rguenther@suse.de>
4232
4233 PR lto/56147
4234 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4235
4236 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
4237
4238 PR tree-optimization/56064
4239 * fixed-value.c (fixed_from_double_int): New function.
4240 * fixed-value.h (fixed_from_double_int): New prototype.
4241 (const_fixed_from_double_int): New static inline function.
4242 * fold-const.c (native_interpret_fixed): New static function.
4243 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4244 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4245 (native_encode_fixed): New static function.
4246 (native_encode_expr) <FIXED_CST>: Use it.
4247 (native_interpret_int): Move double_int worker code to...
4248 * double-int.c (double_int::from_buffer): ...this new static method.
4249 * double-int.h (double_int::from_buffer): Prototype it.
4250
4251 2013-01-30 Richard Biener <rguenther@suse.de>
4252
4253 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4254 New pointer-map and obstack.
4255 (init_alias_vars): Allocate pointer-map and obstack.
4256 (delete_points_to_sets): Free them.
4257 (find_what_var_points_to): Cache result.
4258 (find_what_p_points_to): Adjust for changed interface of
4259 find_what_var_points_to.
4260 (compute_points_to_sets): Likewise.
4261 (ipa_pta_execute): Likewise.
4262
4263 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4264
4265 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4266 * configure: Regenerate.
4267 * config.in: Regenerate.
4268 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4269 #nobits/#progbits if supported.
4270
4271 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
4272
4273 PR target/56121
4274 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4275 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4276 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4277
4278 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4279
4280 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4281 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4282
4283 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4284
4285 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4286 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4287
4288 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4289
4290 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4291 declaration.
4292 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4293 * config/arm/cortex-a7.md: New bypasses using
4294 arm_mac_accumulator_is_result.
4295
4296 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4297
4298 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
4299 (cortex_a7_neon_mla): Likewise.
4300 (cortex_a7_fpfmad): New reservation.
4301 (cortex_a7_fpmacs): Use ffmas and update required units.
4302 (cortex_a7_fpmuld): Update required units and latency.
4303 (cortex_a7_fpmacd): Likewise.
4304 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4305 (cortex_a7_neon). Likewise.
4306 (bypass) Update participating units.
4307
4308 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
4309
4310 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4311 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4312 from fmac to ffma.
4313 * config/arm/vfp11.md (vfp_farith): Use ffmas.
4314 (vfp_fmul): Use ffmad.
4315 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4316 (cortex_r4_fmacd): Use ffmad.
4317 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4318 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
4319 (cortex_a9_fmacd): Use ffmad.
4320 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4321 (cortex_a8_vfp_macd): Use ffmad.
4322 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4323 (cortex_a5_fpmacd): Use ffmad.
4324 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4325 (cortex_a15_vfp_macd): Use ffmad.
4326 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4327
4328 2013-01-29 Jason Merrill <jason@redhat.com>
4329
4330 PR libstdc++/54314
4331 * varasm.c (default_assemble_visibility): Don't warn about
4332 visibility on artificial decls.
4333
4334 2013-01-29 Richard Biener <rguenther@suse.de>
4335
4336 PR tree-optimization/56113
4337 * tree-ssa-structalias.c (equiv_class_lookup): Also return
4338 the bitmap leader.
4339 (label_visit): Free duplicate bitmaps and record the leader instead.
4340 (perform_var_substitution): Adjust.
4341
4342 2013-01-29 Richard Biener <rguenther@suse.de>
4343
4344 PR tree-optimization/55270
4345 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4346 the CFG, schedule loops for fixup.
4347
4348 2013-01-29 Nick Clifton <nickc@redhat.com>
4349
4350 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4351 SP_REG.
4352
4353 2013-01-28 Leif Ekblad <leif@rdos.net>
4354
4355 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4356 * config/i386/i386.h (TARGET_RDOS): New macro.
4357 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4358 * config/i386/i386.c (ix86_option_override_internal): For 64bit
4359 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4360 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4361 DEFAULT_LARGE_SECTION_THRESHOLD.
4362 * config/i386/i386.md (R14_REG, R15_REG): New constants.
4363 * config/i386/rdos.h: New file.
4364 * config/i386/rdos64.h: New file.
4365
4366 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
4367
4368 PR other/54814
4369 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4370 TEST_HARD_REG_BIT.
4371
4372 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4373
4374 PR rtl-optimization/56117
4375 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4376 call cselib_lookup_from_insn on the MEM before calling
4377 add_insn_mem_dependence.
4378
4379 2013-01-28 Richard Biener <rguenther@suse.de>
4380
4381 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4382 to a stmt that didn't have one.
4383 (copy_phis_for_bb): Likewise for PHI arguments.
4384 (copy_debug_stmt): Likewise for debug stmts.
4385
4386 2013-01-28 Richard Biener <rguenther@suse.de>
4387
4388 PR tree-optimization/56034
4389 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4390 (partition_builtin_p): Adjust.
4391 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
4392 it is the last partition.
4393 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4394 up the vertex for the definition.
4395 (classify_partition): Classify whether a partition is a
4396 PKIND_REDUCTION, thus has uses outside of the loop.
4397 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4398 Merge all PKIND_REDUCTION partitions into the last partition.
4399 (tree_loop_distribution): Seed partitions from reductions as well.
4400
4401 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4402
4403 PR tree-optimization/56125
4404 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4405 pow(x,c) into sqrt(x) * powi(x, n/2) or
4406 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4407 optimizing for size.
4408 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4409 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4410 integer.
4411
4412 PR tree-optimization/56094
4413 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4414 to UNKNOWN_LOCATION while gimplifying expr.
4415
4416 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4417
4418 PR target/56114
4419 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4420 operand 0 in movabs insn template for -masm=intel asm alternative.
4421 (*movabs<mode>_2): Ditto for operand 1.
4422
4423 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4424
4425 PR target/54663
4426 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4427 of microblaze-c.o
4428
4429 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4430
4431 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4432 tm_file.
4433
4434 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4435
4436 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4437 Undef to avoid warning.
4438
4439 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4440
4441 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4442 * configure: Regenerate.
4443
4444 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4445
4446 PR tree-optimization/56098
4447 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4448 for stmts with volatile ops.
4449 (cond_store_replacement): Don't optimize if assign has volatile ops.
4450 (cond_if_else_store_replacement_1): Don't optimize if either
4451 then_assign or else_assign have volatile ops.
4452 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4453 volatile ops.
4454
4455 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4456
4457 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4458
4459 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4460
4461 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4462 missing ':' in asm example.
4463
4464 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4465
4466 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4467 entries into lane and laneq entries.
4468 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4469 Remove AdvSIMD scalar modes.
4470 (aarch64_sq<r>dmulh_laneq<mode>): New.
4471 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4472 modes.
4473 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4474 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4475 * config/aarch64/iterators.md (VCOND): New.
4476 (VCONQ): New.
4477
4478 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4479
4480 PR target/54222
4481 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4482 Add NULL LIBNAME argument to existing definitions.
4483 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4484 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4485 * config/avr/avr.c (DEF_BUILTIN): Same.
4486 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4487 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4488 implementation is available (DECL_ASSEMBLER_NAME is set).
4489 (avr_fold_absfx): New static function.
4490 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4491 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4492 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4493 AVR_BUILTIN_ABSLLK.
4494 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4495 (abshk, absk, abslk, absllk): Provide as static inline functions.
4496
4497 2013-01-25 Marek Polacek <polacek@redhat.com>
4498
4499 PR tree-optimization/56035
4500 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4501
4502 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4503
4504 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4505 (*movtf_internal_rex64): Add (!o,C) alternative
4506 (*movxf_internal_rex64): Ditto.
4507 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4508
4509 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4510
4511 * doc/invoke.texi: fix typo.
4512 * doc/objc.texi: fix typo.
4513
4514 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4515
4516 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4517 for the first two alternatives.
4518
4519 2013-01-24 Diego Novillo <dnovillo@google.com>
4520
4521 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4522 (ggc-zone.o): Remove.
4523 * configure.ac: Remove option --with-gc.
4524 * configure: Re-generate.
4525 * doc/install.texi: Remove documentation for --with-gc.
4526 * gengtype.c (write_enum_defn): Remove. Update all users.
4527 (write_Types_process_field): Remove generation of gt_e_* argument.
4528 (output_type_enum): Remove. Update all users.
4529 (write_enum_defn): Remove. Update all users.
4530 (enum alloc_zone): Remove. Update all users.
4531 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4532 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4533 Update all callers.
4534 (struct ptr_data): Remove field TYPE. Update all users.
4535 (gt_pch_note_object): Remove argument TYPE. Update all users.
4536 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4537 Update all users.
4538 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4539 (struct alloc_zone): Remove.
4540 (ggc_internal_alloc_zone_stat): Remove.
4541 (ggc_internal_cleared_alloc_zone_stat): Remove.
4542 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4543 (ggc_pch_count_object): Remove last argument. Update all users.
4544 (ggc_pch_alloc_object): Remove last argument. Update all users.
4545 (struct alloc_zone): Remove.
4546 * ggc-zone.c: Remove.
4547 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4548 (struct alloc_zone): Remove.
4549 (ggc_alloc_typed_stat): Remove.
4550 (ggc_alloc_typed): Remove.
4551 (ggc_splay_alloc): Remove first argument.
4552 (rtl_zone): Remove. Update all users.
4553 (tree_zone): Remove. Update all users.
4554 (tree_id_zone): Remove. Update all users.
4555 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4556 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4557 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4558 * tree-ssanames.c: Remove references to zone allocator in comments.
4559
4560 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4561
4562 * config/avr/avr.c (avr_out_fract): Make register numbers that
4563 might be outside of source operand signed.
4564
4565 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4566
4567 * config/i386/constraints.md (Yf): New constraint.
4568 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4569 of f constraint to conditionaly disable x87 register preferences.
4570 (*movdf_internal): Ditto.
4571 (*movsf_internal): Ditto.
4572
4573 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4574
4575 PR inline-asm/55934
4576 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4577 that have operands with impossible constraints.
4578 Add a FIXME for a speed-up opportunity.
4579 * lra-constraints.c (process_alt_operands): Verify that a class
4580 selected from constraints on asms is valid for the operand mode.
4581 (curr_insn_transform): Remove incorrect comment.
4582
4583 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4584
4585 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4586 TOC operand is a valid symbol ref in the constant pool.
4587
4588 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4589
4590 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4591
4592 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4593
4594 PR target/54222
4595 * config/avr/stdfix.h: New file.
4596 * t-avr (stdfix-gcc.h): New rule to build it.
4597 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4598
4599 2013-01-23 Kostya Serebryany <kcc@google.com>
4600
4601 * config/darwin.h: remove dependency on
4602 CoreFoundation (asan on Mac OS).
4603
4604 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4605
4606 PR target/49069
4607 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4608 instead of cmpdi_operand for first comparison operand.
4609 Don't assert that comparison operands aren't both constants.
4610
4611 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4612
4613 * doc/install.texi (Downloading the Source): Update references to
4614 downloading separate components.
4615
4616 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4617
4618 * doc/extend.texi (__int128): Improve grammar.
4619
4620 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4621
4622 PR target/56028
4623 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4624 alternative to (o,r).
4625 (*movdi_internal_rex64): Remove (!o,n) alternative.
4626 (DImode immediate->memory splitter): Remove.
4627 (DImode immediate->memory peephole2): Remove.
4628 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4629 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4630 alternative to (!o,*r).
4631 (*movtf_internal_sse): New pattern.
4632 (*movxf_internal_rex64): New pattern.
4633 (*movxf_internal): Disable for TARGET_64BIT.
4634 (*movdf_internal_rex64): Remove (!o,F) alternative.
4635
4636 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4637
4638 PR middle-end/56074
4639 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4640 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4641 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4642 stmt locations where LOCATION_LOCUS of the stmt location is
4643 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4644
4645 PR target/55686
4646 * config/i386/i386.md (UNSPEC_STOS): New.
4647 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4648 *strsetqi_1): Add UNSPEC_STOS.
4649
4650 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4651
4652 PR c++/56067
4653 * doc/invoke.texi: Remove left over -Wsynth example.
4654
4655 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4656
4657 PR tree-optimization/56051
4658 * fold-const.c (fold_binary_loc): Don't fold
4659 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4660 a narrowing conversion, or widening conversion from signed
4661 to unsigned.
4662
4663 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4664
4665 PR rtl-optimization/56023
4666 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4667 dependent on debug instruction.
4668
4669 2013-01-21 Martin Jambor <mjambor@suse.cz>
4670
4671 PR middle-end/56022
4672 * function.c (allocate_struct_function): Call
4673 invoke_set_current_function_hook earlier.
4674
4675 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4676
4677 * reload1.c (init_reload): Only initialize reload_obstack
4678 during the first call.
4679
4680 2013-01-21 Marek Polacek <polacek@redhat.com>
4681
4682 * cfgloop.c (verify_loop_structure): Fix up grammar.
4683
4684 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4685
4686 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4687 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4688
4689 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4690
4691 PR target/56058
4692 * config/arm/marvell-pj4.md: Update copyright year.
4693 Fix up use of alu to alu_reg and simple_alu_imm.
4694
4695 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4696
4697 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4698
4699 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4700
4701 PR target/55433
4702 * lra-constraints.c (curr_insn_transform): Don't reuse original
4703 insn for secondary memory move when memory mode should be different.
4704
4705 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4706
4707 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4708 atomic_storedi_1): New patterns.
4709
4710 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4711
4712 btver2 pipeline descriptions.
4713 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4714 descriptions.
4715 * config/i386/i386.md (btver2_decode): New type attributes.
4716 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4717 type attributes.
4718 * config/i386/btver2.md: New file describing btver2 pipelines.
4719
4720 2013-01-19 Andrew Pinski <apinski@cavium.com>
4721
4722 PR tree-optimization/52631
4723 * tree-ssa-sccvn (visit_use): Before looking up the original
4724 statement, try looking up the simplified expression.
4725
4726 2013-01-19 Anthony Green <green@moxielogic.com>
4727
4728 * config/moxie/moxie.c (moxie_expand_prologue): Set
4729 current_function_static_stack_size.
4730
4731 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4732
4733 PR tree-optimization/56029
4734 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4735 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4736
4737 2013-01-18 Sharad Singhai <singhai@google.com>
4738
4739 PR tree-optimization/55995
4740 * dumpfile.c (dump_loc): Print location only if available.
4741 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4742
4743 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4744
4745 PR target/55433
4746 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4747 secondary memory move.
4748 (inherit_reload_reg): Use rclass instead of cl for
4749 check_secondary_memory_needed_p.
4750
4751 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4752
4753 PR middle-end/56015
4754 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4755 the case where writing real complex part of target modifies op1.
4756
4757 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4758
4759 * config/aarch64/aarch64-simd.md
4760 (aarch64_vcond_internal<mode>): Handle unordered cases.
4761 * config/aarch64/iterators.md (v_cmp_result): New.
4762
4763 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4764 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4765
4766 * config/arm/marvell-pj4.md: New file.
4767 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4768 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4769 (generic_vfp): Likewise.
4770 * config/arm/arm-cores.def: Add marvell-pj4.
4771 * config/arm/arm-tune.md: Regenerate.
4772 * config/arm/arm-tables.opt: Regenerate.
4773 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4774 * doc/invoke.texi: Document marvell-pj4.
4775
4776 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4777
4778 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4779
4780 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4781
4782 PR debug/54114
4783 PR debug/54402
4784 PR debug/49888
4785 * var-tracking.c (negative_power_of_two_p): New.
4786 (global_get_addr_cache, local_get_addr_cache): New.
4787 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4788 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4789 heading comment.
4790 (vt_stack_offset_p): Remove.
4791 (vt_canon_true_dep): Always canonicalize loc's address.
4792 (clobber_overlapping_mems): Make sure we have a MEM.
4793 (local_get_addr_clear_given_value): New.
4794 (val_reset): Clear local cached entries.
4795 (compute_bb_dataflow): Create and release the local cache.
4796 Disable duplicate MEMs clobbering.
4797 (emit_notes_in_bb): Clobber MEMs likewise.
4798 (vt_emit_notes): Create and release the local cache.
4799 (vt_initialize, vt_finalize): Create and release the global
4800 cache, respectively.
4801 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4802
4803 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4804
4805 PR libmudflap/53359
4806 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4807 not found in the symtab.
4808
4809 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4810
4811 PR debug/56006
4812 PR rtl-optimization/55547
4813 PR rtl-optimization/53827
4814 PR debug/53671
4815 PR debug/49888
4816 * alias.c (offset_overlap_p): New, factored out of...
4817 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4818 the conservative special case for symbolic constants. Don't
4819 adjust zero sizes on alignment.
4820
4821 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4822
4823 PR rtl-optimization/52573
4824 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4825 REG_UNUSED for the same register.
4826
4827 2013-01-17 Richard Biener <rguenther@suse.de>
4828 Marek Polacek <polacek@redhat.com>
4829
4830 PR rtl-optimization/55833
4831 * loop-unswitch.c (unswitch_loops): Move loop verification...
4832 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4833 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4834 Set it to true when we're removing a loop from hierarchy tree in
4835 an irreducible region.
4836 (fix_bb_placements): Adjust caller.
4837 (fix_loop_placements): Likewise.
4838
4839 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4840
4841 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4842 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4843 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4844 Remove ID. Adjust comments.
4845 * config/avr/avr-c.c (avr_builtin_name): Remove.
4846 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4847 * config/avr/avr.c (avr_tolower): New static function.
4848 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4849 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4850 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4851 default expansion.
4852
4853 2013-01-17 Jan Hubicka <jh@suse.cz>
4854
4855 PR tree-optimization/55273
4856 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4857
4858 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4859
4860 PR target/55981
4861 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4862 store through atomic_store<mode>_1.
4863 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4864
4865 2013-01-17 Martin Jambor <mjambor@suse.cz>
4866
4867 PR tree-optimizations/55264
4868 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4869 for virtual methods.
4870 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4871 virtual methods before inlining is over.
4872 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4873 virtual functions.
4874 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4875 non-virtual.
4876
4877 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4878
4879 PR rtl-optimization/56005
4880 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4881 pending reads for prefetch.
4882
4883 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4884
4885 * config/aarch64/aarch64.md
4886 (*cstoresi_neg_uxtw): New pattern.
4887 (*cmovsi_insn_uxtw): New pattern.
4888 (*<optab>si3_uxtw): New pattern.
4889 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4890 (*<optab>si3_insn_uxtw): New pattern.
4891 (*bswapsi2_uxtw): New pattern.
4892
4893 2013-01-16 Richard Biener <rguenther@suse.de>
4894
4895 * tree-inline.c (tree_function_versioning): Remove set but
4896 never used variable.
4897
4898 2013-01-16 Richard Biener <rguenther@suse.de>
4899
4900 PR tree-optimization/55964
4901 * tree-flow.h (rename_variables_in_loop): Remove.
4902 (rename_variables_in_bb): Likewise.
4903 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4904 (copy_loop_before): Adjust and delete update-ssa status.
4905 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4906 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4907 (rename_variables_in_loop): Remove.
4908 (slpeel_update_phis_for_duplicate_loop): Likewise.
4909 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4910 use available cfg machinery instead of duplicating it.
4911 Update PHI nodes and perform poor-mans SSA update here.
4912 (slpeel_tree_peel_loop_to_edge): Adjust.
4913
4914 2013-01-16 Richard Biener <rguenther@suse.de>
4915
4916 PR tree-optimization/54767
4917 PR tree-optimization/53465
4918 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4919 (vrp_visit_phi_node): For PHI arguments coming via backedges
4920 drop all symbolical range information.
4921 (execute_vrp): Compute backedges.
4922
4923 2013-01-16 Richard Biener <rguenther@suse.de>
4924
4925 * doc/install.texi: Update CLooG and ISL requirements to
4926 0.18.0 and 0.11.1.
4927
4928 2013-01-16 Christian Bruel <christian.bruel@st.com>
4929
4930 PR target/55301
4931 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4932 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4933 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4934
4935 2013-01-16 DJ Delorie <dj@redhat.com>
4936
4937 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4938 (UNSPECV_SP_SWITCH_E): New.
4939 (sp_switch_1): Change to an unspec.
4940 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4941 replace $r15.
4942
4943 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4944
4945 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4946 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4947 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4948 (expand_mem_thread_fence): Ditto.
4949 (expand_mem_signal_fence): Ditto.
4950 (expand_atomic_load): Ditto.
4951 (expand_atomic_store): Ditto.
4952
4953 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4954
4955 PR rtl-optimization/55547
4956 PR rtl-optimization/53827
4957 PR debug/53671
4958 PR debug/49888
4959 * alias.c (memrefs_conflict_p): Set sizes to negative after
4960 AND adjustments.
4961
4962 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4963
4964 PR target/55940
4965 * function.c (thread_prologue_and_epilogue_insns): Always
4966 add crtl->drap_reg to set_up_by_prologue.set, even if
4967 stack_realign_drap is false.
4968
4969 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4970
4971 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4972 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4973 *call): Fix indention.
4974
4975 2013-01-15 Tom de Vries <tom@codesourcery.com>
4976
4977 PR target/55876
4978 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4979 Update comment.
4980
4981 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4982
4983 PR rtl-optimization/55153
4984 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4985
4986 2013-01-15 Martin Jambor <mjambor@suse.cz>
4987
4988 PR tree-optimization/55920
4989 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4990 accesses as grp_to_be_debug_replaced.
4991
4992 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4993
4994 PR tree-optimization/55920
4995 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4996 there is non-useless type conversion needed from debug rhs to lhs,
4997 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4998
4999 2013-01-15 Joseph Myers <joseph@codesourcery.com>
5000 Mikael Pettersson <mikpe@it.uu.se>
5001
5002 PR target/43961
5003 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5004 Thumb.
5005 (ASM_OUTPUT_CASE_LABEL): Remove.
5006 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5007 * final.c (shorten_branches): Update alignment of labels before
5008 jump tables if CASE_VECTOR_SHORTEN_MODE.
5009
5010 2013-01-15 Richard Biener <rguenther@suse.de>
5011
5012 PR bootstrap/55961
5013 * system.h: Do not include gmp.h for building host tools.
5014
5015 2013-01-15 Richard Biener <rguenther@suse.de>
5016
5017 PR middle-end/55882
5018 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5019 account for bitpos when computing alignment.
5020
5021 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
5022
5023 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5024 (ix86_target_macros_internal): Likewise.
5025
5026 * config/i386/i386.c (m_CORE2I7): Removed.
5027 (m_CORE_HASWELL): New macro.
5028 (m_CORE_ALL): Likewise.
5029 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5030 (initial_ix86_arch_features): Likewise.
5031 (processor_target_table): Initializations for Core avx2.
5032 (cpu_names): New names "core-avx2".
5033 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5034 PROCESSOR_CORE_HASWELL.
5035 (ix86_issue_rate): New case.
5036 (ia32_multipass_dfa_lookahead): Likewise.
5037 (ix86_sched_init_global): Likewise.
5038
5039 * config/i386/i386.h (TARGET_HASWELL): New macro.
5040 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5041 (processor_type): New PROCESSOR_HASWELL.
5042
5043 2013-01-15 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR tree-optimization/55955
5046 * tree-vect-loop.c (vectorizable_reduction): Give up early on
5047 *SHIFT_EXPR and *ROTATE_EXPR codes.
5048
5049 PR tree-optimization/48766
5050 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5051 -ftrapv disable -fwrapv.
5052
5053 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5054
5055 PR target/55974
5056 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5057 etc. to 1 and not to __flash.
5058 Use LL suffix for __INT24_MAX__ with -mint8.
5059 Use ULL suffix for __UINT24_MAX__ with -mint8.
5060
5061 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5062
5063 * config/avr/avr-arch.h
5064 (struct base_arch_s): Use typedef avr_arch_t instead.
5065 (struct arch_info_s): Use typedef avr_arch_info_t instead.
5066 (struct mcu_type_s): Use typedef avr_mcu_t instead.
5067 * config/avr/avr.c: Same.
5068 * config/avr/avr-devices.c: Same.
5069 * config/avr/driver-avr.c: Same.
5070 * config/avr/gen-avr-mmcu-texi.c: Same.
5071 * config/avr/avr-mcus.def: Adjust comment.
5072
5073 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
5074
5075 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5076 * config/aarch64/iterators.md (VALLDI): New.
5077
5078 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
5079 Andi Kleen <ak@linux.intel.com>
5080
5081 PR target/55948
5082 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5083 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5084 memmodel flag.
5085
5086 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5087
5088 * config/avr/avr-stdint.h: Remove trailing blanks.
5089 * config/avr/avr-log.h: Same.
5090 * config/avr/avr-arch.h: Same.
5091 * config/avr/avr-devices.c: Same.
5092 * config/avr/avr-dimode.md: Same.
5093 * config/avr/predicates.md: Same.
5094 * config/avr/avr-c.c: Same. And fix typo.
5095
5096 * config/avr/avr-protos.h: Same. And:
5097 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5098 (init_cumulative_args): Rename to avr_init_cumulative_args.
5099 (expand_prologue): Rename to avr_expand_prologue.
5100 (expand_epilogue): Rename to avr_expand_epilogue.
5101 (adjust_insn_length): Rename to avr_adjust_insn_length.
5102 (notice_update_cc): Rename to avr_notice_update_cc.
5103 (final_prescan_insn): Rename to avr_final_prescan_insn.
5104 * config/avr/avr.c: Same.
5105 * config/avr/avr.h: Same.
5106 * config/avr/avr.md: Remove trailing blanks.
5107 (prologue): Use avr_expand_prologue.
5108 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5109
5110 2013-01-14 Richard Biener <rguenther@suse.de>
5111
5112 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5113 verify_location, collect_subblocks): New functions.
5114 (verify_gimple_in_cfg): Verify that locations only reference
5115 BLOCKs in the functions BLOCK tree.
5116
5117 2013-01-14 Richard Biener <rguenther@suse.de>
5118
5119 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5120 PHI argument.
5121 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5122 unshare reference.
5123 (insert_out_of_ssa_copy_on_edge): Likewise.
5124 (rewrite_close_phi_out_of_ssa): Likewise.
5125 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5126 debug expressions.
5127 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5128 propagated constants.
5129 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5130 can not be shared.
5131
5132 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
5133
5134 * config/avr/avr-modes.def: Add GPL copyright notice.
5135
5136 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
5137
5138 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5139 MEMMODEL_MASK to determine memory model.
5140 (atomic_store<mode>): Ditto from operands[2].
5141 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5142
5143 2013-01-13 Jakub Jelinek <jakub@redhat.com>
5144
5145 PR fortran/55935
5146 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5147 (fold_gimple_assign): Don't call unshare_expr here.
5148 (fold_ctor_reference): Call unshare_expr.
5149
5150 2013-01-13 Terry Guo <terry.guo@arm.com>
5151
5152 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5153 * doc/fragments.texi: Document MULTILIB_REUSE.
5154 * gcc.c (multilib_reuse): New internal spec.
5155 (set_multilib_dir): Also search multilib from multilib_reuse.
5156 * genmultilib (tmpmultilib3): Refactor code.
5157 (tmpmultilib4): Ditto.
5158 (multilib_reuse): New multilib argument.
5159
5160 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
5161
5162 * Makefile.in: Update copyright.
5163
5164 2013-01-12 Tom de Vries <tom@codesourcery.com>
5165
5166 PR middle-end/55890
5167 * calls.c (expand_call): Check if arg_nr is valid.
5168
5169 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5170
5171 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5172 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5173 documentation. Add missing '__' in front of
5174 __builtin_ia32_packssdw256.
5175
5176 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5177
5178 PR target/55719
5179 * config/s390/s390.c (s390_preferred_reload_class): Do not return
5180 NO_REGS for larl operands.
5181 (s390_reload_larl_operand): Use s390_load_address instead of
5182 emit_move_insn.
5183
5184 2013-01-11 Richard Biener <rguenther@suse.de>
5185
5186 * tree-cfg.c (verify_node_sharing_1): Split out from ...
5187 (verify_node_sharing): ... here.
5188 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5189
5190 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
5191
5192 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5193 Substitute TREECHECKING.
5194 * configure: Regenerate.
5195 * Makefile.in (TREECHECKING): New.
5196
5197 2013-01-11 Richard Guenther <rguenther@suse.de>
5198
5199 PR tree-optimization/44061
5200 * tree-vrp.c (extract_range_basic): Compute zero as
5201 value-range for __builtin_constant_p of function parameters.
5202
5203 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
5204
5205 Update copyright years.
5206
5207 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
5208
5209 PR rtl-optimization/55672
5210 * lra-eliminations.c (mark_not_eliminable): Permit addition with
5211 const to be eliminable.
5212
5213 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
5214
5215 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5216 * configure: Regenerate.
5217
5218 2013-01-10 Richard Biener <rguenther@suse.de>
5219
5220 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5221
5222 2013-01-10 Richard Biener <rguenther@suse.de>
5223
5224 PR bootstrap/55792
5225 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5226 locations for virtual PHI arguments.
5227 (rewrite_update_phi_arguments): Likewise.
5228
5229 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
5230
5231 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5232 on to assembler.
5233
5234 2013-01-10 Jakub Jelinek <jakub@redhat.com>
5235
5236 PR tree-optimization/55921
5237 * tree-complex.c (expand_complex_asm): New function.
5238 (expand_complex_operations_1): Call it for GIMPLE_ASM.
5239
5240 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5241
5242 PR target/55718
5243 * config/s390/s390.c (s390_symref_operand_p)
5244 (s390_loadrelative_operand_p): Merge the two functions.
5245 (s390_check_qrst_address, print_operand_address): Add parameters
5246 to s390_loadrelative_operand_p invokation.
5247 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5248 (s390_reload_larl_operand, s390_secondary_reload): Use
5249 s390_loadrelative_operand_p instead of s390_symref_operand_p.
5250 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5251
5252 2013-01-09 Mike Stump <mikestump@comcast.net>
5253
5254 * dse.c (record_store): Remove unnecessary assert.
5255
5256 2013-01-09 Jan Hubicka <jh@suse.cz>
5257
5258 PR tree-optimization/55569
5259 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5260 * cfgloop.h (scale_loop_profile): Likewise.
5261
5262 2013-01-09 Jan Hubicka <jh@suse.cz>
5263
5264 PR lto/45375
5265 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5266 functions.
5267 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5268
5269 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
5270
5271 PR middle-end/55114
5272 * expr.h (maybe_emit_group_store): Declare.
5273 * expr.c (maybe_emit_group_store): New function.
5274 * builtins.c (expand_builtin_int_roundingfn): Call it.
5275 (expand_builtin_int_roundingfn_2): Likewise.
5276
5277 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
5278
5279 PR rtl-optimization/55829
5280 * lra-constraints.c (match_reload): Add code for absent output.
5281 (curr_insn_transform): Add code for reloads of matched inputs
5282 without output.
5283
5284 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
5285
5286 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5287 attribute of movddup insn to DF.
5288 (*vec_interleave_lowv2df): Ditto.
5289 (vec_dupv2df): Ditto.
5290
5291 2013-01-09 Jan Hubicka <jh@suse.cz>
5292
5293 PR tree-optimiation/55875
5294 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5295 EVERY_ITERATION parameter.
5296 (number_of_iterations_exit): Check if exit is executed every iteration.
5297 (idx_infer_loop_bounds): Similarly here.
5298 (n_of_executions_at_most): Simplify
5299 to only test for cases where statement is dominated by the
5300 particular bound; handle correctly the "postdominance" test.
5301 (scev_probably_wraps_p): Use max loop iterations info
5302 as a global bound first.
5303
5304 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
5305 Nick Clifton <nickc@redhat.com>
5306
5307 * config/v850/v850.md (cbranchsf4): New pattern.
5308 (cstoresf4): New pattern.
5309 (cbranchdf4): New pattern.
5310 (cstoredf4): New pattern.
5311 (movsicc): Disallow floating point comparisons.
5312 (cmpsf_le_insn): Fix order of operators.
5313 (cmpsf_lt_insn): Likewise.
5314 (cmpsf_eq_insn): Likewise.
5315 (cmpdf_le_insn): Likewise.
5316 (cmpdf_lt_insn): Likewise.
5317 (cmpdf_eq_insn): Likewise.
5318 (cmpsf_ge_insn): Use LE comparison.
5319 (cmpdf_ge_insn): Likewise.
5320 (cmpsf_gt_insn): Use LT comparison.
5321 (cmpdf_gt_insn): Likewise.
5322 (cmpsf_ne_insn): Delete pattern.
5323 (cmpdf_ne_insn): Delete pattern.
5324 * config/v850/v850.c (v850_gen_float_compare): Use
5325 gen_cmpdf_eq_insn for NE comparison.
5326 (v850_float_z_comparison_operator)
5327 (v850_float_nz_comparison_operator): Move from here ...
5328 * config/v850/predicates.md: ... to here. Move GT and GE
5329 comparisons into v850_float_z_comparison_operator.
5330 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5331 Delete prototype.
5332 (v850_float_nz_comparison_operator): Likewise.
5333
5334 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5335
5336 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5337 with calls to gen_insvsi/gen_insvdi.
5338
5339 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5340
5341 * config/i386/i386.c (initial_ix86_tune_features): Set up
5342 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5343
5344 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
5345 Jakub Jelinek <jakub@redhat.com>
5346
5347 PR tree-optimization/48189
5348 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5349 If nitercst is 0, don't predict the exit edge.
5350
5351 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5352
5353 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5354 in asm_fprintf with reg_names.
5355 (aarch64_print_operand_address): Likewise.
5356 (aarch64_return_addr): Likewise.
5357 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5358
5359 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5360
5361 * config/pa/pa.h (VAL_U6_BITS_P): Define.
5362 (INT_U6_BITS): Likewise.
5363 * config/pa/predicates.md (uint6_operand): New predicate.
5364 (shift5_operand, shift6_operand): Likewise.
5365 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5366 arith32_operand.
5367 (lshrdi3): Use shift6_operand.
5368 (shrpsi4, shrpdi4): New insn patterns.
5369 (extzv): Delete expander.
5370 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
5371 predicates in unamed zero extract patterns. Tighten common constraint.
5372 (extv): Delete expander.
5373 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
5374 predicates in unamed sign extract patterns. Tighten common constraint.
5375 (insv): Delete expander.
5376 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
5377 predicates in unamed insert patterns. Tighten common constraint.
5378 Change uint32_operand predicate to uint6_operand predicate in unamed
5379 DImode pattern to insert constant values of type 1...1xxxx.
5380
5381 2013-01-04 Jan Hubicka <jh@suse.cz>
5382
5383 PR tree-optimization/55823
5384 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5385 issue.
5386
5387 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5388 Uros Bizjak <ubizjak@gmail.com>
5389
5390 PR rtl-optimization/55845
5391 * df-problems.c (can_move_insns_across): Stop scanning at
5392 volatile_insn_p source instruction or give up if
5393 across_from .. across_to range contains any volatile_insn_p
5394 instructions.
5395
5396 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5397
5398 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5399 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5400 Declare.
5401 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5402 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5403
5404 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5405
5406 PR fortran/55341
5407 * asan.c (asan_clear_shadow): New function.
5408 (asan_emit_stack_protection): Use it.
5409
5410 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5411
5412 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5413 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5414 with tab instead of space.
5415
5416 2013-01-08 Nick Clifton <nickc@redhat.com>
5417
5418 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5419 register bank 0 at the start of an interrupt handler.
5420 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5421 MDBH registers.
5422
5423 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5424
5425 * config/aarch64/aarch64-simd.md
5426 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5427 (aarch64_simd_bsl): Likewise.
5428 (aarch64_vcond_internal<mode>): Likewise.
5429 (vcond<mode><mode>): Likewise.
5430 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5431 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5432
5433 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5434
5435 * config/aarch64/aarch64-builtins.c
5436 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5437
5438 2013-01-08 Martin Jambor <mjambor@suse.cz>
5439
5440 PR debug/55579
5441 * tree-sra.c (analyze_access_subtree): Return true also after
5442 potentially creating a debug-only replacement.
5443
5444 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5445
5446 PR middle-end/55890
5447 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5448
5449 PR tree-optimization/54120
5450 * tree-vrp.c (range_fits_type_p): Don't allow
5451 src_precision < precision from signed vr to unsigned_p
5452 if vr->min or vr->max is negative.
5453 (simplify_float_conversion_using_ranges): Test can_float_p
5454 against CODE_FOR_nothing.
5455
5456 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5457 Richard Biener <rguenther@suse.de>
5458
5459 PR middle-end/55851
5460 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5461 types instead of just INTEGER_TYPE types.
5462
5463 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5464
5465 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5466 TF_SIZE): Define.
5467
5468 2013-01-07 Steve Ellcey <sellcey@mips.com>
5469
5470 PR target/42661
5471 * config/mips/mips.opt: Change mad to mmad to match documentation.
5472
5473 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5474
5475 PR target/55897
5476 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5477 .progmemx.data now.
5478
5479 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5480
5481 PR target/55897
5482 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5483 (avr_addrspace_t): Add .section_name field.
5484 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5485 array size.
5486 (avr_addrspace): Same. Initialize .section_name. Remove last
5487 NULL entry. Put __memx into .progmemx.data.
5488 (progmem_section_prefix): Remove.
5489 (avr_asm_init_sections): No need to initialize progmem_section.
5490 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5491 section name prefix.
5492 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5493 retrieve the progmem section.
5494 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5495 boundary to run over avr_addrspace[].
5496 (avr_register_target_pragmas): Ditto.
5497
5498 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5499
5500 * varasm.c (output_constant_def_contents): For asan_protect_global
5501 protected strings, adjust DECL_ALIGN if needed, before testing for
5502 anchored symbols.
5503 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5504 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5505 normal decls.
5506 (output_object_block): For asan protected decls, emit asan padding
5507 after their contents.
5508 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5509 (asan_finish_file): Test it here instead.
5510
5511 2013-01-07 Nick Clifton <nickc@redhat.com>
5512 Matthias Klose <doko@debian.org>
5513 Doug Kwan <dougkwan@google.com>
5514 H.J. Lu <hongjiu.lu@intel.com>
5515
5516 PR driver/55470
5517 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5518
5519 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5520
5521 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5522
5523 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5524
5525 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5526
5527 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5528
5529 PR target/54461
5530 * doc/install.texi (Cross-Compiler-Specific Options): Document
5531 --with-avrlibc.
5532
5533 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5534
5535 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5536 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5537 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5538 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5539 vqmovun_high_s64): Fix source operand number and update copyright.
5540
5541 2013-01-07 Richard Biener <rguenther@suse.de>
5542
5543 PR middle-end/55890
5544 * gimple.h (gimple_call_builtin_p): New overload.
5545 * gimple.c (validate_call): New function.
5546 (gimple_call_builtin_p): Likewise.
5547 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5548 Use gimple_call_builtin_p.
5549 (find_func_clobbers): Likewise.
5550 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5551 (strlen_optimize_stmt): Likewise.
5552
5553 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5554
5555 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5556 (vld1q_dup_*): Likewise.
5557 (vld1_*): Likewise.
5558 (vld1q_*): Likewise.
5559 (vld1_lane_*): Likewise.
5560 (vld1q_lane_*): Likewise.
5561
5562 2013-01-07 Richard Biener <rguenther@suse.de>
5563
5564 * lto-streamer.h (LTO_minor_version): Bump to 2.
5565
5566 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5567
5568 * config/aarch64/aarch64-protos.h
5569 (aarch64_const_double_zero_rtx_p): Rename to...
5570 (aarch64_float_const_zero_rtx_p): ...this.
5571 (aarch64_float_const_representable_p): New.
5572 (aarch64_output_simd_mov_immediate): Likewise.
5573 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5574 move immediate case.
5575 * config/aarch64/aarch64.c
5576 (aarch64_const_double_zero_rtx_p): Rename to...
5577 (aarch64_float_const_zero_rtx_p): ...this.
5578 (aarch64_print_operand): Allow printing of new constants.
5579 (aarch64_valid_floating_const): New.
5580 (aarch64_legitimate_constant_p): Check for valid floating-point
5581 constants.
5582 (aarch64_simd_valid_immediate): Likewise.
5583 (aarch64_vect_float_const_representable_p): New.
5584 (aarch64_float_const_representable_p): Likewise.
5585 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5586 (aarch64_output_simd_mov_immediate): New.
5587 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5588 (*movdf_aarch64): Likewise.
5589 * config/aarch64/constraints.md (Ufc): New.
5590 (Y): call aarch64_float_const_zero_rtx.
5591 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5592
5593 2013-01-07 Richard Biener <rguenther@suse.de>
5594
5595 PR tree-optimization/55888
5596 PR tree-optimization/55862
5597 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5598 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5599 not if it is contained therein.
5600
5601 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5602
5603 * config/avr/t-avr: Typo.
5604
5605 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5606
5607 PR55243
5608 * config/avr/t-avr: Don't automatically rebuild
5609 $(srcdir)/config/avr/t-multilib
5610 $(srcdir)/config/avr/avr-tables.opt
5611 $(srcdir)/doc/avr-mmcu.texi
5612 (avr-mcus): New phony target to build them on request.
5613 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5614 * avr/avr-mcus.def: Adjust comments.
5615
5616 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5617
5618 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5619
5620 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5621
5622 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5623
5624 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5625
5626 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5627
5628 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5629
5630 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5631 to generate profiling.
5632 * config/rs6000/aix64.h (LIB_SPEC): Same.
5633
5634 2013-01-04 Andrew Pinski <apinski@cavium.com>
5635
5636 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5637 New function.
5638 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5639
5640 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5641
5642 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5643 unconditionally.
5644 (ix86_expand_move): Ditto.
5645 (ix86_zero_extend_to_Pmode): Ditto.
5646 (ix86_expand_call): Ditto.
5647 (ix86_expand_special_args_builtin): Ditto.
5648 (ix86_expand_builtin): Ditto.
5649
5650 2013-01-04 Richard Biener <rguenther@suse.de>
5651
5652 PR tree-optimization/55862
5653 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5654 translating them through PHI nodes.
5655
5656 2013-01-04 Martin Jambor <mjambor@suse.cz>
5657
5658 PR tree-optimization/55755
5659 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5660 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5661
5662 2013-01-04 Marek Polacek <polacek@redhat.com>
5663
5664 PR middle-end/55859
5665 * opts.c (default_options_optimization): Clarify error message.
5666
5667 2013-01-04 Richard Biener <rguenther@suse.de>
5668
5669 PR middle-end/55863
5670 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5671 reassociation.
5672
5673 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5674
5675 PR target/53789
5676 * config/pa/pa.md (movsi): Revert previous change.
5677 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5678 references.
5679
5680 2013-01-03 Richard Henderson <rth@redhat.com>
5681
5682 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5683 after eliminating TLS symbols.
5684
5685 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5686
5687 PR bootstrap/50167
5688 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5689 * graphite-poly.c (debug_gmp_value): Likewise.
5690
5691 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5692
5693 PR target/55712
5694 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5695 selected code model, define __code_mode_small__, __code_model_medium__,
5696 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5697 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5698 xchg temporary register with %k. Declare temporary register as
5699 early clobbered.
5700 [__x86_64__]: For medium and large code models, preserve %rbx register.
5701
5702 2013-01-03 Richard Biener <rguenther@suse.de>
5703
5704 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5705 (dump_subscript): Adjust.
5706 (finalize_ddr_dependent): Do not dump redundant info.
5707 (analyze_siv_subscript): Adjust.
5708 (subscript_dependence_tester): Likewise.
5709 (compute_affine_dependence): Likewise.
5710
5711 2013-01-03 Richard Biener <rguenther@suse.de>
5712
5713 Revert
5714 2013-01-03 Richard Biener <rguenther@suse.de>
5715
5716 PR tree-optimization/55857
5717 * tree-vect-stmts.c (vectorizable_load): Do not setup
5718 re-alignment for invariant loads.
5719
5720 2013-01-02 Richard Biener <rguenther@suse.de>
5721
5722 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5723 invariant load do not generate a vector load from the scalar location.
5724
5725 2013-01-03 Richard Biener <rguenther@suse.de>
5726
5727 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5728 for not vectorizing.
5729 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5730 not build INDIRECT_REFs, call get_name once only.
5731 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5732 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5733
5734 2013-01-03 Richard Biener <rguenther@suse.de>
5735
5736 PR tree-optimization/55857
5737 * tree-vect-stmts.c (vectorizable_load): Do not setup
5738 re-alignment for invariant loads.
5739
5740 2013-01-03 Richard Biener <rguenther@suse.de>
5741
5742 PR lto/55848
5743 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5744 prefer a built-in decl.
5745
5746 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5747
5748 * gcc.c (process_command): Update copyright notice dates.
5749 * gcov.c (print_version): Likewise.
5750 * gcov-dump.c (print_version): Likewise.
5751
5752 PR rtl-optimization/55838
5753 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5754 iv0.step, iv1.step and step.
5755
5756 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5757 Marc Glisse <marc.glisse@inria.fr>
5758
5759 PR tree-optimization/55832
5760 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5761 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5762 integer_{one,zero}_node.
5763
5764 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5765
5766 PR debug/54402
5767 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5768 * var-tracking.c (reverse_op): Don't add reverse ops to
5769 VALUEs that have already
5770 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5771
5772 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5773
5774 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5775
5776 2013-01-02 Teresa Johnson <tejohnson@google.com>
5777
5778 * dumpfile.c (dump_loc): Print filename with location.
5779 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5780 new location_t parameter to emit complete unroll message with
5781 new dump framework.
5782 (canonicalize_loop_induction_variables): Compute loops location
5783 and pass to try_unroll_loop_completely.
5784 * loop-unroll.c (report_unroll_peel): New function.
5785 (peel_loops_completely): Use new dump format with location
5786 for main dumpfile message, and invoke report_unroll_peel on success.
5787 (decide_unrolling_and_peeling): Ditto.
5788 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5789 by report_unroll_peel.
5790 (decide_peel_completely): Ditto.
5791 (decide_unroll_constant_iterations): Ditto.
5792 (decide_unroll_runtime_iterations): Ditto.
5793 (decide_peel_simple): Ditto.
5794 (decide_unroll_stupid): Ditto.
5795 * cfgloop.c (get_loop_location): New function.
5796 * cfgloop.h (get_loop_location): Declare.
5797
5798 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5799
5800 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5801 NULL.
5802
5803 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5804
5805 PR middle-end/55198
5806 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5807 BLKmode objects when EXPAND_MEMORY is specified.
5808
5809 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5810
5811 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5812 in loop predicate.
5813 (fold_builtin_cpu): Do not share cpu model decls across statements.
5814
5815 2013-01-02 Jason Merrill <jason@redhat.com>
5816
5817 PR c++/55804
5818 * tree.c (build_array_type_1): Revert earlier change.
5819
5820 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5821
5822 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5823 "cortex-a57".
5824 * config/aarch64/aarch64-tune.md: Re-generate.
5825
5826 2013-01-02 Richard Biener <rguenther@suse.de>
5827
5828 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5829 invariant load do not generate a vector load from the scalar location.
5830
5831 2013-01-02 Richard Biener <rguenther@suse.de>
5832
5833 PR bootstrap/55784
5834 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5835 * configure: Regenerate.
5836
5837 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5838
5839 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5840 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5841 (expand_builtin_int_roundingfn_2): Keep the original target around
5842 for the fallback case.
5843
5844 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5845
5846 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5847 to be clear for sign changes.
5848
5849 2013-01-01 Jan Hubicka <jh@suse.cz>
5850
5851 * ipa-inline-analysis.c: Fix formatting.
5852
5853 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5854
5855 PR tree-optimization/55831
5856 * tree-vect-loop.c (get_initial_def_for_induction): Use
5857 gsi_after_labels instead of gsi_start_bb.
5858 \f
5859 Copyright (C) 2013 Free Software Foundation, Inc.
5860
5861 Copying and distribution of this file, with or without modification,
5862 are permitted in any medium without royalty provided the copyright
5863 notice and this notice are preserved.