24e47d4919149debe9d520441770b8cb2b690fb3
[gcc.git] / gcc / ChangeLog
1 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2 Anton Blanchard <anton@au1.ibm.com>
3
4 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
5 two operands for little-endian.
6
7 2013-07-23 Steve Ellcey <sellcey@mips.com>
8
9 * config/mips/mips.c (mips_case_values_threshold): New.
10 (TARGET_CASE_VALUES_THRESHOLD): Define.
11
12 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13 Anton Blanchard <anton@au1.ibm.com>
14
15 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
16 selection of field for vector splat in little endian mode.
17
18 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19
20 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21 expanders to rs6000.md.
22 (ior<mode>3): Likewise.
23 (and<mode>3): Likewise.
24 (one_cmpl<mode>2): Likewise.
25 (nor<mode>3): Likewise.
26 (andc<mode>3): Likewise.
27 (eqv<mode>3): Likewise.
28 (nand<mode>3): Likewise.
29 (orc<mode>3): Likewise.
30
31 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
32 declaration.
33
34 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
35 to split multi-word logical operations.
36 (rs6000_split_logical_di): Likewise.
37 (rs6000_split_logical): Likewise.
38
39 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
40 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
41 and allow TImode operations in 32-bit.
42 (vsx_and<mode>3_64bit): Likewise.
43 (vsx_ior<mode>3_32bit): Likewise.
44 (vsx_ior<mode>3_64bit): Likewise.
45 (vsx_xor<mode>3_32bit): Likewise.
46 (vsx_xor<mode>3_64bit): Likewise.
47 (vsx_one_cmpl<mode>2_32bit): Likewise.
48 (vsx_one_cmpl<mode>2_64bit): Likewise.
49 (vsx_nor<mode>3_32bit): Likewise.
50 (vsx_nor<mode>3_64bit): Likewise.
51 (vsx_andc<mode>3_32bit): Likewise.
52 (vsx_andc<mode>3_64bit): Likewise.
53 (vsx_eqv<mode>3_32bit): Likewise.
54 (vsx_eqv<mode>3_64bit): Likewise.
55 (vsx_nand<mode>3_32bit): Likewise.
56 (vsx_nand<mode>3_64bit): Likewise.
57 (vsx_orc<mode>3_32bit): Likewise.
58 (vsx_orc<mode>3_64bit): Likewise.
59
60 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
61 logical types in GPRs.
62
63 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
64 logical insns to rs6000.md, and allow TImode operations in
65 32-bit.
66 (altivec_ior<mode>3): Likewise.
67 (altivec_xor<mode>3): Likewise.
68 (altivec_one_cmpl<mode>2): Likewise.
69 (altivec_nor<mode>3): Likewise.
70 (altivec_andc<mode>3): Likewise.
71
72 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
73 attributes for moving the 128-bit logical operations into
74 rs6000.md.
75 (BOOL_REGS_OUTPUT): Likewise.
76 (BOOL_REGS_OP1): Likewise.
77 (BOOL_REGS_OP2): Likewise.
78 (BOOL_REGS_UNARY): Likewise.
79 (BOOL_REGS_AND_CR0): Likewise.
80 (one_cmpl<mode>2): Add support for DI logical operations on
81 32-bit, splitting the operations to 32-bit.
82 (anddi3): Likewise.
83 (iordi3): Likewise.
84 (xordi3): Likewise.
85 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
86 changes to combine the 32/64-bit code, allow logical operations on
87 TI mode in 32-bit, and to use similar match_operator patterns like
88 scalar mode uses. Combine the Altivec and VSX code for logical
89 operations, and move it here.
90 (ior<mode>3, 128-bit types): Likewise.
91 (xor<mode>3, 128-bit types): Likewise.
92 (one_cmpl<mode>3, 128-bit types): Likewise.
93 (nor<mode>3, 128-bit types): Likewise.
94 (andc<mode>3, 128-bit types): Likewise.
95 (eqv<mode>3, 128-bit types): Likewise.
96 (nand<mode>3, 128-bit types): Likewise.
97 (orc<mode>3, 128-bit types): Likewise.
98 (and<mode>3_internal): Likewise.
99 (bool<mode>3_internal): Likewise.
100 (boolc<mode>3_internal1): Likewise.
101 (boolc<mode>3_internal2): Likewise.
102 (boolcc<mode>3_internal1): Likewise.
103 (boolcc<mode>3_internal2): Likewise.
104 (eqv<mode>3_internal1): Likewise.
105 (eqv<mode>3_internal2): Likewise.
106 (one_cmpl1<mode>3_internal): Likewise.
107
108 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
109
110 * config/microblaze/microblaze.c (microblaze_expand_prologue):
111 Rename flag_stack_usage to flag_stack_usage_info.
112
113 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
114
115 * config/microblaze/sync.md: New file.
116 * config/microblaze/microblaze.md: Include sync.md
117 * config/microblaze/microblaze.c: Add print_operand 'y'.
118 * config/microblaze/constraints.md: Add memory_contraint
119 'Q' which is a single register.
120
121 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
122
123 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
124
125 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
126
127 * reload.c (find_reloads): Exit loop once we find this operand
128 cannot be reloaded somehow for this alternative.
129
130 * reload.c (find_reloads): Exit loop once we find a hard register.
131
132 * rtlanal.c (computed_jump_p): Exit loop once we find label
133 reference is used.
134
135 * i386.c (ix86_pad_returns): Exit loop after setting replace.
136
137 * cfgloopmanip.c (remove_path): Exit loop after setting
138 irred_invalidated.
139
140 * gensupport.c (subst_dup): Avoid loop if code is not
141 MATCH_DUP nor MATCH_OP_DUP.
142
143 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
144
145 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
146
147 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
148
149 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
150 true for SP_REGNUM if mode == ptr_mode.
151 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
152 with value R0_REGNUM + 31.
153
154 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
155
156 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
157 pad pointer-typed argument downward.
158
159 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
160
161 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
162 and __ILP32__ when the ILP32 model is in use.
163
164 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
165
166 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
167 (aarch64_load_symref_appropriately): In the case of
168 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
169 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
170 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
171 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
172 if 'mode' doesn't equal to 'ptr_mode'.
173 (aarch64_output_mi_thunk): Add an assertion on the alignment of
174 'vcall_offset'; change to call aarch64_emit_move differently depending
175 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
176 to calculate the upper bound of 'vcall_offset'.
177 (aarch64_cannot_force_const_mem): Change to also return true if
178 mode != ptr_mode.
179 (aarch64_legitimize_reload_address): In the case of large
180 displacements, add new local variable 'xmode' and an assertion
181 based on it; change to use 'xmode' to generate the new rtx and
182 reload.
183 (aarch64_asm_trampoline_template): Change to generate the template
184 differently depending on TARGET_ILP32 or not; change to use
185 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
186 (aarch64_trampoline_size): Removed.
187 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
188 and replace immediate literals with it. Change to use 'ptr_mode'
189 instead of 'DImode' and call convert_memory_address if the mode
190 of 'fnaddr' doesn't equal to 'ptr_mode'.
191 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
192 to output symbol.
193 (aarch64_elf_asm_destructor): Likewise.
194 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
195 on TARGET_ILP32 instead of aarch64_trampoline_size.
196 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
197 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
198 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
199 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
200 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
201 (storewb_pair<GPI:mode>_<P:mode>): ... this.
202 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
203 depending on the value of 'mode'.
204 (add_losym_<mode>): New.
205 (ldr_got_small_<mode>): New, based on ldr_got_small.
206 (ldr_got_small): Remove.
207 (ldr_got_small_sidi): New.
208 * config/aarch64/iterators.md (P): New.
209 (PTR): Change to 'ptr_mode' in the condition.
210
211 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
212
213 * config.gcc (aarch64*-*-*): Support --with-abi.
214 (aarch64*-*-elf): Support --with-multilib-list.
215 (aarch64*-*-linux*): Likewise.
216 (supported_defaults): Add abi to aarch64*-*-*.
217 * configure.ac: Mention AArch64 for --with-multilib-list.
218 * configure: Re-generated.
219 * config/aarch64/biarchilp32.h: New file.
220 * config/aarch64/biarchlp64.h: New file.
221 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
222 (ABI_SPEC): Ditto.
223 (MULTILIB_DEFAULTS): Ditto.
224 (DRIVER_SELF_SPECS): Ditto.
225 (ASM_SPEC): Update to also substitute -mabi.
226 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
227 file whose name depends on -mabi= and -mbig-endian.
228 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
229 TARGET_ILP32.
230 (POINTER_SIZE): New define.
231 (POINTERS_EXTEND_UNSIGNED): Ditto.
232 (enum aarch64_abi_type): New enumeration tag.
233 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
234 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
235 (TARGET_ILP32): New define.
236 * config/aarch64/aarch64.opt (mabi): New.
237 (aarch64_abi): New.
238 (ilp32, lp64): New values for -mabi.
239 * config/aarch64/t-aarch64 (comma): New define.
240 (MULTILIB_OPTIONS): Ditto.
241 (MULTILIB_DIRNAMES): Ditto.
242 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
243 * doc/invoke.texi: Document -mabi for AArch64.
244
245 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
246
247 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
248
249 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
250 Anton Blanchard <anton@au1.ibm.com>
251
252 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
253 endianness when selecting field to splat.
254
255 2013-07-22 Eric Christopher <echristo@gmail.com>
256
257 * dwarf2out.c (die_odr_checksum): New function to use
258 CHECKSUM_ macros and ULEB128 for DIE tag.
259 (generate_type_signature): Use.
260
261 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
262
263 * config.gcc (sparc*-*-*): Accept leon3 processor.
264 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
265 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
266 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
267 * config/sparc/sparc.opt (enum processor_type): Add leon3.
268 (mfix-ut699): Adjust comment.
269 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
270 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
271 (CPP_CPU_SPEC): Likewise.
272 (ASM_CPU_SPEC): Likewise.
273 * config/sparc/sparc.c (leon3_cost): New constant.
274 (sparc_option_override): Add leon3 support.
275 (mem_ref): New function.
276 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
277 (sparc_do_work_around_errata): Look into the instruction in the delay
278 slot and adjust accordingly. Add fix for the data cache nullify issues
279 of the UT699. Change insertion position for the NOP.
280 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
281 (leon3_load): New reservation.
282 (leon_store): Bump latency to 2.
283 (grfpu): New automaton.
284 (grfpu_alu): New unit.
285 (grfpu_ds): Likewise.
286 (leon_fp_alu): Adjust.
287 (leon_fp_mult): Delete.
288 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
289 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
290 * config/sparc/sparc.md (cpu): Add leon3.
291 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
292 (swapsi): Likewise.
293 (atomic_test_and_set): Likewise.
294 (ldstub): Likewise.
295
296 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
297
298 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
299 default for R5900 targets.
300 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
301 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
302 * config/mips/mips.c (mips_option_override): Report an error for
303 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
304 for -march=r5900 -mhard-float.
305
306 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
307
308 * df-problems.c (can_move_insns_across): Exit loop once we
309 find a non-fixed, non-global register.
310
311 * ipa-pure-const.c (propagate_nothrow): Exit loop after
312 setting can_throw.
313
314 * omega.c (omega_eliminate_red): Break after setting red_found.
315 (omega_problem_has_red_equations): Similarly after setting found.
316 (omega_query_variable): Similarly after setting coupled.
317
318 2013-07-22 Marek Polacek <polacek@redhat.com>
319
320 * gimplify.c: Don't include gimple.h twice.
321
322 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
323
324 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
325 instead of TARGET_THUMB1.
326 (Pz): New constraint.
327 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
328 encodings.
329 (compare_negsi_si): Likewise.
330 (compare_addsi2_op0): Likewise.
331 (compare_addsi2_op1): Likewise.
332 (addsi3_carryin_<optab>): Likewise.
333 (addsi3_carryin_alt2_<optab>): Likewise.
334 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
335 for arm_restrict_it.
336 (subsi3_carryin): Likewise.
337 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
338 (minmax_arithsi): Disable for arm_restrict_it.
339 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
340 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
341 (satsi_<SAT:code>_shift): Likewise.
342 (arm_shiftsi3): Add alternative for 16-bit encoding.
343 (arm32_movhf): Disable for arm_restrict_it.
344 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
345 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
346
347 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
348
349 * config/arm/arm.md (attribute "insn"): Delete.
350 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
351 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
352 (not_shiftsi): Update for attribute change.
353 (not_shiftsi_compare0): Likewise.
354 (not_shiftsi_compare0_scratch): Likewise.
355 (arm_one_cmplsi2): Likewise.
356 (thumb1_one_cmplsi2): Likewise.
357 (notsi_compare0): Likewise.
358 (notsi_compare0_scratch): Likewise.
359 (thumb1_movdi_insn): Likewise.
360 (arm_movsi_insn): Likewise.
361 (movhi_insn_arch4): Likewise.
362 (movhi_bytes): Likewise.
363 (arm_movqi_insn): Likewise.
364 (thumb1_movqi_insn): Likewise.
365 (arm32_movhf): Likewise.
366 (thumb1_movhf): Likewise.
367 (arm_movsf_soft_insn): Likewise.
368 (thumb1_movsf_insn): Likewise.
369 (thumb_movdf_insn): Likewise.
370 (movsicc_insn): Likewise.
371 (movsfcc_soft_insn): Likewise.
372 (and_scc): Likewise.
373 (cond_move): Likewise.
374 (if_move_not): Likewise.
375 (if_not_move): Likewise.
376 (if_shift_move): Likewise.
377 (if_move_shift): Likewise.
378 (if_shift_shift): Likewise.
379 (if_not_arith): Likewise.
380 (if_arith_not): Likewise.
381 (cond_move_not): Likewise.
382 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
383 (neon_mov<mode>): Likewise.
384 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
385 (thumb2_movsi_vfp): Likewise.
386 (movsf_vfp): Likewise.
387 (thumb2_movsf_vfp): Likewise.
388 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
389 change.
390 (cortexa7_older_only): Likewise.
391 (cortexa7_younger): Likewise.
392 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
393 (1020alu_shift_op): Likewise.
394 (1020alu_shift_reg_op): Likewise.
395 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
396 (alu_shift_op): Likewise.
397 (alu_shift_reg_op): Likewise.
398 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
399 (11_alu_shift_op): Likewise.
400 (11_alu_shift_reg_op): Likewise.
401 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
402 (9_alu_shift_reg_op): Likewise.
403 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
404 change.
405 (cortex_a15_alu_shift): Likewise.
406 (cortex_a15_alu_shift_reg): Likewise.
407 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
408 (cortex_a5_alu_shift): Likewise.
409 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
410 change.
411 (cortex_a53_alu_shift): Likewise.
412 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
413 change.
414 (cortex_a7_alu_reg): Likewise.
415 (cortex_a7_alu_shift): Likewise.
416 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
417 (cortex_a8_alu_shift): Likewise.
418 (cortex_a8_alu_shift_reg): Likewise.
419 (cortex_a8_mov): Likewise.
420 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
421 (cortex_a9_dp_shift): Likewise.
422 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
423 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
424 (cortex_r4_mov): Likewise.
425 (cortex_r4_alu_shift): Likewise.
426 (cortex_r4_alu_shift_reg): Likewise.
427 * config/arm/fa526.md (526_alu_op): Update for attribute change.
428 (526_alu_shift_op): Likewise.
429 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
430 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
431 (626te_alu_shift_op): Likewise.
432 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
433 (726te_alu_op): Likewise.
434 (726te_alu_shift_op): Likewise.
435 (726te_alu_shift_reg_op): Likewise.
436 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
437 (mp626_alu_shift_op): Likewise.
438 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
439 (pj4_alu_e1_conds): Likewise.
440 (pj4_alu): Likewise.
441 (pj4_alu_conds): Likewise.
442 (pj4_shift): Likewise.
443 (pj4_shift_conds): Likewise.
444 (pj4_alu_shift): Likewise.
445 (pj4_alu_shift_conds): Likewise.
446
447 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
448
449 * config/arm/predicates.md (shiftable_operator_strict_it):
450 New predicate.
451 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
452 Disable cond_exec version for arm_restrict_it.
453 (thumb2_smaxsi3): Convert to generate cond_exec.
454 (thumb2_sminsi3): Likewise.
455 (thumb32_umaxsi3): Likewise.
456 (thumb2_uminsi3): Likewise.
457 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
458 (thumb2_neg_abssi2): Likewise.
459 (thumb2_mov_scc): Add alternative for 16-bit encoding.
460 (thumb2_movsicc_insn): Adjust alternatives.
461 (thumb2_mov_negscc): Disable for arm_restrict_it.
462 (thumb2_mov_negscc_strict_it): New pattern.
463 (thumb2_mov_notscc_strict_it): New pattern.
464 (thumb2_mov_notscc): Disable for arm_restrict_it.
465 (thumb2_ior_scc): Likewise.
466 (thumb2_ior_scc_strict_it): New pattern.
467 (thumb2_cond_move): Adjust for arm_restrict_it.
468 (thumb2_cond_arith): Disable for arm_restrict_it.
469 (thumb2_cond_arith_strict_it): New pattern.
470 (thumb2_cond_sub): Adjust for arm_restrict_it.
471 (thumb2_movcond): Likewise.
472 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
473 (thumb2_zero_extendhisi2_v6): Likewise.
474 (thumb2_zero_extendqisi2_v6): Likewise.
475 (orsi_notsi_si): Likewise.
476 (orsi_not_shiftsi_si): Likewise.
477
478 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
479
480 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
481 instruction sequence is 1 byte shorter.
482
483 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
484
485 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
486 it is not needed after split.
487
488 2013-07-20 Iain Sandoe <iain@codesourcery.com>
489
490 PR target/51784
491 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
492 second label for nonlocal goto receivers. Don't output pic base labels
493 unless we're producing PIC; mark that action unreachable().
494 (ix86_save_reg): If the function contains a nonlocal label, save the
495 PIC base reg.
496 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
497 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
498 (update_pic_label_number_if_needed): New.
499 (machopic_output_function_base_name): Adjust for nonlocal receiver
500 case.
501 (machopic_should_output_picbase_label): New.
502 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
503 (nonlocal_goto_receiver): New insn and split.
504
505 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
506
507 * config/aarch64/aarch64-builtins.c
508 (aarch64_fold_builtin): Fold abs in all modes.
509 * config/aarch64/aarch64-simd-builtins.def
510 (abs): Enable for all modes.
511 * config/aarch64/arm_neon.h
512 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
513 (vabs_f64): Add missing intrinsic.
514
515 2013-07-19 Ian Bolton <ian.bolton@arm.com>
516
517 * config/aarch64/arm_neon.h (vabs_s64): New function
518
519 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
520
521 PR target/57516
522 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
523 * config/avr/avr.md (adjust_len): Add `round'.
524 * config/avr/avr-protos.h (avr_out_round): New prototype.
525 (avr_out_plus): Add `out_label' argument.
526 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
527 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
528 Handle the case where `insn' is just a pattern.
529 (avr_out_bitop): Handle the case where `insn' is just a pattern.
530 (avr_out_round): New function.
531 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
532
533 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
534
535 * config/microblaze/microblaze.c (microblaze_expand_prologue):
536 Add check for flag_stack_usage to handle -fstack-usage support
537
538 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
539
540 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
541 interaction for new Power8 flags and VSX.
542
543 2013-07-18 Sriraman Tallam <tmsriram@google.com>
544
545 PR middle-end/57698
546 * tree-inline.c (expand_call_inline): Emit errors during
547 early_inlining only if optimization is not turned on.
548
549 2013-07-18 David Malcolm <dmalcolm@redhat.com>
550
551 * passes.def: New.
552
553 * passes.c (init_optimization_passes): Move the construction of
554 the pass hierarchy into a new passes.def file.
555
556 * Makefile.in (passes.o): Add dependency on passes.def.
557
558 2013-07-18 David Malcolm <dmalcolm@redhat.com>
559
560 * passes.c (init_optimization_passes): Introduce macros for
561 constructing the tree of passes (INSERT_PASSES_AFTER,
562 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
563 TERMINATE_PASS_LIST).
564
565 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
566 Wei Mi <wmi@google.com>
567
568 PR rtl-optimization/57878
569 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
570 top.
571 (reload_pseudo_compare_func): Check nregs first for reload
572 pseudos.
573
574 2013-07-18 David Malcolm <dmalcolm@redhat.com>
575
576 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
577
578 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
579
580 * read-rtl.c (validate_const_int): Once an invalid character is
581 seen, quit the loop.
582
583 * gengtype.c (write_roots): Similarly once we find the "deletable"
584 or "if_marked" option.
585
586 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
587
588 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
589 "xtab" and "sat". Move value "clz" from here to ...
590 (attriubte "type"): ... here.
591 (satsi_<SAT:code>): Delete "insn" attribute.
592 (satsi_<SAT:code>_shift): Likewise.
593 (arm_zero_extendqisi2addsi): Likewise.
594 (arm_extendqisi2addsi): Likewise.
595 (clzsi2): Update for attribute changes.
596 (rbitsi2): Likewise.
597 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
598 attribute.
599 (arm_usatsihi): Likewise.
600 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
601
602 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
603
604 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
605 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
606 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
607 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
608 in alphabetical order.
609 (attribute "core_cycles"): Update for attribute changes.
610 (arm_addsi3): Likewise.
611 (addsi3_compare0): Likewise.
612 (addsi3_compare0_scratch): Likewise.
613 (addsi3_compare_op1): Likewise.
614 (addsi3_compare_op2): Likewise.
615 (compare_addsi2_op0): Likewise.
616 (compare_addsi2_op1): Likewise.
617 (addsi3_carryin_shift_<optab>): Likewise.
618 (subsi3_carryin_shift): Likewise.
619 (rsbsi3_carryin_shift): Likewise.
620 (arm_subsi3_insn): Likewise.
621 (subsi3_compare0): Likewise.
622 (subsi3_compare): Likewise.
623 (arm_andsi3_insn): Likewise.
624 (thumb1_andsi3_insn): Likewise.
625 (andsi3_compare0): Likewise.
626 (andsi3_compare0_scratch): Likewise.
627 (zeroextractsi_compare0_scratch
628 (andsi_not_shiftsi_si): Likewise.
629 (iorsi3_insn): Likewise.
630 (iorsi3_compare0): Likewise.
631 (iorsi3_compare0_scratch): Likewise.
632 (arm_xorsi3): Likewise.
633 (thumb1_xorsi3_insn): Likewise.
634 (xorsi3_compare0): Likewise.
635 (xorsi3_compare0_scratch): Likewise.
636 (satsi_<SAT:code>_shift): Likewise.
637 (rrx): Likewise.
638 (arm_shiftsi3): Likewise.
639 (shiftsi3_compare0): Likewise.
640 (not_shiftsi): Likewise.
641 (not_shiftsi_compare0): Likewise.
642 (not_shiftsi_compare0_scratch): Likewise.
643 (arm_one_cmplsi2): Likewise.
644 (thumb_one_complsi2): Likewise.
645 (notsi_compare0): Likewise.
646 (notsi_compare0_scratch): Likewise.
647 (thumb1_zero_extendhisi2): Likewise.
648 (arm_zero_extendhisi2): Likewise.
649 (arm_zero_extendhisi2_v6): Likewise.
650 (arm_zero_extendhisi2addsi): Likewise.
651 (thumb1_zero_extendqisi2): Likewise.
652 (thumb1_zero_extendqisi2_v6): Likewise.
653 (arm_zero_extendqisi2): Likewise.
654 (arm_zero_extendqisi2_v6): Likewise.
655 (arm_zero_extendqisi2addsi): Likewise.
656 (thumb1_extendhisi2): Likewise.
657 (arm_extendhisi2): Likewise.
658 (arm_extendhisi2_v6): Likewise.
659 (arm_extendqisi): Likewise.
660 (arm_extendqisi_v6): Likewise.
661 (arm_extendqisi2addsi): Likewise.
662 (thumb1_extendqisi2): Likewise.
663 (thumb1_movdi_insn): Likewise.
664 (arm_movsi_insn): Likewise.
665 (movsi_compare0): Likewise.
666 (movhi_insn_arch4): Likewise.
667 (movhi_bytes): Likewise.
668 (arm_movqi_insn): Likewise.
669 (thumb1_movqi_insn): Likewise.
670 (arm32_movhf): Likewise.
671 (thumb1_movhf): Likewise.
672 (arm_movsf_soft_insn): Likewise.
673 (thumb1_movsf_insn): Likewise.
674 (movdf_soft_insn): Likewise.
675 (thumb_movdf_insn): Likewise.
676 (arm_cmpsi_insn): Likewise.
677 (cmpsi_shiftsi): Likewise.
678 (cmpsi_shiftsi_swp): Likewise.
679 (arm_cmpsi_negshiftsi_si): Likewise.
680 (movsicc_insn): Likewise.
681 (movsfcc_soft_insn): Likewise.
682 (arith_shiftsi): Likewise.
683 (arith_shiftsi_compare0
684 (arith_shiftsi_compare0_scratch
685 (sub_shiftsi): Likewise.
686 (sub_shiftsi_compare0
687 (sub_shiftsi_compare0_scratch
688 (and_scc): Likewise.
689 (cond_move): Likewise.
690 (if_plus_move): Likewise.
691 (if_move_plus): Likewise.
692 (if_move_not): Likewise.
693 (if_not_move): Likewise.
694 (if_shift_move): Likewise.
695 (if_move_shift): Likewise.
696 (if_shift_shift): Likewise.
697 (if_not_arith): Likewise.
698 (if_arith_not): Likewise.
699 (cond_move_not): Likewise.
700 (thumb1_ashlsi3): Set type attribute.
701 (thumb1_ashrsi3): Likewise.
702 (thumb1_lshrsi3): Likewise.
703 (thumb1_rotrsi3): Likewise.
704 (shiftsi3_compare0_scratch): Likewise.
705 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
706 (neon_mov<mode>): Likewise.
707 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
708 attribute changes.
709 (thumb2_movsi_insn): Likewise.
710 (thumb2_cmpsi_neg_shiftsi): Likewise.
711 (thumb2_extendqisi_v6): Likewise.
712 (thumb2_zero_extendhisi2_v6): Likewise.
713 (thumb2_zero_extendqisi2_v6): Likewise.
714 (thumb2_shiftsi3_short): Likewise.
715 (thumb2_addsi3_compare0_scratch): Likewise.
716 (orsi_not_shiftsi_si): Likewise.
717 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
718 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
719 changes.
720 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
721 (1020alu_shift_op): Likewise.
722 (1020alu_shift_reg_op): Likewise.
723 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
724 (alu_shift_op): Likewise.
725 (alu_shift_reg_op): Likewise.
726 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
727 (11_alu_shift_op): Likewise.
728 (11_alu_shift_reg_op): Likewise.
729 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
730 (9_alu_shift_reg_op): Likewise.
731 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
732 changes.
733 (cortex_a15_alu_shift): Likewise.
734 (cortex_a15_alu_shift_reg): Likewise.
735 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
736 changes.
737 (cortex_a5_alu_shift): Likewise.
738 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
739 changes.
740 (cortex_a53_alu_shift): Likewise.
741 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
742 changes.
743 (cortex_a7_alu_reg): Likewise.
744 (cortex_a7_alu_shift): Likewise.
745 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
746 changes.
747 (cortex_a8_alu_shift): Likewise.
748 (cortex_a8_alu_shift_reg): Likewise.
749 (cortex_a8_mov): Likewise.
750 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
751 (cortex_a9_dp_shift): Likewise.
752 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
753 changes.
754 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
755 changes.
756 (cortex_r4_mov): Likewise.
757 (cortex_r4_alu_shift): Likewise.
758 (cortex_r4_alu_shift_reg): Likewise.
759 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
760 (526_alu_shift_op): Likewise.
761 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
762 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
763 (626te_alu_shift_op): Likewise.
764 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
765 (726te_alu_op): Likewise.
766 (726te_alu_shift_op): Likewise.
767 (726te_alu_shift_reg_op): Likewise.
768 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
769 (mp626_alu_shift_op): Likewise.
770 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
771 (pj4_alu_e1_conds): Likewise.
772 (pj4_alu): Likewise.
773 (pj4_alu_conds): Likewise.
774 (pj4_shift): Likewise.
775 (pj4_shift_conds): Likewise.
776 (pj4_alu_shift): Likewise.
777 (pj4_alu_shift_conds): Likewise.
778 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
779 changes.
780 (cortexa7_older_only): Likewise.
781 (cortexa7_younger): Likewise.
782
783 2013-07-18 David Malcolm <dmalcolm@redhat.com>
784
785 * ipa-pure-const.c (generate_summary): Rename to...
786 (pure_const_generate_summary): ... this.
787
788 2013-07-17 Iain Sandoe <iain@codesourcery.com>
789
790 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
791
792 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
793
794 PR target/57909
795 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
796 usage in HI mode.
797
798 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
799
800 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
801 enabled without -march=zEC12.
802 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
803 flags to be set.
804
805 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
806
807 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
808 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
809 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
810 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
811 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
812 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
813 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
814 ISA_HAS_FP4.
815 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
816 and ISA_HAS_NMADD3_NMSUB3.
817 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
818 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
819 (nmsub4<mode>, nmsub3<mode>): Likewise.
820 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
821
822 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
823
824 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
825 TARGET_MIPS5400 checking.
826
827 2013-07-16 Jakub Jelinek <jakub@redhat.com>
828 Peter Bergner <bergner@vnet.ibm.com>
829
830 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
831 registers in the comment.
832 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
833 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
834 rather than FIRST_PSEUDO_REGISTERS.
835
836 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
837
838 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
839 enable extra ISA flags with TARGET_HTM.
840
841 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
842
843 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
844 Fix comment typos.
845
846 2013-07-15 Cong Hou <congh@google.com>
847
848 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
849 in compare function for sorting.
850
851 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
852
853 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
854 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
855 * config/rs6000/rs6000.opt: Add -mhtm option.
856 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
857 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
858 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
859 __HTM__ if the HTM instructions are available.
860 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
861 htm_spr_reg_operand): New define_predicates.
862 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
863 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
864 Include htm.md.
865 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
866 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
867 HTM builtin functions.
868 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
869 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
870 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
871 (rs6000_builtin_mask_calculate): Likewise.
872 (rs6000_option_override_internal): Likewise.
873 (bdesc_htm): Add new HTM builtin support.
874 (htm_spr_num): New function.
875 (htm_spr_regno): Likewise.
876 (rs6000_htm_spr_icode): Likewise.
877 (htm_expand_builtin): Likewise.
878 (htm_init_builtins): Likewise.
879 (rs6000_expand_builtin): Add support for HTM builtin functions.
880 (rs6000_init_builtins): Likewise.
881 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
882 option.
883 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
884 (TARGET_HTM, MASK_HTM): Define macros.
885 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
886 (FIXED_REGISTERS): Likewise.
887 (CALL_USED_REGISTERS): Likewise.
888 (CALL_REALLY_USED_REGISTERS): Likewise.
889 (REG_ALLOC_ORDER): Likewise.
890 (enum reg_class): Likewise.
891 (REG_CLASS_NAMES): Likewise.
892 (REG_CLASS_CONTENTS): Likewise.
893 (REGISTER_NAMES): Likewise.
894 (ADDITIONAL_REGISTER_NAMES): Likewise.
895 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
896 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
897 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
898 * config/rs6000/htm.md: New file.
899 * config/rs6000/htmintrin.h: New file.
900 * config/rs6000/htmxlintrin.h: New file.
901
902 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
903
904 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
905 Define SYMBOL_TINY_GOT, update comment.
906 * config/aarch64/aarch64.c
907 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
908 (aarch64_expand_mov_immediate): Likewise.
909 (aarch64_print_operand): Likewise.
910 (aarch64_classify_symbol): Likewise.
911 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
912 (ldr_got_tiny): Define.
913
914 2013-07-13 Tobias Grosser <tobias@grosser.es>
915
916 PR tree-optimization/54094
917 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
918 scheduling dimension for the parallelism check from the polyhedral
919 information in the AST.
920 * graphite-dependences.c (carries_deps): Do not assume the schedule is
921 in 2D + 1 form.
922
923 2013-07-13 Jason Merrill <jason@redhat.com>
924
925 * print-tree.c (debug_vec_tree): Use debug_raw.
926 (debug_raw (vec<tree, va_gc> &)): New.
927 (debug_raw (vec<tree, va_gc> *)): New.
928 * tree.h: Declare them.
929
930 2013-07-13 Bin Cheng <bin.cheng@arm.com>
931
932 * ifcvt.c (ifcvt_after_combine): New static variable.
933 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
934 for size.
935 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
936 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
937 rest_of_handle_if_after_reload): Pass new argument for if_convert.
938
939 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
940
941 * config/mips/mips.c (mips_expand_call): Remove empty statement.
942
943 2013-07-12 Michael Matz <matz@suse.de>
944
945 PR middle-end/55771
946 * convert.c (convert_to_real): Reject non-float inner types.
947
948 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
949
950 * config/aarch64/aarch64-protos.h
951 (aarch64_simd_immediate_valid_for_move): Remove.
952 * config/aarch64/aarch64.c (simd_immediate_info): New member.
953 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
954 cases.
955 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
956
957 2013-07-11 Steve Ellcey <sellcey@mips.com>
958
959 * config/mips/mips.c (mips_conditional_register_usage): Do not
960 use t[0-7] registers in MIPS16 mode when optimizing for size.
961
962 2013-07-11 Sriraman Tallam <tmsriram@google.com>
963
964 * config/i386/i386.c (dispatch_function_versions): Fix array
965 indexing of function_version_info to match actual_versions.
966
967 2013-07-11 Teresa Johnson <tejohnson@google.com>
968
969 * vec.h (struct va_gc): Move release out-of-line.
970 (va_gc::release): Call ggc_free on released vec.
971
972 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
973
974 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
975 Require GOT register as additional operand in UNSPEC.
976 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
977 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
978 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
979 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
980 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
981 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
982 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
983
984 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
985
986 PR target/57631
987 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
988 name seen by assembler/linker rather if available.
989
990 2013-07-11 Andreas Schwab <schwab@suse.de>
991
992 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
993
994 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
995
996 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
997
998 2013-07-10 Joseph Myers <joseph@codesourcery.com>
999
1000 * doc/tm.texi.in: Move hook documentation to ....
1001 * target.def: ... here.
1002
1003 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1004 text on @hook line.
1005 * doc/tm.texi: Regenerate.
1006
1007 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1008
1009 PR c++/57869
1010 * doc/invoke.texi: Document -Wconditionally-supported.
1011
1012 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1013
1014 PR target/57844
1015 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1016 of my_fp.
1017
1018 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1019
1020 PR target/57506
1021 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1022 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1023 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1024 Remove duplicate devices.
1025 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1026 * config/avr/t-multilib: Regenerate.
1027 * config/avr/avr-tables.opt: Regenerate.
1028 * doc/avr-mmcu.texi: Regenerate.
1029
1030 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1031
1032 PR target/56987
1033 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1034
1035 2013-07-10 Graham Stott <graham.stott@btinternet.com>
1036
1037 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1038 the cost of MULT when optimizing for size.
1039
1040 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1041
1042 * config/cr16/cr16-protos.h: Don't include target.h.
1043
1044 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1045
1046 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1047 adjust register size for TDmode and TFmode for VSX registers.
1048
1049 2013-07-08 Kai Tietz <ktietz@redhat.com>
1050
1051 PR target/56892
1052 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1053 hook_bool_const_tree_true.
1054
1055 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1056
1057 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1058 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1059 * config/s390/s390.md: Define FPR*_REGNUM constants.
1060 Fix FPR2_REGNUM constant (18 -> 17).
1061 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1062 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1063 ("trunc<BFP:mode><DFP_ALL:mode>2")
1064 ("trunc<DFP_ALL:mode><BFP:mode>2")
1065 ("*extend<BFP:mode><DFP_ALL:mode>2")
1066 ("*extend<DFP_ALL:mode><BFP:mode>2")
1067 ("extend<BFP:mode><DFP_ALL:mode>2")
1068 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1069 FPR4_REGNUM.
1070
1071 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1072
1073 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1074
1075 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1076
1077 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1078 and cfun_fpr_bit_p to cfun_fpr_save_p.
1079 (s390_frame_area, s390_register_info, s390_frame_info)
1080 (s390_emit_prologue, s390_emit_epilogue)
1081 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1082 register numbers.
1083 * config/s390/s390.h: Define *_REGNUM macros for floating point
1084 register numbers.
1085
1086 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1087
1088 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1089
1090 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1091
1092 PR rtl-optimization/57786
1093 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1094 and break out of the loop when it is set to false.
1095
1096 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR target/57819
1099 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1100 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1101 (const_int 63)) 0)).
1102 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1103 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1104 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1105
1106 PR rtl-optimization/57829
1107 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1108 mask bits outside of mode are just sign-extension from mode to HWI.
1109
1110 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1111
1112 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1113 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1114 adjust_address instead of change_address to keep info about alignment.
1115 (emit_strmov): Remove.
1116 (emit_memmov): New function.
1117 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1118 (expand_movmem_epilogue): Likewise and return updated rtx for
1119 destination.
1120 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1121 destination and source.
1122 (decide_alignment): Refactor, handle vector_loop.
1123 (ix86_expand_movmem): Likewise.
1124 (ix86_expand_setmem): Likewise.
1125 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1126
1127 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1128
1129 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1130 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1131
1132 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1133
1134 * config/i386/sse.md (sse_movlhps): Change alternative 3
1135 of operand 2 to "m".
1136
1137 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1138
1139 PR target/57807
1140 * config/i386/sse.md (iptr): New mode attribute.
1141 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1142 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1143 (<sse>_vmmul<mode>3): Ditto.
1144 (<sse>_vmdiv<mode>3): Ditto.
1145 (sse_vmrcpv4sf2): Ditto.
1146 (<sse>_vmsqrt<mode>2): Ditto.
1147 (sse_vmrsqrtv4sf2): Ditto.
1148 (<sse>_vm<code><mode>3): Ditto.
1149 (avx_vmcmp<mode>3): Ditto.
1150 (<sse>_vmmaskcmp<mode>3): Ditto.
1151 (<sse>_comi): Ditto.
1152 (<sse>_ucomi): Ditto.
1153 (*xop_vmfrcz_<mode>): Ditto.
1154 (*fmai_fmadd_<mode>): Ditto.
1155 (*fmai_fmsub_<mode>): Ditto.
1156 (*fmai_fnmadd_<mode>): Ditto.
1157 (*fmai_fnmsub_<mode>): Ditto.
1158 (*fma4i_vmfmadd_<mode>): Ditto.
1159 (*fma4i_vmfmsub_<mode>): Ditto.
1160 (*fma4i_vmfnmadd_<mode>): Ditto.
1161 (*fma4i_vmfnmsub_<mode>): Ditto.
1162 (*xop_vmfrcz_<mode>): Ditto.
1163 (sse_cvtps2pi): Ditto.
1164 (sse_cvttps2pi): Ditto.
1165 (sse_cvtss2si): Ditto.
1166 (sse_cvtss2si_2): Ditto.
1167 (sse_cvtss2siq_2): Ditto.
1168 (sse_cvttss2si): Ditto.
1169 (sse_cvttss2siq): Ditto.
1170 (sse_cvtsd2si): Ditto.
1171 (sse_cvtsd2si_2): Ditto.
1172 (sse_cvtsd2siq_2): Ditto.
1173 (sse_cvttsd2si): Ditto.
1174 (sse_cvttsd2siq): Ditto.
1175 (sse_cvtsd2ss): Ditto.
1176 (sse_cvtss2sd): Ditto.
1177 (avx2_pbroadcast<mode>): Ditto.
1178 (avx2_pbroadcast<mode>_1): Ditto.
1179 (*avx_vperm_broadcast_v4sf): Ditto.
1180
1181 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1182 (sse_movlhps): Ditto.
1183 (sse_storehps): Ditto.
1184 (sse_loadhps): Ditto.
1185 (sse_storelps): Ditto.
1186 (sse_loadlps): Ditto.
1187 (*vec_concatv4sf): Ditto.
1188 (*vec_interleave_highv2df): Ditto.
1189 (*vec_interleave_lowv2df): Ditto.
1190 (*vec_extractv2df_1_sse): Ditto.
1191 (*vec_extractv2df_0_sse): Ditto.
1192 (sse2_storelpd): Ditto.
1193 (sse2_loadlpd): Ditto.
1194 (sse2_movsd): Ditto.
1195 (*vec_concatv4si): Ditto.
1196 (vec_concatv2di): Ditto.
1197
1198 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1199 for Intel asm dialect.
1200 (mmx_punpcklwd): Ditto.
1201 (mmx_punpckldq): Ditto.
1202
1203 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1204 for intel assembler dialect.
1205
1206 2013-07-06 Jakub Jelinek <jakub@redhat.com>
1207
1208 PR target/29776
1209 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1210 for BUILT_IN_C{LZ,LRSB}*.
1211 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1212 * tree-vrp.c (extract_range_basic): Handle
1213 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1214 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1215 fall thru to code calling set_value*.
1216 * builtins.c (expand_builtin): Remove *IMAX cases.
1217 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1218 if width is bigger than 2*HWI.
1219
1220 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1221
1222 PR rtl-optimization/55342
1223 * lra-int.h (lra_subreg_reload_pseudos): New.
1224 * lra.c: Add undoing optional reloads to the block diagram.
1225 (lra_subreg_reload_pseudos): New.
1226 (lra_optional_reload_pseudos): Change comments.
1227 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1228 lra_optional_reload_pseudos after undo transformations.
1229 * lra-assigns.c (pseudo_prefix_title): New.
1230 (lra_setup_reg_renumber): Use it.
1231 (spill_for): Ditto. Check subreg reload pseudos too.
1232 (assign_by_spills): Consider subreg reload pseudos too.
1233 * lra-constraints.c (simplify_operand_subreg): Use
1234 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1235 (curr_insn_transform): Recognize and do optional reloads.
1236 (undo_optional_reloads): New.
1237 (lra_undo_inheritance): Call undo_optional_reloads.
1238
1239 2013-07-05 Thomas Quinot <quinot@adacore.com>
1240
1241 * tree-complex.c (expand_complex_operations_1): Fix typo.
1242
1243 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1244
1245 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1246 (tune_params): New member 'const vec_costs'.
1247 * config/aarch64/aarch64.c (generic_vector_cost): New.
1248 (generic_tunings): New member 'generic_vector_cost'.
1249 (aarch64_builtin_vectorization_cost): New.
1250 (aarch64_add_stmt_cost): New.
1251 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1252 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1253
1254 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR target/57777
1257 * config/i386/predicates.md (vsib_address_operand): Disallow
1258 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1259
1260 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1261
1262 PR middle-end/55030
1263 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1264 expand_builtin_setjmp_receiver.
1265 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1266 with NULL for the label parameter.
1267 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1268 the frame-pointer. Adjust comments.
1269 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1270 only if LABEL is non-NULL.
1271
1272 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1273
1274 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1275 (ARM_ABI_AAPCS64): Ditto.
1276 (arm_abi): Ditto.
1277 (ARM_DEFAULT_ABI): Ditto.
1278
1279 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1280
1281 * config/aarch64/aarch64-builtins.c
1282 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1283 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1284 (st1): Likewise.
1285 * config/aarch64/aarch64-simd.md
1286 (aarch64_ld1<VALL:mode>): New.
1287 (aarch64_st1<VALL:mode>): Likewise.
1288 * config/aarch64/arm_neon.h
1289 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1290
1291 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1292
1293 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1294 target ISA is AVX.
1295 (ix86_option_override_internal):Turn on all -mavx target flags by
1296 default as they are dependent on AVX anyway.
1297
1298 2013-07-02 Cary Coutant <ccoutant@google.com>
1299
1300 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1301 deterministic hash.
1302 (loc_checksum_ordered): Likewise.
1303 (hash_loc_operands): Remove inline keyword.
1304
1305 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR tree-optimization/57741
1308 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1309 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1310 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1311 Allow REAL_CST step_exprs if flag_associative_math.
1312 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1313
1314 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1315
1316 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1317
1318 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1319
1320 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1321
1322 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1323
1324 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1325 encoding.
1326 (iorsi3_insn): Likewise.
1327 (arm_xorsi3): Likewise.
1328
1329 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1330
1331 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1332 to ...
1333 (attribute "type"): ... here, and prefix with "wmmx_".
1334 (attribute "core_cycles"): Update for attribute changes.
1335 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1336 (tbcstv4hi): Likewise.
1337 (tbcstv2si): Likewise.
1338 (iwmmxt_iordi3): Likewise.
1339 (iwmmxt_xordi3): Likewise.
1340 (iwmmxt_anddi3): Likewise.
1341 (iwmmxt_nanddi3): Likewise.
1342 (iwmmxt_arm_movdi): Likewise.
1343 (iwmmxt_movsi_insn): Likewise.
1344 (mov<mode>_internal): Likewise.
1345 (and<mode>3_iwmmxt): Likewise.
1346 (ior<mode>3_iwmmxt): Likewise.
1347 (xor<mode>3_iwmmxt): Likewise.
1348 (add<mode>3_iwmmxt): Likewise.
1349 (ssaddv8qi3): Likewise.
1350 (ssaddv4hi3): Likewise.
1351 (ssaddv2si3): Likewise.
1352 (usaddv8qi3): Likewise.
1353 (usaddv4hi3): Likewise.
1354 (usaddv2si3): Likewise.
1355 (sub<mode>3_iwmmxt): Likewise.
1356 (sssubv8qi3): Likewise.
1357 (sssubv4hi3): Likewise.
1358 (sssubv2si3): Likewise.
1359 (ussubv8qi3): Likewise.
1360 (ussubv4hi3): Likewise.
1361 (ussubv2si3): Likewise.
1362 (mulv4hi3_iwmmxt): Likewise.
1363 (smulv4hi3_highpart): Likewise.
1364 (umulv4hi3_highpart): Likewise.
1365 (iwmmxt_wmacs): Likewise.
1366 (iwmmxt_wmacsz): Likewise.
1367 (iwmmxt_wmacu): Likewise.
1368 (iwmmxt_wmacuz): Likewise.
1369 (iwmmxt_clrdi): Likewise.
1370 (iwmmxt_clrv8qi): Likewise.
1371 (iwmmxt_clr4hi): Likewise.
1372 (iwmmxt_clr2si): Likewise.
1373 (iwmmxt_uavgrndv8qi3): Likewise.
1374 (iwmmxt_uavgrndv4hi3): Likewise.
1375 (iwmmxt_uavgv8qi3): Likewise.
1376 (iwmmxt_uavgv4hi3): Likewise.
1377 (iwmmxt_tinsrb): Likewise.
1378 (iwmmxt_tinsrh): Likewise.
1379 (iwmmxt_tinsrw): Likewise.
1380 (iwmmxt_textrmub): Likewise.
1381 (iwmmxt_textrmsb): Likewise.
1382 (iwmmxt_textrmuh): Likewise.
1383 (iwmmxt_textrmsh): Likewise.
1384 (iwmmxt_textrmw): Likewise.
1385 (iwmxxt_wshufh): Likewise.
1386 (eqv8qi3): Likewise.
1387 (eqv4hi3): Likewise.
1388 (eqv2si3): Likewise.
1389 (gtuv8qi3): Likewise.
1390 (gtuv4hi3): Likewise.
1391 (gtuv2si3): Likewise.
1392 (gtv8qi3): Likewise.
1393 (gtv4hi3): Likewise.
1394 (gtv2si3): Likewise.
1395 (smax<mode>3_iwmmxt): Likewise.
1396 (umax<mode>3_iwmmxt): Likewise.
1397 (smin<mode>3_iwmmxt): Likewise.
1398 (umin<mode>3_iwmmxt): Likewise.
1399 (iwmmxt_wpackhss): Likewise.
1400 (iwmmxt_wpackwss): Likewise.
1401 (iwmmxt_wpackdss): Likewise.
1402 (iwmmxt_wpackhus): Likewise.
1403 (iwmmxt_wpackwus): Likewise.
1404 (iwmmxt_wpackdus): Likewise.
1405 (iwmmxt_wunpckihb): Likewise.
1406 (iwmmxt_wunpckihh): Likewise.
1407 (iwmmxt_wunpckihw): Likewise.
1408 (iwmmxt_wunpckilb): Likewise.
1409 (iwmmxt_wunpckilh): Likewise.
1410 (iwmmxt_wunpckilw): Likewise.
1411 (iwmmxt_wunpckehub): Likewise.
1412 (iwmmxt_wunpckehuh): Likewise.
1413 (iwmmxt_wunpckehuw): Likewise.
1414 (iwmmxt_wunpckehsb): Likewise.
1415 (iwmmxt_wunpckehsh): Likewise.
1416 (iwmmxt_wunpckehsw): Likewise.
1417 (iwmmxt_wunpckelub): Likewise.
1418 (iwmmxt_wunpckeluh): Likewise.
1419 (iwmmxt_wunpckeluw): Likewise.
1420 (iwmmxt_wunpckelsb): Likewise.
1421 (iwmmxt_wunpckelsh): Likewise.
1422 (iwmmxt_wunpckelsw): Likewise.
1423 (ror<mode>3): Likewise.
1424 (ashr<mode>3_iwmmxt): Likewise.
1425 (lshr<mode>3_iwmmxt): Likewise.
1426 (ashl<mode>3_iwmmxt): Likewise.
1427 (ror<mode>3_di): Likewise.
1428 (ashr<mode>3_di): Likewise.
1429 (lshr<mode>3_di): Likewise.
1430 (ashl<mode>3_di): Likewise.
1431 (iwmmxt_wmadds): Likewise.
1432 (iwmmxt_wmaddu): Likewise.
1433 (iwmmxt_tmia): Likewise.
1434 (iwmmxt_tmiaph): Likewise.
1435 (iwmmxt_tmiabb): Likewise.
1436 (iwmmxt_tmiatb): Likewise.
1437 (iwmmxt_tmiabt): Likewise.
1438 (iwmmxt_tmiatt): Likewise.
1439 (iwmmxt_tmovmskb): Likewise.
1440 (iwmmxt_tmovmskh): Likewise.
1441 (iwmmxt_tmovmskw): Likewise.
1442 (iwmmxt_waccb): Likewise.
1443 (iwmmxt_wacch): Likewise.
1444 (iwmmxt_waccw): Likewise.
1445 (iwmmxt_waligni): Likewise.
1446 (iwmmxt_walignr): Likewise.
1447 (iwmmxt_walignr0): Likewise.
1448 (iwmmxt_walignr1): Likewise.
1449 (iwmmxt_walignr2): Likewise.
1450 (iwmmxt_walignr3): Likewise.
1451 (iwmmxt_wsadb): Likewise.
1452 (iwmmxt_wsadh): Likewise.
1453 (iwmmxt_wsadbz): Likewise.
1454 (iwmmxt_wsadhz): Likewise.
1455 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1456 (iwmmxt_wabsdiffb): Likewise.
1457 (iwmmxt_wabsdiffh): Likewise.
1458 (iwmmxt_wabsdiffw): Likewise.
1459 (iwmmxt_waddsubhx): Likewise
1460 (iwmmxt_wsubaddhx): Likewise.
1461 (addc<mode>3): Likewise.
1462 (iwmmxt_avg4): Likewise.
1463 (iwmmxt_avg4r): Likewise.
1464 (iwmmxt_wmaddsx): Likewise.
1465 (iwmmxt_wmaddux): Likewise.
1466 (iwmmxt_wmaddsn): Likewise.
1467 (iwmmxt_wmaddun): Likewise.
1468 (iwmmxt_wmulwsm): Likewise.
1469 (iwmmxt_wmulwum): Likewise.
1470 (iwmmxt_wmulsmr): Likewise.
1471 (iwmmxt_wmulumr): Likewise.
1472 (iwmmxt_wmulwsmr): Likewise.
1473 (iwmmxt_wmulwumr): Likewise.
1474 (iwmmxt_wmulwl): Likewise.
1475 (iwmmxt_wqmulm): Likewise.
1476 (iwmmxt_wqmulwm): Likewise.
1477 (iwmmxt_wqmulmr): Likewise.
1478 (iwmmxt_wqmulwmr): Likewise.
1479 (iwmmxt_waddbhusm): Likewise.
1480 (iwmmxt_waddbhusl): Likewise.
1481 (iwmmxt_wqmiabb): Likewise.
1482 (iwmmxt_wqmiabt): Likewise.
1483 (iwmmxt_wqmiatb): Likewise.
1484 (iwmmxt_wqmiatt): Likewise.
1485 (iwmmxt_wqmiabbn): Likewise.
1486 (iwmmxt_wqmiabtn): Likewise.
1487 (iwmmxt_wqmiatbn): Likewise.
1488 (iwmmxt_wqmiattn): Likewise.
1489 (iwmmxt_wmiabb): Likewise.
1490 (iwmmxt_wmiabt): Likewise.
1491 (iwmmxt_wmiatb): Likewise.
1492 (iwmmxt_wmiatt): Likewise.
1493 (iwmmxt_wmiabbn): Likewise.
1494 (iwmmxt_wmiabtn): Likewise.
1495 (iwmmxt_wmiatbn): Likewise.
1496 (iwmmxt_wmiattn): Likewise.
1497 (iwmmxt_wmiawbb): Likewise.
1498 (iwmmxt_wmiawbt): Likewise.
1499 (iwmmxt_wmiawtb): Likewise.
1500 (iwmmxt_wmiawtt): Likewise.
1501 (iwmmxt_wmiawbbn): Likewise.
1502 (iwmmxt_wmiawbtn): Likewise.
1503 (iwmmxt_wmiawtbn): Likewise.
1504 (iwmmxt_wmiawttn): Likewise.
1505 (iwmmxt_wmerge): Likewise.
1506 (iwmmxt_tandc<mode>3): Likewise.
1507 (iwmmxt_torc<mode>3): Likewise.
1508 (iwmmxt_torvsc<mode>3): Likewise.
1509 (iwmmxt_textrc<mode>3): Likewise.
1510 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1511 (wmmxt_pack): Likewise.
1512 (wmmxt_mult_c1): Likewise.
1513 (wmmxt_mult_c2): Likewise.
1514 (wmmxt_alu_c1): Likewise.
1515 (wmmxt_alu_c2): Likewise.
1516 (wmmxt_alu_c3): Likewise.
1517 (wmmxt_transfer_c1): Likewise.
1518 (wmmxt_transfer_c2): Likewise.
1519 (wmmxt_transfer_c3): Likewise.
1520 (marvell_f_iwmmxt_wstr): Likewise.
1521 (marvell_f_iwmmxt_wldr): Likewise.
1522
1523 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1524
1525 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1526
1527 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1528
1529 Revert:
1530 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1531 * lra-constraints.c (need_for_split_p): Check call used hard regs
1532 living through calls.
1533
1534 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1535 call used regs for call insn.
1536
1537 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1538
1539 PR target/57736
1540 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1541 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1542
1543 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1544
1545 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1546
1547 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1548
1549 * lra-constraints.c (need_for_split_p): Check call used hard regs
1550 living through calls.
1551
1552 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1553
1554 PR target/57744
1555 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1556 to tie with any other modes. Eliminate Altivec vector mode tests,
1557 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1558 code, to return 0 if testing MODE2 for a condition, if we've
1559 already tested MODE1 for the same condition.
1560
1561 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1562
1563 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1564 layout.
1565
1566 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1567
1568 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1569 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1570
1571 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1572
1573 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1574 Define.
1575 (aarch64_symbolic_constant_p): Remove.
1576 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1577 static. Fix line length and white space.
1578 (aarch64_symbolic_constant_p): Remove.
1579 * config/aarch64/predicates.md (aarch64_valid_symref):
1580 Use aarch64_classify_symbol_expression.
1581
1582 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1583
1584 * config/arm/constraints.md (Ts): New constraint.
1585 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1586 16-bit encodings.
1587 (compare_scc): Use "Ts" constraint for operand 0.
1588 (ior_scc_scc): Likewise.
1589 (and_scc_scc): Likewise.
1590 (and_scc_scc_nodom): Likewise.
1591 (ior_scc_scc_cmp): Likewise for operand 7.
1592 (and_scc_scc_cmp): Likewise.
1593 * config/arm/thumb2.md (thumb2_movsi_insn):
1594 Add alternatives for 16-bit encodings.
1595 (thumb2_movhi_insn): Likewise.
1596 (thumb2_movsicc_insn): Likewise.
1597 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1598 (thumb2_negscc): Use "Ts" constraint.
1599 Move mvn instruction outside cond_exec block.
1600 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1601 for 16-bit encodings.
1602
1603 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1604
1605 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1606 encoding.
1607 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1608 (mulsi3subsi): Likewise.
1609 (mulsidi3adddi): Likewise.
1610 (mulsidi3_v6): Likewise.
1611 (umulsidi3_v6): Likewise.
1612 (umulsidi3adddi_v6): Likewise.
1613 (smulsi3_highpart_v6): Likewise.
1614 (umulsi3_highpart_v6): Likewise.
1615 (mulhisi3tb): Likewise.
1616 (mulhisi3bt): Likewise.
1617 (mulhisi3tt): Likewise.
1618 (maddhisi4): Likewise.
1619 (maddhisi4tb): Likewise.
1620 (maddhisi4tt): Likewise.
1621 (maddhidi4): Likewise.
1622 (maddhidi4tb): Likewise.
1623 (maddhidi4tt): Likewise.
1624 (zeroextractsi_compare0_scratch): Likewise.
1625 (insv_zero): Likewise.
1626 (insv_t2): Likewise.
1627 (anddi_notzesidi_di): Likewise.
1628 (anddi_notsesidi_di): Likewise.
1629 (andsi_notsi_si): Likewise.
1630 (iordi_zesidi_di): Likewise.
1631 (xordi_zesidi_di): Likewise.
1632 (andsi_iorsi3_notsi): Likewise.
1633 (smax_0): Likewise.
1634 (smax_m1): Likewise.
1635 (smin_0): Likewise.
1636 (not_shiftsi): Likewise.
1637 (unaligned_loadsi): Likewise.
1638 (unaligned_loadhis): Likewise.
1639 (unaligned_loadhiu): Likewise.
1640 (unaligned_storesi): Likewise.
1641 (unaligned_storehi): Likewise.
1642 (extv_reg): Likewise.
1643 (extzv_t2): Likewise.
1644 (divsi3): Likewise.
1645 (udivsi3): Likewise.
1646 (arm_zero_extendhisi2addsi): Likewise.
1647 (arm_zero_extendqisi2addsi): Likewise.
1648 (compareqi_eq0): Likewise.
1649 (arm_extendhisi2_v6): Likewise.
1650 (arm_extendqisi2addsi): Likewise.
1651 (arm_movt): Likewise.
1652 (thumb2_ldrd): Likewise.
1653 (thumb2_ldrd_base): Likewise.
1654 (thumb2_ldrd_base_neg): Likewise.
1655 (thumb2_strd): Likewise.
1656 (thumb2_strd_base): Likewise.
1657 (thumb2_strd_base_neg): Likewise.
1658 (arm_negsi2): Add alternative for 16-bit encoding.
1659 (arm_one_cmplsi2): Likewise.
1660
1661 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1662
1663 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1664 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1665 (movdfcc): Likewise.
1666 * config/arm/vfp.md (*thumb2_movsf_vfp):
1667 Disable predication for arm_restrict_it.
1668 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1669 (*thumb2_movdfcc_vfp): Likewise.
1670 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1671 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1672 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1673 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1674 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1675 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1676 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1677 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1678 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1679 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1680 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1681 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1682 Disable predication for arm_restrict_it.
1683
1684 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1685
1686 * config/i386/bmiintrin.h (_bextr_u32): New.
1687 (_bextr_u64): Ditto.
1688
1689 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1690
1691 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1692 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1693 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1694 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1695 * config/mips/n32-elf.h: ...this new file.
1696
1697 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1698
1699 PR target/57224
1700 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1701 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1702
1703 2013-06-27 Catherine Moore <clm@codesourcery.com>
1704
1705 * config/mips/mips-tables.opt: Regenerate.
1706 * config/mips/mips-cpus.def: Add m14ke and m14kec.
1707 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1708 * doc/invoke.texi: Add -m14kc.
1709
1710 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR target/57623
1713 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1714 constraints of operand 1 and 2.
1715
1716 PR target/57623
1717 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1718 to match RTL canonicalization. Swap predicates and
1719 constraints of operand 1 and 2.
1720
1721 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1722
1723 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1724 Process OP_INOUT regs for splitting too.
1725
1726 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1727
1728 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1729 decl before the loop, initialize to NULL.
1730 (vectorizable_load): Initialize ptr_incr to NULL.
1731
1732 2013-06-27 Martin Jambor <mjambor@suse.cz>
1733
1734 PR lto/57208
1735 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1736 * ipa-ref.c (ipa_maybe_record_reference): New function.
1737 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1738 * ipa-cp.c (create_specialized_node): Record potential references from
1739 aggvals.
1740 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1741
1742 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1743
1744 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1745 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1746 'mode' to force_reg.
1747 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1748 (aarch64_expand_mov_immediate): Likewise.
1749
1750 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1751
1752 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1753 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1754
1755 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1756
1757 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1758 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1759 (struct machine_function): Add tbegin_p.
1760 (s390_canonicalize_comparison): Fold CC mode compares to
1761 conditional jump if possible.
1762 (s390_emit_jump): Return the emitted jump.
1763 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1764 Handle CCRAWmode compares.
1765 (s390_option_override): Default to -mhtm if available.
1766 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1767 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1768 FPRs instead of df_regs_ever_live_p.
1769 (s390_optimize_nonescaping_tx): New function.
1770 (s390_init_frame_layout): Extend clobbered_regs array to cover
1771 FPRs as well.
1772 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1773 (s390_expand_tbegin): New function.
1774 (enum s390_builtin): New enum definition.
1775 (code_for_builtin): New array definition.
1776 (s390_init_builtins): New function.
1777 (s390_expand_builtin): New function.
1778 (TARGET_INIT_BUILTINS): Define.
1779 (TARGET_EXPAND_BUILTIN): Define.
1780 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1781 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1782 (s390_alc_comparison): Likewise.
1783 * config/s390/s390-modes.def: Add CCRAWmode.
1784 * config/s390/s390.h (processor_flags): Add PF_TX.
1785 (TARGET_CPU_HTM): Define macro.
1786 (TARGET_HTM): Define macro.
1787 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1788 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1789 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1790 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1791 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1792 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1793 ("*cc_to_int"): Move up.
1794 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1795 constants other than 0.
1796 ("*ccraw_to_int"): New insn and splitter definition.
1797 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1798 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1799 ("tx_assist"): New expander.
1800 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1801 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1802 * config/s390/s390.opt: Add -mhtm option.
1803 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1804 * config/s390/htmxlintrin.h: New file.
1805 * config/s390/htmintrin.h: New file.
1806 * config/s390/s390intrin.h: New file.
1807 * doc/extend.texi: Document htm builtins.
1808 * config.gcc: Add the new header files to extra_headers.
1809
1810 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1811
1812 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1813 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1814
1815 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1816 Pat Haugen <pthaugen@us.ibm.com>
1817 Peter Bergner <bergner@vnet.ibm.com>
1818
1819 * config/rs6000/power8.md: New.
1820 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1821 setting for power8 entry.
1822 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1823 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1824 test for Power4/Power5 only.
1825 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1826 support.
1827 (force_new_group): Adjust comment.
1828 * config/rs6000/rs6000.md: Include power8.md.
1829
1830 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1831
1832 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1833 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1834 declaration.
1835 (tune_params): Update comment.
1836 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1837 (arm_max_conditional_execute): New function.
1838 (thumb2_final_prescan_insn): Use max_insn_skipped and
1839 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1840
1841 2013-06-25 Jakub Jelinek <jakub@redhat.com>
1842
1843 PR tree-optimization/57705
1844 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1845 SSA_NAME step, provided that it is not defined inside the loop.
1846 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1847 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1848
1849 2013-06-25 Martin Jambor <mjambor@suse.cz>
1850
1851 PR middle-end/57670
1852 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1853 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1854 calls in the dump.
1855 (ipa_note_param_call): Initialize member_ptr flag.
1856 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1857 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1858 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1859 (ipa_read_indirect_edge_info): Likewise.
1860
1861 2013-06-25 Richard Biener <rguenther@suse.de>
1862
1863 PR middle-end/56977
1864 * passes.c (init_optimization_passes): Move pass_fold_builtins
1865 and pass_dce earlier with -Og.
1866
1867 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1868
1869 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1870 <BIT_FIELD_REF>: Remove trailing TAB.
1871 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1872 remove blank line.
1873
1874 2013-06-24 Martin Jambor <mjambor@suse.cz>
1875
1876 PR tree-optimization/57358
1877 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1878 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1879 (ipa_analyze_params_uses): Generate pessimistic info when true.
1880
1881 2013-06-24 Martin Jambor <mjambor@suse.cz>
1882
1883 PR tree-optimization/57539
1884 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1885 global.inlined_to of the new node to it. All callers changed.
1886 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1887 inlining_into, pass it to cgraph_clone_node.
1888 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1889 ipa_free_edge_args_substructures.
1890 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1891 rdesc linked list. Do not assert rdesc edges have inlined caller.
1892 Assert we have found an rdesc in the rdesc list.
1893
1894 2013-06-24 Richard Biener <rguenther@suse.de>
1895
1896 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
1897 (pointer_set_lookup): Declare.
1898 (class pointer_map): New template class implementing a
1899 generic pointer to T map.
1900 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1901 pointer_map<T>::contains, pointer_map<T>::insert,
1902 pointer_map<T>::traverse): New functions.
1903 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1904 (pointer_set_lookup): New function.
1905 (pointer_set_contains): Use pointer_set_lookup.
1906 (pointer_set_insert): Likewise.
1907 (insert_aux): Remove.
1908 (struct pointer_map_t): Embed a pointer_set_t.
1909 (pointer_map_create): Adjust.
1910 (pointer_map_destroy): Likewise.
1911 (pointer_map_contains): Likewise.
1912 (pointer_map_insert): Likewise.
1913 (pointer_map_traverse): Likewise.
1914 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1915 pointer_map<unsigned> instead of a pointer_map_t.
1916 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1917 (streamer_tree_cache_lookup): Likewise.
1918 (streamer_tree_cache_create): Likewise.
1919 (streamer_tree_cache_delete): Likewise.
1920 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1921 pointer_map<unsigned> instead of a pointer_map_t.
1922 (lto_init_tree_ref_encoder): Adjust.
1923 (lto_destroy_tree_ref_encoder): Likewise.
1924 * lto-section-out.c (lto_output_decl_index): Likewise.
1925 (lto_record_function_out_decl_state): Likewise.
1926 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1927
1928 2013-06-24 Richard Biener <rguenther@suse.de>
1929
1930 PR tree-optimization/57488
1931 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1932
1933 2013-06-24 Alan Modra <amodra@gmail.com>
1934
1935 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1936 (gen_easy_altivec_constant): Likewise.
1937 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1938 easy_vector_constant_msb): Likewise.
1939
1940 2013-06-23 Jakub Jelinek <jakub@redhat.com>
1941
1942 PR target/57688
1943 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1944 add missing return true.
1945
1946 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
1947
1948 PR target/52483
1949 * config/sh/predicates.md (general_extend_operand): Invoke
1950 general_movsrc_operand for memory operands.
1951 (general_movsrc_operand): Allow reg+reg addressing, do not use
1952 general_operand for memory operands.
1953
1954 2013-06-23 Sriraman Tallam <tmsriram@google.com>
1955
1956 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
1957 when current target options does not apply.
1958 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1959 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
1960 * config/i386/bmiintrin.h: Pass appropriate target
1961 attributes to header.
1962 * config/i386/mmintrin.h: Ditto.
1963 * config/i386/nmmintrin.h: Ditto.
1964 * config/i386/avx2intrin.h: Ditto.
1965 * config/i386/fxsrintrin.h: Ditto.
1966 * config/i386/tbmintrin.h: Ditto.
1967 * config/i386/xsaveintrin.h: Ditto.
1968 * config/i386/f16cintrin.h: Ditto.
1969 * config/i386/xtestintrin.h: Ditto.
1970 * config/i386/xsaveoptintrin.h: Ditto.
1971 * config/i386/bmi2intrin.h: Ditto.
1972 * config/i386/lzcntintrin.h: Ditto.
1973 * config/i386/smmintrin.h: Ditto.
1974 * config/i386/wmmintrin.h: Ditto.
1975 * config/i386/x86intrin.h: Remove all header include guards.
1976 * config/i386/prfchwintrin.h: Ditto.
1977 * config/i386/pmmintrin.h: Ditto.
1978 * config/i386/tmmintrin.h: Ditto.
1979 * config/i386/xmmintrin.h: Ditto.
1980 * config/i386/popcntintrin.h: Ditto.
1981 * config/i386/rdseedintrin.h: Ditto.
1982 * config/i386/ammintrin.h: Ditto.
1983 * config/i386/emmintrin.h: Ditto.
1984 * config/i386/immintrin.h: Remove all header include guards.
1985 * config/i386/fma4intrin.h: Ditto.
1986 * config/i386/lwpintrin.h: Ditto.
1987 * config/i386/xopintrin.h: Ditto.
1988 * config/i386/ia32intrin.h: Ditto.
1989 * config/i386/avxintrin.h: Ditto.
1990 * config/i386/rtmintrin.h: Ditto.
1991 * config/i386/fmaintrin.h: Ditto.
1992 * config/i386/mm3dnow.h: Ditto.
1993
1994 2013-06-22 Sriraman Tallam <tmsriram@google.com>
1995
1996 * common/config/i386/i386-common.c: Handle LZCNT.
1997
1998 2013-06-22 Andi Kleen <ak@linux.intel.com>
1999
2000 * doc/extend.texi: Use __atomic_store_n instead of
2001 __atomic_store in HLE example.
2002
2003 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2004
2005 * config/sh/sh.c: Remove <cstdlib> workaround.
2006
2007 2013-06-21 Andi Kleen <ak@linux.intel.com>
2008
2009 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
2010
2011 2013-06-21 Andi Kleen <ak@linux.intel.com>
2012
2013 * doc/extend.texi: Document that __atomic_clear and
2014 __atomic_test_and_set should only be used with bool.
2015
2016 2013-06-20 Jan Hubicka <jh@suse.cz>
2017
2018 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2019 types_same_for_odr.
2020 * tree.c (decls_same_for_odr): New function.
2021 (same_for_edr): New function.
2022 (types_same_for_odr): New function.
2023 (get_binfo_at_offset): Use it.
2024 * tree.h (types_same_for_odr): Declare.
2025
2026 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
2027 Jason Merrill <jason@redhat.com>
2028
2029 * system.h: Include <cstdlib> as well as <stdlib.h>.
2030
2031 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2032
2033 PR target/57655
2034 * config/i386/i386.c (construct_container): Report error if
2035 long double is used with disabled x87 float returns.
2036
2037 2013-06-20 Jan Hubicka <jh@suse.cz>
2038
2039 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2040
2041 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2042
2043 PR rtl-optimization/57425
2044 PR rtl-optimization/57569
2045 * alias.c (write_dependence_p): Remove parameters mem_mode and
2046 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2047 Changed all callers.
2048 (canon_anti_dependence): Get comments and semantics in sync.
2049 Add parameter mem_canonicalized. Changed all callers.
2050 * rtl.h (canon_anti_dependence): Update prototype.
2051
2052 2013-06-20 Richard Biener <rguenther@suse.de>
2053
2054 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2055 byte case, inline streamer_read_uchar and defer section
2056 overrun check.
2057
2058 2013-06-20 Richard Biener <rguenther@suse.de>
2059
2060 PR tree-optimization/57584
2061 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2062 SSA names into the expanded expression that take part in
2063 abnormal coalescing.
2064
2065 2013-06-19 Sharad Singhai <singhai@google.com>
2066
2067 * gcov.c (print_usage): Handle new option.
2068 (process_args): Ditto.
2069 (get_gcov_intermediate_filename): New function.
2070 (output_intermediate_file): New function.
2071 (output_gcov_file): New function
2072 (generate_results): Handle new option.
2073 (release_function): Relase demangled name.
2074 (read_graph_file): Handle demangled name.
2075 (output_lines): Ditto.
2076 * doc/gcov.texi: Document gcov intermediate format.
2077
2078 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2079
2080 PR bootstrap/57604
2081 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2082 (lra_emit_add): Use the functions. Add comment about Y as an
2083 address segment.
2084
2085 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2086
2087 PR driver/57652
2088 * collect2.c (collect_atexit): New.
2089 (collect_exit): Delete.
2090 (main): Register collect_atexit with atexit.
2091 (collect_wait): Change collect_exit to exit.
2092 (do_wait): Same.
2093 * collect2.h (collect_exit): Delete.
2094 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2095
2096 2013-06-19 Wei Mi <wmi@google.com>
2097
2098 PR rtl-optimization/57518
2099 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2100 if regno is used in paradoxical subreg.
2101 (update_equiv_regs): Check pdx_subregs[regno] before
2102 set a reg to be equivalent with a mem.
2103
2104 2013-06-19 Matthias Klose <doko@ubuntu.com>
2105
2106 PR driver/57651
2107 * file-find.h (find_a_file): Add a mode parameter.
2108 * file-find.c (find_a_file): Likewise.
2109 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2110 with X_OK for the executables.
2111 * collect2.c (main): Call find_a_file with X_OK.
2112
2113 2013-06-19 Steve Ellcey <sellcey@mips.com>
2114
2115 PR target/56942
2116 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2117 Use NEXT_INSN instead of next_real_insn.
2118
2119 2013-06-19 Jan Hubicka <jh@suse.cz>
2120
2121 * cgraph.h (const_value_known_p): Replace by ...
2122 (ctor_for_folding): .. this one.
2123 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2124 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2125 * expr.c (expand_expr_real_1): Likewise.
2126 (string_constant): Likewise.
2127 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2128 * ipa.c (process_references): Likewise.
2129 (symtab_remove_unreachable_nodes): Likewise.
2130 * ipa-inline-analysis.c (param_change_prob): Likewise.
2131 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2132 (get_base_constructor): Likwise.
2133 * varpool.c (varpool_remove_node): Likewise.
2134 (varpool_remove_initializer): LIkewise.
2135 (dump_varpool_node): LIkwise.
2136 (const_value_known_p): Rewrite to ...
2137 (ctor_for_folding): ... this one.
2138
2139 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2140
2141 PR driver/57651
2142 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2143 PERSONALITY in $PATH derived prefixes.
2144
2145 2013-06-19 Jeff Law <law@redhat.com>
2146
2147 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2148 in comment.
2149
2150 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2151 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2152 booleans.
2153
2154 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2155
2156 * config/arm/vfp.md: Move VFP instruction classification documentation
2157 to ...
2158 * config/arm/arm.md: ... here. Update instruction classification
2159 documentation.
2160
2161 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
2162
2163 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2164 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2165 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2166
2167 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2168
2169 PR target/57609
2170 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2171 with NEXT_INSN. Use tablejump_p to check for jump table data
2172 insns.
2173
2174 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2175
2176 PR c++/56544
2177 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2178 that now in C++ the value is correct per the C++ standards.
2179
2180 2013-06-19 Richard Biener <rguenther@suse.de>
2181
2182 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2183 for global context.
2184
2185 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2186
2187 Revert:
2188 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2189
2190 PR target/57609
2191 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2192 with next_active_insn.
2193
2194 2013-06-18 Sriraman Tallam <tmsriram@google.com>
2195
2196 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2197 functions are inlined during failures to flag an error.
2198 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2199 in early inline pass.
2200
2201 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2202
2203 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2204 in comments.
2205
2206 2013-06-18 Julian Brown <julian@codesourcery.com>
2207
2208 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2209 Permit virtual register pre-reload if !strict.
2210 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2211 change.
2212 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2213 prototype.
2214 * config/arm/neon.md (movmisalign<mode>): Use
2215 neon_perm_struct_or_reg_operand instead of
2216 neon_struct_or_register_operand.
2217 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2218 neon_permissive_struct_operand instead of neon_struct_operand.
2219 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2220 neon_vector_mem_operand.
2221 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2222 neon_vector_mem_operand.
2223 (neon_permissive_struct_operand): New.
2224 (neon_struct_or_register_operand): Rename to...
2225 (neon_perm_struct_or_reg_operand): This. Adjust call to
2226 neon_vector_mem_operand.
2227
2228 2013-06-18 Richard Biener <rguenther@suse.de>
2229
2230 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2231 * lto-streamer.h: Include pointer-set.h.
2232 (struct lto_decl_slot): Remove.
2233 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2234 Remove next_index entry.
2235 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2236 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2237 (lto_init_tree_ref_encoder): Adjust.
2238 (lto_destroy_tree_ref_encoder): Likewise.
2239 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2240 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2241 (lto_output_decl_index): Adjust.
2242 (lto_new_out_decl_state): Likewise.
2243 (lto_record_function_out_decl_state): Likewise.
2244 * lto-streamer-out.c (copy_function): Likewise.
2245
2246 2013-06-18 Richard Biener <rguenther@suse.de>
2247
2248 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2249 * cgraphunit.c: Include cfgloop.h.
2250 (init_lowered_empty_function): Initialize the loop tree.
2251 (assemble_thunk): Insert new BBs into loops.
2252
2253 2013-06-18 Richard Biener <rguenther@suse.de>
2254
2255 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2256 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2257 the map from cache entry to cache index optional.
2258 (streamer_tree_cache_replace_tree): Adjust accordingly.
2259 (streamer_tree_cache_append): Likewise.
2260 (streamer_tree_cache_delete): Likewise.
2261 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2262 streamer cache map from cache entry to cache index.
2263 * lto-streamer-out.c (create_output_block): Adjust.
2264
2265 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2266
2267 * config/arm/arm.md (attribute "insn"): Move multiplication and
2268 division attributes to...
2269 (attribute "type"): ... here. Remove mult.
2270 (attribute "mul32"): New attribute.
2271 (attribute "mul64"): Add umaal.
2272 (*arm_mulsi3): Update attributes.
2273 (*arm_mulsi3_v6): Likewise.
2274 (*thumb_mulsi3): Likewise.
2275 (*thumb_mulsi3_v6): Likewise.
2276 (*mulsi3_compare0): Likewise.
2277 (*mulsi3_compare0_v6): Likewise.
2278 (*mulsi_compare0_scratch): Likewise.
2279 (*mulsi_compare0_scratch_v6): Likewise.
2280 (*mulsi3addsi): Likewise.
2281 (*mulsi3addsi_v6): Likewise.
2282 (*mulsi3addsi_compare0): Likewise.
2283 (*mulsi3addsi_compare0_v6): Likewise.
2284 (*mulsi3addsi_compare0_scratch): Likewise.
2285 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2286 (*mulsi3subsi): Likewise.
2287 (*mulsidi3adddi): Likewise.
2288 (*mulsi3addsi_v6): Likewise.
2289 (*mulsidi3adddi_v6): Likewise.
2290 (*mulsidi3_nov6): Likewise.
2291 (*mulsidi3_v6): Likewise.
2292 (*umulsidi3_nov6): Likewise.
2293 (*umulsidi3_v6): Likewise.
2294 (*umulsidi3adddi): Likewise.
2295 (*umulsidi3adddi_v6): Likewise.
2296 (*smulsi3_highpart_nov6): Likewise.
2297 (*smulsi3_highpart_v6): Likewise.
2298 (*umulsi3_highpart_nov6): Likewise.
2299 (*umulsi3_highpart_v6): Likewise.
2300 (mulhisi3): Likewise.
2301 (*mulhisi3tb): Likewise.
2302 (*mulhisi3bt): Likewise.
2303 (*mulhisi3tt): Likewise.
2304 (maddhisi4): Likewise.
2305 (*maddhisi4tb): Likewise.
2306 (*maddhisi4tt): Likewise.
2307 (maddhidi4): Likewise.
2308 (*maddhidi4tb): Likewise.
2309 (*maddhidi4tt): Likewise.
2310 (divsi3): Likewise.
2311 (udivsi3): Likewise.
2312 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2313 (thumb2_mulsi_short_compare0): Likewise.
2314 (thumb2_mulsi_short_compare0_scratch): Likewise.
2315 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2316 (1020mult2): Likewise.
2317 (1020mult3): Likewise.
2318 (1020mult4): Likewise.
2319 (1020mult5): Likewise.
2320 (1020mult6): Likewise.
2321 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2322 change.
2323 (cortex_a15_mult64): Likewise.
2324 (cortex_a15_sdiv): Likewise.
2325 (cortex_a15_udiv): Likewise.
2326 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2327 (mult2): Likewise.
2328 (mult3): Likewise.
2329 (mult4): Likewise.
2330 (mult5): Likewise.
2331 (mult6): Likewise.
2332 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2333 (pj4_ir_div): Likewise.
2334 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2335 (11_mult2): Likewise.
2336 (11_mult3): Likewise.
2337 (11_mult4): Likewise.
2338 (11_mult5): Likewise.
2339 (11_mult6): Likewise.
2340 (11_mult7): Likewise.
2341 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2342 (cortex_a8_mla): Likewise.
2343 (cortex_a8_mull): Likewise.
2344 (cortex_a8_smulwy): Likewise.
2345 (cortex_a8_smlald): Likewise.
2346 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2347 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2348 (cortex_r4_mul_3): Likewise.
2349 (cortex_r4_mla_4): Likewise.
2350 (cortex_r4_mla_3): Likewise.
2351 (cortex_r4_smlald): Likewise.
2352 (cortex_r4_mull): Likewise.
2353 (cortex_r4_sdiv): Likewise.
2354 (cortex_r4_udiv): Likewise.
2355 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2356 (cortex_a7_idiv): Likewise.
2357 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2358 (9_mult2): Likewise.
2359 (9_mult3): Likewise.
2360 (9_mult4): Likewise.
2361 (9_mult5): Likewise.
2362 (9_mult6): Likewise.
2363 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2364 (cortex_a53_sdiv): Likewise.
2365 (cortex_a53_udiv): Likewise.
2366 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2367 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2368 (mp626_mult2): Likewise.
2369 (mp626_mult3): Likewise.
2370 (mp626_mult4): Likewise.
2371 * config/arm/fa526.md (526_mult1): Update attribute change.
2372 (526_mult2): Likewise.
2373 * config/arm/arm-generic.md (mult): Update attribute change.
2374 (mult_ldsched_strongarm): Likewise.
2375 (mult_ldsched): Likewise.
2376 (multi_cycle): Likewise.
2377 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2378 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2379 (606te_mult2): Likewise.
2380 (606te_mult3): Likewise.
2381 (606te_mult4): Likewise.
2382 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2383 (cortex_a9_mac16): Likewise.
2384 (cortex_a9_multiply): Likewise.
2385 (cortex_a9_mac): Likewise.
2386 (cortex_a9_multiply_long): Likewise.
2387 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2388 (626te_mult2): Likewise.
2389 (626te_mult3): Likewise.
2390 (626te_mult4): Likewise.
2391
2392 2013-06-18 Richard Biener <rguenther@suse.de>
2393
2394 PR lto/57334
2395 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2396
2397 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2398
2399 PR target/57609
2400 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2401 with next_active_insn.
2402
2403 2013-06-18 Alan Modra <amodra@gmail.com>
2404
2405 * config/rs6000/rs6000.h (enum data_align): New.
2406 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2407 (DATA_ABI_ALIGNMENT): Define.
2408 (CONSTANT_ALIGNMENT): Correct comment.
2409 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2410 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2411
2412 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2413
2414 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2415 ATTRIBUTE_UNUSED marking.
2416
2417 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2418
2419 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2420 alternative and update.
2421 (aarch64_dup_lanedi): Delete.
2422 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2423 * config/aarch64/aarch64-simd-builtins.def: Update.
2424
2425 2013-06-17 Richard Biener <rguenther@suse.de>
2426
2427 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2428 (lto_input_scc): Declare.
2429 (lto_input_tree_1): Likewise.
2430 (struct lto_stats_d): Add num_tree_bodies_output and
2431 num_pickle_refs_output.
2432 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2433 (lto_read_tree_1): Split out from ...
2434 (lto_read_tree): ... this.
2435 (lto_input_scc): New function.
2436 (lto_input_tree_1): Split out from ...
2437 (lto_input_tree): ... this. Handle LTO_tree_scc.
2438 (lto_data_in_create): Create the streamer cache without hashes.
2439 * lto-streamer-out.c (create_output_block): Create the streamer
2440 cache with hashes when not doing WPA.
2441 (lto_write_tree_1): Split out from ...
2442 (lto_write_tree): ... this.
2443 (get_symbol_initial_value): New function.
2444 (lto_output_tree_1): Split out from ...
2445 (lto_output_tree): ... this. Write trees as series of SCCs
2446 using a DFS walk via DFS_write_tree.
2447 (struct sccs, struct scc_entry): New types.
2448 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2449 (DFS_write_tree_body): New function.
2450 (DFS_write_tree): Likewise.
2451 (hash_tree): Likewise.
2452 (scc_entry_compare): Likewise.
2453 (hash_scc): Likewise.
2454 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2455 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2456 TREE_CHAIN as regular reference.
2457 (streamer_read_integer_cst): Remove.
2458 (streamer_get_pickled_tree): Adjust.
2459 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2460 of DECL_EXTERNALs in BLOCK_VARS for now.
2461 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2462 reference.
2463 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2464 Add hash value argument and record that if hashes are recorded
2465 in the cache.
2466 (streamer_tree_cache_insert_1): Adjust.
2467 (streamer_tree_cache_insert): Likewise.
2468 (streamer_tree_cache_insert_at): Rename to ...
2469 (streamer_tree_cache_replace_tree): ... this and adjust.
2470 (streamer_tree_cache_append): Adjust.
2471 (record_common_node): Likewise.
2472 (streamer_tree_cache_create): Add argument whether to
2473 record hash values together with trees.
2474 (streamer_tree_cache_delete): Adjust.
2475 * tree-streamer.h (struct streamer_tree_cache_d): Add
2476 vector of hashes.
2477 (streamer_read_integer_cst): Remove.
2478 (streamer_tree_cache_insert): Adjust.
2479 (streamer_tree_cache_append): Likewise.
2480 (streamer_tree_cache_insert_at): Rename to ...
2481 (streamer_tree_cache_replace_tree): ... this and adjust.
2482 (streamer_tree_cache_create): Add argument whether to record hashes.
2483 (streamer_tree_cache_get): Rename to ...
2484 (streamer_tree_cache_get_tree): ... this.
2485 (streamer_tree_cache_get_hash): New function.
2486 * tree.c (cache_integer_cst): New function.
2487 * tree.h (cache_integer_cst): Declare.
2488 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2489 * lto-symtab.c (lto_varpool_replace_node): Only release
2490 DECL_INITIAL of non-prevailing decls.
2491 * varpool.c (varpool_remove_initializer): Do not release
2492 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2493
2494 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2495
2496 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2497 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2498 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2499 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2500 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2501 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2502 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2503 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2504 instead of TARGET_64BIT.
2505 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2506 Require ISA_HAS_<D>DIV.
2507
2508 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2509
2510 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2511 (mips*-*-linux*): Move default with_llsc setting to where other
2512 defaults are set.
2513 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2514 with_arch block.
2515 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2516 Likewise. Remove default with_tune setting. Move default float
2517 setting to its own block. Handle with_llsc in the same block as above.
2518
2519 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2520
2521 PR rtl-optimization/57425
2522 PR rtl-optimization/57569
2523 * alias.c (write_dependence_p): Add new parameters mem_mode,
2524 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2525 Changed all callers.
2526 (canon_anti_dependence): New function.
2527 * cse.c (check_dependence): Use canon_anti_dependence.
2528 * cselib.c (cselib_invalidate_mem): Likewise.
2529 * rtl.h (canon_anti_dependence): Declare.
2530
2531 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2532
2533 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2534 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2535 ".set mips3" for 64-bit targets.
2536
2537 2013-06-15 Dehao Chen <dehao@google.com>
2538
2539 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2540 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2541 (gimple_check_call_args): Likewise.
2542 * value-prof.c (check_ic_target): Likewise.
2543 * ipa-inline.c (early_inliner): Likewise.
2544 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2545 * cgraph.c (cgraph_create_edge_1): Likewise.
2546 (cgraph_make_edge_direct): Likewise.
2547
2548 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2549
2550 PR target/57615
2551 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2552 rs6000_output_move_128bit to handle emitting quad memory
2553 operations. Set attribute length to 8 bytes.
2554
2555 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2556
2557 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2558 New pattern.
2559 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2560 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2561 (aarch64_<su>mlsl<mode>): Likewise.
2562
2563 2013-06-14 Mike Stump <mikestump@comcast.net>
2564
2565 * Makefile.in (TARGET_H): Add insn-codes.h.
2566
2567 2013-06-14 Alan Modra <amodra@gmail.com>
2568
2569 PR middle-end/57134
2570 PR middle-end/57586
2571 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2572 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2573 bitfield expansion when EXPAND_MEMORY.
2574 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2575
2576 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2577
2578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2579 test for clearing quad memory on 32-bit later.
2580
2581 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2582
2583 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2584 (fold_negate_expr): Likewise.
2585 (fold_real_zero_addition_p): Handle vectors.
2586 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2587
2588 2013-06-14 Alan Modra <amodra@gmail.com>
2589
2590 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2591
2592 2013-06-13 Jan Hubicka <jh@suse.cz>
2593
2594 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2595 Local comdats are not externally visible.
2596 * symtab.c (dump_symtab_base): Dump externally visible.
2597 (verify_symtab_base): Verify back links in the symtab hash.
2598
2599 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2600
2601 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2602 CONVERT_EXPR as equal nodes.
2603
2604 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2605
2606 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2607
2608 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2609
2610 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2611 Generalize to complex and vector.
2612 * tree.c (build_all_ones_cst): New function.
2613 * tree.h (build_all_ones_cst): Declare it.
2614
2615 2013-06-13 Alan Modra <amodra@gmail.com>
2616
2617 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2618 * config/rs6000/rs6000.md (signbittf2): New insn.
2619 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2620 (abstf2_internal, cmptf_internal2): Likewise.
2621 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2622
2623 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2624 Pat Haugen <pthaugen@us.ibm.com>
2625 Peter Bergner <bergner@vnet.ibm.com>
2626
2627 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2628 power8 byte, half-word, and quad-word atomic instructions.
2629 (emit_store_conditional): Likewise.
2630 (rs6000_expand_atomic_compare_and_swap): Likewise.
2631 (rs6000_expand_atomic_op): Likewise.
2632
2633 * config/rs6000/sync.md (larx): Add new modes for power8.
2634 (stcx): Likewise.
2635 (AINT): New mode iterator to include TImode as well as normal
2636 integer modes on power8.
2637 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2638 that VSX registers are not considered. Use AINT mode iterator
2639 instead of INT1 to allow inclusion of quad word atomic operations
2640 on power8.
2641 (load_locked<mode>): Likewise.
2642 (store_conditional<mode>): Likewise.
2643 (atomic_compare_and_swap<mode>): Likewise.
2644 (atomic_exchange<mode>): Likewise.
2645 (atomic_nand<mode>): Likewise.
2646 (atomic_fetch_<fetchop_name><mode>): Likewise.
2647 (atomic_nand_fetch<mode>): Likewise.
2648 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2649 each type.
2650 (ATOMIC): On power8, add QImode, HImode modes.
2651 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2652 modes that promote to SImode.
2653 (load_lockedti): Convert TImode arguments to PTImode, so that we
2654 get a guaranteed even/odd register pair.
2655 (load_lockedpti): Likewise.
2656 (store_conditionalti): Likewise.
2657 (store_conditionalpti): Likewise.
2658
2659 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2660 atomic load/store instructions.
2661 (HSI): Likewise.
2662
2663 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2664
2665 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2666 loads.
2667 (insn_count): New attribute, with most cases extracted from...
2668 (length): ...here. Redefine most cases in terms of insn_count.
2669 (single_insn): Delete.
2670 (can_delay): Use insn_count to check for single instructions.
2671 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2672 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2673 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2674 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2675 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2676 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2677 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2678 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2679 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2680 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2681 rather than "length".
2682 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2683 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2684 Use "insn_count" rather than "length".
2685 * config/mips/mips-dsp.md
2686 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2687 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2688 length attributes.
2689
2690 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
2691
2692 PR tree-optimization/57361
2693 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2694
2695 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2696
2697 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2698 to split.
2699 (aarch64_simd_combine<mode>): New instruction expansion.
2700 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2701 function prototype.
2702 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2703 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2704
2705 2013-06-12 Jan Hubicka <jh@suse.cz>
2706
2707 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2708 decl has when in streaming stage.
2709 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2710 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2711
2712 2013-06-12 Roland Stigge <stigge@antcom.de>
2713
2714 PR target/57578
2715 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2716
2717 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2718
2719 PR tree-optimization/57537
2720 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2721 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2722
2723 2013-06-12 Richard Biener <rguenther@suse.de>
2724
2725 * data-streamer.h (streamer_write_char_stream): CSE
2726 obs->current_pointer.
2727 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2728 streamer_write_char_stream manually and optimize the resulting loop.
2729 (streamer_write_hwi_stream): Likewise.
2730
2731 2013-06-12 Jan Hubicka <jh@suse.cz>
2732
2733 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2734 * cgraph.h (varpool_create_empty_node): Declare.
2735 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2736 duplicated nodes.
2737 * symtab.c (symtab_unregister_node): Be lax about missin entries
2738 in node hash.
2739 (symtab_get_node): Update comment.
2740 * varpool.c (varpool_create_empty_node): Break out from ...
2741 (varpool_node_for_decl): ... here.
2742 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2743
2744 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2745
2746 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2747 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2748 part. Use straight-line flow at the end.
2749 <COMPONENT_REF>: Remove superfluous else.
2750 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2751
2752 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2753
2754 PR target/56564
2755 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2756 target hook even for !TREE_PUBLIC decls. If no resolution info
2757 is available, return false for common and external decls.
2758
2759 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2760
2761 * config/rl78/constraints.md (U): New constraint.
2762 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2763 valloc attribute.
2764
2765 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2766
2767 PR target/57589
2768 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2769 to allow returning address to AT_PLATFORM name.
2770
2771 2013-06-11 Jan Hubicka <jh@suse.cz>
2772
2773 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2774 * cgraph.h (symtab_node_base): Add weakref flag.
2775 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2776 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2777 (output_weakrefs): Use weakref flag.
2778 * fold-const.c (simple_operand_p): Handle WEAK.
2779 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2780 * ipa.c (varpool_externally_visible_p): Drop weakref.
2781 (function_and_variable_visibility): Update comment; fix weakref
2782 sanity checks; do not clear DECL_WEAK on them.
2783 * lto-cgraph.c (lto_output_node): update.
2784 (lto_output_varpool_node): Update.
2785 (input_overwrite_node): Update.
2786 (input_node): Update.
2787 (input_varpool_node): Update.
2788 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2789 (lto_symtab_merge_symbols): Add sanity check.
2790 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2791 * passes.c (rest_of_decl_compilation): Set static flag, too.
2792 * symtab.c (dump_symtab_base): Dump weakref.
2793 (verify_symtab_base): Sanity check weakrefs.
2794 (symtab_make_decl_local): Remove duplicated code.
2795 (symtab_alias_ultimate_target): Simplify.
2796 * varpool.c (varpool_create_variable_alias): Set weakref flag.
2797
2798 2013-06-11 DJ Delorie <dj@redhat.com>
2799
2800 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2801 (rl78_unwind_word_mode): New.
2802
2803 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2804
2805 * final.c (debug_prefix_maps): Make static.
2806
2807 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2808
2809 * function.c (initial_trampoline): Remove stray copy.
2810
2811 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2812
2813 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2814
2815 2013-06-11 Martin Jambor <mjambor@suse.cz>
2816
2817 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2818 within bounds at the beginning of the function.
2819
2820 2013-06-11 Alan Modra <amodra@gmail.com>
2821
2822 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2823 reporting.
2824 (get_named_section): Don't NULL !DECL_P decl.
2825
2826 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2827
2828 * doc/invoke.texi (core-avx2): Document.
2829 (slm): Likewise.
2830 (atom): Updated with MOVBE.
2831
2832 2013-06-11 Richard Biener <rguenther@suse.de>
2833
2834 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2835
2836 2013-06-11 Anton Blanchard <anton@samba.org>
2837
2838 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2839 correct shift value in little-endian mode.
2840
2841 2013-06-11 Jakub Jelinek <jakub@redhat.com>
2842
2843 PR target/56564
2844 * varasm.c (get_variable_align): Move #endif to the right place.
2845
2846 2013-06-10 Cary Coutant <ccoutant@google.com>
2847
2848 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2849 for hash so that hash table traversal order is deterministic.
2850
2851 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2852 Pat Haugen <pthaugen@us.ibm.com>
2853 Peter Bergner <bergner@vnet.ibm.com>
2854
2855 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2856 of vectors in GPRS if they are direct moves or quad word load or
2857 store moves.
2858
2859 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2860 declaration.
2861 (direct_move_p): Likewise.
2862 (quad_load_store_p): Likewise.
2863
2864 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2865 classes into bins based on the physical register type.
2866 (reg_class_to_reg_type): Likewise.
2867 (IS_STD_REG_TYPE): Likewise.
2868 (IS_FP_VECT_REG_TYPE): Likewise.
2869 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2870 use direct move instructions.
2871 (reload_gpr_vsx): Likewise.
2872 (reload_vsx_gpr): Likewise.
2873 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2874 information that is a simplification of register classes. Also
2875 precalculate direct move reload helpers.
2876 (direct_move_p): New function to return true if the operation can
2877 be done as a direct move instruciton.
2878 (quad_load_store_p): New function to return true if the operation
2879 is a quad memory operation.
2880 (rs6000_legitimize_address): If quad memory, only allow register
2881 indirect for TImode addresses.
2882 (rs6000_legitimate_address_p): Likewise.
2883 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2884 (rs6000_reload_register_type): Likewise.
2885 (register_to_reg_type): Return register type.
2886 (rs6000_secondary_reload_simple_move): New helper function for
2887 secondary reload and secondary memory needed to identify anything
2888 that is a simple move, and does not need reloading.
2889 (rs6000_secondary_reload_direct_move): New helper function for
2890 secondary reload to identify cases that can be done with several
2891 instructions via the direct move instructions.
2892 (rs6000_secondary_reload_move): New helper function for secondary
2893 reload to identify moves between register types that can be done.
2894 (rs6000_secondary_reload): Add support for quad memory operations
2895 and for direct move.
2896 (rs6000_secondary_memory_needed): Likewise.
2897 (rs6000_debug_secondary_memory_needed): Change argument names.
2898 (rs6000_output_move_128bit): New function to return the move to
2899 use for 128-bit moves, including knowing about the various
2900 limitations of quad memory operations.
2901
2902 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2903 memory operations. call rs6000_output_move_128bit for the actual
2904 instruciton(s) to generate.
2905 (vsx_movti_64bit): Likewise.
2906
2907 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2908 (UNSPEC_P8V_MTVSRWZ): Likewise.
2909 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2910 (UNSPEC_P8V_MTVSRD): Likewise.
2911 (UNSPEC_P8V_XXPERMDI): Likewise.
2912 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2913 (UNSPEC_FUSION_GPR): Likewise.
2914 (FMOVE128_GPR): New iterator for direct move.
2915 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
2916 (f32_sv): Likewise.
2917 (f32_dm): Likewise.
2918 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2919 loads and direct move instructions.
2920 (zero_extendsidi2_lfiwzx): Likewise.
2921 (extendsidi2_lfiwax): Likewise.
2922 (extendsidi2_nocell): Likewise.
2923 (floatsi<mode>2_lfiwax): Likewise.
2924 (lfiwax): Likewise.
2925 (floatunssi<mode>2_lfiwzx): Likewise.
2926 (lfiwzx): Likewise.
2927 (fix_trunc<mode>_stfiwx): Likewise.
2928 (fixuns_trunc<mode>_stfiwx): Likewise.
2929 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2930 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2931 (parity<mode>2_cmpb): Set length/type attr.
2932 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2933 for 'mr.' to fast_compare.
2934 (bpermd_<mode>): Change type attr to popcnt.
2935 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2936 (p8_mtvsrwz_1): Likewise.
2937 (p8_mtvsrwz_2): Likewise.
2938 (reload_fpr_from_gpr<mode>): Likewise.
2939 (p8_mtvsrd_1): Likewise.
2940 (p8_mtvsrd_2): Likewise.
2941 (p8_xxpermdi_<mode>): Likewise.
2942 (reload_vsx_from_gpr<mode>): Likewise.
2943 (reload_vsx_from_gprsf): Likewise.
2944 (p8_mfvsrd_3_<mode>): LIkewise.
2945 (reload_gpr_from_vsx<mode>): Likewise.
2946 (reload_gpr_from_vsxsf): Likewise.
2947 (p8_mfvsrd_4_disf): Likewise.
2948 (multi-word GPR splits): Do not split direct moves or quad memory
2949 operations.
2950
2951 2013-06-10 David Malcolm <dmalcolm@redhat.com>
2952
2953 * tree-into-ssa.c (interesting_blocks): Make static.
2954
2955 2013-06-10 Jakub Jelinek <jakub@redhat.com>
2956
2957 PR target/56564
2958 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2959 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2960 Use DATA_ABI_ALIGNMENT for that case instead if defined.
2961 (get_variable_align): New function.
2962 (get_variable_section, emit_bss, emit_common,
2963 assemble_variable_contents, place_block_symbol): Use
2964 get_variable_align instead of DECL_ALIGN.
2965 (assemble_noswitch_variable): Add align argument, use it
2966 instead of DECL_ALIGN.
2967 (assemble_variable): Adjust caller. Use get_variable_align
2968 instead of DECL_ALIGN.
2969 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2970 caller.
2971 (DATA_ABI_ALIGNMENT): Define.
2972 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2973 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
2974 opt is false, only return the psABI mandated alignment increase.
2975 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2976 (DATA_ABI_ALIGNMENT): ... this.
2977 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2978 (DATA_ABI_ALIGNMENT): ... this.
2979 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2980 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2981 (DATA_ABI_ALIGNMENT): ... this.
2982 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2983 * doc/tm.texi: Regenerated.
2984
2985 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
2986
2987 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2988 cmp_code to construct REG_EQUAL note.
2989
2990 2013-06-09 Jakub Jelinek <jakub@redhat.com>
2991
2992 PR target/57568
2993 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2994 that operands[2] doesn't overlap with operands[0].
2995
2996 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
2997 Jan Hubicka <jh@suse.cz>
2998
2999 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3000 hack to mark symbols as used.
3001
3002 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3003
3004 PR rtl-optimization/57559
3005 * lra-constraints.c (process_alt_operands): Don't discourage
3006 memory with known offset for offsetable memory constraint.
3007 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3008
3009 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3010
3011 * varasm.c (struct oc_local_state): Reorder fields.
3012 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3013 and adjust accordingly.
3014 (output_constructor): Reorder initialization code and adjust call to
3015 output_constructor_bitfield.
3016
3017 2013-06-07 Jan Hubicka <jh@suse.cz>
3018
3019 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3020
3021 2013-06-07 David Malcolm <dmalcolm@redhat.com>
3022
3023 * tree-object-size.c (unknown): Make const.
3024
3025 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3026
3027 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3028 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3029 for last alternative in the cpu_facility attribute.
3030
3031 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3032
3033 PR target/56315
3034 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3035 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3036 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3037 * config/arm/constraints.md (Dg): New constraint.
3038 * config/arm/neon.md (xordi3_neon): Remove.
3039 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3040 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3041
3042 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3043
3044 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3045 Clean up alternatives.
3046
3047 2013-06-07 Alan Modra <amodra@gmail.com>
3048
3049 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3050 va_list_gpr_size.
3051
3052 2013-06-07 Alan Modra <amodra@gmail.com>
3053
3054 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3055
3056 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3057
3058 * config/arm/constraints.md (Df): New constraint.
3059 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3060 Correct length attribute for last two alternatives.
3061
3062 2013-06-07 Alan Modra <amodra@gmail.com>
3063
3064 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3065 override user -mfp-in-toc.
3066 (offsettable_ok_by_alignment): Consider just the current access
3067 rather than the whole object, unless BLKmode. Handle
3068 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3069 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3070 for -mcmodel=medium.
3071 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3072 override user -mfp-in-toc or -msum-in-toc. Default to
3073 -mno-fp-in-toc for -mcmodel=medium.
3074
3075 2013-06-06 DJ Delorie <dj@redhat.com>
3076
3077 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3078 TARGET_VALID_POINTER_MODE.
3079
3080 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3081 Pat Haugen <pthaugen@us.ibm.com>
3082 Peter Bergner <bergner@vnet.ibm.com>
3083
3084 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3085 Document new power8 builtins.
3086
3087 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3088 condition code register, to allow 128-bit logical operations to be
3089 done in the VSX or GPR registers.
3090 (nor<mode>3): Use the canonical form for nor.
3091 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3092 vclz*, and vpopcnt* vector instructions.
3093 (nand<mode>3): Likewise.
3094 (orc<mode>3): Likewise.
3095 (clz<mode>2): LIkewise.
3096 (popcount<mode>2): Likewise.
3097
3098 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3099 that only the GPRs are recognized.
3100
3101 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3102 support for new power8 builtins.
3103
3104 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3105 builtin functions.
3106 (xscvdpspn): Likewise.
3107 (vclz): Likewise.
3108 (vclzb): Likewise.
3109 (vclzh): Likewise.
3110 (vclzw): Likewise.
3111 (vclzd): Likewise.
3112 (vpopcnt): Likewise.
3113 (vpopcntb): Likewise.
3114 (vpopcnth): Likewise.
3115 (vpopcntw): Likewise.
3116 (vpopcntd): Likewise.
3117 (vgbbd): Likewise.
3118 (vmrgew): Likewise.
3119 (vmrgow): Likewise.
3120 (eqv): Likewise.
3121 (eqv_v16qi3): Likewise.
3122 (eqv_v8hi3): Likewise.
3123 (eqv_v4si3): Likewise.
3124 (eqv_v2di3): Likewise.
3125 (eqv_v4sf3): Likewise.
3126 (eqv_v2df3): Likewise.
3127 (nand): Likewise.
3128 (nand_v16qi3): Likewise.
3129 (nand_v8hi3): Likewise.
3130 (nand_v4si3): Likewise.
3131 (nand_v2di3): Likewise.
3132 (nand_v4sf3): Likewise.
3133 (nand_v2df3): Likewise.
3134 (orc): Likewise.
3135 (orc_v16qi3): Likewise.
3136 (orc_v8hi3): Likewise.
3137 (orc_v4si3): Likewise.
3138 (orc_v2di3): Likewise.
3139 (orc_v4sf3): Likewise.
3140 (orc_v2df3): Likewise.
3141
3142 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3143 allow power8 quad mode in 64-bit.
3144 (rs6000_builtin_vectorized_function): Add support to vectorize
3145 ISA 2.07 count leading zeros, population count builtins.
3146 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3147 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3148 (builtin_function_type): Add vgbbd builtin function which takes an
3149 unsigned argument.
3150 (altivec_expand_vec_perm_const): Add support for new power8 merge
3151 instructions.
3152
3153 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3154 that does not include TImdoe for use with 32-bit.
3155 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3156 instructions.
3157 (UNSPEC_VSX_CVDPSPN): Likewise.
3158 (vsx_xscvdpspn): Likewise.
3159 (vsx_xscvspdpn): Likewise.
3160 (vsx_xscvdpspn_scalar): Likewise.
3161 (vsx_xscvspdpn_directmove): Likewise.
3162 (vsx_and<mode>3): Split logical operations into 32-bit and
3163 64-bit. Add support to do logical operations on TImode as well as
3164 VSX vector types. Allow logical operations to be done in either
3165 VSX registers or in general purpose registers in 64-bit mode. Add
3166 splitters if GPRs were used. For AND, add clobber of CCmode to
3167 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3168 encoding.
3169 (vsx_and<mode>3_32bit): Likewise.
3170 (vsx_and<mode>3_64bit): Likewise.
3171 (vsx_ior<mode>3): Likewise.
3172 (vsx_ior<mode>3_32bit): Likewise.
3173 (vsx_ior<mode>3_64bit): Likewise.
3174 (vsx_xor<mode>3): Likewise.
3175 (vsx_xor<mode>3_32bit): Likewise.
3176 (vsx_xor<mode>3_64bit): Likewise.
3177 (vsx_one_cmpl<mode>2): Likewise.
3178 (vsx_one_cmpl<mode>2_32bit): Likewise.
3179 (vsx_one_cmpl<mode>2_64bit): Likewise.
3180 (vsx_nor<mode>3): Likewise.
3181 (vsx_nor<mode>3_32bit): Likewise.
3182 (vsx_nor<mode>3_64bit): Likewise.
3183 (vsx_andc<mode>3): Likewise.
3184 (vsx_andc<mode>3_32bit): Likewise.
3185 (vsx_andc<mode>3_64bit): Likewise.
3186 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3187 and xxlorc instructions.
3188 (vsx_eqv<mode>3_64bit): Likewise.
3189 (vsx_nand<mode>3_32bit): Likewise.
3190 (vsx_nand<mode>3_64bit): Likewise.
3191 (vsx_orc<mode>3_32bit): Likewise.
3192 (vsx_orc<mode>3_64bit): Likewise.
3193
3194 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3195
3196 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3197 instruction.
3198 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3199 (p8_vmrgow): Likewise.
3200 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3201 GPRs to be split under VSX.
3202 (p8v_clz<mode>2): Add power8 count leading zero support.
3203 (p8v_popcount<mode>2): Add power8 population count support.
3204 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3205 support.
3206
3207 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3208 instruction.
3209
3210 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3211 builtin functions.
3212 (vec_nand): Likewise.
3213 (vec_vclz): Likewise.
3214 (vec_vclzb): Likewise.
3215 (vec_vclzd): Likewise.
3216 (vec_vclzh): Likewise.
3217 (vec_vclzw): Likewise.
3218 (vec_vgbbd): Likewise.
3219 (vec_vmrgew): Likewise.
3220 (vec_vmrgow): Likewise.
3221 (vec_vpopcnt): Likewise.
3222 (vec_vpopcntb): Likewise.
3223 (vec_vpopcntd): Likewise.
3224 (vec_vpopcnth): Likewise.
3225 (vec_vpopcntw): Likewise.
3226
3227 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3228
3229 PR rtl-optimization/57468
3230 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3231 spilled pseudos.
3232
3233 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3234
3235 PR rtl-optimization/57459
3236 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3237 type when setting live regs.
3238
3239 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3240
3241 * config/s390/s390.opt (mlra): New option.
3242 * config/s390/s390.c (s390_decompose_address): Check displacement
3243 for all registers for LRA.
3244 (s390_secondary_reload): Don't used secondary reloads for LRA.
3245 (s390_lra_p): New function.
3246 (TARGET_LRA_P): Define.
3247 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3248 of attribute cpu_facility to zarch for the last alternative.
3249 (*cmpmem_short): Ditto.
3250
3251 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3252
3253 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3254 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3255 (arm_expand_prologue): Likewise.
3256
3257 2013-06-06 Teresa Johnson <tejohnson@google.com>
3258
3259 PR c++/53743
3260 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3261 as this is now done by redirect_edge_and_branch_force.
3262 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3263 barriers, and fix interaction with splitting.
3264 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3265 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3266 reflect changes made in the routine.
3267 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3268 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3269 since this is called in cfglayout mode, and replace partition fixup
3270 with assert as that is now done by force_nonfallthru_and_redirect.
3271 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3272 already be marked with region crossing note.
3273 (insert_section_boundary_note): Make non-static, gate on flag
3274 has_bb_partition, rewrite to also check for multiple partitions.
3275 (rest_of_handle_reorder_blocks): Remove call to
3276 insert_section_boundary_note, now done later during free_cfg.
3277 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3278 * bb-reorder.h (insert_section_boundary_note): Declare.
3279 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3280 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3281 invoke insert_section_boundary_note.
3282 (try_redirect_by_replacing_jump): Remove unnecessary
3283 check for region crossing note.
3284 (fixup_partition_crossing): New function.
3285 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3286 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3287 in non-cfglayout mode.
3288 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3289 remove old code that tried to do this. Emit barrier correctly
3290 when we are in cfglayout mode.
3291 (last_bb_in_partition): New function.
3292 (rtl_split_edge): Correctly fixup partition boundaries.
3293 (commit_one_edge_insertion): Remove old code that tried to
3294 fixup region crossing edge since this is now handled in
3295 split_block, and set up insertion point correctly since
3296 block may now end in a jump.
3297 (verify_hot_cold_block_grouping): Guard against checking when not in
3298 linearized RTL mode.
3299 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3300 notes.
3301 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3302 rtl_verify_flow_info, so not called in cfglayout mode.
3303 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3304 (fixup_reorder_chain): Remove old code that attempted to fixup region
3305 crossing note as this is now handled in force_nonfallthru_and_redirect.
3306 (duplicate_insn_chain): Don't duplicate switch section notes.
3307 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3308 note.
3309 * basic-block.h (emit_barrier_after_bb): Declare.
3310
3311 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3312
3313 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3314 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3315 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3316
3317 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3318
3319 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3320 where appropriate.
3321 * config/arm/ldmstm.md: Regenerate.
3322
3323 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3324
3325 * config/arm/sync.md (atomic_loaddi_1):
3326 Disable predication for arm_restrict_it.
3327 (arm_load_exclusive<mode>): Likewise.
3328 (arm_load_exclusivesi): Likewise.
3329 (arm_load_exclusivedi): Likewise.
3330 (arm_load_acquire_exclusive<mode>): Likewise.
3331 (arm_load_acquire_exclusivesi): Likewise.
3332 (arm_load_acquire_exclusivedi): Likewise.
3333 (arm_store_exclusive<mode>): Likewise.
3334 (arm_store_exclusive<mode>): Likewise.
3335 (arm_store_release_exclusivedi): Likewise.
3336 (arm_store_release_exclusive<mode>): Likewise.
3337
3338 2013-06-06 Richard Biener <rguenther@suse.de>
3339
3340 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3341 after LTO_null.
3342 (lto_tag_is_tree_code_p): Adjust.
3343 (lto_tag_is_gimple_code_p): Likewise.
3344 (lto_gimple_code_to_tag): Likewise.
3345 (lto_tag_to_gimple_code): Likewise.
3346 (lto_tree_code_to_tag): Likewise.
3347 (lto_tag_to_tree_code): Likewise.
3348 * data-streamer.h (streamer_write_hwi_in_range): Use
3349 uhwi streaming to stream the normalized range.
3350 (streamer_read_hwi_in_range): Likewise.
3351
3352 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3353
3354 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3355 (predicable_short_it): Likewise.
3356 (predicated): Likewise.
3357 (enabled): Handle above.
3358 (define_cond_exec): Set predicated attribute to yes.
3359
3360 2013-06-05 Mike Stump <mikestump@comcast.net>
3361
3362 * gdbinit.in (__FUNCTION__): Add.
3363
3364 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3365
3366 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3367 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3368
3369 2013-06-05 Jan Hubicka <jh@suse.cz>
3370
3371 * varasm.c (mark_decl_referenced): Revert the removal until targets
3372 are fixed.
3373
3374 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3375
3376 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3377 instead of mark_decl_referenced.
3378
3379 2013-06-05 Jan Hubicka <jh@suse.cz>
3380
3381 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3382 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3383 and symtab_used_from_object_file_p.
3384 (cgraph_make_node_local_1): Clear forced_by_abi.
3385 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3386 * cgraph.h (symtab_node_base): Add forced_by_abi.
3387 (decide_is_variable_needed): Remove.
3388 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3389 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3390 (decide_is_symbol_needed): ... this one; handle symbols in general;
3391 always analyze virtuals; honnor forced_by_abi.
3392 (cgraph_finalize_function): Update.
3393 (varpool_finalize_decl): Update.
3394 (symbol_defined_and_needed): Remove.
3395 (analyze_functions): Update.
3396 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3397 output_refs, input_overwrite_node): Handle forced_by_abi.
3398 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3399 (address_taken_from_non_vtable_p): ... this one.
3400 (comdat_can_be_unshared_p_1): New function.
3401 (cgraph_comdat_can_be_unshared_p): Rename to ...
3402 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3403 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3404 (function_and_variable_visibility): Clear forced_by_abi as needed.
3405 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3406 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3407 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3408 * varpool.c (decide_is_variable_needed): Remove.
3409
3410 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3411
3412 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3413 (arm_option_override): Override arm_restrict_it where appropriate.
3414 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3415 * config/arm/arm.opt (mrestrict-it): New command-line option.
3416 * doc/invoke.texi: Document -mrestrict-it.
3417
3418 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3419
3420 * tsan.c (tsan_atomic_table): Make const.
3421
3422 2013-06-05 Richard Biener <rguenther@suse.de>
3423
3424 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3425 index associated with the tree we are supposed to replace.
3426 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3427 TREE_ASM_WRITTEN as zero for everything but SSA names.
3428
3429 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3430
3431 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3432
3433 2013-06-04 Jan Hubicka <jh@suse.cz>
3434
3435 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3436 (input_node, input_varpool_node): Handle correctly external same
3437 body aliases.
3438 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3439 nodes at ltrans stage.
3440
3441 2013-06-04 Jan Hubicka <jh@suse.cz>
3442
3443 * ipa-inline.c (update_caller_keys): Fix availability test.
3444 (update_callee_keys): Likewise.
3445 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3446 to follow ELF standard.
3447
3448 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3449
3450 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3451 (mips64r5900el-*-elf*): New configurations.
3452 * config/mips/mips-cpus.def (r5900): New processor.
3453 * config/mips/mips-tables.opt: Regenerate.
3454 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3455 (mips_issue_rate): Handle PROCESSOR_R5900.
3456 (mips_reorg_process_insns): Force reorder mode for the R5900.
3457 * config/mips/mips.h (TARGET_MIPS5900): Define.
3458 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3459 TARGET_MIPS5900.
3460 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3461 TARGET_MIPS5900.
3462 * config/mips/mips.md (processor): Add r5900.
3463 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3464
3465 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3466
3467 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3468 into function to generate MOVI instruction.
3469 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3470 (aarch64_preferred_simd_mode): Turn into wrapper.
3471 (aarch64_output_scalar_simd_mov_immediate): New function.
3472 * config/aarch64/aarch64-protos.h: Add prototype for above.
3473
3474 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3475
3476 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3477 element_char member.
3478 (sizetochar): Return signed char.
3479 (aarch64_simd_valid_immediate): Remove elchar and other
3480 unnecessary variables.
3481 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3482 Calculate element_char as required.
3483 * config/aarch64/aarch64-protos.h: Update and move prototype
3484 for aarch64_output_simd_mov_immediate.
3485 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3486 Update arguments.
3487
3488 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3489
3490 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3491 information completed by aarch64_simd_valid_immediate.
3492 (aarch64_legitimate_constant_p): Update arguments.
3493 (aarch64_simd_valid_immediate): Work with struct rather than many
3494 pointers.
3495 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3496 (aarch64_simd_make_constant): Update arguments.
3497 (aarch64_output_simd_mov_immediate): Work with struct rather than
3498 many pointers. Output immediate directly rather than as operand.
3499 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3500 Update prototype.
3501 * config/aarch64/constraints.md (Dn): Update arguments.
3502
3503 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3504
3505 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3506 longer static.
3507 (aarch64_simd_immediate_valid_for_move): Remove.
3508 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3509 (aarch64_simd_make_constant): Update call.
3510 (aarch64_output_simd_mov_immediate): Update call.
3511 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3512 Add prototype.
3513 * config/aarch64/constraints.md (Dn): Update call.
3514
3515 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3516
3517 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3518 return type to bool for prototype.
3519 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3520 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3521 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3522
3523 2013-06-04 Catherine Moore <clm@codesourcery.com>
3524
3525 * config/mips/mips.opt (meva): New.
3526 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3527 (ASM_SPEC): Handle -meva.
3528 * doc/invoke.texi (meva): Document.
3529
3530 2013-06-04 Alan Modra <amodra@gmail.com>
3531
3532 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3533 constant output.
3534
3535 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3536
3537 * rtl.def: Add extra fourth optional field to define_cond_exec.
3538 * gensupport.c (process_one_cond_exec): Process attributes from
3539 define_cond_exec.
3540 * doc/md.texi: Document fourth field in define_cond_exec.
3541
3542 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3543
3544 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3545 out the processing order as in store_bit_field_1.
3546
3547 2013-06-04 Jan Hubicka <jh@suse.cz>
3548
3549 PR middle-end/57500
3550 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3551 non-VAR_DECL node if it does not exist yet.
3552
3553 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3554
3555 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3556 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3557 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3558 target_cpu_default setting.
3559
3560 2013-06-03 Teresa Johnson <tejohnson@google.com>
3561
3562 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3563 default to -fopt-info=optimized instead of all.
3564 * doc/invoke.texi: Ditto.
3565 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3566 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3567 (execute_vect_slp): Emit BB vectorization success under
3568 MSG_OPTIMIZED_LOCATIONS.
3569 * tree-vect-slp.c (vect_slp_transform_bb): Change
3570 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3571 * tree-vect-loop.c (vect_transform_loop): Ditto.
3572
3573 2013-06-03 Jason Merrill <jason@redhat.com>
3574
3575 PR c++/57415
3576 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3577 Use TARGET_EXPR for C++.
3578
3579 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3580
3581 PR rtl-optimization/57268
3582 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3583 if DEBUG_INSN_P (insn).
3584
3585 Reapply
3586 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3587
3588 PR rtl-optimization/57268
3589 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3590 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3591
3592 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3593
3594 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3595 (ix86_avoid_lea_for_addr): Likewise.
3596 (exact_dependency_1): Likewise.
3597 (ix86_adjust_cost): Likewise.
3598 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3599 removed.
3600 (do_reorder_for_imul): Fix typo, formatting and
3601 !reload_completed check removed.
3602 (ix86_sched_reorder): Fix typo and formatting.
3603 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3604 list.
3605
3606 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3607
3608 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3609
3610 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3611
3612 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3613 <STRING_CST>: Likewise.
3614 <VECTOR_CST>: Likewise.
3615
3616 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3617 Mikael Morin <mikael@gcc.gnu.org>
3618
3619 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3620 * config.in: Regenerated.
3621 * configure: Regenerated.
3622
3623 2013-06-01 Jan Hubicka <jh@suse.cz>
3624
3625 PR middle-end/57366
3626 * cgraphunit.c (compile): When weakref is not supported,
3627 set up transparent aliases before final output pass.
3628 * varasm.c (assemble_alias): Do not try to do it here.
3629
3630 2013-06-01 Jan Hubicka <jh@suse.cz>
3631
3632 PR middle-end/57467
3633 * passes.c (for_per_function): Skip unanalyzed functions.
3634
3635 2013-06-01 Jan Hubicka <jh@suse.cz>
3636
3637 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3638 (lto_symtab_merge_symbols_1): ... this one.
3639 (lto_symtab_merge_cgraph_nodes): Rename to ...
3640 (lto_symtab_merge_symbols): ... this one; simplify.
3641 * cgraph.c (same_body_aliases_done): Rename to ...
3642 (cpp_implicit_aliases_done): ... this one.
3643 (cgraph_create_function_alias): Update.
3644 (cgraph_same_body_alias): Update.
3645 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3646 (verify_edge_corresponds_to_fndecl): Simplify.
3647 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3648 (cgraph_node): Remove same_body_alias.
3649 (varpool_node): Remove alias_of and extra_name_alias.
3650 (same_body_aliases_done): Rename to ..
3651 (cpp_implicit_aliases_done): ... this one.
3652 (symtab_alias_ultimate_target): Add default parameter.
3653 (symtab_resolve_alias): New function.
3654 (fixup_same_cpp_alias_visibility): Declare.
3655 (cgraph_function_node): Add default parameter.
3656 (cgraph_node_asm_name): Likewise.
3657 (cgraph_function_or_thunk_node): Add default parameter; do
3658 not ICE when it is NULL.
3659 (varpool_variable_node): Likewise.
3660 * tree-emutls.c (create_emultls_var): Update.
3661 (ipa_lower_emutls): Update.
3662 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3663 (cgraph_reset_node): Reset alias info.
3664 (cgraph_finalize_function): Update.
3665 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3666 (analyze_function): Simplify.
3667 (cgraph_process_same_body_aliases): Simplify.
3668 (analyze_functions): Fixup same body aliases.
3669 (handle_alias_pairs): Simplify.
3670 (assemble_thunk): Update.
3671 (assemble_thunks_and_aliases): Update.
3672 (output_weakrefs): Rewrite.
3673 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3674 (lto_output_varpool_node): Likewise.
3675 (compute_ltrans_boundary): Remve assert.
3676 (get_alias_symbol): New functoin.
3677 (input_node): Rewrite alias handling.
3678 (input_varpool_node): Likewise.
3679 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3680 * ipa.c (process_references): Handle weakrefs correctly.
3681 (symtab_remove_unreachable_nodes): Likewise.
3682 * trans-mem.c (get_cg_data): Update.
3683 (ipa_tm_create_version_alias): Update.
3684 (ipa_tm_execute): Update.
3685 * symtab.c (dump_symtab_base): Dump aliases.
3686 (verify_symtab_base): Verify aliases.
3687 (symtab_node_availability): New function.
3688 (symtab_alias_ultimate_target): Simplify.
3689 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3690 handle all the fixup cases.
3691 (symtab_resolve_alias): New function.
3692 * passes.c (ipa_write_summaries): Handle weakrefs.
3693 * varpool.c (varpool_analyze_node): Simplify.
3694 (assemble_aliases): Update.
3695 (varpool_create_variable_alias): Simplify.
3696 (varpool_extra_name_alias): Simplify.
3697 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3698 (lto_symtab_merge_symbols): ... this one.
3699
3700 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3701
3702 Revert
3703 PR rtl-optimization/57268
3704 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3705 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3706
3707 2013-06-01 Tobias Burnus <burnus@net-b.de>
3708
3709 Partially reverted:
3710 2013-05-31 Tobias Burnus <burnus@net-b.de>
3711
3712 PR middle-end/57073
3713 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3714 further up.
3715
3716 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3717
3718 PR rtl-optimization/57268
3719 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3720 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3721
3722 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3723
3724 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3725 unordered comparison operators when -fno-trapping-math is in effect
3726 on the e500.
3727 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3728 and implement unordered comparison operators properly on the e500.
3729
3730 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3731
3732 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3733 for constant scalar integers.
3734 (simplify_relational_operation_1): Likewise.
3735
3736 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3737
3738 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3739 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3740 Fix comment.
3741
3742 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3743 Igor Zamyatin <igor.zamyatin@intel.com>
3744
3745 Silvermont (SLM) architecture performance tuning.
3746 * config/i386/i386.h (enum ix86_tune_indices): Add
3747 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3748 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3749
3750 * config/i386/i386.c (initial_ix86_tune_features)
3751 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3752 (ix86_lea_outperforms): Handle Silvermont tuning.
3753 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3754 call.
3755 (ix86_use_lea_for_mov): Likewise.
3756 (ix86_avoid_lea_for_addr): Likewise.
3757 (ix86_lea_for_add_ok): Likewise.
3758 (exact_dependency_1): New function.
3759 (exact_store_load_dependency): Likewise.
3760 (ix86_adjust_cost): Handle Silvermont tuning.
3761 (do_reoder_for_imul): Likewise.
3762 (swap_top_of_ready_list): New function.
3763 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3764
3765 * config/i386/i386.md (peepholes that split memory operand in fp
3766 converts): New.
3767
3768 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3769
3770 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3771 Remove un-necessary braces.
3772
3773 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3774
3775 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3776 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3777
3778 2013-05-31 Tobias Burnus <burnus@net-b.de>
3779
3780 PR middle-end/57073
3781 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3782
3783 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3784
3785 PR target/56315
3786 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3787 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3788 * config/arm/neon.md (iordi3_neon): Remove.
3789 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3790 * config/arm/predicates.md (imm_for_neon_logic_operand):
3791 Move to earlier in the file.
3792 (neon_logic_op2): Likewise.
3793 (arm_iordi_operand_neon): New predicate.
3794
3795 2013-05-31 Richard Biener <rguenther@suse.de>
3796
3797 PR tree-optimization/57478
3798 PR tree-optimization/57453
3799 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3800 are life as well.
3801
3802 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3803
3804 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3805 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3806
3807 2013-05-30 Tobias Burnus <burnus@net-b.de>
3808 Thomas Koenig <tkoenig@gcc.gnu.org>
3809
3810 PR middle-end/57073
3811 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3812 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3813
3814 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3815
3816 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3817
3818 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3819
3820 * target.def (register_usage_leveling_p): New hook.
3821 * targhooks.c (default_register_usage_leveling_p): New.
3822 * targhooks.h (default_register_usage_leveling_p): New prototype.
3823 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3824 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3825 * doc/tm.texi: Update.
3826 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3827
3828 2013-05-30 Ian Bolton <ian.bolton@arm.com>
3829
3830 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3831 (*insv_reg<mode>): New define_insn.
3832
3833 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3834
3835 PR rtl-optimization/57439
3836 * postreload.c (move2add_valid_value_p): Check that we have
3837 a zero subreg_regno_offset when accessing the register in
3838 the requested mode.
3839
3840 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3841 Igor Zamyatin <igor.zamyatin@intel.com>
3842
3843 Silvermont (SLM) architecture pipeline model, tuning and
3844 insn selection.
3845 * config.gcc: Add slm config options and target.
3846
3847 * config/i386/slm.md: New.
3848
3849 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3850
3851 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3852 PROCESSOR_SLM.
3853 (ix86_target_macros_internal): Likewise.
3854
3855 * gcc/config/i386/i386.c (slm_cost): New cost.
3856 (m_SLM): New macro flag.
3857 (initial_ix86_tune_features): Set m_SLM.
3858 (x86_accumulate_outgoing_args): Likewise.
3859 (x86_arch_always_fancy_math_387): Likewise.
3860 (processor_target_table): Add slm cost.
3861 (cpu_names): Add slm cpu name.
3862 (x86_option_override_internal): Set SLM ISA.
3863 (ix86_issue_rate): New case PROCESSOR_SLM.
3864 (ia32_multipass_dfa_lookahead): Likewise.
3865 (fold_builtin_cpu): Add slm.
3866
3867 * config/i386/i386.h (TARGET_SLM): New target macro.
3868 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3869 (processor_type): Add PROCESSOR_SLM.
3870
3871 * config/i386/i386.md (cpu): Add new value "slm".
3872 (slm.md): Include slm.md.
3873
3874 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3875 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3876
3877 * config/arm/arm-protos.h: Add and update function protos.
3878 * config/arm/arm.c (use_simple_return_p): New added.
3879 (thumb2_expand_return): Check simple_return flag.
3880 * config/arm/arm.md: Add simple_return and conditional simple_return.
3881 * config/arm/iterators.md: Add iterator for return and simple_return.
3882
3883 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3884
3885 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3886 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3887 (arm_emit_vfp_multi_reg_pop): Likewise.
3888 (thumb2_emit_ldrd_pop): Likewise.
3889 (arm_expand_epilogue): Add misc REG_CFA notes.
3890 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3891
3892 2013-05-29 Lawrence Crowl <crowl@google.com>
3893
3894 * config/arm/t-arm: Update for below.
3895
3896 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3897 Change type to hash_table. Update dependent calls and types.
3898
3899 * config/i386/t-cygming: Update for below.
3900
3901 * config/i386/t-interix: Update for below.
3902
3903 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3904 Change type to hash_table. Update dependent calls and types.
3905 (i386_find_on_wrapper_list::wrappers): Likewise.
3906
3907 * config/ia64/t-ia64: Update for below.
3908
3909 * config/ia64/ia64.c (bundle_state_table):
3910 Change type to hash_table. Update dependent calls and types.
3911
3912 * config/mips/mips.c (mips_reorg_process_insns::htab):
3913 Change type to hash_table. Update dependent calls and types.
3914
3915 * config/sol2.c (solaris_comdat_htab):
3916 Change type to hash_table. Update dependent calls and types.
3917
3918 * config/t-sol2: Update for above.
3919
3920 2013-05-29 Teresa Johnson <tejohnson@google.com>
3921
3922 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3923 functions are not yet marked as defined.
3924
3925 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3926 Pat Haugen <pthaugen@us.ibm.com>
3927 Peter Bergner <bergner@vnet.ibm.com>
3928
3929 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3930 instructions.
3931 (VEC_A): Likewise.
3932 (VEC_C): Likewise.
3933 (vrotl<mode>3): Likewise.
3934 (vashl<mode>3): Likewise.
3935 (vlshr<mode>3): Likewise.
3936 (vashr<mode>3): Likewise.
3937
3938 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3939 support for power8 V2DI builtins.
3940
3941 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3942 power8 V2DI builtins.
3943 (vupkhsw): Likewise.
3944 (vupklsw): Likewise.
3945 (vaddudm): Likewise.
3946 (vminsd): Likewise.
3947 (vmaxsd): Likewise.
3948 (vminud): Likewise.
3949 (vmaxud): Likewise.
3950 (vpkudum): Likewise.
3951 (vpksdss): Likewise.
3952 (vpkudus): Likewise.
3953 (vpksdus): Likewise.
3954 (vrld): Likewise.
3955 (vsld): Likewise.
3956 (vsrd): Likewise.
3957 (vsrad): Likewise.
3958 (vsubudm): Likewise.
3959 (vcmpequd): Likewise.
3960 (vcmpgtsd): Likewise.
3961 (vcmpgtud): Likewise.
3962 (vcmpequd_p): Likewise.
3963 (vcmpgtsd_p): Likewise.
3964 (vcmpgtud_p): Likewise.
3965 (vupkhsw): Likewise.
3966 (vupklsw): Likewise.
3967 (vaddudm): Likewise.
3968 (vmaxsd): Likewise.
3969 (vmaxud): Likewise.
3970 (vminsd): Likewise.
3971 (vminud): Likewise.
3972 (vpksdss): Likewise.
3973 (vpksdus): Likewise.
3974 (vpkudum): Likewise.
3975 (vpkudus): Likewise.
3976 (vrld): Likewise.
3977 (vsld): Likewise.
3978 (vsrad): Likewise.
3979 (vsrd): Likewise.
3980 (vsubudm): Likewise.
3981
3982 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3983 support for power8 V2DI instructions.
3984
3985 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3986 power8 V2DI instructions. Combine pack and unpack insns to use an
3987 iterator for each mode. Check whether a particular mode supports
3988 Altivec instructions instead of just checking TARGET_ALTIVEC.
3989 (UNSPEC_VPKUWUM): Likewise.
3990 (UNSPEC_VPKSHSS): Likewise.
3991 (UNSPEC_VPKSWSS): Likewise.
3992 (UNSPEC_VPKUHUS): Likewise.
3993 (UNSPEC_VPKSHUS): Likewise.
3994 (UNSPEC_VPKUWUS): Likewise.
3995 (UNSPEC_VPKSWUS): Likewise.
3996 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3997 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3998 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3999 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4000 (UNSPEC_VUPKHSB): Likewise.
4001 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4002 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4003 (UNSPEC_VUPKHSH): Likewise.
4004 (UNSPEC_VUPKLSB): Likewise.
4005 (UNSPEC_VUPKLSH): Likewise.
4006 (VI2): Likewise.
4007 (VI_char): Likewise.
4008 (VI_scalar): Likewise.
4009 (VI_unit): Likewise.
4010 (VP): Likewise.
4011 (VP_small): Likewise.
4012 (VP_small_lc): Likewise.
4013 (VU_char): Likewise.
4014 (add<mode>3): Likewise.
4015 (altivec_vaddcuw): Likewise.
4016 (altivec_vaddu<VI_char>s): Likewise.
4017 (altivec_vadds<VI_char>s): Likewise.
4018 (sub<mode>3): Likewise.
4019 (altivec_vsubcuw): Likewise.
4020 (altivec_vsubu<VI_char>s): Likewise.
4021 (altivec_vsubs<VI_char>s): Likewise.
4022 (altivec_vavgs<VI_char>): Likewise.
4023 (altivec_vcmpbfp): Likewise.
4024 (altivec_eq<mode>): Likewise.
4025 (altivec_gt<mode>): Likewise.
4026 (altivec_gtu<mode>): Likewise.
4027 (umax<mode>3): Likewise.
4028 (smax<mode>3): Likewise.
4029 (umin<mode>3): Likewise.
4030 (smin<mode>3): Likewise.
4031 (altivec_vpkuhum): Likewise.
4032 (altivec_vpkuwum): Likewise.
4033 (altivec_vpkshss): Likewise.
4034 (altivec_vpkswss): Likewise.
4035 (altivec_vpkuhus): Likewise.
4036 (altivec_vpkshus): Likewise.
4037 (altivec_vpkuwus): Likewise.
4038 (altivec_vpkswus): Likewise.
4039 (altivec_vpks<VI_char>ss): Likewise.
4040 (altivec_vpks<VI_char>us): Likewise.
4041 (altivec_vpku<VI_char>us): Likewise.
4042 (altivec_vpku<VI_char>um): Likewise.
4043 (altivec_vrl<VI_char>): Likewise.
4044 (altivec_vsl<VI_char>): Likewise.
4045 (altivec_vsr<VI_char>): Likewise.
4046 (altivec_vsra<VI_char>): Likewise.
4047 (altivec_vsldoi_<mode>): Likewise.
4048 (altivec_vupkhsb): Likewise.
4049 (altivec_vupkhs<VU_char>): Likewise.
4050 (altivec_vupkls<VU_char>): Likewise.
4051 (altivec_vupkhsh): Likewise.
4052 (altivec_vupklsb): Likewise.
4053 (altivec_vupklsh): Likewise.
4054 (altivec_vcmpequ<VI_char>_p): Likewise.
4055 (altivec_vcmpgts<VI_char>_p): Likewise.
4056 (altivec_vcmpgtu<VI_char>_p): Likewise.
4057 (abs<mode>2): Likewise.
4058 (vec_unpacks_hi_v16qi): Likewise.
4059 (vec_unpacks_hi_v8hi): Likewise.
4060 (vec_unpacks_lo_v16qi): Likewise.
4061 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4062 (vec_unpacks_lo_v8hi): Likewise.
4063 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4064 (vec_pack_trunc_v8h): Likewise.
4065 (vec_pack_trunc_v4si): Likewise.
4066 (vec_pack_trunc_<mode>): Likewise.
4067
4068 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4069 V2DI builtins.
4070 (vec_vmaxsd): Likewise.
4071 (vec_vmaxud): Likewise.
4072 (vec_vminsd): Likewise.
4073 (vec_vminud): Likewise.
4074 (vec_vpksdss): Likewise.
4075 (vec_vpksdus): Likewise.
4076 (vec_vpkudum): Likewise.
4077 (vec_vpkudus): Likewise.
4078 (vec_vrld): Likewise.
4079 (vec_vsld): Likewise.
4080 (vec_vsrad): Likewise.
4081 (vec_vsrd): Likewise.
4082 (vec_vsubudm): Likewise.
4083 (vec_vupkhsw): Likewise.
4084 (vec_vupklsw): Likewise.
4085
4086 2013-05-29 Jan Hubicka <jh@suse.cz>
4087
4088 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4089 flags; reorder rest of fields in more consistent way.
4090 (varpool_node): Remove analyzed, finalized and alias.
4091 (cgraph_ndoe): Likewise.
4092 (symtab_alias_ultimate_target): New function.
4093 (cgraph_function_node): Move offline.
4094 (cgraph_reset_node): Declare.
4095 (cgraph_comdat_can_be_unshared_p): Remove.
4096 (varpool_remove_initializer): Declare.
4097 (varpool_first_defined_variable, varpool_next_defined_variable
4098 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4099 (cgraph_function_with_gimple_body_p): Update.
4100 (varpool_all_refs_explicit_p): Update.
4101 (symtab_alias_target): New function.
4102 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4103 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4104 (cgraph_function_or_thunk_node): Simplify using
4105 symtab_alias_ultimate_target.
4106 (varpool_variable_node): Likewise.
4107 * cgraph.c (cgraph_create_function_alias): Update.
4108 (cgraph_add_thunk): Update.
4109 (cgraph_remove_node): Update.
4110 (dump_cgraph_node): Do not dump removed flags.
4111 (cgraph_function_body_availability): Update.
4112 (cgraph_propagate_frequency): Update.
4113 (verify_cgraph_node): Check sanity of local flag.
4114 (cgraph_function_node): Move here from cgraph.h; revamp for
4115 cgraph_function_or_thunk_node.
4116 * lto-symtab.c (lto_varpool_replace_node): Update.
4117 (lto_symtab_resolve_can_prevail_p): Update.
4118 (lto_symtab_merge_cgraph_nodes): Update.
4119 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4120 propagate_constants_accross_call, devirtualization_time_bonus,
4121 ipcp_propagate_stage): Update.
4122 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4123 * ipa-inline-transform.c (clone_inlined_nodes,
4124 preserve_function_body_p): Update.
4125 * ipa-reference.c (propagate): Update.
4126 (write_node_summary_p): Update.
4127 * toplev.c (wrapup_global_declaration_2): Update.
4128 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4129 (analyze_function) ... this one.
4130 (cgraph_process_new_functions): Update.
4131 (cgraph_reset_node): Export.
4132 (cgraph_finalize_function): Update.
4133 (cgraph_add_new_function): Update.
4134 (process_function_and_variable_attributes): Update.
4135 (varpool_finalize_decl): Update.
4136 (symbol_finalized): Remove.
4137 (symbol_finalized_and_needed): Rename to ...
4138 (symbol_defined_and_needed): ... update.
4139 (cgraph_analyze_functions): Update.
4140 (handle_alias_pairs): Update.
4141 (mark_functions_to_output): Update.
4142 (assemble_thunk): Update.
4143 (output_in_order): Update.
4144 (output_weakrefs): Update.
4145 (finalize_compilation_unit): Update.
4146 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4147 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4148 input_node, input_varpool_node): Update.
4149 * dbxout.c (dbxout_expand_expr): Update.
4150 * cgraphclones.c (cgraph_clone_node): Update.
4151 (cgraph_copy_node_for_versioning): Update.
4152 (cgraph_materialize_clone): Update.
4153 (cgraph_materialize_all_clones): Update.
4154 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4155 propagate_pure_const, propagate_nothrow): Update.
4156 * lto-streamer-out.c (lto_output, write_symbol): Update.
4157 * ipa-utils.c (ipa_reverse_postorder): Update.
4158 * ipa-inline.c (can_inline_edge_p): Update.
4159 (update_caller_keys, ipa_inline): Update.
4160 * dwarf2out.c (reference_to_unused,
4161 premark_types_used_by_global_vars_helper): Update.
4162 * tree-eh.c (tree_could_trap_p): Update.
4163 * ipa-split.c (consider_split, execute_split_functions): Update.
4164 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4165 has_addr_references_p): Update; move ahead in file for better
4166 readability.
4167 (process_references): Simplify.
4168 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4169 bodies are removed.
4170 (cgraph_comdat_can_be_unshared_p): Make static.
4171 (cgraph_externally_visible_p): Update.
4172 (varpool_externally_visible_p): Update.
4173 (function_and_variable_visibility): Update.
4174 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4175 ipa_tm_mark_force_output_node): Update.
4176 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4177 estimate_edge_devirt_benefit, inline_generate_summary,
4178 inline_write_summary): Update.
4179 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4180 * ipa-prop.c (ipa_compute_jump_functions): Update.
4181 (ipa_print_node_params, ipa_prop_read_section,
4182 ipa_update_after_lto_read, read_replacements_section): Update.
4183 * varasm.c (mark_decl_referenced): Update.
4184 (assemble_alias, dump_tm_clone_pairs): Update.
4185 * tree-inline.c (copy_bb): Update.
4186 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4187 Update.
4188 * symtab.c (dump_symtab_base): Print new flags.
4189 (verify_symtab_base): Verify new flags.
4190 (symtab_alias_ultimate_target): New function.
4191 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4192 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4193 Update.
4194 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4195 Update.
4196 * i386.c (ix86_get_function_versions_dispatcher,
4197 ix86_generate_version_dispatcher_body): Update.
4198 (fold_builtin_cpu): Use varpool_add_new_variable.
4199 * varpool.c (varpool_remove_initializer): Break out from ...
4200 (varpool_remove_node): ... this one.
4201 (dump_varpool_node, varpool_node_for_asm,
4202 cgraph_variable_initializer_availability, varpool_analyze_node,
4203 varpool_assemble_decl, varpool_remove_unreferenced_decls,
4204 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4205 Update.
4206
4207 2013-05-29 Jan Hubicka <jh@suse.cz>
4208
4209 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4210
4211 2013-05-29 Easwaran Raman <eraman@google.com>
4212
4213 PR tree-optimization/57442
4214 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4215 when control exits the main loop.
4216
4217 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4218
4219 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4220 and RX600.
4221 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4222 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4223 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4224 option.
4225
4226 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4227
4228 PR tree-optimization/57441
4229 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4230 Don't limit size of incr_vec to number of candidates.
4231
4232 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
4233
4234 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4235 and mips16 directories.
4236 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4237 (MULTILIB_DIRNAMES): Ditto.
4238 (MULTILIB_EXCEPTIONS): Add new exceptions.
4239 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4240 (MULTILIB_DIRNAMES): Ditto.
4241 (MULTILIB_EXCEPTIONS): Add new exceptions.
4242
4243 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4244 Marcus Shawcroft <marcus.shawcroft@arm.com>
4245
4246 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4247 SYMBOL_TINY_ABSOLUTE.
4248 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4249 SYMBOL_TINY_ABSOLUTE.
4250 (aarch64_expand_mov_immediate): Likewise.
4251 (aarch64_classify_symbol): Likewise.
4252 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4253 Permit SYMBOL_TINY_ABSOLUTE.
4254 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4255
4256 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4257 Marcus Shawcroft <marcus.shawcroft@arm.com>
4258
4259 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4260 Refactor if/switch. Replace gcc_assert with if.
4261
4262 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4263
4264 * config/i386/i386.c (initial_ix86_tune_features): Enable
4265 FP Reassociation for AMD bdver1 and bdver2.
4266
4267 2013-05-29 Martin Jambor <mjambor@suse.cz>
4268
4269 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4270 and IMAGPART_EXPR do not occur within other handled_components.
4271
4272 2013-05-29 Richard Biener <rguenther@suse.de>
4273
4274 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4275 access on whether the use is in the BB we currently try to
4276 vectorize.
4277 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4278 vectorize to vect_bb_slp_scalar_cost.
4279
4280 2013-05-29 Richard Biener <rguenther@suse.de>
4281
4282 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4283 computing scalar cost offsetted by stmts that are kept live
4284 by scalar uses.
4285 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4286 for computation of scalar cost.
4287
4288 2013-05-28 Steve Ellcey <sellcey@mips.com>
4289
4290 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4291
4292 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4293
4294 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4295 array notation built-in reduction functions.
4296 * doc/passes.texi (Passes): Added documentation about changes done
4297 for Cilk Plus.
4298 * doc/invoke.texi (C Dialect Options): Added documentation about
4299 the -fcilkplus flag.
4300 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4301 (BUILTINS_DEF): Depend on cilkplus.def.
4302 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4303 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4304 * cilkplus.def: New file.
4305
4306 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4307
4308 PR rtl-optimization/57439
4309 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4310
4311 2013-05-28 Easwaran Raman <eraman@google.com>
4312
4313 PR tree-optimization/57337
4314 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4315 (find_insert_point): Correctly identify the insertion point
4316 when two statements with the same UID is compared.
4317
4318 2013-05-28 Richard Biener <rguenther@suse.de>
4319
4320 PR tree-optimization/56787
4321 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4322 from the list of data references.
4323 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4324 clobbers.
4325 (vect_analyze_loop_operations): Likewise.
4326 (vect_transform_loop): Remove clobbers.
4327
4328 2013-05-28 Martin Jambor <mjambor@suse.cz>
4329
4330 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4331 and REALPART_EXPRs have scalar type.
4332
4333 2013-05-28 Richard Biener <rguenther@suse.de>
4334
4335 PR tree-optimization/57411
4336 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4337 virtual operands.
4338 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4339 virtual operand propagation.
4340
4341 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4342
4343 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4344 destination register for bmasksi_vis.
4345 (vector_init_bshuffle): Likewise.
4346 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4347
4348 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4349
4350 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4351 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4352 mode if the instruction isn't available in the original mode.
4353 * config/sparc/sparc.opt (mfix-ut699): New option.
4354 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4355 (divdf3): Turn into expander.
4356 (divdf3_nofix): New insn.
4357 (divdf3_fix): Likewise.
4358 (divsf3): Disable if -mfix-ut699.
4359 (sqrtdf2): Turn into expander.
4360 (sqrtdf2_nofix): New insn.
4361 (sqrtdf2_fix): Likewise.
4362 (sqrtsf2): Disable if -mfix-ut699.
4363
4364 2013-05-27 Richard Biener <rguenther@suse.de>
4365
4366 PR middle-end/57412
4367 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4368 block for the new loop.
4369
4370 2013-05-27 Richard Biener <rguenther@suse.de>
4371
4372 PR tree-optimization/57343
4373 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4374 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4375 (number_of_iterations_cond): Do not build the folded tree.
4376
4377 2013-05-27 Richard Biener <rguenther@suse.de>
4378
4379 Revert
4380 PR middle-end/57381
4381 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4382 OEP_CONSTANT_ADDRESS_OF retained.
4383
4384 PR tree-optimization/57417
4385 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4386 for unchanged base.
4387 (set_ssa_val_to): Compare addresses using
4388 get_addr_base_and_unit_offset.
4389
4390 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4391
4392 PR rtl-optimization/56833
4393 * postreload.c (move2add_record_mode): New function.
4394 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4395 (move2add_use_add2_insn): Use move2add_record_sym_value.
4396 (move2add_use_add3_insn): Likewise.
4397 (reload_cse_move2add): Use move2add_valid_value_p and
4398 move2add_record_mode. Invalidate call-clobbered and REG_INC
4399 affected regs by setting reg_mode to VOIDmode.
4400 (move2add_note_store): Don't pretend the inside of a SUBREG is
4401 the actual destination. Invalidate single/leading registers by
4402 setting reg_mode to VOIDmode.
4403 Use move2add_record_sym_value, move2add_valid_value_p and
4404 move2add_record_mode.
4405
4406 2013-05-27 Richard Biener <rguenther@suse.de>
4407
4408 PR tree-optimization/57396
4409 * tree-affine.c (double_int_constant_multiple_p): Properly
4410 return false for val == 0 and div != 0.
4411
4412 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4413
4414 * config/mips/mips.h: Use #elif in preprocessor conditions.
4415
4416 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4417
4418 PR target/53916
4419 * config/mips/constraints.md (kl): New constraint.
4420 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4421 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4422 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4423 from LO for MIPS16.
4424 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4425
4426 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4427
4428 PR target/55777
4429 * config/mips/mips.c (mips_can_inline_p): New function.
4430 (TARGET_CAN_INLINE_P): Define.
4431
4432 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4433
4434 * sched-int.h (ds_t, dw_t): Make unsigned int.
4435 Fix documentation that describes how all the ds_t bits are used.
4436 Reserve the last bit for delayed-branch scheduling.
4437 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4438 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4439 (gen_dep_weak_1): Remove prototype.
4440 * sched-deps.c (get_dep_weak_1): Make static.
4441 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4442 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4443 * doc/tm.texi: Regenerate.
4444 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4445
4446 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4447
4448 PR debug/56950
4449 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4450
4451 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4452 Sandra Loosemore <sandra@codesourcery.com>
4453
4454 * config.gcc (powerpc-*): Allow native for with-cpu.
4455
4456 2013-05-24 Jeff Law <law@redhat.com>
4457
4458 PR tree-optimization/57124
4459 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4460 conversion feeding a condition if the range has an overflow
4461 if -fstrict-overflow. Add warnings for when we do make the
4462 transformation.
4463
4464 2013-05-24 Dehao Chen <dehao@google.com>
4465
4466 * tree-cfg.c (locus_discrim_map): Fix the typo.
4467 (locus_discrim_hasher): Likewise.
4468 (locus_discrim_hasher::hash): Likewise.
4469 (locus_discrim_hasher::equal): Likewise.
4470
4471 2013-05-24 Martin Jambor <mjambor@suse.cz>
4472
4473 PR tree-optimization/57294
4474 * cgraph.h (ipa_record_stmt_references): Declare.
4475 * cgraphbuild.c (ipa_record_stmt_references): New function.
4476 (build_cgraph_edges): Use ipa_record_stmt_references.
4477 (rebuild_cgraph_edges): Likewise.
4478 (cgraph_rebuild_references): Likewise.
4479 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4480 associated with the old statement and build references from the
4481 newly built statements.
4482 * ipa-ref.c (ipa_remove_stmt_references): New function.
4483 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4484
4485 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4486
4487 * lra-constraints.c (emit_spill_move): Use smaller mode for
4488 mem-mem moves.
4489 (check_and_process_move): Consider mem-reg moves for secondary
4490 too.
4491 (curr_insn_transform): Don't lose insns emitted before for
4492 secondary memory moves.
4493 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4494 reg set up in the current insn.
4495
4496 2013-05-24 Dehao Chen <dehao@google.com>
4497
4498 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4499 hash function.
4500 (locus_descrim_hasher::equal): Likewise.
4501 (build_gimple_cfg): New discriminator assignment algorithm.
4502 (make_edges): Likewise.
4503 (next_discriminator_for_locus): Likewise.
4504 (same_line_p): Likewise.
4505 (assign_discriminators): Likewise.
4506 (make_cond_expr_edges): Likewise.
4507 (make_gimple_switch_edges): Likewise.
4508 (make_goto_expr_edges): Likewise.
4509 (make_gimple_asm_edges): Likewise.
4510
4511 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4512
4513 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4514 X format specifier to only display bottom 16 bits.
4515 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4516 immediate to match for operand 2, since it will be masked.
4517
4518 2013-05-24 Richard Biener <rguenther@suse.de>
4519
4520 PR tree-optimization/57287
4521 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4522 all SSA names that occur in abnormal PHIs.
4523
4524 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4525
4526 PR tree-ssa/57385
4527 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4528 that index is not negative.
4529
4530 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4531
4532 PR rtl-optimization/55177
4533 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4534 (simplify_byte_swapping_operation): New.
4535 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4536 (simplify_relational_operation_1): Deal with BSWAP.
4537
4538 2013-05-23 Richard Henderson <rth@redhat.com>
4539
4540 PR target/56742
4541 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4542 (ix86_reorg): Call it.
4543
4544 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4545
4546 PR target/57379
4547 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4548 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4549 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4550
4551 2013-05-23 Christian Bruel <christian.bruel@st.com>
4552
4553 PR debug/57351
4554 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4555
4556 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4557 Marcus Shawcroft <marcus.shawcroft@arm.com>
4558
4559 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4560 * config/aarch64/constraints.md (Usa): Remove.
4561 * doc/md.texi (AArch64 Usa): Remove.
4562
4563 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4564 Marcus Shawcroft <marcus.shawcroft@arm.com>
4565
4566 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4567 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4568 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4569 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4570
4571 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4572
4573 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4574 instruction (AdvSIMD).
4575 * config/aarch64/aarch64-builtins.c
4576 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4577 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4578
4579 2013-05-23 Martin Jambor <mjambor@suse.cz>
4580
4581 PR middle-end/57347
4582 * tree.h (contains_bitfld_component_ref_p): Declare.
4583 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4584 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4585 caller.
4586 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4587 not access a bit-field. Assert all final offsets are byte-aligned.
4588
4589 2013-05-23 Richard Biener <rguenther@suse.de>
4590
4591 PR tree-optimization/57380
4592 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4593 least one invariant or re-used load.
4594 * passes.c (init_optimization_passes): Move pass_phiprop before
4595 pass_forwprop.
4596
4597 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4598
4599 * config/aarch64/aarch64-simd.md
4600 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4601
4602 2013-05-23 Richard Biener <rguenther@suse.de>
4603
4604 PR middle-end/57381
4605 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4606 OEP_CONSTANT_ADDRESS_OF retained.
4607
4608 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4609
4610 PR middle-end/57344
4611 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4612 don't lower unit. Handle unit not being always BITS_PER_WORD.
4613
4614 2013-05-23 Richard Biener <rguenther@suse.de>
4615
4616 PR rtl-optimization/57341
4617 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4618 instead of true_dependence.
4619
4620 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4621
4622 * bb-reorder.c (branch_threshold): Make const.
4623 (exec_threshold): Ditto.
4624
4625 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4626 Pat Haugen <pthaugen@us.ibm.com>
4627 Peter Bergner <bergner@vnet.ibm.com>
4628
4629 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4630 documentation for the power8 crypto builtins.
4631
4632 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4633
4634 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4635 macros for defining power8 builtin functions.
4636 (BU_P8V_AV_2): Likewise.
4637 (BU_P8V_AV_P): Likewise.
4638 (BU_P8V_VSX_1): Likewise.
4639 (BU_P8V_OVERLOAD_1): Likewise.
4640 (BU_P8V_OVERLOAD_2): Likewise.
4641 (BU_CRYPTO_1): Likewise.
4642 (BU_CRYPTO_2): Likewise.
4643 (BU_CRYPTO_3): Likewise.
4644 (BU_CRYPTO_OVERLOAD_1): Likewise.
4645 (BU_CRYPTO_OVERLOAD_2): Likewise.
4646 (XSCVSPDP): Fix typo, point to the correct instruction.
4647 (VCIPHER): Add power8 crypto builtins.
4648 (VCIPHERLAST): Likewise.
4649 (VNCIPHER): Likewise.
4650 (VNCIPHERLAST): Likewise.
4651 (VPMSUMB): Likewise.
4652 (VPMSUMH): Likewise.
4653 (VPMSUMW): Likewise.
4654 (VPERMXOR_V2DI): Likewise.
4655 (VPERMXOR_V4SI: Likewise.
4656 (VPERMXOR_V8HI: Likewise.
4657 (VPERMXOR_V16QI: Likewise.
4658 (VSHASIGMAW): Likewise.
4659 (VSHASIGMAD): Likewise.
4660 (VPMSUM): Likewise.
4661 (VPERMXOR): Likewise.
4662 (VSHASIGMA): Likewise.
4663
4664 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4665 __CRYPTO__ if the crypto instructions are available.
4666 (altivec_overloaded_builtins): Add support for overloaded power8
4667 builtins.
4668
4669 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4670 support for power8 crypto builtins.
4671 (builtin_function_type): Likewise.
4672 (altivec_init_builtins): Add support for builtins that take vector
4673 long long (V2DI) arguments.
4674
4675 * config/rs6000/crypto.md: New file, define power8 crypto
4676 instructions.
4677
4678 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4679 Pat Haugen <pthaugen@us.ibm.com>
4680 Peter Bergner <bergner@vnet.ibm.com>
4681
4682 * doc/invoke.texi (Option Summary): Add power8 options.
4683 (RS/6000 and PowerPC Options): Likewise.
4684
4685 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4686 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4687 wm, wn, wr documentation.
4688
4689 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4690 registers if direct move instructions are enabled.
4691 (wn): New constraint for no registers.
4692 (wq): New constraint for quad word even GPR registers.
4693 (wr): New constraint if 64-bit instructions are enabled.
4694 (wv): New constraint if power8 vector instructions are enabled.
4695 (wQ): New constraint for quad word memory locations.
4696
4697 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4698 constraint for 0..15 for crypto instructions.
4699 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4700 as GPR and floating point registers.
4701 (int_reg_operand): New predicate to match only GPR registers.
4702 (base_reg_operand): New predicate to match base registers.
4703 (quad_int_reg_operand): New predicate to match even GPR registers
4704 for quad memory operations.
4705 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4706 operations in both GPR and VSX registers.
4707 (quad_memory_operand): New predicate for quad memory operations.
4708 (reg_or_indexed_operand): New predicate for direct move support.
4709
4710 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4711 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4712 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4713 (POWERPC_MASKS): Add power8 options.
4714 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4715 various options.
4716
4717 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4718 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4719
4720 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4721 (-mpower8-fusion): New power8 options.
4722 (-mpower8-fusion-sign): Likewise.
4723 (-mpower8-vector): Likewise.
4724 (-mcrypto): Likewise.
4725 (-mdirect-move): Likewise.
4726 (-mquad-memory): Likewise.
4727
4728 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4729 power8.
4730 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4731 registers.
4732 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4733 (rs6000_debug_vector_unit): Add p8_vector.
4734 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4735 definitions. Also print fusion state.
4736 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4737 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4738 (rs6000_option_override_internal): Add support for power8.
4739 (rs6000_common_init_builtins): Add debugging for skipped builtins
4740 if -mdebug=builtin.
4741 (rs6000_adjust_cost): Add power8 support.
4742 (rs6000_issue_rate): Likewise.
4743 (insn_must_be_first_in_group): Likewise.
4744 (insn_must_be_last_in_group): Likewise.
4745 (force_new_group): Likewise.
4746 (rs6000_register_move_cost): Likewise.
4747 (rs6000_opt_masks): Likewise.
4748
4749 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4750 power8 capable assembler, default to power7 options.
4751 (TARGET_DIRECT_MOVE): Likewise.
4752 (TARGET_CRYPTO): Likewise.
4753 (TARGET_P8_VECTOR): Likewise.
4754 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4755 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4756 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4757 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4758 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4759 (TARGET_XSCVDPSPN): Likewise.
4760 (TARGET_XSCVSPDPN): Likewsie.
4761 (TARGET_SYNC_HI_QI): Likewise.
4762 (TARGET_SYNC_TI): Likewise.
4763 (MASK_CRYPTO): Likewise.
4764 (MASK_DIRECT_MOVE): Likewise.
4765 (MASK_P8_FUSION): Likewise.
4766 (MASK_P8_VECTOR): Likewise.
4767 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4768 temporary used by some of the direct move instructions to get two FP
4769 temporary registers does not force creation of a stack frame.
4770 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4771 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4772 that any VSX registers are tieable, even if they are also an
4773 Altivec vector mode.
4774 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4775 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4776 (RS6000_BTM_CRYPTO): Likewise.
4777 (RS6000_BTM_COMMON): Likewise.
4778
4779 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4780 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4781 (enum rs6000_vector): Add power8 vector support.
4782
4783 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4784
4785 PR target/19599
4786 PR target/57340
4787 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4788 (any_sibcall_could_use_r3): this and handle indirect calls.
4789 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4790
4791 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4792
4793 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4794
4795 2013-05-22 Richard Biener <rguenther@suse.de>
4796
4797 PR middle-end/57349
4798 * profile.c (branch_prob): Do not split blocks that are
4799 abnormally receiving from ECF_RETURNS_TWICE functions.
4800
4801 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4802
4803 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4804 address mode. Move pointer mode initialization to the same place.
4805
4806 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4807
4808 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4809 while it has any effect.
4810
4811 2013-05-21 Easwaran Raman <eraman@google.com>
4812
4813 PR tree-optimization/57322
4814 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4815 UID of the statement added to the BB to be 1.
4816
4817 2013-05-21 Jakub Jelinek <jakub@redhat.com>
4818
4819 PR tree-optimization/57331
4820 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4821 of conversion from pointer type to integral type with integer.
4822
4823 2013-05-21 Martin Jambor <mjambor@suse.cz>
4824
4825 PR lto/57289
4826 * ipa-prop.c (ipa_read_node_info): Process param_used and
4827 controlled_uses in the same order as when writing.
4828
4829 2013-05-21 Magnus Granberg <baldrick@free.fr>
4830
4831 PR plugins/56754
4832 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4833
4834 2013-05-21 Richard Biener <rguenther@suse.de>
4835
4836 PR tree-optimization/57318
4837 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4838 estimate stmts with side-effects as likely eliminated.
4839
4840 2013-05-21 Richard Biener <rguenther@suse.de>
4841
4842 PR tree-optimization/57330
4843 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4844 preserve the call stmts fntype.
4845
4846 2013-05-21 Richard Biener <rguenther@suse.de>
4847
4848 PR tree-optimization/57303
4849 * tree-ssa-sink.c (statement_sink_location): Improve killing
4850 stmt detection and properly handle self-assignments.
4851
4852 2013-05-21 Christian Bruel <christian.bruel@st.com>
4853
4854 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4855 spanning registers. LEAF_REG_REMAP is supported only for contiguous
4856 registers. Set register size out of the PARALLEL loop.
4857
4858 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4859
4860 PR target/56547
4861 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4862 (*fmasf4, *fmasf4_media): New insns.
4863
4864 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4865
4866 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4867 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4868 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4869 (mips_idiv_insns): Update the comments to say that the returned
4870 instruction counts are in units of BASE_INSN_LENGTH.
4871 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4872 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4873 using 2 rather than 4 as the length of indirect MIPS16 and
4874 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4875 length of a NOP. Don't divide MIPS16 lengths by 2.
4876 (mips16_split_long_branches): Assume a branch is long if the
4877 length is greater than 4 rather than 8.
4878 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4879 rather than multiplying them by 2. Multiply instruction counts
4880 by BASE_INSN_LENGTH rather than 4.
4881 (*jump_mips16, tls_get_tp_mips16_<mode>)
4882 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4883
4884 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4885
4886 * config/mips/mips.md (extended_mips16): Remove branch case.
4887 (length): Remove duplicated extended_mips16 test.
4888
4889 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4890
4891 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4892
4893 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4894
4895 * recog.h (Recog_data): Rename to...
4896 (recog_data_d): ...this.
4897 (recog_data): Update accordingly.
4898 * recog.c (recog_data): Likewise.
4899 * reload.c (save_recog_data): Likewise.
4900 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4901 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4902
4903 2013-05-17 Julian Brown <julian@codesourcery.com>
4904
4905 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4906 found in a REG_EQUAL note, invalidate it.
4907
4908 2013-05-17 Easwaran Raman <eraman@google.com>
4909
4910 * tree-ssa-reassoc.c (find_insert_point): New function.
4911 (insert_stmt_after): Likewise.
4912 (get_def_stmt): Likewise.
4913 (ensure_ops_are_available): Likewise.
4914 (not_dominated_by): Likewise.
4915 (rewrite_expr_tree): Do not move statements beyond what is
4916 necessary. Remove call to swap_ops_for_binary_stmt...
4917 (reassociate_bb): ... and move it here.
4918 (build_and_add_sum): Assign UIDs for new statements.
4919 (linearize_expr): Likewise.
4920 (do_reassoc): Renumber gimple statement UIDs.
4921
4922 2013-05-17 Jan Hubicka <jh@suse.cz>
4923
4924 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4925 weakrefs.
4926 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
4927 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4928 weakrefs.
4929 (output_weakrefs): Update.
4930
4931 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4932 Martin Jambor <mjambor@suse.cz>
4933
4934 PR middle-end/57276
4935 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4936 value that corresponds to the given aggval is found in values vector.
4937
4938 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
4939
4940 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4941 sse, sse2, sse3, ssse3 and sse4a flags to options.
4942
4943 2013-05-17 David Malcolm <dmalcolm@redhat.com>
4944
4945 * gengtype-state.c: (s_expr_writer): New class, to handle
4946 prettifying of output layout of s-expressions.
4947 (state_writer): New class, to write out gtype.state.
4948 (state_written_type_count): Move this variable into member data of
4949 state_writer.
4950 (s_expr_writer::s_expr_writer): New code: constructor for new class
4951 (state_writer::state_writer(): ditto
4952 (s_expr_writer::write_new_line): New function
4953 (s_expr_writer::write_any_indent): ditto
4954 (s_expr_writer::begin_s_expr): ditto
4955 (s_expr_writer::end_s_expr): ditto
4956 (write_state_fileloc): convert to method of state_writer...
4957 (state_writer:: write_state_fileloc): ...and use methods of
4958 s_expr_writer to write indentation into the gtype.state output file
4959 to visually represent the hierarchical structure of the list
4960 structures
4961 (write_state_fields): ditto, renaming to...
4962 (state_writer::write_state_fields)
4963 (write_state_a_string): ditto, renaming to...
4964 (state_writer::write_state_a_string)
4965 (write_state_string_option): ditto, renaming to...
4966 (state_writer::write_state_string_option)
4967 (write_state_type_option): ditto, renaming to...
4968 (state_writer::write_state_type_option)
4969 (write_state_nested_option): ditto, renaming to...
4970 (state_writer::write_state_nested_option)
4971 (write_state_option): ditto, renaming to...
4972 (state_writer::write_state_option)
4973 (write_state_options): ditto, renaming to...
4974 (state_writer::write_state_options)
4975 (write_state_lang_bitmap): ditto, renaming to...
4976 (state_writer::write_state_lang_bitmap)
4977 (write_state_version): ditto, renaming to...
4978 (state_writer::write_state_version)
4979 (write_state_scalar_type): ditto, renaming to...
4980 (state_writer::write_state_scalar_type)
4981 (write_state_string_type): ditto, renaming to...
4982 (state_writer::write_state_string_type)
4983 (write_state_undefined_type): ditto, renaming to...
4984 (state_writer::write_state_undefined_type)
4985 (write_state_struct_union_type): ditto, renaming to...
4986 (state_writer::write_state_struct_union_type)
4987 (write_state_struct_type): ditto, renaming to...
4988 (state_writer::write_state_struct_type)
4989 (write_state_user_struct_type): ditto, renaming to...
4990 (state_writer::write_state_user_struct_type)
4991 (write_state_lang_struct_type): ditto, renaming to...
4992 (state_writer::write_state_lang_struct_type)
4993 (write_state_param_struct_type): ditto, renaming to...
4994 (state_writer::write_state_param_struct_type)
4995 (write_state_pointer_type): ditto, renaming to...
4996 (state_writer::write_state_pointer_type)
4997 (write_state_array_type): ditto, renaming to...
4998 (state_writer::write_state_array_type)
4999 (write_state_gc_used): ditto, renaming to...
5000 (state_writer::write_state_gc_used)
5001 (write_state_common_type_content): ditto, renaming to...
5002 (state_writer::write_state_common_type_content)
5003 (write_state_type): ditto, renaming to...
5004 (state_writer::write_state_type)
5005 (write_state_pair_list): ditto, renaming to...
5006 (state_writer::write_state_pair_list)
5007 (write_state_pair): ditto, renaming to...
5008 (state_writer::write_state_pair)
5009 (write_state_typedefs): ditto, renaming to...
5010 (state_writer::write_state_typedefs)
5011 (write_state_structures): ditto, renaming to...
5012 (state_writer::write_state_structures)
5013 (write_state_param_structs): ditto, renaming to...
5014 (state_writer::write_state_param_structs)
5015 (write_state_variables): ditto, renaming to...
5016 (state_writer::write_state_variables)
5017 (write_state_srcdir): ditto, renaming to...
5018 (state_writer::write_state_srcdir)
5019 (write_state_files_list): ditto, renaming to...
5020 (state_writer::write_state_files_list)
5021 (write_state_languages): ditto, renaming to...
5022 (state_writer::write_state_languages)
5023 (write_state): create a state_writer instance and use it when
5024 writing out the state file
5025
5026 2013-05-17 Mike Stump <mikestump@comcast.net>
5027
5028 PR rtl-optimization/57304
5029 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5030 accessing DF_REF_REAL_LOC.
5031
5032 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5033
5034 PR rtl-optimization/57281
5035 PR rtl-optimization/57300
5036 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5037 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5038 what the other splitter did if the registers are dead.
5039
5040 2013-05-17 Richard Biener <rguenther@suse.de>
5041
5042 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5043 MEM_REF offsets.
5044
5045 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5046
5047 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5048 linking.
5049
5050 2013-05-17 Marek Polacek <polacek@redhat.com>
5051
5052 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5053 length when doing non-zero store of storing '\0' to '\0'.
5054
5055 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5056
5057 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5058 vect_external_def oprnd1 with loop_vinfo, try to emit
5059 optional cast, negation and and stmts on the loop preheader
5060 edge instead of into the pattern def seq.
5061
5062 PR tree-optimization/57051
5063 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5064 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5065
5066 2013-05-16 Nick Clifton <nickc@redhat.com>
5067
5068 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5069 (rl78_is_naked_func): New function.
5070 (rl78_expand_prologue): Skip prologue generation for naked functions.
5071 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5072 * doc/extend.texi (naked): Add RL78 to the list of processors
5073 that supports this attribute.
5074
5075 2013-05-16 Jeff Law <law@redhat.com>
5076
5077 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5078
5079 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5080
5081 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5082 cache parameters using detect_caches_amd also for CYRIX,
5083 NSC and TM2 signatures.
5084
5085 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5086 Dzianis Kahanovich <mahatma@eu.by>
5087
5088 PR target/45359
5089 PR target/46396
5090 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5091 VIA/Centaur processors and determine their cache parameters
5092 using detect_caches_amd.
5093
5094 2013-05-16 Teresa Johnson <tejohnson@google.com>
5095
5096 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5097 (rtl_verify_edges): New function.
5098 (rtl_verify_bb_insns): Ditto.
5099 (rtl_verify_bb_pointers): Ditto.
5100 (rtl_verify_bb_insn_chain): Ditto.
5101 (rtl_verify_fallthru): Ditto.
5102 (rtl_verify_bb_layout): Ditto.
5103 (rtl_verify_flow_info_1): Outline checks into new functions.
5104 (rtl_verify_flow_info): Ditto.
5105
5106 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
5107
5108 * cfghooks.c (copy_bbs): Add update_dominance argument.
5109 * cfghooks.h (copy_bbs): Update prototype.
5110 * tree-cfg.c (gimple_duplicate_sese_region):
5111 Add update_dominance argument.
5112 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5113 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5114 gimple_duplicate_sese_region call.
5115 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5116 Update copy_bbs call.
5117 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5118 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5119
5120 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5121
5122 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5123 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5124 vect_recog_rotate_pattern.
5125 (vect_recog_rotate_pattern): New function.
5126
5127 2013-05-16 Jason Merrill <jason@redhat.com>
5128
5129 * Makefile.in (LLINKER): New variable.
5130 (mostlyclean): Remove link mutex.
5131 * configure.ac: Handle --enable-link-mutex.
5132 * lock-and-run.sh: New script.
5133
5134 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5135
5136 PR target/19599
5137 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5138 for NULL decl.
5139
5140 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5141
5142 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5143
5144 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5145
5146 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5147 * config/arm/arm.c (next_consecutive_mem): New function.
5148 (gen_movmem_ldrd_strd): Likewise.
5149 * config/arm/arm.md (movmemqi): Update condition and code.
5150 (unaligned_loaddi, unaligned_storedi): New patterns.
5151
5152 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5153
5154 * config.gcc: Obsolete *-*-solaris2.9*.
5155 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5156
5157 2013-05-16 Richard Biener <rguenther@suse.de>
5158
5159 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5160 earlier, after GRAPHITE transforms and IV canonicalization.
5161
5162 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5163
5164 * omp-low.c (extract_omp_for_data): For collapsed loops,
5165 if at least one of the loops is known at compile time to
5166 iterate zero times, set count to 0.
5167 (expand_omp_regimplify_p): New function.
5168 (expand_omp_for_generic): For collapsed loops, if at least
5169 one of the loops isn't known to iterate at least once,
5170 add runtime check with setting count to 0.
5171 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5172 For unsigned types if it isn't known at compile time that
5173 the loop will iterate at least once, add runtime check to bypass
5174 the whole loop if initial condition isn't true.
5175
5176 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5177
5178 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5179
5180 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
5181
5182 PR middle-end/57286
5183 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5184 transformations to avoid an infinite loop.
5185
5186 2013-05-16 Marek Polacek <polacek@redhat.com>
5187
5188 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5189
5190 2013-05-15 Leif Ekblad <leif@rdos.net>
5191
5192 * config/i386/i386.c (ix86_decompose_address): Use
5193 DEFAULT_TLS_SEG_REG to access TLS segment register.
5194 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5195 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5196 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5197
5198 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5199
5200 PR target/57260
5201 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5202 sibling calls to functions that would normally be lazily bound,
5203 unless $gp is call-clobbered.
5204
5205 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
5206
5207 * config/i386/i386.c (ix86_option_override_internal): Update
5208 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5209 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5210 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5211 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5212 of TARGET_3DNOW.
5213 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5214
5215 2013-05-15 Andreas Schwab <schwab@suse.de>
5216
5217 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5218 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5219 third operand.
5220
5221 2013-05-15 Teresa Johnson <tejohnson@google.com>
5222
5223 * loop-unroll.c (report_unroll_peel): Check decision before
5224 emitting unroll/peel message.
5225
5226 2013-05-15 Teresa Johnson <tejohnson@google.com>
5227
5228 * function.h (has_bb_partition): New rtl_data flag.
5229 (bb_reorder_complete): Ditto.
5230 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5231 instead of flag_reorder_blocks_and_partition.
5232 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5233 with some enhancements.
5234 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5235 * bb-reorder.c (connect_traces): Check for has_bb_partition
5236 instead of flag_reorder_blocks_and_partition.
5237 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5238 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5239 verify_hot_cold_block_grouping.
5240 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5241
5242 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5243
5244 PR target/19599
5245 * config/arm/predicates.md (call_insn_operand): New predicate.
5246 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5247 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5248 if insn is not a tail call.
5249 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5250 registers.
5251 * config/arm/arm.h (enum reg_class): New caller save register class.
5252 (REG_CLASS_NAMES): Likewise.
5253 (REG_CLASS_CONTENTS): Likewise.
5254 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5255 without decls.
5256
5257 2013-05-15 Richard Biener <rguenther@suse.de>
5258
5259 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5260 of MSG_OPTIMIZED_LOCATIONS.
5261 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5262 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5263 message.
5264 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5265 of MSG_OPTIMIZED_LOCATIONS.
5266 (execute_vect_slp): Likewise.
5267 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5268 (vect_create_cond_for_alias_checks): Likewise.
5269 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5270 (vect_recog_widen_mult_pattern): Likewise.
5271 (vect_recog_widen_sum_pattern): Likewise.
5272 (vect_recog_over_widening_pattern): Likewise.
5273 (vect_recog_widen_shift_pattern): Likewise.
5274 (vect_recog_vector_vector_shift_pattern): Likewise.
5275 (vect_recog_divmod_pattern): Likewise.
5276 (vect_recog_mixed_size_cond_pattern): Likewise.
5277 (vect_recog_bool_pattern): Likewise.
5278 (vect_pattern_recog_1): Likewise.
5279
5280 2013-05-15 Martin Jambor <mjambor@suse.cz>
5281
5282 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5283 non-functions to builtin_unreachable.
5284 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5285 correct when new direct edges were discovered.
5286
5287 2013-05-15 Martin Jambor <mjambor@suse.cz>
5288
5289 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5290 header, print symbol order instead of node uid, print more information
5291 about indirect edge targets.
5292 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5293 uids.
5294 (ipa_make_edge_direct_to_target): Likewise.
5295 (remove_described_reference): Likewise.
5296 (propagate_controlled_uses): Likewise.
5297 (ipa_print_node_params): Also print symbol order.
5298 (ipcp_transform_function): Print symbol order instead of node uids.
5299 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5300 (cgraph_get_create_real_symbol_node): Likewise.
5301 * ipa-cp.c (print_lattice): Likewise.
5302 (print_all_lattices): Likewise.
5303 (determine_versionability): Likewise.
5304 (initialize_node_lattices): Likewise.
5305 (estimate_local_effects): Likewise.
5306 (update_profiling_info): Likewise.
5307 (create_specialized_node): Likewise.
5308 (perhaps_add_new_callers): Likewise.
5309 (decide_about_value): Likewise.
5310 (decide_whether_version_node): Likewise.
5311 (identify_dead_nodes): Likewise.
5312 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5313 (dump_inline_summary): Likewise.
5314 (estimate_node_size_and_time): Likewise.
5315 (inline_analyze_function): Likewise.
5316 * ipa-inline.c (report_inline_failed_reason): Likewise.
5317 (want_early_inline_function_p): Likewise.
5318 (edge_badness): Likewise.
5319 (update_edge_key): Likewise.
5320 (inline_small_functions): Likewise. Add dumping of order to two other
5321 dumps.
5322 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5323 instead of node uids.
5324 (propagate_pure_const): Likewise.
5325 (propagate_pure_const): Likewise.
5326 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5327 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5328 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5329 of node uids.
5330 * tree-pretty-print.c (dump_function_header): Likewise.
5331 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5332 Print symbol order instead of node uids.
5333
5334 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5335
5336 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5337 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5338
5339 2013-05-15 Richard Biener <rguenther@suse.de>
5340
5341 PR tree-optimization/57275
5342 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5343 return value for fail to do runtime alias checks for gather loads.
5344
5345 2013-05-15 Jan Hubicka <jh@suse.cz>
5346
5347 PR lto/57038
5348 PR lto/47375
5349 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5350 weakrefs are not external.
5351 (lto_symtab_merge_decls): Fix thinko when dealing with
5352 non-lto_symtab decls.
5353 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5354 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5355 * varpool.c (dump_varpool_node): Dump more flags.
5356
5357 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5358
5359 * config/i386/i386.c (processor_alias_table): Add instruction
5360 FSGSBASE for AMD bdver3 architecture.
5361
5362 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5363
5364 * tree.c (warn_deprecated_use): Print file:line using locus color.
5365 * diagnostic.c (diagnostic_report_current_module): Print file:line
5366 and file:line:column using locus color.
5367
5368 2013-05-14 Mike Stump <mikestump@comcast.net>
5369
5370 * gdbinit.in: Add __null.
5371
5372 2013-05-14 Mike Stump <mikestump@comcast.net>
5373
5374 * recog.h: Rename struct recog_data to Recog_data.
5375 * recog.c: Likewise.
5376 * reload.c (can_reload_into): Likewise.
5377 * config/picochip/picochip.c: Likewise.
5378
5379 2013-05-14 Mike Stump <mikestump@comcast.net>
5380
5381 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5382
5383 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5384
5385 * resource.h (struct resources): Remove unch_memory member.
5386 (CLEAR_RESOURCE): Don't clear unch_memory.
5387 * resource.c (mark_referenced_resources): Don't set it.
5388 (mark_set_resources): Likewise.
5389 (mark_target_live_regs): Don't clear it.
5390 (init_resource_info): Likewise.
5391 * reorg.c (resource_conflicts_p): Don't compare it.
5392 (redundant_insn): Don't set it.
5393
5394 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5395 Remove prototypes.
5396 * emit-rtl.c (next_label): Remove unused function.
5397 (skip_consecutive_labels, link_cc0_insns): Move to ...
5398 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5399 only place where these functions are used, and make them static.
5400
5401 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5402
5403 * fold-const.c (fold_negate_expr): Handle vectors.
5404 (fold_truth_not_expr): Make it static.
5405 (fold_invert_truthvalue): New static function.
5406 (invert_truthvalue_loc): Handle vectors. Do not call
5407 fold_truth_not_expr directly.
5408 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5409 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5410 (fold_comparison): Handle vector constants.
5411 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5412 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5413 * tree.h (fold_truth_not_expr): Remove declaration.
5414
5415 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5416
5417 * config/aarch64/aarch64-simd.md
5418 (aarch64_vcond_internal<mode>): Rename to...
5419 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5420 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5421 float modes. Clarify all iterator modes.
5422 (vcond<mode><mode>): Use new name for vcond expanders.
5423 (vcond<v_cmp_result><mode>): Likewise.
5424 (vcondu<mode><mode>: Likewise.
5425 * config/aarch64/iterators.md (VDQF_COND): New.
5426
5427 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5428
5429 PR bootstrap/57266
5430 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5431 variable for the shift amount. Check that we shift by non-negative
5432 amounts.
5433
5434 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5435
5436 PR target/42017
5437 * config/arm/arm.h (EPILOGUE_USES): Only return true
5438 for LR_REGNUM after epilogue_completed.
5439
5440 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5441
5442 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5443 is error_mark_node.
5444
5445 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5446
5447 PR target/57261
5448 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5449 and Solaris 11+/x86 with gld.
5450 * configure: Regenerate.
5451
5452 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5453
5454 * expmed.c (expand_shift_1): Canonicalize rotates by
5455 constant bitsize / 2 to bitsize - 1.
5456 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5457 case ROTATERT>: Likewise.
5458
5459 Revert:
5460 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5461
5462 * config/i386/i386.md (rotateinv): New code attr.
5463 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5464 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5465 roll $31, %eax, etc.
5466
5467 2013-05-14 Richard Biener <rguenther@suse.de>
5468
5469 PR middle-end/57235
5470 * tree-eh.c (sink_clobbers): Give up for successors with
5471 multiple predecessors and no virtual uses.
5472
5473 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5474
5475 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5476 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5477
5478 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5479
5480 PR middle-end/57251
5481 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5482 the case when both op0 and op1 have VOIDmode.
5483
5484 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5485
5486 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5487 in multiply-accumulate mode.
5488
5489 2013-05-13 Guozhi Wei <carrot@google.com>
5490
5491 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5492
5493 2013-05-13 Kai Tietz <ktietz@redhat.com>
5494
5495 PR target/56975
5496 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5497 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5498 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5499 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5500 (ix86_expand_prologue): Likewise.
5501 (ix86_expand_split_stack_prologue): Likewise.
5502 (legitimate_pic_address_disp_p): Likewise.
5503 (legitimize_pic_address): Likewise.
5504 (legitimize_tls_address): Likewise.
5505 (legitimize_pe_coff_symbol): Likewise.
5506 (output_pic_addr_const): Likewise.
5507 (construct_plt_address): Likewise.
5508 (ix86_expand_call): Likewise.
5509 (x86_output_mi_thunk): Likewise.
5510 (x86_function_profiler): Likewise.
5511
5512 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5513
5514 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5515 similar switch cases.
5516 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5517 (aarch64_simd_mov_to_<mode>low): Delete.
5518 (aarch64_simd_mov_to_<mode>high): Delete.
5519 (move_lo_quad_<mode>): Add w<-r alternative.
5520 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5521 (aarch64_simd_mov_from_*): Update type attribute.
5522 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5523 statement.
5524
5525 2013-05-13 Jan Hubicka <jh@suse.cz>
5526
5527 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5528 * config/i386/i386.c (ix86_compute_frame_layout,
5529 ix86_expand_epilogue, emit_i387_cw_initialization,
5530 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5531 ix86_local_alignment): Fix use of size/speed predicates.
5532
5533 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5534
5535 PR tree-optimization/45216
5536 PR tree-optimization/57157
5537 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5538 the (-Y) & (B - 1) variant if OP is |.
5539 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5540 return shifted. Use (-op1) & (prec - 1) as other_amount
5541 instead of prec - op1.
5542
5543 2013-05-13 Martin Jambor <mjambor@suse.cz>
5544
5545 PR middle-end/42371
5546 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5547 (ipa_constant_data): New type.
5548 (ipa_jump_func): Use ipa_constant_data to hold information about
5549 constant jump functions.
5550 (ipa_get_jf_constant): Adjust to jump function type changes.
5551 (ipa_get_jf_constant_rdesc): New function.
5552 (ipa_param_descriptor): New field controlled_uses.
5553 (ipa_get_controlled_uses): New function.
5554 (ipa_set_controlled_uses): Likewise.
5555 * ipa-ref.h (ipa_find_reference): Declare.
5556 * ipa-prop.c (ipa_cst_ref_desc): New type.
5557 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5558 changes.
5559 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5560 New parameter cs. Adjust all callers.
5561 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5562 (remove_described_reference): New function.
5563 (jfunc_rdesc_usable): Likewise.
5564 (try_make_edge_direct_simple_call): Decrement controlled use count,
5565 attempt to remove reference if it hits zero.
5566 (combine_controlled_uses_counters): New function.
5567 (propagate_controlled_uses): Likewise.
5568 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5569 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5570 (ipa_print_node_params): Print described use counter.
5571 (ipa_write_jump_function): Adjust to jump function type changes.
5572 (ipa_read_jump_function): New parameter CS, pass it to
5573 ipa_set_jf_constant. Adjust caller.
5574 (ipa_write_node_info): Stream controlled use count
5575 (ipa_read_node_info): Likewise.
5576 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5577 asserting.
5578 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5579 count. Remove cloning-added reference if it reaches zero.
5580 * ipa-ref.c (ipa_find_reference): New function.
5581
5582 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5583
5584 * config/i386/i386.c (processor_target_table): Modified default
5585 alignment values for AMD BD and BT architectures.
5586
5587 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5588
5589 * tree-vect-generic.c (uniform_vector_p): Move ...
5590 * tree.c (uniform_vector_p): ... here.
5591 * tree.h (uniform_vector_p): Declare it.
5592 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5593 into a scalar.
5594
5595 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5596
5597 PR tree-optimization/57230
5598 * tree-ssa-strlen.c (handle_char_store): Record length for
5599 array store from STRING_CST.
5600
5601 PR tree-optimization/57230
5602 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5603 check.
5604
5605 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5606
5607 * config/epiphany/epiphany.c (epiphany_init): Check size of
5608 NUM_MODES_FOR_MODE_SWITCHING.
5609 (epiphany_expand_prologue):
5610 Remove CONFIG_REGNUM initial value handling code.
5611 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5612 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5613 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5614 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5615 Don't return 1 for FP_MODE_NONE.
5616 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5617 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5618 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5619 * config/epiphany/epiphany.md (save_config): New pattern.
5620
5621 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5622
5623 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5624
5625 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5626
5627 * config/i386/i386.md (memory): Handle sseishft1.
5628 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5629 (*vec_extractv2di_1): Ditto.
5630
5631 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5632
5633 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5634 saved registers.
5635
5636 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5637
5638 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5639 Add mthumb/march=armv7-a multilib.
5640 Add mthumb/march=armv7-r multilib.
5641 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5642
5643 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5644
5645 * config/v850/t-rtems: Add more multilibs.
5646
5647 2013-05-10 Richard Biener <rguenther@suse.de>
5648
5649 PR tree-optimization/57214
5650 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5651 not propagate from SSA names that occur in abnormal PHI nodes.
5652
5653 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5654
5655 * stor-layout.c (element_precision): New function.
5656 * machmode.h (element_precision): Declare it.
5657 * tree.c (build_minus_one_cst): New function.
5658 (element_precision): Likewise.
5659 * tree.h (build_minus_one_cst): Declare new function.
5660 (element_precision): Likewise.
5661 * fold-const.c (operand_equal_p): Use element_precision.
5662 (fold_binary_loc): Handle vector types.
5663 * convert.c (convert_to_integer): Use element_precision.
5664 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5665 separately.
5666
5667 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5668
5669 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5670 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5671 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5672 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5673 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5674 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5675 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5676 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5677 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5678 (Uuw8): New constraints.
5679 (Usb4): Move into alphabetical order.
5680 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5681 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5682 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5683 previously unnamed patterns.
5684 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5685 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5686 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5687 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5688 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5689 of specific lengths.
5690
5691 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5692
5693 * config/i386/i386.md (rotateinv): New code attr.
5694 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5695 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5696 roll $31, %eax, etc.
5697
5698 PR tree-optimization/45216
5699 PR tree-optimization/57157
5700 * tree-ssa-forwprop.c (simplify_rotate): New function.
5701 (ssa_forward_propagate_and_combine): Call it.
5702
5703 2013-05-10 Richard Biener <rguenther@suse.de>
5704
5705 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5706 disable peeling when we version for aliasing.
5707 (vector_alignment_reachable_p): Honor explicit user alignment.
5708 (vect_supportable_dr_alignment): Likewise.
5709 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5710 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5711 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5712 then peeling to arrange for the cost-model check to come first.
5713
5714 2013-05-10 Alan Modra <amodra@gmail.com>
5715
5716 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5717 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5718 * configure: Regenerate.
5719
5720 2013-05-10 Alan Modra <amodra@gmail.com>
5721
5722 PR target/55033
5723 * varasm.c (default_elf_select_section): Move !DECL_P check..
5724 (get_named_section): ..to here before calling get_section_name.
5725 Adjust assertion.
5726 (default_section_type_flags): Add DECL_P check.
5727 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5728 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5729
5730 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5731
5732 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5733 When using gen_stack_adjust_str with a register offset, add a
5734 REG_FRAME_RELATED_EXPR note.
5735
5736 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
5737
5738 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5739 (*vec_extractv4si_zext_mem): Ditto.
5740 (*vec_extractv2di): Add 0->x and x->x alternatives.
5741 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5742 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5743
5744 2013-05-09 Jason Merrill <jason@redhat.com>
5745
5746 N3639 C++1y VLA support
5747 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5748 DECL_VALUE_EXPR.
5749
5750 * tree.c (build_constructor_va): New.
5751 * tree.h: Declare it.
5752
5753 2013-05-09 Martin Jambor <mjambor@suse.cz>
5754
5755 PR lto/57084
5756 * gimple-fold.c (canonicalize_constructor_val): Call
5757 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5758
5759 2013-05-09 Jan Hubicka <jh@suse.cz>
5760 Richard Biener <rguenther@suse.de>
5761
5762 PR lto/54095
5763 * symtab.c (symtab_make_decl_local): Do not add private names.
5764
5765 2013-05-09 Jan Hubicka <jh@suse.cz>
5766
5767 PR lto/54095
5768 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5769 (unlink_from_assembler_name_hash): Likewise.
5770 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5771 symtab_unregister_node, symtab_initialize_asm_name_hash,
5772 change_decl_assembler_name): Update.
5773
5774 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5775
5776 * config/aarch64/aarch64.md: New movtf split.
5777 (*movtf_aarch64): Update.
5778 (aarch64_movdi_tilow): Handle TF modes and rename to
5779 aarch64_movdi_<mode>low.
5780 (aarch64_movdi_tihigh): Handle TF modes and rename to
5781 aarch64_movdi_<mode>high
5782 (aarch64_movtihigh_di): Handle TF modes and rename to
5783 aarch64_mov<mode>high_di
5784 (aarch64_movtilow_di): Handle TF modes and rename to
5785 aarch64_mov<mode>low_di
5786 (aarch64_movtilow_tilow): Remove spurious whitespace.
5787 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5788 splits.
5789 (aarch64_print_operand): Update.
5790
5791 2013-05-09 Alan Modra <amodra@gmail.com>
5792
5793 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5794 powerpc64le.
5795 * configure: Regenerate.
5796
5797 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5798
5799 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5800 splitter preparation statements.
5801 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5802 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5803 adjust_address_nv.
5804
5805 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5806
5807 * gimple-ssa-strength-reduction.c (count_candidates): Change
5808 return value to int.
5809 (analyze_candidates_and_replace): Change type of length to int.
5810
5811 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5812
5813 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5814 (*vec_extract<mode>): Use VI12_128 mode iterator.
5815 (*vec_extract<mode>_mem): Ditto.
5816 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5817 attribute.
5818
5819 2013-05-08 Diego Novillo <dnovillo@google.com>
5820
5821 PR bootstrap/54659
5822
5823 Revert:
5824 2012-08-17 Diego Novillo <dnovillo@google.com>
5825
5826 PR bootstrap/54281
5827 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5828 * config.in: Regenerate.
5829 * configure: Regenerate.
5830 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5831
5832 2013-05-08 Jan Hubicka <jh@suse.cz>
5833
5834 PR lto/54095
5835 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5836 * cgraph.h (symtab_node_base): Add unique_name.
5837 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5838 input_overwrite_node, input_varpool_node): Stream unique_name.
5839 * cgraphclones.c (cgraph_create_virtual_clone,
5840 cgraph_function_versioning): Set unique_name.
5841 * ipa.c (function_and_variable_visibility): Set unique_name.
5842
5843 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5844
5845 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5846 (alloc_cand_and_find_basis): Restrict conditional candidate
5847 processing to CAND_MULTs.
5848
5849 2013-05-08 Jan Hubicka <jh@suse.cz>
5850
5851 PR lto/54095
5852 lto-symtab.c (lto_symtab_symbol_p): New function.
5853 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5854 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5855 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5856 Skip static symbols.
5857
5858 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5859
5860 PR tree-optimization/57200
5861 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5862 Only call inform if the preceding warning_at returns true.
5863
5864 2013-05-07 Han Shen <shenhan@google.com>
5865
5866 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5867 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5868 * common.opt (fstack-protector-strong): New option.
5869 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5870 * doc/invoke.texi (Optimization Options): Document
5871 "-fstack-protector-strong".
5872 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5873
5874 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5875
5876 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5877
5878 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5879
5880 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5881 it is not lhs of the insn.
5882 (setup_reg_equiv): Remove insn having equiv memory which it is not
5883 lhs of the insn.
5884 * lra-constraints.c (process_address): Try to improve generation
5885 code for address base + disp.
5886 (lra_constraints): Make correct the code for checking insn setting
5887 up backward equivalence. Remove insn only if it is in the init
5888 insn list.
5889 * lra-eliminations.c (update_reg_eliminate): Change return value.
5890 (lra_eliminate): Use the result.
5891
5892 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
5893
5894 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5895 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5896 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5897 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5898 register target operands.
5899 (*vec_extractv8hi_sse2): New pattern.
5900 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5901 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5902 (*vec_extract<mode>_mem): New insn and split pattern.
5903
5904 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5905
5906 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5907 (TARGET_ASAN_SHADOW_OFFSET): Define.
5908 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5909 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5910
5911 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5912
5913 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5914 (incr_vec_index): Return -1 if increment not found.
5915 (create_add_on_incoming_edge): Assert if increment not found.
5916 (record_increment): Limit number of increments recorded.
5917 (all_phi_incrs_profitable): Return false if an increment not found.
5918 (replace_profitable_candidates): Don't process increments that were
5919 not recorded.
5920 (analyze_candidates_and_replace): Limit size of incr_vec.
5921
5922 2013-05-07 Richard Biener <rguenther@suse.de>
5923
5924 * calls.c (special_function_p): setjmp-like functions are leaf.
5925 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5926 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5927
5928 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5929
5930 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5931 (aarch64_simd_mov<mode>): New expander.
5932 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5933 (aarch64_simd_mov_to_<mode>high): Likewise.
5934 (aarch64_simd_mov_from_<mode>low): Likewise.
5935 (aarch64_simd_mov_from_<mode>high): Likewise.
5936 (aarch64_dup_lane<mode>): Update.
5937 (aarch64_dup_lanedi): New instruction pattern.
5938 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5939 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5940
5941 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5942
5943 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5944 (replace_mult_candidate): Remove unnecessary argument; remove
5945 unnecessary parameter from call to introduce_cast_before_cand.
5946 (replace_unconditional_candidate): Remove unnecessary parameter
5947 from call to replace_mult_candidate.
5948 (replace_conditional_candidate): Likewise.
5949 (insert_initializers): Use make_temp_ssa_name.
5950 (introduce_cast_before_cand): Remove unnecessary argument; use
5951 make_temp_ssa_name.
5952 (replace_one_candidate): Remove unnecessary argument; remove
5953 unnecessary parameter from calls to introduce_cast_before_cand.
5954 (replace_profitable_candidates): Remove unnecessary parameters
5955 from calls to replace_one_candidate.
5956
5957 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5958
5959 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5960 phi def as possibly hiding a basis for a CAND_ADD whose operands
5961 have been commuted in the analysis.
5962 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5963
5964 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5965
5966 * config/aarch64/aarch64.md
5967 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5968 shift value between 0-4.
5969
5970 2013-05-07 Richard Biener <rguenther@suse.de>
5971
5972 * double-int.h (rshift): New overload.
5973 * double-int.c (rshift): New function.
5974 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5975 (create_reference_ops_from_ref): Remove.
5976 (vn_reference_insert): Use shared ops for constructing the
5977 reference and copy it.
5978
5979 2013-05-07 Richard Biener <rguenther@suse.de>
5980
5981 PR middle-end/57190
5982 * tree-eh.c (sink_clobbers): Properly propagate
5983 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5984
5985 2013-05-07 Jakub Jelinek <jakub@redhat.com>
5986
5987 PR tree-optimization/57149
5988 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5989 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5990 collect_phi_def_edges, execute_late_warn_uninitialized): Use
5991 uninit_undefined_value_p instead of ssa_undefined_value_p.
5992
5993 PR debug/57184
5994 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5995 for modifier == EXPAND_INITIALIZER.
5996
5997 2013-05-07 Anton Blanchard <anton@samba.org>
5998
5999 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6000 for powerpc64 little endian.
6001 * configure: Regenerate.
6002
6003 2013-05-06 Graham Stott <grahams@btinternet.com>
6004
6005 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6006 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6007 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6008 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6009
6010 2013-05-06 Graham Stott <grahams@btinternet.com>
6011
6012 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6013 codes which allow non-lvalues.
6014
6015 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
6016
6017 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6018 components are all 1s.
6019 (integer_minus_onep): New function.
6020 * tree.h (integer_minus_onep): Declare it.
6021 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6022 integer_minus_onep instead of integer_all_onesp.
6023
6024 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6025
6026 PR target/52933
6027 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6028 variations of these patterns.
6029
6030 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6031
6032 * config/i386/i386.md (isa): Add x64_sse4 member.
6033 (enabled): Handle x64_sse4.
6034 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6035 instruction for 64bit SSE4_1 targets. Update insn attributes.
6036 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6037 instruction for SSE4_1 targets. Update insn attributes.
6038 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6039 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6040 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6041 const_1 selector.
6042 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6043 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6044 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6045
6046 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6047
6048 PR target/57108
6049 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6050
6051 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6052
6053 * final.c (do_assembler_dialects): Don't handle curly braces and
6054 vertical bar escaped by % as dialect delimiters.
6055 (output_asm_insn): Print curly braces and vertical bar if escaped
6056 by % and ASSEMBLER_DIALECT defined.
6057 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6058 * doc/tm.texi: Regenerated.
6059
6060 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6061
6062 * config/mips/mips.c: Include tree-pass.h.
6063 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6064 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6065 (pass_mips_machine_reorg2): New machine specific pass.
6066 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6067 (mips_option_override): Register the new pass.
6068 * rtl.h (cleanup_barriers): Remove prototype.
6069 (dbr_schedule): Likewise.
6070 * jump.c (cleanup_barriers): Make static.
6071 * reorg.c (dbr_schedule): Likewise.
6072
6073 2013-05-06 Richard Biener <rguenther@suse.de>
6074
6075 PR tree-optimization/57185
6076 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6077 SSA names properly.
6078
6079 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6080
6081 PR target/57106
6082 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6083 between "first_arg" and "insn", not "last" and "insn".
6084
6085 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6086
6087 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6088 (find_candidates_in_block): Re-enable slsr_process_phi.
6089 (create_phi_basis): Fix double counting of candidate adjustment.
6090
6091 2013-05-06 Richard Biener <rguenther@suse.de>
6092
6093 PR middle-end/57147
6094 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6095 the edge is also fallthru, preserve it and just clear the
6096 abnormal flag.
6097 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6098 also complex, preserve that and just clear the fallthru flag.
6099 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6100 update virtual operands.
6101
6102 2013-05-06 Alan Modra <amodra@gmail.com>
6103
6104 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6105 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6106 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6107 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6108 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6109 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6110
6111 2013-05-06 Alan Modra <amodra@gmail.com>
6112
6113 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6114 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6115 (DEFAULT_ASM_ENDIAN): Define.
6116 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6117 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6118 Update -K PIC clause from sysv4.h.
6119 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6120 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6121
6122 2013-05-06 Alan Modra <amodra@gmail.com>
6123
6124 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6125 twice for little-endian.
6126 (ashrdi3_no_power, ashrdi3): Support little-endian.
6127
6128 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6129
6130 PR target/55303
6131 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6132 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6133 related expanders.
6134 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6135 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6136 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6137 New predicates.
6138
6139 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6140 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6141
6142 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6143 * config/pa/pa.opt: Make mbig-switch a no-op.
6144 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6145 (CASE_VECTOR_MODE): Always return SImode.
6146 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6147 for the !TARGET_BIG_SWITCH case.
6148 * config/pa/pa-linux.h: Likewise.
6149 * config/pa/pa-openbsd.h: Likewise.
6150 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6151 * config/pa/pa.md (short_jump): Remove define_insn.
6152 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6153 (casesi0): Remove define_insn.
6154 (type): Remove btable_branch.
6155 (pa_combine_type): Likewise.
6156 (in_nullified_branch_delay): Likewise.
6157 (in_call_delay): Likewise.
6158 (define_delay): Likewise.
6159 (define_insn_reservation "Z3"): Likewise.
6160 (define_insn_reservation "Z4"): Likewise.
6161 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6162 (pa_adjust_insn_length): Remove adjustment for btable branches.
6163 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6164 and mno-big-switch
6165
6166 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
6167
6168 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6169 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6170 Add m->r,x alternatives.
6171 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6172 splitters using SWI48x mode iterator.
6173 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6174 TARGET_64BIT. Add m->x alternative.
6175 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6176 Add o->x alternative. Enable for TARGET_SSE.
6177 (sse_storeq): Remove expander.
6178 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6179 with memory input operand.
6180 (*vec_extractv2di_1 splitter): New.
6181 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6182 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6183
6184 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6185
6186 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6187 (INT_LOWPART): Delete.
6188 (extract_MB): Adjust.
6189 (extract_ME): Adjust.
6190 (print_operand): Adjust.
6191
6192 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6193
6194 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6195 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6196 (reg_or_logical_cint_operand, easy_fp_constant,
6197 logical_const_operand): Delete "CONST_DOUBLE" case.
6198 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6199 "HOST_BITS_PER_WIDE_INT == 64" test.
6200 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
6201 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6202 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6203 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6204 test.
6205 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6206 CONST_DOUBLE DImode/VOIDmode case.
6207 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6208 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6209 CONST_DOUBLE VOIDmode case.
6210 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6211 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6212 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6213 Delete CONST_DOUBLE case.
6214 (splitters for mov FMOVE64 const_double): Delete
6215 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6216 "HOST_BITS_PER_WIDE_INT >= 64" test.
6217 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6218 case.
6219 (mov DI const_double): Delete.
6220
6221 2013-05-04 Jakub Jelinek <jakub@redhat.com>
6222
6223 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6224 on op shows all bits zero in mode of a lowpart subreg, return zero.
6225
6226 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6227
6228 PR target/57150
6229 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6230 to save TFmode registers and DImode to save TImode registers for
6231 caller save operations.
6232 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6233 mark being partially clobbered since they only use the first
6234 double word.
6235
6236 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6237 and TDmode only use the upper 64-bits of each VSX register.
6238
6239 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6240
6241 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6242 (find_candidates_in_block): Disable slsr_process_phi.
6243
6244 2013-05-03 Guozhi Wei <carrot@google.com>
6245
6246 * coverage.c (coverage_obj_init): Move the construction of gcov
6247 constructor to ...
6248 (build_init_ctor): ... here.
6249
6250 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6251
6252 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6253 (slsr_cand_d): Redefine def_phi.
6254 (stride_status, phi_adjust_status, count_phis_status): New enums.
6255 (find_phi_def): New.
6256 (find_basis_for_base_expr): New.
6257 (find_basis_for_candidate): Handle hidden bases.
6258 (alloc_cand_and_find_basis): Handle phi candidates.
6259 (slsr_process_phi): New.
6260 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6261 (create_mul_imm_cand): Likewise.
6262 (create_add_ssa_cand): Exclude phi base candidates.
6263 (create_add_imm_cand): Likewise.
6264 (slsr_process_cast): Likewise.
6265 (slsr_process_copy): Likewise.
6266 (find_candidates_in_block): Handle phi candidates.
6267 (dump_candidate): Likewise.
6268 (unconditional_cands): Delete.
6269 (unconditional_cands_with_known_stride_p): Delete.
6270 (phi_dependent_cand_p): New.
6271 (cand_increment): Handle phi-dependent candidates.
6272 (replace_dependent): Delete.
6273 (replace_mult_candidate): New.
6274 (replace_unconditional_candidate): New.
6275 (incr_vec_index): Move to avoid forward reference.
6276 (create_add_on_incoming_edge): New.
6277 (create_phi_basis): New.
6278 (replace_dependents): Delete.
6279 (replace_conditional_candidate): New.
6280 (phi_add_costs): New.
6281 (replace_uncond_cands_and_profitable_phis): New.
6282 (record_increment): Handle phi adjustments.
6283 (record_phi_increments): New.
6284 (record_increments): Handle phi adjustments.
6285 (phi_incr_cost): New.
6286 (lowest_cost_path): Handle phis.
6287 (total_savings): Likewise.
6288 (analyze_increments): Likewise.
6289 (ncd_with_phi): New.
6290 (ncd_of_cand_and_phis): New.
6291 (nearest_common_dominator_for_cands): Handle phi increments.
6292 (all_phi_incrs_profitable): New.
6293 (replace_profitable_candidates): Handle phi-dependent candidates.
6294 (analyze_candidates_and_replace): Likewise.
6295
6296 2013-05-03 Teresa Johnson <tejohnson@google.com>
6297
6298 PR bootstrap/57154
6299 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6300 do not exceed REG_BR_PROB_BASE.
6301
6302 2013-05-03 Jeff Law <law@redhat.com>
6303
6304 PR tree-optimization/57144
6305 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6306 operand of the condition will bit into the new type when eliminating
6307 a cast feeding a condition.
6308
6309 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6310
6311 PR rtl-optimization/57130
6312 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6313 of COMPARE as in_code to the recursive call if needed.
6314
6315 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6316
6317 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6318 (enabled): Handle new members.
6319 * config/i386/sse.md (*vec_concatv2si): Merge from
6320 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6321 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6322
6323 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6324
6325 PR tree-optimization/57027
6326 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6327 for fnms opportunity, check we got the prerequisite kind
6328 of tree / gimple before using accessor functions.
6329
6330 2013-05-03 Richard Biener <rguenther@suse.de>
6331
6332 * double-int.h (lshift): New overload without precision
6333 and arith argument.
6334 (operator *=, operator +=, operator -=): Move ...
6335 * double-int.c (operator *=, operator +=, operator -=): ... here
6336 and implement more efficiently.
6337 (mul_double_with_sign): Remove.
6338 (lshift_double): Adjust to take unsinged shift argument, push
6339 dispatching code to callers.
6340 (mul_double_wide_with_sign): Add early out for callers that
6341 are not interested in high parts or overflow.
6342 (lshift): New function.
6343 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6344 dispatch code here.
6345 (lrotate, rrotate): Use logical shifts.
6346 * expr.c (get_inner_reference): Use lshift.
6347 * fixed-value.c (do_fixed_divide): Likewise.
6348 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6349 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6350 (indirect_refs_may_alias_p): Likewise.
6351 (stmt_kills_ref_p_1): Likewise.
6352
6353 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6354
6355 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6356
6357 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6358
6359 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6360 scalar form of FABD instruction.
6361
6362 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6363
6364 * lra-constraints.c (process_alt_operands): Add checking alt
6365 number to choose the best alternative.
6366
6367 2013-05-02 Richard Biener <rguenther@suse.de>
6368
6369 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6370 bitmap and its handling.
6371 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6372
6373 2013-05-02 Richard Biener <rguenther@suse.de>
6374
6375 PR middle-end/57140
6376 * tree-inline.c (copy_loops): Properly handle removed loops.
6377 (copy_cfg_body): Mark destination loops for fixup if source
6378 loops needed fixup.
6379
6380 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6381
6382 PR target/56732
6383 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6384 generating simple_return for naked functions.
6385
6386 2013-05-02 Martin Jambor <mjambor@suse.cz>
6387
6388 PR middle-end/56988
6389 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6390 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6391 flags match.
6392 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6393 ipa_agg_replacement_value structures.
6394 (known_aggs_to_agg_replacement_list): Likewise.
6395 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6396 (read_agg_replacement_chain): Likewise.
6397 (ipcp_transform_function): Also check that by_ref flags match.
6398
6399 2013-05-02 Richard Biener <rguenther@suse.de>
6400
6401 * graphds.h (struct graph): Add obstack member.
6402 * graphds.c (new_graph): Initialize obstack and allocate
6403 vertices from it.
6404 (add_edge): Allocate edge from the obstack.
6405 (free_graph): Free the obstack instead of all edges and vertices.
6406
6407 2013-05-02 Teresa Johnson <tejohnson@google.com>
6408
6409 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6410 divides.
6411 * cfg.c (update_bb_profile_for_threading): Ditto.
6412 * tree-inline.c (copy_bb): Ditto.
6413 (copy_edges_for_bb): Ditto.
6414 (initialize_cfun): Ditto.
6415 (copy_cfg_body): Ditto.
6416 (expand_call_inline): Ditto.
6417 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6418 (estimate_node_size_and_time): Ditto.
6419 (inline_merge_summary): Ditto.
6420 * cgraphclones.c (cgraph_clone_edge): Ditto.
6421 (cgraph_clone_node): Ditto.
6422 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6423 (compute_trg_info): Ditto.
6424
6425 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6426
6427 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6428 S reg when fp attribute set.
6429 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6430
6431 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6432
6433 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6434 New pattern.
6435 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6436 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6437 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6438
6439 2013-05-02 Richard Biener <rguenther@suse.de>
6440
6441 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6442 (struct instantiate_cache_entry): New type.
6443 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6444 (struct instantiate_cache_type): New type.
6445 (set_instantiated_value, get_instantiated_value): Remove.
6446 (get_instantiated_value_entry): New function.
6447 (instantiate_scev_name): Use the new cache and adjust.
6448 (instantiate_scev_poly): Adjust.
6449 (instantiate_scev_binary): Likewise.
6450 (instantiate_array_ref): Likewise.
6451 (instantiate_scev_convert): Likewise.
6452 (instantiate_scev_not): Likewise.
6453 (instantiate_scev_3): Likewise.
6454 (instantiate_scev_2): Likewise.
6455 (instantiate_scev_r): Likewise.
6456 (instantiate_scev): Likewise.
6457 (resolve_mixers): Likewise.
6458
6459 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6460
6461 PR target/57091
6462 * lra-constraints.c (best_small_class_operands_num): Remove.
6463 (process_alt_operands): Remove small_class_operands_num. Take
6464 small classes operands into losers and only if the operand is not
6465 matched. Modify debugging output.
6466 (curr_insn_transform): Remove best_small_class_operands_num.
6467 Print insn name.
6468
6469 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6470
6471 * config/aarch64/aarch64-builtins.c
6472 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6473 * config/aarch64/aarch64-simd-builtins.def
6474 (reduc_splus_): Add new modes.
6475 (reduc_uplus_): New.
6476 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6477 (reduc_uplus_v4sf): Likewise.
6478 (reduc_splus_v4sf): Likewise.
6479 (aarch64_addv<mode>): Likewise.
6480 (reduc_uplus_<mode>): Likewise.
6481 (reduc_splus_<mode>): Likewise.
6482 (aarch64_addvv2di): Likewise.
6483 (reduc_uplus_v2di): Likewise.
6484 (reduc_splus_v2di): Likewise.
6485 (aarch64_addvv2si): Likewise.
6486 (reduc_uplus_v2si): Likewise.
6487 (reduc_splus_v2si): Likewise.
6488 (reduc_<sur>plus_<mode>): New.
6489 (reduc_<sur>plus_v2di): Likewise.
6490 (reduc_<sur>plus_v2si): Likewise.
6491 (reduc_<sur>plus_v4sf): Likewise.
6492 (aarch64_addpv4sf): Likewise.
6493 * config/aarch64/arm_neon.h
6494 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6495 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6496 add UNSPEC_SADDV, UNSPEC_UADDV.
6497 (SUADDV): New.
6498 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6499
6500 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6501
6502 * config/aarch64/arm_neon.h
6503 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6504
6505 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6506
6507 * config/aarch64/aarch64-builtins
6508 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6509
6510 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6511
6512 * config/aarch64/aarch64-simd-builtins.def
6513 (reduc_smax_): New.
6514 (reduc_smin_): Likewise.
6515 (reduc_umax_): Likewise.
6516 (reduc_umin_): Likewise.
6517 (reduc_smax_nan_): Likewise.
6518 (reduc_smin_nan_): Likewise.
6519 (fmax): Remove.
6520 (fmin): Likewise.
6521 (smax): Update for V2SF, V4SF and V2DF modes.
6522 (smin): Likewise.
6523 (smax_nan): New.
6524 (smin_nan): Likewise.
6525 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6526 (<su><maxmin><mode>3): ...This, refactor.
6527 (s<maxmin><mode>3): New.
6528 (<maxmin_uns><mode>3): Likewise.
6529 (reduc_<maxmin_uns>_<mode>): Refactor.
6530 (reduc_<maxmin_uns>_v4sf): Likewise.
6531 (reduc_<maxmin_uns>_v2si): Likewise.
6532 (aarch64_<fmaxmin><mode>: Remove.
6533 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6534 new builtin names.
6535 (vmin<q>_f<32,64>): Likewise.
6536 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6537 (FMAXMIN): New.
6538 (su): Add mappings for smax, smin, umax, umin.
6539 (maxmin): New.
6540 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6541 (FMAXMIN): Rename as...
6542 (FMAXMIN_UNS): ...This.
6543 (maxminv): Remove.
6544 (fmaxminv): Likewise.
6545 (fmaxmin): Likewise.
6546 (maxmin_uns): New.
6547 (maxmin_uns_op): Likewise.
6548
6549 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6550
6551 * config/aarch64/arm_neon.h
6552 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6553 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6554 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6555
6556 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6557
6558 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6559 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6560
6561 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6562
6563 * config/aarch64/aarch64-simd.md
6564 (vcond<mode>_internal): Handle special cases for constant masks.
6565 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6566 (vcondu<mode><mode>): Likewise.
6567 (vcond<v_cmp_result><mode>): New.
6568
6569 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6570
6571 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6572 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6573 * config/aarch64/aarch64-simd-builtins.def
6574 (cmeq): Update to BUILTIN_VALLDI.
6575 (cmgt): Likewise.
6576 (cmge): Likewise.
6577 (cmle): Likewise.
6578 (cmlt): Likewise.
6579 * config/aarch64/arm_neon.h
6580 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6581 to builtins or C as appropriate.
6582
6583 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6584
6585 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6586 (cmgeu): ...This.
6587 (cmhi): Rename to...
6588 (cmgtu): ...This.
6589 * config/aarch64/aarch64-simd.md
6590 (simd_mode): Add SF.
6591 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6592 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6593 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6594 (cstore<mode>_neg): ...This.
6595 * config/aarch64/iterators.md
6596 (VALLF): new.
6597 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6598 (COMPARISONS): New.
6599 (UCOMPARISONS): Likewise.
6600 (optab): Add missing comparisons.
6601 (n_optab): New.
6602 (cmp_1): Likewise.
6603 (cmp_2): Likewise.
6604 (CMP): Likewise.
6605 (cmp): Remove.
6606 (VCMP_S): Likewise.
6607 (VCMP_U): Likewise.
6608 (V_cmp_result): Add DF, SF modes.
6609 (v_cmp_result): Likewise.
6610 (v): Likewise.
6611 (vmtype): Likewise.
6612 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6613
6614 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6615
6616 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6617 define_insn to define_insn_and_split.
6618 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6619 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6620 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6621 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6622 (thumb2_negscc): Likewise.
6623
6624 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6625
6626 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6627
6628 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6629
6630 * config/arm/thumb2.md: Remove trailing whitespaces.
6631
6632 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6633
6634 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6635 Use gen_int_mode rather than GEN_INT.
6636
6637 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6638
6639 * value-prof.c (stream_in_histogram_value): Remove the strayed
6640 debug_gimple_stmt.
6641
6642 2013-04-30 Richard Biener <rguenther@suse.de>
6643
6644 PR middle-end/57122
6645 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6646
6647 2013-04-30 Richard Biener <rguenther@suse.de>
6648
6649 PR middle-end/57107
6650 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6651
6652 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6653
6654 PR rtl-optimization/56957
6655 PR rtl-optimization/57105
6656 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6657 variable. Use just INSN_UID for determining whether an insn
6658 should be only disconnected from the insn stream.
6659 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6660
6661 2013-04-30 Jakub Jelinek <jakub@redhat.com>
6662
6663 PR tree-optimization/57104
6664 * tsan.c (instrument_expr): Don't instrument accesses to
6665 DECL_HARD_REGISTER VAR_DECLs.
6666
6667 2013-04-30 Richard Biener <rguenther@suse.de>
6668
6669 * function.h (loops_for_fn): New inline function.
6670 (set_loops_for_fn): Likewise.
6671 * cfgloop.h (place_new_loop): Add struct function parameter.
6672 (get_loop): Likewise.
6673 (get_loops): Likewise.
6674 (number_of_loops): Likewise.
6675 (fel_next): Adjust.
6676 (fel_init): Likewise.
6677 * cfg.c (get_loop_copy): Adjust.
6678 * cfgloop.c (flow_loops_dump): Likewise.
6679 (record_loop_exits): Likewise.
6680 (verify_loop_structure): Likewise.
6681 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6682 (estimate_reg_pressure_cost): Likewise.
6683 (mark_loop_exit_edges): Likewise.
6684 * cfgloopmanip.c (place_new_loop): Likewise.
6685 (add_loop): Likewise.
6686 (duplicate_loop): Likewise.
6687 * graph.c (draw_cfg_nodes): Likewise.
6688 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6689 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6690 (extract_affine_chrec): Likewise.
6691 (build_scop_iteration_domain): Likewise.
6692 * graphite.c (graphite_initialize): Likewise.
6693 * ira-build.c (create_loop_tree_nodes): Likewise.
6694 (more_one_region_p): Likewise.
6695 (rebuild_regno_allocno_maps): Likewise.
6696 (mark_loops_for_removal): Likewise.
6697 (mark_all_loops_for_removal): Likewise.
6698 (remove_unnecessary_regions): Likewise.
6699 (ira_build): Likewise.
6700 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6701 * loop-init.c (fix_loop_structure): Likewise.
6702 (gate_rtl_move_loop_invariants): Likewise.
6703 (gate_rtl_unswitch): Likewise.
6704 (gate_rtl_unroll_and_peel_loops): Likewise.
6705 (rtl_doloop): Likewise.
6706 * lto-streamer-in.c (input_cfg): Likewise.
6707 * lto-streamer-out.c (output_cfg): Likewise.
6708 * modulo-sched.c (sms_schedule): Likewise.
6709 * predict.c (tree_estimate_probability): Likewise.
6710 (tree_estimate_probability_driver): Likewise.
6711 (estimate_loops): Likewise.
6712 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6713 (move_sese_region_to_fn): Likewise.
6714 (debug_loop_num): Likewise.
6715 * tree-chrec.c (chrec_evaluate): Likewise.
6716 (hide_evolution_in_other_loops_than_loop): Likewise.
6717 (chrec_component_in_loop_num): Likewise.
6718 (reset_evolution_in_loop): Likewise.
6719 (evolution_function_is_invariant_rec_p): Likewise.
6720 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6721 * tree-inline.c (copy_loops): Likewise.
6722 (copy_cfg_body): Likewise.
6723 (tree_function_versioning): Likewise.
6724 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6725 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6726 Likewise.
6727 (add_to_evolution_1): Likewise.
6728 (scev_const_prop): Likewise.
6729 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6730 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6731 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6732 (tree_ssa_lim_initialize): Likewise.
6733 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6734 (verify_loop_closed_ssa): Likewise.
6735 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6736 (tree_ssa_loop_im): Likewise.
6737 (tree_ssa_loop_unswitch): Likewise.
6738 (tree_vectorize): Likewise.
6739 (check_data_deps): Likewise.
6740 (tree_ssa_loop_ivcanon): Likewise.
6741 (tree_ssa_loop_bounds): Likewise.
6742 (tree_complete_unroll): Likewise.
6743 (tree_complete_unroll_inner): Likewise.
6744 (tree_parallelize_loops): Likewise.
6745 (tree_ssa_loop_prefetch): Likewise.
6746 (tree_ssa_loop_ivopts): Likewise.
6747 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6748 * tree-vectorizer.c (vectorize_loops): Likewise.
6749
6750 2013-04-29 Mike Frysinger <vapier@gentoo.org>
6751
6752 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6753 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6754 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6755 with EABI_LINK_SPEC.
6756
6757 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6758
6759 PR target/44578
6760 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6761 alternative.
6762
6763 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6764
6765 PR target/57097
6766 * lra-constraints.c (process_alt_operands): Discourage a bit more
6767 using memory for pseudos. Print cost dump for alternatives.
6768 Modify cost values for conflicts with early clobbers.
6769 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6770
6771 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6772
6773 PR target/57098
6774 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6775
6776 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6777
6778 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6779 from/to S register.
6780 (movdi_aarch64): Support LDR/STR from/to D register.
6781
6782 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6783
6784 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6785 or higher by default.
6786
6787 2013-04-29 Richard Biener <rguenther@suse.de>
6788
6789 PR middle-end/57075
6790 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6791 even if not adding abnormal edges for calls that can make
6792 abnormal gotos.
6793
6794 2013-04-29 Richard Biener <rguenther@suse.de>
6795
6796 PR middle-end/57103
6797 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6798 TREE_BLOCK.
6799 (move_stmt_r): Remove redundant checking.
6800
6801 2013-04-29 Teresa Johnson <tejohnson@google.com>
6802
6803 PR bootstrap/57077
6804 * basic-block.h (apply_scale): New function.
6805 (apply_probability): Use apply_scale.
6806 * gimple-streamer-in.c (input_bb): Ditto.
6807 * lto-streamer-in.c (input_cfg): Ditto.
6808 * lto-cgraph.c (merge_profile_summaries): Ditto.
6809 * tree-optimize.c (execute_fixup_cfg): Ditto.
6810 * tree-inline.c (copy_bb): Update comment to use apply_scale.
6811 (copy_edges_for_bb): Ditto.
6812 (copy_cfg_body): Ditto.
6813
6814 2013-04-29 Tom de Vries <tom@codesourcery.com>
6815
6816 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6817 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6818 (tail_merge_optimize): Handle current_loops == NULL.
6819
6820 2013-04-26 Jeff Law <law@redhat.com>
6821
6822 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6823 (simplify_cond_using_ranges): Generalize code to simplify
6824 COND_EXPRs where one argument is a constant and the other
6825 is an SSA_NAME created by an integral type conversion.
6826
6827 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6828
6829 * config/arm/arm.md (store_minmaxsi): Use only when
6830 optimize_insn_for_size_p.
6831
6832 2013-04-29 Christian Bruel <christian.bruel@st.com>
6833
6834 PR target/57108
6835 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6836
6837 2013-04-29 Richard Biener <rguenther@suse.de>
6838
6839 PR middle-end/57089
6840 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6841 loop tree make sure to schedule a fixup for the child as well.
6842 (expand_omp_for_generic): Properly add loops.
6843 (expand_omp_for_static_nochunk): Likewise.
6844 (expand_omp_for_static_chunk): Likewise.
6845 (expand_omp_for): For the degenerate case fixup loops.
6846 (expand_omp_sections): Fix default bb placement in loops.
6847 (expand_omp_atomic_pipeline): Properly add loops.
6848
6849 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6850
6851 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6852
6853 2013-04-29 Tom de Vries <tom@codesourcery.com>
6854
6855 * tree-ssa-tail-merge.c: Update header comment.
6856
6857 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6858
6859 * config/aarch64/arm_neon.h
6860 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6861 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6862 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6863 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6864 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6865 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6866 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6867 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6868
6869 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6870
6871 * config/aarch64/aarch64-simd.md
6872 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6873 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6874 fix_trunc, fixuns_trunc.
6875 (ftrunc<VDQF:mode>2): New.
6876 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6877 (fix_trunc_optab): New.
6878
6879 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6880
6881 * config/aarch64/aarch64-builtins.c
6882 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6883 iceilf, lround, iroundf.
6884
6885 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6886
6887 PR target/54349
6888 * config/i386/i386.h (enum ix86_tune_indices)
6889 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6890 New, split from X86_TUNE_INTER_UNIT_MOVES.
6891 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6892 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6893 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6894 (TARGET_INTER_UNIT_MOVES): Remove.
6895 * config/i386/i386.c (initial_ix86_tune_features): Update.
6896 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6897 (ix86_expand_convert_uns_didf_sse): Use
6898 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6899 (ix86_expand_vector_init_one_nonzero): Ditto.
6900 (ix86_expand_vector_init_interleave): Ditto.
6901 (inline_secondary_memory_needed): Return true for moves from SSE class
6902 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6903 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6904 * config/i386/constraints.md (Yi, Ym): Depend on
6905 TARGET_INTER_UNIT_MOVES_TO_VEC.
6906 (Yj, Yn): New constraints.
6907 * config/i386/i386.md (*movdi_internal): Change constraints of
6908 operand 1 from Yi to Yj and from Ym to Yn.
6909 (*movsi_internal): Ditto.
6910 (*movdf_internal): Ditto.
6911 (*movsf_internal): Ditto.
6912 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6913 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6914 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6915 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6916 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6917 * config/i386/sse.md (movdi_to_sse): Ditto.
6918 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6919 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6920 TARGET_INTER_UNIT_MOVES.
6921 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6922 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6923 instead of TARGET_INTER_UNIT_MOVES.
6924 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6925 operand 1 from Yi to Yj and from Ym to Yn.
6926
6927 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6928
6929 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6930 (float_truncate_hi_): Likewise.
6931 (float_extend_lo_): Likewise.
6932 (float_truncate_lo_): Likewise.
6933 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6934 (aarch64_float_extend_lo_v2df): Likewise.
6935 (vec_unpacks_hi_v4sf): Likewise.
6936 (aarch64_float_truncate_lo_v2sf): Likewise.
6937 (aarch64_float_truncate_hi_v4sf): Likewise.
6938 (vec_pack_trunc_v2df): Likewise.
6939 (vec_pack_trunc_df): Likewise.
6940
6941 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6942
6943 * config/aarch64/aarch64-builtins.c
6944 (aarch64_fold_builtin): Fold float conversions.
6945 * config/aarch64/aarch64-simd-builtins.def
6946 (floatv2si, floatv4si, floatv2di): New.
6947 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6948 * config/aarch64/aarch64-simd.md
6949 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6950 * config/aarch64/iterators.md (FLOATUORS): New.
6951 (optab): Add float, floatuns.
6952 (su_optab): Likewise.
6953
6954 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6955
6956 * config/aarch64/aarch64-builtins.c
6957 (aarch64_builtin_vectorized_function): Use new names for
6958 fcvt builtins.
6959 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6960 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6961 (fcvtzu): Split as...
6962 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6963 (fcvtas): Split as...
6964 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6965 (fcvtau): Split as...
6966 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6967 (fcvtps): Split as...
6968 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6969 (fcvtpu): Split as...
6970 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6971 (fcvtms): Split as...
6972 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6973 (fcvtmu): Split as...
6974 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6975 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6976 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6977 (lfrintnusf, lfrintnudf): Likewise.
6978 * config/aarch64/aarch64-simd.md
6979 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6980 define_insn.
6981 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6982 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6983 (fcvt_pattern): Likewise.
6984
6985 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6986
6987 * config/aarch64/aarch64-simd.md
6988 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6989 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6990
6991 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6992
6993 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6994 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6995 (vrnd<a,m,n,p>_f32): Implement using builtins.
6996 (vrnd<i,x><q>_f<32, 64>): New.
6997
6998 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6999
7000 * config/aarch64/aarch64-builtins.c
7001 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7002 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7003 (frintz): Rename to...
7004 (btrunc): ...this.
7005 (frintp): Rename to...
7006 (ceil): ...this.
7007 (frintm): Rename to...
7008 (floor): ...this.
7009 (frinti): Rename to...
7010 (nearbyint): ...this.
7011 (frintx): Rename to...
7012 (rint): ...this.
7013 (frinta): Rename to...
7014 (round): ...this.
7015 * config/aarch64/aarch64-simd.md
7016 (aarch64_frint<frint_suffix><mode>): Delete.
7017 (<frint_pattern><mode>2): Convert to insn.
7018 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7019 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7020 (frint_pattern): Likewise.
7021 (frint_suffix): Likewise.
7022
7023 2013-04-29 Richard Biener <rguenther@suse.de>
7024
7025 PR tree-optimization/57081
7026 * loop-init.c: Include tree-flow.h.
7027 (loop_optimizer_finalize): Free number of iteration estimates.
7028 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7029
7030 2013-04-29 Jakub Jelinek <jakub@redhat.com>
7031
7032 PR tree-optimization/57083
7033 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7034 non-singleton shift count range, zero extend low_bound for uns case.
7035
7036 * config/i386/predicates.md (general_vector_operand): New predicate.
7037 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7038 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7039 if they aren't nonimmediate operands. If their original values
7040 satisfy const_vector_equal_evenodd_p, don't shift them.
7041 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7042 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7043 if not nonimmediate_operand.
7044 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7045 instead of register_operand.
7046 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7047
7048 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
7049
7050 * stor-layout.c (finalize_size_functions): Allocate a structure and
7051 reset cfun before dumping the functions.
7052
7053 2013-04-27 Jakub Jelinek <jakub@redhat.com>
7054
7055 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7056
7057 PR target/56866
7058 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7059 use xop_pmacsdqh if uns_p.
7060 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7061 the immediate rotate count.
7062
7063 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7064
7065 * rtl.h (struct rtx_def): Add comment for field jump.
7066 (LRA_SUBREG_P): New macro.
7067 * recog.c (register_operand): Check LRA_SUBREG_P.
7068 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7069 stack frame.
7070 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7071 (lra_final_code_change): Skip subreg change for operators.
7072 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7073 if there are no operand changes.
7074 * lra-constraints.c (curr_insn_set): New.
7075 (match_reload): Set LRA_SUBREG_P.
7076 (emit_spill_move): Ditto.
7077 (check_and_process_move): Use curr_insn_set. Process only single
7078 set insns. Don't initialize sec_mem_p and change_p.
7079 (simplify_operand_subreg): Use LRA_SUBREG_P.
7080 (reg_in_class_p): New function.
7081 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7082 of #ifdef. Add code to remove cycling.
7083 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7084 non-null disp. Reload inner instead of disp when base and index
7085 are null. Try to put lo_sum into register.
7086 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7087 (check_and_process_move): Move code for move cost check to
7088 simple_move_p. Remove equiv_substitution.
7089 (simple_move_p): New function.
7090 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7091 curr_insn_set. Call check_and_process_move only for single set
7092 insns. Use the new function. Move call of check_and_process_move
7093 after operand equiv substitution and address process.
7094
7095 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7096
7097 PR go/57045
7098 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7099 with nonlocal goto receivers or returns twice calls, ignore
7100 unininitialized values from abnormal edges to nl goto receiver
7101 or returns twice call.
7102
7103 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7104
7105 PR tree-optimization/57051
7106 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7107 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7108 bitsize.
7109
7110 2013-04-26 Richard Biener <rguenther@suse.de>
7111
7112 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7113 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7114 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7115 (fixup_loop_arrays_after_move): New function.
7116 (move_sese_region_to_fn): Properly outline the loop tree parts
7117 of the SESE region.
7118
7119 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
7120
7121 * config/i386/i386.md (type, unit): Fix long lines.
7122
7123 2013-04-26 Richard Biener <rguenther@suse.de>
7124
7125 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7126 (lto-streamer-out.o): Likewise.
7127 * cfgloop.c (init_loops_structure): Export, add struct function
7128 argument and adjust.
7129 (flow_loops_find): Adjust.
7130 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7131 (init_loops_structure): Declare.
7132 * lto-streamer-in.c: Include cfgloop.h.
7133 (input_cfg): Input the loop tree.
7134 * lto-streamer-out.c: Include cfgloop.h.
7135 (output_cfg): Output the loop tree.
7136 (output_struct_function_base): Do not drop PROP_loops.
7137
7138 2013-03-26 Richard Biener <rguenther@suse.de>
7139
7140 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7141 (pass_build_cfg): Provide PROP_loops.
7142 (move_sese_region_to_fn): Remove loops that are outlined into fn
7143 for now.
7144 * tree-inline.c: Include cfgloop.h.
7145 (initialize_cfun): Do not drop PROP_loops.
7146 (copy_loops): New function.
7147 (copy_cfg_body): Copy loop structure.
7148 (tree_function_versioning): Initialize destination loop tree.
7149 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7150 (pass_parallelize_loops): Do IL verification.
7151 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7152 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7153 the CFG make sure we fixup loops as well.
7154 * tree-ssa-tail-merge.c: Include cfgloop.h.
7155 (replace_block_by): When merging loop latches mark loops for fixup.
7156 * lto-streamer-out.c (output_struct_function_base): Drop
7157 PROP_loops for now.
7158 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7159 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7160 * ipa-split.c: Include cfgloop.h.
7161 (split_function): Add the new return block to the loop tree root.
7162 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7163 whether we have removed the forwarder block.
7164 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7165 * cfgloop.h (place_new_loop): Declare.
7166 * cfgloopmanip.c (place_new_loop): Export.
7167 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7168 (tree-switch-conversion.o): Likewise.
7169 (tree-complex.o): Likewise.
7170 (tree-inline.o): Likewise.
7171 (tree-ssa-tailmerge.o): Likewise.
7172 (ipa-split.o): Likewise.
7173 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7174 (tree-ssa-copy.o): Likewise.
7175 * tree-switch-conversion.c: Include cfgloop.h
7176 (process_switch): If we emit a bit-test cascade, schedule loops
7177 for fixup.
7178 * tree-complex.c: Include cfgloop.h.
7179 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7180 * asan.c: Include cfgloop.h.
7181 (create_cond_insert_point): Properly add new basic-blocks to
7182 loops, schedule loop fixup.
7183 * cfgloop.c (verify_loop_structure): Check that looks are not
7184 marked for fixup.
7185 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7186 to loops.
7187 (expand_omp_for_generic): Likewise.
7188 (expand_omp_sections): Likewise.
7189 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7190 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7191 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7192 is initialized, not when loops are present.
7193 * tree-parloops.c (parallelize_loops): Remove checking here.
7194 * passes.c (init_optimization_passes): Schedule a copy-propagation
7195 pass before complete unrolling of inner loops.
7196
7197 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7198
7199 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7200 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7201 (colorize_init): Add argument to _WIN32 version.
7202 * toplev.c: Include diagnostic-color.h.
7203 (process_options): Default to -fdiagnostics-color=auto if
7204 GCC_COLORS env var is in the environment.
7205 * common.opt (fdiagnostics-color=): Add Var and Init.
7206 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7207 env var is in the environment, the default is auto rather than never.
7208
7209 * diagnostic.h (file_name_as_prefix): Add context argument.
7210 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7211 the string as locus.
7212 * langhooks.c (lhd_print_error_function): Adjust caller.
7213
7214 2013-04-25 Lawrence Crowl <crowl@google.com>
7215
7216 * var-tracking.c (shared_hash_def::htab):
7217 Change type to hash_table. Update dependent calls and types.
7218
7219 2013-04-25 Lawrence Crowl <crowl@google.com>
7220
7221 * Makefile.in: Update as needed below.
7222
7223 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7224 Move declaration to after the type's method definitons.
7225
7226 * attribs.c (htab_t scoped_attributes::attribute_hash):
7227 Change type to hash_table. Update dependent calls and types.
7228
7229 * bitmap.c (htab_t bitmap_desc_hash):
7230 Change type to hash_table. Update dependent calls and types.
7231
7232 * cselib.c (htab_t cselib_hash_table):
7233 Change type to hash_table. Update dependent calls and types.
7234
7235 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7236 (hash_string_slot_node): Move implementation into lto-streamer.h
7237 struct string_slot_hasher.
7238 (eq_string_slot_node): Likewise.
7239
7240 * data-streamer-out.c: Update output_block::string_hash_table
7241 dependent calls and types.
7242
7243 * dwarf2cfi.c (htab_t trace_index):
7244 Change type to hash_table. Update dependent calls and types.
7245
7246 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7247 Change type to hash_table. Update dependent calls and types.
7248 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7249 (htab_t optimize_external_refs::map): Likewise.
7250 (htab_t output_comp_unit::extern_map): Likewise.
7251 (htab_t output_comdat_type_unit::extern_map): Likewise.
7252 (htab_t output_macinfo::macinfo_htab): Likewise.
7253 (htab_t optimize_location_lists::htab): Likewise.
7254 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7255
7256 * except.c (htab_t ehspec_hash_type):
7257 Change type to hash_table. Update dependent calls and types.
7258 (assign_filter_values::ttypes): Likewise.
7259 (assign_filter_values::ehspec): Likewise.
7260 (sjlj_assign_call_site_values::ar_hash): Likewise.
7261 (convert_to_eh_region_ranges::ar_hash): Likewise.
7262
7263 * gcse.c (htab_t pre_ldst_table):
7264 Change type to hash_table. Update dependent calls and types.
7265
7266 * ggc-common.c (htab_t saving_htab):
7267 Change type to hash_table. Update dependent calls and types.
7268 (htab_t loc_hash): Likewise.
7269 (htab_t ptr_hash): Likewise.
7270 (call_count): Rename ggc_call_count.
7271 (call_alloc): Rename ggc_call_alloc.
7272 (loc_descriptor): Rename make_loc_descriptor.
7273 (add_statistics): Rename ggc_add_statistics.
7274
7275 * ggc-common.c (saving_htab):
7276 Change type to hash_table. Update dependent calls and types.
7277
7278 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7279 (push_gimplify_context): Likewise.
7280 (pop_gimplify_context): Likewise.
7281 (struct gimple_temp_hash_elt): Added.
7282 (struct gimplify_hasher): Likewise.
7283 (struct gimplify_ctx.temp_htab):
7284 Change type to hash_table. Update dependent calls and types.
7285
7286 * gimple-fold.c: Include gimplify-ctx.h.
7287
7288 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7289 Change type to hash_table. Update dependent calls and types.
7290 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7291 avoid potential global name collision.
7292
7293 * gimplify.c: Include gimplify-ctx.h.
7294 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7295 (htab_t gimplify_ctx::temp_htab):
7296 Update dependent calls and types for new type hash_table.
7297 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7298 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7299
7300 * gimplify-ctx.h: New.
7301 (struct gimple_temp_hash_elt): Move from gimplify.c.
7302 (class gimplify_hasher): New.
7303 (struct gimplify_ctx): Move from gimple.h.
7304 (htab_t gimplify_ctx::temp_htab):
7305 Change type to hash_table. Update dependent calls and types.
7306
7307 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7308 (htab_t ivs_params::newivs_index):
7309 Change type to hash_table. Update dependent calls and types.
7310 (htab_t ivs_params::params_index): Likewise.
7311 (htab_t print_generated_program::params_index): Likewise.
7312 (htab_t gloog::newivs_index): Likewise.
7313 (htab_t gloog::params_index): Likewise.
7314
7315 * graphite.c: Include graphite-htab.h.
7316 4htab_t graphite_transform_loops::bb_pbb_mapping):
7317 Change type to hash_table. Update dependent calls and types.
7318
7319 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7320 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7321 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7322
7323 * graphite-dependences.c: Include graphite-htab.h.
7324 (loop_is_parallel_p): Change hash table type of parameter.
7325
7326 * graphite-htab.h: New.
7327 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7328 (extern find_pbb_via_hash): Move from graphite-poly.h.
7329 (extern loop_is_parallel_p): Move from graphite-poly.h.
7330 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7331
7332 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7333 (extern loop_is_parallel_p): Move to graphite-htab.h.
7334 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7335
7336 * haifa-sched.c (htab_t delay_htab):
7337 Change type to hash_table. Update dependent calls and types.
7338 (htab_t delay_htab_i2): Likewise.
7339
7340 * ira-color.c (htab_t allocno_hard_regs_htab):
7341 Change type to hash_table. Update dependent calls and types.
7342
7343 * ira-costs.c (htab_t cost_classes_htab):
7344 Change type to hash_table. Update dependent calls and types.
7345
7346 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7347 Change type to hash_table. Update dependent calls and types.
7348
7349 * loop-iv.c (htab_t bivs):
7350 Change type to hash_table. Update dependent calls and types.
7351
7352 * loop-unroll.c (htab_t opt_info::insns_to_split):
7353 Change type to hash_table. Update dependent calls and types.
7354 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7355
7356 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7357 (struct string_slot_hasher): New.
7358 (htab_t output_block::string_hash_table):
7359 Change type to hash_table. Update dependent calls and types.
7360
7361 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7362 (htab_t file_name_hash_table):
7363 Change type to hash_table. Update dependent calls and types.
7364
7365 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7366 calls and types.
7367
7368 * lto-streamer.c (htab_t tree_htab):
7369 Change type to hash_table. Update dependent calls and types.
7370
7371 * omp-low.c: Include gimplify-ctx.h.
7372
7373 * passes.c (htab_t name_to_pass_map):
7374 Change type to hash_table. Update dependent calls and types.
7375 (pass_traverse): Rename to passes_pass_traverse.
7376
7377 * plugin.c (htab_t event_tab):
7378 Change type to hash_table. Update dependent calls and types.
7379
7380 * postreload-gcse.c (htab_t expr_table):
7381 Change type to hash_table. Update dependent calls and types.
7382 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7383
7384 * sese.c (debug_rename_map_1): Make extern.
7385 (htab_t copy_bb_and_scalar_dependences::rename_map):
7386 Change type to hash_table. Update dependent calls and types.
7387
7388 * sese.h (extern debug_rename_map): Move to .c file.
7389
7390 * store-motion.c (htab_t store_motion_mems_table):
7391 Change type to hash_table. Update dependent calls and types.
7392
7393 * trans-mem.c (htab_t tm_new_mem_hash):
7394 Change type to hash_table. Update dependent calls and types.
7395
7396 * tree-browser.c (htab_t TB_up_ht):
7397 Change type to hash_table. Update dependent calls and types.
7398
7399 * tree-cfg.c (htab_t discriminator_per_locus):
7400 Change type to hash_table. Update dependent calls and types.
7401
7402 * tree-complex.c: Include tree-hasher.h
7403 (htab_t complex_variable_components):
7404 Change type to hash_table. Update dependent calls and types.
7405
7406 * tree-eh.c (htab_t finally_tree):
7407 Change type to hash_table. Update dependent calls and types.
7408
7409 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7410 struct int_tree_hasher.
7411 (extern int_tree_map_eq): Likewise.
7412 (uid_decl_map_hash): Removed.
7413 (extern decl_tree_map_eq): Likewise.
7414
7415 * tree-hasher.h: New.
7416 (struct int_tree_hasher): New.
7417 (typedef int_tree_htab_type): New.
7418
7419 * tree-inline.c: Include gimplify-ctx.h.
7420
7421 * tree-mudflap.c: Include gimplify-ctx.h.
7422
7423 * tree-parloops.c: Include tree-hasher.h.
7424 (htab_t eliminate_local_variables_stmt::decl_address):
7425 Change type to hash_table. Update dependent calls and types.
7426 (htab_t separate_decls_in_region::decl_copies): Likewise.
7427
7428 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7429 Change type to hash_table. Update dependent calls and types.
7430
7431 * tree-sra.c (candidates):
7432 Change type to hash_table. Update dependent calls and types.
7433
7434 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7435 in tree-flow.h.
7436 (int_tree_map_hash): Likewise.
7437
7438 * tree-ssa-dom.c (htab_t avail_exprs):
7439 Change type to hash_table. Update dependent calls and types.
7440
7441 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7442 Change type to hash_table. Update dependent calls and types.
7443
7444 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7445 Change type to hash_table. Update dependent calls and types.
7446
7447 * tree-ssa-phiopt.c (seen_ssa_names):
7448 Change type to hash_table. Update dependent calls and types.
7449
7450 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7451 Change type to hash_table. Update dependent calls and types.
7452
7453 * tree-ssa-uncprop.c (equiv):
7454 Change type to hash_table. Update dependent calls and types.
7455
7456 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR rtl-optimization/57003
7459 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7460 call note_stores with kill_clobbered_value callback again after
7461 killing regs_invalidated_by_call.
7462
7463 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7464
7465 * config/aarch64/aarch64-simd.md
7466 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7467 (aarch64_simd_bsl<mode>): Likewise.
7468 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7469
7470 2013-04-25 Marek Polacek <polacek@redhat.com>
7471
7472 PR tree-optimization/57066
7473 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7474
7475 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7476
7477 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7478
7479 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7480
7481 * config/aarch64/aarch64-builtins.c
7482 (aarch64_fold_builtin): New.
7483 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7484 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7485 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7486 * config/aarch64/arm_neon.h
7487 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7488
7489 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7490 Tejas Belagod <tejas.belagod@arm.com>
7491
7492 * config/aarch64/aarch64-builtins.c
7493 (aarch64_gimple_fold_builtin): New.
7494 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7495 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7496 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7497 (addvv4sf): Update.
7498 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7499
7500 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7501
7502 * config/aarch64/aarch64.md
7503 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7504
7505 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7506
7507 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7508 (*ngcsi_uxtw): New pattern.
7509
7510 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7511 Julian Brown <julian@codesourcery.com>
7512
7513 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7514 (TB_DREG): Add T_V4HF.
7515 (v4hf_UP): New macro.
7516 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7517 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7518 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7519 built-ins.
7520 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7521 (arm_vector_mode_supported_p): Handle V4HF.
7522 (arm_mangle_map): Handle V4HFmode.
7523 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7524 * config/arm/arm_neon_builtins.def: Add entries for
7525 vcvtv4hfv4sf, vcvtv4sfv4hf.
7526 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7527 (neon_vcvtv4hfv4sf): Likewise.
7528 * config/arm/neon-gen.ml: Handle half-precision floating point
7529 features.
7530 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7531 * config/arm/arm_neon.h: Regenerate.
7532 * config/arm/neon.ml (type elts): Add F16.
7533 (type vectype): Add T_float16x4, T_floatHF.
7534 (type vecmode): Add V4HF.
7535 (type features): Add Requires_FP_bit feature.
7536 (elt_width): Handle F16.
7537 (elt_class): Likewise.
7538 (elt_of_class_width): Likewise.
7539 (mode_of_elt): Refactor.
7540 (type_for_elt): Handle F16, fix error messages.
7541 (vectype_size): Handle T_float16x4.
7542 (vcvt_sh): New function.
7543 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7544 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7545 (string_of_mode): Handle V4HF.
7546 * doc/arm-neon-intrinsics.texi: Regenerate.
7547
7548 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7549
7550 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7551 format specifier in 'X' case.
7552
7553 2013-04-25 Alan Modra <amodra@gmail.com>
7554
7555 PR target/57052
7556 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7557 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7558 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7559 Repeat for many other rotate/shift and mask patterns using subregs.
7560 Name lshiftrt insns.
7561 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7562 on WORDS_BIG_ENDIAN.
7563
7564 2013-04-25 Alan Modra <amodra@gmail.com>
7565
7566 * config.gcc: Support little-endian powerpc-linux targets.
7567 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7568 (LINK_OS_LINUX_SPEC): Define.
7569 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7570 Preserve MASK_LITTLE_ENDIAN.
7571 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7572 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7573 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7574 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7575 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7576 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7577 Correct fp word order for little-endian. Don't shift toc entries
7578 smaller than a word for little-endian.
7579 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7580 (bswapdi2 splits): Correct low-part subreg for little-endian.
7581 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7582 low/high where such is correct only for be.
7583 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7584 little-endian for -mcall-aixdesc.
7585
7586 2013-04-25 Alan Modra <amodra@gmail.com>
7587
7588 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7589 replace_equiv_address_nv.
7590
7591 2013-04-25 Alan Modra <amodra@gmail.com>
7592
7593 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7594
7595 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7596
7597 Revert:
7598 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7599 * rtl.h (struct rtx_def): ...
7600
7601 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7602
7603 PR rtl-optimizations/57046
7604 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7605 for multi-reg splits.
7606
7607 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7608
7609 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7610
7611 2013-04-24 Sterling Augustine <saugustine@google.com>
7612
7613 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7614 (comp_dir_string, debug_str_dwo_section): New.
7615 (DEBUG_STR_DWO_SECTION): Rename to ...
7616 (DEBUG_DWO_STR_SECTION): ... this.
7617 (DEBUG_NORM_STR_SECTION): Delete.
7618 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7619 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7620 (find_AT_string): Move most logic to ...
7621 (find_AT_string_in_table): ... here. New.
7622 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7623 add_skeleton_AT_string. Delete logic.
7624 (output_skeleton_debug_sections): Remove call to
7625 add_top_level_skeleton_die_attrs.
7626 (add_comp_dir_attribute): Move logic to comp_dir_string.
7627 (dwarf2out_init): Initialize debug_str_dwo_section.
7628 (output_indirect_string): Call find_string_form.
7629 (output_indirect_strings): Rewrite.
7630 (prune_unused_types): Empty skeleton_debug_str_hash.
7631 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7632 (dwarf2out_finish): Call output_indirect_strings.
7633
7634 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7635
7636 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7637
7638 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7639
7640 * rtl.h (struct rtx_def): Add comment for field jump.
7641 (LRA_SUBREG_P): New macro.
7642 * recog.c (register_operand): Check LRA_SUBREG_P.
7643 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7644 stack frame.
7645 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7646 (lra_final_code_change): Skip subreg change for operators.
7647 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7648 if there are no operand changes.
7649 * lra-constraints.c (curr_insn_set): New.
7650 (match_reload): Set LRA_SUBREG_P.
7651 (emit_spill_move): Ditto.
7652 (check_and_process_move): Use curr_insn_set. Process only single
7653 set insns. Don't initialize sec_mem_p and change_p.
7654 (simplify_operand_subreg): Use LRA_SUBREG_P.
7655 (reg_in_class_p): New function.
7656 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7657 of #ifdef. Add code to remove cycling.
7658 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7659 non-null disp. Reload inner instead of disp when base and index
7660 are null. Try to put lo_sum into register.
7661 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7662 (check_and_process_move): Move code for move cost check to
7663 simple_move_p. Remove equiv_substitution.
7664 (simple_move_p): New function.
7665 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7666 curr_insn_set. Call check_and_process_move only for single set
7667 insns. Use the new function. Move call of check_and_process_move
7668 after operand equiv substitution and address process.
7669
7670 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7671
7672 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7673 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7674 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7675
7676 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7677
7678 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7679
7680 2013-04-24 Marek Polacek <polacek@redhat.com>
7681
7682 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7683 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7684 (select_loops_exit_conditions): Likewise.
7685 (number_of_iterations_for_all_loops): Likewise.
7686 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7687 (scev_analysis): Likewise.
7688
7689 2013-04-02 Catherine Moore <clm@codesourcery.com>
7690 Chao-ying Fu <fu@mips.com>
7691
7692 * config/mips/micromips.md (jraddiusp): New pattern.
7693 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7694 instruction if possible.
7695
7696 2013-04-24 Alan Modra <amodra@gmail.com>
7697
7698 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7699
7700 2013-04-24 Julian Brown <julian@codesourcery.com>
7701 Chung-Lin Tang <cltang@codesourcery.com>
7702
7703 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7704 dependency behavior in enumeration type DIE generation. Add TODO note
7705 to comments about future DW_FORM_sdata/udata re-work of related code.
7706
7707 2013-04-23 Lawrence Crowl <crowl@google.com>
7708
7709 * Makefile.in: Update as needed below.
7710
7711 * hash-table.h (class hash_table):
7712 Correct many methods with parameter types compare_type to the correct
7713 value_type. (Correct code was unlikely to notice the change.)
7714 (hash_table::elements_with_deleted) New.
7715 (class hashtable::iterator): New.
7716 (hashtable::begin()): New.
7717 (hashtable::end()): New.
7718 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7719
7720 * statistics.c (statistics_hashes):
7721 Change type to hash_table. Update dependent calls and types.
7722
7723 * tree-into-ssa.c (var_infos):
7724 Change type to hash_table. Update dependent calls and types.
7725
7726 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7727 Change type to hash_table. Update dependent calls and types.
7728
7729 * tree-ssa-loop-im.c (struct mem_ref.refs):
7730 Change type to hash_table. Update dependent calls and types.
7731
7732 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7733 Change type to hash_table. Update dependent calls and types.
7734
7735 * tree-ssa-sccvn.c (vn_tables_s::nary):
7736 Change type to hash_table. Update dependent calls and types.
7737 (vn_tables_s::phis): Likewise.
7738 (vn_tables_s::references): Likewise.
7739
7740 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7741 (vn_reference_eq): Update parameter and return types.
7742
7743 * tree-ssa-structalias.c (pointer_equiv_class_table):
7744 Change type to hash_table. Update dependent calls and types.
7745 (location_equiv_class_table): Likewise.
7746
7747 * tree-vect-data-refs.c: Consequential changes for making
7748 peeling a hash_table.
7749
7750 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7751 (destroy_loop_vec_info): Dependent hash_table update.
7752
7753 * tree-vectorizer.h (peeling_htab):
7754 Change type to hash_table. Update dependent calls and types.
7755
7756 2013-04-23 Shiva Chen <shiva0217@gmail.com>
7757
7758 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7759 to check the register content is equal or not.
7760 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7761 to assign register content record.
7762 * lra-eliminations.c (update_reg_eliminate): Use
7763 lra_update_reg_val_offset to update register content offset.
7764 * lra-int.h (struct lra_reg): Add offset member.
7765 (lra_reg_val_equal_p): New static inline function.
7766 (lra_update_reg_val_offset): New static inline function.
7767 (lra_assign_reg_val): New static inline function.
7768 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7769 to assign register content record.
7770 (initialize_lra_reg_info_element): Initial offset to zero.
7771
7772 2013-04-23 Catherine Moore <clm@codesourcery.com>
7773
7774 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7775 operands. Record compression.
7776
7777 2013-04-23 Xinliang David Li <davidxl@google.com>
7778
7779 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7780
7781 2013-04-23 Richard Biener <rguenther@suse.de>
7782
7783 PR middle-end/57036
7784 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7785 parameter, only add abnormal goto edges from the copied body
7786 if the call could perform abnormal gotos.
7787 (copy_cfg_body): Adjust.
7788
7789 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7790
7791 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7792
7793 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7794
7795 * coretypes.h (gimple_stmt_iterator): Add struct to make
7796 compatible with C.
7797
7798 2013-04-23 Richard Biener <rguenther@suse.de>
7799
7800 PR tree-optimization/57026
7801 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7802 from SSA names occuring in abnormal PHI nodes.
7803
7804 2013-04-22 Andi Kleen <ak@linux.intel.com>
7805
7806 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7807
7808 2013-04-22 Andi Kleen <ak@linux.intel.com>
7809
7810 * lto/lto.c (print_lto_report_1): Declare early.
7811 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7812
7813 2013-04-22 Andi Kleen <ak@linux.intel.com>
7814
7815 * common.opt (-flto-report-wpa): Add.
7816 * doc/invoke.texi (-flto-report-wpa): Add.
7817 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7818 (lto_main): dito.
7819
7820 2013-04-22 Xinliang David Li <davidxl@google.com>
7821
7822 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7823 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7824 * Makefile.in: New dependency
7825
7826 David Daney <ddaney.cavm@gmail.com>
7827
7828 * configure.ac (gcc_cv_as_micromips_support): Use the
7829 --fatal-warnings option.
7830 * configure: Regenerate.
7831
7832 2013-04-22 Marek Polacek <polacek@redhat.com>
7833
7834 PR sanitizer/56990
7835 * tsan.c (instrument_expr): Don't instrument expression
7836 in case its size is zero.
7837
7838 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
7839
7840 PR target/57032
7841 Revert:
7842 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7843
7844 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7845
7846 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7847
7848 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7849 (gimple_stmt_iterator): New typedef.
7850 * gimple.h (gimple_stmt_iterator): Rename to...
7851 (gimple_stmt_iterator_d): ... This.
7852 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7853 trees be valid for GIMPLE and GENERIC.
7854 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7855 * gimple-fold.c (gimple_fold_call): Call target hook
7856 gimple_fold_builtin.
7857 * hooks.c (hook_bool_gsiptr_false): New.
7858 * hooks.h (hook_bool_gsiptr_false): New.
7859 * target.def (fold_stmt): New.
7860 * doc/tm.texi: Regenerate.
7861
7862 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7863
7864 PR target/57018
7865 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7866 a set sp if no stack realignment.
7867
7868 2013-04-22 Nick Clifton <nickc@redhat.com>
7869
7870 * config.gcc (tilegx-linux): Extend extra_objs rather than
7871 overwriting it.
7872 (tilepro-linux): Likewise.
7873
7874 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7875
7876 * config/aarch64/aarch64-builtins.c
7877 (CF): Remove.
7878 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7879 (VAR<1-12>): Add MAP parameter.
7880 (BUILTIN_*): Likewise.
7881 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7882 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7883 (aarch64_ushl_n<mode>): Likewise.
7884 (aarch64_sshr_n<mode>): Likewise.
7885 (aarch64_ushr_n<mode>): Likewise.
7886 (aarch64_<maxmin><mode>): Likewise.
7887 (aarch64_sqrt<mode>): Likewise.
7888 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7889 (vshr<q>_n_*): Likewise.
7890
7891 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7892
7893 * config/aarch64/aarch64-builtins.c
7894 (aarch64_simd_builtin_type_mode): Handle SF types.
7895 (sf_UP): Define.
7896 (BUILTIN_GPF): Define.
7897 (aarch64_init_simd_builtins): Handle SF types.
7898 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7899 (frecps): Likewise.
7900 (frecpx): Likewise.
7901 * config/aarch64/aarch64-simd.md
7902 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7903 (aarch64_frecpe<mode>): New.
7904 (aarch64_frecps<mode>): Likewise.
7905 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7906 (v8type): Add frecp<esx>.
7907 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7908 (aarch64_frecps<mode>): Likewise.
7909 * config/aarch64/iterators.md (FRECP): New.
7910 (frecp_suffix): Likewise.
7911 * config/aarch64/arm_neon.h
7912 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7913
7914 2013-04-22 Christian Bruel <christian.bruel@st.com>
7915
7916 PR target/56995
7917 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7918 (REG_CLASS_NAMES): Idem.
7919 (REG_CLASS_CONTENTS): Idem.
7920 (REGCLASS_HAS_FP_REG): Idem.
7921 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7922 (sh_conditional_register_usage): Idem.
7923
7924 2013-04-21 Jeff Law <law@redhat.com>
7925
7926 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7927 (ssa_forward_propagate_and_combine): Use it.
7928
7929 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7930
7931 * lra.c: Update the flow chart diagram.
7932
7933 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7934
7935 PR rtl-optimization/56847
7936 * lra-constraints.c (process_alt_operands): Discourage alternative
7937 with non-matche doffsettable memory constraint fro memory with
7938 known offset.
7939
7940 2013-04-19 Richard Biener <rguenther@suse.de>
7941
7942 PR tree-optimization/56982
7943 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7944 function.
7945 * gimplify.c (gimplify_call_expr): Notice special calls.
7946 (gimplify_modify_expr): Likewise.
7947 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7948 abnormal control flow receivers.
7949 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7950 in the same way as cfun->has_nonlocal_labels.
7951 (gimple_purge_dead_abnormal_call_edges): Likewise.
7952 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7953 receivers start a basic-block.
7954
7955 2013-04-19 Richard Biener <rguenther@suse.de>
7956
7957 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7958 member ...
7959 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
7960 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7961 (SLP_TREE_LOAD_PERMUTATION): Add.
7962 (vect_transform_slp_perm_load): Adjust prototype.
7963 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7964 (vect_free_slp_instance): Likewise.
7965 (vect_create_new_slp_node): Likewise.
7966 (vect_supported_slp_permutation_p): Remove.
7967 (vect_slp_rearrange_stmts): Adjust.
7968 (vect_supported_load_permutation_p): Likewise. Inline
7969 vect_supported_slp_permutation_p here.
7970 (vect_analyze_slp_instance): Compute load permutations per
7971 slp node instead of per instance.
7972 (vect_get_slp_defs): Adjust.
7973 (vect_transform_slp_perm_load): Likewise.
7974 (vect_schedule_slp_instance): Remove redundant code.
7975 (vect_schedule_slp): Remove hack for PR56270, add it ...
7976 * tree-vect-stmts.c (vectorizable_load): ... here, do not
7977 CSE loads for SLP. Adjust.
7978
7979 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7980
7981 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7982 spelling in two comments.
7983
7984 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7985
7986 PR target/56797
7987 * config/arm/arm.c (load_multiple_sequence): Require SP
7988 as base register for loads if SP is in the register list.
7989
7990 2013-04-19 Martin Jambor <mjambor@suse.cz>
7991
7992 PR tree-optimization/56718
7993 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7994 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7995 and made public. Adjusted all callers.
7996 (ipa_intraprocedural_devirtualization): New function.
7997 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7998 (ipa_intraprocedural_devirtualization): Likewise.
7999 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8000
8001 2013-04-19 Richard Biener <rguenther@suse.de>
8002
8003 PR tree-optimization/57000
8004 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8005
8006 2013-04-19 Terry Guo <terry.guo@arm.com>
8007
8008 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8009 Replace with ...
8010 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8011 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8012 (cortex_m4_fmacs): Use new reservations.
8013 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8014
8015 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8016
8017 PR rtl-optimization/56999
8018 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8019 related code.
8020 (lra_coalesce): Remove split_origin_bitmap and related code.
8021 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8022 ranges if necessary.
8023
8024 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
8025
8026 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8027 New array.
8028 (ix86_expand_call): Remove clobbered_registers array and use
8029 x86_64_ms_sysv_extra_clobbered_registers instead.
8030 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8031 Declare here.
8032 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8033 predicate.
8034 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8035 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8036 (*call_value_rex64_ms_sysv): Ditto.
8037
8038 2013-04-18 Cary Coutant <ccoutant@google.com>
8039
8040 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8041 parent instead of die_mark.
8042
8043 2013-04-18 Diego Novillo <dnovillo@google.com>
8044
8045 * gimple.c (create_gimple_tmp): New.
8046 (get_expr_type): New.
8047 (build_assign): New.
8048 (build_type_cast): New.
8049 * gimple.h (enum ssa_mode): Define.
8050 (gimple_seq_set_location): New.
8051 * asan.c (build_check_stmt): Change some gimple_build_* calls
8052 to use build_assign and build_type_cast.
8053
8054 2013-04-18 Richard Biener <rguenther@suse.de>
8055
8056 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8057 handle negative step. Remove redundant checks.
8058 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8059 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8060 for negative step and grouped loads fail to vectorize.
8061
8062 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8063
8064 * emit-rtl.c (reset_insn_used_flags): New function.
8065 (reset_all_used_flags): Use it.
8066 (verify_insn_sharing): New function.
8067 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8068
8069 2013-04-18 Jakub Jelinek <jakub@redhat.com>
8070
8071 PR tree-optimization/56984
8072 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8073 and (x >> M) >= N don't register any assertion if N << M is the
8074 minimum value.
8075
8076 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8077
8078 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8079 do not delete_insn insns that have not yet been emitted, only
8080 unlink them with remove_insn.
8081 * df-scan.c (df_insn_delete): Revert r197492.
8082
8083 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8084
8085 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8086 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8087
8088 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8089
8090 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8091 define_insn_and_split.
8092 (and_scc,ior_scc,negscc): Likewise.
8093 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8094
8095 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8096
8097 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8098 can benefit from using a sequence of LDRD instructions in epilogue
8099 instead of a single LDM instruction.
8100
8101 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8102
8103 PR 45688
8104 * doc/extend.texi: Fix typo.
8105
8106 2013-04-17 Richard Biener <rguenther@suse.de>
8107
8108 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8109 (vect_build_slp_tree): ... here.
8110 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8111 match. Remove special-casing of mismatched complex loads.
8112 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8113 re-try the match with swapped commutative operands.
8114 (vect_supported_load_permutation_p): Remove special-casing of
8115 mismatched complex loads.
8116 (vect_analyze_slp_instance): Adjust.
8117
8118 2013-04-17 Richard Biener <rguenther@suse.de>
8119
8120 PR rtl-optimization/56921
8121 * cfgloop.h (struct loop): Add simple_loop_desc member.
8122 (struct niter_desc): Mark with GTY(()).
8123 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8124 * loop-iv.c (get_simple_loop_desc): Likewise.
8125 (free_simple_loop_desc): Likewise.
8126
8127 Revert
8128 2013-04-16 Richard Biener <rguenther@suse.de>
8129
8130 PR rtl-optimization/56921
8131 * loop-init.c (pass_rtl_move_loop_invariants): Add
8132 TODO_do_not_ggc_collect to todo_flags_finish.
8133 (pass_rtl_unswitch): Same.
8134 (pass_rtl_unroll_and_peel_loops): Same.
8135 (pass_rtl_doloop): Same.
8136
8137 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8138
8139 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8140 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8141 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8142 references.
8143 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8144 * tree-streamer.c (record_common_node): Adjust reference in comment.
8145
8146 2013-04-17 Terry Guo <terry.guo@arm.com>
8147
8148 * config/arm/cortex-m4.md: Add a new bypass.
8149
8150 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8151
8152 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8153 New pattern.
8154 (*subs_<optab><mode>_multp2): New pattern.
8155 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8156 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8157
8158 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8159
8160 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8161 (*subs_mul_imm_<mode>): New pattern.
8162
8163 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
8164
8165 PR target/56948
8166 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8167 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8168 (vsx_movti_32bit): Change j->wa to O->wa.
8169
8170 2013-04-16 Richard Biener <rguenther@suse.de>
8171
8172 PR rtl-optimization/56921
8173 * loop-init.c (pass_rtl_move_loop_invariants): Add
8174 TODO_do_not_ggc_collect to todo_flags_finish.
8175 (pass_rtl_unswitch): Same.
8176 (pass_rtl_unroll_and_peel_loops): Same.
8177 (pass_rtl_doloop): Same.
8178
8179 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
8180
8181 * config/arm/arm.c (emit_multi_reg_push): New declaration
8182 for an existing function.
8183 (arm_emit_strd_push): New function.
8184 (arm_expand_prologue): Used here.
8185 (arm_emit_ldrd_pop): New function.
8186 (arm_expand_epilogue): Used here.
8187 (arm_get_frame_offsets): Update condition.
8188 (arm_emit_multi_reg_pop): Add a special case for load of a single
8189 register with writeback.
8190
8191 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
8192
8193 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8194 description.
8195
8196 2013-04-16 Richard Biener <rguenther@suse.de>
8197
8198 PR tree-optimization/56756
8199 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8200 (first_mem_ref_loc): New.
8201 (execute_sm): Place the load temporarily before a previous
8202 access instead of in the latch edge to ensure its SSA dependencies
8203 are defined at points dominating the load.
8204
8205 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8206
8207 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8208 correct fix by moving header and footer insn to the footer of
8209 the merged basic block. Clear BB_END of the merged-away block.
8210
8211 PR middle-end/43631
8212 * emit-rtl.c (make_note_raw): New function.
8213 (link_insn_into_chain): New static inline function.
8214 (add_insn): Use it.
8215 (add_insn_before, add_insn_after): Factor insn chain linking code...
8216 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8217 using link_insn_into_chain.
8218 (note_outside_basic_block_p): New helper function for emit_note_after
8219 and emit_note_before.
8220 (emit_note_after): Use nobb variant of add_insn_after if the note
8221 should not be contained in a basic block.
8222 (emit_note_before): Use nobb variant of add_insn_before if the note
8223 should not be contained in a basic block.
8224 (emit_note_copy): Use make_note_raw.
8225 (emit_note): Likewise.
8226 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8227 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8228 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8229 the moved barrier the tail of the basic block it follows.
8230 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8231
8232 2013-04-15 Jakub Jelinek <jakub@redhat.com>
8233
8234 PR tree-optimization/56962
8235 * gimple-ssa-strength-reduction.c (record_increment): Only set
8236 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8237 either rhs1 or rhs2 is equal to c->base_expr.
8238
8239 2013-04-15 Richard Biener <rguenther@suse.de>
8240
8241 PR tree-optimization/56933
8242 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8243 member.
8244 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8245 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8246 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8247 dependence check ...
8248 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8249 ... here.
8250 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8251 GROUP_READ_WRITE_DEPENDENCE.
8252
8253 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8254
8255 * emit-rtl.c (reset_all_used_flags): New function.
8256 (verify_rtl_sharing): Call reset_all_used_flags before and after
8257 performing the checks.
8258
8259 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8260
8261 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8262 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8263 * config/arm/constraints.md (De): New constraint.
8264 * config/arm/neon.md (anddi3_neon): Delete.
8265 (neon_vand<mode>): Expand to standard anddi3 pattern.
8266 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8267 Move earlier in the file.
8268 (neon_inv_logic_op2): Likewise.
8269 (arm_anddi_operand_neon): New predicate.
8270
8271 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8272
8273 * configure.ac (gcc_cv_ld_as_needed): Set
8274 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8275 Use -z ignore, -z record on *-*-solaris2*.
8276 (HAVE_LD_AS_NEEDED): Update comment.
8277 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8278 * configure: Regenerate.
8279 * config.in: Regenerate.
8280 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8281 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8282 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8283 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8284 equivalents. Fix markup.
8285 * doc/tm.texi: Regenerate.
8286
8287 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8288
8289 * config/i386/i386.opt: New option mstack-protector-guard=.
8290 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8291 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8292 TARGET_SSP_TLS_GUARD.
8293 * config/i386/i386.c (ix86_option_override_internal): Set
8294 ix86_stack_protector_guard.
8295 * config/i386/i386.md (stack_protect_set): Enable for
8296 TARGET_SSP_TLS_GUARD only.
8297 (stack_protect_set_<mode>): Ditto.
8298 (stack_protect_test): Ditto.
8299 (stack_protect_test_<mode>): Ditto.
8300 * doc/invoke.texi (i386 Option): Document.
8301
8302 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8303
8304 PR target/56890
8305 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8306 (S_MODES): Set H_MODE bit.
8307 (SF_MODES): Set only S_MODE and SF_MODE bits.
8308 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8309 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8310 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8311 <MODE_FLOAT>: Likewise.
8312
8313 2013-04-15 Joey Ye <joey.ye@arm.com>
8314
8315 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8316
8317 2013-04-15 Joey Ye <joey.ye@arm.com>
8318
8319 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8320 for real far jump.
8321 (thumb_far_jump_used_p): Count instruction size and set
8322 far_jump_used.
8323
8324 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8325
8326 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8327 * resource.c (mark_target_live_regs): Reformat conditional block.
8328
8329 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8330
8331 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8332 notes, they are emitted only just before final.
8333 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8334
8335 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8336
8337 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8338 * cfgrtl.c (delete_insn): Call it here instead.
8339 * lra-spills.c (lra_final_code_change): Use delete_insn.
8340 * haifa-sched.c (sched_remove_insn): Likewise.
8341 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8342 returning to the nop pool.
8343 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8344 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8345
8346 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8347
8348 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8349 * doc/tm.texi: Regenerated.
8350
8351 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8352
8353 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8354 QImode checks.
8355
8356 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8357
8358 * df-core.c (df_find_def): Compare register numbers.
8359 (df_find_use): Likewise.
8360
8361 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8362
8363 PR target/56903
8364 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8365 lra_in_progress for return.
8366
8367 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8368
8369 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8370 define_insn into define_insn_and_split and emit movsicc patterns.
8371
8372 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8373
8374 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8375
8376 2013-04-12 Richard Biener <rguenther@suse.de>
8377
8378 * tree-pass.h (TODO_do_not_ggc_collect): New.
8379 * passes.c (execute_one_ipa_transform_pass): Honor
8380 TODO_do_not_ggc_collect.
8381 (execute_one_pass): Likewise.
8382
8383 Revert
8384 2013-04-10 Richard Biener <rguenther@suse.de>
8385
8386 * passes.c (init_optimization_passes): Remove reload pass.
8387 * ira.c (do_reload): Merge into ...
8388 (ira): ... this.
8389 (rest_of_handle_reload): Remove.
8390 (pass_reload): Likewise.
8391 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8392 of reload for vzeroupper pass placement.
8393
8394 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8395
8396 PR tree-optimization/56918
8397 PR tree-optimization/56920
8398 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8399 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8400 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8401 use wide_mul_with_sign method.
8402
8403 2013-04-12 Richard Biener <rguenther@suse.de>
8404
8405 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8406 not be considered a gimple constant.
8407
8408 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8409
8410 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8411 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8412 operations.
8413
8414 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8415 Jakub Jelinek <jakub@redhat.com>
8416
8417 * opts.c: Include diagnostic-color.h.
8418 (common_handle_option): Handle OPT_fdiagnostics_color_.
8419 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8420 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8421 (diagnostic-color.o): New.
8422 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8423 (diagnostic_color_rule): New enum.
8424 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8425 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8426 the location string.
8427 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8428 either NULL, or color kind.
8429 * diagnostic-color.c: New file.
8430 * diagnostic-color.h: New file.
8431 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8432 arguments.
8433 * doc/invoke.texi (-fdiagnostics-color): Document.
8434 * pretty-print.h (pp_show_color): Define.
8435 (struct pretty_print_info): Add show_color field.
8436 * diagnostic.c: Include diagnostic-color.h.
8437 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8438 macros. Colorize error:, warning: etc. strings and also the location
8439 string.
8440 (diagnostic_show_locus): Colorize the caret line.
8441 * pretty-print.c: Include diagnostic-color.h.
8442 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8443 inside of %< %> quotes or quoted through q format modifier.
8444
8445 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8446
8447 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8448
8449 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8450
8451 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8452 code in CC_NZ mode.
8453 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8454 pattern.
8455
8456 2013-04-11 Marek Polacek <polacek@redhat.com>
8457
8458 PR tree-optimization/48184
8459 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8460
8461 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8462
8463 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8464 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8465 (skip_simple_arithmetic): Tidy up.
8466 * tree.h (skip_simple_constant_arithmetic): Declare.
8467
8468 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8469
8470 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8471
8472 2013-04-11 Richard Biener <rguenther@suse.de>
8473
8474 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8475 generate vector constants.
8476
8477 2013-04-11 Richard Biener <rguenther@suse.de>
8478
8479 PR tree-optimization/56878
8480 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8481 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8482 New function.
8483 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8484 Prefer to align the DR with the most invariant base address.
8485
8486 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8487
8488 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8489 comment.
8490
8491 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8492
8493 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8494 floating-point vector comparisons against 0.
8495
8496 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8497
8498 PR tree-optimization/56899
8499 * fold-const.c (extract_muldiv_1): Apply distributive law
8500 only if TYPE_OVERFLOW_WRAPS (ctype).
8501
8502 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8503
8504 PR target/56124
8505 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8506 loading has side effect.
8507
8508 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8509
8510 * config/sparc/sparc.c: Include tree-pass.h.
8511 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8512 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8513 head of file. Change return type. Split off gate function.
8514 (sparc_gate_work_around_errata): New function.
8515 (pass_work_around_errata): New pass definition.
8516 (insert_pass_work_around_errata) New pass insert definition to
8517 insert pass_work_around_errata just after delayed-branch scheduling.
8518 (sparc_option_override): Insert the pass.
8519 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8520
8521 2013-04-10 David S. Miller <davem@davemloft.net>
8522
8523 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8524 or -mcpu=hypersparc.
8525
8526 * target.def (cstore_mode): New hook.
8527 * target.h: Include insn-codes.h
8528 * targhooks.c: Likewise.
8529 (default_cstore_mode): New function.
8530 * targhooks.h: Declare it.
8531 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8532 * doc/tm.texi: Rebuild.
8533 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8534 target hook, rather than inspecting the insn_data.
8535 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8536 (TARGET_CSTORE_MODE): Redefine.
8537 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8538 result patterns.
8539 * config/sparc/predicates.md (cstore_result_operand): New special
8540 predicate.
8541 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8542 Use it for operand 0.
8543 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8544 (*snesi_special): Likewise.
8545 (*snesi_zero): Likewise.
8546 (*seqsi_zero): Likewise.
8547 (*sltu_insn): Likewise.
8548 (*sgeu_insn): Likewise.
8549 (*seqdi_special): Make operand 0 and comparison operation be of
8550 DImode.
8551 (*snedi_special): Likewise.
8552 (*snedi_special_vis3): Likewise.
8553 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8554 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8555 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8556 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8557 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8558 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8559 (*sltu_extend_sp64): Likewise.
8560 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8561 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8562 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8563 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8564 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8565
8566 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8567
8568 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8569 (aarch64_start_file): Use the new function.
8570
8571 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8572 Jason Merrill <jason@redhat.com>
8573
8574 * common.opt: Add -gdwarf.
8575 * opts.c (common_handle_option): Handle it.
8576 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8577
8578 2013-04-10 Richard Biener <rguenther@suse.de>
8579
8580 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8581 (execute_one_ipa_transform_pass): But unconditionally here.
8582 (execute_one_pass): And here.
8583 (init_optimization_passes): Remove reload pass.
8584 * tree-pass.h (TODO_ggc_collect): Remove.
8585 (pass_reload): Likewise.
8586 * ira.c (do_reload): Merge into ...
8587 (ira): ... this.
8588 (rest_of_handle_reload): Remove.
8589 (pass_reload): Likewise.
8590 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8591 of reload for vzeroupper pass placement.
8592 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8593 and todo_flags_finish of all passes.
8594
8595 2013-04-10 Richard Biener <rguenther@suse.de>
8596
8597 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8598 first_const_oprnd field, rename first_def_type to first_op_type.
8599 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8600 (vect_get_and_check_slp_defs): Always use the type of the
8601 operand. Allow mixed vect_external_def, vect_constant_def types.
8602 (vect_get_constant_vectors): Handle mixed vect_external_def,
8603 vect_constant_def types.
8604
8605 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8606
8607 PR tree-optimization/55524
8608 * tree-ssa-math-opts.c
8609 (convert_mult_to_fma): Don't use an fms construct
8610 when we don't have an fms operation, but fnma, and it looks
8611 likely that we'll be able to use the latter.
8612
8613 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8614
8615 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8616 function.
8617 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8618 inline fail caused by overwritable functions.
8619
8620 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8621
8622 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8623 unnecessary bits in the constant power of two case.
8624
8625 2013-04-10 Richard Biener <rguenther@suse.de>
8626
8627 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8628 broken code swapping operands.
8629 (vect_build_slp_tree): Do not compute load permutations here.
8630 (vect_analyze_slp_instance): Compute load permutations here,
8631 after building the SLP tree.
8632
8633 2013-04-09 Christian Bruel <christian.bruel@st.com>
8634
8635 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8636 of next/prev_real_insn.
8637
8638 2013-04-09 Jan Hubicka <jh@suse.cz>
8639
8640 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8641 Drop aliased parameter.
8642 (function_and_variable_visibility): Do not handle alias pairs.
8643 * cgraph.c (varpool_externally_visible_p): Update prototype.
8644 * varpool.c (varpool_add_new_variable): Update.
8645
8646 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8647
8648 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8649
8650 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8651
8652 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8653
8654 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8655
8656 2013-04-09 Marek Polacek <polacek@redhat.com>
8657
8658 PR tree-optimization/48762
8659 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8660
8661 2013-04-09 Richard Biener <rguenther@suse.de>
8662
8663 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8664 dealing with cost.
8665 (vect_build_slp_tree): Likewise.
8666 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8667 calculating the cost of a SLP instance.
8668 (vect_analyze_slp_instance): Use it from here, after building
8669 the SLP tree.
8670
8671 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8672
8673 PR middle-end/56883
8674 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8675 expand_omp_for_static_chunk): Use simple_p = true in
8676 force_gimple_operand_gsi calls when assigning to addressable decls.
8677
8678 2013-04-09 Jeff Law <law@redhat.com>
8679
8680 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8681 when the boolean was created by converting a wider object which
8682 had a boolean range.
8683
8684 2013-04-09 Richard Biener <rguenther@suse.de>
8685
8686 * tree-vectorizer.h (slp_void_p): Remove.
8687 (slp_tree): Typedef before _slp_tree declaration.
8688 (struct _slp_tree): Use a vector of slp_tree as children.
8689 (vect_get_place_in_interleaving_chain): Remove.
8690 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8691 Move ...
8692 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8693 and make static.
8694 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8695 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8696 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8697 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8698 Use slp_node instead of slp_void_p and adjust.
8699
8700 2013-04-09 Richard Biener <rguenther@suse.de>
8701
8702 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8703 work that is not necessary.
8704
8705 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8706
8707 PR tree-optimization/56854
8708 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8709 forward into clobber stmts if it would change MEM_REF lhs into
8710 non-MEM_REF.
8711
8712 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8713
8714 * tree.c (type_hash_lookup, type_hash_add): Make static.
8715 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8716
8717 2013-04-09 Richard Biener <rguenther@suse.de>
8718
8719 * tree.h (unsave_expr_now): Remove.
8720 * tree-inline.c (mark_local_for_remap_r): Remove.
8721 (unsave_expr_1): Likewise.
8722 (unsave_r): Likewise.
8723 (unsave_expr_now): Likewise.
8724 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8725 (propagate_tree_value): Likewise.
8726
8727 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8728
8729 * doc/rtl.texi (sequence): Rewrite documentation to match the
8730 current use of SEQUENCE rtl objects.
8731 * rtl.def (SEQUENCE): Likewise.
8732
8733 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8734 Update documentation.
8735 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8736 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8737
8738 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8739
8740 2013-04-08 Teresa Johnson <tejohnson@google.com>
8741
8742 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8743 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8744 methods.
8745 (estimate_edge_size_and_time): Add comment to suggest using rounding
8746 methods.
8747 (estimate_node_size_and_time): Ditto.
8748 (remap_edge_change_prob): Use helper rounding divide methods.
8749 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8750 (gimple_mod_pow2_value_transform): Ditto.
8751 (gimple_mod_subtract_transform): Ditto.
8752 (gimple_ic_transform): Ditto.
8753 (gimple_stringops_transform): Ditto.
8754 * stmt.c (conditional_probability): Ditto.
8755 (emit_case_dispatch_table): Ditto.
8756 * lto-cgraph.c (merge_profile_summaries): Ditto.
8757 * tree-optimize.c (execute_fixup_cfg): Ditto.
8758 * cfgcleanup.c (try_forward_edges): Ditto.
8759 * cfgloopmanip.c (scale_loop_profile): Ditto.
8760 (loopify): Ditto.
8761 (duplicate_loop_to_header_edge): Ditto.
8762 (lv_adjust_loop_entry_edge): Ditto.
8763 * tree-vect-loop.c (vect_transform_loop): Ditto.
8764 * profile.c (compute_branch_probabilities): Ditto.
8765 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8766 * lto-streamer-in.c (input_cfg): Ditto.
8767 * gimple-streamer-in.c (input_bb): Ditto.
8768 * ipa-cp.c (update_profiling_info): Ditto.
8769 (update_specialized_profile): Ditto.
8770 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8771 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8772 rounding methods.
8773 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8774 (compute_trg_info): Ditto.
8775 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8776 (purge_dead_edges): Ditto.
8777 * loop-unswitch.c (unswitch_loop): Ditto.
8778 * cgraphclones.c (cgraph_clone_edge): Ditto.
8779 (cgraph_clone_node): Ditto.
8780 * tree-inline.c (copy_bb): Ditto.
8781 (copy_edges_for_bb): Ditto.
8782 (initialize_cfun): Ditto.
8783 (copy_cfg_body): Ditto.
8784 (expand_call_inline): Ditto.
8785
8786 2013-04-08 Kai Tietz <ktietz@redhat.com>
8787
8788 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8789 TARGET_CYGWIN64 by TARGET_64BIT.
8790
8791 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8792
8793 * config/epiphany/epiphany.md (GPR_1): New constant.
8794 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8795 * config/epiphany/epiphany.c (gen_compare_reg):
8796 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8797 is already in place.
8798 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8799 Don't require being called during rtl expansion; If y operlaps r0,
8800 return 0.
8801 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8802 (epiphany_expand_epilogue): Likewise.
8803
8804 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8805 Don't use CC_FPmode for ORDERED / UNORDERED.
8806 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8807
8808 * config/epiphany/constraints.md (CnL): New constraint.
8809 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8810 * config/epiphany/predicates.md (add_operand): Allow 1024.
8811
8812 * config/epiphany/epiphany.md (logical_op): New code iterator.
8813 (op_mnc): New code attribute.
8814 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8815 (mov_f+1, mov_f+2): New peephole2 patterns.
8816
8817 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8818 (cstoresi4): Also allow re-use of zero result when doing a NE
8819 comparison to a non-zero operand.
8820 Use (clobber (scratch)) for first insn if the gpr output is not needed.
8821
8822 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8823 Use gen_addsi3_i / gen_subsi3_i.
8824
8825 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8826
8827 PR c++/34949
8828 PR c++/50243
8829 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8830 contain anything but clobbers, at most one __builtin_stack_restore,
8831 optionally debug stmts and final resx, and if it has at least one
8832 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8833 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8834 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8835 which isn't defaut definition, remove them.
8836 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8837 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8838 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8839 with MEM_REF LHS with SSA_NAME address.
8840
8841 2013-04-08 Jeff Law <law@redhat.com>
8842
8843 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8844
8845 2013-04-08 Richard Biener <rguenther@suse.de>
8846
8847 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8848 extra newline.
8849 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8850 determined vector type.
8851 (vect_analyze_data_refs): Likewise.
8852 (vect_get_new_vect_var): Adjust.
8853 (vect_create_destination_var): Preserve SSA name versions.
8854 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8855 not dump anything here.
8856
8857 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8858
8859 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8860 Add member lr_slot_known.
8861 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8862 if necessary.
8863 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8864 Remove code that sets lr_slot_offset according to what a previous
8865 version of epiphany_emit_save_restore used to do.
8866 (epiphany_emit_save_restore): When doing an lr save or restore,
8867 set/verify lr_slot_known and lr_slot_offset.
8868
8869 2013-04-08 Xinyu Qi <xyqi@marvell.com>
8870
8871 PR target/54338
8872 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
8873 in ALL_REGS.
8874
8875 2013-04-08 Richard Biener <rguenther@suse.de>
8876
8877 * alias.c (find_base_term): Fix thinko in previous change.
8878
8879 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8880
8881 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8882 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8883 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8884 if possible to compute val.
8885 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8886 For QImode integers don't require anything about precision. Use
8887 const_with_all_bytes_same to find out if the constant doesn't have
8888 repeated bytes in it.
8889
8890 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8891
8892 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8893 within mode size.
8894
8895 2013-04-08 Marek Polacek <polacek@redhat.com>
8896
8897 PR rtl-optimization/48182
8898 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8899 value to 1.
8900
8901 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8902
8903 PR target/55487
8904 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8905 nuses, make sure we have a label.
8906
8907 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8908
8909 PR target/56843
8910 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8911 (rs6000_emit_swdiv_low_precision): Remove.
8912 (rs6000_emit_swdiv): Rewrite to handle between one and four
8913 iterations of Newton-Raphson generally; modify required number of
8914 iterations for some cases.
8915 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8916
8917 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8918
8919 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8920 set-but-unused variable.
8921
8922 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8923 basic blocks of released function bodies garbage-collectable.
8924
8925 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8926 (struct rtl_opt_pass): Add TODO_df_finish.
8927
8928 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8929
8930 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8931
8932 * config/arm/constraints.md (q): New constraint.
8933 * config/arm/ldrdstrd.md: New file.
8934 * config/arm/arm.md (ldrdstrd.md) New include.
8935 (arm_movdi): Use "q" instead of "r" constraint
8936 for double-word memory access.
8937 (movdf_soft_insn): Likewise.
8938 * config/arm/vfp.md (movdi_vfp): Likewise.
8939 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
8940 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
8941 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8942 (mem_ok_for_ldrd_strd): Likewise.
8943 (output_move_double): Update assertion.
8944
8945 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8946
8947 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8948
8949 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8950
8951 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8952 define_insn_and_split.
8953 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8954
8955 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8956
8957 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8958 define_insn_and_split.
8959 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
8960 (shiftsi3_compare): New pattern.
8961 (rrx): New pattern.
8962 * config/arm/unspecs.md (UNSPEC_RRX): New.
8963
8964 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8965
8966 * config/arm/arm.md (negdi_extendsidi): New pattern.
8967 (negdi_zero_extendsidi): Likewise.
8968
8969 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8970
8971 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8972 define_insn_and_split.
8973 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8974 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8975
8976 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8977
8978 * config/arm/arm.md (arm_subdi3): Convert define_insn into
8979 define_insn_and_split.
8980 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8981 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8982
8983 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8984
8985 * config/arm/arm.md (subsi3_carryin): New pattern.
8986 (subsi3_carryin_const): Likewise.
8987 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8988 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8989
8990 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8991
8992 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8993
8994 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8995
8996 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
8997 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
8998
8999 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9000
9001 * config/arm/arm.c (arm_expand_builtin): Change fcode
9002 type to unsigned int.
9003
9004 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9005
9006 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9007
9008 2013-04-04 Ian Lance Taylor <iant@google.com>
9009
9010 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9011 language standard.
9012
9013 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9014
9015 PR middle-end/56729
9016 * df-scan.c (df_insn_delete): Disable failing assert.
9017
9018 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9019
9020 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9021 New function prototype.
9022 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9023 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9024 (arm_builtin_vectorized_function): New function.
9025
9026 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9027
9028 * config/arm/arm_neon_builtins.def: New file.
9029 * config/arm/arm.c (neon_builtin_data): Move contents to
9030 arm_neon_builtins.def.
9031 (enum arm_builtins): Include neon builtin definitions.
9032 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9033 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9034
9035 2013-04-04 Marek Polacek <polacek@redhat.com>
9036
9037 PR tree-optimization/48186
9038 * predict.c (maybe_hot_frequency_p): Return false if
9039 HOT_BB_FREQUENCY_FRACTION is 0.
9040 (cgraph_maybe_hot_edge_p): Likewise.
9041
9042 2013-04-04 Richard Biener <rguenther@suse.de>
9043
9044 PR tree-optimization/56826
9045 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9046 more accurately.
9047
9048 2013-04-04 Richard Biener <rguenther@suse.de>
9049
9050 PR tree-optimization/56213
9051 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9052 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9053
9054 2013-04-04 Richard Biener <rguenther@suse.de>
9055
9056 PR tree-optimization/56837
9057 * tree-loop-distribution.c (classify_partition): For non-zero
9058 values require that the value has the same precision as its
9059 mode to be useful as memset value.
9060
9061 2013-04-03 Nick Clifton <nickc@redhat.com>
9062
9063 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9064 (fmssf4): Use fmsf.s on E3V5 architectures.
9065 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9066 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9067
9068 2013-04-03 Jeff Law <law@redhat.com>
9069
9070 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9071 (lra-eliminations.o): Likewise.
9072
9073 2013-04-03 Teresa Johnson <tejohnson@google.com>
9074
9075 * gcov-io.c (compute_working_sets): Moved most of body of old
9076 compute_working_sets here from profile.c.
9077 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9078 (gcov_working_set_t): Moved typedef here from basic-block.h
9079 (compute_working_set): Declare.
9080 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9081 (get_working_sets): Renamed from compute_working_set,
9082 replace most of body with call to new compute_working_sets.
9083 (get_exec_counts): Replace call to compute_working_sets
9084 to get_working_sets.
9085 * profile.h (get_working_sets): Renamed from compute_working_set.
9086 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9087 to get_working_sets.
9088 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9089 * gcov-dump.c (dump_working_sets): New function.
9090
9091 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9092
9093 * hwint.c (sext_hwi, zext_hwi): New functions.
9094 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9095 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9096 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9097 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9098 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9099 (sext_hwi, zext_hwi): New functions.
9100
9101 2013-04-03 Jeff Law <law@redhat.com>
9102
9103 PR tree-optimization/56799
9104 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9105 back test for widening conversion erroneously dropped in prior change.
9106
9107 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9108
9109 PR target/56809
9110 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9111 instead of next_real_insn.
9112
9113 2013-04-03 Marek Polacek <polacek@redhat.com>
9114
9115 PR sanitizer/55702
9116 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9117
9118 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9119
9120 PR target/56809
9121 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9122 next_real_insn.
9123 (thumb1_output_casesi): Likewise.
9124 (thumb2_output_casesi): Likewise.
9125
9126 2013-04-03 Richard Biener <rguenther@suse.de>
9127
9128 PR tree-optimization/56817
9129 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9130 Split out ...
9131 (tree_unroll_loops_completely_1): ... new function to manually
9132 walk the loop tree, properly defering outer loops of unrolled
9133 loops to later iterations.
9134
9135 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9136
9137 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9138 (vectorizable_load): Likewise.
9139 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9140 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9141
9142 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9143
9144 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9145 BIT_FIELD_REF.
9146
9147 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9148
9149 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9150
9151 2013-04-03 Bin Cheng <bin.cheng@arm.com>
9152
9153 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9154
9155 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9156
9157 PR tree-optimization/56790
9158 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9159 folding.
9160
9161 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9162
9163 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9164 Handle VEC_MERGE.
9165 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9166 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9167 equal arguments.
9168
9169 2013-04-03 Jakub Jelinek <jakub@redhat.com>
9170
9171 PR c/19449
9172 * tree.h (force_folding_builtin_constant_p): New decl.
9173 * builtins.c (force_folding_builtin_constant_p): New variable.
9174 (fold_builtin_constant_p): Fold immediately also if
9175 force_folding_builtin_constant_p.
9176
9177 2013-04-03 Richard Biener <rguenther@suse.de>
9178
9179 PR tree-optimization/56812
9180 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9181 DRs of the same interleaving chain are independent.
9182
9183 2013-04-02 Jason Merrill <jason@redhat.com>
9184
9185 * gdbinit.in (pbb): Use debug fn.
9186
9187 2013-04-02 Lawrence Crowl <crowl@google.com>
9188
9189 * sese.h (struct ivtype_map_elt_s): Remove unused.
9190 (extern debug_ivtype_map): Remove unused.
9191 (extern eq_ivtype_map_elts): Remove unused.
9192 * sese.c (debug_ivtype_map): Removed unused.
9193 (debug_ivtype_map_1): Removed unused.
9194 (debug_ivtype_elt): Remove unused.
9195 (eq_ivtype_map_elts): Remove unused.
9196
9197
9198 2013-04-02 Kai Tietz <ktietz@redhat.com>
9199
9200 PR target/52790
9201 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9202 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9203 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9204 function.
9205 (legitimize_pe_coff_symbol): Likewise.
9206 (is_imported_p): New helper-function.
9207 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9208 for Windows x64 targets.
9209 (ix86_expand_prologue): Optimize for pe-coff targets.
9210 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9211 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9212 medium/large code-model.
9213 (legitimize_pic_address): Likewise.
9214 (legitimize_tls_address): Likewise.
9215 (ix86_expand_call): Likewise.
9216 (x86_output_mi_thunk): Likewise.
9217 (get_dllimport_decl): Add new beimport argument.
9218 (construct_plt_address): Don't assert for x64 pe-coff targets.
9219 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9220 targets.
9221 (SYMBOL_FLAG_STUBVAR): New macro.
9222 (SYMBOL_REF_STUBVAR_P): Likewise.
9223 * config/i386/winnt.c (stub_list): New structure.
9224 (stub_head): New local variable.
9225 (i386_pe_record_stub): New function.
9226 (i386_pe_file_end): Emit refptr-stubs.
9227
9228 2013-04-02 Jakub Jelinek <jakub@redhat.com>
9229
9230 PR rtl-optimization/56745
9231 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9232 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9233
9234 PR c++/34949
9235 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9236 and both of them are MEM_REFs, just compare first argument for
9237 equality and attempt to deal even with differing offsets.
9238
9239 PR c++/34949
9240 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9241 of gimple_clobber_p to be MEM_REF.
9242 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9243 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9244 after gimplification.
9245 * asan.c (get_mem_ref_of_assignment): Don't instrument
9246 gimple_clobber_p stmts.
9247 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9248 gimple_clobber_p stmt if they have MEM_REF lhs and
9249 are dead because of another gimple_clobber_p stmt.
9250 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9251 gimple_clobber_p stmts like debug stmts.
9252 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9253 that refer to unused VAR_DECLs or uninitialized values.
9254 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9255 gimple_clobber_p stmts if they refer to removed parameters.
9256 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9257 formatting.
9258
9259 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9260
9261 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9262 using SWI48 mode attribute.
9263
9264 2013-04-02 Wei Mi <wmi@google.com>
9265
9266 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9267 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9268 *<rotate_insn><mode>3_mask in i386.md.
9269
9270 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9271
9272 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9273
9274 2013-04-02 Richard Biener <rguenther@suse.de>
9275
9276 PR tree-optimization/56778
9277 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9278 Runtime alias tests are not supported for gather loads.
9279 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9280 stmts referenced from SSA operands before updating SSA form.
9281
9282 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9283 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9284
9285 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9286 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9287 * config/arm/cortex-a53.md: New file.
9288 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9289 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9290 * config/arm/arm.c (arm_issue_rate): Likewise.
9291 * config/arm/arm-tune.md: Regenerate
9292 * config/arm/arm-tables.opt: Regenerate.
9293 * config/arm/arm-cores.def: Add cortex-a53.
9294
9295 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9296
9297 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9298 non-static link.
9299
9300 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9301
9302 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9303 scalar load/store operations using B/H registers.
9304 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9305
9306 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9307
9308 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9309 scalar move.
9310 * config/aarch64/aarch64.c
9311 (aarch64_simd_scalar_immediate_valid_for_move): New.
9312 * config/aarch64/aarch64-protos.h
9313 (aarch64_simd_scalar_immediate_valid_for_move): New.
9314 * config/aarch64/constraints.md (Dh, Dq): New.
9315 * config/aarch64/iterators.md (hq): New.
9316
9317 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9318
9319 * reorg.c (get_branch_condition): Deal with conditional returns.
9320 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9321
9322 2013-04-01 Wei Mi <wmi@google.com>
9323
9324 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9325 Truncate operand 2 using %b asm operand modifier.
9326 (*<shift_insn><mode>3_mask): Ditto.
9327 (*<rotate_insn><mode>3_mask): Ditto.
9328
9329 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9330
9331 PR middle-end/56798
9332 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9333
9334 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9335
9336 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9337 of next_real_insn.
9338 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9339
9340 2013-03-30 Lawrence Crowl <crowl@google.com>
9341
9342 * dse.c (clear_alias_sets): Remove never set.
9343 (disqualified_clear_alias_sets): Remove never set.
9344 (clear_alias_mode_pool): Remove never set.
9345 (dse_step0): Remove condition that is never true.
9346 (canon_address): Remove condition that is never true.
9347 (dse_step7): Remove condition that is never true.
9348 (rest_of_handle_dse): Remove condition that is never true.
9349 (rest_of_handle_dse::did_global): Remove never read from above.
9350 (dse_step2_spill): Remove never called from above.
9351 (dse_step5_spill): Remove never called from above.
9352
9353 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9354
9355 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9356 JUMP_TABLE_DATA changes.
9357 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9358 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9359 (Insns) <jump_table_data>: New entry.
9360 * doc/tm.texi: Regenerate.
9361
9362 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9363
9364 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9365 for table jump at the end of a basic block using tablejump_p.
9366 * targhooks.c (default_invalid_within_doloop): Likewise.
9367 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9368 target hook implementation that is identical to the default hook.
9369 (rs6000_invalid_within_doloop): Remove.
9370
9371 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9372 unused variable from tablejump_p call.
9373
9374 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9375 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9376 (INSN_DELETED_P): Likewise.
9377 (emit_jump_table_data): New prototype.
9378 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9379 after 4th as unused.
9380 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9381 * sched-vis.c (print_insn): Likewise.
9382 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9383 insn for compatibility with back ends that use next_active_insn to
9384 identify jump table data.
9385 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9386 (remove_insn): Likewise.
9387 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9388 to be emitted.
9389 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9390 (emit_jump_table_data): New function.
9391
9392 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9393 basic block, a JUMP_TABLE_DATA never is.
9394 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9395 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9396 off from code handling real insns.
9397 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9398 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9399 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9400 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9401 is not a NONDEBUG_INSN_P.
9402 * ira-costs.c (scan_one_insn): Likewise.
9403 * jump.c (mark_all_labels): Likewise.
9404 (mark_jump_label_1): Likewise.
9405 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9406 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9407 a basic block.
9408 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9409 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9410 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9411 JUMP_TABLE_DATA_P insns.
9412 (calculate_elim_costs_all_insns): Likewise.
9413 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9414 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9415 (delete_output_reload): Code style fixups.
9416 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9417 insn flags on this non-insn.
9418 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9419 as scheduling barriers, for pre-change compatibility.
9420 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9421 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9422
9423 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9424 redundant JUMP_TABLE_DATA_P test.
9425 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9426 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9427 (frv_for_each_packet): Likewise.
9428 * config/i386/i386.c (min_insn_size): Likewise.
9429 (ix86_avoid_jump_mispredicts): Likewise.
9430 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9431 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9432 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9433 (mips16_insn_length): Robustify.
9434 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9435 (mips16_split_long_branches): Likewise.
9436 * config/pa/pa.c (pa_combine_instructions): Likewise.
9437 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9438 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9439 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9440 as contributing to pool range lengths.
9441 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9442 Remove redundant JUMP_TABLE_DATA_P test.
9443 (sh_loop_align): Likewise.
9444 (split_branches): Likewise.
9445 (sh_insn_length_adjustment): Likewise.
9446 * config/spu/spu.c (get_branch_target): Likewise.
9447
9448 2013-03-29 Jan Hubicka <jh@suse.cz>
9449
9450 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9451 gcov streaming; stream hot bb threshold to ltrans.
9452 * predict.c (get_hot_bb_threshold): Break out from ....
9453 (maybe_hot_count_p): ... here.
9454 (set_hot_bb_threshold): New function.
9455 * lto-section-in.c (lto_section_name): Add profile.
9456 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9457 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9458 and data-streamer.h
9459 (histogram_entry): New structure.
9460 (histogram, histogram_pool): New global vars.
9461 (histogram_hash): New structure.
9462 (histogram_hash::hash): New method.
9463 (histogram_hash::equal): Likewise.
9464 (account_time_size): New function.
9465 (cmp_counts): New function.
9466 (dump_histogram): New function.
9467 (ipa_profile_generate_summary): New function.
9468 (ipa_profile_write_summary): New function.
9469 (ipa_profile_read_summary): New function.
9470 (ipa_profile): Decide on threshold.
9471 (pass_ipa_profile): Add ipa_profile_write_summary and
9472 ipa_profile_read_summary.
9473 * Makefile.in (ipa.o): Update dependencies.
9474 * lto-streamer.h (LTO_section_ipa_profile): New section.
9475
9476 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9477
9478 * tree.h (VAR_P): New.
9479
9480 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9481
9482 PR lto/56777
9483 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9484
9485 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9486
9487 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9488 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9489 (control_flow_insn_p): Likewise.
9490 * cfgrtl.c (duplicate_insn_chain): Likewise.
9491 * final.c (get_attr_length_1): Likewise.
9492 (shorten_branches): Likewise.
9493 (final_scan_insn): Likewise.
9494 * function.c (instantiate_virtual_regs): Likewise.
9495 * gcse.c (insert_insn_end_basic_block): Likewise.
9496 * ira-costs.c (scan_one_insn): Likewise.
9497 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9498 * lra.c (check_rtl): Likewise.
9499 * reload1.c (elimination_costs_in_insn): Likewise.
9500 * reorg.c (follow_jumps): Likewise.
9501
9502 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9503 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9504 (thumb_far_jump_used_p): Likewise.
9505 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9506 (workaround_speculation): Likewise.
9507 (add_sched_insns_for_speculation): Likewise.
9508 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9509 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9510 (frv_for_each_packet): Likewise.
9511 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9512 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9513 (final_emit_insn_group_barriers): Likewise.
9514 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9515 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9516 (mips16_insn_length): Likewise.
9517 * config/pa/pa.c (pa_reorg): Likewise.
9518 (pa_combine_instructions): Likewise.
9519 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9520 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9521 (sh_reorg): Likewise.
9522 (split_branches): Likewise.
9523 * config/spu/spu.c (get_branch_target): Likewise.
9524
9525 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9526 JUMP_TABLE_DATA_P.
9527
9528 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9529
9530 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9531 Fix declaration name.
9532
9533 2013-03-28 Lawrence Crowl <crowl@google.com>
9534
9535 * graphds.h (struct graph.indicies): Remove unused.
9536 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9537 (SCOP_ORIGINAL_PDDRS): Remove unused.
9538 * sese.h (extern insert_loop_close_phis): Removed unused.
9539 (extern insert_guard_phis): Removed unused.
9540 (extern ivtype_map_elt_info): Removed unused.
9541 (new_ivtype_map_elt): Removed unused.
9542 * sese.c (ivtype_map_elt_info): Removed unused.
9543
9544 2013-03-28 Lawrence Crowl <crowl@google.com>
9545
9546 * Makefile.in: Add several missing include dependences.
9547 (DUMPFILE_H): New.
9548 (test-dump.o): New. This object is not added to any executable,
9549 but is present for ad-hoc testing.
9550 * bitmap.c
9551 (debug (const bitmap_head_def &)): New.
9552 (debug (const bitmap_head_def *)): New.
9553 * bitmap.h
9554 (extern debug (const bitmap_head_def &)): New.
9555 (extern debug (const bitmap_head_def *)): New.
9556 * cfg.c
9557 (debug (edge_def &)): New.
9558 (debug (edge_def *)): New.
9559 * cfghooks.c
9560 (debug (basic_block_def &)): New.
9561 (debug (basic_block_def *)): New.
9562 * dumpfile.h
9563 (dump_node (const_tree, int, FILE *)): Correct source file.
9564 * dwarf2out.c
9565 (debug (die_struct &)): New.
9566 (debug (die_struct *)): New.
9567 * dwarf2out.h
9568 (extern debug (die_struct &)): New.
9569 (extern debug (die_struct *)): New.
9570 * gimple-pretty-print.c
9571 (debug (gimple_statement_d &)): New.
9572 (debug (gimple_statement_d *)): New.
9573 * gimple-pretty-print.h
9574 (extern debug (gimple_statement_d &)): New.
9575 (extern debug (gimple_statement_d *)): New.
9576 * ira-build.c
9577 (debug (ira_allocno_copy &)): New.
9578 (debug (ira_allocno_copy *)): New.
9579 (debug (ira_allocno &)): New.
9580 (debug (ira_allocno *)): New.
9581 * ira-int.h
9582 (extern debug (ira_allocno_copy &)): New.
9583 (extern debug (ira_allocno_copy *)): New.
9584 (extern debug (ira_allocno &)): New.
9585 (extern debug (ira_allocno *)): New.
9586 * ira-lives.c
9587 (debug (live_range &)): New.
9588 (debug (live_range *)): New.
9589 * lra-int.h
9590 (debug (lra_live_range &)): New.
9591 (debug (lra_live_range *)): New.
9592 * lra-lives.c
9593 (debug (lra_live_range &)): New.
9594 (debug (lra_live_range *)): New.
9595 * omega.c
9596 (debug (omega_pb_d &)): New.
9597 (debug (omega_pb_d *)): New.
9598 * omega.h
9599 (extern debug (omega_pb_d &)): New.
9600 (extern debug (omega_pb_d *)): New.
9601 * print-rtl.c
9602 (debug (const rtx_def &)): New.
9603 (debug (const rtx_def *)): New.
9604 * print-tree.c
9605 (debug_tree (tree): Move within file.
9606 (debug_raw (const tree_node &)): New.
9607 (debug_raw (const tree_node *)): New.
9608 (dump_tree_via_hooks (const tree_node *, int)): New.
9609 (debug (const tree_node &)): New.
9610 (debug (const tree_node *)): New.
9611 (debug_verbose (const tree_node &)): New.
9612 (debug_verbose (const tree_node *)): New.
9613 (debug_head (const tree_node &)): New.
9614 (debug_head (const tree_node *)): New.
9615 (debug_body (const tree_node &)): New.
9616 (debug_body (const tree_node *)): New.
9617 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9618 (debug (vec<tree, va_gc> &)): New.
9619 (debug (vec<tree, va_gc> *)): New.
9620 * rtl.h
9621 (extern debug (const rtx_def &)): New.
9622 (extern debug (const rtx_def *)): New.
9623 * sbitmap.c
9624 (debug_raw (simple_bitmap_def &)): New.
9625 (debug_raw (simple_bitmap_def *)): New.
9626 (debug (simple_bitmap_def &)): New.
9627 (debug (simple_bitmap_def *)): New.
9628 * sbitmap.h
9629 (extern debug (simple_bitmap_def &)): New.
9630 (extern debug (simple_bitmap_def *)): New.
9631 (extern debug_raw (simple_bitmap_def &)): New.
9632 (extern debug_raw (simple_bitmap_def *)): New.
9633 * sel-sched-dump.c
9634 (debug (vinsn_def &)): New.
9635 (debug (vinsn_def *)): New.
9636 (debug_verbose (vinsn_def &)): New.
9637 (debug_verbose (vinsn_def *)): New.
9638 (debug (expr_def &)): New.
9639 (debug (expr_def *)): New.
9640 (debug_verbose (expr_def &)): New.
9641 (debug_verbose (expr_def *)): New.
9642 (debug (vec<rtx> &)): New.
9643 (debug (vec<rtx> *)): New.
9644 * sel-sched-dump.h
9645 (extern debug (vinsn_def &)): New.
9646 (extern debug (vinsn_def *)): New.
9647 (extern debug_verbose (vinsn_def &)): New.
9648 (extern debug_verbose (vinsn_def *)): New.
9649 (extern debug (expr_def &)): New.
9650 (extern debug (expr_def *)): New.
9651 (extern debug_verbose (expr_def &)): New.
9652 (extern debug_verbose (expr_def *)): New.
9653 (extern debug (vec<rtx> &)): New.
9654 (extern debug (vec<rtx> *)): New.
9655 * sel-sched-ir.h
9656 (_list_iter_cond_expr): Make inline instead of static.
9657 * sreal.c
9658 (debug (sreal &)): New.
9659 (debug (sreal *)): New.
9660 * sreal.h
9661 (extern debug (sreal &)): New.
9662 (extern debug (sreal *)): New.
9663 * tree.h
9664 (extern debug_raw (const tree_node &)): New.
9665 (extern debug_raw (const tree_node *)): New.
9666 (extern debug (const tree_node &)): New.
9667 (extern debug (const tree_node *)): New.
9668 (extern debug_verbose (const tree_node &)): New.
9669 (extern debug_verbose (const tree_node *)): New.
9670 (extern debug_head (const tree_node &)): New.
9671 (extern debug_head (const tree_node *)): New.
9672 (extern debug_body (const tree_node &)): New.
9673 (extern debug_body (const tree_node *)): New.
9674 (extern debug (vec<tree, va_gc> &)): New.
9675 (extern debug (vec<tree, va_gc> *)): New.
9676 * tree-cfg.c
9677 (debug (struct loop &)): New.
9678 (debug (struct loop *)): New.
9679 (debug_verbose (struct loop &)): New.
9680 (debug_verbose (struct loop *)): New.
9681 * tree-dump.c: Add header dependence.
9682 * tree-flow.h
9683 (extern debug (struct loop &)): New.
9684 (extern debug (struct loop *)): New.
9685 (extern debug_verbose (struct loop &)): New.
9686 (extern debug_verbose (struct loop *)): New.
9687 * tree-data-ref.c
9688 (debug (data_reference &)): New.
9689 (debug (data_reference *)): New.
9690 (debug (vec<data_reference_p> &)): New.
9691 (debug (vec<data_reference_p> *)): New.
9692 (debug (vec<ddr_p> &)): New.
9693 (debug (vec<ddr_p> *)): New.
9694 * tree-data-ref.h
9695 (extern debug (data_reference &)): New.
9696 (extern debug (data_reference *)): New.
9697 (extern debug (vec<data_reference_p> &)): New.
9698 (extern debug (vec<data_reference_p> *)): New.
9699 (extern debug (vec<ddr_p> &)): New.
9700 (extern debug (vec<ddr_p> *)): New.
9701 * tree-ssa-alias.c
9702 (debug (pt_solution &)): New.
9703 (debug (pt_solution *)): New.
9704 * tree-ssa-alias.h
9705 (extern debug (pt_solution &)): New.
9706 (extern debug (pt_solution *)): New.
9707 * tree-ssa-alias.c
9708 (debug (_var_map &)): New.
9709 (debug (_var_map *)): New.
9710 (debug (tree_live_info_d &)): New.
9711 (debug (tree_live_info_d *)): New.
9712 * tree-ssa-alias.h
9713 (extern debug (_var_map &)): New.
9714 (extern debug (_var_map *)): New.
9715 (extern debug (tree_live_info_d &)): New.
9716 (extern debug (tree_live_info_d *)): New.
9717
9718 2013-03-28 Jan Hubicka <jh@suse.cz>
9719
9720 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9721
9722 2013-03-28 Ian Bolton <ian.bolton@arm.com>
9723
9724 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9725 record only when desired or required.
9726
9727 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
9728
9729 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9730 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9731
9732 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9733
9734 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9735 (*andsi3_compare0_uxtw): New pattern.
9736 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9737 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9738
9739 2013-03-28 Jan Hubicka <jh@suse.cz>
9740
9741 * data-streamer-in.c (streamer_read_gcov_count): New function.
9742 * gimple-streamer-out.c: Include value-prof.h.
9743 (output_gimple_stmt): Output histogram.
9744 (output_bb): Use streamer_write_gcov_count.
9745 * value-prof.c: Include data-streamer.h
9746 (dump_histogram_value): Add HIST_TYPE_MAX.
9747 (stream_out_histogram_value): New function.
9748 (stream_in_histogram_value): New function.
9749 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9750 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9751 * data-streamer-out.c (streamer_write_gcov_count): New function.
9752 (streamer_write_gcov_count_stream): New function.
9753 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9754 (lto_output_node): Likewise.
9755 (input_node, input_edge): Likewise.
9756 * lto-streamer-out.c (output_cfg): Update streaming.
9757 * lto-streamer-in.c (input_cfg): Likewise.
9758 * data-streamer.h (streamer_write_gcov_count,
9759 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9760 * gimple-streamer-in.c: Include value-prof.h
9761 (input_gimple_stmt): Input histograms.
9762 (input_bb): Update profile streaming.
9763
9764 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9765
9766 * genmodes.c (emit_max_int): New function.
9767 (emit_insn_modes_h): Added call to emit_max_function.
9768 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9769 Added doc.
9770 * machmode.def: Fixed comment.
9771
9772 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9773
9774 * combine.c (try_combine): Removed useless assert.
9775 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9776
9777 2013-03-28 Marek Polacek <polacek@redhat.com>
9778 Richard Biener <rguenther@suse.de>
9779
9780 PR tree-optimization/56695
9781 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9782 build signed result of a vector comparison.
9783 * tree-cfg.c (verify_gimple_comparison): Check that a result
9784 of a vector comparison has signed type.
9785
9786 2013-03-28 Richard Biener <rguenther@suse.de>
9787
9788 PR tree-optimization/37021
9789 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9790 do not restrict gaps between groups.
9791 * tree-vect-stmts.c (vectorizable_load): Properly account for
9792 a gap between groups.
9793
9794 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9795
9796 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9797 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9798 is not enabled.
9799
9800 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9801
9802 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9803 * doc/extend.texi (Named Address Spaces): Ditto.
9804 (Variable Attributes): Ditto.
9805
9806 2013-03-27 Kai Tietz <ktietz@redhat.com>
9807
9808 * config.build: Add support for cygwin x64 target.
9809 * config.gcc: Likewise.
9810 * config.host: Likewise.
9811 * configure.ac: Likewise
9812 * configure: Regenerated.
9813
9814 2013-03-27 Kai Tietz <ktietz@redhat.com>
9815
9816 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9817 * config/i386/t-cygwin-w64: New file.
9818 * config/i386/cygwin-w64.h: New file.
9819 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9820 and add support for x64-cygwin target.
9821 (CPP_SPEC): Likewise.
9822 (CXX_WRAP_SPEC_LIST): Undefine before define.
9823 (LIBGCJ_SONAME): Use 15 as version.
9824
9825 2013-03-27 Richard Biener <rguenther@suse.de>
9826
9827 PR tree-optimization/56716
9828 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9829 dumping for ref nodes.
9830
9831 2013-03-27 Martin Jambor <mjambor@suse.cz>
9832
9833 PR tree-optimization/55334
9834 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9835 restricted pointers to arrays.
9836
9837 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9838
9839 * Makefile.in (.SUFFIXES): Add .cc.
9840 (.c.o): Apply same recipe for implicit rule .cc.o.
9841
9842 2013-03-27 Richard Biener <rguenther@suse.de>
9843
9844 PR tree-optimization/37021
9845 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9846 REALPART/IMAGPART_EXPRs around the supported refs.
9847 * tree-ssa-structalias.c (find_func_aliases): Assume that
9848 floating-point values are not used to transfer pointers.
9849
9850 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9851
9852 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9853 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9854 * doc/tm.texi: Regenerate.
9855 * targhooks.h (default_has_ifunc_p): New.
9856 * targhooks.c (default_has_ifunc_p): Ditto.
9857 * config/linux-protos.h: New file.
9858 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9859 this hook for linux which disables support of indirect functions in
9860 android.
9861 * config/linux-android.c: New file.
9862 * config/t-linux-android.c: Ditto.
9863 * config.gcc: Added new object file linux-android.o.
9864 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
9865 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
9866 * varasm.c (do_assemble_alias): Likewise.
9867 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9868 doesn't support indirect functions.
9869 * configure: Regenerate.
9870
9871 2013-03-27 Bin Cheng <bin.cheng@arm.com>
9872
9873 PR target/56102
9874 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9875 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9876 mult-word mode.
9877
9878 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9879
9880 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9881
9882 2013-03-27 Terry Guo <terry.guo@arm.com>
9883
9884 * config/arm/arm-cores.def: Added core cortex-r7.
9885 * config/arm/arm-tune.md: Regenerated.
9886 * config/arm/arm-tables.opt: Regenerated.
9887 * doc/invoke.texi: Added entry for core cortex-r7.
9888
9889 2013-03-27 Walter Lee <walt@tilera.com>
9890
9891 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9892 double-decrement of next_scratch_regno.
9893
9894 2013-03-27 Walter Lee <walt@tilera.com>
9895
9896 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9897 input operands.
9898 (insn_v1mulus): Ditto.
9899 (insn_v2muls): Ditto.
9900
9901 2013-03-27 Walter Lee <walt@tilera.com>
9902
9903 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
9904 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9905
9906 2013-03-27 Walter Lee <walt@tilera.com>
9907
9908 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
9909 (*sibcall_value): Ditto.
9910
9911 2013-03-27 Walter Lee <walt@tilera.com>
9912
9913 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9914 (insn_mnz_v8qi): ... this ...
9915 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9916 vector equivalent.
9917 (insn_v<n>mnz): Replaced by ...
9918 (insn_v1mnz): ... this ...
9919 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9920 equivalent.
9921 (insn_mz_<mode>): Replaced by ...
9922 (insn_mz_v8qi): ... this ...
9923 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9924 vector equivalent.
9925 (insn_v<n>mz): Replaced by ...
9926 (insn_v1mz): ... this ...
9927 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9928 equivalent.
9929
9930 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9931
9932 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9933
9934 2013-03-26 Roland McGrath <mcgrathr@google.com>
9935
9936 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9937 than fprintf with a non-constant, non-format string.
9938
9939 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
9940
9941 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9942 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9943 operand 0 predicate.
9944 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9945 attribute. Use general_x64nomem_operand as operand 1 predicate.
9946 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9947 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9948 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9949 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9950 (mov<mode>_insv_1): Remove expander. Merge insn with
9951 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9952 Use general_x64nomem_operand as operand 1 predicate.
9953 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9954 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9955 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9956 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9957 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
9958 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9959 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9960 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9961 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
9962 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9963 (general_x64nomem_operand): Ditto.
9964
9965 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
9966
9967 * config/rtems.opt: Add -pthread option.
9968
9969 2013-03-26 Richard Biener <rguenther@suse.de>
9970
9971 * alias.c (find_base_term): Avoid redundant and not used recursion.
9972 (base_alias_check): Get the initial base term from the caller.
9973 (true_dependence_1): Compute and pass base terms to base_alias_check.
9974 (write_dependence_p): Likewise.
9975 (may_alias_p): Likewise.
9976
9977 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
9978
9979 * config/aarch64/aarch64.c (aarch64_classify_address): Support
9980 PC-relative load in SI modes and above only.
9981
9982 2013-03-26 Xinyu Qi <xyqi@marvell.com>
9983
9984 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
9985 * config/arm/iwmmxt.md (WCGR0): Update.
9986 (WCGR1, WCGR2, WCGR3): Likewise.
9987
9988 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
9989
9990 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9991 Use x64 and nox64 isa attributes.
9992
9993 2013-03-26 Richard Biener <rguenther@suse.de>
9994
9995 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9996 alignment computations and rely on get_object_alignment_1
9997 for the !TYPE_P case.
9998 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9999
10000 2013-03-26 Walter Lee <walt@tilera.com>
10001
10002 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10003 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10004
10005 2013-03-25 Jeff Law <law@redhat.com>
10006
10007 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10008 check for INTEGRAL_TYPE_P that was missing due to checking in
10009 wrong version of prior patch.
10010
10011 2013-03-25 Walter Lee <walt@tilera.com>
10012
10013 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10014 TILEGX_INSN_SHUFFLEBYTES1.
10015 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10016 shufflebytes1.
10017 (tilegx_builtins): Ditto.
10018 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10019
10020 2013-03-25 Walter Lee <walt@tilera.com>
10021
10022 * config/tilegx/tilegx.md (floatsisf2): New pattern.
10023 (floatunssisf2): New pattern.
10024 (floatsidf2): New pattern.
10025 (floatunssidf2): New pattern.
10026
10027 2013-03-25 Walter Lee <walt@tilera.com>
10028
10029 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10030 tests for constraint J, K, N, P.
10031
10032 2013-03-25 Walter Lee <walt@tilera.com>
10033
10034 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10035 Use indirect/pcrel encoding.
10036 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10037 Ditto.
10038
10039 2013-03-25 Steve Ellcey <sellcey@mips.com>
10040
10041 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10042 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10043 * config/mips/mips.c (mips_option_override): Set IMADD default.
10044 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10045 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10046 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10047 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10048 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10049
10050 2013-03-25 Jeff Law <law@redhat.com>
10051
10052 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10053 slightly to avoid creating and folding useless trees. Simplify
10054 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10055
10056 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
10057
10058 * config/i386/i386.md (*zero_extendsidi2): Merge with
10059 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10060 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10061 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10062 targets. Clarify comment.
10063
10064 2013-03-25 Martin Jambor <mjambor@suse.cz>
10065
10066 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10067 pass-through jump functions differently.
10068 (ipa_read_jump_function): Likewise. Also use setter functions to set
10069 up jump functions.
10070
10071 2013-03-25 Martin Jambor <mjambor@suse.cz>
10072
10073 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10074 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10075 process it.
10076 (ipa_get_indirect_edge_target): New function.
10077 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10078 ipa_get_indirect_edge_target. Update all callers.
10079 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10080 ipa_get_indirect_edge_target_1 instead of calling
10081 ipa_get_indirect_edge_target.
10082 (create_specialized_node): Pass aggvlas to
10083 ipcp_discover_new_direct_edges.
10084
10085 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10086
10087 * config/arm/arm.md (f_sels, f_seld): New types.
10088 (*cmov<mode>): New pattern.
10089 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10090 predicate.
10091
10092 2013-03-25 Kai Tietz <ktietz@redhat.com>
10093
10094 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10095 POSIX-printf for mingw-hosted builds.
10096
10097 2013-03-25 Richard Biener <rguenther@suse.de>
10098
10099 PR middle-end/56694
10100 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10101 must-not-throw stmt location.
10102
10103 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10104
10105 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10106 Emit load-acquire versions when acq is true.
10107 (arm_emit_store_exclusive): Add rel parameter.
10108 Emit store-release versions when rel is true.
10109 (arm_split_compare_and_swap): Use acquire-release instructions
10110 instead.
10111 of barriers when appropriate.
10112 (arm_split_atomic_op): Likewise.
10113 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10114 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10115 (VUNSPEC_SLX): Likewise.
10116 (VUNSPEC_LDA): Likewise.
10117 (VUNSPEC_STL): Likewise.
10118 * config/arm/sync.md (atomic_load<mode>): New pattern.
10119 (atomic_store<mode>): Likewise.
10120 (arm_load_acquire_exclusive<mode>): Likewise.
10121 (arm_load_acquire_exclusivesi): Likewise.
10122 (arm_load_acquire_exclusivedi): Likewise.
10123 (arm_store_release_exclusive<mode>): Likewise.
10124
10125 2013-03-25 Catherine Moore <clm@codesourcery.com>
10126
10127 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10128 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10129 * config/mip/predicates.md (lwsp_swsp_operand,
10130 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10131 sb16_operand, db4_operand, db7_operand, ib3_operand,
10132 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10133 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10134 andi16_operand): New predicates.
10135 * config/mips/mips.md (compression): New attribute.
10136 (enabled): New attribute.
10137 (length): Consider compression in computing length.
10138 (shift_compression): New code attribute.
10139 (*add<mode>3): New operands. Record compression.
10140 (sub<mode>3): Likewise.
10141 (one_cmpl<mode>2): Likewise.
10142 (*and<mode>3): Likewise.
10143 (*ior<mode>3): Likewise.
10144 (unnamed pattern for xor): Likewise.
10145 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10146 (*<optab><mode>3): Likewise.
10147 (*mov<mode>_internal: Likewise.
10148 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10149 (mips_unsigned_immediate_p): New.
10150 (umips_lwsp_swsp_address_p): New.
10151 (m16_based_address_p): New.
10152 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10153 (mips_unsigned_immediate_p): New prototype.
10154 (lwsp_swsp_address_p): New prototype.
10155 (m16_based_address_p): New prototype.
10156 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10157 (mips_signed_immediate_p): New function.
10158 (m16_based_address_p): New function.
10159 (lwsp_swsp_address_p): New function.
10160 (mips_print_operand_punctuation): Recognize short delay slot insns
10161 for microMIPS.add<mode>3"
10162
10163 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10164
10165 PR target/56720
10166 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10167 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10168
10169 2013-03-25 Richard Biener <rguenther@suse.de>
10170
10171 PR tree-optimization/56689
10172 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10173 any edge.
10174
10175 2013-03-25 Richard Biener <rguenther@suse.de>
10176
10177 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10178 of bitmap.
10179 (memory_references): Likewise.
10180 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10181 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10182 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10183 (gather_mem_refs_in_loops): Fold into ...
10184 (analyze_memory_references): ... this. Move initialization
10185 to tree_ssa_lim_initialize.
10186 (fill_always_executed_in): Rename to ...
10187 (fill_always_executed_in_1): ... this.
10188 (fill_always_executed_in): Move contains_call computation to
10189 this new function from ...
10190 (tree_ssa_lim_initialize): ... here.
10191 (tree_ssa_lim): Call fill_always_executed_in.
10192
10193 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10194
10195 * postreload.c (reload_combine): Fix code detecting returns.
10196
10197 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10198
10199 * function.c (emit_use_return_register_into_block): On cc0 targets,
10200 do not emit the sequence between cc0 setter and user.
10201
10202 2013-03-25 Kai Tietz <ktietz@redhat.com>
10203
10204 * config/i386/predicates.md (local_symbolic_operand): Interpret
10205 dll-imported symbols as none-local.
10206
10207 2013-03-25 Richard Biener <rguenther@suse.de>
10208
10209 * tree-ssa-loop-im.c (struct depend): Remove.
10210 (struct lim_aux_data): Make depends a vec of gimples.
10211 (free_lim_aux_data): Adjust.
10212 (add_dependency): Likewise.
10213 (set_level): Likewise.
10214
10215 2013-03-25 Richard Biener <rguenther@suse.de>
10216
10217 PR middle-end/56434
10218 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10219 the pointer returned by calls with ECF_MALLOC set.
10220
10221 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10222
10223 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10224
10225 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10226
10227 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10228 using MMXMODE mode iterator.
10229 (*move<mode>_internal): Merge with *movv2sf_internal and
10230 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10231
10232 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10233
10234 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10235 (record_last_mem_set_info): Likewise.
10236
10237 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10238 of XNEWVEC followed by memset.
10239 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10240
10241 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10242
10243 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10244 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10245 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10246 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10247 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10248 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10249 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10250 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10251 BARRIER_P instead of GET_CODE.
10252
10253 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10254
10255 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10256 inaccuracy in the probing code.
10257
10258 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10259 (ctrapdi4): Likewise.
10260
10261 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10262
10263 * calls.c (expand_call): Add missing guard to code handling return
10264 of non-BLKmode structures in MSB.
10265 * function.c (expand_function_end): Likewise.
10266
10267 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10268
10269 * combine.c (try_combine): Adjust comment. Do not add the set of
10270 insn #0 if the destination indirectly is set or dies in insn #2.
10271 Tidy up code to distribute a new note.
10272
10273 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10274
10275 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10276 also for alternatives 16 and 17.
10277
10278 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10279
10280 * config/i386/sse.md (*mov<mode>_internal): Merge with
10281 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10282 Emit insn template depending on type attribute. Use
10283 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10284 movd instead of movq mnemonic for interunit moves. Rewrite mode
10285 attribute calculation. Remove unit attribute calculation.
10286 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10287 Set prefix_data16 attribute for DImode ssemov types.
10288 Use Ym instead of y for SSE-MMX conversion alternatives.
10289 Reorder operand constraints.
10290
10291 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10292
10293 * df.h (df_insn_delete): Adjust prototype.
10294 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10295 and let it decide whether mark the basic block dirty.
10296 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10297 * df-scan.c (df_insn_info_delete): New helper function, split
10298 off from df_insn_delete.
10299 (df_scan_free_bb_info): Use it.
10300 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10301 Likewise.
10302 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10303 that the insn is actually an insn and it has a non-NULL basic block.
10304 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10305
10306 2013-03-22 Richard Biener <rguenther@suse.de>
10307
10308 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10309 dep_ref members.
10310 (mem_ref_alloc): Do not allocate them.
10311 (refs_independent_p): Do not query or maintain a cache.
10312
10313 2013-03-22 Richard Biener <rguenther@suse.de>
10314
10315 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10316 (gather_mem_refs_in_loops): Do not compute it.
10317 (analyze_memory_references): Do not allocate it.
10318 (tree_ssa_lim_finalize): Do not free it.
10319 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10320
10321 2013-03-22 Richard Biener <rguenther@suse.de>
10322
10323 * is-a.h (as_a): Use gcc_checking_assert.
10324
10325 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10326
10327 * config/aarch64/aarch64.c (aarch64_print_operand): New
10328 format specifier for printing a constant in hex.
10329 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10330 format specifier for printing second operand.
10331
10332 2013-03-22 Richard Biener <rguenther@suse.de>
10333
10334 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10335 bitmaps.
10336 (gather_mem_refs_in_loops): Perform store accumulation here.
10337 (create_vop_ref_mapping_loop): Remove.
10338 (create_vop_ref_mapping): Likewise.
10339 (analyze_memory_references): Initialize refs_stored_in_loop.
10340 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10341 (record_indep_loop): Remove.
10342 (record_dep_loop): New function.
10343 (ref_indep_loop_p_1): Adjust to only walk over references
10344 in the loop, not its subloops.
10345 (ref_indep_loop_p): Rename to ...
10346 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10347 maintaining a more fine-grained cache.
10348 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10349 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10350
10351 2013-03-22 Richard Biener <rguenther@suse.de>
10352
10353 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10354 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10355 aggregate mem_ref_loc.
10356 (free_mem_ref_locs): Inline into ...
10357 (memref_free): ... this and adjust.
10358 (mem_ref_alloc): Adjust.
10359 (mem_ref_locs_alloc): Remove.
10360 (record_mem_ref_loc): Adjust.
10361 (get_all_locs_in_loop): Rewrite into ...
10362 (for_all_locs_in_loop): ... this iterator.
10363 (rewrite_mem_ref_loc): New functor.
10364 (rewrite_mem_refs): Use for_all_locs_in_loop.
10365 (sm_set_flag_if_changed): New functor.
10366 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10367 (ref_always_accessed): New functor.
10368 (ref_always_accessed_p): Use for_all_locs_in_loop.
10369
10370 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10371
10372 * tree-pass.h (PROP_gimple_lvec): New.
10373 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10374 (init_optimization_passes): Move pass_lower_vector.
10375 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10376 PROP_gimple_lvec.
10377 (pass_lower_vector): Provide PROP_gimple_lvec.
10378 (pass_lower_vector_ssa): Likewise.
10379 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10380
10381 2013-03-21 Mark Wielaard <mjw@redhat.com>
10382
10383 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10384
10385 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10386
10387 * config/i386/i386.md (*movdi_internal): Disparage slightly
10388 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10389 conversion alternatives.
10390
10391 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10392
10393 PR middle-end/48087
10394 * diagnostic.def (DK_WERROR): New kind.
10395 * diagnostic.h (werrorcount): Define.
10396 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10397 promoted to DK_ERROR, increment DK_WERROR counter instead of
10398 DK_ERROR counter.
10399 * toplev.c (toplev_main): Call print_ignored_options even if
10400 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10401 even if just werrorcount is non-zero.
10402
10403 PR debug/55608
10404 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10405 on failure.
10406 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10407 (string_cst_pool_decl): New function.
10408 (optimize_one_addr_into_implicit_ptr): New function.
10409 (resolve_addr_in_expr): Optimize DWARF location expression
10410 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10411 which doesn't live in memory, but has DW_AT_location or
10412 DW_AT_const_value, or refers to a string literal, into
10413 DW_OP_GNU_implicit_pointer.
10414 (optimize_location_into_implicit_ptr): New function.
10415 (resolve_addr): If removing DW_AT_location of a variable because
10416 it was DW_OP_addr of address of the variable, but the variable doesn't
10417 live in memory, try to emit const value attribute for the initializer.
10418
10419 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10420
10421 * tree.h (VECTOR_TYPE_P): New macro.
10422 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10423 TYPE_MODE): Use it.
10424 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10425 VEC_COND_EXPR cannot be lvalues.
10426 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10427
10428 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10429
10430 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10431 Restrict the transformation to equal modes.
10432
10433 2013-03-21 Richard Biener <rguenther@suse.de>
10434
10435 PR tree-optimization/39326
10436 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10437 (MEM_ANALYZABLE): Adjust.
10438 (record_mem_ref_loc): Move bitmap ops ...
10439 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10440 unanalyzable refs, do not record locations for it.
10441 (analyze_memory_references): Allocate ref zero as shared
10442 unanalyzable ref.
10443 (refs_independent_p): Do not test for unanalyzed mems here.
10444 (ref_indep_loop_p_1): Special-case disambiguation against
10445 the unanalyzed ref.
10446 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10447
10448 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10449
10450 * config/arm/arm-protos.h (tune_params): Add
10451 prefer_neon_for_64bits field.
10452 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10453 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10454 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10455 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10456 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10457 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10458 (arm_option_override): Handle -mneon-for-64bits new option.
10459 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10460 (prefer_neon_for_64bits): Declare new variable.
10461 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10462 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10463 (arch_enabled): Handle new arch types. Remove support for onlya8
10464 and nota8.
10465 (one_cmpldi2): Use new arch names.
10466 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10467 * config/arm/arm.opt (mneon-for-64bits): Add option.
10468 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10469 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10470 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10471 of onlya8.
10472 * doc/invoke.texi (-mneon-for-64bits): Document.
10473
10474 2013-03-21 Richard Biener <rguenther@suse.de>
10475
10476 PR tree-optimization/39326
10477 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10478 (sort_bbs_in_loop_postorder_cmp): New function.
10479 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10480
10481 2013-03-21 Richard Biener <rguenther@suse.de>
10482
10483 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10484 (vect_insert_into_interleaving_chain): Likewise.
10485 (vect_drs_dependent_in_basic_block): Inline ...
10486 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10487 split out from ...
10488 (vect_analyze_data_ref_dependence): ... here. Simplify.
10489 (vect_check_interleaving): Simplify.
10490 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10491 (vect_slp_analyze_data_ref_dependences): ... this new function.
10492 (dr_group_sort_cmp): New function.
10493 (vect_analyze_data_ref_accesses): Compute data-reference groups
10494 here instead of in vect_analyze_data_ref_dependence. Use
10495 a more efficient algorithm.
10496 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10497 vect_slp_analyze_data_ref_dependences. Call
10498 vect_analyze_data_ref_accesses earlier.
10499 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10500 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10501 (vect_slp_analyze_data_ref_dependences): New prototype.
10502
10503 2013-03-21 Richard Biener <rguenther@suse.de>
10504
10505 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10506 ref is stored in the loop.
10507 (find_refs_for_sm): Walk only over all stores.
10508 (store_motion_loop): Allocate from lim_bitmap_obstack.
10509 (store_motion): Likewise.
10510
10511 2013-03-21 Richard Biener <rguenther@suse.de>
10512
10513 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10514 Update virtual SSA form.
10515
10516 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10517
10518 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10519 * configure: Regenerate.
10520 * config.in: Regenerate.
10521 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10522 if !HAVE_LD_EH_FRAME_CIEV3.
10523
10524 2013-03-21 Richard Biener <rguenther@suse.de>
10525
10526 * tree-cfg.c (verify_expr_no_block): New function.
10527 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10528 nor DECL_VALUE_EXPR have locations with associated blocks.
10529 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10530 (clear_unused_block_pointer): Remove code dealing with
10531 blocks in DECL_DEBUG_EXPR locations.
10532
10533 2013-03-21 Richard Biener <rguenther@suse.de>
10534
10535 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10536 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10537 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10538 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10539 instead of DECL_DEBUG_EXPR_IS_FROM.
10540 * gimplify.c (gimplify_modify_expr): Likewise.
10541 * tree-cfg.c (verify_expr_location_1): Likewise.
10542 * tree-complex.c (create_one_component_var): Likewise.
10543 * tree-sra.c (create_access_replacement): Likewise.
10544 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10545 (clear_unused_block_pointer): Likewise.
10546 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10547 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10548 * var-tracking.c (var_debug_decl): Likewise.
10549 (track_expr_p): Likewise.
10550 * tree-inline.c (add_local_variables): Likewise. Set
10551 DECL_HAS_DEBUG_EXPR_P after copying it.
10552 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10553 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10554
10555 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10556
10557 PR bootstrap/56656
10558 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10559 * configure: Regenerate.
10560 * config.in: Regenerate.
10561 * config/i386/i386.md (*movdf_internal): Use
10562 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10563 movd instead of movq mnemonic for interunit moves.
10564 (*movdi_internal): Ditto.
10565
10566 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10567
10568 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10569 (abd<mode>_3): New pattern.
10570 (aba<mode>_3): New pattern.
10571 (fabd<mode>_3): New pattern.
10572
10573 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10574
10575 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10576 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10577 occurrence of REGISTER_PREFIX as its empty string.
10578
10579 2013-03-20 Jeff Law <law@redhat.com>
10580
10581 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10582 addititional equivalences for equality comparisons between an SSA_NAME
10583 and a constant where the SSA_NAME was set from a widening conversion.
10584
10585 2013-03-20 Walter Lee <walt@tilera.com>
10586
10587 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10588
10589 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10590
10591 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10592 depending on type attribute.
10593 (*movti_internal): Ditto.
10594 (*movtf_internal): Ditto.
10595 (*movxf_internal): Ditto.
10596 (*movdf_internal): Ditto.
10597 (*movsf_internal): Ditto.
10598
10599 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10600
10601 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10602 maybe_vex for sselog1 and ssemov types.
10603 (*movdi_internal): Reorder operand constraints.
10604 (*movsi_internal): Ditto. Set prefix attribute to
10605 maybe_vex for sselog1 and ssemov types.
10606 (*movtf_internal): Set prefix attribute to maybe_vex
10607 for sselog1 and ssemov types.
10608 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10609 DImode ssemov types. Reorder operand constraints.
10610 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10611 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10612 attribute for SImode ssemov types. Reorder operand constraints.
10613
10614 2013-03-20 Martin Jambor <mjambor@suse.cz>
10615
10616 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10617 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10618
10619 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10620
10621 * config/rs6000/predicates.md (indexed_address, update_address_mem
10622 update_indexed_address_mem): New predicates.
10623 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10624 attribute for load/store instructions.
10625 * config/rs6000/dfp.md (movsd_store): Likewise.
10626 (movsd_load): Likewise.
10627 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10628 (unnamed HI->DI extend define_insn): Likewise.
10629 (unnamed SI->DI extend define_insn): Likewise.
10630 (unnamed QI->SI extend define_insn): Likewise.
10631 (unnamed QI->HI extend define_insn): Likewise.
10632 (unnamed HI->SI extend define_insn): Likewise.
10633 (unnamed HI->SI extend define_insn): Likewise.
10634 (extendsfdf2_fpr): Likewise.
10635 (movsi_internal1): Likewise.
10636 (movsi_internal1_single): Likewise.
10637 (movhi_internal): Likewise.
10638 (movqi_internal): Likewise.
10639 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10640 attribute for load/store instructions.
10641 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10642 instructions.
10643 (mov<mode>_softfloat): Likewise.
10644 (mov<mode>_hardfloat32): Likewise.
10645 (mov<mode>_hardfloat64): Likewise.
10646 (mov<mode>_softfloat64): Likewise.
10647 (movdi_internal32): Likewise.
10648 (movdi_internal64): Likewise.
10649 (probe_stack_<mode>): Likewise.
10650
10651 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10652
10653 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10654 floating point, and decimal floating point to reload iterator.
10655
10656 * config/rs6000/constraints.md (wl constraint): New constraints to
10657 return FLOAT_REGS if certain options are used to reduce the number
10658 of separate patterns that exist in the file.
10659 (wx constraint): Likewise.
10660 (wz constraint): Likewise.
10661
10662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10663 -mdebug=reg, print wg, wl, wx, and wz constraints.
10664 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10665 Initialize the reload functions for 64-bit binary/decimal floating
10666 point types.
10667 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10668 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10669 create the buffer on the stack to overcome not having a 32-bit
10670 load and store.
10671 (rs6000_emit_move): Likewise.
10672 (rs6000_secondary_memory_needed_rtx): Likewise.
10673 (rs6000_alloc_sdmode_stack_slot): Likewise.
10674 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10675 via xxlxor, just like DFmode 0.0.
10676
10677 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10678 define as 1 if we are running on a power7 or newer.
10679 (enum r6000_reg_class_enum): Add new constraints.
10680
10681 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10682 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10683 with other moves by using conditional constraits (wg). Use LFIWZX
10684 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
10685 (movsd splitter): Likewise.
10686 (movsd_hardfloat): Likewise.
10687 (movsd_softfloat): Likewise.
10688
10689 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10690 binary and decimal floating point moves.
10691 (fmove_ok): New attributes to combine binary and decimal floating
10692 point moves, and to combine power6x (mfpgpr) moves along normal
10693 floating moves.
10694 (real_value_to_target): Likewise.
10695 (f32_lr): Likewise.
10696 (f32_lm): Likewise.
10697 (f32_li): Likewise.
10698 (f32_sr): Likewise.
10699 (f32_sm): Likewise.
10700 (f32_si): Likewise.
10701 (movsf): Combine binary and decimal floating point moves. Combine
10702 power6x (mfpgpr) moves with other moves by using conditional
10703 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
10704 (mov<mode> for SFmode/SDmode); Likewise.
10705 (SFmode/SDmode splitters): Likewise.
10706 (movsf_hardfloat): Likewise.
10707 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10708 (movsf_softfloat): Likewise.
10709 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10710
10711 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10712 wx and wz constraints.
10713
10714 * config/rs6000/constraints.md (wg constraint): New constraint to
10715 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10716
10717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10718 constraint.
10719
10720 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10721 -mdebug=reg, print wg, wl, wx, and wz constraints.
10722 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10723 Initialize the reload functions for 64-bit binary/decimal floating
10724 point types.
10725 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10726 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10727 create the buffer on the stack to overcome not having a 32-bit
10728 load and store.
10729 (rs6000_emit_move): Likewise.
10730 (rs6000_secondary_memory_needed_rtx): Likewise.
10731 (rs6000_alloc_sdmode_stack_slot): Likewise.
10732 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10733 via xxlxor, just like DFmode 0.0.
10734
10735 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10736 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10737 with other moves by using conditional constraits (wg). Use LFIWZX
10738 and STFIWX for loading SDmode on power7.
10739 (movdd splitters): Likewise.
10740 (movdd_hardfloat32): Likewise.
10741 (movdd_softfloat32): Likewise.
10742 (movdd_hardfloat64_mfpgpr): Likewise.
10743 (movdd_hardfloat64): Likewise.
10744 (movdd_softfloat64): Likewise.
10745
10746 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10747 64-bit binary and decimal floating point moves.
10748 (FMOVE64X): Likewise.
10749 (movdf): Combine 64-bit binary and decimal floating point moves.
10750 Combine power6x (mfpgpr) moves with other moves by using
10751 conditional constraits (wg).
10752 (mov<mode> for DFmode/DDmode): Likewise.
10753 (DFmode/DDmode splitters): Likewise.
10754 (movdf_hardfloat32): Likewise.
10755 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10756 (movdf_softfloat32): Likewise.
10757 (movdf_hardfloat64_mfpgpr): Likewise.
10758 (movdf_hardfloat64): Likewise.
10759 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10760 (movdf_softfloat64): Likewise.
10761 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10762 (reload_<mode>_load): Move to later in the file so they aren't in
10763 the middle of the floating point move insns.
10764 (reload_<mode>_store): Likewise.
10765
10766 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10767 constraint.
10768
10769 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10770 constraint if -mdebug=reg.
10771 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10772 Enable using dd reload support if needed.
10773
10774 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10775 binary and decimal floating point moves in rs6000.md.
10776 (movtd_internal): Likewise.
10777
10778 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10779 decimal floating point moves.
10780 (movtf): Likewise.
10781 (movtf_internal): Likewise.
10782 (mov<mode>_internal, TDmode/TFmode): Likewise.
10783 (movtf_softfloat): Likewise.
10784 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10785
10786 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10787 movdi_internal64, using wg constraint for move direct operations.
10788 (movdi_internal64): Likewise.
10789
10790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10791 MODES_TIEABLE_P for selected modes. Print the numerical value of
10792 the various virtual registers. Use GPR/FPR first/last values,
10793 instead of hard coding the register numbers. Print which modes
10794 have reload functions registered.
10795 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10796 settings before/after setting cpu, target and subtarget settings.
10797 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10798 and for secondary reload failures in rs6000_secondary_reload_inner.
10799 (rs6000_secondary_reload_fail): Likewise.
10800 (rs6000_secondary_reload_inner): Likewise.
10801
10802 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10803 macros for first/last GPR and FPR registers.
10804 (LAST_GPR_REGNO): Likewise.
10805 (FIRST_FPR_REGNO): Likewise.
10806 (LAST_FPR_REGNO): Likewise.
10807
10808 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10809 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10810 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10811 (vcond<mode><mode>): Likewise.
10812 (vcondu<mode><mode>): Likewise.
10813 (vector_gtu<mode>): Likewise.
10814 (vector_gte<mode>): Likewise.
10815 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10816 to prevent the compiler from converting DImode operations to TImode.
10817 (ior<mode>3): Likewise.
10818 (and<mode>3): Likewise.
10819 (one_cmpl<mode>2): Likewise.
10820 (nor<mode>3): Likewise.
10821 (andc<mode>3): Likewise.
10822
10823 * config/rs6000/constraints.md (wt constraint): New constraint
10824 that returns VSX_REGS if TImode is allowed in VSX registers.
10825
10826 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10827 constant under VSX.
10828
10829 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10830 similar to TImode, but it is restricted to being in the GPRs.
10831
10832 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10833 TImode to occupy a single VSX register.
10834
10835 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10836 -mvsx-timode for power7/power8.
10837 (power7 cpu): Likewise.
10838 (power8 cpu): Likewise.
10839
10840 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10841 sure that TFmode/TDmode take up two registers if they are ever
10842 allowed in the upper VSX registers.
10843 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10844 registers.
10845 (rs6000_init_hard_regno_mode_ok): Likewise.
10846 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10847 constraint. Print if LRA is turned on.
10848 (rs6000_option_override_internal): Give an error if -mvsx-timode
10849 and VSX is not enabled.
10850 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10851 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10852 to reg+offset addressing. Use PTImode when checking offset
10853 addresses for validity.
10854 (reg_offset_addressing_ok_p): Likewise.
10855 (rs6000_legitimate_offset_address_p): Likewise.
10856 (rs6000_legitimize_address): Likewise.
10857 (rs6000_legitimize_reload_address): Likewise.
10858 (rs6000_legitimate_address_p): Likewise.
10859 (rs6000_eliminate_indexed_memrefs): Likewise.
10860 (rs6000_emit_move): Likewise.
10861 (rs6000_secondary_reload): Likewise.
10862 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10863 reloads to fpr registers to continue to use reg+offset addressing,
10864 but 64-bit reloads to altivec registers need reg+reg addressing.
10865 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10866 it. Treat LO_SUM like a PLUS operation.
10867 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
10868 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
10869 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10870 registers to share a register with a smaller sized type, since VSX
10871 puts scalars in the upper 64-bits.
10872 (print_operand): Add support for PTImode.
10873 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10874 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10875 registers, but don't have arithmetic support.
10876 (rs6000_memory_move_cost): Add test for VSX.
10877 (rs6000_opt_masks): Add -mvsx-timode.
10878
10879 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10880 for TImode.
10881 (VSs): Likewise.
10882 (VSr): Use wt constraint for TImode.
10883 (VSv): Drop TImode support.
10884 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10885 (vsx_movti_64bit): Likewise.
10886 (vsx_movti_32bit): Likewise.
10887 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10888 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10889 one '?' on the appropriate output constraint. Do not allow TImode
10890 logical operations on 32-bit systems.
10891 (vsx_ior<mode>3): Likewise.
10892 (vsx_xor<mode>3): Likewise.
10893 (vsx_one_cmpl<mode>2): Likewise.
10894 (vsx_nor<mode>3): Likewise.
10895 (vsx_andc<mode>3): Likewise.
10896 (vsx_concat_<mode>): Likewise.
10897 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10898
10899 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10900 OPTION_MASK_VSX_TIMODE.
10901 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10902 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10903
10904 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10905 (TI2 iterator): New iterator for TImode, PTImode.
10906 (wd mode attribute): Add values for vector types.
10907 (movti_string): Replace TI move operations with operations for TImode
10908 and PTImode. Add support for TImode being allowed in VSX registers.
10909 (mov<mode>_string, TImode/PTImode): Likewise.
10910 (movti_ppc64): Likewise.
10911 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10912 (TI mode splitters): Likewise.
10913
10914 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10915 constraint.
10916
10917 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
10918
10919 PR tree-optimization/56355
10920 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10921 Also handle integers with undefined overflow.
10922
10923 2013-03-20 Catherine Moore <clm@codesourcery.com>
10924 Maciej W. Rozycki <macro@codesourcery.com>
10925 Tom de Vries <tom@codesourcery.com>
10926 Nathan Sidwell <nathan@codesourcery.com>
10927 Iain Sandoe <iain@codesourcery.com>
10928 Nathan Froyd <froydnj@codesourcery.com>
10929 Chao-ying Fu <fu@mips.com>
10930
10931 * doc/extend.texi: (micromips, nomicromips, nocompression):
10932 Document new function attributes.
10933 * doc/invoke.texi (minterlink-compressed, mmicromips,
10934 m14k, m14ke, m14kec): Document new options.
10935 (minterlink-mips16): Update documentation.
10936 * doc/md.texi (ZC, ZD): Document new constraints.
10937 * configure.ac (gcc_cv_as_micromips): Check if linker
10938 supports the .set micromips directive.
10939 * configure: Regenerate.
10940 * config.in: Regenerate.
10941 * config/mips/mips-tables.opt: Regenerate.
10942 * config/mips/micromips.md: New file.
10943 * constraints.md (ZC, ZD): New constraints.
10944 * config/mips/predicates.md (movep_src_register): New predicate.
10945 (movep_src_operand): New predicate.
10946 (non_volatile_mem_operand): New predicate.
10947 * config/mips/mips.md (multimem): New type.
10948 (length): Differentiate between 17-bit and 18-bit branch offsets.
10949 (MOVEP1, MOVEP2): New mode iterator.
10950 (mov_<load>l): Use ZC constraint.
10951 (mov_<load>r): Likewise.
10952 (mov_<store>l): Likewise.
10953 (mov_<store>r): Likewise.
10954 (*branch_equality<mode>_inverted): Add microMIPS support.
10955 (*branch_equality<mode>): Likewise.
10956 (*jump_absolute): Likewise.
10957 (indirect_jump_<mode>): Likewise.
10958 (tablejump_<mode>): Likewise.
10959 (<optab>_internal): Likewise.
10960 (sibcall_internal): Likewise.
10961 (sibcall_value_internal): Likewise.
10962 (prefetch): Use constraint ZD.
10963 * config/mips/mips.opt (minterlink-compressed): New option.
10964 (minterlink-mips16): Now an alias for minterlink-compressed.
10965 (mmicromips): New option.
10966 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10967 (compare_and_swap_12): Likewise.
10968 (sync_add<mode>): Likewise.
10969 (sync_<optab>_12): Likewise.
10970 (sync_old_<optab>_12): Likewise.
10971 (sync_new_<optab>_12): Likewise.
10972 (sync_nand_12): Likewise.
10973 (sync_old_nand_12): Likewise.
10974 (sync_new_nand_12): Likewise.
10975 (sync_sub<mode>): Likewise.
10976 (sync_old_add<mode>): Likewise.
10977 (sync_old_sub<mode>): Likewise.
10978 (sync_new_add<mode>): Likewise.
10979 (sync_new_sub<mode>): Likewise.
10980 (sync_<optab><mode>): Likewise.
10981 (sync_old_<optab><mode>): Likewise.
10982 (sync_new_<optab><mode>): Likewise.
10983 (sync_nand<mode>): Likewise.
10984 (sync_old_nand<mode>): Likewise.
10985 (sync_new_nand<mode>): Likewise.
10986 (sync_lock_test_and_set<mode>): Likewise.
10987 (test_and_set_12): Likewise.
10988 (atomic_compare_and_swap<mode>): Likewise.
10989 (atomic_exchange<mode>_llsc): Likewise.
10990 (atomic_fetch_add<mode>_llsc): Likewise.
10991 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10992 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10993 (umips_save_restore_pattern_p): Likewise.
10994 (umips_load_store_pair_p): Likewise.
10995 (umips_output_load_store_pair): Likewise.
10996 (umips_movep_target_p): Likewise.
10997 (umips_12bit_offset_address_p): Likewise.
10998 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10999 (mips_base_mips16): Rename this...
11000 (mips_base_compression_flags): ...to this. Update all uses.
11001 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11002 (mips_mips16_decl_p): Delete.
11003 (mips_nomips16_decl_p): Delete.
11004 (mips_get_compress_on_flags): New function.
11005 (mips_get_compress_off_flags): New function.
11006 (mips_get_compress_mode): New function.
11007 (mips_get_compress_on_name): New function.
11008 (mips_get_compress_off_name): New function.
11009 (mips_insert_attributes): Support multiple compression types.
11010 (mips_merge_decl_attributes): Likewise.
11011 (umips_12bit_offset_address_p): New function.
11012 (mips_start_function_definition): Emit .set micromips directive.
11013 (mips_call_may_need_jalx_p): New function.
11014 (mips_function_ok_for_sibcall): Add microMIPS support.
11015 (mips_print_operand_punctuation): Support short delay slots and
11016 compact jumps.
11017 (umips_swm_mask, umips_swm_encoding): New.
11018 (umips_build_save_restore): New function.
11019 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11020 (was_mips16_p): Remove.
11021 (old_compression_mode): New.
11022 (mips_set_compression_mode): New function.
11023 (mips_set_current_function): Add microMIPS support.
11024 (mips_option_override): Likewise.
11025 (umips_save_restore_pattern_p): New function.
11026 (umips_output_save_restore): New function.
11027 (umips_load_store_pair_p_1): New function.
11028 (umips_load_store_pair_p): New function.
11029 (umips_output_load_store_pair_1): New function.
11030 (umips_output_load_store_pair): New function.
11031 (umips_movep_target_p) New function.
11032 (mips_prepare_pch_save): Add microMIPS support.
11033 * config/mips/mips.h (TARGET_COMPRESSION): New.
11034 (TARGET_CPU_CPP_BUILTINS): Update macro
11035 to use new compression flags and to support microMIPS.
11036 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11037 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11038 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11039 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11040 (ASM_SPEC): Support mmicromips and mno-micromips.
11041 (M16STORE_REG_P): New macro.
11042 (MIPS_CALL): Support TARGET_MICROMIPS.
11043 (MICROMIPS_J): New macro.
11044 (mips_base_mips16): Rename this...
11045 (mips_base_compression_flags): ...to this.
11046 (UMIPS_12BIT_OFFSET_P): New macro.
11047 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11048 (MULTILIB_DIRNAMES): Likewise.
11049 2013-03-20 Richard Biener <rguenther@suse.de>
11050
11051 PR tree-optimization/56661
11052 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11053 the result does not have to be distinct.
11054
11055 2013-03-20 Richard Biener <rguenther@suse.de>
11056
11057 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11058 remap_gimple_op_r.
11059
11060 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11061 Steven Bosscher <steven@gcc.gnu.org>
11062
11063 PR rtl-optimization/56605
11064 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11065
11066 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
11067
11068 PR bootstrap/56656
11069 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11070 that require movd instead of movq.
11071
11072 2013-03-20 Richard Biener <rguenther@suse.de>
11073
11074 * tree-ssa-structalias.c (struct variable_info): Add pointer
11075 to the first field of an aggregate with sub-vars. Make
11076 this and the pointer to the next subfield its ID.
11077 (vi_next): New function.
11078 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11079 storedanything_id, integer_id): Increment by one.
11080 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11081 get_call_clobber_vi): Adjust.
11082 (solution_set_expand): Simplify and speedup.
11083 (solution_set_add): Inline into ...
11084 (set_union_with_increment): ... this. Adjust accordingly.
11085 (do_sd_constraint): Likewise.
11086 (do_ds_constraint): Likewise.
11087 (do_complex_constraint): Simplify.
11088 (build_pred_graph): Adjust.
11089 (solve_graph): Likewise. Simplify and speedup.
11090 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11091 get_constraint_for_component_ref, get_constraint_for_1,
11092 first_vi_for_offset, first_or_preceding_vi_for_offset,
11093 create_function_info_for, create_variable_info_for_1,
11094 create_variable_info_for, intra_create_variable_infos): Adjust.
11095 (init_base_vars): Push NULL for ID zero.
11096 (compute_points_to_sets): Adjust.
11097
11098 2013-03-20 Richard Biener <rguenther@suse.de>
11099
11100 * cfgloop.c (verify_loop_structure): Streamline and avoid
11101 ICEing on corrupt loop tree.
11102 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11103 loop tree.
11104
11105 2013-03-20 Richard Biener <rguenther@suse.de>
11106
11107 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11108 check whether an SSA update is needed.
11109
11110 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11111
11112 * config/mips/constraints.md (T): Rename to...
11113 (Yf): ...this.
11114 (U): Rename to...
11115 (Yd): ...this.
11116 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11117 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11118
11119 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11120
11121 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11122 (*subsi3_carryin_uxtw): Likewise.
11123
11124 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11125
11126 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11127 (*rorsi3_insn_uxtw): Likewise.
11128
11129 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11130
11131 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11132 (*extrsi5_insn_uxtw): Likewise.
11133
11134 2013-03-19 Richard Biener <rguenther@suse.de>
11135
11136 PR tree-optimization/56273
11137 * passes.c (init_optimization_passes): Move second VRP after DOM.
11138
11139 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
11140
11141 * config/i386/i386.md (*movti_internal): Merge from
11142 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11143 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11144 nox64 isa attributes.
11145
11146 2013-03-18 Richard Biener <rguenther@suse.de>
11147
11148 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11149 (unite): Likewise.
11150 (merge_node_constraints): Likewise.
11151 (build_succ_graph): Likewise.
11152 (valid_graph_edge): Inline into single caller.
11153 (unify_nodes): Likewise. Use bitmap_set_bit return value
11154 and cache varinfo.
11155 (scc_visit): Fix formatting and variable use.
11156 (do_sd_constraint): Use gcc_checking_assert.
11157 (do_ds_constraint): Likewise.
11158 (do_complex_constraint): Likewise.
11159 (condense_visit): Likewise. Cleanup.
11160 (dump_pred_graph): New function.
11161 (perform_var_substitution): Dump the pred-graph before
11162 variable substitution.
11163 (find_equivalent_node): Use gcc_checking_assert.
11164 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11165
11166 2013-03-18 Richard Biener <rguenther@suse.de>
11167
11168 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11169 Remove cond_expr_stmt_list argument and do not gimplify the
11170 built expression.
11171 (vect_loop_versioning): Adjust.
11172 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11173 Cleanup to use less temporaries.
11174 (vect_create_data_ref_ptr): Cleanup.
11175
11176 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11177
11178 PR tree-optimization/56635
11179 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11180 require types_compatible_p types.
11181
11182 2013-03-18 Nick Clifton <nickc@redhat.com>
11183
11184 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11185 spurious backslash.
11186
11187 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11188 Add missing line to comment describing function.
11189
11190 2013-03-18 Richard Biener <rguenther@suse.de>
11191
11192 PR tree-optimization/56210
11193 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11194 Handle string / character search functions.
11195 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11196
11197 2013-03-18 Richard Biener <rguenther@suse.de>
11198
11199 PR middle-end/56483
11200 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11201 and implement properly.
11202 * gimple.h (gimple_cond_single_var_p): Remove.
11203
11204 2013-03-18 Richard Biener <rguenther@suse.de>
11205
11206 * tree-data-ref.h (find_data_references_in_loop): Declare.
11207 * tree-data-ref.c (get_references_in_stmt): Use a stack
11208 vector pre-allocated in the callers.
11209 (find_data_references_in_stmt): Adjust.
11210 (graphite_find_data_references_in_stmt): Likewise.
11211 (create_rdg_vertices): Likewise.
11212 (find_data_references_in_loop): Export.
11213 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11214 Compute dependences here...
11215 (vect_analyze_data_refs): ...not here. When we encounter
11216 a non-vectorizable data reference in basic-block vectorization
11217 truncate the data reference vector. Do not bother to
11218 fixup data-dependence information for gather loads.
11219 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11220 of data references, as reported.
11221
11222 2013-03-18 Richard Biener <rguenther@suse.de>
11223
11224 PR tree-optimization/3713
11225 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11226 has_constants and expr.
11227 (stmt_has_constants): Properly valueize SSA names when deciding
11228 whether the stmt has constants.
11229
11230 2013-03-18 Richard Biener <rguenther@suse.de>
11231
11232 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11233 whole function when there is nothing to do.
11234 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11235 * tree-vectorizer.c (vectorize_loops): Update virtual and
11236 loop-closed SSA once.
11237 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11238
11239 2013-03-18 Richard Biener <rguenther@suse.de>
11240
11241 PR middle-end/56113
11242 * domwalk.c (bb_postorder): New global static.
11243 (cmp_bb_postorder): New function.
11244 (walk_dominator_tree): Replace scheme imposing an order for
11245 visiting dominator sons by one sorting them at the time they
11246 are pushed on the stack.
11247
11248 2013-03-18 Richard Biener <rguenther@suse.de>
11249
11250 PR tree-optimization/39326
11251 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11252 (struct mem_ref): Replace mem member with ao_ref typed member.
11253 (MEM_ANALYZABLE): Adjust.
11254 (memref_eq): Likewise.
11255 (mem_ref_alloc): Likewise.
11256 (gather_mem_refs_stmt): Likewise.
11257 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11258 (execute_sm_if_changed_flag_set): Adjust.
11259 (execute_sm): Likewise.
11260 (ref_always_accessed_p): Likewise.
11261 (refs_independent_p): Likewise.
11262 (can_sm_ref_p): Likewise.
11263
11264 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11265
11266 PR c/56566
11267 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11268 return 1 even for !unsignedp.
11269
11270 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11271
11272 * config/i386/i386.md (isa): Add x64 and nox64.
11273 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11274 (*pushtf): Enable *roF alternative for x64 isa only.
11275 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11276 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11277 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11278 (*movtf_internal): Merge from *movtf_internal_rex64 and
11279 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11280 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11281 nox64 isa attributes.
11282 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11283 nox64 isa attributes.
11284 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11285
11286 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11287
11288 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11289
11290 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11291
11292 PR target/56640
11293 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11294 class names. Remove trailing comma after "ALL_REGS".
11295
11296 2013-03-16 Jan Hubicka <jh@suse.cz>
11297
11298 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11299 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11300 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11301 of cgraph_get_create_node.
11302 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11303
11304 2013-03-16 Jason Merrill <jason@redhat.com>
11305
11306 PR debug/49090
11307 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11308 with DW_AT_default_value.
11309
11310 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11311
11312 * BASE-VER: Set to 4.9.0.
11313
11314 2013-03-14 Andi Kleen <ak@linux.intel.com>
11315
11316 PR target/56619
11317 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11318 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11319 Document _x* TSX intrinsics.
11320
11321 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11322 David Holsgrove <david.holsgrove@xilinx.com>
11323
11324 * configure.ac: Add MicroBlaze TLS support detection.
11325 * configure: Regenerate.
11326 * config/microblaze/microblaze-protos.h
11327 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11328 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11329 * config/microblaze/microblaze.c (microblaze_address_type): Add
11330 ADDRESS_TLS and tls_reloc address types.
11331 (microblaze_address_info): Add tls_reloc.
11332 (TARGET_HAVE_TLS): Define.
11333 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11334 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11335 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11336 load_tls_operand, microblaze_call_tls_get_addr,
11337 microblaze_legitimize_tls_address): New functions.
11338 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11339 (get_base_reg): Use microblaze_tls_symbol_p.
11340 (microblaze_classify_address): Handle TLS.
11341 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11342 label_mentioned_p and microblaze_tls_referenced_p.
11343 (microblaze_legitimize_address): Handle TLS.
11344 (microblaze_address_insns): Handle ADDRESS_TLS.
11345 (pic_address_needs_scratch): Handle TLS.
11346 (print_operand_address): Handle TLS.
11347 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11348 (microblaze_expand_move): Handle TLS.
11349 (microblaze_legitimate_constant_p): Check
11350 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11351 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11352 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11353 (PIC_OFFSET_TABLE_REGNUM): Set.
11354 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11355 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11356 (addsi3, movsi_internal2, movdf_internal): Update constraints
11357 * config/microblaze/predicates.md (arith_plus_operand): Define
11358 (move_operand): Redefine as move_src_operand,
11359 check microblaze_tls_referenced_p.
11360
11361 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11362
11363 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11364 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11365
11366 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11367
11368 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11369 CC mode for AND.
11370
11371 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11372
11373 PR tree-optimization/53265
11374 * common.opt (Waggressive-loop-optimizations): New option.
11375 * tree-ssa-loop-niter.c: Include tree-pass.h.
11376 (do_warn_aggressive_loop_optimizations): New function.
11377 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11378 if number_of_latch_executions returned constant.
11379 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11380 early. If number_of_latch_executions returned constant, set
11381 nb_iterations_upper_bound back to it.
11382 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11383 field.
11384 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11385 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11386
11387 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11388 (MULTILIB_OSDIRNAMES): Set.
11389 * genmultilib: If defaultosdirname doesn't start with :: , set
11390 defaultosdirname2 instead, clear it and emit two . multilib_raw
11391 entries instead of just one.
11392
11393 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11394
11395 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11396 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11397 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11398 (SUBTARGET_OVERRIDE_OPTIONS): New.
11399
11400 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11401
11402 PR target/49880
11403 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11404 (musermode): Convert to Var(TARGET_USERMODE).
11405 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11406 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11407 * config/sh/sh.c (sh_option_override): Use
11408 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11409 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11410 condition.
11411 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11412 TARGET_SH4.
11413 (udivsi3_i4_single, divsi3_i4_single): Use
11414 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11415
11416 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11417
11418 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11419 default setting.
11420
11421 2013-03-13 Richard Biener <rguenther@suse.de>
11422
11423 PR tree-optimization/56608
11424 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11425 calls when vectorizing basic-blocks.
11426
11427 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11428
11429 PR plugins/45078
11430 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11431 tm_file.
11432
11433 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11434
11435 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11436
11437 2013-03-11 Jan Hubicka <jh@suse.cz>
11438
11439 PR lto/56557
11440 * lto-streamer-out.c (output_symbol_p): Skip references from
11441 constructors of external variables.
11442
11443 2013-03-11 Jan Hubicka <jh@suse.cz>
11444
11445 PR middle-end/56571
11446 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11447 from pseudos.
11448 * emit-rtl.c (verify_rtx_sharing): Likewise.
11449 (copy_insn_1): Likewise.
11450 * rtl.c (copy_rtx): Likewise.
11451
11452 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11453
11454 PR target/56591
11455 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11456 output_operand_lossage message.
11457
11458 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11459
11460 PR target/56470
11461 * arm.c (shift_op): Validate RTL pattern on the fly.
11462 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11463 the RTL.
11464
11465 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11466
11467 PR target/56347
11468 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11469 new call patterns that clobber %fr12.
11470 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11471 split and postreload patterns.
11472 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11473 registers %fr12 and %fr12R as call used.
11474
11475 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11476
11477 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11478 (canon_address, record_store, replace_read, check_mem_read_rtx,
11479 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11480 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11481 rest_of_handle_dse): Likewise.
11482
11483 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11484
11485 PR middle-end/56524
11486 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11487 Add base_optabs.
11488 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11489 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11490 (save_optabs_if_changed): Replace with...
11491 (init_tree_optimization_optabs): ...this.
11492 * optabs.c (save_optabs_if_changed): Rename to...
11493 (init_tree_optimization_optabs): ...this. Take the optimization node
11494 as argument. Do nothing if the base optabs are already correct.
11495 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11496 to recompute optabs.
11497 * function.h (function): Remove optabs field.
11498 * function.c (invoke_set_current_function_hook): Call
11499 init_tree_optimization_optabs. Use the result to initialize
11500 this_fn_optabs.
11501
11502 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11503
11504 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11505 if GTMA_HAS_NO_INSTRUMENTATION.
11506 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11507 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11508 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11509 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11510 GTMA_HAS_NO_INSTRUMENTATION.
11511
11512 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11513
11514 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11515 libasan_preinit.o.
11516
11517 2013-03-08 Marek Polacek <polacek@redhat.com>
11518 Jakub Jelinek <jakub@redhat.com>
11519
11520 PR tree-optimization/56478
11521 * predict.c (is_comparison_with_loop_invariant_p): Change the
11522 type of loop_step to tree.
11523 (predict_loops): Adjust.
11524 (predict_iv_comparison): Perform the computations on double_ints.
11525
11526 2013-03-08 Richard Biener <rguenther@suse.de>
11527
11528 PR tree-optimization/56570
11529 * tree-cfg.c (verify_expr_location_1): Verify locations for
11530 DECL_DEBUG_EXPR.
11531 * tree-sra.c (create_access_replacement): Strip locations
11532 from DECL_DEBUG_EXPRs.
11533
11534 2013-03-08 Richard Biener <rguenther@suse.de>
11535
11536 * tree-inline.c (expand_call_inline): Do not associate
11537 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11538 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11539
11540 2013-03-08 Richard Biener <rguenther@suse.de>
11541
11542 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11543 or block changes with -Og. Fix for location / block encoding
11544 changes and PHI arguments with locations.
11545
11546 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11547
11548 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11549 for all counters.
11550 (struct output_info): Likewise.
11551 (register_overhead): Remove bad gcc_assert.
11552 (bitmap_find_bit): If there is only a single bitmap element, do not
11553 count a miss as a search.
11554 (print_statistics): Update for counter type changes.
11555 (dump_bitmap_statistics): Likewise. Print headers such that they
11556 are properly lined up with the printed counters.
11557
11558 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11559
11560 PR tree-optimization/56559
11561 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11562 check that it has only a single use.
11563
11564 2013-03-07 Richard Biener <rguenther@suse.de>
11565
11566 * doc/invoke.texi (fwhole-program): Discourage use in combination
11567 with -flto.
11568
11569 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11570
11571 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11572
11573 PR tree-optimization/56539
11574 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11575 instead of GSI_CONTINUE_LINKING as last argument to
11576 force_gimple_operand_gsi. Adjust function comment.
11577
11578 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11579 aarch64-cores.def.
11580
11581 PR middle-end/56548
11582 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11583 promoted mode, convert the result back to the original mode.
11584
11585 2013-03-06 Richard Biener <rguenther@suse.de>
11586
11587 PR middle-end/56294
11588 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11589 (insert_updated_phi_nodes_compare_uids): New function.
11590 (update_ssa): Sort symbols_to_rename after UID before
11591 traversing it to insert PHI nodes.
11592
11593 2013-03-06 Richard Biener <rguenther@suse.de>
11594
11595 PR middle-end/50494
11596 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11597 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11598
11599 Revert
11600 2013-02-13 Richard Biener <rguenther@suse.de>
11601
11602 PR lto/50494
11603 * varasm.c (output_constant_def_1): Get the decl representing
11604 the constant as argument.
11605 (output_constant_def): Wrap output_constant_def_1.
11606 (make_decl_rtl): Use output_constant_def_1 with the decl
11607 representing the constant.
11608 (build_constant_desc): Optionally re-use a decl already
11609 representing the constant.
11610 (tree_output_constant_def): Adjust.
11611
11612 2013-03-06 Joey Ye <joey.ye@arm.com>
11613
11614 PR lto/50293
11615 * gcc.c (convert_white_space): New function.
11616 (main): Handles white space in function name.
11617
11618 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11619
11620 PR target/56529
11621 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11622 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11623 to SH_DIV_CALL_TABLE for TARGET_SH2.
11624 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11625 list.
11626 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11627 call-table options.
11628
11629 2013-03-05 Sterling Augustine <saugustine@google.com>
11630 Cary Coutant <ccoutant@google.com>
11631
11632 PR debug/55364
11633 * dwarf2out.c (resolve_addr): Don't call
11634 remove_loc_list_addr_table_entries a second time for the same
11635 expression.
11636
11637 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11638
11639 PR debug/56510
11640 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11641 (avoid_complex_debug_insns): New function.
11642 (expand_debug_locations): Call it.
11643
11644 PR rtl-optimization/56484
11645 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11646 lifetimes of hard registers on small register class machines.
11647
11648 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11649
11650 * config/microblaze/microblaze-protos.h: Rename
11651 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11652 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11653 fast_interrupt.
11654 (microblaze_fast_interrupt_function_p): New function.
11655 (microblaze_is_interrupt_handler): Rename to
11656 microblaze_is_interrupt_variant and add fast_interrupt check.
11657 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11658 (save_restore_insns): Likewise.
11659 (compute_frame_size): Likewise.
11660 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11661 (microblaze_globalize_label): Likewise.
11662 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11663 * config/microblaze/microblaze.md: Use wrapper
11664 microblaze_is_interrupt_variant.
11665
11666 2013-03-05 Kai Tietz <ktietz@redhat.com>
11667
11668 * sdbout.c (sdbout_one_type): Switch to current function's section
11669 supporting cold/hot.
11670
11671 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11672
11673 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11674 -mxl-reorder.
11675
11676 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11677
11678 PR middle-end/56461
11679 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11680 if VALGRIND_GET_VBITS is defined, temporarily make object
11681 memory all defined, and restore previous valgrind addressability
11682 and definability afterwards. Free this_object at the end.
11683
11684 PR middle-end/56461
11685 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11686 right before calling lra_create_live_ranges, also call it
11687 when clearing live_p. Only call lra_clear_live_ranges
11688 at the end if live_p.
11689
11690 PR middle-end/56461
11691 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11692
11693 2013-03-05 Richard Biener <rguenther@suse.de>
11694
11695 PR tree-optimization/56521
11696 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11697 value-id.
11698
11699 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11700
11701 PR c++/55135
11702 * except.h (remove_unreachable_eh_regions): New prototype.
11703 * except.c (remove_eh_handler_splicer): New function, split out
11704 of remove_eh_handler.
11705 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11706 warning about running it on many EH regions one at a time.
11707 (remove_unreachable_eh_regions_worker): New function, walk the
11708 EH tree in depth-first order and remove non-marked regions.
11709 (remove_unreachable_eh_regions): New function.
11710 * tree-eh.c (mark_reachable_handlers): New function, split out
11711 from remove_unreachable_handlers.
11712 (remove_unreachable_handlers): Use mark_reachable_handlers and
11713 remove_unreachable_eh_regions.
11714 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11715 and remove_unreachable_eh_regions.
11716
11717 2013-03-05 Richard Biener <rguenther@suse.de>
11718
11719 PR middle-end/56525
11720 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11721 not freeing them until the end.
11722
11723 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11724
11725 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11726
11727 2013-03-05 Richard Biener <rguenther@suse.de>
11728
11729 PR tree-optimization/56270
11730 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11731 of loads after scheduling an SLP instance.
11732
11733 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11734
11735 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11736 tic6x.exp.
11737 (check_gcc_parallelize): Run guality.exp as a separate job from
11738 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11739 struct-layout-1.exp with stackalign.exp.
11740
11741 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11742
11743 PR middle-end/56461
11744 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11745 load_index sbitmap even if some bit in it isn't set.
11746
11747 PR middle-end/56461
11748 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11749 (discover_iteration_bound_by_body_walk): Change queues to
11750 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11751 spelling in comment. Call safe_push on queues[bound_index] directly.
11752 Release queues[queue_index] in every iteration unconditionally.
11753 Release bounds vector.
11754
11755 PR middle-end/56461
11756 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11757 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11758 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11759 inner_phis vector.
11760
11761 2013-03-05 Richard Biener <rguenther@suse.de>
11762
11763 PR lto/56515
11764 * tree-inline.c (remap_blocks_to_null): New function.
11765 (expand_call_inline): When expanding a call stmt without
11766 an associated block inline remap all callee blocks to NULL.
11767
11768 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11769
11770 PR rtl-optimization/56494
11771 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11772 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11773 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11774
11775 PR middle-end/56461
11776 * sel-sched-ir.c (free_sched_pools): Release
11777 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11778 if succs_info_pool.max_top isn't -1.
11779
11780 PR bootstrap/56509
11781 * opts.c (opts_obstack, opts_concat): Moved to...
11782 * opts-common.c (opts_obstack, opts_concat): ... here.
11783
11784 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11785
11786 PR middle-end/56461
11787 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11788
11789 2013-03-04 Martin Jambor <mjambor@suse.cz>
11790
11791 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11792 all appropriate places.
11793
11794 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11795
11796 PR tree-optimization/56424
11797 * ipa-split.c (split_function): Do not set the RSO flag if result is
11798 not by reference and its type is a register type.
11799
11800 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
11801
11802 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11803 (microblaze_legitimate_pic_operand): Likewise
11804 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11805 new function microblaze_legitimate_pic_operand
11806 * config/microblaze/microblaze-protos.h
11807 (microblaze_legitimate_pic_operand): Declare.
11808
11809 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11810
11811 * config/microblaze/predicates.md (call_insn_simple_operand):
11812 New predicate for supported rtx code types.
11813 * config/microblaze/microblaze.md (call_internal1): Use
11814 call_insn_simple_operand predicate.
11815
11816 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11817
11818 PR middle-end/56461
11819 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11820 partitions.ordered_remove.
11821
11822 PR middle-end/56461
11823 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11824 vec_oprnds0.create (1) for modifier == NONE.
11825
11826 PR middle-end/56461
11827 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11828 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11829 vec_oprnds1 right before pushing anything to it for
11830 scalar_shift_arg.
11831
11832 PR middle-end/56461
11833 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11834 set nbbs to 0 instead of having separate code path.
11835 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11836 instead of false as last argument if returning NULL.
11837
11838 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11839
11840 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11841 the attribute is now called "target" instead of "option".
11842 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11843 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11844 attribute/pragma name for TARGET_OPTION_VALID_P and
11845 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11846 * doc/tm.texi: Regenerated.
11847
11848 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
11849
11850 * config/microblaze/microblaze.c:
11851 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11852 * config/microblaze/microblaze.h: Add -mxl-reorder to
11853 DRIVER_SELF_SPECS.
11854 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11855 instructions emitted if TARGET_REORDER.
11856 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11857 or 0 for -m/-mno case, but initialises as 2 to detect default use case
11858 separately.
11859
11860 2013-03-01 Xinliang David Li <davidxl@google.com>
11861
11862 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11863 walk length.
11864
11865 2013-03-01 Jakub Jelinek <jakub@redhat.com>
11866
11867 PR middle-end/56461
11868 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11869 vector even when returning true. Fix up function comment formatting.
11870
11871 PR middle-end/56461
11872 * ira-build.c (ira_loop_nodes_count): New variable.
11873 (create_loop_tree_nodes): Initialize it.
11874 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11875
11876 PR middle-end/56461
11877 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11878 method on dr_chain and result_chain.
11879 * tree-vect-stmts.c (vectorizable_store): Only call
11880 result_chain.create if j == 0.
11881
11882 PR middle-end/56461
11883 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11884 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11885 before overwriting it.
11886
11887 2013-03-01 Tobias Burnus <burnus@net-b.de>
11888
11889 * doc/extended.texi (C Extensions): Change order in @menu
11890 to match @node.
11891 (Other MIPS Built-in Functions): Move last MIPS entry before
11892 "picoChip Built-in Functions".
11893 (SH Built-in Functions): Move after RX Built-in Functions.
11894 * doc/gcc.texi (Introduction): Change order in @menu
11895 to match @node.
11896 * doc/md.texi (Constraints): Ditto.
11897 * gty.texi (Type Information): Ditto.
11898 (User-provided marking routines for template types): Make
11899 subsection.
11900 * doc/invoke.texi (AArch64 Options): Move before
11901 "Adapteva Epiphany Options".
11902
11903 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11904 Jakub Jelinek <jakub@redhat.com>
11905
11906 PR sanitizer/56454
11907 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11908 no_address_safety_analysis attribute.
11909 * doc/extend.texi (no_address_safety_attribute): Rename to
11910 no_sanitize_address attribute, mention no_address_safety_analysis
11911 attribute as deprecated alias.
11912
11913 2013-02-28 Jakub Jelinek <jakub@redhat.com>
11914
11915 PR middle-end/56461
11916 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11917 type to vec<vec<tree> > *.
11918 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11919 to be vec<tree> instead of vec<tree> *, set vec_defs
11920 to vNULL and call vec_defs.create (number_of_vects), adjust other
11921 uses of vec_defs.
11922 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11923 vectorizable_condition): Adjust vect_get_slp_defs callers.
11924
11925 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11926
11927 * config/aarch64/aarch64.c
11928 (aarch64_float_const_representable): Remove unused variable.
11929
11930 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11931
11932 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11933
11934 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11935
11936 * config/aarch64/aarch64-builtins.c
11937 (aarch64_init_simd_builtins): Make static.
11938
11939 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11940
11941 * config/aarch64/aarch64.c
11942 (aarch64_simd_make_constant): Make static.
11943
11944 2013-02-28 Martin Jambor <mjambor@suse.cz>
11945
11946 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11947 with no initialization to the RHS of debug statements.
11948
11949 2013-02-28 Martin Jambor <mjambor@suse.cz>
11950
11951 PR tree-optimization/56294
11952 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11953 Adjust dumping.
11954 (get_access_replacement): Do not call create_access_replacement.
11955 Assert a replacement exists.
11956 (get_repl_default_def_ssa_name): Create the replacement declaration
11957 itself.
11958
11959 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11960
11961 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11962 final_end_function.
11963
11964 2013-02-28 Marek Polacek <polacek@redhat.com>
11965
11966 PR rtl-optimization/56466
11967 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11968 if we're changing a loop.
11969 (peel_loops_completely): Likewise.
11970
11971 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11972
11973 PR c++/55813
11974 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11975
11976 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11977
11978 PR target/56445
11979 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11980 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11981 INTX_FTYPE_FX, FX_FTYPE_INTX.
11982 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11983
11984 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
11985
11986 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11987 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11988 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11989 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11990 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11991 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11992 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11993 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11994 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11995 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11996 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11997 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11998 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11999 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12000 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12001 (avrxmega6): Increase max flash segments from 5 to 6.
12002 * config/avr/t-multilib: Regenerate.
12003 * config/avr/avr-tables.opt: Regenerate.
12004 * doc/avr-mmcu.texi: Regenerate.
12005
12006 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12007
12008 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12009 (avr_device_to_arch): Rename to avr_device_to_ld.
12010 (avr_device_to_as): New prototype.
12011 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12012 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12013 * config/avr/driver-avr.c (avr_device_to_as): New.
12014 (avr_device_to_arch): Rename to avr_device_to_ld.
12015
12016 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12017
12018 PR middle-end/56461
12019 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12020 method on dr_chain and result_chain.
12021
12022 PR middle-end/56461
12023 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12024 pointer_set_destroy on not_executed_last_iteration.
12025
12026 PR middle-end/56461
12027 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12028
12029 PR middle-end/56461
12030 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12031 FOR_EACH_DEFINED_FUNCTION when freeing state.
12032
12033 PR middle-end/56461
12034 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12035 pool_free.
12036 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12037 overwriting it.
12038
12039 PR middle-end/56461
12040 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12041 known_aggs[i].items and release known_aggs vector.
12042
12043 PR middle-end/56461
12044 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12045
12046 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12047
12048 * config/microblaze/microblaze.c (microblaze_emit_compare):
12049 Use xor for EQ/NE comparisions.
12050 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12051 (cbranchsf4): Adjust operator to comparison_operator.
12052
12053 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12054
12055 PR middle-end/56461
12056 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12057 vector.
12058 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12059 vec_safe_push, always update *slot.
12060 (redirect_edge_var_map_clear): Use vec_free.
12061 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12062 (free_var_map_entry): Use vec_free.
12063 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12064 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12065
12066 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
12067
12068 PR middle-end/45472
12069 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12070 when the may_trap_p bit of the exprs being merged differs.
12071 Reorder tests for speculativeness in the logical and operator.
12072
12073 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12074
12075 * incpath.c (add_standard_paths): Use reconcat instead of concat
12076 where appropriate and avoid leaking memory.
12077
12078 * opts.h: Include obstack.h.
12079 (opts_concat): New prototype.
12080 (opts_obstack): New declaration.
12081 * opts.c (opts_concat): New function.
12082 (opts_obstack): New variable.
12083 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12084 (finish_options): Use opts_concat instead of concat
12085 and XOBNEWVEC instead of XNEWVEC.
12086 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12087 generate_option): Likewise.
12088 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12089 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12090
12091 PR target/56455
12092 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12093 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12094
12095 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12096
12097 PR middle-end/56461
12098 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12099
12100 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12101
12102 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12103 (arm_block_move_unaligned_straight): Likewise.
12104 (arm_adjust_block_mem): Likewise.
12105
12106 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12107
12108 PR target/48901
12109 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12110 temp, cond and label.
12111 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12112
12113 PR target/52500
12114 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12115 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12116
12117 PR target/52501
12118 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12119 of prologue/epilogue functions.
12120
12121 PR target/52550
12122 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12123 Remove unused variable cfa_offset.
12124 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12125
12126 PR target/54639
12127 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12128 type promotion to unsigned.
12129
12130 PR target/54640
12131 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12132 for HOST_WIDE_INT of 32 bit / same size as int.
12133 (arm_block_move_unaligned_straight): Likewise.
12134 (arm_adjust_block_mem): Likewise.
12135
12136 PR target/54662
12137 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12138 ALL_CFLAGS.
12139
12140 2013-02-26 Marek Polacek <polacek@redhat.com>
12141
12142 PR tree-optimization/56426
12143 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12144
12145 2013-02-26 Richard Biener <rguenther@suse.de>
12146
12147 PR target/56444
12148 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12149 unused variable loops.
12150
12151 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12152
12153 PR tree-optimization/56448
12154 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12155 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12156 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12157 later operands of the references, or even first operand for
12158 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12159
12160 PR tree-optimization/56443
12161 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12162 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12163 to type_for_mode langhook.
12164
12165 2013-02-25 Matt Turner <mattst88@gmail.com>
12166
12167 * doc/invoke.texi: Document r4700.
12168
12169 2013-02-25 Richard Biener <rguenther@suse.de>
12170
12171 PR tree-optimization/56175
12172 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12173 split out from ...
12174 (simplify_bitwise_binary): ... here. Also guard the conversion
12175 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12176
12177 2013-02-25 Catherine Moore <clm@codesourcery.com>
12178
12179 Revert:
12180 2013-02-24 Catherine Moore <clm@codesourcery.com>
12181 Maciej W. Rozycki <macro@codesourcery.com>
12182 Tom de Vries <tom@codesourcery.com>
12183 Nathan Sidwell <nathan@codesourcery.com>
12184 Iain Sandoe <iain@codesourcery.com>
12185 Nathan Froyd <froydnj@codesourcery.com>
12186 Chao-ying Fu <fu@mips.com>
12187
12188 * doc/extend.texi: (micromips, nomicromips, nocompression):
12189 Document new function attributes.
12190 * doc/invoke.texi (minterlink-compressed, mmicromips,
12191 m14k, m14ke, m14kec): Document new options.
12192 (minterlink-mips16): Update documentation.
12193 * doc/md.texi (ZC, ZD): Document new constraints.
12194 * configure.ac (gcc_cv_as_micromips): Check if linker
12195 supports the .set micromips directive.
12196 * configure: Regenerate.
12197 * config.in: Regenerate.
12198 * config/mips/mips-tables.opt: Regenerate.
12199 * config/mips/micromips.md: New file.
12200 * constraints.md (ZC, AD): New constraints.
12201 * config/mips/predicates.md (movep_src_register): New predicate.
12202 (movep_src_operand): New predicate.
12203 (non_volatile_mem_operand): New predicate.
12204 * config/mips/mips.md (multimem): New type.
12205 (length): Differentiate between 17-bit and 18-bit branch offsets.
12206 (MOVEP1, MOVEP2): New mode iterator.
12207 (mov_<load>l): Use ZC constraint.
12208 (mov_<load>r): Likewise.
12209 (mov_<store>l): Likewise.
12210 (mov_<store>r): Likewise.
12211 (*branch_equality<mode>_inverted): Add microMIPS support.
12212 (*branch_equality<mode>): Likewise.
12213 (*jump_absolute): Likewise.
12214 (indirect_jump_<mode>): Likewise.
12215 (tablejump_<mode>): Likewise.
12216 (<optab>_internal): Likewise.
12217 (sibcall_internal): Likewise.
12218 (sibcall_value_internal): Likewise.
12219 (prefetch): Use constraint ZD.
12220 * config/mips/mips.opt (minterlink-compressed): New option.
12221 (minterlink-mips16): Now an alias for minterlink-compressed.
12222 (mmicromips): New option.
12223 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12224 (compare_and_swap_12): Likewise.
12225 (sync_add<mode>): Likewise.
12226 (sync_<optab>_12): Likewise.
12227 (sync_old_<optab>_12): Likewise.
12228 (sync_new_<optab>_12): Likewise.
12229 (sync_nand_12): Likewise.
12230 (sync_old_nand_12): Likewise.
12231 (sync_new_nand_12): Likewise.
12232 (sync_sub<mode>): Likewise.
12233 (sync_old_add<mode>): Likewise.
12234 (sync_old_sub<mode>): Likewise.
12235 (sync_new_add<mode>): Likewise.
12236 (sync_new_sub<mode>): Likewise.
12237 (sync_<optab><mode>): Likewise.
12238 (sync_old_<optab><mode>): Likewise.
12239 (sync_new_<optab><mode>): Likewise.
12240 (sync_nand<mode>): Likewise.
12241 (sync_old_nand<mode>): Likewise.
12242 (sync_new_nand<mode>): Likewise.
12243 (sync_lock_test_and_set<mode>): Likewise.
12244 (test_and_set_12): Likewise.
12245 (atomic_compare_and_swap<mode>): Likewise.
12246 (atomic_exchange<mode>_llsc): Likewise.
12247 (atomic_fetch_add<mode>_llsc): Likewise.
12248 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12249 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12250 (umips_save_restore_pattern_p): Likewise.
12251 (umips_load_store_pair_p): Likewise.
12252 (umips_output_load_store_pair): Likewise.
12253 (umips_movep_target_p): Likewise.
12254 (umips_12bit_offset_address_p): Likewise.
12255 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12256 (mips_base_mips16): Rename this...
12257 (mips_base_compression_flags): ...to this. Update all uses.
12258 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12259 (mips_mips16_decl_p): Delete.
12260 (mips_nomips16_decl_p): Delete.
12261 (mips_get_compress_on_flags): New function.
12262 (mips_get_compress_off_flags): New function.
12263 (mips_get_compress_mode): New function.
12264 (mips_get_compress_on_name): New function.
12265 (mips_get_compress_off_name): New function.
12266 (mips_insert_attributes): Support multiple compression types.
12267 (mips_merge_decl_attributes): Likewise.
12268 (umips_12bit_offset_address_p): New function.
12269 (mips_start_function_definition): Emit .set micromips directive.
12270 (mips_call_may_need_jalx_p): New function.
12271 (mips_function_ok_for_sibcall): Add microMIPS support.
12272 (mips_print_operand_punctuation): Support short delay slots and
12273 compact jumps.
12274 (umips_swm_mask, umips_swm_encoding): New.
12275 (umips_build_save_restore): New function.
12276 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12277 (was_mips16_p): Remove.
12278 (old_compression_mode): New.
12279 (mips_set_compression_mode): New function.
12280 (mips_set_current_function): Add microMIPS support.
12281 (mips_option_override): Likewise.
12282 (umips_save_restore_pattern_p): New function.
12283 (umips_output_save_restore): New function.
12284 (umips_load_store_pair_p_1): New function.
12285 (umips_load_store_pair_p): New function.
12286 (umips_output_load_store_pair_1): New function.
12287 (umips_output_load_store_pair): New function.
12288 (umips_movep_target_p) New function.
12289 (mips_prepare_pch_save): Add microMIPS support.
12290 * config/mips/mips.h (TARGET_COMPRESSION): New.
12291 (TARGET_CPU_CPP_BUILTINS): Update macro
12292 to use new compression flags and to support microMIPS.
12293 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12294 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12295 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12296 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12297 (ASM_SPEC): Support mmicromips and mno-micromips.
12298 (M16STORE_REG_P): New macro.
12299 (MIPS_CALL): Support TARGET_MICROMIPS.
12300 (MICROMIPS_J): New macro.
12301 (mips_base_mips16): Rename this...
12302 (mips_base_compression_flags): ...to this.
12303 (UMIPS_12BIT_OFFSET_P): New macro.
12304 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12305 (MULTILIB_DIRNAMES): Likewise.
12306
12307 2013-02-25 Tom de Vries <tom@codesourcery.com>
12308
12309 PR rtl-optimization/56131
12310 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12311 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12312 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12313
12314 2013-02-25 Tobias Burnus <burnus@net-b.de>
12315
12316 * doc/invoke.texi (-fsanitize=): Move from optimization
12317 to debugging options.
12318
12319 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12320
12321 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12322
12323 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12324 Alexander Monakov <amonakov@ispras.ru>
12325
12326 PR middle-end/56077
12327 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12328 flush pending lists also on non-jumps. Adjust comment.
12329
12330 2013-02-24 Catherine Moore <clm@codesourcery.com>
12331 Maciej W. Rozycki <macro@codesourcery.com>
12332 Tom de Vries <tom@codesourcery.com>
12333 Nathan Sidwell <nathan@codesourcery.com>
12334 Iain Sandoe <iain@codesourcery.com>
12335 Nathan Froyd <froydnj@codesourcery.com>
12336 Chao-ying Fu <fu@mips.com>
12337
12338 * doc/extend.texi: (micromips, nomicromips, nocompression):
12339 Document new function attributes.
12340 * doc/invoke.texi (minterlink-compressed, mmicromips,
12341 m14k, m14ke, m14kec): Document new options.
12342 (minterlink-mips16): Update documentation.
12343 * doc/md.texi (ZC, ZD): Document new constraints.
12344 * configure.ac (gcc_cv_as_micromips): Check if linker
12345 supports the .set micromips directive.
12346 * configure: Regenerate.
12347 * config.in: Regenerate.
12348 * config/mips/mips-tables.opt: Regenerate.
12349 * config/mips/micromips.md: New file.
12350 * constraints.md (ZC, AD): New constraints.
12351 * config/mips/predicates.md (movep_src_register): New predicate.
12352 (movep_src_operand): New predicate.
12353 (non_volatile_mem_operand): New predicate.
12354 * config/mips/mips.md (multimem): New type.
12355 (length): Differentiate between 17-bit and 18-bit branch offsets.
12356 (MOVEP1, MOVEP2): New mode iterator.
12357 (mov_<load>l): Use ZC constraint.
12358 (mov_<load>r): Likewise.
12359 (mov_<store>l): Likewise.
12360 (mov_<store>r): Likewise.
12361 (*branch_equality<mode>_inverted): Add microMIPS support.
12362 (*branch_equality<mode>): Likewise.
12363 (*jump_absolute): Likewise.
12364 (indirect_jump_<mode>): Likewise.
12365 (tablejump_<mode>): Likewise.
12366 (<optab>_internal): Likewise.
12367 (sibcall_internal): Likewise.
12368 (sibcall_value_internal): Likewise.
12369 (prefetch): Use constraint ZD.
12370 * config/mips/mips.opt (minterlink-compressed): New option.
12371 (minterlink-mips16): Now an alias for minterlink-compressed.
12372 (mmicromips): New option.
12373 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12374 (compare_and_swap_12): Likewise.
12375 (sync_add<mode>): Likewise.
12376 (sync_<optab>_12): Likewise.
12377 (sync_old_<optab>_12): Likewise.
12378 (sync_new_<optab>_12): Likewise.
12379 (sync_nand_12): Likewise.
12380 (sync_old_nand_12): Likewise.
12381 (sync_new_nand_12): Likewise.
12382 (sync_sub<mode>): Likewise.
12383 (sync_old_add<mode>): Likewise.
12384 (sync_old_sub<mode>): Likewise.
12385 (sync_new_add<mode>): Likewise.
12386 (sync_new_sub<mode>): Likewise.
12387 (sync_<optab><mode>): Likewise.
12388 (sync_old_<optab><mode>): Likewise.
12389 (sync_new_<optab><mode>): Likewise.
12390 (sync_nand<mode>): Likewise.
12391 (sync_old_nand<mode>): Likewise.
12392 (sync_new_nand<mode>): Likewise.
12393 (sync_lock_test_and_set<mode>): Likewise.
12394 (test_and_set_12): Likewise.
12395 (atomic_compare_and_swap<mode>): Likewise.
12396 (atomic_exchange<mode>_llsc): Likewise.
12397 (atomic_fetch_add<mode>_llsc): Likewise.
12398 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12399 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12400 (umips_save_restore_pattern_p): Likewise.
12401 (umips_load_store_pair_p): Likewise.
12402 (umips_output_load_store_pair): Likewise.
12403 (umips_movep_target_p): Likewise.
12404 (umips_12bit_offset_address_p): Likewise.
12405 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12406 (mips_base_mips16): Rename this...
12407 (mips_base_compression_flags): ...to this. Update all uses.
12408 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12409 (mips_mips16_decl_p): Delete.
12410 (mips_nomips16_decl_p): Delete.
12411 (mips_get_compress_on_flags): New function.
12412 (mips_get_compress_off_flags): New function.
12413 (mips_get_compress_mode): New function.
12414 (mips_get_compress_on_name): New function.
12415 (mips_get_compress_off_name): New function.
12416 (mips_insert_attributes): Support multiple compression types.
12417 (mips_merge_decl_attributes): Likewise.
12418 (umips_12bit_offset_address_p): New function.
12419 (mips_start_function_definition): Emit .set micromips directive.
12420 (mips_call_may_need_jalx_p): New function.
12421 (mips_function_ok_for_sibcall): Add microMIPS support.
12422 (mips_print_operand_punctuation): Support short delay slots and
12423 compact jumps.
12424 (umips_swm_mask, umips_swm_encoding): New.
12425 (umips_build_save_restore): New function.
12426 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12427 (was_mips16_p): Remove.
12428 (old_compression_mode): New.
12429 (mips_set_compression_mode): New function.
12430 (mips_set_current_function): Add microMIPS support.
12431 (mips_option_override): Likewise.
12432 (umips_save_restore_pattern_p): New function.
12433 (umips_output_save_restore): New function.
12434 (umips_load_store_pair_p_1): New function.
12435 (umips_load_store_pair_p): New function.
12436 (umips_output_load_store_pair_1): New function.
12437 (umips_output_load_store_pair): New function.
12438 (umips_movep_target_p) New function.
12439 (mips_prepare_pch_save): Add microMIPS support.
12440 * config/mips/mips.h (TARGET_COMPRESSION): New.
12441 (TARGET_CPU_CPP_BUILTINS): Update macro
12442 to use new compression flags and to support microMIPS.
12443 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12444 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12445 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12446 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12447 (ASM_SPEC): Support mmicromips and mno-micromips.
12448 (M16STORE_REG_P): New macro.
12449 (MIPS_CALL): Support TARGET_MICROMIPS.
12450 (MICROMIPS_J): New macro.
12451 (mips_base_mips16): Rename this...
12452 (mips_base_compression_flags): ...to this.
12453 (UMIPS_12BIT_OFFSET_P): New macro.
12454 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12455 (MULTILIB_DIRNAMES): Likewise.
12456
12457 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12458
12459 PR target/52555
12460 * target-globals.c (save_target_globals): For init_reg_sets and
12461 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12462
12463 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12464
12465 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12466 * config/aarch64/t-aarch64
12467 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12468
12469 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12470
12471 PR inline-asm/56148
12472 * lra-constraints.c (process_alt_operands): Reload operand
12473 conflicting with earlier clobber only if no more other conflicting
12474 operands.
12475
12476 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12477
12478 PR sanitizer/56393
12479 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12480 if not linking a shared library.
12481
12482 2013-02-22 Seth LaForge <sethml@google.com>
12483
12484 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12485
12486 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12487
12488 * config/arm/arm.md (split for extendsidi): Update condition.
12489 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12490 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12491 (qhs_zextenddi_cstr): Likewise.
12492
12493 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12494
12495 PR middle-end/56420
12496 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12497 avoid signed wrapping.
12498 (expand_mult): Handle properly multiplication by
12499 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12500 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12501 in the compiler if coeff is HOST_WIDE_INT_MIN.
12502 (expand_divmod): Don't make ext_op1 static, change it's type to
12503 uhwi. Avoid undefined behavior in -INTVAL (op1).
12504
12505 PR rtl-optimization/50339
12506 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12507 field.
12508 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12509 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12510 into splitting_ashiftrt field.
12511 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12512 ASHIFTRT.
12513 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12514 choices.
12515
12516 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12517
12518 PR middle-end/56108
12519 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12520 are sure to go irrevocable.
12521
12522 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12523
12524 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12525 scalars are valid operands.
12526
12527 2013-02-21 Martin Jambor <mjambor@suse.cz>
12528
12529 PR tree-optimization/56310
12530 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12531 only matching indices and non-negative final offsets.
12532 (intersect_aggregates_with_edge): Pass src_idx to
12533 agg_replacements_to_vector. Pass src_idx insstead of index to
12534 intersect_with_agg_replacements.
12535
12536 2013-02-21 Martin Jambor <mjambor@suse.cz>
12537
12538 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12539 instead of hard-wired defaults.
12540
12541 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12542
12543 * doc/invoke.texi (MIPS Options): Update documentation of the
12544 floating-point multiply-accumulate instruction restrictions.
12545
12546 2013-02-21 Kostya Serebryany <kcc@google.com>
12547
12548 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12549 asan_shadow_offset on x86_64 linux.
12550
12551 2013-02-21 Richard Biener <rguenther@suse.de>
12552
12553 PR tree-optimization/56415
12554 Revert
12555 2013-02-11 Richard Biener <rguenther@suse.de>
12556
12557 PR tree-optimization/56273
12558 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12559 first VRP run.
12560
12561 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12562
12563 PR bootstrap/56258
12564 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12565 instead of @itemx.
12566
12567 PR inline-asm/56405
12568 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12569 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12570
12571 2013-02-20 Jan Hubicka <jh@suse.cz>
12572
12573 PR tree-optimization/56265
12574 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12575 when target is referenced for first time.
12576
12577 2013-02-20 Richard Biener <rguenther@suse.de>
12578
12579 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12580 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12581 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12582 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12583 not return anything.
12584 (rename_ssa_copies): Do not remove unused locals.
12585 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12586 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12587 * passes.c (execute_function_todo): Do not schedule unused locals
12588 removal if cleanup_tree_cfg did something.
12589 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12590 about the number of removed locals.
12591
12592 2013-02-20 Richard Biener <rguenther@suse.de>
12593
12594 PR tree-optimization/56398
12595 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12596
12597 2013-02-20 Martin Jambor <mjambor@suse.cz>
12598
12599 PR tree-optimization/55334
12600 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12601 restricted pointers to arrays.
12602
12603 2013-02-20 Richard Biener <rguenther@suse.de>
12604 Jakub Jelinek <jakub@redhat.com>
12605
12606 PR tree-optimization/56396
12607 * tree-ssa-ccp.c (n_const_val): New static variable.
12608 (get_value): Return NULL for SSA names we don't have a lattice
12609 entry for.
12610 (ccp_initialize): Initialize n_const_val.
12611 * tree-ssa-copy.c (n_copy_of): New static variable.
12612 (init_copy_prop): Initialize n_copy_of.
12613 (get_value): Return NULL_TREE for SSA names we don't have a
12614 lattice entry for.
12615
12616 2013-02-20 Martin Jambor <mjambor@suse.cz>
12617
12618 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12619
12620 2013-02-20 Richard Biener <rguenther@suse.de>
12621
12622 * genpreds.c (write_lookup_constraint): Do not compare first
12623 letter of the constraint again.
12624
12625 2013-02-20 Richard Biener <rguenther@suse.de>
12626
12627 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12628 and ceil_log2.
12629 (get_use_iv_cost): Terminate hashtable walk when coming across
12630 an empty entry.
12631
12632 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12633
12634 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12635 reassociation for avx2 targets.
12636
12637 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12638
12639 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12640 Add version check for v8.10.a to enable microblaze_has_clz
12641 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12642 version and TARGET_PATTERN_COMPARE check
12643 * config/microblaze/microblaze.md: New clzsi2 instruction
12644
12645 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12646
12647 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12648 function before branching.
12649
12650 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12651
12652 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12653 DUMP_INSN_RTX_UID.
12654 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12655
12656 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12657
12658 PR middle-end/55889
12659 * sel-sched.c: Include ira.h.
12660 (implicit_clobber_conflict_p): New function.
12661 (moveup_expr): Use it.
12662 * Makefile.in (sel-sched.o): Depend on ira.h.
12663
12664 2013-02-19 Richard Biener <rguenther@suse.de>
12665
12666 PR tree-optimization/56384
12667 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12668 (vn_hash_type): Split out from ...
12669 (vn_hash_constant_with_type): ... here.
12670 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12671 (vn_phi_eq): Compare types from vn_phi_s structure.
12672 (vn_phi_lookup): Populate vn_phi_s type.
12673 (vn_phi_insert): Likewise.
12674
12675 2013-02-19 Jakub Jelinek <jakub@redhat.com>
12676
12677 PR tree-optimization/56350
12678 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12679 if haven't found reduction or nested cycle operand, rather than
12680 asserting we must find it.
12681
12682 PR tree-optimization/56381
12683 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12684 to fold_build3.
12685
12686 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
12687 Jakub Jelinek <jakub@redhat.com>
12688
12689 PR target/52555
12690 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12691 (swap_optab_enable): Same.
12692 (init_all_optabs): Use argument instead of global.
12693 * tree.h (struct tree_optimization_option): New field target_optabs.
12694 * expr.h (init_all_optabs): Add argument to prototype.
12695 (TREE_OPTIMIZATION_OPTABS): New.
12696 (save_optabs_if_changed): Protoize.
12697 * optabs.h: Declare this_fn_optabs.
12698 * optabs.c (save_optabs_if_changed): New.
12699 Declare this_fn_optabs.
12700 (init_optabs): Add argument to init_all_optabs() call.
12701 * function.c (invoke_set_current_function_hook): Handle per
12702 function optabs.
12703 * function.h (struct function): New field optabs.
12704 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12705 optimization_current_node has changed.
12706 * target-globals.h (save_target_globals_default_opts): Protoize.
12707 * target-globals.c (save_target_globals_default_opts): New.
12708
12709 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12710
12711 PR target/56347
12712 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12713 registers %fr12 and %fr12R as call used.
12714
12715 PR target/56214
12716 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12717 and HImode, require all displacements to be an integer multiple of
12718 their mode size.
12719 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12720 only allow QImode and HImode when reload is in progress and strict is
12721 true. Likewise for symbolic addresses. Use base14_operand to check
12722 displacements in REG+BASE addresses.
12723
12724 2013-02-18 Richard Biener <rguenther@suse.de>
12725
12726 PR tree-optimization/56366
12727 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12728 handle sign-conversion of outer-loop initial induction value.
12729
12730 2013-02-18 Richard Biener <rguenther@suse.de>
12731
12732 PR middle-end/56349
12733 * cfghooks.c (merge_blocks): If we merge a latch into another
12734 block adjust references to it.
12735 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12736 (verify_loop_structure): Verify that a recorded latch is in fact
12737 a latch.
12738
12739 2013-02-18 Richard Biener <rguenther@suse.de>
12740
12741 PR tree-optimization/56321
12742 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12743 order SSA name release and virtual operand unlinking.
12744
12745 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12746
12747 * config/microblaze/microblaze.md (save_stack_block): Define.
12748 (restore_stack_block): Likewise.
12749
12750 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12751
12752 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12753 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12754 * config/microblaze/microblaze.c (microblaze_option_override):
12755 Bail out early for PIC modes when target does not support PIC.
12756
12757 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12758
12759 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12760 Replace with a microblaze version.
12761 (microblaze_trampoline_init): Adapt for microblaze.
12762 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12763 microblaze.
12764
12765 2013-02-16 Jakub Jelinek <jakub@redhat.com>
12766 Dodji Seketeli <dodji@redhat.com>
12767
12768 PR asan/56330
12769 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12770 (instrument_mem_region_access): Do not forget to always put
12771 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12772 0) statement, even for cases where either 'base' or 'base + len'
12773 are not instrumented -- because they have been previously
12774 instrumented. Simplify the logic by putting all the statements
12775 instrument 'base + len' inside a sequence, and then insert that
12776 sequence right before the current insertion point. Then, to
12777 instrument 'base + len', just get an iterator on that statement.
12778 And do not forget to update the pointer to iterator the function
12779 received as argument.
12780
12781 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12782
12783 PR rtl-optimization/56348
12784 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12785
12786 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12787
12788 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12789 (clean_graph_dump_file): Pass base to start_graph_dump.
12790
12791 2013-02-14 Richard Henderson <rth@redhat.com>
12792
12793 PR target/55941
12794 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12795
12796 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12797
12798 * collect2-aix.h: Define F_LOADONLY.
12799
12800 2013-02-14 Richard Biener <rguenther@suse.de>
12801
12802 PR lto/50494
12803 * varasm.c (output_constant_def_1): Get the decl representing
12804 the constant as argument.
12805 (output_constant_def): Wrap output_constant_def_1.
12806 (make_decl_rtl): Use output_constant_def_1 with the decl
12807 representing the constant.
12808 (build_constant_desc): Optionally re-use a decl already
12809 representing the constant.
12810 (tree_output_constant_def): Adjust.
12811
12812 2013-02-14 Dodji Seketeli <dodji@redhat.com>
12813
12814 Fix an asan crash
12815 * asan.c (instrument_builtin_call): Really put the length of the
12816 second source argument into src1_len.
12817
12818 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12819
12820 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12821 argument. If it is false, don't create edge from then_bb to
12822 fallthru_bb.
12823 (insert_if_then_before_iter): Pass true to it.
12824 (build_check_stmt): Pass false to it.
12825 (transform_statements): Flush hash table only on extended basic
12826 block boundaries, rather than at the beginning of every bb.
12827 Don't flush hash table on nonfreeing_call_p calls.
12828 * tree-flow.h (nonfreeing_call_p): New prototype.
12829 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12830
12831 2013-02-13 David S. Miller <davem@davemloft.net>
12832
12833 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12834
12835 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12836
12837 PR target/56184
12838 * ira.c (max_regno_before_ira): Move from ...
12839 (ira): ... here.
12840 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12841 vec_safe_length.
12842
12843 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12844
12845 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12846
12847 2013-02-13 Richard Biener <rguenther@suse.de>
12848
12849 PR lto/56295
12850 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12851 globals in MEM_REFs.
12852
12853 2013-02-13 Richard Biener <rguenther@suse.de>
12854
12855 * loop-init.c (loop_optimizer_init): Clear loop state when
12856 re-initializing preserved loops.
12857 * loop-unswitch.c (unswitch_single_loop): Return whether
12858 we unswitched the loop. Do not verify loop state here.
12859 (unswitch_loops): When we unswitched a loop discover new loops.
12860
12861 2013-02-13 Kostya Serebryany <kcc@google.com>
12862
12863 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12864 on x86_64 linux.
12865 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12866
12867 2013-02-12 Dodji Seketeli <dodji@redhat.com>
12868
12869 Avoid instrumenting duplicated memory access in the same basic block
12870 * Makefile.in (asan.o): Add new dependency on hash-table.h
12871 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12872 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12873 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12874 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12875 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12876 (get_mem_ref_of_assignment): New functions.
12877 (get_mem_refs_of_builtin_call): Extract from
12878 instrument_builtin_call and tweak a little bit to make it fit with
12879 the new signature.
12880 (instrument_builtin_call): Use the new
12881 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12882 of is_gimple_builtin_call.
12883 (instrument_derefs, instrument_mem_region_access): Insert the
12884 instrumented memory reference into the hash table.
12885 (maybe_instrument_assignment): Renamed instrument_assignment into
12886 this, and change it to advance the iterator when instrumentation
12887 actually happened and return true in that case. This makes it
12888 homogeneous with maybe_instrument_assignment, and thus give a
12889 chance to callers to be more 'regular'.
12890 (transform_statements): Clear the memory reference hash table
12891 whenever we enter a new BB, when we cross a function call, or when
12892 we are done transforming statements. Use
12893 maybe_instrument_assignment instead of instrumentation. No more
12894 need to special case maybe_instrument_assignment and advance the
12895 iterator after calling it; it's now handled just like
12896 maybe_instrument_call. Update comment.
12897
12898 2013-02-13 Richard Biener <rguenther@suse.de>
12899
12900 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12901 Fix loop discovery code.
12902
12903 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12904
12905 PR inline-asm/56148
12906 * lra-constraints.c (process_alt_operands): Match early clobber
12907 operand with itself. Check conflicts with earlyclobber only if
12908 the operand is not reloaded. Prefer to reload conflicting operand
12909 if earlyclobber and matching operands are the same.
12910
12911 2013-02-12 Richard Biener <rguenther@suse.de>
12912
12913 PR lto/56297
12914 * lto-streamer-out.c (write_symbol): Do not output symbols
12915 for hard register variables.
12916
12917 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
12918
12919 PR target/54222
12920 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12921 (umulsidi3_insn, mulsidi3_insn): New insns.
12922
12923 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
12924
12925 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12926 (struct tune_params): Add vec_costs field.
12927 * config/arm/arm.c (arm_builtin_vectorization_cost)
12928 (arm_add_stmt_cost): New functions.
12929 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12930 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12931 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12932 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12933 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12934 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12935 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12936
12937 2013-02-12 Richard Biener <rguenther@suse.de>
12938
12939 PR lto/56295
12940 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12941 decls again if possible.
12942
12943 2013-02-12 Richard Biener <rguenther@suse.de>
12944
12945 PR middle-end/56288
12946 * tree-ssa.c (verify_ssa_name): Fix check, move
12947 SSA_NAME_IN_FREE_LIST check up.
12948
12949 2013-02-12 Jakub Jelinek <jakub@redhat.com>
12950 Steven Bosscher <steven@gcc.gnu.org>
12951
12952 PR rtl-optimization/56151
12953 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12954 equal to op0 or op1, and last_insn pattern is CODE operation
12955 with MEM dest and one of the operands matches that MEM.
12956
12957 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
12958
12959 * doc/extend.texi: Document Function Multiversioning and "default"
12960 parameter string to target attribute.
12961 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12962 target attribute parameter is "default".
12963 (ix86_compare_version_priority): Remove checks for target attribute.
12964 (ix86_mangle_function_version_assembler_name): Change error to sorry.
12965 Remove check for target attribute equal to NULL. Add assert.
12966 (ix86_generate_version_dispatcher_body): Change error to sorry.
12967
12968 2013-02-11 Iain Sandoe <iain@codesourcery.com>
12969 Jack Howarth <howarth@bromo.med.uc.edu>
12970 Patrick Marlier <patrick.marlier@gmail.com>
12971
12972 PR libitm/55693
12973 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12974 define ENDFILE_SPEC as TM_DESTRUCTOR.
12975 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12976
12977 2013-02-11 Alexander Potapenko <glider@google.com>
12978 Jack Howarth <howarth@bromo.med.uc.edu>
12979 Jakub Jelinek <jakub@redhat.com>
12980
12981 PR sanitizer/55617
12982 * config/darwin.c (cdtor_record): Rename ctor_record.
12983 (sort_cdtor_records): Rename sort_ctor_records.
12984 (finalize_dtors): New routine to sort destructors by
12985 priority before use in assemble_integer.
12986 (machopic_asm_out_destructor): Use finalize_dtors if needed.
12987
12988 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
12989
12990 PR rtl-optimization/56275
12991 * simplify-rtx.c (avoid_constant_pool_reference): Check that
12992 offset is non-negative and less than cmode size before
12993 calling simplify_subreg.
12994
12995 2013-02-11 Richard Biener <rguenther@suse.de>
12996
12997 PR tree-optimization/56264
12998 * cfgloop.h (fix_loop_structure): Adjust prototype.
12999 * loop-init.c (fix_loop_structure): Return the number of
13000 newly discovered loops.
13001 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13002 are discovered, do a full loop-closed SSA rewrite.
13003
13004 2013-02-11 Richard Biener <rguenther@suse.de>
13005
13006 PR tree-optimization/56273
13007 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13008 first VRP run.
13009 (check_array_ref): Fix missing newline in dumps.
13010 (search_for_addr_array): Likewise.
13011
13012 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
13013
13014 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13015
13016 2013-02-09 Jakub Jelinek <jakub@redhat.com>
13017
13018 PR target/56256
13019 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13020
13021 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13022
13023 PR rtl-optimization/56246
13024 * lra-constraints.c (simplify_operand_subreg): Try to reuse
13025 reload pseudo.
13026 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13027 constraints are satisfied.
13028
13029 2013-02-08 Jeff Law <law@redhat.com>
13030
13031 PR debug/53948
13032 * emit-rtl.c (reg_is_parm_p): New function.
13033 * regs.h (reg_is_parm_p): New prototype.
13034 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13035 callee-clobbered registers.
13036
13037 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13038
13039 PR target/56043
13040 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13041 If there is no implicit builtin declaration, just return NULL.
13042
13043 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13044
13045 * config/i386/sse.md (FMAMODEM): New mode iterator.
13046 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13047 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13048
13049 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13050
13051 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13052 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13053 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13054
13055 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13056
13057 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13058 (microblaze*-*-elf): Likewise.
13059 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13060 LINK_SPEC.
13061 * config/microblaze/microblaze-c.c: Add builtin defines for
13062 _LITTLE_ENDIAN and _BIG_ENDIAN.
13063 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13064 add to TARGET_DEFAULT flags.
13065 Expand ASM_SPEC and LINK_SPEC.
13066 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13067 * config/microblaze/microblaze.md: Update extendsidi2 and
13068 movdi_internal instructions to use low-order / high-order reg
13069 print_operands.
13070 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13071 options and inversemask / mask of LITTLE_ENDIAN.
13072 * config/microblaze/t-microblaze: Expand multilib options to
13073 include mlittle-endian (le) and update exceptions patterns.
13074
13075 2013-02-08 Jakub Jelinek <jakub@redhat.com>
13076
13077 PR rtl-optimization/56195
13078 * lra-constraints.c (get_reload_reg): Don't reuse regs
13079 if they have smaller mode than requested, if they have
13080 wider mode than requested, try to return a SUBREG.
13081
13082 PR tree-optimization/56250
13083 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13084 if type is unsigned and code isn't MULT_EXPR.
13085
13086 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13087
13088 PR tree-optimization/56064
13089 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13090 bits according to mode.
13091 * fixed-value.h (fixed_from_double_int)
13092 (const_fixed_from_double_int): Adjust comments.
13093
13094 2013-02-08 Richard Biener <rguenther@suse.de>
13095
13096 PR lto/56231
13097 * lto-streamer.h (struct data_in): Remove current_file, current_line
13098 and current_col members.
13099 * lto-streamer-out.c (lto_output_location): Stream changed bits
13100 en-block for efficiency.
13101 * lto-streamer-in.c (clear_line_info): Remove.
13102 (lto_input_location): Cache current file, line and column
13103 globally via local statics. Read changed bits en-block.
13104 (input_function): Do not call clear_line_info.
13105 (lto_read_body): Likewise.
13106 (lto_input_toplevel_asms): Likewise.
13107
13108 2013-02-08 Michael Matz <matz@suse.de>
13109
13110 PR tree-optimization/52448
13111 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13112 (nt_call_phase): New static.
13113 (add_or_mark_expr): Only mark accesses with newer phase than any
13114 call seen.
13115 (nonfreeing_call_p): New.
13116 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13117 (nt_fini_block): Keep blocks marked as visited.
13118 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13119
13120 2013-02-08 Richard Biener <rguenther@suse.de>
13121
13122 * ira.c (ira): Free broken dominator information.
13123
13124 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13125
13126 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13127
13128 2013-02-08 Marek Polacek <polacek@redhat.com>
13129
13130 * cfgloop.c (verify_loop_structure): Add more checking of headers.
13131
13132 2013-02-08 Richard Biener <rguenther@suse.de>
13133
13134 PR middle-end/56181
13135 * cfgloop.h (flow_loops_find): Adjust.
13136 (bb_loop_header_p): Declare.
13137 * cfgloop.c (bb_loop_header_p): New function split out from ...
13138 (flow_loops_find): ... here. Adjust function signature,
13139 support incremental loop structure update.
13140 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13141 * cfgloopmanip.c (fix_loop_structure): Move ...
13142 * loop-init.c (fix_loop_structure): ... here.
13143 (apply_loop_flags): Split out from ...
13144 (loop_optimizer_init): ... here.
13145 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13146 in incremental mode, only remove dead loops here.
13147
13148 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13149
13150 PR target/54222
13151 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13152 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13153 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13154 (*round<mode>3.libgcc): New insns for fixed-modes.
13155 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13156 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13157 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13158 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13159 implementations. Define to __builtin_avr_absFX,
13160 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13161 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13162 __builtin_avr_countlsFX, respectively.
13163 * config/avr/avr-c.c (target.h): Include it.
13164 (enum avr_builtin_id): New enum.
13165 (avr_resolve_overloaded_builtin): New static function.
13166 (avr_register_target_pragmas): Use it to set
13167 targetm.resolve_overloaded_builtin.
13168 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13169 tree nodes used by DEF_BUILTIN.
13170 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13171 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13172 <AVR_BUILTIN_xxBITS>: Same.
13173
13174 2013-02-08 Richard Biener <rguenther@suse.de>
13175
13176 * cfgloop.c (verify_loop_structure): Properly handle
13177 a loop exiting to another loop header.
13178 * ira-int.h (ira_loops): Remove.
13179 * ira.c (ira_loops): Remove.
13180 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13181 (do_reload): Use loop_optimizer_finalize.
13182 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13183 number_of_loops to access the loop tree.
13184 (more_one_region_p): Likewise.
13185 (finish_loop_tree_nodes): Likewise.
13186 (rebuild_regno_allocno_maps): Likewise.
13187 (mark_loops_for_removal): Likewise.
13188 (mark_all_loops_for_removal): Likewise.
13189 (remove_unnecessary_regions): Likewise.
13190 (ira_build): Likewise.
13191 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13192
13193 2013-02-08 Richard Biener <rguenther@suse.de>
13194
13195 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13196 * ipa-pure-const.c (analyze_function): Avoid calling
13197 mark_irreducible_loops twice.
13198 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13199
13200 2013-02-07 David S. Miller <davem@davemloft.net>
13201
13202 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13203 on 'reg'.
13204 * var-tracking.c (vt_add_function_parameter): Test the presence of
13205 HAVE_window_save properly and do not remap argument registers when
13206 we have a leaf function.
13207
13208 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
13209
13210 PR bootstrap/56227
13211 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13212 instead of "ll".
13213 * config/i386/i386.c (ix86_print_operand): Ditto.
13214
13215 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13216
13217 * lra-constraints.c (process_alt_operands): Fix recently added comment.
13218
13219 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13220
13221 PR rtl-optimization/56225
13222 * lra-constraints.c (process_alt_operands): Check that reload hard
13223 reg can hold value for strict_low_part.
13224
13225 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR debug/56154
13228 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13229 dwarf2out_end_function.
13230 (in_first_function_p, maybe_at_text_label_p,
13231 first_loclabel_num_not_at_text_label): New variables.
13232 (dwarf2out_var_location): In the first function find out
13233 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13234 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13235 functions.
13236
13237 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13238
13239 PR rtl-optimization/56178
13240 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13241 SUBREG of a register. Tidy up related block of code.
13242 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13243 note if the source is a register or a SUBREG of a register.
13244
13245 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13246
13247 PR target/56228
13248 * config/rs6000/rs6000.md (ptrm): New mode attr.
13249 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13250 call_value_indirect_aix<pttrsize>,
13251 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13252 m in constraints.
13253
13254 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13255
13256 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13257 if -bnortl. Convert to strcmp and strncmp.
13258
13259 2013-02-07 Alan Modra <amodra@gmail.com>
13260
13261 PR target/54009
13262 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13263 addresses won't wrap when offsetting.
13264 (rs6000_secondary_reload): Provide secondary reloads needed for
13265 wrapping LO_SUM addresses.
13266
13267 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13268
13269 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13270 MACH, just __MACH__.
13271
13272 2013-02-06 Richard Biener <rguenther@suse.de>
13273
13274 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13275 instead of calling fix_loop_structure.
13276
13277 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR middle-end/56217
13280 * omp-low.c (use_pointer_for_field): Return false if
13281 lower_send_shared_vars doesn't generate any copy-out code.
13282
13283 2013-02-06 Tom de Vries <tom@codesourcery.com>
13284
13285 PR rtl-optimization/56131
13286 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13287 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13288 of the label is NULL. Add comment.
13289
13290 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13291
13292 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13293
13294 PR sanitizer/55374
13295 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13296 (STATIC_LIBTSAN_LIBS): Likewise.
13297 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13298 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13299 is defined, don't add anything else beyond that.
13300 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13301 (LINK_COMMAND_SPEC): Use them.
13302
13303 PR tree-optimization/56205
13304 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13305 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13306 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13307
13308 2013-02-05 Richard Biener <rguenther@suse.de>
13309
13310 PR tree-optimization/53342
13311 PR tree-optimization/53185
13312 * tree-vectorizer.h (vect_check_strided_load): Remove.
13313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13314 not disallow peeling for vectorized strided loads.
13315 (vect_check_strided_load): Make static and simplify.
13316 (vect_analyze_data_refs): Adjust.
13317 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13318 correctly when vectorizing strided loads.
13319
13320 2013-02-05 Richard Biener <rguenther@suse.de>
13321
13322 * doc/install.texi: Refer to ISL, not PPL.
13323
13324 2013-02-05 Jan Hubicka <jh@suse.cz>
13325
13326 PR tree-optimization/55789
13327 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13328
13329 2013-02-05 Jan Hubicka <jh@suse.cz>
13330
13331 PR tree-optimization/55789
13332 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13333 the dead call anyway.
13334
13335 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13336
13337 PR sanitizer/55374
13338 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13339
13340 2013-02-04 Alexander Potapenko <glider@google.com>
13341 Jack Howarth <howarth@bromo.med.uc.edu>
13342 Jakub Jelinek <jakub@redhat.com>
13343
13344 PR sanitizer/55617
13345 * config/darwin.c (sort_ctor_records): Stabilized qsort
13346 on constructor priority by using original position.
13347 (finalize_ctors): New routine to sort constructors by
13348 priority before use in assemble_integer.
13349 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13350
13351 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13352
13353 PR libstdc++/54314
13354 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13355 about visibility on artificial decls.
13356 * config/sol2.c (solaris_assemble_visibility): Likewise.
13357
13358 2013-02-04 Kai Tietz <ktietz@redhat.com>
13359
13360 PR target/56186
13361 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13362 argument and improve checking of return-argument types for 16-byte
13363 modes.
13364 (ix86_function_value_1): Add additional valtype argument on call
13365 of function_value_64.
13366 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13367 handling infunction_value_64 function.
13368
13369 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13370
13371 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13372
13373 2013-02-04 Richard Biener <rguenther@suse.de>
13374
13375 PR tree-optimization/56188
13376 * tree-ssa-structalias.c (label_visit): Consider case with
13377 initially non-empty points-to set.
13378 (perform_var_substitution): Dump node mapping and clean up.
13379
13380 2013-02-04 Richard Guenther <rguenther@suse.de>
13381
13382 PR lto/56168
13383 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13384 node prevail as last resort.
13385 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13386 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13387
13388 2013-02-04 Richard Biener <rguenther@suse.de>
13389
13390 PR tree-optimization/56113
13391 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13392 Merge into ...
13393 (equiv_class_lookup_or_add): ... this.
13394 (label_visit): Adjust and fix error in previous patch.
13395 (perform_var_substitution): Adjust.
13396
13397 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13398
13399 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13400 * config/sh/sh4-300.md: Likewise.
13401 * config/sh/sh4a.md: Likewise.
13402 * config/sh/constraints.md: Likewise.
13403 * config/sh/sh.md: Likewise.
13404 * config/sh/netbsd-elf.h: Likewise.
13405 * config/sh/predicates.md: Likewise.
13406 * config/sh/sh-protos.h: Likewise.
13407 * config/sh/ushmedia.h: Likewise.
13408 * config/sh/linux.h: Likewise.
13409 * config/sh/sh.c: Likewise.
13410 * config/sh/superh.h: Likewise.
13411 * config/sh/elf.h: Likewise.
13412 * config/sh/sh4.md: Likewise.
13413 * config/sh/sh.h: Likewise.
13414
13415 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13416
13417 * config/pa/constraints.md: Adjust unused letters. Change "T"
13418 constraint to match_test floating_point_store_memory_operand().
13419 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13420 (base14_operand): New.
13421 (floating_point_store_memory_operand): New.
13422 (integer_store_memory_operand): Revise to use base14_operand and
13423 reg_plus_base_memory_operand.
13424 (move_dest_operand): Allow symbolic_memory_operands.
13425 (symbolic_memory_operand): Check for LO_SOM.
13426 (symbolic_operand): Change default case to break.
13427 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13428 CONST_DOUBLE values to be reloaded by putting them into memory when
13429 the destination is a floating point register.
13430 (movdf): Remove code to handle CONST_DOUBLE.
13431 (movsf): Likewise.
13432 (reload_indf_r1): New.
13433 (reload_insf_r1): New.
13434 Consistently use "Q" and "T" constraints with integer and floating
13435 point move instructions, respectively.
13436 (movdi): Remove FAIL.
13437 Change predicate for source operand unamed DImode move from
13438 general_operand to move_src_operand.
13439 (umulsidi3): Change predicate for destination operand to
13440 register_operand.
13441 Likewise for similar unamed patterns.
13442 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13443 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13444 (hppa_legitimize_address): Simplify mask calculation.
13445 (pa_emit_move_sequence): Revised handling of secondary reloads from
13446 REG+D addresses for floating point loads and stores. Directly handle
13447 loading CONST0_RTX (mode) to a floating point register.
13448 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13449 to floating point registers. Don't restrict secondary reloads to
13450 floating point registers to integer modes. Revise some comments and
13451 cleanup some code.
13452 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13453 (pa_legitimate_address_p): New.
13454 (pa_legitimize_reload_address): New.
13455 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13456 (STRICT_REG_OK_FOR_BASE_P): New.
13457 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13458 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13459
13460 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13461 Andrew Dixie <andrewd@gentrack.com>
13462
13463 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13464 flag set.
13465
13466 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13467
13468 * expmed.c (extract_bit_field_1): Pass the full width of the
13469 structure to get_best_reg_extraction_insn.
13470
13471 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13472
13473 PR target/54601
13474 * configure.ac (use_cxa_atexit): Add AIX.
13475 * configure: Regenerate.
13476
13477 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13478
13479 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13480
13481 PR debug/54793
13482 * final.c (need_profile_function): New variable.
13483 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13484 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13485 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13486 notes, targetm.asm_out.function_prologue doesn't emit anything,
13487 HAVE_prologue and profiler should be emitted before prologue,
13488 set need_profile_function instead of emitting it.
13489 (final_scan_insn): If need_profile_function, emit
13490 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13491 NOTE_INSN_FUNCTION_BEG note.
13492
13493 2013-02-01 Richard Henderson <rth@redhat.com>
13494
13495 * config/rs6000/rs6000.md (smulditi3): New.
13496 (umulditi3): New.
13497
13498 * config/alpha/alpha.md (umulditi3): New.
13499
13500 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13501
13502 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13503 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13504
13505 2013-02-01 Richard Biener <rguenther@suse.de>
13506
13507 PR tree-optimization/56113
13508 * tree-ssa-structalias.c (label_visit): Reduce work for
13509 single-predecessor nodes.
13510
13511 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13512
13513 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13514 range isn't testing for zero.
13515
13516 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13517
13518 PR middle-end/56113
13519 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13520
13521 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13522 Nick Clifton <nickc@redhat.com>
13523
13524 * config/v850/constraints.md (Q): Define as a memory constraint.
13525 * config/v850/predicates.md (label_ref_operand): New predicate.
13526 (e3v5_shift_operand): New predicate.
13527 (ior_operator): New predicate.
13528 * config/v850/t-v850: Add e3v5 multilib.
13529 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13530 (v850_gen_movdi): Prototype.
13531 * config/v850/v850.c: Add support for e3v5 architecture.
13532 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13533 TARGET_V850E_UP.
13534 (construct_save_jarl): Add e3v5 long JARL support.
13535 (v850_adjust_insn_length): New function. Adjust length of call
13536 insns when using e3v5 instructions.
13537 (v850_gen_movdi): New function: Generate instructions to move a
13538 DImode value.
13539 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13540 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13541 (TARGET_USE_FPU): Enable for e3v5.
13542 (CONST_OK_FOR_W): New macro.
13543 (ADJUST_INSN_LENGTH): Define.
13544 * config/v850/v850.md (UNSPEC_LOOP): Define.
13545 (attr cpu): Add v850e3v5.
13546 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13547 (movdi): New pattern.
13548 (movdi_internal): New pattern.
13549 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13550 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13551 (cstoresf4): Likewise.
13552 (cstoredf4): Likewise.
13553 (insv): New pattern.
13554 (rotlso3_a): New pattern.
13555 (rotlsi3_b): New pattern
13556 (rotlsi3_v850e3v5): New pattern.
13557 (doloop_begin): New pattern.
13558 (fix_loop_counter): New pattern.
13559 (doloop_end): New pattern.
13560 (branch_normal): Add e3v5 long branch support.
13561 (branch_invert): Likewise.
13562 (branch_z_normal): Likewise.
13563 (branch_z_invert): Likewise.
13564 (branch_nz_normal): Likewise.
13565 (branch_nz_invert): Likewise.
13566 (call_internal_short): Add e3v5 register-indirect JARL support.
13567 (call_internal_long): Likewise.
13568 (call_value_internal_short): Likewise.
13569 (call_value_internal_long): Likewise.
13570 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13571 (mloop): New option.
13572 * config.gcc: Add support for configuring v840e3v5 target.
13573 * doc/invoke.texi: Document new v850 specific command line options.
13574
13575 2013-01-31 Paul Koning <ni1d@arrl.net>
13576
13577 PR debug/55059
13578 PR debug/54508
13579 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13580 children if parent is a class.
13581 (prune_unused_types_prune): Don't add DW_AT_declaration.
13582
13583 2013-01-31 Richard Biener <rguenther@suse.de>
13584
13585 PR tree-optimization/56157
13586 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13587 match up operand with SLP child.
13588
13589 2013-01-31 Jason Merrill <jason@redhat.com>
13590
13591 PR debug/54410
13592 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13593 parameters the first time.
13594 (gen_scheduled_generic_parms_dies): Check completeness here.
13595
13596 2013-01-31 Richard Biener <rguenther@suse.de>
13597
13598 PR middle-end/53073
13599 * common.opt (faggressive-loop-optimizations): New flag,
13600 enabled by default.
13601 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13602 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13603 infer_loop_bounds_from_undefined by it.
13604
13605 2013-01-31 Richard Biener <rguenther@suse.de>
13606
13607 PR tree-optimization/56150
13608 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13609 visit virtual operands.
13610 (find_uses_to_rename_bb): Likewise.
13611
13612 2013-01-31 Richard Biener <rguenther@suse.de>
13613
13614 PR tree-optimization/56150
13615 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13616 mixed store non-store stmts.
13617
13618 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR sanitizer/55374
13621 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13622 LIBASAN_EARLY_SPEC is defined.
13623 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13624 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13625 before %o.
13626 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13627
13628 PR c++/55742
13629 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13630 invalid args instead of ICEing on it.
13631 (ix86_valid_target_attribute_tree): Return error_mark_node if
13632 ix86_valid_target_attribute_inner_p failed.
13633 (ix86_valid_target_attribute_p): Return false only if
13634 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13635 target("default") attribute.
13636 (sorted_attr_string): Change argument from const char * to tree,
13637 merge in all target attribute arguments rather than just one.
13638 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13639 instead of free. Avoid using strcat.
13640 (ix86_mangle_function_version_assembler_name): Mangle
13641 target("default") as if no target attribute is present. Adjust
13642 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13643 instead of xmalloc and XDELETEVEC instead of free.
13644 (ix86_function_versions): Don't return true if one of the decls
13645 doesn't have target attribute. If they don't and one of the decls
13646 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13647 sorted_attr_string caller. Use XDELETEVEC instead of free.
13648 (ix86_supports_function_versions): Remove.
13649 (make_name): Fix up formatting.
13650 (make_dispatcher_decl): Remove resolver_name and its initialization.
13651 Avoid leaking memory.
13652 (is_function_default_version): Return true if there is
13653 target("default") attribute rather than no target attribute at all.
13654 (make_resolver_func): Avoid leaking memory.
13655 (ix86_generate_version_dispatcher_body): Likewise.
13656 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13657 * target.def (supports_function_versions): Remove.
13658 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13659 * doc/tm.texi: Regenerated.
13660
13661 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13662
13663 PR rtl-optimization/56144
13664 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13665 for values with side effects.
13666
13667 2013-01-30 Richard Biener <rguenther@suse.de>
13668
13669 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13670 (sparseset_pop): Likewise.
13671 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13672 to be able to use quick_push in the worker loop.
13673
13674 2013-01-30 Marek Polacek <polacek@redhat.com>
13675
13676 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13677
13678 2013-01-30 Richard Biener <rguenther@suse.de>
13679
13680 PR lto/56147
13681 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13682
13683 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
13684
13685 PR tree-optimization/56064
13686 * fixed-value.c (fixed_from_double_int): New function.
13687 * fixed-value.h (fixed_from_double_int): New prototype.
13688 (const_fixed_from_double_int): New static inline function.
13689 * fold-const.c (native_interpret_fixed): New static function.
13690 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13691 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13692 (native_encode_fixed): New static function.
13693 (native_encode_expr) <FIXED_CST>: Use it.
13694 (native_interpret_int): Move double_int worker code to...
13695 * double-int.c (double_int::from_buffer): ...this new static method.
13696 * double-int.h (double_int::from_buffer): Prototype it.
13697
13698 2013-01-30 Richard Biener <rguenther@suse.de>
13699
13700 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13701 New pointer-map and obstack.
13702 (init_alias_vars): Allocate pointer-map and obstack.
13703 (delete_points_to_sets): Free them.
13704 (find_what_var_points_to): Cache result.
13705 (find_what_p_points_to): Adjust for changed interface of
13706 find_what_var_points_to.
13707 (compute_points_to_sets): Likewise.
13708 (ipa_pta_execute): Likewise.
13709
13710 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13711
13712 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13713 * configure: Regenerate.
13714 * config.in: Regenerate.
13715 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13716 #nobits/#progbits if supported.
13717
13718 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13719
13720 PR target/56121
13721 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13722 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13723 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13724
13725 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13726
13727 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13728 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13729
13730 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13731
13732 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13733 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13734
13735 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13736
13737 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13738 declaration.
13739 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13740 * config/arm/cortex-a7.md: New bypasses using
13741 arm_mac_accumulator_is_result.
13742
13743 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13744
13745 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
13746 (cortex_a7_neon_mla): Likewise.
13747 (cortex_a7_fpfmad): New reservation.
13748 (cortex_a7_fpmacs): Use ffmas and update required units.
13749 (cortex_a7_fpmuld): Update required units and latency.
13750 (cortex_a7_fpmacd): Likewise.
13751 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13752 (cortex_a7_neon). Likewise.
13753 (bypass) Update participating units.
13754
13755 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13756
13757 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13758 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13759 from fmac to ffma.
13760 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13761 (vfp_fmul): Use ffmad.
13762 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13763 (cortex_r4_fmacd): Use ffmad.
13764 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13765 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13766 (cortex_a9_fmacd): Use ffmad.
13767 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13768 (cortex_a8_vfp_macd): Use ffmad.
13769 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13770 (cortex_a5_fpmacd): Use ffmad.
13771 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13772 (cortex_a15_vfp_macd): Use ffmad.
13773 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13774
13775 2013-01-29 Jason Merrill <jason@redhat.com>
13776
13777 PR libstdc++/54314
13778 * varasm.c (default_assemble_visibility): Don't warn about
13779 visibility on artificial decls.
13780
13781 2013-01-29 Richard Biener <rguenther@suse.de>
13782
13783 PR tree-optimization/56113
13784 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13785 the bitmap leader.
13786 (label_visit): Free duplicate bitmaps and record the leader instead.
13787 (perform_var_substitution): Adjust.
13788
13789 2013-01-29 Richard Biener <rguenther@suse.de>
13790
13791 PR tree-optimization/55270
13792 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13793 the CFG, schedule loops for fixup.
13794
13795 2013-01-29 Nick Clifton <nickc@redhat.com>
13796
13797 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13798 SP_REG.
13799
13800 2013-01-28 Leif Ekblad <leif@rdos.net>
13801
13802 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13803 * config/i386/i386.h (TARGET_RDOS): New macro.
13804 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13805 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13806 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13807 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13808 DEFAULT_LARGE_SECTION_THRESHOLD.
13809 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13810 * config/i386/rdos.h: New file.
13811 * config/i386/rdos64.h: New file.
13812
13813 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13814
13815 PR other/54814
13816 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13817 TEST_HARD_REG_BIT.
13818
13819 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13820
13821 PR rtl-optimization/56117
13822 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13823 call cselib_lookup_from_insn on the MEM before calling
13824 add_insn_mem_dependence.
13825
13826 2013-01-28 Richard Biener <rguenther@suse.de>
13827
13828 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13829 to a stmt that didn't have one.
13830 (copy_phis_for_bb): Likewise for PHI arguments.
13831 (copy_debug_stmt): Likewise for debug stmts.
13832
13833 2013-01-28 Richard Biener <rguenther@suse.de>
13834
13835 PR tree-optimization/56034
13836 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13837 (partition_builtin_p): Adjust.
13838 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13839 it is the last partition.
13840 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13841 up the vertex for the definition.
13842 (classify_partition): Classify whether a partition is a
13843 PKIND_REDUCTION, thus has uses outside of the loop.
13844 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13845 Merge all PKIND_REDUCTION partitions into the last partition.
13846 (tree_loop_distribution): Seed partitions from reductions as well.
13847
13848 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13849
13850 PR tree-optimization/56125
13851 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13852 pow(x,c) into sqrt(x) * powi(x, n/2) or
13853 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13854 optimizing for size.
13855 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13856 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13857 integer.
13858
13859 PR tree-optimization/56094
13860 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13861 to UNKNOWN_LOCATION while gimplifying expr.
13862
13863 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
13864
13865 PR target/56114
13866 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13867 operand 0 in movabs insn template for -masm=intel asm alternative.
13868 (*movabs<mode>_2): Ditto for operand 1.
13869
13870 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
13871
13872 PR target/54663
13873 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13874 of microblaze-c.o
13875
13876 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13877
13878 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13879 tm_file.
13880
13881 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13882
13883 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13884 Undef to avoid warning.
13885
13886 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13887
13888 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13889 * configure: Regenerate.
13890
13891 2013-01-25 Jakub Jelinek <jakub@redhat.com>
13892
13893 PR tree-optimization/56098
13894 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13895 for stmts with volatile ops.
13896 (cond_store_replacement): Don't optimize if assign has volatile ops.
13897 (cond_if_else_store_replacement_1): Don't optimize if either
13898 then_assign or else_assign have volatile ops.
13899 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13900 volatile ops.
13901
13902 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13903
13904 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13905
13906 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13907
13908 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13909 missing ':' in asm example.
13910
13911 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13912
13913 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13914 entries into lane and laneq entries.
13915 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13916 Remove AdvSIMD scalar modes.
13917 (aarch64_sq<r>dmulh_laneq<mode>): New.
13918 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13919 modes.
13920 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13921 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13922 * config/aarch64/iterators.md (VCOND): New.
13923 (VCONQ): New.
13924
13925 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13926
13927 PR target/54222
13928 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13929 Add NULL LIBNAME argument to existing definitions.
13930 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13931 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13932 * config/avr/avr.c (DEF_BUILTIN): Same.
13933 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13934 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13935 implementation is available (DECL_ASSEMBLER_NAME is set).
13936 (avr_fold_absfx): New static function.
13937 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13938 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13939 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13940 AVR_BUILTIN_ABSLLK.
13941 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13942 (abshk, absk, abslk, absllk): Provide as static inline functions.
13943
13944 2013-01-25 Marek Polacek <polacek@redhat.com>
13945
13946 PR tree-optimization/56035
13947 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13948
13949 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
13950
13951 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13952 (*movtf_internal_rex64): Add (!o,C) alternative
13953 (*movxf_internal_rex64): Ditto.
13954 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13955
13956 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
13957
13958 * doc/invoke.texi: fix typo.
13959 * doc/objc.texi: fix typo.
13960
13961 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13962
13963 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13964 for the first two alternatives.
13965
13966 2013-01-24 Diego Novillo <dnovillo@google.com>
13967
13968 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
13969 (ggc-zone.o): Remove.
13970 * configure.ac: Remove option --with-gc.
13971 * configure: Re-generate.
13972 * doc/install.texi: Remove documentation for --with-gc.
13973 * gengtype.c (write_enum_defn): Remove. Update all users.
13974 (write_Types_process_field): Remove generation of gt_e_* argument.
13975 (output_type_enum): Remove. Update all users.
13976 (write_enum_defn): Remove. Update all users.
13977 (enum alloc_zone): Remove. Update all users.
13978 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
13979 * ggc-common.c (ggc_splay_alloc): Remove first argument.
13980 Update all callers.
13981 (struct ptr_data): Remove field TYPE. Update all users.
13982 (gt_pch_note_object): Remove argument TYPE. Update all users.
13983 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13984 Update all users.
13985 * ggc-none.c (ggc_alloc_typed_stat): Remove.
13986 (struct alloc_zone): Remove.
13987 (ggc_internal_alloc_zone_stat): Remove.
13988 (ggc_internal_cleared_alloc_zone_stat): Remove.
13989 * ggc-page.c (ggc_alloc_typed_stat): Remove.
13990 (ggc_pch_count_object): Remove last argument. Update all users.
13991 (ggc_pch_alloc_object): Remove last argument. Update all users.
13992 (struct alloc_zone): Remove.
13993 * ggc-zone.c: Remove.
13994 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
13995 (struct alloc_zone): Remove.
13996 (ggc_alloc_typed_stat): Remove.
13997 (ggc_alloc_typed): Remove.
13998 (ggc_splay_alloc): Remove first argument.
13999 (rtl_zone): Remove. Update all users.
14000 (tree_zone): Remove. Update all users.
14001 (tree_id_zone): Remove. Update all users.
14002 (ggc_internal_zone_alloc_stat): Remove. Update all users.
14003 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
14004 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
14005 * tree-ssanames.c: Remove references to zone allocator in comments.
14006
14007 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
14008
14009 * config/avr/avr.c (avr_out_fract): Make register numbers that
14010 might be outside of source operand signed.
14011
14012 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
14013
14014 * config/i386/constraints.md (Yf): New constraint.
14015 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14016 of f constraint to conditionaly disable x87 register preferences.
14017 (*movdf_internal): Ditto.
14018 (*movsf_internal): Ditto.
14019
14020 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14021
14022 PR inline-asm/55934
14023 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14024 that have operands with impossible constraints.
14025 Add a FIXME for a speed-up opportunity.
14026 * lra-constraints.c (process_alt_operands): Verify that a class
14027 selected from constraints on asms is valid for the operand mode.
14028 (curr_insn_transform): Remove incorrect comment.
14029
14030 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
14031
14032 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14033 TOC operand is a valid symbol ref in the constant pool.
14034
14035 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14036
14037 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14038
14039 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
14040
14041 PR target/54222
14042 * config/avr/stdfix.h: New file.
14043 * t-avr (stdfix-gcc.h): New rule to build it.
14044 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14045
14046 2013-01-23 Kostya Serebryany <kcc@google.com>
14047
14048 * config/darwin.h: remove dependency on
14049 CoreFoundation (asan on Mac OS).
14050
14051 2013-01-23 Jakub Jelinek <jakub@redhat.com>
14052
14053 PR target/49069
14054 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14055 instead of cmpdi_operand for first comparison operand.
14056 Don't assert that comparison operands aren't both constants.
14057
14058 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14059
14060 * doc/install.texi (Downloading the Source): Update references to
14061 downloading separate components.
14062
14063 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14064
14065 * doc/extend.texi (__int128): Improve grammar.
14066
14067 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
14068
14069 PR target/56028
14070 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14071 alternative to (o,r).
14072 (*movdi_internal_rex64): Remove (!o,n) alternative.
14073 (DImode immediate->memory splitter): Remove.
14074 (DImode immediate->memory peephole2): Remove.
14075 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14076 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14077 alternative to (!o,*r).
14078 (*movtf_internal_sse): New pattern.
14079 (*movxf_internal_rex64): New pattern.
14080 (*movxf_internal): Disable for TARGET_64BIT.
14081 (*movdf_internal_rex64): Remove (!o,F) alternative.
14082
14083 2013-01-22 Jakub Jelinek <jakub@redhat.com>
14084
14085 PR middle-end/56074
14086 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14087 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14088 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14089 stmt locations where LOCATION_LOCUS of the stmt location is
14090 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14091
14092 PR target/55686
14093 * config/i386/i386.md (UNSPEC_STOS): New.
14094 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14095 *strsetqi_1): Add UNSPEC_STOS.
14096
14097 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14098
14099 PR c++/56067
14100 * doc/invoke.texi: Remove left over -Wsynth example.
14101
14102 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14103
14104 PR tree-optimization/56051
14105 * fold-const.c (fold_binary_loc): Don't fold
14106 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14107 a narrowing conversion, or widening conversion from signed
14108 to unsigned.
14109
14110 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14111
14112 PR rtl-optimization/56023
14113 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14114 dependent on debug instruction.
14115
14116 2013-01-21 Martin Jambor <mjambor@suse.cz>
14117
14118 PR middle-end/56022
14119 * function.c (allocate_struct_function): Call
14120 invoke_set_current_function_hook earlier.
14121
14122 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14123
14124 * reload1.c (init_reload): Only initialize reload_obstack
14125 during the first call.
14126
14127 2013-01-21 Marek Polacek <polacek@redhat.com>
14128
14129 * cfgloop.c (verify_loop_structure): Fix up grammar.
14130
14131 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14132
14133 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14134 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14135
14136 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14137
14138 PR target/56058
14139 * config/arm/marvell-pj4.md: Update copyright year.
14140 Fix up use of alu to alu_reg and simple_alu_imm.
14141
14142 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14143
14144 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14145
14146 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14147
14148 PR target/55433
14149 * lra-constraints.c (curr_insn_transform): Don't reuse original
14150 insn for secondary memory move when memory mode should be different.
14151
14152 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14153
14154 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14155 atomic_storedi_1): New patterns.
14156
14157 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14158
14159 btver2 pipeline descriptions.
14160 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14161 descriptions.
14162 * config/i386/i386.md (btver2_decode): New type attributes.
14163 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14164 type attributes.
14165 * config/i386/btver2.md: New file describing btver2 pipelines.
14166
14167 2013-01-19 Andrew Pinski <apinski@cavium.com>
14168
14169 PR tree-optimization/52631
14170 * tree-ssa-sccvn (visit_use): Before looking up the original
14171 statement, try looking up the simplified expression.
14172
14173 2013-01-19 Anthony Green <green@moxielogic.com>
14174
14175 * config/moxie/moxie.c (moxie_expand_prologue): Set
14176 current_function_static_stack_size.
14177
14178 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14179
14180 PR tree-optimization/56029
14181 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14182 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14183
14184 2013-01-18 Sharad Singhai <singhai@google.com>
14185
14186 PR tree-optimization/55995
14187 * dumpfile.c (dump_loc): Print location only if available.
14188 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14189
14190 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14191
14192 PR target/55433
14193 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14194 secondary memory move.
14195 (inherit_reload_reg): Use rclass instead of cl for
14196 check_secondary_memory_needed_p.
14197
14198 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14199
14200 PR middle-end/56015
14201 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14202 the case where writing real complex part of target modifies op1.
14203
14204 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14205
14206 * config/aarch64/aarch64-simd.md
14207 (aarch64_vcond_internal<mode>): Handle unordered cases.
14208 * config/aarch64/iterators.md (v_cmp_result): New.
14209
14210 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14211 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14212
14213 * config/arm/marvell-pj4.md: New file.
14214 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14215 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14216 (generic_vfp): Likewise.
14217 * config/arm/arm-cores.def: Add marvell-pj4.
14218 * config/arm/arm-tune.md: Regenerate.
14219 * config/arm/arm-tables.opt: Regenerate.
14220 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14221 * doc/invoke.texi: Document marvell-pj4.
14222
14223 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14224
14225 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14226
14227 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14228
14229 PR debug/54114
14230 PR debug/54402
14231 PR debug/49888
14232 * var-tracking.c (negative_power_of_two_p): New.
14233 (global_get_addr_cache, local_get_addr_cache): New.
14234 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14235 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14236 heading comment.
14237 (vt_stack_offset_p): Remove.
14238 (vt_canon_true_dep): Always canonicalize loc's address.
14239 (clobber_overlapping_mems): Make sure we have a MEM.
14240 (local_get_addr_clear_given_value): New.
14241 (val_reset): Clear local cached entries.
14242 (compute_bb_dataflow): Create and release the local cache.
14243 Disable duplicate MEMs clobbering.
14244 (emit_notes_in_bb): Clobber MEMs likewise.
14245 (vt_emit_notes): Create and release the local cache.
14246 (vt_initialize, vt_finalize): Create and release the global
14247 cache, respectively.
14248 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14249
14250 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14251
14252 PR libmudflap/53359
14253 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14254 not found in the symtab.
14255
14256 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14257
14258 PR debug/56006
14259 PR rtl-optimization/55547
14260 PR rtl-optimization/53827
14261 PR debug/53671
14262 PR debug/49888
14263 * alias.c (offset_overlap_p): New, factored out of...
14264 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14265 the conservative special case for symbolic constants. Don't
14266 adjust zero sizes on alignment.
14267
14268 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14269
14270 PR rtl-optimization/52573
14271 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14272 REG_UNUSED for the same register.
14273
14274 2013-01-17 Richard Biener <rguenther@suse.de>
14275 Marek Polacek <polacek@redhat.com>
14276
14277 PR rtl-optimization/55833
14278 * loop-unswitch.c (unswitch_loops): Move loop verification...
14279 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14280 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14281 Set it to true when we're removing a loop from hierarchy tree in
14282 an irreducible region.
14283 (fix_bb_placements): Adjust caller.
14284 (fix_loop_placements): Likewise.
14285
14286 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14287
14288 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14289 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14290 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14291 Remove ID. Adjust comments.
14292 * config/avr/avr-c.c (avr_builtin_name): Remove.
14293 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14294 * config/avr/avr.c (avr_tolower): New static function.
14295 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14296 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14297 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14298 default expansion.
14299
14300 2013-01-17 Jan Hubicka <jh@suse.cz>
14301
14302 PR tree-optimization/55273
14303 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14304
14305 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14306
14307 PR target/55981
14308 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14309 store through atomic_store<mode>_1.
14310 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14311
14312 2013-01-17 Martin Jambor <mjambor@suse.cz>
14313
14314 PR tree-optimizations/55264
14315 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14316 for virtual methods.
14317 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14318 virtual methods before inlining is over.
14319 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14320 virtual functions.
14321 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14322 non-virtual.
14323
14324 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14325
14326 PR rtl-optimization/56005
14327 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14328 pending reads for prefetch.
14329
14330 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14331
14332 * config/aarch64/aarch64.md
14333 (*cstoresi_neg_uxtw): New pattern.
14334 (*cmovsi_insn_uxtw): New pattern.
14335 (*<optab>si3_uxtw): New pattern.
14336 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14337 (*<optab>si3_insn_uxtw): New pattern.
14338 (*bswapsi2_uxtw): New pattern.
14339
14340 2013-01-16 Richard Biener <rguenther@suse.de>
14341
14342 * tree-inline.c (tree_function_versioning): Remove set but
14343 never used variable.
14344
14345 2013-01-16 Richard Biener <rguenther@suse.de>
14346
14347 PR tree-optimization/55964
14348 * tree-flow.h (rename_variables_in_loop): Remove.
14349 (rename_variables_in_bb): Likewise.
14350 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14351 (copy_loop_before): Adjust and delete update-ssa status.
14352 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14353 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14354 (rename_variables_in_loop): Remove.
14355 (slpeel_update_phis_for_duplicate_loop): Likewise.
14356 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14357 use available cfg machinery instead of duplicating it.
14358 Update PHI nodes and perform poor-mans SSA update here.
14359 (slpeel_tree_peel_loop_to_edge): Adjust.
14360
14361 2013-01-16 Richard Biener <rguenther@suse.de>
14362
14363 PR tree-optimization/54767
14364 PR tree-optimization/53465
14365 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14366 (vrp_visit_phi_node): For PHI arguments coming via backedges
14367 drop all symbolical range information.
14368 (execute_vrp): Compute backedges.
14369
14370 2013-01-16 Richard Biener <rguenther@suse.de>
14371
14372 * doc/install.texi: Update CLooG and ISL requirements to
14373 0.18.0 and 0.11.1.
14374
14375 2013-01-16 Christian Bruel <christian.bruel@st.com>
14376
14377 PR target/55301
14378 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14379 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14380 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14381
14382 2013-01-16 DJ Delorie <dj@redhat.com>
14383
14384 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14385 (UNSPECV_SP_SWITCH_E): New.
14386 (sp_switch_1): Change to an unspec.
14387 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14388 replace $r15.
14389
14390 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14391
14392 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14393 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14394 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14395 (expand_mem_thread_fence): Ditto.
14396 (expand_mem_signal_fence): Ditto.
14397 (expand_atomic_load): Ditto.
14398 (expand_atomic_store): Ditto.
14399
14400 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14401
14402 PR rtl-optimization/55547
14403 PR rtl-optimization/53827
14404 PR debug/53671
14405 PR debug/49888
14406 * alias.c (memrefs_conflict_p): Set sizes to negative after
14407 AND adjustments.
14408
14409 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14410
14411 PR target/55940
14412 * function.c (thread_prologue_and_epilogue_insns): Always
14413 add crtl->drap_reg to set_up_by_prologue.set, even if
14414 stack_realign_drap is false.
14415
14416 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14417
14418 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14419 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14420 *call): Fix indention.
14421
14422 2013-01-15 Tom de Vries <tom@codesourcery.com>
14423
14424 PR target/55876
14425 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14426 Update comment.
14427
14428 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14429
14430 PR rtl-optimization/55153
14431 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14432
14433 2013-01-15 Martin Jambor <mjambor@suse.cz>
14434
14435 PR tree-optimization/55920
14436 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14437 accesses as grp_to_be_debug_replaced.
14438
14439 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14440
14441 PR tree-optimization/55920
14442 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14443 there is non-useless type conversion needed from debug rhs to lhs,
14444 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14445
14446 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14447 Mikael Pettersson <mikpe@it.uu.se>
14448
14449 PR target/43961
14450 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14451 Thumb.
14452 (ASM_OUTPUT_CASE_LABEL): Remove.
14453 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14454 * final.c (shorten_branches): Update alignment of labels before
14455 jump tables if CASE_VECTOR_SHORTEN_MODE.
14456
14457 2013-01-15 Richard Biener <rguenther@suse.de>
14458
14459 PR bootstrap/55961
14460 * system.h: Do not include gmp.h for building host tools.
14461
14462 2013-01-15 Richard Biener <rguenther@suse.de>
14463
14464 PR middle-end/55882
14465 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14466 account for bitpos when computing alignment.
14467
14468 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14469
14470 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14471 (ix86_target_macros_internal): Likewise.
14472
14473 * config/i386/i386.c (m_CORE2I7): Removed.
14474 (m_CORE_HASWELL): New macro.
14475 (m_CORE_ALL): Likewise.
14476 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14477 (initial_ix86_arch_features): Likewise.
14478 (processor_target_table): Initializations for Core avx2.
14479 (cpu_names): New names "core-avx2".
14480 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14481 PROCESSOR_CORE_HASWELL.
14482 (ix86_issue_rate): New case.
14483 (ia32_multipass_dfa_lookahead): Likewise.
14484 (ix86_sched_init_global): Likewise.
14485
14486 * config/i386/i386.h (TARGET_HASWELL): New macro.
14487 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14488 (processor_type): New PROCESSOR_HASWELL.
14489
14490 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14491
14492 PR tree-optimization/55955
14493 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14494 *SHIFT_EXPR and *ROTATE_EXPR codes.
14495
14496 PR tree-optimization/48766
14497 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14498 -ftrapv disable -fwrapv.
14499
14500 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14501
14502 PR target/55974
14503 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14504 etc. to 1 and not to __flash.
14505 Use LL suffix for __INT24_MAX__ with -mint8.
14506 Use ULL suffix for __UINT24_MAX__ with -mint8.
14507
14508 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14509
14510 * config/avr/avr-arch.h
14511 (struct base_arch_s): Use typedef avr_arch_t instead.
14512 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14513 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14514 * config/avr/avr.c: Same.
14515 * config/avr/avr-devices.c: Same.
14516 * config/avr/driver-avr.c: Same.
14517 * config/avr/gen-avr-mmcu-texi.c: Same.
14518 * config/avr/avr-mcus.def: Adjust comment.
14519
14520 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14521
14522 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14523 * config/aarch64/iterators.md (VALLDI): New.
14524
14525 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14526 Andi Kleen <ak@linux.intel.com>
14527
14528 PR target/55948
14529 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14530 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14531 memmodel flag.
14532
14533 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14534
14535 * config/avr/avr-stdint.h: Remove trailing blanks.
14536 * config/avr/avr-log.h: Same.
14537 * config/avr/avr-arch.h: Same.
14538 * config/avr/avr-devices.c: Same.
14539 * config/avr/avr-dimode.md: Same.
14540 * config/avr/predicates.md: Same.
14541 * config/avr/avr-c.c: Same. And fix typo.
14542
14543 * config/avr/avr-protos.h: Same. And:
14544 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14545 (init_cumulative_args): Rename to avr_init_cumulative_args.
14546 (expand_prologue): Rename to avr_expand_prologue.
14547 (expand_epilogue): Rename to avr_expand_epilogue.
14548 (adjust_insn_length): Rename to avr_adjust_insn_length.
14549 (notice_update_cc): Rename to avr_notice_update_cc.
14550 (final_prescan_insn): Rename to avr_final_prescan_insn.
14551 * config/avr/avr.c: Same.
14552 * config/avr/avr.h: Same.
14553 * config/avr/avr.md: Remove trailing blanks.
14554 (prologue): Use avr_expand_prologue.
14555 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14556
14557 2013-01-14 Richard Biener <rguenther@suse.de>
14558
14559 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14560 verify_location, collect_subblocks): New functions.
14561 (verify_gimple_in_cfg): Verify that locations only reference
14562 BLOCKs in the functions BLOCK tree.
14563
14564 2013-01-14 Richard Biener <rguenther@suse.de>
14565
14566 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14567 PHI argument.
14568 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14569 unshare reference.
14570 (insert_out_of_ssa_copy_on_edge): Likewise.
14571 (rewrite_close_phi_out_of_ssa): Likewise.
14572 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14573 debug expressions.
14574 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14575 propagated constants.
14576 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14577 can not be shared.
14578
14579 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14580
14581 * config/avr/avr-modes.def: Add GPL copyright notice.
14582
14583 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14584
14585 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14586 MEMMODEL_MASK to determine memory model.
14587 (atomic_store<mode>): Ditto from operands[2].
14588 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14589
14590 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14591
14592 PR fortran/55935
14593 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14594 (fold_gimple_assign): Don't call unshare_expr here.
14595 (fold_ctor_reference): Call unshare_expr.
14596
14597 2013-01-13 Terry Guo <terry.guo@arm.com>
14598
14599 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14600 * doc/fragments.texi: Document MULTILIB_REUSE.
14601 * gcc.c (multilib_reuse): New internal spec.
14602 (set_multilib_dir): Also search multilib from multilib_reuse.
14603 * genmultilib (tmpmultilib3): Refactor code.
14604 (tmpmultilib4): Ditto.
14605 (multilib_reuse): New multilib argument.
14606
14607 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14608
14609 * Makefile.in: Update copyright.
14610
14611 2013-01-12 Tom de Vries <tom@codesourcery.com>
14612
14613 PR middle-end/55890
14614 * calls.c (expand_call): Check if arg_nr is valid.
14615
14616 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14617
14618 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14619 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14620 documentation. Add missing '__' in front of
14621 __builtin_ia32_packssdw256.
14622
14623 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14624
14625 PR target/55719
14626 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14627 NO_REGS for larl operands.
14628 (s390_reload_larl_operand): Use s390_load_address instead of
14629 emit_move_insn.
14630
14631 2013-01-11 Richard Biener <rguenther@suse.de>
14632
14633 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14634 (verify_node_sharing): ... here.
14635 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14636
14637 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14638
14639 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14640 Substitute TREECHECKING.
14641 * configure: Regenerate.
14642 * Makefile.in (TREECHECKING): New.
14643
14644 2013-01-11 Richard Guenther <rguenther@suse.de>
14645
14646 PR tree-optimization/44061
14647 * tree-vrp.c (extract_range_basic): Compute zero as
14648 value-range for __builtin_constant_p of function parameters.
14649
14650 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14651
14652 Update copyright years.
14653
14654 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14655
14656 PR rtl-optimization/55672
14657 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14658 const to be eliminable.
14659
14660 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
14661
14662 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14663 * configure: Regenerate.
14664
14665 2013-01-10 Richard Biener <rguenther@suse.de>
14666
14667 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14668
14669 2013-01-10 Richard Biener <rguenther@suse.de>
14670
14671 PR bootstrap/55792
14672 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14673 locations for virtual PHI arguments.
14674 (rewrite_update_phi_arguments): Likewise.
14675
14676 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14677
14678 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14679 on to assembler.
14680
14681 2013-01-10 Jakub Jelinek <jakub@redhat.com>
14682
14683 PR tree-optimization/55921
14684 * tree-complex.c (expand_complex_asm): New function.
14685 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14686
14687 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14688
14689 PR target/55718
14690 * config/s390/s390.c (s390_symref_operand_p)
14691 (s390_loadrelative_operand_p): Merge the two functions.
14692 (s390_check_qrst_address, print_operand_address): Add parameters
14693 to s390_loadrelative_operand_p invokation.
14694 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14695 (s390_reload_larl_operand, s390_secondary_reload): Use
14696 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14697 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14698
14699 2013-01-09 Mike Stump <mikestump@comcast.net>
14700
14701 * dse.c (record_store): Remove unnecessary assert.
14702
14703 2013-01-09 Jan Hubicka <jh@suse.cz>
14704
14705 PR tree-optimization/55569
14706 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14707 * cfgloop.h (scale_loop_profile): Likewise.
14708
14709 2013-01-09 Jan Hubicka <jh@suse.cz>
14710
14711 PR lto/45375
14712 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14713 functions.
14714 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14715
14716 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14717
14718 PR middle-end/55114
14719 * expr.h (maybe_emit_group_store): Declare.
14720 * expr.c (maybe_emit_group_store): New function.
14721 * builtins.c (expand_builtin_int_roundingfn): Call it.
14722 (expand_builtin_int_roundingfn_2): Likewise.
14723
14724 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14725
14726 PR rtl-optimization/55829
14727 * lra-constraints.c (match_reload): Add code for absent output.
14728 (curr_insn_transform): Add code for reloads of matched inputs
14729 without output.
14730
14731 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
14732
14733 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14734 attribute of movddup insn to DF.
14735 (*vec_interleave_lowv2df): Ditto.
14736 (vec_dupv2df): Ditto.
14737
14738 2013-01-09 Jan Hubicka <jh@suse.cz>
14739
14740 PR tree-optimiation/55875
14741 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14742 EVERY_ITERATION parameter.
14743 (number_of_iterations_exit): Check if exit is executed every iteration.
14744 (idx_infer_loop_bounds): Similarly here.
14745 (n_of_executions_at_most): Simplify
14746 to only test for cases where statement is dominated by the
14747 particular bound; handle correctly the "postdominance" test.
14748 (scev_probably_wraps_p): Use max loop iterations info
14749 as a global bound first.
14750
14751 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
14752 Nick Clifton <nickc@redhat.com>
14753
14754 * config/v850/v850.md (cbranchsf4): New pattern.
14755 (cstoresf4): New pattern.
14756 (cbranchdf4): New pattern.
14757 (cstoredf4): New pattern.
14758 (movsicc): Disallow floating point comparisons.
14759 (cmpsf_le_insn): Fix order of operators.
14760 (cmpsf_lt_insn): Likewise.
14761 (cmpsf_eq_insn): Likewise.
14762 (cmpdf_le_insn): Likewise.
14763 (cmpdf_lt_insn): Likewise.
14764 (cmpdf_eq_insn): Likewise.
14765 (cmpsf_ge_insn): Use LE comparison.
14766 (cmpdf_ge_insn): Likewise.
14767 (cmpsf_gt_insn): Use LT comparison.
14768 (cmpdf_gt_insn): Likewise.
14769 (cmpsf_ne_insn): Delete pattern.
14770 (cmpdf_ne_insn): Delete pattern.
14771 * config/v850/v850.c (v850_gen_float_compare): Use
14772 gen_cmpdf_eq_insn for NE comparison.
14773 (v850_float_z_comparison_operator)
14774 (v850_float_nz_comparison_operator): Move from here ...
14775 * config/v850/predicates.md: ... to here. Move GT and GE
14776 comparisons into v850_float_z_comparison_operator.
14777 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14778 Delete prototype.
14779 (v850_float_nz_comparison_operator): Likewise.
14780
14781 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14782
14783 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14784 with calls to gen_insvsi/gen_insvdi.
14785
14786 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14787
14788 * config/i386/i386.c (initial_ix86_tune_features): Set up
14789 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14790
14791 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14792 Jakub Jelinek <jakub@redhat.com>
14793
14794 PR tree-optimization/48189
14795 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14796 If nitercst is 0, don't predict the exit edge.
14797
14798 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14799
14800 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14801 in asm_fprintf with reg_names.
14802 (aarch64_print_operand_address): Likewise.
14803 (aarch64_return_addr): Likewise.
14804 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14805
14806 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14807
14808 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14809 (INT_U6_BITS): Likewise.
14810 * config/pa/predicates.md (uint6_operand): New predicate.
14811 (shift5_operand, shift6_operand): Likewise.
14812 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14813 arith32_operand.
14814 (lshrdi3): Use shift6_operand.
14815 (shrpsi4, shrpdi4): New insn patterns.
14816 (extzv): Delete expander.
14817 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14818 predicates in unamed zero extract patterns. Tighten common constraint.
14819 (extv): Delete expander.
14820 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14821 predicates in unamed sign extract patterns. Tighten common constraint.
14822 (insv): Delete expander.
14823 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14824 predicates in unamed insert patterns. Tighten common constraint.
14825 Change uint32_operand predicate to uint6_operand predicate in unamed
14826 DImode pattern to insert constant values of type 1...1xxxx.
14827
14828 2013-01-04 Jan Hubicka <jh@suse.cz>
14829
14830 PR tree-optimization/55823
14831 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14832 issue.
14833
14834 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14835 Uros Bizjak <ubizjak@gmail.com>
14836
14837 PR rtl-optimization/55845
14838 * df-problems.c (can_move_insns_across): Stop scanning at
14839 volatile_insn_p source instruction or give up if
14840 across_from .. across_to range contains any volatile_insn_p
14841 instructions.
14842
14843 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14844
14845 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14846 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14847 Declare.
14848 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14849 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14850
14851 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14852
14853 PR fortran/55341
14854 * asan.c (asan_clear_shadow): New function.
14855 (asan_emit_stack_protection): Use it.
14856
14857 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14858
14859 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14860 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14861 with tab instead of space.
14862
14863 2013-01-08 Nick Clifton <nickc@redhat.com>
14864
14865 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14866 register bank 0 at the start of an interrupt handler.
14867 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14868 MDBH registers.
14869
14870 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14871
14872 * config/aarch64/aarch64-simd.md
14873 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14874 (aarch64_simd_bsl): Likewise.
14875 (aarch64_vcond_internal<mode>): Likewise.
14876 (vcond<mode><mode>): Likewise.
14877 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14878 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14879
14880 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14881
14882 * config/aarch64/aarch64-builtins.c
14883 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14884
14885 2013-01-08 Martin Jambor <mjambor@suse.cz>
14886
14887 PR debug/55579
14888 * tree-sra.c (analyze_access_subtree): Return true also after
14889 potentially creating a debug-only replacement.
14890
14891 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14892
14893 PR middle-end/55890
14894 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14895
14896 PR tree-optimization/54120
14897 * tree-vrp.c (range_fits_type_p): Don't allow
14898 src_precision < precision from signed vr to unsigned_p
14899 if vr->min or vr->max is negative.
14900 (simplify_float_conversion_using_ranges): Test can_float_p
14901 against CODE_FOR_nothing.
14902
14903 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14904 Richard Biener <rguenther@suse.de>
14905
14906 PR middle-end/55851
14907 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14908 types instead of just INTEGER_TYPE types.
14909
14910 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
14911
14912 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14913 TF_SIZE): Define.
14914
14915 2013-01-07 Steve Ellcey <sellcey@mips.com>
14916
14917 PR target/42661
14918 * config/mips/mips.opt: Change mad to mmad to match documentation.
14919
14920 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14921
14922 PR target/55897
14923 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14924 .progmemx.data now.
14925
14926 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14927
14928 PR target/55897
14929 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14930 (avr_addrspace_t): Add .section_name field.
14931 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14932 array size.
14933 (avr_addrspace): Same. Initialize .section_name. Remove last
14934 NULL entry. Put __memx into .progmemx.data.
14935 (progmem_section_prefix): Remove.
14936 (avr_asm_init_sections): No need to initialize progmem_section.
14937 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14938 section name prefix.
14939 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14940 retrieve the progmem section.
14941 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14942 boundary to run over avr_addrspace[].
14943 (avr_register_target_pragmas): Ditto.
14944
14945 2013-01-06 Jakub Jelinek <jakub@redhat.com>
14946
14947 * varasm.c (output_constant_def_contents): For asan_protect_global
14948 protected strings, adjust DECL_ALIGN if needed, before testing for
14949 anchored symbols.
14950 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14951 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
14952 normal decls.
14953 (output_object_block): For asan protected decls, emit asan padding
14954 after their contents.
14955 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14956 (asan_finish_file): Test it here instead.
14957
14958 2013-01-07 Nick Clifton <nickc@redhat.com>
14959 Matthias Klose <doko@debian.org>
14960 Doug Kwan <dougkwan@google.com>
14961 H.J. Lu <hongjiu.lu@intel.com>
14962
14963 PR driver/55470
14964 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14965
14966 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14967
14968 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14969
14970 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
14971
14972 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14973
14974 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14975
14976 PR target/54461
14977 * doc/install.texi (Cross-Compiler-Specific Options): Document
14978 --with-avrlibc.
14979
14980 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
14981
14982 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14983 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14984 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14985 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14986 vqmovun_high_s64): Fix source operand number and update copyright.
14987
14988 2013-01-07 Richard Biener <rguenther@suse.de>
14989
14990 PR middle-end/55890
14991 * gimple.h (gimple_call_builtin_p): New overload.
14992 * gimple.c (validate_call): New function.
14993 (gimple_call_builtin_p): Likewise.
14994 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14995 Use gimple_call_builtin_p.
14996 (find_func_clobbers): Likewise.
14997 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14998 (strlen_optimize_stmt): Likewise.
14999
15000 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15001
15002 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15003 (vld1q_dup_*): Likewise.
15004 (vld1_*): Likewise.
15005 (vld1q_*): Likewise.
15006 (vld1_lane_*): Likewise.
15007 (vld1q_lane_*): Likewise.
15008
15009 2013-01-07 Richard Biener <rguenther@suse.de>
15010
15011 * lto-streamer.h (LTO_minor_version): Bump to 2.
15012
15013 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15014
15015 * config/aarch64/aarch64-protos.h
15016 (aarch64_const_double_zero_rtx_p): Rename to...
15017 (aarch64_float_const_zero_rtx_p): ...this.
15018 (aarch64_float_const_representable_p): New.
15019 (aarch64_output_simd_mov_immediate): Likewise.
15020 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15021 move immediate case.
15022 * config/aarch64/aarch64.c
15023 (aarch64_const_double_zero_rtx_p): Rename to...
15024 (aarch64_float_const_zero_rtx_p): ...this.
15025 (aarch64_print_operand): Allow printing of new constants.
15026 (aarch64_valid_floating_const): New.
15027 (aarch64_legitimate_constant_p): Check for valid floating-point
15028 constants.
15029 (aarch64_simd_valid_immediate): Likewise.
15030 (aarch64_vect_float_const_representable_p): New.
15031 (aarch64_float_const_representable_p): Likewise.
15032 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15033 (aarch64_output_simd_mov_immediate): New.
15034 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15035 (*movdf_aarch64): Likewise.
15036 * config/aarch64/constraints.md (Ufc): New.
15037 (Y): call aarch64_float_const_zero_rtx.
15038 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15039
15040 2013-01-07 Richard Biener <rguenther@suse.de>
15041
15042 PR tree-optimization/55888
15043 PR tree-optimization/55862
15044 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15045 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15046 not if it is contained therein.
15047
15048 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15049
15050 * config/avr/t-avr: Typo.
15051
15052 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15053
15054 PR55243
15055 * config/avr/t-avr: Don't automatically rebuild
15056 $(srcdir)/config/avr/t-multilib
15057 $(srcdir)/config/avr/avr-tables.opt
15058 $(srcdir)/doc/avr-mmcu.texi
15059 (avr-mcus): New phony target to build them on request.
15060 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15061 * avr/avr-mcus.def: Adjust comments.
15062
15063 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
15064
15065 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15066
15067 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15068
15069 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15070
15071 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15072
15073 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15074
15075 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
15076
15077 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15078 to generate profiling.
15079 * config/rs6000/aix64.h (LIB_SPEC): Same.
15080
15081 2013-01-04 Andrew Pinski <apinski@cavium.com>
15082
15083 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15084 New function.
15085 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15086
15087 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
15088
15089 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15090 unconditionally.
15091 (ix86_expand_move): Ditto.
15092 (ix86_zero_extend_to_Pmode): Ditto.
15093 (ix86_expand_call): Ditto.
15094 (ix86_expand_special_args_builtin): Ditto.
15095 (ix86_expand_builtin): Ditto.
15096
15097 2013-01-04 Richard Biener <rguenther@suse.de>
15098
15099 PR tree-optimization/55862
15100 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15101 translating them through PHI nodes.
15102
15103 2013-01-04 Martin Jambor <mjambor@suse.cz>
15104
15105 PR tree-optimization/55755
15106 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15107 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15108
15109 2013-01-04 Marek Polacek <polacek@redhat.com>
15110
15111 PR middle-end/55859
15112 * opts.c (default_options_optimization): Clarify error message.
15113
15114 2013-01-04 Richard Biener <rguenther@suse.de>
15115
15116 PR middle-end/55863
15117 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15118 reassociation.
15119
15120 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15121
15122 PR target/53789
15123 * config/pa/pa.md (movsi): Revert previous change.
15124 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15125 references.
15126
15127 2013-01-03 Richard Henderson <rth@redhat.com>
15128
15129 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15130 after eliminating TLS symbols.
15131
15132 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
15133
15134 PR bootstrap/50167
15135 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15136 * graphite-poly.c (debug_gmp_value): Likewise.
15137
15138 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
15139
15140 PR target/55712
15141 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15142 selected code model, define __code_mode_small__, __code_model_medium__,
15143 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15144 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15145 xchg temporary register with %k. Declare temporary register as
15146 early clobbered.
15147 [__x86_64__]: For medium and large code models, preserve %rbx register.
15148
15149 2013-01-03 Richard Biener <rguenther@suse.de>
15150
15151 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15152 (dump_subscript): Adjust.
15153 (finalize_ddr_dependent): Do not dump redundant info.
15154 (analyze_siv_subscript): Adjust.
15155 (subscript_dependence_tester): Likewise.
15156 (compute_affine_dependence): Likewise.
15157
15158 2013-01-03 Richard Biener <rguenther@suse.de>
15159
15160 Revert
15161 2013-01-03 Richard Biener <rguenther@suse.de>
15162
15163 PR tree-optimization/55857
15164 * tree-vect-stmts.c (vectorizable_load): Do not setup
15165 re-alignment for invariant loads.
15166
15167 2013-01-02 Richard Biener <rguenther@suse.de>
15168
15169 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15170 invariant load do not generate a vector load from the scalar location.
15171
15172 2013-01-03 Richard Biener <rguenther@suse.de>
15173
15174 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15175 for not vectorizing.
15176 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15177 not build INDIRECT_REFs, call get_name once only.
15178 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15179 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15180
15181 2013-01-03 Richard Biener <rguenther@suse.de>
15182
15183 PR tree-optimization/55857
15184 * tree-vect-stmts.c (vectorizable_load): Do not setup
15185 re-alignment for invariant loads.
15186
15187 2013-01-03 Richard Biener <rguenther@suse.de>
15188
15189 PR lto/55848
15190 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15191 prefer a built-in decl.
15192
15193 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15194
15195 * gcc.c (process_command): Update copyright notice dates.
15196 * gcov.c (print_version): Likewise.
15197 * gcov-dump.c (print_version): Likewise.
15198
15199 PR rtl-optimization/55838
15200 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15201 iv0.step, iv1.step and step.
15202
15203 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15204 Marc Glisse <marc.glisse@inria.fr>
15205
15206 PR tree-optimization/55832
15207 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15208 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15209 integer_{one,zero}_node.
15210
15211 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR debug/54402
15214 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15215 * var-tracking.c (reverse_op): Don't add reverse ops to
15216 VALUEs that have already
15217 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15218
15219 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15220
15221 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15222
15223 2013-01-02 Teresa Johnson <tejohnson@google.com>
15224
15225 * dumpfile.c (dump_loc): Print filename with location.
15226 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15227 new location_t parameter to emit complete unroll message with
15228 new dump framework.
15229 (canonicalize_loop_induction_variables): Compute loops location
15230 and pass to try_unroll_loop_completely.
15231 * loop-unroll.c (report_unroll_peel): New function.
15232 (peel_loops_completely): Use new dump format with location
15233 for main dumpfile message, and invoke report_unroll_peel on success.
15234 (decide_unrolling_and_peeling): Ditto.
15235 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15236 by report_unroll_peel.
15237 (decide_peel_completely): Ditto.
15238 (decide_unroll_constant_iterations): Ditto.
15239 (decide_unroll_runtime_iterations): Ditto.
15240 (decide_peel_simple): Ditto.
15241 (decide_unroll_stupid): Ditto.
15242 * cfgloop.c (get_loop_location): New function.
15243 * cfgloop.h (get_loop_location): Declare.
15244
15245 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15246
15247 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15248 NULL.
15249
15250 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15251
15252 PR middle-end/55198
15253 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15254 BLKmode objects when EXPAND_MEMORY is specified.
15255
15256 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15257
15258 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15259 in loop predicate.
15260 (fold_builtin_cpu): Do not share cpu model decls across statements.
15261
15262 2013-01-02 Jason Merrill <jason@redhat.com>
15263
15264 PR c++/55804
15265 * tree.c (build_array_type_1): Revert earlier change.
15266
15267 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15268
15269 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15270 "cortex-a57".
15271 * config/aarch64/aarch64-tune.md: Re-generate.
15272
15273 2013-01-02 Richard Biener <rguenther@suse.de>
15274
15275 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15276 invariant load do not generate a vector load from the scalar location.
15277
15278 2013-01-02 Richard Biener <rguenther@suse.de>
15279
15280 PR bootstrap/55784
15281 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15282 * configure: Regenerate.
15283
15284 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15285
15286 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15287 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15288 (expand_builtin_int_roundingfn_2): Keep the original target around
15289 for the fallback case.
15290
15291 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15292
15293 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15294 to be clear for sign changes.
15295
15296 2013-01-01 Jan Hubicka <jh@suse.cz>
15297
15298 * ipa-inline-analysis.c: Fix formatting.
15299
15300 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15301
15302 PR tree-optimization/55831
15303 * tree-vect-loop.c (get_initial_def_for_induction): Use
15304 gsi_after_labels instead of gsi_start_bb.
15305 \f
15306 Copyright (C) 2013 Free Software Foundation, Inc.
15307
15308 Copying and distribution of this file, with or without modification,
15309 are permitted in any medium without royalty provided the copyright
15310 notice and this notice are preserved.