]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
make-obstacks-texi.pl: New.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
3c27ce4c
JY
12013-03-06 Joey Ye <joey.ye@arm.com>
2
3 PR lto/50293
4 * gcc.c (convert_white_space): New function.
5 (main): Handles white space in function name.
6
8f6d1c86
OE
72013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8
9 PR target/56529
10 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
12 to SH_DIV_CALL_TABLE for TARGET_SH2.
13 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
14 list.
15 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
16 call-table options.
17
798a209f
SA
182013-03-05 Sterling Augustine <saugustine@google.com>
19 Cary Coutant <ccoutant@google.com>
20
21 PR debug/55364
22 * dwarf2out.c (resolve_addr): Don't call
23 remove_loc_list_addr_table_entries a second time for the same
24 expression.
25
6cfa417f 262013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 27
6cfa417f
JJ
28 PR debug/56510
29 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
30 (avoid_complex_debug_insns): New function.
31 (expand_debug_locations): Call it.
32
33 PR rtl-optimization/56484
34 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
35 lifetimes of hard registers on small register class machines.
36
372013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
38
39 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 40 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 41 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
42 fast_interrupt.
43 (microblaze_fast_interrupt_function_p): New function.
44 (microblaze_is_interrupt_handler): Rename to
45 microblaze_is_interrupt_variant and add fast_interrupt check.
46 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
47 (save_restore_insns): Likewise.
48 (compute_frame_size): Likewise.
49 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
50 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
51 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
52 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
53 microblaze_is_interrupt_variant.
54
731aefac
KT
552013-03-05 Kai Tietz <ktietz@redhat.com>
56
57 * sdbout.c (sdbout_one_type): Switch to current function's section
58 supporting cold/hot.
59
e34fd5a7
DH
602013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
61
62 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
63 -mxl-reorder.
64
334e71e8
JJ
652013-03-05 Jakub Jelinek <jakub@redhat.com>
66
0b50e654
JJ
67 PR middle-end/56461
68 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
69 if VALGRIND_GET_VBITS is defined, temporarily make object
70 memory all defined, and restore previous valgrind addressability
71 and definability afterwards. Free this_object at the end.
72
4ccf8f43
JJ
73 PR middle-end/56461
74 * lra.c (lra): Call lra_clear_live_ranges if live_p,
75 right before calling lra_create_live_ranges, also call it
76 when clearing live_p. Only call lra_clear_live_ranges
77 at the end if live_p.
78
334e71e8
JJ
79 PR middle-end/56461
80 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
81
9ca966ca
RB
822013-03-05 Richard Biener <rguenther@suse.de>
83
84 PR tree-optimization/56521
85 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
86 value-id.
87
d273b176
SB
882013-03-05 Steven Bosscher <steven@gcc.gnu.org>
89
90 PR c++/55135
91 * except.h (remove_unreachable_eh_regions): New prototype.
92 * except.c (remove_eh_handler_splicer): New function, split out
93 of remove_eh_handler.
94 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
95 warning about running it on many EH regions one at a time.
96 (remove_unreachable_eh_regions_worker): New function, walk the
97 EH tree in depth-first order and remove non-marked regions.
98 (remove_unreachable_eh_regions): New function.
99 * tree-eh.c (mark_reachable_handlers): New function, split out
100 from remove_unreachable_handlers.
101 (remove_unreachable_handlers): Use mark_reachable_handlers and
102 remove_unreachable_eh_regions.
103 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
104 and remove_unreachable_eh_regions.
105
5e7f1aef
RB
1062013-03-05 Richard Biener <rguenther@suse.de>
107
108 PR middle-end/56525
109 * loop-init.c (fix_loop_structure): Remove loops in two stages,
110 not freeing them until the end.
111
f276b762
AK
1122013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
113
114 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
115
12a43ab8
RB
1162013-03-05 Richard Biener <rguenther@suse.de>
117
118 PR tree-optimization/56270
119 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
120 of loads after scheduling an SLP instance.
121
93675444
JJ
1222013-03-05 Jakub Jelinek <jakub@redhat.com>
123
db4138e3
JJ
124 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
125 tic6x.exp.
126 (check_gcc_parallelize): Run guality.exp as a separate job from
127 vect.exp with unsorted.exp and $(dg_target_exps) separately from
128 struct-layout-1.exp with stackalign.exp.
129
dd3d1ec0
JJ
130 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
131
b8d381a3
JJ
132 PR middle-end/56461
133 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
134 load_index sbitmap even if some bit in it isn't set.
135
b4f9786b
JJ
136 PR middle-end/56461
137 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
138 (discover_iteration_bound_by_body_walk): Change queues to
139 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
140 spelling in comment. Call safe_push on queues[bound_index] directly.
141 Release queues[queue_index] in every iteration unconditionally.
142 Release bounds vector.
143
93675444
JJ
144 PR middle-end/56461
145 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
146 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
147 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
148 inner_phis vector.
149
3e492e9c
RB
1502013-03-05 Richard Biener <rguenther@suse.de>
151
152 PR lto/56515
153 * tree-inline.c (remap_blocks_to_null): New function.
154 (expand_call_inline): When expanding a call stmt without
155 an associated block inline remap all callee blocks to NULL.
156
a5d1569a
JJ
1572013-03-05 Jakub Jelinek <jakub@redhat.com>
158
86efb5cd
JJ
159 PR rtl-optimization/56494
160 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
161 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
162 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
163
85f5dbea
JJ
164 PR middle-end/56461
165 * sel-sched-ir.c (free_sched_pools): Release
166 succs_info_pool.stack[succs_info_pool.max_top] vectors too
167 if succs_info_pool.max_top isn't -1.
168
a5d1569a
JJ
169 PR bootstrap/56509
170 * opts.c (opts_obstack, opts_concat): Moved to...
171 * opts-common.c (opts_obstack, opts_concat): ... here.
172
4432aa6c
JJ
1732013-03-04 Jakub Jelinek <jakub@redhat.com>
174
175 PR middle-end/56461
176 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
177
f3a1fb91
MJ
1782013-03-04 Martin Jambor <mjambor@suse.cz>
179
180 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
181 all appropriate places.
182
22110e6c
EB
1832013-01-04 Eric Botcazou <ebotcazou@adacore.com>
184
185 PR tree-optimization/56424
186 * ipa-split.c (split_function): Do not set the RSO flag if result is
187 not by reference and its type is a register type.
188
91c4e421
DH
1892013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
190
191 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
192 (microblaze_legitimate_pic_operand): Likewise
193 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
194 new function microblaze_legitimate_pic_operand
195 * config/microblaze/microblaze-protos.h
196 (microblaze_legitimate_pic_operand): Declare.
197
82f8f53a
EI
1982013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
199
200 * config/microblaze/predicates.md (call_insn_simple_operand):
201 New predicate for supported rtx code types.
202 * config/microblaze/microblaze.md (call_internal1): Use
203 call_insn_simple_operand predicate.
204
541d9ac8
JJ
2052013-03-04 Jakub Jelinek <jakub@redhat.com>
206
5eb010bc
JJ
207 PR middle-end/56461
208 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
209 partitions.ordered_remove.
210
30862efc
JJ
211 PR middle-end/56461
212 * tree-vect-stmts.c (vectorizable_conversion): Don't call
213 vec_oprnds0.create (1) for modifier == NONE.
214
8930f723
JJ
215 PR middle-end/56461
216 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
217 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
218 vec_oprnds1 right before pushing anything to it for
219 scalar_shift_arg.
220
541d9ac8
JJ
221 PR middle-end/56461
222 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
223 set nbbs to 0 instead of having separate code path.
224 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
225 instead of false as last argument if returning NULL.
226
7aa7f2e3
SL
2272013-03-03 Sandra Loosemore <sandra@codesourcery.com>
228
229 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
230 the attribute is now called "target" instead of "option".
231 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
232 * doc/tm.texi.in (Target Attributes): Likewise document the correct
233 attribute/pragma name for TARGET_OPTION_VALID_P and
234 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
235 * doc/tm.texi: Regenerated.
236
8930f723 2372013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 238
8930f723 239 * config/microblaze/microblaze.c:
cb8a1637 240 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
241 * config/microblaze/microblaze.h: Add -mxl-reorder to
242 DRIVER_SELF_SPECS.
243 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
244 instructions emitted if TARGET_REORDER.
245 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
cb8a1637 246 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 247 separately.
cb8a1637 248
4dc1d68c
XDL
2492013-03-01 Xinliang David Li <davidxl@google.com>
250
251 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
252 walk length.
253
689eaba3
JJ
2542013-03-01 Jakub Jelinek <jakub@redhat.com>
255
9d676bf6
JJ
256 PR middle-end/56461
257 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
258 vector even when returning true. Fix up function comment formatting.
259
caff7edf
JJ
260 PR middle-end/56461
261 * ira-build.c (ira_loop_nodes_count): New variable.
262 (create_loop_tree_nodes): Initialize it.
263 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
264
b6b9227d
JJ
265 PR middle-end/56461
266 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
267 method on dr_chain and result_chain.
268 * tree-vect-stmts.c (vectorizable_store): Only call
269 result_chain.create if j == 0.
270
689eaba3
JJ
271 PR middle-end/56461
272 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
273 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
274 before overwriting it.
275
40bf31ed
TB
2762013-03-01 Tobias Burnus <burnus@net-b.de>
277
278 * doc/extended.texi (C Extensions): Change order in @menu
279 to match @node.
280 (Other MIPS Built-in Functions): Move last MIPS entry before
281 "picoChip Built-in Functions".
282 (SH Built-in Functions): Move after RX Built-in Functions.
283 * doc/gcc.texi (Introduction): Change order in @menu
284 to match @node.
285 * doc/md.texi (Constraints): Ditto.
286 * gty.texi (Type Information): Ditto.
287 (User-provided marking routines for template types): Make
288 subsection.
289 * doc/invoke.texi (AArch64 Options): Move before
290 "Adapteva Epiphany Options".
291
e664c61c
KS
2922013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
293 Jakub Jelinek <jakub@redhat.com>
294
295 PR sanitizer/56454
296 * asan.c (gate_asan): Lookup no_sanitize_address instead of
297 no_address_safety_analysis attribute.
298 * doc/extend.texi (no_address_safety_attribute): Rename to
299 no_sanitize_address attribute, mention no_address_safety_analysis
300 attribute as deprecated alias.
301
37b5ec8f
JJ
3022013-02-28 Jakub Jelinek <jakub@redhat.com>
303
304 PR middle-end/56461
305 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
306 type to vec<vec<tree> > *.
307 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
308 to be vec<tree> instead of vec<tree> *, set vec_defs
309 to vNULL and call vec_defs.create (number_of_vects), adjust other
310 uses of vec_defs.
311 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
312 vectorizable_condition): Adjust vect_get_slp_defs callers.
313
ba96cdfb
JG
3142013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
315
316 * config/aarch64/aarch64.c
317 (aarch64_float_const_representable): Remove unused variable.
318
6f549691
JG
3192013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
320
321 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
322
af55e82d
JG
3232013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
324
325 * config/aarch64/aarch64-builtins.c
326 (aarch64_init_simd_builtins): Make static.
327
1df3f464
JG
3282013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
329
330 * config/aarch64/aarch64.c
331 (aarch64_simd_make_constant): Make static.
332
f8f42513
MJ
3332013-02-28 Martin Jambor <mjambor@suse.cz>
334
335 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
336 with no initialization to the RHS of debug statements.
337
b48b3fc4
MJ
3382013-02-28 Martin Jambor <mjambor@suse.cz>
339
340 PR tree-optimization/56294
341 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
342 Adjust dumping.
343 (get_access_replacement): Do not call create_access_replacement.
344 Assert a replacement exists.
345 (get_repl_default_def_ssa_name): Create the replacement declaration
346 itself.
347
c3ae224c
RR
3482013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
349
350 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
351 final_end_function.
352
45fa0eef
MP
3532013-02-28 Marek Polacek <polacek@redhat.com>
354
355 PR rtl-optimization/56466
356 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
357 if we're changing a loop.
358 (peel_loops_completely): Likewise.
359
502c067d
PC
3602013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
361
362 PR c++/55813
363 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
364
ff24afc8
GJL
3652013-02-28 Georg-Johann Lay <avr@gjlay.de>
366
367 PR target/56445
368 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
369 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
370 INTX_FTYPE_FX, FX_FTYPE_INTX.
371 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
372
c7b1fc1b
GJL
3732013-02-28 Georg-Johann Lay <avr@gjlay.de>
374
375 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
376 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
377 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
378 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
379 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
380 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
381 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
382 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
383 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
384 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
385 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
386 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
387 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
388 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
389 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
390 (avrxmega6): Increase max flash segments from 5 to 6.
391 * config/avr/t-multilib: Regenerate.
392 * config/avr/avr-tables.opt: Regenerate.
393 * doc/avr-mmcu.texi: Regenerate.
394
4a0e3cfe
GJL
3952013-02-28 Georg-Johann Lay <avr@gjlay.de>
396
397 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
398 (avr_device_to_arch): Rename to avr_device_to_ld.
399 (avr_device_to_as): New prototype.
400 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
401 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
402 * config/avr/driver-avr.c (avr_device_to_as): New.
403 (avr_device_to_arch): Rename to avr_device_to_ld.
404
97785e52
JJ
4052013-02-27 Jakub Jelinek <jakub@redhat.com>
406
3f292312
JJ
407 PR middle-end/56461
408 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
409 method on dr_chain and result_chain.
410
a344216b
JJ
411 PR middle-end/56461
412 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
413 pointer_set_destroy on not_executed_last_iteration.
414
f121ad02
JJ
415 PR middle-end/56461
416 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs
417 vector.
418
307f83a3
JJ
419 PR middle-end/56461
420 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
421 FOR_EACH_DEFINED_FUNCTION when freeing state.
422
e19624ee
JJ
423 PR middle-end/56461
424 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
425 pool_free.
426 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
427 overwriting it.
428
90e709fd
JJ
429 PR middle-end/56461
430 * ipa-cp.c (decide_whether_version_node): Call vec_free on
431 known_aggs[i].items and release known_aggs vector.
432
97785e52
JJ
433 PR middle-end/56461
434 * ipa-reference.c (propagate): Free node_info even for alias nodes.
435
4362013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 437
97785e52
JJ
438 * config/microblaze/microblaze.c (microblaze_emit_compare):
439 Use xor for EQ/NE comparisions.
440 * config/microblaze/microblaze.md (cstoresf4): Add constraints
441 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 442
6fa5e0ed
JJ
4432013-02-27 Jakub Jelinek <jakub@redhat.com>
444
445 PR middle-end/56461
446 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
447 vector.
448 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
449 vec_safe_push, always update *slot.
450 (redirect_edge_var_map_clear): Use vec_free.
451 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
452 (free_var_map_entry): Use vec_free.
453 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
454 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
455
436a956a
AB
4562013-02-27 Andrey Belevantsev <abel@ispras.ru>
457
458 PR middle-end/45472
436a956a
AB
459 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
460 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
461 Reorder tests for speculativeness in the logical and operator.
462
f5c2caca
JJ
4632013-02-27 Jakub Jelinek <jakub@redhat.com>
464
0fcb564b
JJ
465 * incpath.c (add_standard_paths): Use reconcat instead of concat
466 where appropriate and avoid leaking memory.
467
dc357798
JJ
468 * opts.h: Include obstack.h.
469 (opts_concat): New prototype.
470 (opts_obstack): New declaration.
471 * opts.c (opts_concat): New function.
472 (opts_obstack): New variable.
473 (init_options_struct): Call gcc_init_obstack on opts_obstack.
474 (finish_options): Use opts_concat instead of concat
475 and XOBNEWVEC instead of XNEWVEC.
476 * opts-common.c (generate_canonical_option, decode_cmdline_option,
477 generate_option): Likewise.
478 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
479 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
480
f5c2caca
JJ
481 PR target/56455
482 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
483 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
484
d0163673
JJ
4852013-02-26 Jakub Jelinek <jakub@redhat.com>
486
487 PR middle-end/56461
488 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
489
b5ad2b8e
JR
4902013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
491
492 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
493 (arm_block_move_unaligned_straight): Likewise.
494 (arm_adjust_block_mem): Likewise.
495
9b639e2c
JR
4962013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
497
498 PR target/48901
499 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
500 temp, cond and label.
501 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
502
e13a0ccb
JR
503 PR target/52500
504 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
505 * config/c6x/c6x.h (dbx_register_map): Update declaration.
506
fbe4f171
JR
507 PR target/52501
508 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
509 of prologue/epilogue functions.
510
ae006543
JR
511 PR target/52550
512 * config/tilegx/tilegx.c (tilegx_expand_prologue):
513 Remove unused variable cfa_offset.
514 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
515
c81369fa
JR
516 PR target/54639
517 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
518 type promotion to unsigned.
519
f8a8fea7
JR
520 PR target/54640
521 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
522 for HOST_WIDE_INT of 32 bit / same size as int.
523 (arm_block_move_unaligned_straight): Likewise.
524 (arm_adjust_block_mem): Likewise.
525
f8be5169
JR
526 PR target/54662
527 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
528 ALL_CFLAGS.
529
f1ad3354
MP
5302013-02-26 Marek Polacek <polacek@redhat.com>
531
532 PR tree-optimization/56426
533 * tree-ssa-loop.c (tree_ssa_loop_init): Always call
534 scev_initialize.
535
a6af0f42
RB
5362013-02-26 Richard Biener <rguenther@suse.de>
537
538 PR target/56444
539 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
540 unused variable loops.
541
aca43c6c
JJ
5422013-02-26 Jakub Jelinek <jakub@redhat.com>
543
cecbe5d9
JJ
544 PR tree-optimization/56448
545 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
546 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
547 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
548 later operands of the references, or even first operand for
549 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
550
aca43c6c
JJ
551 PR tree-optimization/56443
552 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
553 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
554 to type_for_mode langhook.
555
53e2e141
MT
5562013-02-25 Matt Turner <mattst88@gmail.com>
557
558 * doc/invoke.texi: Document r4700.
559
259ee451
RB
5602013-02-25 Richard Biener <rguenther@suse.de>
561
562 PR tree-optimization/56175
563 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
564 split out from ...
565 (simplify_bitwise_binary): ... here. Also guard the conversion
566 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
567
6d65e8f1
CM
5682013-02-25 Catherine Moore <clm@codesourcery.com>
569
570 Revert:
571 2013-02-24 Catherine Moore <clm@codesourcery.com>
572 Maciej W. Rozycki <macro@codesourcery.com>
573 Tom de Vries <tom@codesourcery.com>
574 Nathan Sidwell <nathan@codesourcery.com>
575 Iain Sandoe <iain@codesourcery.com>
576 Nathan Froyd <froydnj@codesourcery.com>
577 Chao-ying Fu <fu@mips.com>
578 * doc/extend.texi: (micromips, nomicromips, nocompression):
579 Document new function attributes.
580 * doc/invoke.texi (minterlink-compressed, mmicromips,
581 m14k, m14ke, m14kec): Document new options.
582 (minterlink-mips16): Update documentation.
583 * doc/md.texi (ZC, ZD): Document new constraints.
584 * configure.ac (gcc_cv_as_micromips): Check if linker
585 supports the .set micromips directive.
586 * configure: Regenerate.
587 * config.in: Regenerate.
588 * config/mips/mips-tables.opt: Regenerate.
589 * config/mips/micromips.md: New file.
590 * constraints.md (ZC, AD): New constraints.
591 * config/mips/predicates.md (movep_src_register): New predicate.
592 (movep_src_operand): New predicate.
593 (non_volatile_mem_operand): New predicate.
594 * config/mips/mips.md (multimem): New type.
595 (length): Differentiate between 17-bit and 18-bit branch offsets.
596 (MOVEP1, MOVEP2): New mode iterator.
597 (mov_<load>l): Use ZC constraint.
598 (mov_<load>r): Likewise.
599 (mov_<store>l): Likewise.
600 (mov_<store>r): Likewise.
601 (*branch_equality<mode>_inverted): Add microMIPS support.
602 (*branch_equality<mode>): Likewise.
603 (*jump_absolute): Likewise.
604 (indirect_jump_<mode>): Likewise.
605 (tablejump_<mode>): Likewise.
606 (<optab>_internal): Likewise.
607 (sibcall_internal): Likewise.
608 (sibcall_value_internal): Likewise.
609 (prefetch): Use constraint ZD.
610 * config/mips/mips.opt (minterlink-compressed): New option.
611 (minterlink-mips16): Now an alias for minterlink-compressed.
612 (mmicromips): New option.
613 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
614 (compare_and_swap_12): Likewise.
615 (sync_add<mode>): Likewise.
616 (sync_<optab>_12): Likewise.
617 (sync_old_<optab>_12): Likewise.
618 (sync_new_<optab>_12): Likewise.
619 (sync_nand_12): Likewise.
620 (sync_old_nand_12): Likewise.
621 (sync_new_nand_12): Likewise.
622 (sync_sub<mode>): Likewise.
623 (sync_old_add<mode>): Likewise.
624 (sync_old_sub<mode>): Likewise.
625 (sync_new_add<mode>): Likewise.
626 (sync_new_sub<mode>): Likewise.
627 (sync_<optab><mode>): Likewise.
628 (sync_old_<optab><mode>): Likewise.
629 (sync_new_<optab><mode>): Likewise.
630 (sync_nand<mode>): Likewise.
631 (sync_old_nand<mode>): Likewise.
632 (sync_new_nand<mode>): Likewise.
633 (sync_lock_test_and_set<mode>): Likewise.
634 (test_and_set_12): Likewise.
635 (atomic_compare_and_swap<mode>): Likewise.
636 (atomic_exchange<mode>_llsc): Likewise.
637 (atomic_fetch_add<mode>_llsc): Likewise.
638 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
639 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
640 (umips_save_restore_pattern_p): Likewise.
641 (umips_load_store_pair_p): Likewise.
642 (umips_output_load_store_pair): Likewise.
643 (umips_movep_target_p): Likewise.
644 (umips_12bit_offset_address_p): Likewise.
645 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
646 (mips_base_mips16): Rename this...
647 (mips_base_compression_flags): ...to this. Update all uses.
648 (mips_attribute_table): Add micromips, nomicromips and nocompression.
649 (mips_mips16_decl_p): Delete.
650 (mips_nomips16_decl_p): Delete.
651 (mips_get_compress_on_flags): New function.
652 (mips_get_compress_off_flags): New function.
653 (mips_get_compress_mode): New function.
654 (mips_get_compress_on_name): New function.
655 (mips_get_compress_off_name): New function.
656 (mips_insert_attributes): Support multiple compression types.
657 (mips_merge_decl_attributes): Likewise.
658 (umips_12bit_offset_address_p): New function.
659 (mips_start_function_definition): Emit .set micromips directive.
660 (mips_call_may_need_jalx_p): New function.
661 (mips_function_ok_for_sibcall): Add microMIPS support.
662 (mips_print_operand_punctuation): Support short delay slots and
663 compact jumps.
664 (umips_swm_mask, umips_swm_encoding): New.
665 (umips_build_save_restore): New function.
666 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
667 (was_mips16_p): Remove.
668 (old_compression_mode): New.
669 (mips_set_compression_mode): New function.
670 (mips_set_current_function): Add microMIPS support.
671 (mips_option_override): Likewise.
672 (umips_save_restore_pattern_p): New function.
673 (umips_output_save_restore): New function.
674 (umips_load_store_pair_p_1): New function.
675 (umips_load_store_pair_p): New function.
676 (umips_output_load_store_pair_1): New function.
677 (umips_output_load_store_pair): New function.
678 (umips_movep_target_p) New function.
679 (mips_prepare_pch_save): Add microMIPS support.
680 * config/mips/mips.h (TARGET_COMPRESSION): New.
681 (TARGET_CPU_CPP_BUILTINS): Update macro
682 to use new compression flags and to support microMIPS.
683 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
684 (MIPS_ARCH_FLOAT_SPEC): Likewise.
685 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
686 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
687 (ASM_SPEC): Support mmicromips and mno-micromips.
688 (M16STORE_REG_P): New macro.
689 (MIPS_CALL): Support TARGET_MICROMIPS.
690 (MICROMIPS_J): New macro.
691 (mips_base_mips16): Rename this...
692 (mips_base_compression_flags): ...to this.
693 (UMIPS_12BIT_OFFSET_P): New macro.
694 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
695 (MULTILIB_DIRNAMES): Likewise.
696
5e5df392
TV
6972013-02-25 Tom de Vries <tom@codesourcery.com>
698
699 PR rtl-optimization/56131
700 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
701 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
702 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
703
3fdb53c1
TB
7042013-02-25 Tobias Burnus <burnus@net-b.de>
705
706 * doc/invoke.texi (-fsanitize=): Move from optimization
707 to debugging options.
708
ed358aea
AB
7092013-02-25 Andrey Belevantsev <abel@ispras.ru>
710
711 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
712
f45e9053
AB
7132013-02-25 Andrey Belevantsev <abel@ispras.ru>
714 Alexander Monakov <amonakov@ispras.ru>
715
716 PR middle-end/56077
717 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
718 flush pending lists also on non-jumps. Adjust comment.
719
6941b508
CM
7202013-02-24 Catherine Moore <clm@codesourcery.com>
721 Maciej W. Rozycki <macro@codesourcery.com>
722 Tom de Vries <tom@codesourcery.com>
723 Nathan Sidwell <nathan@codesourcery.com>
724 Iain Sandoe <iain@codesourcery.com>
725 Nathan Froyd <froydnj@codesourcery.com>
726 Chao-ying Fu <fu@mips.com>
727
728 * doc/extend.texi: (micromips, nomicromips, nocompression):
729 Document new function attributes.
730 * doc/invoke.texi (minterlink-compressed, mmicromips,
731 m14k, m14ke, m14kec): Document new options.
732 (minterlink-mips16): Update documentation.
733 * doc/md.texi (ZC, ZD): Document new constraints.
734 * configure.ac (gcc_cv_as_micromips): Check if linker
735 supports the .set micromips directive.
736 * configure: Regenerate.
737 * config.in: Regenerate.
738 * config/mips/mips-tables.opt: Regenerate.
739 * config/mips/micromips.md: New file.
740 * constraints.md (ZC, AD): New constraints.
741 * config/mips/predicates.md (movep_src_register): New predicate.
742 (movep_src_operand): New predicate.
743 (non_volatile_mem_operand): New predicate.
744 * config/mips/mips.md (multimem): New type.
745 (length): Differentiate between 17-bit and 18-bit branch offsets.
746 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 747 (mov_<load>l): Use ZC constraint.
6941b508
CM
748 (mov_<load>r): Likewise.
749 (mov_<store>l): Likewise.
750 (mov_<store>r): Likewise.
751 (*branch_equality<mode>_inverted): Add microMIPS support.
752 (*branch_equality<mode>): Likewise.
753 (*jump_absolute): Likewise.
754 (indirect_jump_<mode>): Likewise.
755 (tablejump_<mode>): Likewise.
756 (<optab>_internal): Likewise.
757 (sibcall_internal): Likewise.
758 (sibcall_value_internal): Likewise.
759 (prefetch): Use constraint ZD.
760 * config/mips/mips.opt (minterlink-compressed): New option.
761 (minterlink-mips16): Now an alias for minterlink-compressed.
762 (mmicromips): New option.
763 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
764 (compare_and_swap_12): Likewise.
765 (sync_add<mode>): Likewise.
766 (sync_<optab>_12): Likewise.
767 (sync_old_<optab>_12): Likewise.
768 (sync_new_<optab>_12): Likewise.
769 (sync_nand_12): Likewise.
770 (sync_old_nand_12): Likewise.
771 (sync_new_nand_12): Likewise.
772 (sync_sub<mode>): Likewise.
773 (sync_old_add<mode>): Likewise.
774 (sync_old_sub<mode>): Likewise.
775 (sync_new_add<mode>): Likewise.
776 (sync_new_sub<mode>): Likewise.
777 (sync_<optab><mode>): Likewise.
778 (sync_old_<optab><mode>): Likewise.
779 (sync_new_<optab><mode>): Likewise.
780 (sync_nand<mode>): Likewise.
781 (sync_old_nand<mode>): Likewise.
782 (sync_new_nand<mode>): Likewise.
783 (sync_lock_test_and_set<mode>): Likewise.
784 (test_and_set_12): Likewise.
785 (atomic_compare_and_swap<mode>): Likewise.
786 (atomic_exchange<mode>_llsc): Likewise.
787 (atomic_fetch_add<mode>_llsc): Likewise.
788 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
789 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
790 (umips_save_restore_pattern_p): Likewise.
791 (umips_load_store_pair_p): Likewise.
792 (umips_output_load_store_pair): Likewise.
793 (umips_movep_target_p): Likewise.
794 (umips_12bit_offset_address_p): Likewise.
795 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
796 (mips_base_mips16): Rename this...
797 (mips_base_compression_flags): ...to this. Update all uses.
798 (mips_attribute_table): Add micromips, nomicromips and nocompression.
799 (mips_mips16_decl_p): Delete.
800 (mips_nomips16_decl_p): Delete.
3fdb53c1 801 (mips_get_compress_on_flags): New function.
6941b508
CM
802 (mips_get_compress_off_flags): New function.
803 (mips_get_compress_mode): New function.
804 (mips_get_compress_on_name): New function.
805 (mips_get_compress_off_name): New function.
806 (mips_insert_attributes): Support multiple compression types.
807 (mips_merge_decl_attributes): Likewise.
808 (umips_12bit_offset_address_p): New function.
809 (mips_start_function_definition): Emit .set micromips directive.
810 (mips_call_may_need_jalx_p): New function.
811 (mips_function_ok_for_sibcall): Add microMIPS support.
812 (mips_print_operand_punctuation): Support short delay slots and
813 compact jumps.
814 (umips_swm_mask, umips_swm_encoding): New.
815 (umips_build_save_restore): New function.
816 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
817 (was_mips16_p): Remove.
818 (old_compression_mode): New.
819 (mips_set_compression_mode): New function.
820 (mips_set_current_function): Add microMIPS support.
821 (mips_option_override): Likewise.
822 (umips_save_restore_pattern_p): New function.
823 (umips_output_save_restore): New function.
824 (umips_load_store_pair_p_1): New function.
825 (umips_load_store_pair_p): New function.
826 (umips_output_load_store_pair_1): New function.
827 (umips_output_load_store_pair): New function.
828 (umips_movep_target_p) New function.
829 (mips_prepare_pch_save): Add microMIPS support.
830 * config/mips/mips.h (TARGET_COMPRESSION): New.
831 (TARGET_CPU_CPP_BUILTINS): Update macro
832 to use new compression flags and to support microMIPS.
833 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
834 (MIPS_ARCH_FLOAT_SPEC): Likewise.
835 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
836 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
837 (ASM_SPEC): Support mmicromips and mno-micromips.
838 (M16STORE_REG_P): New macro.
839 (MIPS_CALL): Support TARGET_MICROMIPS.
840 (MICROMIPS_J): New macro.
841 (mips_base_mips16): Rename this...
842 (mips_base_compression_flags): ...to this.
843 (UMIPS_12BIT_OFFSET_P): New macro.
844 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
845 (MULTILIB_DIRNAMES): Likewise.
846
cdebbc6d
JJ
8472013-02-24 Jakub Jelinek <jakub@redhat.com>
848
849 PR target/52555
850 * target-globals.c (save_target_globals): For init_reg_sets and
851 target_reinit remporarily set this_fn_optabs to this_target_optabs.
852
18c63565
JG
8532013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
854
855 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
856 * config/aarch64/t-aarch64
857 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
858
2194f7a2
VM
8592013-02-22 Vladimir Makarov <vmakarov@redhat.com>
860
861 PR inline-asm/56148
862 * lra-constraints.c (process_alt_operands): Reload operand
863 conflicting with earlier clobber only if no more other conflicting
864 operands.
865
7d613735
JJ
8662013-02-22 Jakub Jelinek <jakub@redhat.com>
867
868 PR sanitizer/56393
869 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
870 if not linking a shared library.
871
ac8d93a7
SL
8722013-02-22 Seth LaForge <sethml@google.com>
873
874 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
875
e0237780
GY
8762013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
877
3fdb53c1
TB
878 * config/arm/arm.md (split for extendsidi): Update condition.
879 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
880 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
881 (qhs_zextenddi_cstr): Likewise.
e0237780 882
d7fde18c
JJ
8832013-02-21 Jakub Jelinek <jakub@redhat.com>
884
be63b77d
JJ
885 PR middle-end/56420
886 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
887 avoid signed wrapping.
888 (expand_mult): Handle properly multiplication by
889 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
890 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
891 in the compiler if coeff is HOST_WIDE_INT_MIN.
892 (expand_divmod): Don't make ext_op1 static, change it's type to
893 uhwi. Avoid undefined behavior in -INTVAL (op1).
894
d7fde18c
JJ
895 PR rtl-optimization/50339
896 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
897 field.
898 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
899 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
900 into splitting_ashiftrt field.
901 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
902 ASHIFTRT.
903 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
904 choices.
905
6aad4455
AH
9062013-02-20 Aldy Hernandez <aldyh@redhat.com>
907
908 PR middle-end/56108
909 * trans-mem.c (execute_tm_mark): Do not expand transactions that
910 are sure to go irrevocable.
911
38fe784d
HPN
9122013-02-21 Hans-Peter Nilsson <hp@axis.com>
913
914 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
915 scalars are valid operands.
916
0fd44da3
MJ
9172013-02-21 Martin Jambor <mjambor@suse.cz>
918
919 PR tree-optimization/56310
920 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
921 only matching indices and non-negative final offsets.
922 (intersect_aggregates_with_edge): Pass src_idx to
923 agg_replacements_to_vector. Pass src_idx insstead of index to
924 intersect_with_agg_replacements.
925
7a92038b
MJ
9262013-02-21 Martin Jambor <mjambor@suse.cz>
927
928 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
929 instead of hard-wired defaults.
930
c0da9c37
MR
9312013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
932
933 * doc/invoke.texi (MIPS Options): Update documentation of the
934 floating-point multiply-accumulate instruction restrictions.
935
d247ea0c 9362013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
937
938 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
939 asan_shadow_offset on x86_64 linux.
940
22deefcb
RB
9412013-02-21 Richard Biener <rguenther@suse.de>
942
943 PR tree-optimization/56415
944 Revert
945 2013-02-11 Richard Biener <rguenther@suse.de>
946
947 PR tree-optimization/56273
948 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
949 first VRP run.
950
7bcc6e75
JJ
9512013-02-21 Jakub Jelinek <jakub@redhat.com>
952
a0ad148f
JJ
953 PR bootstrap/56258
954 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
955 instead of @itemx.
956
7bcc6e75
JJ
957 PR inline-asm/56405
958 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
959 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
960
a0a7b611
JH
9612013-02-20 Jan Hubicka <jh@suse.cz>
962
963 PR tree-optimization/56265
964 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is
965 referenced for firs ttime.
966
c0e50f72
RB
9672013-02-20 Richard Biener <rguenther@suse.de>
968
969 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
970 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
971 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
972 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
973 not return anything.
974 (rename_ssa_copies): Do not remove unused locals.
975 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
976 * tree-ssanames.c (pass_release_ssa_names): Remove unused
977 locals first.
978 * passes.c (execute_function_todo): Do not schedule unused locals
979 removal if cleanup_tree_cfg did something.
980 * tree-ssa-live.c (remove_unused_locals): Dump statistics
981 about the number of removed locals.
982
a52ca739
RB
9832013-02-20 Richard Biener <rguenther@suse.de>
984
985 PR tree-optimization/56398
986 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
987 SSA default defs.
988
ec9c9d1b
MJ
9892013-02-20 Martin Jambor <mjambor@suse.cz>
990
991 PR tree-optimization/55334
992 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
993 restricted pointers to arrays.
994
e91c8ed6
RB
9952013-02-20 Richard Biener <rguenther@suse.de>
996 Jakub Jelinek <jakub@redhat.com>
997
998 PR tree-optimization/56396
999 * tree-ssa-ccp.c (n_const_val): New static variable.
1000 (get_value): Return NULL for SSA names we don't have a lattice
1001 entry for.
1002 (ccp_initialize): Initialize n_const_val.
1003 * tree-ssa-copy.c (n_copy_of): New static variable.
1004 (init_copy_prop): Initialize n_copy_of.
1005 (get_value): Return NULL_TREE for SSA names we don't have a
1006 lattice entry for.
1007
3d916479
MJ
10082013-02-20 Martin Jambor <mjambor@suse.cz>
1009
1010 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
1011
71a86758
RB
10122013-02-20 Richard Biener <rguenther@suse.de>
1013
1014 * genpreds.c (write_lookup_constraint): Do not compare first
1015 letter of the constraint again.
1016
79836a12
RB
10172013-02-20 Richard Biener <rguenther@suse.de>
1018
1019 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
1020 and ceil_log2.
1021 (get_use_iv_cost): Terminate hashtable walk when coming across
1022 an empty entry.
1023
bbe4fb2c
IZ
10242013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
1025
1026 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
1027 reassociation for avx2 targets.
1028
c77f83d5 10292012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 1030
c77f83d5
EI
1031 * config/microblaze/microblaze.c: microblaze_has_clz = 0
1032 Add version check for v8.10.a to enable microblaze_has_clz
1033 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
1034 version and TARGET_PATTERN_COMPARE check
1035 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 1036
959434e6
EI
10372012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1038
1039 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
1040 function before branching.
1041
242387fa
AB
10422012-02-19 Andrey Belevantsev <abel@ispras.ru>
1043
1044 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
1045 DUMP_INSN_RTX_UID.
1046 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
1047
b4979ab9
AB
10482012-02-19 Andrey Belevantsev <abel@ispras.ru>
1049
1050 PR middle-end/55889
1051
1052 * sel-sched.c: Include ira.h.
1053 (implicit_clobber_conflict_p): New function.
1054 (moveup_expr): Use it.
1055 * Makefile.in (sel-sched.o): Depend on ira.h.
1056
24d63016
RB
10572013-02-19 Richard Biener <rguenther@suse.de>
1058
1059 PR tree-optimization/56384
1060 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
1061 (vn_hash_type): Split out from ...
1062 (vn_hash_constant_with_type): ... here.
1063 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
1064 (vn_phi_eq): Compare types from vn_phi_s structure.
1065 (vn_phi_lookup): Populate vn_phi_s type.
1066 (vn_phi_insert): Likewise.
1067
a475fd3d
JJ
10682013-02-19 Jakub Jelinek <jakub@redhat.com>
1069
47cc28f5
JJ
1070 PR tree-optimization/56350
1071 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
1072 if haven't found reduction or nested cycle operand, rather than
1073 asserting we must find it.
1074
a475fd3d
JJ
1075 PR tree-optimization/56381
1076 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
1077 to fold_build3.
1078
10792013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
1080 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR target/52555
1083 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
1084 (swap_optab_enable): Same.
1085 (init_all_optabs): Use argument instead of global.
1086 * tree.h (struct tree_optimization_option): New field
1087 target_optabs.
1088 * expr.h (init_all_optabs): Add argument to prototype.
1089 (TREE_OPTIMIZATION_OPTABS): New.
1090 (save_optabs_if_changed): Protoize.
1091 * optabs.h: Declare this_fn_optabs.
1092 * optabs.c (save_optabs_if_changed): New.
1093 Declare this_fn_optabs.
1094 (init_optabs): Add argument to init_all_optabs() call.
1095 * function.c (invoke_set_current_function_hook): Handle per
1096 function optabs.
1097 * function.h (struct function): New field optabs.
1098 * config/mips/mips.c (mips_set_mips16_mode): Handle when
1099 optimization_current_node has changed.
1100 * target-globals.h (save_target_globals_default_opts): Protoize.
1101 * target-globals.c (save_target_globals_default_opts): New.
1102
3f587ca3
JDA
11032013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1104
1105 PR target/56347
1106 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
1107 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
1108
1109 PR target/56214
1110 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
1111 and HImode, require all displacements to be an integer multiple of their
1112 mode size.
1113 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
1114 only allow QImode and HImode when reload is in progress and strict is
1115 true. Likewise for symbolic addresses. Use base14_operand to check
1116 displacements in REG+BASE addresses.
1117
fe0b4796
RB
11182013-02-18 Richard Biener <rguenther@suse.de>
1119
1120 PR tree-optimization/56366
1121 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1122 handle sign-conversion of outer-loop initial induction value.
1123
6aaf596b
RB
11242013-02-18 Richard Biener <rguenther@suse.de>
1125
73db8ff1 1126 PR middle-end/56349
6aaf596b
RB
1127 * cfghooks.c (merge_blocks): If we merge a latch into another
1128 block adjust references to it.
1129 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
1130 (verify_loop_structure): Verify that a recorded latch is in fact
1131 a latch.
1132
5e97dfb6
RB
11332013-02-18 Richard Biener <rguenther@suse.de>
1134
1135 PR tree-optimization/56321
1136 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
1137 order SSA name release and virtual operand unlinking.
1138
825527e8
EI
11392013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1140
1141 * config/microblaze/microblaze.md (save_stack_block): Define.
1142 (restore_stack_block): Likewise.
1143
debd11d9
EI
11442013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1145
1146 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
1147 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
1148 * config/microblaze/microblaze.c (microblaze_option_override):
1149 Bail out early for PIC modes when target does not support PIC.
1150
8ec77be0
EI
11512013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1152
1153 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
1154 Replace with a microblaze version.
1155 (microblaze_trampoline_init): Adapt for microblaze.
1156 * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
1157 microblaze.
1158
b41288b3
JJ
11592013-02-16 Jakub Jelinek <jakub@redhat.com>
1160 Dodji Seketeli <dodji@redhat.com>
1161
1162 PR asan/56330
1163 * asan.c (get_mem_refs_of_builtin_call): White space and style
1164 cleanup.
1165 (instrument_mem_region_access): Do not forget to always put
1166 instrumentation of the of 'base' and 'base + len' in a "if (len !=
1167 0) statement, even for cases where either 'base' or 'base + len'
1168 are not instrumented -- because they have been previously
1169 instrumented. Simplify the logic by putting all the statements
1170 instrument 'base + len' inside a sequence, and then insert that
1171 sequence right before the current insertion point. Then, to
1172 instrument 'base + len', just get an iterator on that statement.
1173 And do not forget to update the pointer to iterator the function
1174 received as argument.
1175
47918951
VM
11762013-02-15 Vladimir Makarov <vmakarov@redhat.com>
1177
1178 PR rtl-optimization/56348
1179 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
1180
3fb7c699
SB
11812013-02-15 Steven Bosscher <steven@gcc.gnu.org>
1182
1183 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
1184 (clean_graph_dump_file): Pass base to start_graph_dump.
1185
576fe41a
RH
11862013-02-14 Richard Henderson <rth@redhat.com>
1187
1188 PR target/55941
1189 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
1190
bb3accfa
SB
11912013-02-14 Steven Bosscher <steven@gcc.gnu.org>
1192
1193 * collect2-aix.h: Define F_LOADONLY.
1194
03143140
RB
11952013-02-14 Richard Biener <rguenther@suse.de>
1196
1197 PR lto/50494
1198 * varasm.c (output_constant_def_1): Get the decl representing
1199 the constant as argument.
1200 (output_constant_def): Wrap output_constant_def_1.
1201 (make_decl_rtl): Use output_constant_def_1 with the decl
1202 representing the constant.
1203 (build_constant_desc): Optionally re-use a decl already
1204 representing the constant.
1205 (tree_output_constant_def): Adjust.
1206
8fb06726
DS
12072013-02-14 Dodji Seketeli <dodji@redhat.com>
1208
1209 Fix an asan crash
1210 * asan.c (instrument_builtin_call): Really put the length of the
1211 second source argument into src1_len.
1212
c4bfe8bf
JJ
12132013-02-13 Jakub Jelinek <jakub@redhat.com>
1214
1215 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
1216 argument. If it is false, don't create edge from then_bb to
1217 fallthru_bb.
1218 (insert_if_then_before_iter): Pass true to it.
1219 (build_check_stmt): Pass false to it.
1220 (transform_statements): Flush hash table only on extended basic
1221 block boundaries, rather than at the beginning of every bb.
1222 Don't flush hash table on nonfreeing_call_p calls.
1223 * tree-flow.h (nonfreeing_call_p): New prototype.
1224 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
1225
7afe2801
DM
12262013-02-13 David S. Miller <davem@davemloft.net>
1227
1228 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1229
70cc3288
VM
12302013-02-13 Vladimir Makarov <vmakarov@redhat.com>
1231
1232 PR target/56184
1233 * ira.c (max_regno_before_ira): Move from ...
1234 (ira): ... here.
1235 (fix_reg_equiv_init): Use max_regno_before_ira instead of
1236 vec_safe_length.
1237
6422242b
JJ
12382013-02-13 Jakub Jelinek <jakub@redhat.com>
1239
1240 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1241
976a81ee
RB
12422013-02-13 Richard Biener <rguenther@suse.de>
1243
1244 PR lto/56295
1245 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1246 globals in MEM_REFs.
1247
c1874a87
RB
12482013-02-13 Richard Biener <rguenther@suse.de>
1249
1250 * loop-init.c (loop_optimizer_init): Clear loop state when
1251 re-initializing preserved loops.
1252 * loop-unswitch.c (unswitch_single_loop): Return whether
1253 we unswitched the loop. Do not verify loop state here.
1254 (unswitch_loops): When we unswitched a loop discover new
1255 loops.
1256
b4ab7d34
KS
12572013-02-13 Kostya Serebryany <kcc@google.com>
1258
1259 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
1260 linux.
1261 * sanitizer.def: Rename __asan_init to __asan_init_v1.
1262
bdcbe80c
DS
12632013-02-12 Dodji Seketeli <dodji@redhat.com>
1264
1265 Avoid instrumenting duplicated memory access in the same basic block
1266 * Makefile.in (asan.o): Add new dependency on hash-table.h
1267 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1268 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1269 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1270 (free_mem_ref_resources, has_mem_ref_been_instrumented)
1271 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1272 (get_mem_ref_of_assignment): New functions.
1273 (get_mem_refs_of_builtin_call): Extract from
1274 instrument_builtin_call and tweak a little bit to make it fit with
1275 the new signature.
1276 (instrument_builtin_call): Use the new
1277 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
1278 of is_gimple_builtin_call.
1279 (instrument_derefs, instrument_mem_region_access): Insert the
1280 instrumented memory reference into the hash table.
1281 (maybe_instrument_assignment): Renamed instrument_assignment into
1282 this, and change it to advance the iterator when instrumentation
1283 actually happened and return true in that case. This makes it
1284 homogeneous with maybe_instrument_assignment, and thus give a
1285 chance to callers to be more 'regular'.
1286 (transform_statements): Clear the memory reference hash table
1287 whenever we enter a new BB, when we cross a function call, or when
1288 we are done transforming statements. Use
1289 maybe_instrument_assignment instead of instrumentation. No more
1290 need to special case maybe_instrument_assignment and advance the
1291 iterator after calling it; it's now handled just like
1292 maybe_instrument_call. Update comment.
1293
4861a1f7
RB
12942013-02-13 Richard Biener <rguenther@suse.de>
1295
1296 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1297 Fix loop discovery code.
1298
1c86bd80
VM
12992013-02-12 Vladimir Makarov <vmakarov@redhat.com>
1300
1301 PR inline-asm/56148
1302 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 1303 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
1304 the operand is not reloaded. Prefer to reload conflicting operand
1305 if earlyclobber and matching operands are the same.
1306
7cbda518
RB
13072013-02-12 Richard Biener <rguenther@suse.de>
1308
1309 PR lto/56297
1310 * lto-streamer-out.c (write_symbol): Do not output symbols
1311 for hard register variables.
1312
e68a4ef6
GJL
13132013-02-12 Georg-Johann Lay <avr@gjlay.de>
1314
1315 PR target/54222
1316 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1317 (umulsidi3_insn, mulsidi3_insn): New insns.
1318
2597da22
CL
13192013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
1320
1321 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1322 (struct tune_params): Add vec_costs field.
1323 * config/arm/arm.c (arm_builtin_vectorization_cost)
1324 (arm_add_stmt_cost): New functions.
1325 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1326 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1327 (arm_default_vec_cost): New struct of type cpu_vec_costs.
1328 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1329 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1330 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1331 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1332
43320568
RB
13332013-02-12 Richard Biener <rguenther@suse.de>
1334
1335 PR lto/56295
1336 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1337 decls again if possible.
1338
a011aa39
RB
13392013-02-12 Richard Biener <rguenther@suse.de>
1340
1341 PR middle-end/56288
1342 * tree-ssa.c (verify_ssa_name): Fix check, move
1343 SSA_NAME_IN_FREE_LIST check up.
1344
6da26889
JJ
13452013-02-12 Jakub Jelinek <jakub@redhat.com>
1346 Steven Bosscher <steven@gcc.gnu.org>
1347
1348 PR rtl-optimization/56151
1349 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1350 equal to op0 or op1, and last_insn pattern is CODE operation
1351 with MEM dest and one of the operands matches that MEM.
1352
f80e0faf
ST
13532013-02-11 Sriraman Tallam <tmsriramgoogle.com>
1354
1355 * doc/extend.texi: Document Function Multiversioning and "default"
1356 parameter string to target attribute.
1357 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1358 target attribute parameter is "default".
1359 (ix86_compare_version_priority): Remove checks for target attribute.
1360 (ix86_mangle_function_version_assembler_name): Change error to sorry.
1361 Remove check for target attribute equal to NULL. Add assert.
1362 (ix86_generate_version_dispatcher_body): Change error to sorry.
1363
6c59ffd1
IS
13642013-02-11 Iain Sandoe <iain@codesourcery.com>
1365 Jack Howarth <howarth@bromo.med.uc.edu>
1366 Patrick Marlier <patrick.marlier@gmail.com>
1367
1368 PR libitm/55693
1369 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1370 define ENDFILE_SPEC as TM_DESTRUCTOR.
1371 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1372
6a52ccb3
AP
13732013-02-11 Alexander Potapenko <glider@google.com>
1374 Jack Howarth <howarth@bromo.med.uc.edu>
1375 Jakub Jelinek <jakub@redhat.com>
1376
1377 PR sanitizer/55617
1378 * config/darwin.c (cdtor_record): Rename ctor_record.
1379 (sort_cdtor_records): Rename sort_ctor_records.
1380 (finalize_dtors): New routine to sort destructors by
1381 priority before use in assemble_integer.
1382 (machopic_asm_out_destructor): Use finalize_dtors if needed.
1383
b63fe007
UB
13842013-02-11 Uros Bizjak <ubizjak@gmail.com>
1385
1386 PR rtl-optimization/56275
1387 * simplify-rtx.c (avoid_constant_pool_reference): Check that
1388 offset is non-negative and less than cmode size before
1389 calling simplify_subreg.
1390
8e89b5b5
RB
13912013-02-11 Richard Biener <rguenther@suse.de>
1392
1393 PR tree-optimization/56264
1394 * cfgloop.h (fix_loop_structure): Adjust prototype.
1395 * loop-init.c (fix_loop_structure): Return the number of
1396 newly discovered loops.
1397 * tree-cfgcleanup.c (repair_loop_structures): When new loops
1398 are discovered, do a full loop-closed SSA rewrite.
1399
b4a4b56d
RB
14002013-02-11 Richard Biener <rguenther@suse.de>
1401
1402 PR tree-optimization/56273
1403 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1404 first VRP run.
1405 (check_array_ref): Fix missing newline in dumps.
1406 (search_for_addr_array): Likewise.
1407
0c885229
DE
14082013-02-09 David Edelsohn <dje.gcc@gmail.com>
1409
1410 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1411
59ac9a55
JJ
14122013-02-09 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR target/56256
1415 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1416
25bb0bb5
VM
14172013-02-08 Vladimir Makarov <vmakarov@redhat.com>
1418
1419 PR rtl-optimization/56246
0c885229 1420 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
1421 reload pseudo.
1422 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1423 constraints are satisfied.
1424
a698cc03
JL
14252013-02-08 Jeff Law <law@redhat.com>
1426
1427 PR debug/53948
1428 * emit-rtl.c (reg_is_parm_p): New function.
1429 * regs.h (reg_is_parm_p): New prototype.
1430 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1431 callee-clobbered registers.
1432
e1122ddd
MM
14332013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1434
1435 PR target/56043
1436 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1437 If there is no implicit builtin declaration, just return NULL.
1438
19c5f6e6
UB
14392013-02-08 Uros Bizjak <ubizjak@gmail.com>
1440
1441 * config/i386/sse.md (FMAMODEM): New mode iterator.
1442 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1443 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1444
2480f2ca 14452013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 1446
2480f2ca
UB
1447 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1448 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1449 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1450
14512013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1452
1453 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1454 (microblaze*-*-elf): Likewise.
1455 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1456 LINK_SPEC.
1457 * config/microblaze/microblaze-c.c: Add builtin defines for
1458 _LITTLE_ENDIAN and _BIG_ENDIAN.
1459 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1460 add to TARGET_DEFAULT flags.
76ef61fb 1461 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
1462 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1463 * config/microblaze/microblaze.md: Update extendsidi2 and
1464 movdi_internal instructions to use low-order / high-order reg
1465 print_operands.
1466 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
1467 options and inversemask / mask of LITTLE_ENDIAN.
1468 * config/microblaze/t-microblaze: Expand multilib options to
1469 include mlittle-endian (le) and update exceptions patterns.
1470
600a5961
JJ
14712013-02-08 Jakub Jelinek <jakub@redhat.com>
1472
5df81313
JJ
1473 PR rtl-optimization/56195
1474 * lra-constraints.c (get_reload_reg): Don't reuse regs
1475 if they have smaller mode than requested, if they have
1476 wider mode than requested, try to return a SUBREG.
1477
600a5961
JJ
1478 PR tree-optimization/56250
1479 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
1480 if type is unsigned and code isn't MULT_EXPR.
1481
ff544649
GJL
14822013-02-08 Georg-Johann Lay <avr@gjlay.de>
1483
1484 PR tree-optimization/56064
1485 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
1486 bits according to mode.
1487 * fixed-value.h (fixed_from_double_int)
1488 (const_fixed_from_double_int): Adjust comments.
1489
e45cde98
RB
14902013-02-08 Richard Biener <rguenther@suse.de>
1491
1492 PR lto/56231
1493 * lto-streamer.h (struct data_in): Remove current_file, current_line
1494 and current_col members.
1495 * lto-streamer-out.c (lto_output_location): Stream changed bits
1496 en-block for efficiency.
1497 * lto-streamer-in.c (clear_line_info): Remove.
1498 (lto_input_location): Cache current file, line and column
1499 globally via local statics. Read changed bits en-block.
1500 (input_function): Do not call clear_line_info.
1501 (lto_read_body): Likewise.
1502 (lto_input_toplevel_asms): Likewise.
1503
c1ca73d8
MM
15042013-02-08 Michael Matz <matz@suse.de>
1505
1506 PR tree-optimization/52448
1507 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
1508 (nt_call_phase): New static.
1509 (add_or_mark_expr): Only mark accesses with newer phase than any
1510 call seen.
1511 (nonfreeing_call_p): New.
1512 (nt_init_block): Update nt_call_phase, mark blocks as visited.
1513 (nt_fini_block): Keep blocks marked as visited.
1514 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
1515
57548aa2
RB
15162013-02-08 Richard Biener <rguenther@suse.de>
1517
1518 * ira.c (ira): Free broken dominator information.
1519
8e10366f
UB
15202013-02-08 Uros Bizjak <ubizjak@gmail.com>
1521
1522 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1523
f64fb0fa
MP
15242013-02-08 Marek Polacek <polacek@redhat.com>
1525
8e10366f 1526 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 1527
0375167b
RB
15282013-02-08 Richard Biener <rguenther@suse.de>
1529
1530 PR middle-end/56181
1531 * cfgloop.h (flow_loops_find): Adjust.
1532 (bb_loop_header_p): Declare.
1533 * cfgloop.c (bb_loop_header_p): New function split out from ...
1534 (flow_loops_find): ... here. Adjust function signature,
1535 support incremental loop structure update.
1536 (verify_loop_structure): Cleanup. Verify a loop is a loop.
1537 * cfgloopmanip.c (fix_loop_structure): Move ...
1538 * loop-init.c (fix_loop_structure): ... here.
1539 (apply_loop_flags): Split out from ...
1540 (loop_optimizer_init): ... here.
1541 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
1542 in incremental mode, only remove dead loops here.
1543
85d768f3
GJL
15442013-02-08 Georg-Johann Lay <avr@gjlay.de>
1545
1546 PR target/54222
1547 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
1548 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
1549 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
1550 (*round<mode>3.libgcc): New insns for fixed-modes.
1551 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
1552 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
1553 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
1554 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
1555 implementations. Define to __builtin_avr_absFX,
1556 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
1557 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
1558 __builtin_avr_countlsFX, respectively.
1559 * config/avr/avr-c.c (target.h): Include it.
1560 (enum avr_builtin_id): New enum.
1561 (avr_resolve_overloaded_builtin): New static function.
1562 (avr_register_target_pragmas): Use it to set
1563 targetm.resolve_overloaded_builtin.
1564 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
1565 tree nodes used by DEF_BUILTIN.
1566 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
1567 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
1568 <AVR_BUILTIN_xxBITS>: Same.
1569
661bc682
RB
15702013-02-08 Richard Biener <rguenther@suse.de>
1571
1572 * cfgloop.c (verify_loop_structure): Properly handle
1573 a loop exiting to another loop header.
1574 * ira-int.h (ira_loops): Remove.
1575 * ira.c (ira_loops): Remove.
1576 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
1577 (do_reload): Use loop_optimizer_finalize.
1578 * ira-build.c (create_loop_tree_nodes): Use get_loops and
1579 number_of_loops to access the loop tree.
1580 (more_one_region_p): Likewise.
1581 (finish_loop_tree_nodes): Likewise.
1582 (rebuild_regno_allocno_maps): Likewise.
1583 (mark_loops_for_removal): Likewise.
1584 (mark_all_loops_for_removal): Likewise.
1585 (remove_unnecessary_regions): Likewise.
1586 (ira_build): Likewise.
1587 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1588
0d5049b2
RB
15892013-02-08 Richard Biener <rguenther@suse.de>
1590
1591 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
1592 * ipa-pure-const.c (analyze_function): Avoid calling
1593 mark_irreducible_loops twice.
8e10366f 1594 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 1595
499f32e8
DM
15962013-02-07 David S. Miller <davem@davemloft.net>
1597
1598 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1599 on 'reg'.
1600 * var-tracking.c (vt_add_function_parameter): Test the presence of
1601 HAVE_window_save properly and do not remap argument registers when
1602 we have a leaf function.
1603
6edc3e32
UB
16042013-02-07 Uros Bizjak <ubizjak@gmail.com>
1605
1606 PR bootstrap/56227
1607 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1608 instead of "ll".
1609 * config/i386/i386.c (ix86_print_operand): Ditto.
1610
5306401f
VM
16112013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1612
6edc3e32 1613 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 1614
027ece11
VM
16152013-02-07 Vladimir Makarov <vmakarov@redhat.com>
1616
1617 PR rtl-optimization/56225
1618 * lra-constraints.c (process_alt_operands): Check that reload hard
1619 reg can hold value for strict_low_part.
1620
f980dfdb
JJ
16212013-02-07 Jakub Jelinek <jakub@redhat.com>
1622
1623 PR debug/56154
1624 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
1625 dwarf2out_end_function.
1626 (in_first_function_p, maybe_at_text_label_p,
1627 first_loclabel_num_not_at_text_label): New variables.
1628 (dwarf2out_var_location): In the first function find out
6edc3e32 1629 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
1630 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
1631 functions.
1632
73dd3123
EB
16332013-02-07 Eric Botcazou <ebotcazou@adacore.com>
1634
1635 PR rtl-optimization/56178
1636 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
1637 SUBREG of a register. Tidy up related block of code.
1638 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
1639 note if the source is a register or a SUBREG of a register.
1640
e3936f47
JJ
16412013-02-07 Jakub Jelinek <jakub@redhat.com>
1642
1643 PR target/56228
1644 * config/rs6000/rs6000.md (ptrm): New mode attr.
1645 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
1646 call_value_indirect_aix<pttrsize>,
1647 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
1648 m in constraints.
1649
d96d674b
MH
16502013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1651
1652 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
1653 if -bnortl. Convert to strcmp and strncmp.
1654
921f2dee
AM
16552013-02-07 Alan Modra <amodra@gmail.com>
1656
1657 PR target/54009
1658 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
1659 addresses won't wrap when offsetting.
1660 (rs6000_secondary_reload): Provide secondary reloads needed for
1661 wrapping LO_SUM addresses.
1662
d09c7dba
TS
16632013-02-06 Thomas Schwinge <thomas@codesourcery.com>
1664
1665 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
1666 MACH, just __MACH__.
1667
a44bbd48
RB
16682013-02-06 Richard Biener <rguenther@suse.de>
1669
1670 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
1671 instead of calling fix_loop_structure.
1672
6d840d99
JJ
16732013-02-06 Jakub Jelinek <jakub@redhat.com>
1674
1675 PR middle-end/56217
1676 * omp-low.c (use_pointer_for_field): Return false if
1677 lower_send_shared_vars doesn't generate any copy-out code.
1678
0f33baa9
TV
16792013-02-06 Tom de Vries <tom@codesourcery.com>
1680
1681 PR rtl-optimization/56131
1682 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
1683 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
1684 of the label is NULL. Add comment.
1685
11f1e3ab
JJ
16862013-02-05 Jakub Jelinek <jakub@redhat.com>
1687
31502f9f
JJ
1688 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
1689
a74db9bd
JJ
1690 PR sanitizer/55374
1691 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
1692 (STATIC_LIBTSAN_LIBS): Likewise.
1693 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
1694 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
1695 is defined, don't add anything else beyond that.
1696 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
1697 (LINK_COMMAND_SPEC): Use them.
1698
11f1e3ab
JJ
1699 PR tree-optimization/56205
1700 * tree-stdarg.c (check_all_va_list_escapes): Return true if
1701 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
1702 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
1703
14ac6aa2
RB
17042013-02-05 Richard Biener <rguenther@suse.de>
1705
1706 PR tree-optimization/53342
1707 PR tree-optimization/53185
1708 * tree-vectorizer.h (vect_check_strided_load): Remove.
1709 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
1710 not disallow peeling for vectorized strided loads.
1711 (vect_check_strided_load): Make static and simplify.
1712 (vect_analyze_data_refs): Adjust.
1713 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
1714 correctly when vectorizing strided loads.
1715
6f22445a
RB
17162013-02-05 Richard Biener <rguenther@suse.de>
1717
1718 * doc/install.texi: Refer to ISL, not PPL.
1719
39f9719e
JH
17202013-02-05 Jan Hubicka <jh@suse.cz>
1721
ec4224ac
JH
1722 PR tree-optimization/55789
1723 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
1724
17252013-02-05 Jan Hubicka <jh@suse.cz>
1726
1727 PR tree-optimization/55789
39f9719e
JH
1728 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
1729 the dead call anyway.
1730
956d3b33
EB
17312013-02-05 Eric Botcazou <ebotcazou@adacore.com>
1732
1733 PR sanitizer/55374
1734 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
1735
17362013-02-04 Alexander Potapenko <glider@google.com>
1737 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
1738 Jakub Jelinek <jakub@redhat.com>
1739
1740 PR sanitizer/55617
1741 * config/darwin.c (sort_ctor_records): Stabilized qsort
1742 on constructor priority by using original position.
1743 (finalize_ctors): New routine to sort constructors by
1744 priority before use in assemble_integer.
1745 (machopic_asm_out_constructor): Use finalize_ctors if needed.
1746
7ac3af38
JJ
17472013-02-04 Jakub Jelinek <jakub@redhat.com>
1748
1749 PR libstdc++/54314
1750 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
1751 about visibility on artificial decls.
1752 * config/sol2.c (solaris_assemble_visibility): Likewise.
1753
152689dc
KT
17542013-02-04 Kai Tietz <ktietz@redhat.com>
1755
1756 PR target/56186
1757 * config/i386/i386.c (function_value_ms_64): Add additional valtype
1758 argument and improve checking of return-argument types for 16-byte
1759 modes.
1760 (ix86_function_value_1): Add additional valtype argument on call
1761 of function_value_64.
1762 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
1763 handling infunction_value_64 function.
1764
2b5987b5
MGD
17652013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
1766
7ac3af38 1767 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 1768
14597080
RB
17692013-02-04 Richard Biener <rguenther@suse.de>
1770
1771 PR tree-optimization/56188
1772 * tree-ssa-structalias.c (label_visit): Consider case with
1773 initially non-empty points-to set.
1774 (perform_var_substitution): Dump node mapping and clean up.
1775
ed73881e
RG
17762013-02-04 Richard Guenther <rguenther@suse.de>
1777
1778 PR lto/56168
1779 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
1780 node prevail as last resort.
1781 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 1782 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 1783
139a0707
RB
17842013-02-04 Richard Biener <rguenther@suse.de>
1785
1786 PR tree-optimization/56113
1787 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
1788 Merge into ...
1789 (equiv_class_lookup_or_add): ... this.
1790 (label_visit): Adjust and fix error in previous patch.
1791 (perform_var_substitution): Adjust.
1792
50fe8924
OE
17932013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
1794
1795 * config/sh/divtab.c: Fix formatting and comments throughout the file.
1796 * config/sh/sh4-300.md: Likewise.
1797 * config/sh/sh4a.md: Likewise.
1798 * config/sh/constraints.md: Likewise.
1799 * config/sh/sh.md: Likewise.
1800 * config/sh/netbsd-elf.h: Likewise.
1801 * config/sh/predicates.md: Likewise.
1802 * config/sh/sh-protos.h: Likewise.
1803 * config/sh/ushmedia.h: Likewise.
1804 * config/sh/linux.h: Likewise.
1805 * config/sh/sh.c: Likewise.
1806 * config/sh/superh.h: Likewise.
1807 * config/sh/elf.h: Likewise.
1808 * config/sh/sh4.md: Likewise.
1809 * config/sh/sh.h: Likewise.
1810
1a04ac2b
JDA
18112013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1812
1813 * config/pa/constraints.md: Adjust unused letters. Change "T"
1814 constraint to match_test floating_point_store_memory_operand().
1815 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
1816 (base14_operand): New.
1817 (floating_point_store_memory_operand): New.
1818 (integer_store_memory_operand): Revise to use base14_operand and
1819 reg_plus_base_memory_operand.
1820 (move_dest_operand): Allow symbolic_memory_operands.
1821 (symbolic_memory_operand): Check for LO_SOM.
1822 (symbolic_operand): Change default case to break.
1823 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
1824 CONST_DOUBLE values to be reloaded by putting them into memory when
1825 the destination is a floating point register.
1826 (movdf): Remove code to handle CONST_DOUBLE.
1827 (movsf): Likewise.
1828 (reload_indf_r1): New.
1829 (reload_insf_r1): New.
1830 Consistently use "Q" and "T" constraints with integer and floating
1831 point move instructions, respectively.
1832 (movdi): Remove FAIL.
1833 Change predicate for source operand unamed DImode move from
1834 general_operand to move_src_operand.
1835 (umulsidi3): Change predicate for destination operand to
1836 register_operand.
1837 Likewise for similar unamed patterns.
1838 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
1839 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
1840 (hppa_legitimize_address): Simplify mask calculation.
1841 (pa_emit_move_sequence): Revised handling of secondary reloads from
1842 REG+D addresses for floating point loads and stores. Directly handle
1843 loading CONST0_RTX (mode) to a floating point register.
1844 (pa_secondary_reload): Handle reloading DF and SFmode constant values
1845 to floating point registers. Don't restrict secondary reloads to
1846 floating point registers to integer modes. Revise some comments and
1847 cleanup some code.
1848 (TARGET_LEGITIMATE_ADDRESS_P): Define.
1849 (pa_legitimate_address_p): New.
1850 (pa_legitimize_reload_address): New.
1851 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
1852 (STRICT_REG_OK_FOR_BASE_P): New.
1853 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
1854 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
1855
3bf65591
DE
18562013-02-03 David Edelsohn <dje.gcc@gmail.com>
1857 Andrew Dixie <andrewd@gentrack.com>
1858
1859 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
1860 flag set.
1861
c0a8a3e6
RS
18622013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
1863
1864 * expmed.c (extract_bit_field_1): Pass the full width of the
1865 structure to get_best_reg_extraction_insn.
1866
99113dff
DE
18672013-02-01 David Edelsohn <dje.gcc@gmail.com>
1868
1869 PR target/54601
1870 * configure.ac (use_cxa_atexit): Add AIX.
1871 * configure: Regenerate.
1872
1873 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
1874
ddd84654
JJ
18752013-02-01 Jakub Jelinek <jakub@redhat.com>
1876
1877 PR debug/54793
1878 * final.c (need_profile_function): New variable.
1879 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
1880 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
1881 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
1882 notes, targetm.asm_out.function_prologue doesn't emit anything,
1883 HAVE_prologue and profiler should be emitted before prologue,
1884 set need_profile_function instead of emitting it.
1885 (final_scan_insn): If need_profile_function, emit
1886 profile_function on the first NOTE_INSN_BASIC_BLOCK or
1887 NOTE_INSN_FUNCTION_BEG note.
1888
18892013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
1890
1891 * config/rs6000/rs6000.md (smulditi3): New.
1892 (umulditi3): New.
1893
ff2a9d88
RH
1894 * config/alpha/alpha.md (umulditi3): New.
1895
14d52b90
DE
18962013-02-01 David Edelsohn <dje.gcc@gmail.com>
1897
1898 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
1899 (ASM_OUTPUT_ALIGNED_LOCAL): New.
1900
8c7ca45c
RB
19012013-02-01 Richard Biener <rguenther@suse.de>
1902
1903 PR tree-optimization/56113
1904 * tree-ssa-structalias.c (label_visit): Reduce work for
1905 single-predecessor nodes.
1906
9f419393
EB
19072013-02-01 Eric Botcazou <ebotcazou@adacore.com>
1908
1909 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
1910 range isn't testing for zero.
1911
c5f4be84
SB
19122013-01-31 Steven Bosscher <steven@gcc.gnu.org>
1913
1914 PR middle-end/56113
1915 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
1916
dbdbd982
NC
19172013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
1918 Nick Clifton <nickc@redhat.com>
1919
1920 * config/v850/constraints.md (Q): Define as a memory constraint.
1921 * config/v850/predicates.md (label_ref_operand): New predicate.
1922 (e3v5_shift_operand): New predicate.
1923 (ior_operator): New predicate.
1924 * config/v850/t-v850: Add e3v5 multilib.
1925 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
1926 (v850_gen_movdi): Prototype.
1927 * config/v850/v850.c: Add support for e3v5 architecture.
1928 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
1929 TARGET_V850E_UP.
1930 (construct_save_jarl): Add e3v5 long JARL support.
1931 (v850_adjust_insn_length): New function. Adjust length of call
1932 insns when using e3v5 instructions.
1933 (v850_gen_movdi): New function: Generate instructions to move a
1934 DImode value.
1935 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
1936 (CPP_SPEC): Define __v850e3v5__ as appropriate.
1937 (TARGET_USE_FPU): Enable for e3v5.
1938 (CONST_OK_FOR_W): New macro.
1939 (ADJUST_INSN_LENGTH): Define.
1940 * config/v850/v850.md (UNSPEC_LOOP): Define.
1941 (attr cpu): Add v850e3v5.
1942 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
1943 (movdi): New pattern.
1944 (movdi_internal): New pattern.
1945 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
1946 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
1947 (cstoresf4): Likewise.
1948 (cstoredf4): Likewise.
1949 (insv): New pattern.
1950 (rotlso3_a): New pattern.
1951 (rotlsi3_b): New pattern
1952 (rotlsi3_v850e3v5): New pattern.
1953 (doloop_begin): New pattern.
1954 (fix_loop_counter): New pattern.
1955 (doloop_end): New pattern.
1956 (branch_normal): Add e3v5 long branch support.
1957 (branch_invert): Likewise.
1958 (branch_z_normal): Likewise.
1959 (branch_z_invert): Likewise.
1960 (branch_nz_normal): Likewise.
1961 (branch_nz_invert): Likewise.
1962 (call_internal_short): Add e3v5 register-indirect JARL support.
1963 (call_internal_long): Likewise.
1964 (call_value_internal_short): Likewise.
1965 (call_value_internal_long): Likewise.
1966 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
1967 (mloop): New option.
1968 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 1969 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 1970
73861a41
PK
19712013-01-31 Paul Koning <ni1d@arrl.net>
1972
1973 PR debug/55059
1974 PR debug/54508
1975 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
1976 children if parent is a class.
1977 (prune_unused_types_prune): Don't add DW_AT_declaration.
1978
e44978dc
RB
19792013-01-31 Richard Biener <rguenther@suse.de>
1980
1981 PR tree-optimization/56157
1982 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
1983 match up operand with SLP child.
1984
90b10dec
JM
19852013-01-31 Jason Merrill <jason@redhat.com>
1986
04d2dadd 1987 PR debug/54410
90b10dec
JM
1988 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
1989 parameters the first time.
1990 (gen_scheduled_generic_parms_dies): Check completeness here.
1991
6e616110
RB
19922013-01-31 Richard Biener <rguenther@suse.de>
1993
1994 PR middle-end/53073
1995 * common.opt (faggressive-loop-optimizations): New flag,
1996 enabled by default.
1997 * doc/invoke.texi (faggressive-loop-optimizations): Document.
1998 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
1999 infer_loop_bounds_from_undefined by it.
2000
636f59cf
RB
20012013-01-31 Richard Biener <rguenther@suse.de>
2002
2003 PR tree-optimization/56150
2004 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
2005 visit virtual operands.
2006 (find_uses_to_rename_bb): Likewise.
2007
20082013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
2009
2010 PR tree-optimization/56150
2011 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
2012 mixed store non-store stmts.
2013
32887460
JJ
20142013-01-30 Jakub Jelinek <jakub@redhat.com>
2015
e60e09a0
JJ
2016 PR sanitizer/55374
2017 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
2018 LIBASAN_EARLY_SPEC is defined.
2019 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
2020 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
2021 before %o.
2022 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
2023
32887460
JJ
2024 PR c++/55742
2025 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
2026 invalid args instead of ICEing on it.
2027 (ix86_valid_target_attribute_tree): Return error_mark_node if
2028 ix86_valid_target_attribute_inner_p failed.
2029 (ix86_valid_target_attribute_p): Return false only if
2030 ix86_valid_target_attribute_tree returned error_mark_node. Allow
2031 target("default") attribute.
2032 (sorted_attr_string): Change argument from const char * to tree,
2033 merge in all target attribute arguments rather than just one.
2034 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
2035 instead of free. Avoid using strcat.
2036 (ix86_mangle_function_version_assembler_name): Mangle
2037 target("default") as if no target attribute is present. Adjust
2038 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
2039 instead of xmalloc and XDELETEVEC instead of free.
2040 (ix86_function_versions): Don't return true if one of the decls
2041 doesn't have target attribute. If they don't and one of the decls
2042 is DECL_FUNCTION_VERSIONED, report an error. Adjust
2043 sorted_attr_string caller. Use XDELETEVEC instead of free.
2044 (ix86_supports_function_versions): Remove.
2045 (make_name): Fix up formatting.
2046 (make_dispatcher_decl): Remove resolver_name and its initialization.
2047 Avoid leaking memory.
2048 (is_function_default_version): Return true if there is
2049 target("default") attribute rather than no target attribute at all.
2050 (make_resolver_func): Avoid leaking memory.
2051 (ix86_generate_version_dispatcher_body): Likewise.
2052 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
2053 * target.def (supports_function_versions): Remove.
2054 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
2055 * doc/tm.texi: Regenerated.
2056
73cca0cc
VM
20572013-01-30 Vladimir Makarov <vmakarov@redhat.com>
2058
2059 PR rtl-optimization/56144
2060 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
2061 for values with side effects.
2062
11452e7b
RB
20632013-01-30 Richard Biener <rguenther@suse.de>
2064
2065 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
2066 (sparseset_pop): Likewise.
2067 * cfganal.c (compute_idf): Likewise. Increase work-stack size
2068 to be able to use quick_push in the worker loop.
2069
01cb1ef5
MP
20702013-01-30 Marek Polacek <polacek@redhat.com>
2071
2072 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
2073
e892936e
RB
20742013-01-30 Richard Biener <rguenther@suse.de>
2075
2076 PR lto/56147
6edc3e32 2077 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 2078
cc06c01d
GJL
20792013-01-30 Georg-Johann Lay <avr@gjlay.de>
2080
2081 PR tree-optimization/56064
2082 * fixed-value.c (fixed_from_double_int): New function.
2083 * fixed-value.h (fixed_from_double_int): New prototype.
2084 (const_fixed_from_double_int): New static inline function.
2085 * fold-const.c (native_interpret_fixed): New static function.
2086 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
2087 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
2088 (native_encode_fixed): New static function.
2089 (native_encode_expr) <FIXED_CST>: Use it.
2090 (native_interpret_int): Move double_int worker code to...
2091 * double-int.c (double_int::from_buffer): ...this new static method.
2092 * double-int.h (double_int::from_buffer): Prototype it.
2093
d394a308
RB
20942013-01-30 Richard Biener <rguenther@suse.de>
2095
2096 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
2097 New pointer-map and obstack.
2098 (init_alias_vars): Allocate pointer-map and obstack.
2099 (delete_points_to_sets): Free them.
2100 (find_what_var_points_to): Cache result.
2101 (find_what_p_points_to): Adjust for changed interface of
2102 find_what_var_points_to.
2103 (compute_points_to_sets): Likewise.
2104 (ipa_pta_execute): Likewise.
2105
20804d96
RO
21062013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2107
2108 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
2109 * configure: Regenerate.
2110 * config.in: Regenerate.
2111 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
2112 #nobits/#progbits if supported.
2113
a7ad88a2
OE
21142013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
2115
2116 PR target/56121
2117 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
2118 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
2119 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
2120
7af79f92
GY
21212013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2122
91bfca59
OE
2123 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
2124 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 2125
753bcf7b
GY
21262013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2127
91bfca59
OE
2128 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
2129 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 2130
8cbc2ea8
GY
21312013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2132
91bfca59
OE
2133 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
2134 declaration.
2135 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
2136 * config/arm/cortex-a7.md: New bypasses using
2137 arm_mac_accumulator_is_result.
8cbc2ea8 2138
697a3325
GY
21392013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2140
91bfca59 2141 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 2142 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
2143 (cortex_a7_fpfmad): New reservation.
2144 (cortex_a7_fpmacs): Use ffmas and update required units.
2145 (cortex_a7_fpmuld): Update required units and latency.
2146 (cortex_a7_fpmacd): Likewise.
2147 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
2148 (cortex_a7_neon). Likewise.
2149 (bypass) Update participating units.
697a3325 2150
29637783
GY
21512013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
2152
91bfca59
OE
2153 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
2154 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
2155 from fmac to ffma.
2156 * config/arm/vfp11.md (vfp_farith): Use ffmas.
2157 (vfp_fmul): Use ffmad.
2158 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
2159 (cortex_r4_fmacd): Use ffmad.
2160 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
2161 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
2162 (cortex_a9_fmacd): Use ffmad.
2163 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
2164 (cortex_a8_vfp_macd): Use ffmad.
2165 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
2166 (cortex_a5_fpmacd): Use ffmad.
2167 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
2168 (cortex_a15_vfp_macd): Use ffmad.
2169 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 2170
2ee8a2d5
JM
21712013-01-29 Jason Merrill <jason@redhat.com>
2172
2173 PR libstdc++/54314
2174 * varasm.c (default_assemble_visibility): Don't warn about
2175 visibility on artificial decls.
2176
78d087bc
RB
21772013-01-29 Richard Biener <rguenther@suse.de>
2178
2179 PR tree-optimization/56113
2180 * tree-ssa-structalias.c (equiv_class_lookup): Also return
2181 the bitmap leader.
2182 (label_visit): Free duplicate bitmaps and record the leader instead.
2183 (perform_var_substitution): Adjust.
2184
83ba4d6f
RB
21852013-01-29 Richard Biener <rguenther@suse.de>
2186
2187 PR tree-optimization/55270
2188 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
2189 the CFG, schedule loops for fixup.
2190
66dfe13f
NC
21912013-01-29 Nick Clifton <nickc@redhat.com>
2192
2193 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
2194 SP_REG.
2195
5a579c3b
LE
21962013-01-28 Leif Ekblad <leif@rdos.net>
2197
2198 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
2199 * config/i386/i386.h (TARGET_RDOS): New macro.
2200 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
2201 * config/i386/i386.c (ix86_option_override_internal): For 64bit
2202 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
2203 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
2204 DEFAULT_LARGE_SECTION_THRESHOLD.
2205 * config/i386/i386.md (R14_REG, R15_REG): New constants.
2206 * config/i386/rdos.h: New file.
2207 * config/i386/rdos64.h: New file.
2208
51e44392
BS
22092013-01-28 Bernd Schmidt <bernds@codesourcery.com>
2210
2211 PR other/54814
2212 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
2213 TEST_HARD_REG_BIT.
2214
db1fb332
JJ
22152013-01-28 Jakub Jelinek <jakub@redhat.com>
2216
2217 PR rtl-optimization/56117
2218 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
2219 call cselib_lookup_from_insn on the MEM before calling
2220 add_insn_mem_dependence.
2221
16917761
RB
22222013-01-28 Richard Biener <rguenther@suse.de>
2223
2224 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
2225 to a stmt that didn't have one.
2226 (copy_phis_for_bb): Likewise for PHI arguments.
2227 (copy_debug_stmt): Likewise for debug stmts.
2228
b9fc0497
RB
22292013-01-28 Richard Biener <rguenther@suse.de>
2230
2231 PR tree-optimization/56034
6edc3e32 2232 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
2233 (partition_builtin_p): Adjust.
2234 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
2235 it is the last partition.
2236 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2237 up the vertex for the definition.
2238 (classify_partition): Classify whether a partition is a
2239 PKIND_REDUCTION, thus has uses outside of the loop.
2240 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2241 Merge all PKIND_REDUCTION partitions into the last partition.
2242 (tree_loop_distribution): Seed partitions from reductions as well.
2243
aa710d25
JJ
22442013-01-28 Jakub Jelinek <jakub@redhat.com>
2245
0bfbca58
JJ
2246 PR tree-optimization/56125
2247 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2248 pow(x,c) into sqrt(x) * powi(x, n/2) or
2249 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2250 optimizing for size.
2251 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2252 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2253 integer.
2254
aa710d25
JJ
2255 PR tree-optimization/56094
2256 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2257 to UNKNOWN_LOCATION while gimplifying expr.
2258
77dc5297
UB
22592013-01-27 Uros Bizjak <ubizjak@gmail.com>
2260
2261 PR target/56114
2262 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2263 operand 0 in movabs insn template for -masm=intel asm alternative.
2264 (*movabs<mode>_2): Ditto for operand 1.
2265
0bfbca58 22662013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
2267
2268 PR target/54663
2269 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2270 of microblaze-c.o
2271
0bfbca58 22722013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
2273
2274 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2275 tm_file.
2276
0bfbca58 22772013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
2278
2279 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2280 Undef to avoid warning.
2281
478f60f9
MH
22822013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2283
2284 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2285 * configure: Regenerate.
2286
d7fa6ee2
JJ
22872013-01-25 Jakub Jelinek <jakub@redhat.com>
2288
2289 PR tree-optimization/56098
2290 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2291 for stmts with volatile ops.
2292 (cond_store_replacement): Don't optimize if assign has volatile ops.
2293 (cond_if_else_store_replacement_1): Don't optimize if either
2294 then_assign or else_assign have volatile ops.
2295 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2296 volatile ops.
2297
f8fe87bd
GJL
22982013-01-25 Georg-Johann Lay <avr@gjlay.de>
2299
2300 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2301
28398d0d
GJL
23022013-01-25 Georg-Johann Lay <avr@gjlay.de>
2303
2304 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2305 missing ':' in asm example.
2306
b7d7d917
TB
23072013-01-25 Tejas Belagod <tejas.belagod@arm.com>
2308
2309 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2310 entries into lane and laneq entries.
77dc5297
UB
2311 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2312 Remove AdvSIMD scalar modes.
b7d7d917
TB
2313 (aarch64_sq<r>dmulh_laneq<mode>): New.
2314 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2315 modes.
2316 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2317 builtin implementations to relfect changes in RTL in aarch64-simd.md.
2318 * config/aarch64/iterators.md (VCOND): New.
2319 (VCONQ): New.
2320
556f9906
GJL
23212013-01-25 Georg-Johann Lay <avr@gjlay.de>
2322
2323 PR target/54222
2324 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2325 Add NULL LIBNAME argument to existing definitions.
2326 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2327 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2328 * config/avr/avr.c (DEF_BUILTIN): Same.
2329 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2330 (avr_expand_builtin): Expand to a vanilla call if a libgcc
2331 implementation is available (DECL_ASSEMBLER_NAME is set).
2332 (avr_fold_absfx): New static function.
2333 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2334 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2335 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2336 AVR_BUILTIN_ABSLLK.
2337 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2338 (abshk, absk, abslk, absllk): Provide as static inline functions.
2339
1f546bbb
MP
23402013-01-25 Marek Polacek <polacek@redhat.com>
2341
2342 PR tree-optimization/56035
2343 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2344
7e184bd7
UB
23452012-01-24 Uros Bizjak <ubizjak@gmail.com>
2346
2347 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2348 (*movtf_internal_rex64): Add (!o,C) alternative
2349 (*movxf_internal_rex64): Ditto.
2350 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2351
f5ba49ac
SM
23522013-01-24 Shenghou Ma <minux.ma@gmail.com>
2353
2354 * doc/invoke.texi: fix typo.
2355 * doc/objc.texi: fix typo.
2356
a6343728
RS
23572013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
2358
2359 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2360 for the first two alternatives.
2361
cd030c07
DN
23622013-01-24 Diego Novillo <dnovillo@google.com>
2363
77dc5297 2364 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
2365 (ggc-zone.o): Remove.
2366 * configure.ac: Remove option --with-gc.
2367 * configure: Re-generate.
2368 * doc/install.texi: Remove documentation for --with-gc.
2369 * gengtype.c (write_enum_defn): Remove. Update all users.
2370 (write_Types_process_field): Remove generation of gt_e_* argument.
2371 (output_type_enum): Remove. Update all users.
2372 (write_enum_defn): Remove. Update all users.
2373 (enum alloc_zone): Remove. Update all users.
77dc5297 2374 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
2375 * ggc-common.c (ggc_splay_alloc): Remove first argument.
2376 Update all callers.
2377 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 2378 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
2379 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2380 Update all users.
aaf1e810 2381 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
2382 (struct alloc_zone): Remove.
2383 (ggc_internal_alloc_zone_stat): Remove.
2384 (ggc_internal_cleared_alloc_zone_stat): Remove.
2385 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
2386 (ggc_pch_count_object): Remove last argument. Update all users.
2387 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
2388 (struct alloc_zone): Remove.
2389 * ggc-zone.c: Remove.
77dc5297 2390 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
2391 (struct alloc_zone): Remove.
2392 (ggc_alloc_typed_stat): Remove.
2393 (ggc_alloc_typed): Remove.
2394 (ggc_splay_alloc): Remove first argument.
2395 (rtl_zone): Remove. Update all users.
2396 (tree_zone): Remove. Update all users.
2397 (tree_id_zone): Remove. Update all users.
2398 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 2399 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 2400 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 2401 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 2402
a861ffa4
GJL
24032013-01-24 Georg-Johann Lay <avr@gjlay.de>
2404
2405 * config/avr/avr.c (avr_out_fract): Make register numbers that
2406 might be outside of source operand signed.
2407
593c0ddd
UB
24082013-01-24 Uros Bizjak <ubizjak@gmail.com>
2409
2410 * config/i386/constraints.md (Yf): New constraint.
2411 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2412 of f constraint to conditionaly disable x87 register preferences.
2413 (*movdf_internal): Ditto.
2414 (*movsf_internal): Ditto.
2415
e86c0101
SB
24162013-01-24 Steven Bosscher <steven@gcc.gnu.org>
2417
2418 PR inline-asm/55934
2419 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2420 that have operands with impossible constraints.
2421 Add a FIXME for a speed-up opportunity.
2422 * lra-constraints.c (process_alt_operands): Verify that a class
2423 selected from constraints on asms is valid for the operand mode.
2424 (curr_insn_transform): Remove incorrect comment.
2425
f6fee35f
DE
24262013-01-23 David Edelsohn <dje.gcc@gmail.com>
2427
2428 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2429 TOC operand is a valid symbol ref in the constant pool.
2430
24312013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 2432
aaf1e810 2433 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 2434
dc62d7d1
GJL
24352013-01-23 Georg-Johann Lay <avr@gjlay.de>
2436
2437 PR target/54222
2438 * config/avr/stdfix.h: New file.
2439 * t-avr (stdfix-gcc.h): New rule to build it.
2440 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2441
2660d12d
KS
24422013-01-23 Kostya Serebryany <kcc@google.com>
2443
77dc5297
UB
2444 * config/darwin.h: remove dependency on
2445 CoreFoundation (asan on Mac OS).
2660d12d 2446
a70418fc
JJ
24472013-01-23 Jakub Jelinek <jakub@redhat.com>
2448
2449 PR target/49069
2450 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2451 instead of cmpdi_operand for first comparison operand.
2452 Don't assert that comparison operands aren't both constants.
2453
47876a2a
JW
24542013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
2455
2456 * doc/install.texi (Downloading the Source): Update references to
2457 downloading separate components.
2458
24592013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
2460
2461 * doc/extend.texi (__int128): Improve grammar.
2462
47876a2a 24632013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
2464
2465 PR target/56028
2466 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
2467 alternative to (o,r).
2468 (*movdi_internal_rex64): Remove (!o,n) alternative.
2469 (DImode immediate->memory splitter): Remove.
2470 (DImode immediate->memory peephole2): Remove.
2471 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
2472 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
2473 alternative to (!o,*r).
2474 (*movtf_internal_sse): New pattern.
2475 (*movxf_internal_rex64): New pattern.
2476 (*movxf_internal): Disable for TARGET_64BIT.
2477 (*movdf_internal_rex64): Remove (!o,F) alternative.
2478
3a984f10
JJ
24792013-01-22 Jakub Jelinek <jakub@redhat.com>
2480
502498d5
JJ
2481 PR middle-end/56074
2482 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
2483 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
2484 * tree-vect-loop-manip.c (find_loop_location): Also ignore
2485 stmt locations where LOCATION_LOCUS of the stmt location is
2486 UNKNOWN_LOCATION or BUILTINS_LOCATION.
2487
3a984f10
JJ
2488 PR target/55686
2489 * config/i386/i386.md (UNSPEC_STOS): New.
2490 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
2491 *strsetqi_1): Add UNSPEC_STOS.
2492
fa817f7f
PC
24932013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
2494
2495 PR c++/56067
2496 * doc/invoke.texi: Remove left over -Wsynth example.
2497
8f498c1b
JJ
24982013-01-21 Jakub Jelinek <jakub@redhat.com>
2499
2500 PR tree-optimization/56051
2501 * fold-const.c (fold_binary_loc): Don't fold
2502 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
2503 a narrowing conversion, or widening conversion from signed
2504 to unsigned.
2505
47876a2a 25062013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
2507
2508 PR rtl-optimization/56023
2509 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
2510 dependent on debug instruction.
2511
5b9db1bc
MJ
25122013-01-21 Martin Jambor <mjambor@suse.cz>
2513
2514 PR middle-end/56022
2515 * function.c (allocate_struct_function): Call
2516 invoke_set_current_function_hook earlier.
2517
e8bb7d68
JJ
25182013-01-21 Jakub Jelinek <jakub@redhat.com>
2519
2520 * reload1.c (init_reload): Only initialize reload_obstack
2521 during the first call.
2522
616a4e32
MP
25232013-01-21 Marek Polacek <polacek@redhat.com>
2524
2525 * cfgloop.c (verify_loop_structure): Fix up grammar.
2526
4401981b
YHH
25272013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
2528
2529 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2530 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2531
8e87740b
RR
25322013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2533
2534 PR target/56058
2535 * config/arm/marvell-pj4.md: Update copyright year.
2536 Fix up use of alu to alu_reg and simple_alu_imm.
2537
47876a2a 25382013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
2539
2540 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
2541
89d56d79
VM
25422013-01-20 Vladimir Makarov <vmakarov@redhat.com>
2543
2544 PR target/55433
2545 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 2546 insn for secondary memory move when memory mode should be different.
89d56d79 2547
fe603553
JDA
25482013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2549
2550 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
2551 atomic_storedi_1): New patterns.
2552
01284895
VK
25532013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2554
2555 btver2 pipeline descriptions.
2556 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
2557 descriptions.
2558 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 2559 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
2560 type attributes.
2561 * config/i386/btver2.md: New file describing btver2 pipelines.
2562
5630e3e1
JL
25632013-01-19 Andrew Pinski <apinski@cavium.com>
2564
2565 PR tree-optimization/52631
2566 * tree-ssa-sccvn (visit_use): Before looking up the original
2567 statement, try looking up the simplified expression.
2568
650ae806
AG
25692013-01-19 Anthony Green <green@moxielogic.com>
2570
2571 * config/moxie/moxie.c (moxie_expand_prologue): Set
2572 current_function_static_stack_size.
2573
e300ec2d
JJ
25742013-01-18 Jakub Jelinek <jakub@redhat.com>
2575
2576 PR tree-optimization/56029
2577 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
2578 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
2579
a3d7af04
SS
25802013-01-18 Sharad Singhai <singhai@google.com>
2581
2582 PR tree-optimization/55995
2583 * dumpfile.c (dump_loc): Print location only if available.
2584 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
2585
66aa7879
VM
25862013-01-18 Vladimir Makarov <vmakarov@redhat.com>
2587
2588 PR target/55433
2589 * lra-constraints.c (curr_insn_transform): Reuse original insn for
2590 secondary memory move.
2591 (inherit_reload_reg): Use rclass instead of cl for
2592 check_secondary_memory_needed_p.
2593
3f0fee7b
JJ
25942013-01-18 Jakub Jelinek <jakub@redhat.com>
2595
2596 PR middle-end/56015
2597 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 2598 the case where writing real complex part of target modifies op1.
3f0fee7b 2599
70c67693
JG
26002013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
2601
2602 * config/aarch64/aarch64-simd.md
2603 (aarch64_vcond_internal<mode>): Handle unordered cases.
2604 * config/aarch64/iterators.md (v_cmp_result): New.
2605
df8de9b3
YHH
26062013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
2607 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2608
2609 * config/arm/marvell-pj4.md: New file.
2610 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
2611 * config/arm/arm.md (generic_sched): Add marvell_pj4.
2612 (generic_vfp): Likewise.
2613 * config/arm/arm-cores.def: Add marvell-pj4.
2614 * config/arm/arm-tune.md: Regenerate.
2615 * config/arm/arm-tables.opt: Regenerate.
2616 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
2617 * doc/invoke.texi: Document marvell-pj4.
2618
be30c356
TB
26192013-01-18 Tejas Belagod <tejas.belagod@arm.com>
2620
2621 * config/aarch64/arm_neon.h: Map scalar types to standard types.
2622
0bfbca58 26232013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
2624
2625 PR debug/54114
2626 PR debug/54402
2627 PR debug/49888
2628 * var-tracking.c (negative_power_of_two_p): New.
2629 (global_get_addr_cache, local_get_addr_cache): New.
2630 (get_addr_from_global_cache, get_addr_from_local_cache): New.
2631 (vt_canonicalize_addr): Rewrite using the above. Adjust the
2632 heading comment.
2633 (vt_stack_offset_p): Remove.
2634 (vt_canon_true_dep): Always canonicalize loc's address.
2635 (clobber_overlapping_mems): Make sure we have a MEM.
2636 (local_get_addr_clear_given_value): New.
2637 (val_reset): Clear local cached entries.
2638 (compute_bb_dataflow): Create and release the local cache.
2639 Disable duplicate MEMs clobbering.
2640 (emit_notes_in_bb): Clobber MEMs likewise.
2641 (vt_emit_notes): Create and release the local cache.
2642 (vt_initialize, vt_finalize): Create and release the global
2643 cache, respectively.
1f6bc337 2644 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 2645
0bfbca58 26462013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
2647
2648 PR libmudflap/53359
2649 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
2650 not found in the symtab.
2651
0bfbca58 26522013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 2653
c350ba53 2654 PR debug/56006
3aa03517
AO
2655 PR rtl-optimization/55547
2656 PR rtl-optimization/53827
2657 PR debug/53671
2658 PR debug/49888
2659 * alias.c (offset_overlap_p): New, factored out of...
2660 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
2661 the conservative special case for symbolic constants. Don't
2662 adjust zero sizes on alignment.
2663
c664546f
JL
26642013-01-18 Bernd Schmidt <bernds@codesourcery.com>
2665
2666 PR rtl-optimization/52573
2667 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
2668 REG_UNUSED for the same register.
2669
1bd3f750
MP
26702013-01-17 Richard Biener <rguenther@suse.de>
2671 Marek Polacek <polacek@redhat.com>
2672
2673 PR rtl-optimization/55833
2674 * loop-unswitch.c (unswitch_loops): Move loop verification...
2675 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
2676 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
2677 Set it to true when we're removing a loop from hierarchy tree in
2678 an irreducible region.
2679 (fix_bb_placements): Adjust caller.
2680 (fix_loop_placements): Likewise.
2681
e52a8b71
GJL
26822013-01-17 Georg-Johann Lay <avr@gjlay.de>
2683
2684 * config/avr/builtins.def (DEF_BUILTIN): Factor out
2685 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
2686 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
2687 Remove ID. Adjust comments.
2688 * config/avr/avr-c.c (avr_builtin_name): Remove.
2689 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
2690 * config/avr/avr.c (avr_tolower): New static function.
2691 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
2692 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
2693 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
2694 default expansion.
2695
8386a7ea
JH
26962013-01-17 Jan Hubicka <jh@suse.cz>
2697
610fb637 2698 PR tree-optimization/55273
8386a7ea
JH
2699 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
2700
47876a2a 27012013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
2702
2703 PR target/55981
2704 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
2705 store through atomic_store<mode>_1.
2706 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
2707
8222c37e
MJ
27082013-01-17 Martin Jambor <mjambor@suse.cz>
2709
2710 PR tree-optimizations/55264
2711 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
2712 for virtual methods.
2713 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
2714 virtual methods before inlining is over.
2715 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
2716 virtual functions.
2717 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
2718 non-virtual.
2719
79f01c76
VM
27202013-01-16 Vladimir Makarov <vmakarov@redhat.com>
2721
2722 PR rtl-optimization/56005
2723 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
2724 pending reads for prefetch.
2725
d0b6bb1b
IB
27262013-01-16 Ian Bolton <ian.bolton@arm.com>
2727
aaf1e810 2728 * config/aarch64/aarch64.md
d0b6bb1b
IB
2729 (*cstoresi_neg_uxtw): New pattern.
2730 (*cmovsi_insn_uxtw): New pattern.
2731 (*<optab>si3_uxtw): New pattern.
2732 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
2733 (*<optab>si3_insn_uxtw): New pattern.
2734 (*bswapsi2_uxtw): New pattern.
2735
cb9cf03b
RB
27362013-01-16 Richard Biener <rguenther@suse.de>
2737
2738 * tree-inline.c (tree_function_versioning): Remove set but
2739 never used variable.
2740
2cfc56b9
RB
27412013-01-16 Richard Biener <rguenther@suse.de>
2742
2743 PR tree-optimization/55964
2744 * tree-flow.h (rename_variables_in_loop): Remove.
2745 (rename_variables_in_bb): Likewise.
2746 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
2747 (copy_loop_before): Adjust and delete update-ssa status.
2748 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 2749 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
2750 (rename_variables_in_loop): Remove.
2751 (slpeel_update_phis_for_duplicate_loop): Likewise.
2752 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
2753 use available cfg machinery instead of duplicating it.
2754 Update PHI nodes and perform poor-mans SSA update here.
2755 (slpeel_tree_peel_loop_to_edge): Adjust.
2756
c25a0c60
RB
27572013-01-16 Richard Biener <rguenther@suse.de>
2758
2759 PR tree-optimization/54767
2760 PR tree-optimization/53465
2761 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
2762 (vrp_visit_phi_node): For PHI arguments coming via backedges
2763 drop all symbolical range information.
2764 (execute_vrp): Compute backedges.
2765
04b535af
RB
27662013-01-16 Richard Biener <rguenther@suse.de>
2767
2768 * doc/install.texi: Update CLooG and ISL requirements to
2769 0.18.0 and 0.11.1.
2770
8b0a1e0b
CB
27712013-01-16 Christian Bruel <christian.bruel@st.com>
2772
2773 PR target/55301
2774 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
2775 (broken_move): Handle UNSPECV_SP_SWITCH_B.
2776 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
2777
27782013-01-16 DJ Delorie <dj@redhat.com>
2779
2780 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
2781 (UNSPECV_SP_SWITCH_E): New.
2782 (sp_switch_1): Change to an unspec.
2783 (sp_switch_2): Change to an unspec. Don't use post-inc when we
2784 replace $r15.
2785
27862013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
2787
2788 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
2789 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
2790 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
2791 (expand_mem_thread_fence): Ditto.
2792 (expand_mem_signal_fence): Ditto.
2793 (expand_atomic_load): Ditto.
2794 (expand_atomic_store): Ditto.
2795
0bfbca58 27962013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
2797
2798 PR rtl-optimization/55547
2799 PR rtl-optimization/53827
2800 PR debug/53671
2801 PR debug/49888
2802 * alias.c (memrefs_conflict_p): Set sizes to negative after
2803 AND adjustments.
2804
305e3ac1
JJ
28052013-01-15 Jakub Jelinek <jakub@redhat.com>
2806
2807 PR target/55940
2808 * function.c (thread_prologue_and_epilogue_insns): Always
2809 add crtl->drap_reg to set_up_by_prologue.set, even if
2810 stack_realign_drap is false.
2811
f78ac4f2
JBG
28122013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2813
2814 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
2815 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
2816 *call): Fix indention.
2817
a78a8cc4
TV
28182013-01-15 Tom de Vries <tom@codesourcery.com>
2819
2820 PR target/55876
2821 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
2822 Update comment.
2823
0e80383f
VM
28242013-01-15 Vladimir Makarov <vmakarov@redhat.com>
2825
305e3ac1 2826 PR rtl-optimization/55153
0e80383f
VM
2827 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
2828
207b5956
MJ
28292013-01-15 Martin Jambor <mjambor@suse.cz>
2830
2831 PR tree-optimization/55920
2832 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
2833 accesses as grp_to_be_debug_replaced.
2834
a7818b54
JJ
28352013-01-15 Jakub Jelinek <jakub@redhat.com>
2836
2837 PR tree-optimization/55920
2838 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
2839 there is non-useless type conversion needed from debug rhs to lhs,
2840 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
2841
b0fe107e
JM
28422013-01-15 Joseph Myers <joseph@codesourcery.com>
2843 Mikael Pettersson <mikpe@it.uu.se>
2844
2845 PR target/43961
2846 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
2847 Thumb.
2848 (ASM_OUTPUT_CASE_LABEL): Remove.
2849 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
2850 * final.c (shorten_branches): Update alignment of labels before
2851 jump tables if CASE_VECTOR_SHORTEN_MODE.
2852
34ab62ee
RB
28532013-01-15 Richard Biener <rguenther@suse.de>
2854
2855 PR bootstrap/55961
2856 * system.h: Do not include gmp.h for building host tools.
2857
783a3a05
RB
28582013-01-15 Richard Biener <rguenther@suse.de>
2859
2860 PR middle-end/55882
2861 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
2862 account for bitpos when computing alignment.
2863
3a579e09
VY
28642013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2865
2866 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
2867 (ix86_target_macros_internal): Likewise.
2868
2869 * config/i386/i386.c (m_CORE2I7): Removed.
2870 (m_CORE_HASWELL): New macro.
2871 (m_CORE_ALL): Likewise.
2872 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
2873 (initial_ix86_arch_features): Likewise.
2874 (processor_target_table): Initializations for Core avx2.
2875 (cpu_names): New names "core-avx2".
2876 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
2877 PROCESSOR_CORE_HASWELL.
2878 (ix86_issue_rate): New case.
2879 (ia32_multipass_dfa_lookahead): Likewise.
2880 (ix86_sched_init_global): Likewise.
2881
2882 * config/i386/i386.h (TARGET_HASWELL): New macro.
2883 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
2884 (processor_type): New PROCESSOR_HASWELL.
2885
955f5a07
JJ
28862013-01-15 Jakub Jelinek <jakub@redhat.com>
2887
ff784829
JJ
2888 PR tree-optimization/55955
2889 * tree-vect-loop.c (vectorizable_reduction): Give up early on
2890 *SHIFT_EXPR and *ROTATE_EXPR codes.
2891
955f5a07
JJ
2892 PR tree-optimization/48766
2893 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
2894 -ftrapv disable -fwrapv.
2895
aeb8b4e9
GJL
28962013-01-14 Georg-Johann Lay <avr@gjlay.de>
2897
2898 PR target/55974
2899 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
2900 etc. to 1 and not to __flash.
2901 Use LL suffix for __INT24_MAX__ with -mint8.
2902 Use ULL suffix for __UINT24_MAX__ with -mint8.
2903
1c494c6a
GJL
29042013-01-14 Georg-Johann Lay <avr@gjlay.de>
2905
2906 * config/avr/avr-arch.h
2907 (struct base_arch_s): Use typedef avr_arch_t instead.
2908 (struct arch_info_s): Use typedef avr_arch_info_t instead.
2909 (struct mcu_type_s): Use typedef avr_mcu_t instead.
2910 * config/avr/avr.c: Same.
2911 * config/avr/avr-devices.c: Same.
2912 * config/avr/driver-avr.c: Same.
2913 * config/avr/gen-avr-mmcu-texi.c: Same.
2914 * config/avr/avr-mcus.def: Adjust comment.
2915
a50344cb
TB
29162013-01-14 Tejas Belagod <tejas.belagod@arm.com>
2917
88e784e6
UB
2918 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
2919 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 2920
47876a2a 29212013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
2922 Andi Kleen <ak@linux.intel.com>
2923
2924 PR target/55948
2925 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
2926 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
2927 memmodel flag.
2928
00892272
GJL
29292013-01-14 Georg-Johann Lay <avr@gjlay.de>
2930
2931 * config/avr/avr-stdint.h: Remove trailing blanks.
2932 * config/avr/avr-log.h: Same.
2933 * config/avr/avr-arch.h: Same.
2934 * config/avr/avr-devices.c: Same.
2935 * config/avr/avr-dimode.md: Same.
2936 * config/avr/predicates.md: Same.
2937 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 2938
00892272
GJL
2939 * config/avr/avr-protos.h: Same. And:
2940 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
2941 (init_cumulative_args): Rename to avr_init_cumulative_args.
2942 (expand_prologue): Rename to avr_expand_prologue.
2943 (expand_epilogue): Rename to avr_expand_epilogue.
2944 (adjust_insn_length): Rename to avr_adjust_insn_length.
2945 (notice_update_cc): Rename to avr_notice_update_cc.
2946 (final_prescan_insn): Rename to avr_final_prescan_insn.
2947 * config/avr/avr.c: Same.
2948 * config/avr/avr.h: Same.
2949 * config/avr/avr.md: Remove trailing blanks.
2950 (prologue): Use avr_expand_prologue.
2951 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
2952
7bb01996
RB
29532013-01-14 Richard Biener <rguenther@suse.de>
2954
2955 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
2956 verify_location, collect_subblocks): New functions.
2957 (verify_gimple_in_cfg): Verify that locations only reference
2958 BLOCKs in the functions BLOCK tree.
2959
2724573f
RB
29602013-01-14 Richard Biener <rguenther@suse.de>
2961
2962 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
2963 PHI argument.
2964 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
2965 unshare reference.
2966 (insert_out_of_ssa_copy_on_edge): Likewise.
2967 (rewrite_close_phi_out_of_ssa): Likewise.
2968 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
2969 debug expressions.
2970 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
2971 propagated constants.
2972 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
2973 can not be shared.
2974
9a0bbab6
GJL
29752013-01-14 Georg-Johann Lay <avr@gjlay.de>
2976
2977 * config/avr/avr-modes.def: Add GPL copyright notice.
2978
45805f17
UB
29792013-01-13 Uros Bizjak <ubizjak@gmail.com>
2980
2981 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
2982 MEMMODEL_MASK to determine memory model.
2983 (atomic_store<mode>): Ditto from operands[2].
2984 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
2985
9d60be38
JJ
29862013-01-13 Jakub Jelinek <jakub@redhat.com>
2987
2988 PR fortran/55935
45805f17 2989 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
2990 (fold_gimple_assign): Don't call unshare_expr here.
2991 (fold_ctor_reference): Call unshare_expr.
2992
e7f49d92
TG
29932013-01-13 Terry Guo <terry.guo@arm.com>
2994
aaf1e810
EB
2995 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
2996 * doc/fragments.texi: Document MULTILIB_REUSE.
2997 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 2998 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 2999 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
3000 (tmpmultilib4): Ditto.
3001 (multilib_reuse): New multilib argument.
3002
fbd03a27
RS
30032013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
3004
3005 * Makefile.in: Update copyright.
3006
b3681f13
TV
30072013-01-12 Tom de Vries <tom@codesourcery.com>
3008
3009 PR middle-end/55890
3010 * calls.c (expand_call): Check if arg_nr is valid.
3011
3f287e4b
MM
30122013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3013
3014 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
3015 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
3016 documentation. Add missing '__' in front of
3017 __builtin_ia32_packssdw256.
3f287e4b 3018
1abcd5eb
AK
30192013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3020
3021 PR target/55719
3022 * config/s390/s390.c (s390_preferred_reload_class): Do not return
3023 NO_REGS for larl operands.
3024 (s390_reload_larl_operand): Use s390_load_address instead of
3025 emit_move_insn.
3026
980d0812
RB
30272013-01-11 Richard Biener <rguenther@suse.de>
3028
3029 * tree-cfg.c (verify_node_sharing_1): Split out from ...
3030 (verify_node_sharing): ... here.
3031 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
3032
7cb9fd07
EB
30332013-01-11 Eric Botcazou <ebotcazou@adacore.com>
3034
3035 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
3036 Substitute TREECHECKING.
3037 * configure: Regenerate.
3038 * Makefile.in (TREECHECKING): New.
3039
47876a2a 30402013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
3041
3042 PR tree-optimization/44061
3043 * tree-vrp.c (extract_range_basic): Compute zero as
3044 value-range for __builtin_constant_p of function parameters.
3045
d1e082c2
RS
30462013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
3047
45805f17 3048 Update copyright years.
d1e082c2 3049
f85021b0
VM
30502013-01-10 Vladimir Makarov <vmakarov@redhat.com>
3051
9d60be38 3052 PR rtl-optimization/55672
0160442c
VM
3053 * lra-eliminations.c (mark_not_eliminable): Permit addition with
3054 const to be eliminable.
f85021b0 3055
7a8b1ec4
DE
30562013-01-10 David Edelsohn <dje.gcc@gmail.com>
3057
3058 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
3059 * configure: Regenerate.
3060
ad2e5b71
RB
30612013-01-10 Richard Biener <rguenther@suse.de>
3062
ddf9322d 3063 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 3064
ffc5b2bb
RB
30652013-01-10 Richard Biener <rguenther@suse.de>
3066
3067 PR bootstrap/55792
3068 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
3069 locations for virtual PHI arguments.
3070 (rewrite_update_phi_arguments): Likewise.
3071
e1f674e4
JS
30722013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
3073
3074 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
3075 on to assembler.
3076
a57fc743
JJ
30772013-01-10 Jakub Jelinek <jakub@redhat.com>
3078
3079 PR tree-optimization/55921
3080 * tree-complex.c (expand_complex_asm): New function.
3081 (expand_complex_operations_1): Call it for GIMPLE_ASM.
3082
0ff4390d
AK
30832013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3084
3085 PR target/55718
3086 * config/s390/s390.c (s390_symref_operand_p)
3087 (s390_loadrelative_operand_p): Merge the two functions.
3088 (s390_check_qrst_address, print_operand_address): Add parameters
3089 to s390_loadrelative_operand_p invokation.
3090 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
3091 (s390_reload_larl_operand, s390_secondary_reload): Use
3092 s390_loadrelative_operand_p instead of s390_symref_operand_p.
3093 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
3094
6f557e0e
MS
30952013-01-09 Mike Stump <mikestump@comcast.net>
3096
3097 * dse.c (record_store): Remove unnecessary assert.
3098
7770c9e9
JH
30992013-01-09 Jan Hubicka <jh@suse.cz>
3100
3101 PR tree-optimization/55569
3102 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
3103 * cfgloop.h (scale_loop_profile): Likewise.
3104
a19b1432
JH
31052013-01-09 Jan Hubicka <jh@suse.cz>
3106
3107 PR lto/45375
ddf9322d
UB
3108 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
3109 functions.
a19b1432
JH
3110 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
3111
9a002da8
RS
31122013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
3113
3114 PR middle-end/55114
3115 * expr.h (maybe_emit_group_store): Declare.
3116 * expr.c (maybe_emit_group_store): New function.
3117 * builtins.c (expand_builtin_int_roundingfn): Call it.
3118 (expand_builtin_int_roundingfn_2): Likewise.
3119
511dcace
VM
31202013-01-09 Vladimir Makarov <vmakarov@redhat.com>
3121
e1f2b729 3122 PR rtl-optimization/55829
511dcace
VM
3123 * lra-constraints.c (match_reload): Add code for absent output.
3124 (curr_insn_transform): Add code for reloads of matched inputs
3125 without output.
3126
7b0fe4f4
UB
31272013-01-09 Uros Bizjak <ubizjak@gmail.com>
3128
3129 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
3130 attribute of movddup insn to DF.
3131 (*vec_interleave_lowv2df): Ditto.
3132 (vec_dupv2df): Ditto.
3133
870ca331
JH
31342013-01-09 Jan Hubicka <jh@suse.cz>
3135
3136 PR tree-optimiation/55875
3137 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
3138 EVERY_ITERATION parameter.
7b0fe4f4 3139 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
3140 (idx_infer_loop_bounds): Similarly here.
3141 (n_of_executions_at_most): Simplify
3142 to only test for cases where statement is dominated by the
7b0fe4f4 3143 particular bound; handle correctly the "postdominance" test.
870ca331
JH
3144 (scev_probably_wraps_p): Use max loop iterations info
3145 as a global bound first.
3146
6f575fe4 31472013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
3148 Nick Clifton <nickc@redhat.com>
3149
3150 * config/v850/v850.md (cbranchsf4): New pattern.
3151 (cstoresf4): New pattern.
3152 (cbranchdf4): New pattern.
3153 (cstoredf4): New pattern.
3154 (movsicc): Disallow floating point comparisons.
3155 (cmpsf_le_insn): Fix order of operators.
3156 (cmpsf_lt_insn): Likewise.
3157 (cmpsf_eq_insn): Likewise.
3158 (cmpdf_le_insn): Likewise.
3159 (cmpdf_lt_insn): Likewise.
3160 (cmpdf_eq_insn): Likewise.
3161 (cmpsf_ge_insn): Use LE comparison.
3162 (cmpdf_ge_insn): Likewise.
3163 (cmpsf_gt_insn): Use LT comparison.
3164 (cmpdf_gt_insn): Likewise.
3165 (cmpsf_ne_insn): Delete pattern.
3166 (cmpdf_ne_insn): Delete pattern.
3167 * config/v850/v850.c (v850_gen_float_compare): Use
3168 gen_cmpdf_eq_insn for NE comparison.
3169 (v850_float_z_comparison_operator)
3170 (v850_float_nz_comparison_operator): Move from here ...
3171 * config/v850/predicates.md: ... to here. Move GT and GE
3172 comparisons into v850_float_z_comparison_operator.
3173 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
3174 Delete prototype.
3175 (v850_float_nz_comparison_operator): Likewise.
3176
f0d54148
JDA
31772013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3178
3179 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
3180 with calls to gen_insvsi/gen_insvdi.
3181
8f01beca
VK
31822013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3183
3184 * config/i386/i386.c (initial_ix86_tune_features): Set up
3185 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
3186
2aa579ad
JJ
31872013-01-09 Steven Bosscher <steven@gcc.gnu.org>
3188 Jakub Jelinek <jakub@redhat.com>
3189
3190 PR tree-optimization/48189
3191 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
3192 If nitercst is 0, don't predict the exit edge.
3193
6edc3e32 31942013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
3195
3196 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
3197 in asm_fprintf with reg_names.
3198 (aarch64_print_operand_address): Likewise.
3199 (aarch64_return_addr): Likewise.
3200 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
3201
f6f94d94
JDA
32022013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3203
3204 * config/pa/pa.h (VAL_U6_BITS_P): Define.
3205 (INT_U6_BITS): Likewise.
3206 * config/pa/predicates.md (uint6_operand): New predicate.
3207 (shift5_operand, shift6_operand): Likewise.
3208 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
3209 arith32_operand.
3210 (lshrdi3): Use shift6_operand.
3211 (shrpsi4, shrpdi4): New insn patterns.
3212 (extzv): Delete expander.
3213 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
3214 predicates in unamed zero extract patterns. Tighten common constraint.
3215 (extv): Delete expander.
3216 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
3217 predicates in unamed sign extract patterns. Tighten common constraint.
3218 (insv): Delete expander.
3219 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
3220 predicates in unamed insert patterns. Tighten common constraint.
3221 Change uint32_operand predicate to uint6_operand predicate in unamed
3222 DImode pattern to insert constant values of type 1...1xxxx.
3223
36b72910
JH
32242013-01-04 Jan Hubicka <jh@suse.cz>
3225
3226 PR tree-optimization/55823
7b0fe4f4
UB
3227 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3228 issue.
36b72910 3229
47876a2a 32302013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
3231 Uros Bizjak <ubizjak@gmail.com>
3232
3233 PR rtl-optimization/55845
3234 * df-problems.c (can_move_insns_across): Stop scanning at
3235 volatile_insn_p source instruction or give up if
3236 across_from .. across_to range contains any volatile_insn_p
3237 instructions.
3238
4369c11e
TB
32392013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3240
7b0fe4f4
UB
3241 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3242 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3243 Declare.
4369c11e 3244 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 3245 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 3246
aeb7e7c1
JJ
32472013-01-08 Jakub Jelinek <jakub@redhat.com>
3248
3249 PR fortran/55341
3250 * asan.c (asan_clear_shadow): New function.
3251 (asan_emit_stack_protection): Use it.
3252
a02ad1aa
TB
32532013-01-08 Tejas Belagod <tejas.belagod@arm.com>
3254
3255 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3256 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3257 with tab instead of space.
3258
f90d87f5
NC
32592013-01-08 Nick Clifton <nickc@redhat.com>
3260
3261 * config/rl78/rl78.c (rl78_expand_prologue): Always select
3262 register bank 0 at the start of an interrupt handler.
83ffd964
NC
3263 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3264 MDBH registers.
f90d87f5 3265
385eb93d
JG
32662013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3267
3268 * config/aarch64/aarch64-simd.md
3269 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3270 (aarch64_simd_bsl): Likewise.
3271 (aarch64_vcond_internal<mode>): Likewise.
3272 (vcond<mode><mode>): Likewise.
3273 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3274 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3275
4dcd1054
JG
32762013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
3277
3278 * config/aarch64/aarch64-builtins.c
3279 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3280
4267a4a6
MJ
32812013-01-08 Martin Jambor <mjambor@suse.cz>
3282
3283 PR debug/55579
3284 * tree-sra.c (analyze_access_subtree): Return true also after
3285 potentially creating a debug-only replacement.
3286
5f4e6de3
JJ
32872013-01-08 Jakub Jelinek <jakub@redhat.com>
3288
3138f224
JJ
3289 PR middle-end/55890
3290 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3291
5f4e6de3
JJ
3292 PR tree-optimization/54120
3293 * tree-vrp.c (range_fits_type_p): Don't allow
3294 src_precision < precision from signed vr to unsigned_p
3295 if vr->min or vr->max is negative.
3296 (simplify_float_conversion_using_ranges): Test can_float_p
3297 against CODE_FOR_nothing.
3298
f3ef18ff
JJ
32992013-01-08 Jakub Jelinek <jakub@redhat.com>
3300 Richard Biener <rguenther@suse.de>
3301
3302 PR middle-end/55851
3303 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3304 types instead of just INTEGER_TYPE types.
3305
25c210f9
MK
33062013-01-07 Mark Kettenis <kettenis@openbsd.org>
3307
3308 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3309 TF_SIZE): Define.
f90d87f5 3310
81826a7b
SE
33112013-01-07 Steve Ellcey <sellcey@mips.com>
3312
3313 PR target/42661
3314 * config/mips/mips.opt: Change mad to mmad to match documentation.
3315
35678514
GJL
33162013-01-07 Georg-Johann Lay <avr@gjlay.de>
3317
3318 PR target/55897
3319 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3320 .progmemx.data now.
3321
e5669488
GJL
33222013-01-07 Georg-Johann Lay <avr@gjlay.de>
3323
3324 PR target/55897
3325 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3326 (avr_addrspace_t): Add .section_name field.
3327 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3328 array size.
3329 (avr_addrspace): Same. Initialize .section_name. Remove last
3330 NULL entry. Put __memx into .progmemx.data.
3331 (progmem_section_prefix): Remove.
3332 (avr_asm_init_sections): No need to initialize progmem_section.
3333 (avr_asm_named_section): Use avr_addrspace[].section_name to get
3334 section name prefix.
3335 (avr_asm_select_section): Ditto. And use get_unnamed_section to
3336 retrieve the progmem section.
3337 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3338 boundary to run over avr_addrspace[].
3339 (avr_register_target_pragmas): Ditto.
3340
656e6f37
JJ
33412013-01-06 Jakub Jelinek <jakub@redhat.com>
3342
3343 * varasm.c (output_constant_def_contents): For asan_protect_global
3344 protected strings, adjust DECL_ALIGN if needed, before testing for
3345 anchored symbols.
3346 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3347 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
3348 normal decls.
3349 (output_object_block): For asan protected decls, emit asan padding
3350 after their contents.
3351 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3352 (asan_finish_file): Test it here instead.
3353
6edc3e32
UB
33542013-01-07 Nick Clifton <nickc@redhat.com>
3355 Matthias Klose <doko@debian.org>
3356 Doug Kwan <dougkwan@google.com>
3357 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
3358
3359 PR driver/55470
3360 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3361
3362 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3363
3364 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3365
7b0fe4f4 3366 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
3367
3368 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3369
2a095093
GJL
33702013-01-07 Georg-Johann Lay <avr@gjlay.de>
3371
f3b503f4 3372 PR target/54461
2a095093
GJL
3373 * doc/install.texi (Cross-Compiler-Specific Options): Document
3374 --with-avrlibc.
3375
383f9b34
TB
33762013-01-07 Tejas Belagod <tejas.belagod@arm.com>
3377
3378 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3379 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3380 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3381 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3382 vqmovun_high_s64): Fix source operand number and update copyright.
3383
3626621a
RB
33842013-01-07 Richard Biener <rguenther@suse.de>
3385
3386 PR middle-end/55890
3387 * gimple.h (gimple_call_builtin_p): New overload.
3388 * gimple.c (validate_call): New function.
3389 (gimple_call_builtin_p): Likewise.
3390 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3391 Use gimple_call_builtin_p.
3392 (find_func_clobbers): Likewise.
3393 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3394 (strlen_optimize_stmt): Likewise.
3395
8b2ea410
JG
33962013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3397
3398 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3399 (vld1q_dup_*): Likewise.
3400 (vld1_*): Likewise.
3401 (vld1q_*): Likewise.
3402 (vld1_lane_*): Likewise.
3403 (vld1q_lane_*): Likewise.
3404
9713d329
RB
34052013-01-07 Richard Biener <rguenther@suse.de>
3406
3407 * lto-streamer.h (LTO_minor_version): Bump to 2.
3408
3520f7cc
JG
34092013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
3410
3411 * config/aarch64/aarch64-protos.h
3412 (aarch64_const_double_zero_rtx_p): Rename to...
3413 (aarch64_float_const_zero_rtx_p): ...this.
3414 (aarch64_float_const_representable_p): New.
3415 (aarch64_output_simd_mov_immediate): Likewise.
3416 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3417 move immediate case.
3418 * config/aarch64/aarch64.c
3419 (aarch64_const_double_zero_rtx_p): Rename to...
3420 (aarch64_float_const_zero_rtx_p): ...this.
3421 (aarch64_print_operand): Allow printing of new constants.
3422 (aarch64_valid_floating_const): New.
3423 (aarch64_legitimate_constant_p): Check for valid floating-point
3424 constants.
3425 (aarch64_simd_valid_immediate): Likewise.
3426 (aarch64_vect_float_const_representable_p): New.
3427 (aarch64_float_const_representable_p): Likewise.
3428 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3429 (aarch64_output_simd_mov_immediate): New.
3430 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3431 (*movdf_aarch64): Likewise.
3432 * config/aarch64/constraints.md (Ufc): New.
3433 (Y): call aarch64_float_const_zero_rtx.
3434 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3435
e167c04d
RB
34362013-01-07 Richard Biener <rguenther@suse.de>
3437
3438 PR tree-optimization/55888
3439 PR tree-optimization/55862
3440 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3441 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3442 not if it is contained therein.
3443
0139aaab
GJL
34442013-01-07 Georg-Johann Lay <avr@gjlay.de>
3445
3446 * config/avr/t-avr: Typo.
3447
4a176b23
GJL
34482013-01-07 Georg-Johann Lay <avr@gjlay.de>
3449
3450 PR55243
3451 * config/avr/t-avr: Don't automatically rebuild
3452 $(srcdir)/config/avr/t-multilib
3453 $(srcdir)/config/avr/avr-tables.opt
3454 $(srcdir)/doc/avr-mmcu.texi
3455 (avr-mcus): New phony target to build them on request.
3456 (s-avr-mlib, s-avr-mmcu-texi): Remove.
3457 * avr/avr-mcus.def: Adjust comments.
3458
c7afdc98
UB
34592013-01-07 Uros Bizjak <ubizjak@gmail.com>
3460
3461 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3462
1ab05c31
RS
34632013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3464
3465 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
3466
488e3acc
RS
34672013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
3468
3469 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
3470
a89599d2
DE
34712013-01-05 David Edelsohn <dje.gcc@gmail.com>
3472
3473 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
3474 to generate profiling.
3475 * config/rs6000/aix64.h (LIB_SPEC): Same.
3476
70f09188
AP
34772013-01-04 Andrew Pinski <apinski@cavium.com>
3478
3479 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
3480 New function.
3481 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3482
918d445f
UB
34832013-01-04 Uros Bizjak <ubizjak@gmail.com>
3484
3485 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
3486 unconditionally.
3487 (ix86_expand_move): Ditto.
3488 (ix86_zero_extend_to_Pmode): Ditto.
3489 (ix86_expand_call): Ditto.
3490 (ix86_expand_special_args_builtin): Ditto.
3491 (ix86_expand_builtin): Ditto.
3492
361618ec
RB
34932013-01-04 Richard Biener <rguenther@suse.de>
3494
3495 PR tree-optimization/55862
3496 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
3497 translating them through PHI nodes.
3498
87eab554
MJ
34992013-01-04 Martin Jambor <mjambor@suse.cz>
3500
3501 PR tree-optimization/55755
3502 * tree-sra.c (sra_modify_assign): Do not check that an access has no
3503 children when trying to avoid producing a VIEW_CONVERT_EXPR.
3504
33879b9f
MP
35052013-01-04 Marek Polacek <polacek@redhat.com>
3506
3507 PR middle-end/55859
3508 * opts.c (default_options_optimization): Clarify error message.
3509
3068819a
RB
35102013-01-04 Richard Biener <rguenther@suse.de>
3511
3512 PR middle-end/55863
3513 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
3514 reassociation.
3515
0e4ae794
JDA
35162013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3517
3518 PR target/53789
3519 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
3520 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
3521 references.
0e4ae794 3522
65c88cef
RH
35232013-01-03 Richard Henderson <rth@redhat.com>
3524
3525 * config/i386/i386.c (ix86_expand_move): Always assign to op1
3526 after eliminating TLS symbols.
3527
8ac16127
MG
35282013-01-03 Marc Glisse <marc.glisse@inria.fr>
3529
3530 PR bootstrap/50167
3531 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3532 * graphite-poly.c (debug_gmp_value): Likewise.
3533
bb664f09
UB
35342013-01-03 Uros Bizjak <ubizjak@gmail.com>
3535
3536 PR target/55712
3537 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
3538 selected code model, define __code_mode_small__, __code_model_medium__,
3539 __code_model_large__, __code_model_32__ or __code_model_kernel__.
3540 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
3541 xchg temporary register with %k. Declare temporary register as
3542 early clobbered.
3543 [__x86_64__]: For medium and large code models, preserve %rbx register.
3544
bcf1ef00
RB
35452013-01-03 Richard Biener <rguenther@suse.de>
3546
0506634a 3547 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
3548 (dump_subscript): Adjust.
3549 (finalize_ddr_dependent): Do not dump redundant info.
3550 (analyze_siv_subscript): Adjust.
3551 (subscript_dependence_tester): Likewise.
3552 (compute_affine_dependence): Likewise.
3553
59fd17e3
RB
35542013-01-03 Richard Biener <rguenther@suse.de>
3555
3556 Revert
3557 2013-01-03 Richard Biener <rguenther@suse.de>
3558
3559 PR tree-optimization/55857
3560 * tree-vect-stmts.c (vectorizable_load): Do not setup
3561 re-alignment for invariant loads.
3562
3563 2013-01-02 Richard Biener <rguenther@suse.de>
3564
3565 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 3566 invariant load do not generate a vector load from the scalar location.
59fd17e3 3567
595c2679
RB
35682013-01-03 Richard Biener <rguenther@suse.de>
3569
3570 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
3571 for not vectorizing.
3572 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3573 not build INDIRECT_REFs, call get_name once only.
3574 (vect_create_data_ref_ptr): Likewise. Dump base object kind
3575 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
3576
90bb7d7a
RB
35772013-01-03 Richard Biener <rguenther@suse.de>
3578
3579 PR tree-optimization/55857
3580 * tree-vect-stmts.c (vectorizable_load): Do not setup
3581 re-alignment for invariant loads.
3582
f09b77ca
RB
35832013-01-03 Richard Biener <rguenther@suse.de>
3584
3585 PR lto/55848
3586 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
3587 prefer a built-in decl.
3588
3461a16e
JJ
35892013-01-03 Jakub Jelinek <jakub@redhat.com>
3590
df8e2b4f
JJ
3591 * gcc.c (process_command): Update copyright notice dates.
3592 * gcov.c (print_version): Likewise.
3593 * gcov-dump.c (print_version): Likewise.
3594
3461a16e
JJ
3595 PR rtl-optimization/55838
3596 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
3597 iv0.step, iv1.step and step.
3598
8b5546d6
JJ
35992013-01-03 Jakub Jelinek <jakub@redhat.com>
3600 Marc Glisse <marc.glisse@inria.fr>
3601
3602 PR tree-optimization/55832
3603 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
3604 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
3605 integer_{one,zero}_node.
3606
8ab1d2e9
JJ
36072013-01-03 Jakub Jelinek <jakub@redhat.com>
3608
3609 PR debug/54402
3610 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
3611 * var-tracking.c (reverse_op): Don't add reverse ops to
3612 VALUEs that have already
0506634a 3613 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 3614
5b9ad1d4
GP
36152013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
3616
3617 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
3618
e25a6711
TJ
36192013-01-02 Teresa Johnson <tejohnson@google.com>
3620
3621 * dumpfile.c (dump_loc): Print filename with location.
3622 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
3623 new location_t parameter to emit complete unroll message with
3624 new dump framework.
3625 (canonicalize_loop_induction_variables): Compute loops location
3626 and pass to try_unroll_loop_completely.
3627 * loop-unroll.c (report_unroll_peel): New function.
3628 (peel_loops_completely): Use new dump format with location
3629 for main dumpfile message, and invoke report_unroll_peel on success.
3630 (decide_unrolling_and_peeling): Ditto.
3631 (decide_peel_once_rolling): Remove old dumpfile message subsumed
3632 by report_unroll_peel.
3633 (decide_peel_completely): Ditto.
3634 (decide_unroll_constant_iterations): Ditto.
3635 (decide_unroll_runtime_iterations): Ditto.
3636 (decide_peel_simple): Ditto.
3637 (decide_unroll_stupid): Ditto.
3638 * cfgloop.c (get_loop_location): New function.
3639 * cfgloop.h (get_loop_location): Declare.
3640
77878621
ST
36412013-01-02 Sriraman Tallam <tmsriram@google.com>
3642
3643 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
3644 NULL.
3645
9e65d03e
JDA
36462013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3647
3648 PR middle-end/55198
3649 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
3650 BLKmode objects when EXPAND_MEMORY is specified.
3651
6a7da30f
ST
36522013-01-02 Sriraman Tallam <tmsriram@google.com>
3653
3654 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
3655 in loop predicate.
3656 (fold_builtin_cpu): Do not share cpu model decls across statements.
3657
e78167f2
JM
36582013-01-02 Jason Merrill <jason@redhat.com>
3659
3660 PR c++/55804
3661 * tree.c (build_array_type_1): Revert earlier change.
3662
8c075fb4
YZ
36632013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
3664
3665 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
3666 "cortex-a57".
3667 * config/aarch64/aarch64-tune.md: Re-generate.
3668
0682ed3e
RB
36692013-01-02 Richard Biener <rguenther@suse.de>
3670
3671 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 3672 invariant load do not generate a vector load from the scalar location.
0682ed3e 3673
b8f6a302
RB
36742013-01-02 Richard Biener <rguenther@suse.de>
3675
3676 PR bootstrap/55784
3677 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
3678 * configure: Regenerate.
3679
04b80dbb
RS
36802013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3681
3682 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
3683 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
3684 (expand_builtin_int_roundingfn_2): Keep the original target around
3685 for the fallback case.
3686
635b0b0c
RS
36872013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3688
3689 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
3690 to be clear for sign changes.
3691
42d57399
JH
36922013-01-01 Jan Hubicka <jh@suse.cz>
3693
3694 * ipa-inline-analysis.c: Fix formatting.
3695
5bb6669d
JJ
36962013-01-01 Jakub Jelinek <jakub@redhat.com>
3697
3698 PR tree-optimization/55831
3699 * tree-vect-loop.c (get_initial_def_for_induction): Use
3700 gsi_after_labels instead of gsi_start_bb.
ad41bd84 3701\f
86a2db33 3702Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
3703
3704Copying and distribution of this file, with or without modification,
3705are permitted in any medium without royalty provided the copyright
3706notice and this notice are preserved.