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