]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Fix PR target/57731 PR target/57837
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
0b93d3b6
RR
12013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2
3 PR target/19599
4 PR target/57731
5 PR target/57748
6 * config/arm/arm.md ("*sibcall_value_insn): Replace use of
7 Ss with US. Adjust output for v5 and v4t.
8 (*sibcall_value_insn): Likewise and loosen predicate on
9 operand0.
10 * config/arm/constraints.md ("Ss"): Rename to US.
11
690688b3
TG
122013-07-25 Terry Guo <terry.guo@arm.com>
13
14 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
15 shift_add/shift_sub0/shift_sub1 RTXs.
16
a4ad093b
BS
172013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
18 Anton Blanchard <anton@au1.ibm.com>
19
20 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21 (altivec_vpks<VI_char>ss): Likewise.
22 (altivec_vpks<VI_char>us): Likewise.
23 (altivec_vpku<VI_char>us): Likewise.
24 (altivec_vpku<VI_char>um): Likewise.
25
8c5005ce
DM
262013-07-24 David Malcolm <dmalcolm@redhat.com>
27
28 Introduce context class.
29
30 * Makefile.in (CONTEXT_H): New.
31 (OBJS): Add context.o.
32 (toplev.o): Add CONTEXT_H to dependencies.
33 (context.o): New.
34
35 * toplev.c (general_init): Create the singleton gcc::context
36 instance.
37
38 * context.c: New.
39
40 * context.h: New.
41
ce4a9422
JR
422013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
43
44 PR rtl-optimization/57968
45 * mode-switching.c (create_pre_exit): Allow instructions that
46 don't set a return register to need a non-exit mode.
47
493f4c9e
BS
482013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
49 Anton Blanchard <anton@au1.ibm.com>
50
51 * vector.md (vec_realign_load_<mode>): Reorder input operands to
52 vperm for little endian.
53 * rs6000.c (rs6000_expand_builtin): Use lvsr instead of lvsl to
54 create the control mask for a vperm for little endian.
55
73792b92
BS
562013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
57 Anton Blanchard <anton@au1.ibm.com>
58
59 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
60 two operands for little-endian.
61
14c21302
SE
622013-07-23 Steve Ellcey <sellcey@mips.com>
63
64 * config/mips/mips.c (mips_case_values_threshold): New.
65 (TARGET_CASE_VALUES_THRESHOLD): Define.
66
a6056198
BS
672013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
68 Anton Blanchard <anton@au1.ibm.com>
69
70 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
71 selection of field for vector splat in little endian mode.
72
dd7a40e1
MM
732013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
74
75 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
76 expanders to rs6000.md.
77 (ior<mode>3): Likewise.
78 (and<mode>3): Likewise.
79 (one_cmpl<mode>2): Likewise.
80 (nor<mode>3): Likewise.
81 (andc<mode>3): Likewise.
82 (eqv<mode>3): Likewise.
83 (nand<mode>3): Likewise.
84 (orc<mode>3): Likewise.
85
86 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
87 declaration.
88
89 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
90 to split multi-word logical operations.
91 (rs6000_split_logical_di): Likewise.
92 (rs6000_split_logical): Likewise.
93
94 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
95 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
96 and allow TImode operations in 32-bit.
97 (vsx_and<mode>3_64bit): Likewise.
98 (vsx_ior<mode>3_32bit): Likewise.
99 (vsx_ior<mode>3_64bit): Likewise.
100 (vsx_xor<mode>3_32bit): Likewise.
101 (vsx_xor<mode>3_64bit): Likewise.
102 (vsx_one_cmpl<mode>2_32bit): Likewise.
103 (vsx_one_cmpl<mode>2_64bit): Likewise.
104 (vsx_nor<mode>3_32bit): Likewise.
105 (vsx_nor<mode>3_64bit): Likewise.
106 (vsx_andc<mode>3_32bit): Likewise.
107 (vsx_andc<mode>3_64bit): Likewise.
108 (vsx_eqv<mode>3_32bit): Likewise.
109 (vsx_eqv<mode>3_64bit): Likewise.
110 (vsx_nand<mode>3_32bit): Likewise.
111 (vsx_nand<mode>3_64bit): Likewise.
112 (vsx_orc<mode>3_32bit): Likewise.
113 (vsx_orc<mode>3_64bit): Likewise.
114
115 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
116 logical types in GPRs.
117
118 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
119 logical insns to rs6000.md, and allow TImode operations in
120 32-bit.
121 (altivec_ior<mode>3): Likewise.
122 (altivec_xor<mode>3): Likewise.
123 (altivec_one_cmpl<mode>2): Likewise.
124 (altivec_nor<mode>3): Likewise.
125 (altivec_andc<mode>3): Likewise.
126
127 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
128 attributes for moving the 128-bit logical operations into
129 rs6000.md.
130 (BOOL_REGS_OUTPUT): Likewise.
131 (BOOL_REGS_OP1): Likewise.
132 (BOOL_REGS_OP2): Likewise.
133 (BOOL_REGS_UNARY): Likewise.
134 (BOOL_REGS_AND_CR0): Likewise.
135 (one_cmpl<mode>2): Add support for DI logical operations on
136 32-bit, splitting the operations to 32-bit.
137 (anddi3): Likewise.
138 (iordi3): Likewise.
139 (xordi3): Likewise.
140 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
141 changes to combine the 32/64-bit code, allow logical operations on
142 TI mode in 32-bit, and to use similar match_operator patterns like
143 scalar mode uses. Combine the Altivec and VSX code for logical
144 operations, and move it here.
145 (ior<mode>3, 128-bit types): Likewise.
146 (xor<mode>3, 128-bit types): Likewise.
147 (one_cmpl<mode>3, 128-bit types): Likewise.
148 (nor<mode>3, 128-bit types): Likewise.
149 (andc<mode>3, 128-bit types): Likewise.
150 (eqv<mode>3, 128-bit types): Likewise.
151 (nand<mode>3, 128-bit types): Likewise.
152 (orc<mode>3, 128-bit types): Likewise.
153 (and<mode>3_internal): Likewise.
154 (bool<mode>3_internal): Likewise.
155 (boolc<mode>3_internal1): Likewise.
156 (boolc<mode>3_internal2): Likewise.
157 (boolcc<mode>3_internal1): Likewise.
158 (boolcc<mode>3_internal2): Likewise.
159 (eqv<mode>3_internal1): Likewise.
160 (eqv<mode>3_internal2): Likewise.
161 (one_cmpl1<mode>3_internal): Likewise.
162
9b69d4b4
DH
1632013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
164
165 * config/microblaze/microblaze.c (microblaze_expand_prologue):
166 Rename flag_stack_usage to flag_stack_usage_info.
167
450b0ebb
DH
1682013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
169
a5f257fd
ME
170 * config/microblaze/sync.md: New file.
171 * config/microblaze/microblaze.md: Include sync.md
172 * config/microblaze/microblaze.c: Add print_operand 'y'.
173 * config/microblaze/constraints.md: Add memory_contraint
174 'Q' which is a single register.
450b0ebb 175
49fba14f
EB
1762013-07-23 Eric Botcazou <ebotcazou@adacore.com>
177
178 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
179
c7b3b99f
PCC
1802013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
181
182 * reload.c (find_reloads): Exit loop once we find this operand
183 cannot be reloaded somehow for this alternative.
184
185 * reload.c (find_reloads): Exit loop once we find a hard register.
186
187 * rtlanal.c (computed_jump_p): Exit loop once we find label
188 reference is used.
189
190 * i386.c (ix86_pad_returns): Exit loop after setting replace.
191
192 * cfgloopmanip.c (remove_path): Exit loop after setting
193 irred_invalidated.
194
195 * gensupport.c (subst_dup): Avoid loop if code is not
196 MATCH_DUP nor MATCH_OP_DUP.
197
c8fbf1fa
NBJ
1982013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
199
200 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
201
9259db42
YZ
2022013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
203
204 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
205 true for SP_REGNUM if mode == ptr_mode.
206 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
207 with value R0_REGNUM + 31.
208
00edcfbe
YZ
2092013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
210
211 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
212 pad pointer-typed argument downward.
213
43be9a95
YZ
2142013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
215
216 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
217 and __ILP32__ when the ILP32 model is in use.
218
28514dda
YZ
2192013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
220
221 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
222 (aarch64_load_symref_appropriately): In the case of
223 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
224 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
225 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
226 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
227 if 'mode' doesn't equal to 'ptr_mode'.
228 (aarch64_output_mi_thunk): Add an assertion on the alignment of
229 'vcall_offset'; change to call aarch64_emit_move differently depending
230 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
231 to calculate the upper bound of 'vcall_offset'.
232 (aarch64_cannot_force_const_mem): Change to also return true if
233 mode != ptr_mode.
234 (aarch64_legitimize_reload_address): In the case of large
235 displacements, add new local variable 'xmode' and an assertion
236 based on it; change to use 'xmode' to generate the new rtx and
237 reload.
238 (aarch64_asm_trampoline_template): Change to generate the template
239 differently depending on TARGET_ILP32 or not; change to use
240 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
241 (aarch64_trampoline_size): Removed.
242 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
243 and replace immediate literals with it. Change to use 'ptr_mode'
244 instead of 'DImode' and call convert_memory_address if the mode
245 of 'fnaddr' doesn't equal to 'ptr_mode'.
246 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
247 to output symbol.
248 (aarch64_elf_asm_destructor): Likewise.
249 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
250 on TARGET_ILP32 instead of aarch64_trampoline_size.
251 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
252 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
253 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
254 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
255 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
256 (storewb_pair<GPI:mode>_<P:mode>): ... this.
257 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
258 depending on the value of 'mode'.
259 (add_losym_<mode>): New.
260 (ldr_got_small_<mode>): New, based on ldr_got_small.
261 (ldr_got_small): Remove.
262 (ldr_got_small_sidi): New.
263 * config/aarch64/iterators.md (P): New.
264 (PTR): Change to 'ptr_mode' in the condition.
265
17a819cb
YZ
2662013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
267
268 * config.gcc (aarch64*-*-*): Support --with-abi.
269 (aarch64*-*-elf): Support --with-multilib-list.
270 (aarch64*-*-linux*): Likewise.
271 (supported_defaults): Add abi to aarch64*-*-*.
272 * configure.ac: Mention AArch64 for --with-multilib-list.
273 * configure: Re-generated.
274 * config/aarch64/biarchilp32.h: New file.
275 * config/aarch64/biarchlp64.h: New file.
276 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
277 (ABI_SPEC): Ditto.
278 (MULTILIB_DEFAULTS): Ditto.
279 (DRIVER_SELF_SPECS): Ditto.
280 (ASM_SPEC): Update to also substitute -mabi.
281 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
282 file whose name depends on -mabi= and -mbig-endian.
283 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
284 TARGET_ILP32.
285 (POINTER_SIZE): New define.
286 (POINTERS_EXTEND_UNSIGNED): Ditto.
287 (enum aarch64_abi_type): New enumeration tag.
288 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
289 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
290 (TARGET_ILP32): New define.
291 * config/aarch64/aarch64.opt (mabi): New.
292 (aarch64_abi): New.
293 (ilp32, lp64): New values for -mabi.
294 * config/aarch64/t-aarch64 (comma): New define.
295 (MULTILIB_OPTIONS): Ditto.
296 (MULTILIB_DIRNAMES): Ditto.
297 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
298 * doc/invoke.texi: Document -mabi for AArch64.
299
9f9cbdce
GJL
3002013-07-23 Georg-Johann Lay <avr@gjlay.de>
301
302 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
303
7061977b
BS
3042013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
305 Anton Blanchard <anton@au1.ibm.com>
306
307 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
308 endianness when selecting field to splat.
309
75a41878
EC
3102013-07-22 Eric Christopher <echristo@gmail.com>
311
312 * dwarf2out.c (die_odr_checksum): New function to use
313 CHECKSUM_ macros and ULEB128 for DIE tag.
314 (generate_type_signature): Use.
315
38ae58ca
EB
3162013-07-22 Eric Botcazou <ebotcazou@adacore.com>
317
318 * config.gcc (sparc*-*-*): Accept leon3 processor.
319 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
320 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
321 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
322 * config/sparc/sparc.opt (enum processor_type): Add leon3.
323 (mfix-ut699): Adjust comment.
324 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
325 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
326 (CPP_CPU_SPEC): Likewise.
327 (ASM_CPU_SPEC): Likewise.
328 * config/sparc/sparc.c (leon3_cost): New constant.
329 (sparc_option_override): Add leon3 support.
330 (mem_ref): New function.
331 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
332 (sparc_do_work_around_errata): Look into the instruction in the delay
333 slot and adjust accordingly. Add fix for the data cache nullify issues
334 of the UT699. Change insertion position for the NOP.
335 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
336 (leon3_load): New reservation.
337 (leon_store): Bump latency to 2.
338 (grfpu): New automaton.
339 (grfpu_alu): New unit.
340 (grfpu_ds): Likewise.
341 (leon_fp_alu): Adjust.
342 (leon_fp_mult): Delete.
343 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
344 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
345 * config/sparc/sparc.md (cpu): Add leon3.
346 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
347 (swapsi): Likewise.
348 (atomic_test_and_set): Likewise.
349 (ldstub): Likewise.
350
04dfc6df
JU
3512013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
352
353 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
354 default for R5900 targets.
355 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
356 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
357 * config/mips/mips.c (mips_option_override): Report an error for
358 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
359 for -march=r5900 -mhard-float.
360
c7b3b99f 3612013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
362
363 * df-problems.c (can_move_insns_across): Exit loop once we
364 find a non-fixed, non-global register.
365
366 * ipa-pure-const.c (propagate_nothrow): Exit loop after
367 setting can_throw.
368
369 * omega.c (omega_eliminate_red): Break after setting red_found.
370 (omega_problem_has_red_equations): Similarly after setting found.
371 (omega_query_variable): Similarly after setting coupled.
372
9b6e6981
MP
3732013-07-22 Marek Polacek <polacek@redhat.com>
374
375 * gimplify.c: Don't include gimple.h twice.
376
5e5f7673
KT
3772013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
378
379 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
380 instead of TARGET_THUMB1.
381 (Pz): New constraint.
382 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
383 encodings.
384 (compare_negsi_si): Likewise.
385 (compare_addsi2_op0): Likewise.
386 (compare_addsi2_op1): Likewise.
387 (addsi3_carryin_<optab>): Likewise.
388 (addsi3_carryin_alt2_<optab>): Likewise.
389 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
390 for arm_restrict_it.
391 (subsi3_carryin): Likewise.
392 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
393 (minmax_arithsi): Disable for arm_restrict_it.
394 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
395 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
396 (satsi_<SAT:code>_shift): Likewise.
397 (arm_shiftsi3): Add alternative for 16-bit encoding.
398 (arm32_movhf): Disable for arm_restrict_it.
399 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
400 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
401
859abddd
SN
4022013-07-22 Sofiane Naci <sofiane.naci@arm.com>
403
404 * config/arm/arm.md (attribute "insn"): Delete.
405 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
406 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
407 (not_shiftsi): Update for attribute change.
408 (not_shiftsi_compare0): Likewise.
409 (not_shiftsi_compare0_scratch): Likewise.
410 (arm_one_cmplsi2): Likewise.
411 (thumb1_one_cmplsi2): Likewise.
412 (notsi_compare0): Likewise.
413 (notsi_compare0_scratch): Likewise.
414 (thumb1_movdi_insn): Likewise.
415 (arm_movsi_insn): Likewise.
416 (movhi_insn_arch4): Likewise.
417 (movhi_bytes): Likewise.
418 (arm_movqi_insn): Likewise.
419 (thumb1_movqi_insn): Likewise.
420 (arm32_movhf): Likewise.
421 (thumb1_movhf): Likewise.
422 (arm_movsf_soft_insn): Likewise.
423 (thumb1_movsf_insn): Likewise.
424 (thumb_movdf_insn): Likewise.
425 (movsicc_insn): Likewise.
426 (movsfcc_soft_insn): Likewise.
427 (and_scc): Likewise.
428 (cond_move): Likewise.
429 (if_move_not): Likewise.
430 (if_not_move): Likewise.
431 (if_shift_move): Likewise.
432 (if_move_shift): Likewise.
433 (if_shift_shift): Likewise.
434 (if_not_arith): Likewise.
435 (if_arith_not): Likewise.
436 (cond_move_not): Likewise.
437 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
438 (neon_mov<mode>): Likewise.
439 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
440 (thumb2_movsi_vfp): Likewise.
441 (movsf_vfp): Likewise.
442 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
443 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
444 change.
859abddd
SN
445 (cortexa7_older_only): Likewise.
446 (cortexa7_younger): Likewise.
447 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
448 (1020alu_shift_op): Likewise.
449 (1020alu_shift_reg_op): Likewise.
450 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
451 (alu_shift_op): Likewise.
452 (alu_shift_reg_op): Likewise.
453 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
454 (11_alu_shift_op): Likewise.
455 (11_alu_shift_reg_op): Likewise.
456 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
457 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
458 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
459 change.
859abddd
SN
460 (cortex_a15_alu_shift): Likewise.
461 (cortex_a15_alu_shift_reg): Likewise.
462 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
463 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
464 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
465 change.
859abddd 466 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
467 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
468 change.
859abddd
SN
469 (cortex_a7_alu_reg): Likewise.
470 (cortex_a7_alu_shift): Likewise.
471 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
472 (cortex_a8_alu_shift): Likewise.
473 (cortex_a8_alu_shift_reg): Likewise.
474 (cortex_a8_mov): Likewise.
475 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
476 (cortex_a9_dp_shift): Likewise.
477 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
478 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
479 (cortex_r4_mov): Likewise.
480 (cortex_r4_alu_shift): Likewise.
481 (cortex_r4_alu_shift_reg): Likewise.
482 * config/arm/fa526.md (526_alu_op): Update for attribute change.
483 (526_alu_shift_op): Likewise.
484 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
485 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
486 (626te_alu_shift_op): Likewise.
487 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
488 (726te_alu_op): Likewise.
489 (726te_alu_shift_op): Likewise.
490 (726te_alu_shift_reg_op): Likewise.
491 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
492 (mp626_alu_shift_op): Likewise.
493 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
494 (pj4_alu_e1_conds): Likewise.
495 (pj4_alu): Likewise.
496 (pj4_alu_conds): Likewise.
497 (pj4_shift): Likewise.
498 (pj4_shift_conds): Likewise.
499 (pj4_alu_shift): Likewise.
500 (pj4_alu_shift_conds): Likewise.
501
95b97fac
KT
5022013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
503
504 * config/arm/predicates.md (shiftable_operator_strict_it):
505 New predicate.
506 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
507 Disable cond_exec version for arm_restrict_it.
508 (thumb2_smaxsi3): Convert to generate cond_exec.
509 (thumb2_sminsi3): Likewise.
510 (thumb32_umaxsi3): Likewise.
511 (thumb2_uminsi3): Likewise.
512 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
513 (thumb2_neg_abssi2): Likewise.
514 (thumb2_mov_scc): Add alternative for 16-bit encoding.
515 (thumb2_movsicc_insn): Adjust alternatives.
516 (thumb2_mov_negscc): Disable for arm_restrict_it.
517 (thumb2_mov_negscc_strict_it): New pattern.
518 (thumb2_mov_notscc_strict_it): New pattern.
519 (thumb2_mov_notscc): Disable for arm_restrict_it.
520 (thumb2_ior_scc): Likewise.
521 (thumb2_ior_scc_strict_it): New pattern.
522 (thumb2_cond_move): Adjust for arm_restrict_it.
523 (thumb2_cond_arith): Disable for arm_restrict_it.
524 (thumb2_cond_arith_strict_it): New pattern.
525 (thumb2_cond_sub): Adjust for arm_restrict_it.
526 (thumb2_movcond): Likewise.
527 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
528 (thumb2_zero_extendhisi2_v6): Likewise.
529 (thumb2_zero_extendqisi2_v6): Likewise.
530 (orsi_notsi_si): Likewise.
531 (orsi_not_shiftsi_si): Likewise.
532
d5a6ef82
GJL
5332013-07-22 Georg-Johann Lay <avr@gjlay.de>
534
535 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
536 instruction sequence is 1 byte shorter.
537
d9e71154
UB
5382013-07-22 Uros Bizjak <ubizjak@gmail.com>
539
540 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
541 it is not needed after split.
542
8c6381ec
IS
5432013-07-20 Iain Sandoe <iain@codesourcery.com>
544
545 PR target/51784
546 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
547 second label for nonlocal goto receivers. Don't output pic base labels
548 unless we're producing PIC; mark that action unreachable().
549 (ix86_save_reg): If the function contains a nonlocal label, save the
550 PIC base reg.
551 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
371e77e3 552 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
553 (update_pic_label_number_if_needed): New.
554 (machopic_output_function_base_name): Adjust for nonlocal receiver
555 case.
556 (machopic_should_output_picbase_label): New.
557 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
558 (nonlocal_goto_receiver): New insn and split.
559
d05d0709
JG
5602013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
561
562 * config/aarch64/aarch64-builtins.c
563 (aarch64_fold_builtin): Fold abs in all modes.
564 * config/aarch64/aarch64-simd-builtins.def
565 (abs): Enable for all modes.
566 * config/aarch64/arm_neon.h
567 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
568 (vabs_f64): Add missing intrinsic.
569
ba590e63
IB
5702013-07-19 Ian Bolton <ian.bolton@arm.com>
571
572 * config/aarch64/arm_neon.h (vabs_s64): New function
573
02371798
GJL
5742013-07-19 Georg-Johann Lay <avr@gjlay.de>
575
576 PR target/57516
577 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
578 * config/avr/avr.md (adjust_len): Add `round'.
579 * config/avr/avr-protos.h (avr_out_round): New prototype.
580 (avr_out_plus): Add `out_label' argument.
581 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
582 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
583 Handle the case where `insn' is just a pattern.
584 (avr_out_bitop): Handle the case where `insn' is just a pattern.
585 (avr_out_round): New function.
586 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
587
b950ac25
DH
5882013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
589
590 * config/microblaze/microblaze.c (microblaze_expand_prologue):
591 Add check for flag_stack_usage to handle -fstack-usage support
592
ed1fd999
PH
5932013-07-18 Pat Haugen <pthaugen@us.ibm.com>
594
595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
596 interaction for new Power8 flags and VSX.
597
df9dda2d
ST
5982013-07-18 Sriraman Tallam <tmsriram@google.com>
599
600 PR middle-end/57698
601 * tree-inline.c (expand_call_inline): Emit errors during
602 early_inlining only if optimization is not turned on.
603
0f9cdef4
DM
6042013-07-18 David Malcolm <dmalcolm@redhat.com>
605
606 * passes.def: New.
607
608 * passes.c (init_optimization_passes): Move the construction of
609 the pass hierarchy into a new passes.def file.
610
611 * Makefile.in (passes.o): Add dependency on passes.def.
612
2efa4087
DM
6132013-07-18 David Malcolm <dmalcolm@redhat.com>
614
615 * passes.c (init_optimization_passes): Introduce macros for
616 constructing the tree of passes (INSERT_PASSES_AFTER,
617 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
618 TERMINATE_PASS_LIST).
619
bc404e1b
VM
6202013-07-18 Vladimir Makarov <vmakarov@redhat.com>
621 Wei Mi <wmi@google.com>
622
623 PR rtl-optimization/57878
624 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
625 top.
626 (reload_pseudo_compare_func): Check nregs first for reload
627 pseudos.
628
d675843f
DM
6292013-07-18 David Malcolm <dmalcolm@redhat.com>
630
631 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
632
c7b3b99f 6332013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
634
635 * read-rtl.c (validate_const_int): Once an invalid character is
636 seen, quit the loop.
637
638 * gengtype.c (write_roots): Similarly once we find the "deletable"
639 or "if_marked" option.
640
52fceb44
SN
6412013-07-18 Sofiane Naci <sofiane.naci@arm.com>
642
643 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
644 "xtab" and "sat". Move value "clz" from here to ...
645 (attriubte "type"): ... here.
646 (satsi_<SAT:code>): Delete "insn" attribute.
647 (satsi_<SAT:code>_shift): Likewise.
648 (arm_zero_extendqisi2addsi): Likewise.
649 (arm_extendqisi2addsi): Likewise.
650 (clzsi2): Update for attribute changes.
651 (rbitsi2): Likewise.
371e77e3
UB
652 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
653 attribute.
52fceb44
SN
654 (arm_usatsihi): Likewise.
655 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
656
006bd006
SN
6572013-07-18 Sofiane Naci <sofiane.naci@arm.com>
658
659 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
660 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
661 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
662 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
663 in alphabetical order.
664 (attribute "core_cycles"): Update for attribute changes.
665 (arm_addsi3): Likewise.
666 (addsi3_compare0): Likewise.
667 (addsi3_compare0_scratch): Likewise.
668 (addsi3_compare_op1): Likewise.
669 (addsi3_compare_op2): Likewise.
670 (compare_addsi2_op0): Likewise.
671 (compare_addsi2_op1): Likewise.
672 (addsi3_carryin_shift_<optab>): Likewise.
673 (subsi3_carryin_shift): Likewise.
674 (rsbsi3_carryin_shift): Likewise.
675 (arm_subsi3_insn): Likewise.
676 (subsi3_compare0): Likewise.
677 (subsi3_compare): Likewise.
678 (arm_andsi3_insn): Likewise.
679 (thumb1_andsi3_insn): Likewise.
680 (andsi3_compare0): Likewise.
681 (andsi3_compare0_scratch): Likewise.
682 (zeroextractsi_compare0_scratch
683 (andsi_not_shiftsi_si): Likewise.
684 (iorsi3_insn): Likewise.
685 (iorsi3_compare0): Likewise.
686 (iorsi3_compare0_scratch): Likewise.
687 (arm_xorsi3): Likewise.
688 (thumb1_xorsi3_insn): Likewise.
689 (xorsi3_compare0): Likewise.
690 (xorsi3_compare0_scratch): Likewise.
691 (satsi_<SAT:code>_shift): Likewise.
692 (rrx): Likewise.
693 (arm_shiftsi3): Likewise.
694 (shiftsi3_compare0): Likewise.
695 (not_shiftsi): Likewise.
696 (not_shiftsi_compare0): Likewise.
697 (not_shiftsi_compare0_scratch): Likewise.
698 (arm_one_cmplsi2): Likewise.
699 (thumb_one_complsi2): Likewise.
700 (notsi_compare0): Likewise.
701 (notsi_compare0_scratch): Likewise.
702 (thumb1_zero_extendhisi2): Likewise.
703 (arm_zero_extendhisi2): Likewise.
704 (arm_zero_extendhisi2_v6): Likewise.
705 (arm_zero_extendhisi2addsi): Likewise.
706 (thumb1_zero_extendqisi2): Likewise.
707 (thumb1_zero_extendqisi2_v6): Likewise.
708 (arm_zero_extendqisi2): Likewise.
709 (arm_zero_extendqisi2_v6): Likewise.
710 (arm_zero_extendqisi2addsi): Likewise.
711 (thumb1_extendhisi2): Likewise.
712 (arm_extendhisi2): Likewise.
713 (arm_extendhisi2_v6): Likewise.
714 (arm_extendqisi): Likewise.
715 (arm_extendqisi_v6): Likewise.
716 (arm_extendqisi2addsi): Likewise.
717 (thumb1_extendqisi2): Likewise.
718 (thumb1_movdi_insn): Likewise.
719 (arm_movsi_insn): Likewise.
720 (movsi_compare0): Likewise.
721 (movhi_insn_arch4): Likewise.
722 (movhi_bytes): Likewise.
723 (arm_movqi_insn): Likewise.
724 (thumb1_movqi_insn): Likewise.
725 (arm32_movhf): Likewise.
726 (thumb1_movhf): Likewise.
727 (arm_movsf_soft_insn): Likewise.
728 (thumb1_movsf_insn): Likewise.
729 (movdf_soft_insn): Likewise.
730 (thumb_movdf_insn): Likewise.
731 (arm_cmpsi_insn): Likewise.
732 (cmpsi_shiftsi): Likewise.
733 (cmpsi_shiftsi_swp): Likewise.
734 (arm_cmpsi_negshiftsi_si): Likewise.
735 (movsicc_insn): Likewise.
736 (movsfcc_soft_insn): Likewise.
737 (arith_shiftsi): Likewise.
738 (arith_shiftsi_compare0
739 (arith_shiftsi_compare0_scratch
740 (sub_shiftsi): Likewise.
741 (sub_shiftsi_compare0
742 (sub_shiftsi_compare0_scratch
743 (and_scc): Likewise.
744 (cond_move): Likewise.
745 (if_plus_move): Likewise.
746 (if_move_plus): Likewise.
747 (if_move_not): Likewise.
748 (if_not_move): Likewise.
749 (if_shift_move): Likewise.
750 (if_move_shift): Likewise.
751 (if_shift_shift): Likewise.
752 (if_not_arith): Likewise.
753 (if_arith_not): Likewise.
754 (cond_move_not): Likewise.
755 (thumb1_ashlsi3): Set type attribute.
756 (thumb1_ashrsi3): Likewise.
757 (thumb1_lshrsi3): Likewise.
758 (thumb1_rotrsi3): Likewise.
759 (shiftsi3_compare0_scratch): Likewise.
760 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
761 (neon_mov<mode>): Likewise.
371e77e3
UB
762 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
763 attribute changes.
006bd006
SN
764 (thumb2_movsi_insn): Likewise.
765 (thumb2_cmpsi_neg_shiftsi): Likewise.
766 (thumb2_extendqisi_v6): Likewise.
767 (thumb2_zero_extendhisi2_v6): Likewise.
768 (thumb2_zero_extendqisi2_v6): Likewise.
769 (thumb2_shiftsi3_short): Likewise.
770 (thumb2_addsi3_compare0_scratch): Likewise.
771 (orsi_not_shiftsi_si): Likewise.
772 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
773 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
774 changes.
775 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
776 (1020alu_shift_op): Likewise.
777 (1020alu_shift_reg_op): Likewise.
778 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
779 (alu_shift_op): Likewise.
780 (alu_shift_reg_op): Likewise.
781 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
782 (11_alu_shift_op): Likewise.
783 (11_alu_shift_reg_op): Likewise.
784 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
785 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
786 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
787 changes.
006bd006
SN
788 (cortex_a15_alu_shift): Likewise.
789 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
790 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
791 changes.
006bd006
SN
792 (cortex_a5_alu_shift): Likewise.
793 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
794 changes.
795 (cortex_a53_alu_shift): Likewise.
796 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
797 changes.
798 (cortex_a7_alu_reg): Likewise.
799 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
800 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
801 changes.
006bd006
SN
802 (cortex_a8_alu_shift): Likewise.
803 (cortex_a8_alu_shift_reg): Likewise.
804 (cortex_a8_mov): Likewise.
805 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
806 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
807 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
808 changes.
809 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
810 changes.
006bd006
SN
811 (cortex_r4_mov): Likewise.
812 (cortex_r4_alu_shift): Likewise.
813 (cortex_r4_alu_shift_reg): Likewise.
814 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
815 (526_alu_shift_op): Likewise.
816 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
817 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
818 (626te_alu_shift_op): Likewise.
819 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
820 (726te_alu_op): Likewise.
821 (726te_alu_shift_op): Likewise.
822 (726te_alu_shift_reg_op): Likewise.
823 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
824 (mp626_alu_shift_op): Likewise.
825 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
826 (pj4_alu_e1_conds): Likewise.
827 (pj4_alu): Likewise.
828 (pj4_alu_conds): Likewise.
829 (pj4_shift): Likewise.
830 (pj4_shift_conds): Likewise.
831 (pj4_alu_shift): Likewise.
832 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
833 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
834 changes.
006bd006
SN
835 (cortexa7_older_only): Likewise.
836 (cortexa7_younger): Likewise.
837
651df1b2
DM
8382013-07-18 David Malcolm <dmalcolm@redhat.com>
839
840 * ipa-pure-const.c (generate_summary): Rename to...
841 (pure_const_generate_summary): ... this.
842
ea717bd7
IS
8432013-07-17 Iain Sandoe <iain@codesourcery.com>
844
845 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
846
a1259a13
YR
8472013-07-17 Yvan Roux <yvan.roux@linaro.org>
848
849 PR target/57909
850 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
851 usage in HI mode.
852
167f68ed
AK
8532013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
854
855 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
856 enabled without -march=zEC12.
857 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
858 flags to be set.
859
f900a982
MR
8602013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
861
862 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
863 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
864 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
865 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
866 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
867 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
868 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
869 ISA_HAS_FP4.
870 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
871 and ISA_HAS_NMADD3_NMSUB3.
872 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
873 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
874 (nmsub4<mode>, nmsub3<mode>): Likewise.
875 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
876
d4ed27eb
MR
8772013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
878
879 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
880 TARGET_MIPS5400 checking.
881
7a5add18
PB
8822013-07-16 Jakub Jelinek <jakub@redhat.com>
883 Peter Bergner <bergner@vnet.ibm.com>
884
885 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
886 registers in the comment.
887 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
888 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
889 rather than FIRST_PSEUDO_REGISTERS.
890
8912013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
892
893 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
894 enable extra ISA flags with TARGET_HTM.
895
d2ab0929
MR
8962013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
897
898 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
899 Fix comment typos.
900
839c74bc
CH
9012013-07-15 Cong Hou <congh@google.com>
902
903 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
904 in compare function for sorting.
905
7a5add18 9062013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
907
908 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
909 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
910 * config/rs6000/rs6000.opt: Add -mhtm option.
911 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
912 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
913 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
914 __HTM__ if the HTM instructions are available.
915 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
916 htm_spr_reg_operand): New define_predicates.
917 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
918 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
919 Include htm.md.
920 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
921 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
922 HTM builtin functions.
923 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
924 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
925 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
926 (rs6000_builtin_mask_calculate): Likewise.
927 (rs6000_option_override_internal): Likewise.
928 (bdesc_htm): Add new HTM builtin support.
929 (htm_spr_num): New function.
930 (htm_spr_regno): Likewise.
931 (rs6000_htm_spr_icode): Likewise.
932 (htm_expand_builtin): Likewise.
933 (htm_init_builtins): Likewise.
934 (rs6000_expand_builtin): Add support for HTM builtin functions.
935 (rs6000_init_builtins): Likewise.
371e77e3
UB
936 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
937 option.
0258b6e4
PB
938 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
939 (TARGET_HTM, MASK_HTM): Define macros.
940 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
941 (FIXED_REGISTERS): Likewise.
942 (CALL_USED_REGISTERS): Likewise.
943 (CALL_REALLY_USED_REGISTERS): Likewise.
944 (REG_ALLOC_ORDER): Likewise.
945 (enum reg_class): Likewise.
946 (REG_CLASS_NAMES): Likewise.
947 (REG_CLASS_CONTENTS): Likewise.
948 (REGISTER_NAMES): Likewise.
949 (ADDITIONAL_REGISTER_NAMES): Likewise.
950 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
951 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
952 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
953 * config/rs6000/htm.md: New file.
954 * config/rs6000/htmintrin.h: New file.
955 * config/rs6000/htmxlintrin.h: New file.
956
87dd8ab0
MS
9572013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
958
959 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
960 Define SYMBOL_TINY_GOT, update comment.
961 * config/aarch64/aarch64.c
962 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
963 (aarch64_expand_mov_immediate): Likewise.
964 (aarch64_print_operand): Likewise.
965 (aarch64_classify_symbol): Likewise.
966 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
967 (ldr_got_tiny): Define.
968
52d676b6
TG
9692013-07-13 Tobias Grosser <tobias@grosser.es>
970
971 PR tree-optimization/54094
972 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
973 scheduling dimension for the parallelism check from the polyhedral
974 information in the AST.
975 * graphite-dependences.c (carries_deps): Do not assume the schedule is
976 in 2D + 1 form.
977
286e8fc1
JM
9782013-07-13 Jason Merrill <jason@redhat.com>
979
980 * print-tree.c (debug_vec_tree): Use debug_raw.
981 (debug_raw (vec<tree, va_gc> &)): New.
982 (debug_raw (vec<tree, va_gc> *)): New.
983 * tree.h: Declare them.
984
e43257e8
BC
9852013-07-13 Bin Cheng <bin.cheng@arm.com>
986
987 * ifcvt.c (ifcvt_after_combine): New static variable.
988 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
989 for size.
990 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
991 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
992 rest_of_handle_if_after_reload): Pass new argument for if_convert.
993
da582d46
MR
9942013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
995
996 * config/mips/mips.c (mips_expand_call): Remove empty statement.
997
18b0ea8f
MM
9982013-07-12 Michael Matz <matz@suse.de>
999
1000 PR middle-end/55771
1001 * convert.c (convert_to_real): Reject non-float inner types.
1002
e4f0f84d
TB
10032013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1004
1005 * config/aarch64/aarch64-protos.h
1006 (aarch64_simd_immediate_valid_for_move): Remove.
1007 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1008 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1009 cases.
1010 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1011
76500022
SE
10122013-07-11 Steve Ellcey <sellcey@mips.com>
1013
1014 * config/mips/mips.c (mips_conditional_register_usage): Do not
1015 use t[0-7] registers in MIPS16 mode when optimizing for size.
1016
78039734
ST
10172013-07-11 Sriraman Tallam <tmsriram@google.com>
1018
1019 * config/i386/i386.c (dispatch_function_versions): Fix array
1020 indexing of function_version_info to match actual_versions.
1021
7b24b675
TJ
10222013-07-11 Teresa Johnson <tejohnson@google.com>
1023
1024 * vec.h (struct va_gc): Move release out-of-line.
1025 (va_gc::release): Call ggc_free on released vec.
1026
85d4cbb8
UW
10272013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1028
1029 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1030 Require GOT register as additional operand in UNSPEC.
1031 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1032 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1033 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1034 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1035 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1036 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1037 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1038
52b3f9e2
GJL
10392013-07-11 Georg-Johann Lay <avr@gjlay.de>
1040
1041 PR target/57631
1042 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1043 name seen by assembler/linker rather if available.
1044
3f3e266e
AS
10452013-07-11 Andreas Schwab <schwab@suse.de>
1046
1047 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1048
21231ca6
VM
10492013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1050
371e77e3 1051 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 1052
d331d374
JM
10532013-07-10 Joseph Myers <joseph@codesourcery.com>
1054
673c2f63
JM
1055 * doc/tm.texi.in: Move hook documentation to ....
1056 * target.def: ... here.
1057
d331d374
JM
1058 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1059 text on @hook line.
1060 * doc/tm.texi: Regenerate.
1061
dfeadaa0
PC
10622013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1063
1064 PR c++/57869
1065 * doc/invoke.texi: Document -Wconditionally-supported.
1066
bb6f2bac
GJL
10672013-07-10 Georg-Johann Lay <avr@gjlay.de>
1068
1069 PR target/57844
1070 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1071 of my_fp.
1072
5219b232
GJL
10732013-07-10 Georg-Johann Lay <avr@gjlay.de>
1074
1075 PR target/57506
1076 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1077 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1078 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1079 Remove duplicate devices.
1080 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1081 * config/avr/t-multilib: Regenerate.
1082 * config/avr/avr-tables.opt: Regenerate.
1083 * doc/avr-mmcu.texi: Regenerate.
1084
283045c0
GJL
10852013-07-10 Georg-Johann Lay <avr@gjlay.de>
1086
1087 PR target/56987
1088 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1089
ceb2d59f 10902013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 1091
ceb2d59f
GS
1092 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1093 the cost of MULT when optimizing for size.
1094
055e0a99
JBG
10952013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1096
1097 * config/cr16/cr16-protos.h: Don't include target.h.
1098
ef43e868
JM
10992013-07-09 Joseph Myers <joseph@codesourcery.com>
1100
1101 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1102 adjust register size for TDmode and TFmode for VSX registers.
1103
4a283fdf
KT
11042013-07-08 Kai Tietz <ktietz@redhat.com>
1105
1106 PR target/56892
1107 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1108 hook_bool_const_tree_true.
1109
2cf4c39e
AK
11102013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1111
1112 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1113 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1114 * config/s390/s390.md: Define FPR*_REGNUM constants.
1115 Fix FPR2_REGNUM constant (18 -> 17).
1116 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1117 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1118 ("trunc<BFP:mode><DFP_ALL:mode>2")
1119 ("trunc<DFP_ALL:mode><BFP:mode>2")
1120 ("*extend<BFP:mode><DFP_ALL:mode>2")
1121 ("*extend<DFP_ALL:mode><BFP:mode>2")
1122 ("extend<BFP:mode><DFP_ALL:mode>2")
1123 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1124 FPR4_REGNUM.
1125
e6ac0270 11262013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 1127
6a2fa4b2 1128 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 1129
b89b22fc
AK
11302013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1131
1132 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1133 and cfun_fpr_bit_p to cfun_fpr_save_p.
1134 (s390_frame_area, s390_register_info, s390_frame_info)
1135 (s390_emit_prologue, s390_emit_epilogue)
1136 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1137 register numbers.
1138 * config/s390/s390.h: Define *_REGNUM macros for floating point
1139 register numbers.
1140
07f398aa
EB
11412013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1142
1143 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1144
75fefa91
PCC
11452013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1146
1147 PR rtl-optimization/57786
1148 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1149 and break out of the loop when it is set to false.
1150
046f1eee
JJ
11512013-07-08 Jakub Jelinek <jakub@redhat.com>
1152
8140c065
JJ
1153 PR target/57819
1154 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1155 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1156 (const_int 63)) 0)).
1157 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1158 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1159 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1160
046f1eee
JJ
1161 PR rtl-optimization/57829
1162 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1163 mask bits outside of mode are just sign-extension from mode to HWI.
1164
930b700b
MZ
11652013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1166
1167 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1168 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1169 adjust_address instead of change_address to keep info about alignment.
1170 (emit_strmov): Remove.
1171 (emit_memmov): New function.
1172 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1173 (expand_movmem_epilogue): Likewise and return updated rtx for
1174 destination.
1175 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1176 destination and source.
1177 (decide_alignment): Refactor, handle vector_loop.
1178 (ix86_expand_movmem): Likewise.
1179 (ix86_expand_setmem): Likewise.
1180 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1181
7b9d1bd8
UB
11822013-07-07 Uros Bizjak <ubizjak@gmail.com>
1183
1184 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1185 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1186
eabb5f48
UB
11872013-07-06 Uros Bizjak <ubizjak@gmail.com>
1188
1189 * config/i386/sse.md (sse_movlhps): Change alternative 3
1190 of operand 2 to "m".
1191
11922013-07-06 Uros Bizjak <ubizjak@gmail.com>
1193
1194 PR target/57807
1195 * config/i386/sse.md (iptr): New mode attribute.
1196 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1197 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1198 (<sse>_vmmul<mode>3): Ditto.
1199 (<sse>_vmdiv<mode>3): Ditto.
1200 (sse_vmrcpv4sf2): Ditto.
1201 (<sse>_vmsqrt<mode>2): Ditto.
1202 (sse_vmrsqrtv4sf2): Ditto.
1203 (<sse>_vm<code><mode>3): Ditto.
1204 (avx_vmcmp<mode>3): Ditto.
1205 (<sse>_vmmaskcmp<mode>3): Ditto.
1206 (<sse>_comi): Ditto.
1207 (<sse>_ucomi): Ditto.
1208 (*xop_vmfrcz_<mode>): Ditto.
1209 (*fmai_fmadd_<mode>): Ditto.
1210 (*fmai_fmsub_<mode>): Ditto.
1211 (*fmai_fnmadd_<mode>): Ditto.
1212 (*fmai_fnmsub_<mode>): Ditto.
1213 (*fma4i_vmfmadd_<mode>): Ditto.
1214 (*fma4i_vmfmsub_<mode>): Ditto.
1215 (*fma4i_vmfnmadd_<mode>): Ditto.
1216 (*fma4i_vmfnmsub_<mode>): Ditto.
1217 (*xop_vmfrcz_<mode>): Ditto.
1218 (sse_cvtps2pi): Ditto.
1219 (sse_cvttps2pi): Ditto.
1220 (sse_cvtss2si): Ditto.
1221 (sse_cvtss2si_2): Ditto.
1222 (sse_cvtss2siq_2): Ditto.
1223 (sse_cvttss2si): Ditto.
1224 (sse_cvttss2siq): Ditto.
1225 (sse_cvtsd2si): Ditto.
1226 (sse_cvtsd2si_2): Ditto.
1227 (sse_cvtsd2siq_2): Ditto.
1228 (sse_cvttsd2si): Ditto.
1229 (sse_cvttsd2siq): Ditto.
1230 (sse_cvtsd2ss): Ditto.
1231 (sse_cvtss2sd): Ditto.
1232 (avx2_pbroadcast<mode>): Ditto.
1233 (avx2_pbroadcast<mode>_1): Ditto.
1234 (*avx_vperm_broadcast_v4sf): Ditto.
1235
1236 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1237 (sse_movlhps): Ditto.
1238 (sse_storehps): Ditto.
1239 (sse_loadhps): Ditto.
1240 (sse_storelps): Ditto.
1241 (sse_loadlps): Ditto.
1242 (*vec_concatv4sf): Ditto.
1243 (*vec_interleave_highv2df): Ditto.
1244 (*vec_interleave_lowv2df): Ditto.
1245 (*vec_extractv2df_1_sse): Ditto.
1246 (*vec_extractv2df_0_sse): Ditto.
1247 (sse2_storelpd): Ditto.
1248 (sse2_loadlpd): Ditto.
1249 (sse2_movsd): Ditto.
1250 (*vec_concatv4si): Ditto.
1251 (vec_concatv2di): Ditto.
1252
1253 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1254 for Intel asm dialect.
1255 (mmx_punpcklwd): Ditto.
1256 (mmx_punpckldq): Ditto.
1257
1258 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1259 for intel assembler dialect.
1260
1f6eac90
JJ
12612013-07-06 Jakub Jelinek <jakub@redhat.com>
1262
1263 PR target/29776
1264 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1265 for BUILT_IN_C{LZ,LRSB}*.
1266 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1267 * tree-vrp.c (extract_range_basic): Handle
1268 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1269 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1270 fall thru to code calling set_value*.
1271 * builtins.c (expand_builtin): Remove *IMAX cases.
1272 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1273 if width is bigger than 2*HWI.
1274
2b778c9d
VM
12752013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1276
1277 PR rtl-optimization/55342
1278 * lra-int.h (lra_subreg_reload_pseudos): New.
1279 * lra.c: Add undoing optional reloads to the block diagram.
1280 (lra_subreg_reload_pseudos): New.
1281 (lra_optional_reload_pseudos): Change comments.
1282 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1283 lra_optional_reload_pseudos after undo transformations.
1284 * lra-assigns.c (pseudo_prefix_title): New.
1285 (lra_setup_reg_renumber): Use it.
1286 (spill_for): Ditto. Check subreg reload pseudos too.
1287 (assign_by_spills): Consider subreg reload pseudos too.
1288 * lra-constraints.c (simplify_operand_subreg): Use
1289 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1290 (curr_insn_transform): Recognize and do optional reloads.
1291 (undo_optional_reloads): New.
1292 (lra_undo_inheritance): Call undo_optional_reloads.
1293
207156e4
TQ
12942013-07-05 Thomas Quinot <quinot@adacore.com>
1295
1296 * tree-complex.c (expand_complex_operations_1): Fix typo.
1297
8990e73a
TB
12982013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1299
1300 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1301 (tune_params): New member 'const vec_costs'.
1302 * config/aarch64/aarch64.c (generic_vector_cost): New.
1303 (generic_tunings): New member 'generic_vector_cost'.
1304 (aarch64_builtin_vectorization_cost): New.
1305 (aarch64_add_stmt_cost): New.
1306 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1307 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1308
f7bc421d
JJ
13092013-07-03 Jakub Jelinek <jakub@redhat.com>
1310
1311 PR target/57777
1312 * config/i386/predicates.md (vsib_address_operand): Disallow
1313 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1314
e90d1568
HPN
13152013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1316
1317 PR middle-end/55030
1318 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1319 expand_builtin_setjmp_receiver.
1320 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1321 with NULL for the label parameter.
1322 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1323 the frame-pointer. Adjust comments.
1324 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1325 only if LABEL is non-NULL.
1326
cbd7413b
YZ
13272013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1328
1329 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1330 (ARM_ABI_AAPCS64): Ditto.
1331 (arm_abi): Ditto.
1332 (ARM_DEFAULT_ABI): Ditto.
1333
dec11868
JG
13342013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1335
1336 * config/aarch64/aarch64-builtins.c
1337 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1338 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1339 (st1): Likewise.
1340 * config/aarch64/aarch64-simd.md
1341 (aarch64_ld1<VALL:mode>): New.
1342 (aarch64_st1<VALL:mode>): Likewise.
1343 * config/aarch64/arm_neon.h
1344 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1345
786fb9b6
ST
13462013-07-02 Sriraman Tallam <tmsriram@google.com>
1347
0ba6aff3
UB
1348 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1349 target ISA is AVX.
786fb9b6
ST
1350 (ix86_option_override_internal):Turn on all -mavx target flags by
1351 default as they are dependent on AVX anyway.
1352
4b043553
CC
13532013-07-02 Cary Coutant <ccoutant@google.com>
1354
1355 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1356 deterministic hash.
1357 (loc_checksum_ordered): Likewise.
1358 (hash_loc_operands): Remove inline keyword.
1359
c4e87a13
JJ
13602013-07-02 Jakub Jelinek <jakub@redhat.com>
1361
1362 PR tree-optimization/57741
1363 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1364 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1365 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1366 Allow REAL_CST step_exprs if flag_associative_math.
1367 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1368
26366d28
IB
13692013-07-02 Ian Bolton <ian.bolton@arm.com>
1370
0ba6aff3 1371 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 1372
2879bb2b
IB
13732013-07-02 Ian Bolton <ian.bolton@arm.com>
1374
1375 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1376
afc5e8a6
KT
13772013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1378
1379 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1380 encoding.
1381 (iorsi3_insn): Likewise.
1382 (arm_xorsi3): Likewise.
1383
31f8442b
SN
13842013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1385
1386 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1387 to ...
1388 (attribute "type"): ... here, and prefix with "wmmx_".
1389 (attribute "core_cycles"): Update for attribute changes.
1390 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1391 (tbcstv4hi): Likewise.
1392 (tbcstv2si): Likewise.
1393 (iwmmxt_iordi3): Likewise.
1394 (iwmmxt_xordi3): Likewise.
1395 (iwmmxt_anddi3): Likewise.
1396 (iwmmxt_nanddi3): Likewise.
1397 (iwmmxt_arm_movdi): Likewise.
1398 (iwmmxt_movsi_insn): Likewise.
1399 (mov<mode>_internal): Likewise.
1400 (and<mode>3_iwmmxt): Likewise.
1401 (ior<mode>3_iwmmxt): Likewise.
1402 (xor<mode>3_iwmmxt): Likewise.
1403 (add<mode>3_iwmmxt): Likewise.
1404 (ssaddv8qi3): Likewise.
1405 (ssaddv4hi3): Likewise.
1406 (ssaddv2si3): Likewise.
1407 (usaddv8qi3): Likewise.
1408 (usaddv4hi3): Likewise.
1409 (usaddv2si3): Likewise.
1410 (sub<mode>3_iwmmxt): Likewise.
1411 (sssubv8qi3): Likewise.
1412 (sssubv4hi3): Likewise.
1413 (sssubv2si3): Likewise.
1414 (ussubv8qi3): Likewise.
1415 (ussubv4hi3): Likewise.
1416 (ussubv2si3): Likewise.
1417 (mulv4hi3_iwmmxt): Likewise.
1418 (smulv4hi3_highpart): Likewise.
1419 (umulv4hi3_highpart): Likewise.
1420 (iwmmxt_wmacs): Likewise.
1421 (iwmmxt_wmacsz): Likewise.
1422 (iwmmxt_wmacu): Likewise.
1423 (iwmmxt_wmacuz): Likewise.
1424 (iwmmxt_clrdi): Likewise.
1425 (iwmmxt_clrv8qi): Likewise.
1426 (iwmmxt_clr4hi): Likewise.
1427 (iwmmxt_clr2si): Likewise.
1428 (iwmmxt_uavgrndv8qi3): Likewise.
1429 (iwmmxt_uavgrndv4hi3): Likewise.
1430 (iwmmxt_uavgv8qi3): Likewise.
1431 (iwmmxt_uavgv4hi3): Likewise.
1432 (iwmmxt_tinsrb): Likewise.
1433 (iwmmxt_tinsrh): Likewise.
1434 (iwmmxt_tinsrw): Likewise.
1435 (iwmmxt_textrmub): Likewise.
1436 (iwmmxt_textrmsb): Likewise.
1437 (iwmmxt_textrmuh): Likewise.
1438 (iwmmxt_textrmsh): Likewise.
1439 (iwmmxt_textrmw): Likewise.
1440 (iwmxxt_wshufh): Likewise.
1441 (eqv8qi3): Likewise.
1442 (eqv4hi3): Likewise.
1443 (eqv2si3): Likewise.
1444 (gtuv8qi3): Likewise.
1445 (gtuv4hi3): Likewise.
1446 (gtuv2si3): Likewise.
1447 (gtv8qi3): Likewise.
1448 (gtv4hi3): Likewise.
1449 (gtv2si3): Likewise.
1450 (smax<mode>3_iwmmxt): Likewise.
1451 (umax<mode>3_iwmmxt): Likewise.
1452 (smin<mode>3_iwmmxt): Likewise.
1453 (umin<mode>3_iwmmxt): Likewise.
1454 (iwmmxt_wpackhss): Likewise.
1455 (iwmmxt_wpackwss): Likewise.
1456 (iwmmxt_wpackdss): Likewise.
1457 (iwmmxt_wpackhus): Likewise.
1458 (iwmmxt_wpackwus): Likewise.
1459 (iwmmxt_wpackdus): Likewise.
1460 (iwmmxt_wunpckihb): Likewise.
1461 (iwmmxt_wunpckihh): Likewise.
1462 (iwmmxt_wunpckihw): Likewise.
1463 (iwmmxt_wunpckilb): Likewise.
1464 (iwmmxt_wunpckilh): Likewise.
1465 (iwmmxt_wunpckilw): Likewise.
1466 (iwmmxt_wunpckehub): Likewise.
1467 (iwmmxt_wunpckehuh): Likewise.
1468 (iwmmxt_wunpckehuw): Likewise.
1469 (iwmmxt_wunpckehsb): Likewise.
1470 (iwmmxt_wunpckehsh): Likewise.
1471 (iwmmxt_wunpckehsw): Likewise.
1472 (iwmmxt_wunpckelub): Likewise.
1473 (iwmmxt_wunpckeluh): Likewise.
1474 (iwmmxt_wunpckeluw): Likewise.
1475 (iwmmxt_wunpckelsb): Likewise.
1476 (iwmmxt_wunpckelsh): Likewise.
1477 (iwmmxt_wunpckelsw): Likewise.
1478 (ror<mode>3): Likewise.
1479 (ashr<mode>3_iwmmxt): Likewise.
1480 (lshr<mode>3_iwmmxt): Likewise.
1481 (ashl<mode>3_iwmmxt): Likewise.
1482 (ror<mode>3_di): Likewise.
1483 (ashr<mode>3_di): Likewise.
1484 (lshr<mode>3_di): Likewise.
1485 (ashl<mode>3_di): Likewise.
1486 (iwmmxt_wmadds): Likewise.
1487 (iwmmxt_wmaddu): Likewise.
1488 (iwmmxt_tmia): Likewise.
1489 (iwmmxt_tmiaph): Likewise.
1490 (iwmmxt_tmiabb): Likewise.
1491 (iwmmxt_tmiatb): Likewise.
1492 (iwmmxt_tmiabt): Likewise.
1493 (iwmmxt_tmiatt): Likewise.
1494 (iwmmxt_tmovmskb): Likewise.
1495 (iwmmxt_tmovmskh): Likewise.
1496 (iwmmxt_tmovmskw): Likewise.
1497 (iwmmxt_waccb): Likewise.
1498 (iwmmxt_wacch): Likewise.
1499 (iwmmxt_waccw): Likewise.
1500 (iwmmxt_waligni): Likewise.
1501 (iwmmxt_walignr): Likewise.
1502 (iwmmxt_walignr0): Likewise.
1503 (iwmmxt_walignr1): Likewise.
1504 (iwmmxt_walignr2): Likewise.
1505 (iwmmxt_walignr3): Likewise.
1506 (iwmmxt_wsadb): Likewise.
1507 (iwmmxt_wsadh): Likewise.
1508 (iwmmxt_wsadbz): Likewise.
1509 (iwmmxt_wsadhz): Likewise.
1510 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1511 (iwmmxt_wabsdiffb): Likewise.
1512 (iwmmxt_wabsdiffh): Likewise.
1513 (iwmmxt_wabsdiffw): Likewise.
1514 (iwmmxt_waddsubhx): Likewise
1515 (iwmmxt_wsubaddhx): Likewise.
1516 (addc<mode>3): Likewise.
1517 (iwmmxt_avg4): Likewise.
1518 (iwmmxt_avg4r): Likewise.
1519 (iwmmxt_wmaddsx): Likewise.
1520 (iwmmxt_wmaddux): Likewise.
1521 (iwmmxt_wmaddsn): Likewise.
1522 (iwmmxt_wmaddun): Likewise.
1523 (iwmmxt_wmulwsm): Likewise.
1524 (iwmmxt_wmulwum): Likewise.
1525 (iwmmxt_wmulsmr): Likewise.
1526 (iwmmxt_wmulumr): Likewise.
1527 (iwmmxt_wmulwsmr): Likewise.
1528 (iwmmxt_wmulwumr): Likewise.
1529 (iwmmxt_wmulwl): Likewise.
1530 (iwmmxt_wqmulm): Likewise.
1531 (iwmmxt_wqmulwm): Likewise.
1532 (iwmmxt_wqmulmr): Likewise.
1533 (iwmmxt_wqmulwmr): Likewise.
1534 (iwmmxt_waddbhusm): Likewise.
1535 (iwmmxt_waddbhusl): Likewise.
1536 (iwmmxt_wqmiabb): Likewise.
1537 (iwmmxt_wqmiabt): Likewise.
1538 (iwmmxt_wqmiatb): Likewise.
1539 (iwmmxt_wqmiatt): Likewise.
1540 (iwmmxt_wqmiabbn): Likewise.
1541 (iwmmxt_wqmiabtn): Likewise.
1542 (iwmmxt_wqmiatbn): Likewise.
1543 (iwmmxt_wqmiattn): Likewise.
1544 (iwmmxt_wmiabb): Likewise.
1545 (iwmmxt_wmiabt): Likewise.
1546 (iwmmxt_wmiatb): Likewise.
1547 (iwmmxt_wmiatt): Likewise.
1548 (iwmmxt_wmiabbn): Likewise.
1549 (iwmmxt_wmiabtn): Likewise.
1550 (iwmmxt_wmiatbn): Likewise.
1551 (iwmmxt_wmiattn): Likewise.
1552 (iwmmxt_wmiawbb): Likewise.
1553 (iwmmxt_wmiawbt): Likewise.
1554 (iwmmxt_wmiawtb): Likewise.
1555 (iwmmxt_wmiawtt): Likewise.
1556 (iwmmxt_wmiawbbn): Likewise.
1557 (iwmmxt_wmiawbtn): Likewise.
1558 (iwmmxt_wmiawtbn): Likewise.
1559 (iwmmxt_wmiawttn): Likewise.
1560 (iwmmxt_wmerge): Likewise.
1561 (iwmmxt_tandc<mode>3): Likewise.
1562 (iwmmxt_torc<mode>3): Likewise.
1563 (iwmmxt_torvsc<mode>3): Likewise.
1564 (iwmmxt_textrc<mode>3): Likewise.
1565 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1566 (wmmxt_pack): Likewise.
1567 (wmmxt_mult_c1): Likewise.
1568 (wmmxt_mult_c2): Likewise.
1569 (wmmxt_alu_c1): Likewise.
1570 (wmmxt_alu_c2): Likewise.
1571 (wmmxt_alu_c3): Likewise.
1572 (wmmxt_transfer_c1): Likewise.
1573 (wmmxt_transfer_c2): Likewise.
1574 (wmmxt_transfer_c3): Likewise.
1575 (marvell_f_iwmmxt_wstr): Likewise.
1576 (marvell_f_iwmmxt_wldr): Likewise.
1577
bdb7bf8a
YZ
15782013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1579
0ba6aff3 1580 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 1581
e6631d38
VM
15822013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1583
1584 Revert:
1585 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1586 * lra-constraints.c (need_for_split_p): Check call used hard regs
1587 living through calls.
1588
1589 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1590 call used regs for call insn.
1591
53c1275b
JJ
15922013-06-28 Jakub Jelinek <jakub@redhat.com>
1593
1594 PR target/57736
0ba6aff3
UB
1595 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1596 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 1597
1141ed3f
BI
15982013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1599
1600 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 1601
e32e4c4a
VM
16022013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1603
1604 * lra-constraints.c (need_for_split_p): Check call used hard regs
1605 living through calls.
1606
f161bfd3
MM
16072013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1608
1609 PR target/57744
1610 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1611 to tie with any other modes. Eliminate Altivec vector mode tests,
1612 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1613 code, to return 0 if testing MODE2 for a condition, if we've
1614 already tested MODE1 for the same condition.
1615
7eda14e1
MS
16162013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1617
1618 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1619 layout.
1620
c822f852
MS
16212013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1622
1623 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1624 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1625
da4f13a4
MS
16262013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1627
0ba6aff3
UB
1628 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1629 Define.
da4f13a4
MS
1630 (aarch64_symbolic_constant_p): Remove.
1631 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1632 static. Fix line length and white space.
1633 (aarch64_symbolic_constant_p): Remove.
1634 * config/aarch64/predicates.md (aarch64_valid_symref):
1635 Use aarch64_classify_symbol_expression.
1636
956a95a5
KT
16372013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1638
1639 * config/arm/constraints.md (Ts): New constraint.
1640 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1641 16-bit encodings.
1642 (compare_scc): Use "Ts" constraint for operand 0.
1643 (ior_scc_scc): Likewise.
1644 (and_scc_scc): Likewise.
1645 (and_scc_scc_nodom): Likewise.
1646 (ior_scc_scc_cmp): Likewise for operand 7.
1647 (and_scc_scc_cmp): Likewise.
1648 * config/arm/thumb2.md (thumb2_movsi_insn):
1649 Add alternatives for 16-bit encodings.
1650 (thumb2_movhi_insn): Likewise.
1651 (thumb2_movsicc_insn): Likewise.
1652 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1653 (thumb2_negscc): Use "Ts" constraint.
1654 Move mvn instruction outside cond_exec block.
1655 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1656 for 16-bit encodings.
1657
31dfce10
KT
16582013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1659
1660 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1661 encoding.
1662 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1663 (mulsi3subsi): Likewise.
1664 (mulsidi3adddi): Likewise.
1665 (mulsidi3_v6): Likewise.
1666 (umulsidi3_v6): Likewise.
1667 (umulsidi3adddi_v6): Likewise.
1668 (smulsi3_highpart_v6): Likewise.
1669 (umulsi3_highpart_v6): Likewise.
1670 (mulhisi3tb): Likewise.
1671 (mulhisi3bt): Likewise.
1672 (mulhisi3tt): Likewise.
1673 (maddhisi4): Likewise.
1674 (maddhisi4tb): Likewise.
1675 (maddhisi4tt): Likewise.
1676 (maddhidi4): Likewise.
1677 (maddhidi4tb): Likewise.
1678 (maddhidi4tt): Likewise.
1679 (zeroextractsi_compare0_scratch): Likewise.
1680 (insv_zero): Likewise.
1681 (insv_t2): Likewise.
1682 (anddi_notzesidi_di): Likewise.
1683 (anddi_notsesidi_di): Likewise.
1684 (andsi_notsi_si): Likewise.
1685 (iordi_zesidi_di): Likewise.
1686 (xordi_zesidi_di): Likewise.
1687 (andsi_iorsi3_notsi): Likewise.
1688 (smax_0): Likewise.
1689 (smax_m1): Likewise.
1690 (smin_0): Likewise.
1691 (not_shiftsi): Likewise.
1692 (unaligned_loadsi): Likewise.
1693 (unaligned_loadhis): Likewise.
1694 (unaligned_loadhiu): Likewise.
1695 (unaligned_storesi): Likewise.
1696 (unaligned_storehi): Likewise.
1697 (extv_reg): Likewise.
1698 (extzv_t2): Likewise.
1699 (divsi3): Likewise.
1700 (udivsi3): Likewise.
1701 (arm_zero_extendhisi2addsi): Likewise.
1702 (arm_zero_extendqisi2addsi): Likewise.
1703 (compareqi_eq0): Likewise.
1704 (arm_extendhisi2_v6): Likewise.
1705 (arm_extendqisi2addsi): Likewise.
1706 (arm_movt): Likewise.
1707 (thumb2_ldrd): Likewise.
1708 (thumb2_ldrd_base): Likewise.
1709 (thumb2_ldrd_base_neg): Likewise.
1710 (thumb2_strd): Likewise.
1711 (thumb2_strd_base): Likewise.
1712 (thumb2_strd_base_neg): Likewise.
1713 (arm_negsi2): Add alternative for 16-bit encoding.
1714 (arm_one_cmplsi2): Likewise.
1715
1572e697
KT
17162013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1717
1718 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1719 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1720 (movdfcc): Likewise.
1721 * config/arm/vfp.md (*thumb2_movsf_vfp):
1722 Disable predication for arm_restrict_it.
1723 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1724 (*thumb2_movdfcc_vfp): Likewise.
1725 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1726 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1727 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1728 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1729 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1730 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1731 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1732 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1733 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1734 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1735 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1736 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1737 Disable predication for arm_restrict_it.
1738
ebf8f0ea
KY
17392013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1740
1741 * config/i386/bmiintrin.h (_bextr_u32): New.
1742 (_bextr_u64): Ditto.
1743
a290fcda
RS
17442013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1745
1746 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1747 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1748 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1749 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1750 * config/mips/n32-elf.h: ...this new file.
1751
ea169996
MG
17522013-06-27 Marc Glisse <marc.glisse@inria.fr>
1753
1754 PR target/57224
1755 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1756 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1757
8e932114
CM
17582013-06-27 Catherine Moore <clm@codesourcery.com>
1759
1760 * config/mips/mips-tables.opt: Regenerate.
1761 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 1762 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 1763 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 1764
2444244e
JJ
17652013-06-27 Jakub Jelinek <jakub@redhat.com>
1766
cd06d2a2
JJ
1767 PR target/57623
1768 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1769 constraints of operand 1 and 2.
1770
2444244e
JJ
1771 PR target/57623
1772 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1773 to match RTL canonicalization. Swap predicates and
1774 constraints of operand 1 and 2.
1775
2f259720
VM
17762013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1777
0ba6aff3
UB
1778 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1779 Process OP_INOUT regs for splitting too.
2f259720 1780
fef4d2b3
JJ
17812013-06-27 Jakub Jelinek <jakub@redhat.com>
1782
1783 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1784 decl before the loop, initialize to NULL.
1785 (vectorizable_load): Initialize ptr_incr to NULL.
1786
79ee9826
MJ
17872013-06-27 Martin Jambor <mjambor@suse.cz>
1788
1789 PR lto/57208
1790 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1791 * ipa-ref.c (ipa_maybe_record_reference): New function.
1792 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1793 * ipa-cp.c (create_specialized_node): Record potential references from
1794 aggvals.
1795 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1796
e18b4a81
YZ
17972013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1798
1799 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1800 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1801 'mode' to force_reg.
1802 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1803 (aarch64_expand_mov_immediate): Likewise.
1804
9c023bf0
YZ
18052013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1806
1807 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1808 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1809
5a3fe9b6
AK
18102013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1811
1812 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1813 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1814 (struct machine_function): Add tbegin_p.
1815 (s390_canonicalize_comparison): Fold CC mode compares to
1816 conditional jump if possible.
1817 (s390_emit_jump): Return the emitted jump.
1818 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1819 Handle CCRAWmode compares.
1820 (s390_option_override): Default to -mhtm if available.
1821 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1822 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1823 FPRs instead of df_regs_ever_live_p.
1824 (s390_optimize_nonescaping_tx): New function.
1825 (s390_init_frame_layout): Extend clobbered_regs array to cover
1826 FPRs as well.
1827 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1828 (s390_expand_tbegin): New function.
1829 (enum s390_builtin): New enum definition.
1830 (code_for_builtin): New array definition.
1831 (s390_init_builtins): New function.
1832 (s390_expand_builtin): New function.
1833 (TARGET_INIT_BUILTINS): Define.
1834 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 1835 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
1836 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1837 (s390_alc_comparison): Likewise.
1838 * config/s390/s390-modes.def: Add CCRAWmode.
1839 * config/s390/s390.h (processor_flags): Add PF_TX.
1840 (TARGET_CPU_HTM): Define macro.
1841 (TARGET_HTM): Define macro.
1842 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1843 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1844 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1845 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 1846 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
1847 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1848 ("*cc_to_int"): Move up.
1849 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1850 constants other than 0.
1851 ("*ccraw_to_int"): New insn and splitter definition.
1852 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1853 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1854 ("tx_assist"): New expander.
1855 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1856 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1857 * config/s390/s390.opt: Add -mhtm option.
1858 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1859 * config/s390/htmxlintrin.h: New file.
1860 * config/s390/htmintrin.h: New file.
1861 * config/s390/s390intrin.h: New file.
1862 * doc/extend.texi: Document htm builtins.
1863 * config.gcc: Add the new header files to extra_headers.
1864
9e216629
TS
18652013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1866
1867 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 1868 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 1869
fd8c65e7
MM
18702013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1871 Pat Haugen <pthaugen@us.ibm.com>
1872 Peter Bergner <bergner@vnet.ibm.com>
1873
1874 * config/rs6000/power8.md: New.
1875 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1876 setting for power8 entry.
1877 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1878 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1879 test for Power4/Power5 only.
1880 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1881 support.
1882 (force_new_group): Adjust comment.
1883 * config/rs6000/rs6000.md: Include power8.md.
1884
b24a2ce5
GY
18852013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1886
1887 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1888 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1889 declaration.
1890 (tune_params): Update comment.
1891 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1892 (arm_max_conditional_execute): New function.
1893 (thumb2_final_prescan_insn): Use max_insn_skipped and
1894 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1895
f6fdeb62
JJ
18962013-06-25 Jakub Jelinek <jakub@redhat.com>
1897
1898 PR tree-optimization/57705
1899 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1900 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 1901 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
1902 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1903
c13bc3d9
MJ
19042013-06-25 Martin Jambor <mjambor@suse.cz>
1905
1906 PR middle-end/57670
1907 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1908 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1909 calls in the dump.
1910 (ipa_note_param_call): Initialize member_ptr flag.
1911 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1912 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1913 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1914 (ipa_read_indirect_edge_info): Likewise.
1915
8a845901
RB
19162013-06-25 Richard Biener <rguenther@suse.de>
1917
1918 PR middle-end/56977
1919 * passes.c (init_optimization_passes): Move pass_fold_builtins
1920 and pass_dce earlier with -Og.
1921
33be0bec
EB
19222013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1923
1924 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1925 <BIT_FIELD_REF>: Remove trailing TAB.
1926 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1927 remove blank line.
1928
5fe8e757
MJ
19292013-06-24 Martin Jambor <mjambor@suse.cz>
1930
1931 PR tree-optimization/57358
1932 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1933 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1934 (ipa_analyze_params_uses): Generate pessimistic info when true.
1935
44a60244
MJ
19362013-06-24 Martin Jambor <mjambor@suse.cz>
1937
1938 PR tree-optimization/57539
1939 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1940 global.inlined_to of the new node to it. All callers changed.
1941 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1942 inlining_into, pass it to cgraph_clone_node.
1943 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1944 ipa_free_edge_args_substructures.
1945 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1946 rdesc linked list. Do not assert rdesc edges have inlined caller.
1947 Assert we have found an rdesc in the rdesc list.
1948
7c5848b8
RB
19492013-06-24 Richard Biener <rguenther@suse.de>
1950
0ba6aff3 1951 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
1952 (pointer_set_lookup): Declare.
1953 (class pointer_map): New template class implementing a
1954 generic pointer to T map.
1955 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1956 pointer_map<T>::contains, pointer_map<T>::insert,
1957 pointer_map<T>::traverse): New functions.
1958 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1959 (pointer_set_lookup): New function.
1960 (pointer_set_contains): Use pointer_set_lookup.
1961 (pointer_set_insert): Likewise.
1962 (insert_aux): Remove.
1963 (struct pointer_map_t): Embed a pointer_set_t.
1964 (pointer_map_create): Adjust.
1965 (pointer_map_destroy): Likewise.
1966 (pointer_map_contains): Likewise.
1967 (pointer_map_insert): Likewise.
1968 (pointer_map_traverse): Likewise.
1969 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1970 pointer_map<unsigned> instead of a pointer_map_t.
1971 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1972 (streamer_tree_cache_lookup): Likewise.
1973 (streamer_tree_cache_create): Likewise.
1974 (streamer_tree_cache_delete): Likewise.
1975 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1976 pointer_map<unsigned> instead of a pointer_map_t.
1977 (lto_init_tree_ref_encoder): Adjust.
1978 (lto_destroy_tree_ref_encoder): Likewise.
1979 * lto-section-out.c (lto_output_decl_index): Likewise.
1980 (lto_record_function_out_decl_state): Likewise.
1981 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1982
3dbc97a9
RB
19832013-06-24 Richard Biener <rguenther@suse.de>
1984
1985 PR tree-optimization/57488
1986 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1987
8345965a
AM
19882013-06-24 Alan Modra <amodra@gmail.com>
1989
1990 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1991 (gen_easy_altivec_constant): Likewise.
1992 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1993 easy_vector_constant_msb): Likewise.
1994
b7df379f
JJ
19952013-06-23 Jakub Jelinek <jakub@redhat.com>
1996
1997 PR target/57688
1998 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1999 add missing return true.
2000
0bcf9a09
OE
20012013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2002
2003 PR target/52483
2004 * config/sh/predicates.md (general_extend_operand): Invoke
2005 general_movsrc_operand for memory operands.
2006 (general_movsrc_operand): Allow reg+reg addressing, do not use
2007 general_operand for memory operands.
2008
97db2bf7
ST
20092013-06-23 Sriraman Tallam <tmsriram@google.com>
2010
2011 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2012 when current target options does not apply.
2013 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2014 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
2015 * config/i386/bmiintrin.h: Pass appropriate target
2016 attributes to header.
97db2bf7
ST
2017 * config/i386/mmintrin.h: Ditto.
2018 * config/i386/nmmintrin.h: Ditto.
2019 * config/i386/avx2intrin.h: Ditto.
2020 * config/i386/fxsrintrin.h: Ditto.
2021 * config/i386/tbmintrin.h: Ditto.
2022 * config/i386/xsaveintrin.h: Ditto.
2023 * config/i386/f16cintrin.h: Ditto.
2024 * config/i386/xtestintrin.h: Ditto.
2025 * config/i386/xsaveoptintrin.h: Ditto.
2026 * config/i386/bmi2intrin.h: Ditto.
2027 * config/i386/lzcntintrin.h: Ditto.
2028 * config/i386/smmintrin.h: Ditto.
2029 * config/i386/wmmintrin.h: Ditto.
2030 * config/i386/x86intrin.h: Remove all header include guards.
2031 * config/i386/prfchwintrin.h: Ditto.
2032 * config/i386/pmmintrin.h: Ditto.
2033 * config/i386/tmmintrin.h: Ditto.
2034 * config/i386/xmmintrin.h: Ditto.
2035 * config/i386/popcntintrin.h: Ditto.
2036 * config/i386/rdseedintrin.h: Ditto.
2037 * config/i386/ammintrin.h: Ditto.
2038 * config/i386/emmintrin.h: Ditto.
2039 * config/i386/immintrin.h: Remove all header include guards.
2040 * config/i386/fma4intrin.h: Ditto.
2041 * config/i386/lwpintrin.h: Ditto.
2042 * config/i386/xopintrin.h: Ditto.
2043 * config/i386/ia32intrin.h: Ditto.
2044 * config/i386/avxintrin.h: Ditto.
2045 * config/i386/rtmintrin.h: Ditto.
2046 * config/i386/fmaintrin.h: Ditto.
2047 * config/i386/mm3dnow.h: Ditto.
2048
495e6879
ST
20492013-06-22 Sriraman Tallam <tmsriram@google.com>
2050
2051 * common/config/i386/i386-common.c: Handle LZCNT.
2052
11e8f687
AK
20532013-06-22 Andi Kleen <ak@linux.intel.com>
2054
2055 * doc/extend.texi: Use __atomic_store_n instead of
2056 __atomic_store in HLE example.
2057
664dd721
OE
20582013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2059
2060 * config/sh/sh.c: Remove <cstdlib> workaround.
2061
927f908b
AK
20622013-06-21 Andi Kleen <ak@linux.intel.com>
2063
0ba6aff3 2064 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 2065
cca410b6
AK
20662013-06-21 Andi Kleen <ak@linux.intel.com>
2067
2068 * doc/extend.texi: Document that __atomic_clear and
2069 __atomic_test_and_set should only be used with bool.
2070
d84db1ed
JH
20712013-06-20 Jan Hubicka <jh@suse.cz>
2072
2073 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2074 types_same_for_odr.
2075 * tree.c (decls_same_for_odr): New function.
2076 (same_for_edr): New function.
2077 (types_same_for_odr): New function.
2078 (get_binfo_at_offset): Use it.
2079 * tree.h (types_same_for_odr): Declare.
2080
664dd721 20812013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
2082 Jason Merrill <jason@redhat.com>
2083
2084 * system.h: Include <cstdlib> as well as <stdlib.h>.
2085
49b4ff63
UB
20862013-06-20 Uros Bizjak <ubizjak@gmail.com>
2087
2088 PR target/57655
2089 * config/i386/i386.c (construct_container): Report error if
2090 long double is used with disabled x87 float returns.
2091
7a89ad00
JH
20922013-06-20 Jan Hubicka <jh@suse.cz>
2093
2094 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2095
bd280792
JR
20962013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2097
2098 PR rtl-optimization/57425
2099 PR rtl-optimization/57569
2100 * alias.c (write_dependence_p): Remove parameters mem_mode and
2101 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2102 Changed all callers.
2103 (canon_anti_dependence): Get comments and semantics in sync.
2104 Add parameter mem_canonicalized. Changed all callers.
2105 * rtl.h (canon_anti_dependence): Update prototype.
2106
d16e9a99
RB
21072013-06-20 Richard Biener <rguenther@suse.de>
2108
2109 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2110 byte case, inline streamer_read_uchar and defer section
2111 overrun check.
2112
c3a9b91b
RB
21132013-06-20 Richard Biener <rguenther@suse.de>
2114
2115 PR tree-optimization/57584
2116 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2117 SSA names into the expanded expression that take part in
2118 abnormal coalescing.
2119
371e77e3 21202013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
2121
2122 * gcov.c (print_usage): Handle new option.
2123 (process_args): Ditto.
2124 (get_gcov_intermediate_filename): New function.
2125 (output_intermediate_file): New function.
2126 (output_gcov_file): New function
2127 (generate_results): Handle new option.
2128 (release_function): Relase demangled name.
2129 (read_graph_file): Handle demangled name.
2130 (output_lines): Ditto.
2131 * doc/gcov.texi: Document gcov intermediate format.
2132
11f5b71a
VM
21332013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2134
2135 PR bootstrap/57604
2136 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2137 (lra_emit_add): Use the functions. Add comment about Y as an
2138 address segment.
2139
e1f9340b
DE
21402013-06-19 David Edelsohn <dje.gcc@gmail.com>
2141
2142 PR driver/57652
2143 * collect2.c (collect_atexit): New.
2144 (collect_exit): Delete.
2145 (main): Register collect_atexit with atexit.
2146 (collect_wait): Change collect_exit to exit.
2147 (do_wait): Same.
2148 * collect2.h (collect_exit): Delete.
2149 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2150
e3f9e0ac
WM
21512013-06-19 Wei Mi <wmi@google.com>
2152
2153 PR rtl-optimization/57518
2154 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2155 if regno is used in paradoxical subreg.
2156 (update_equiv_regs): Check pdx_subregs[regno] before
2157 set a reg to be equivalent with a mem.
2158
a09f1a76
MK
21592013-06-19 Matthias Klose <doko@ubuntu.com>
2160
2161 PR driver/57651
2162 * file-find.h (find_a_file): Add a mode parameter.
2163 * file-find.c (find_a_file): Likewise.
2164 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2165 with X_OK for the executables.
2166 * collect2.c (main): Call find_a_file with X_OK.
2167
7d18b0ad
SE
21682013-06-19 Steve Ellcey <sellcey@mips.com>
2169
2170 PR target/56942
2171 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2172 Use NEXT_INSN instead of next_real_insn.
2173
6a6dac52
JH
21742013-06-19 Jan Hubicka <jh@suse.cz>
2175
2176 * cgraph.h (const_value_known_p): Replace by ...
2177 (ctor_for_folding): .. this one.
2178 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2179 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2180 * expr.c (expand_expr_real_1): Likewise.
2181 (string_constant): Likewise.
2182 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2183 * ipa.c (process_references): Likewise.
2184 (symtab_remove_unreachable_nodes): Likewise.
2185 * ipa-inline-analysis.c (param_change_prob): Likewise.
2186 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2187 (get_base_constructor): Likwise.
2188 * varpool.c (varpool_remove_node): Likewise.
2189 (varpool_remove_initializer): LIkewise.
2190 (dump_varpool_node): LIkwise.
2191 (const_value_known_p): Rewrite to ...
2192 (ctor_for_folding): ... this one.
2193
216c12ab
JJ
21942013-06-19 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR driver/57651
2197 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2198 PERSONALITY in $PATH derived prefixes.
2199
d53e2f99
JL
22002013-06-19 Jeff Law <law@redhat.com>
2201
ecdbf306
JL
2202 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2203 in comment.
2204
d53e2f99
JL
2205 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2206 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2207 booleans.
2208
89e7fc04
SN
22092013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2210
2211 * config/arm/vfp.md: Move VFP instruction classification documentation
2212 to ...
2213 * config/arm/arm.md: ... here. Update instruction classification
2214 documentation.
2215
5e7f6aaa
RE
22162013-06-19 Richard Earnshaw <rearnsha@arm.com>
2217
2218 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2219 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2220 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2221
5fdc1e5d
SB
22222013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2223
2224 PR target/57609
2225 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2226 with NEXT_INSN. Use tablejump_p to check for jump table data
2227 insns.
2228
e952afba
PC
22292013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2230
2231 PR c++/56544
2232 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2233 that now in C++ the value is correct per the C++ standards.
2234
3fd0303a
RB
22352013-06-19 Richard Biener <rguenther@suse.de>
2236
2237 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2238 for global context.
2239
b04e4b08
AK
22402013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2241
2242 Revert:
2243 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2244
2245 PR target/57609
2246 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2247 with next_active_insn.
2248
bef8491a
ST
22492013-06-18 Sriraman Tallam <tmsriram@google.com>
2250
2251 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2252 functions are inlined during failures to flag an error.
2253 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2254 in early inline pass.
22fc7d3d 2255
c21b257d
L
22562013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2257
2258 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2259 in comments.
2260
33255ae3
JB
22612013-06-18 Julian Brown <julian@codesourcery.com>
2262
2263 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2264 Permit virtual register pre-reload if !strict.
2265 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2266 change.
2267 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2268 prototype.
2269 * config/arm/neon.md (movmisalign<mode>): Use
2270 neon_perm_struct_or_reg_operand instead of
2271 neon_struct_or_register_operand.
2272 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2273 neon_permissive_struct_operand instead of neon_struct_operand.
2274 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2275 neon_vector_mem_operand.
2276 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2277 neon_vector_mem_operand.
2278 (neon_permissive_struct_operand): New.
2279 (neon_struct_or_register_operand): Rename to...
2280 (neon_perm_struct_or_reg_operand): This. Adjust call to
2281 neon_vector_mem_operand.
2282
d579fcda
RB
22832013-06-18 Richard Biener <rguenther@suse.de>
2284
2285 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2286 * lto-streamer.h: Include pointer-set.h.
2287 (struct lto_decl_slot): Remove.
2288 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2289 Remove next_index entry.
2290 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2291 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2292 (lto_init_tree_ref_encoder): Adjust.
2293 (lto_destroy_tree_ref_encoder): Likewise.
2294 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2295 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2296 (lto_output_decl_index): Adjust.
2297 (lto_new_out_decl_state): Likewise.
2298 (lto_record_function_out_decl_state): Likewise.
2299 * lto-streamer-out.c (copy_function): Likewise.
2300
31ee20ba
RB
23012013-06-18 Richard Biener <rguenther@suse.de>
2302
2303 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2304 * cgraphunit.c: Include cfgloop.h.
2305 (init_lowered_empty_function): Initialize the loop tree.
2306 (assemble_thunk): Insert new BBs into loops.
2307
ac0511f2
RB
23082013-06-18 Richard Biener <rguenther@suse.de>
2309
2310 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2311 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2312 the map from cache entry to cache index optional.
2313 (streamer_tree_cache_replace_tree): Adjust accordingly.
2314 (streamer_tree_cache_append): Likewise.
2315 (streamer_tree_cache_delete): Likewise.
2316 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2317 streamer cache map from cache entry to cache index.
2318 * lto-streamer-out.c (create_output_block): Adjust.
2319
09485a08
SN
23202013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2321
22fc7d3d
UB
2322 * config/arm/arm.md (attribute "insn"): Move multiplication and
2323 division attributes to...
09485a08
SN
2324 (attribute "type"): ... here. Remove mult.
2325 (attribute "mul32"): New attribute.
2326 (attribute "mul64"): Add umaal.
2327 (*arm_mulsi3): Update attributes.
2328 (*arm_mulsi3_v6): Likewise.
2329 (*thumb_mulsi3): Likewise.
2330 (*thumb_mulsi3_v6): Likewise.
2331 (*mulsi3_compare0): Likewise.
2332 (*mulsi3_compare0_v6): Likewise.
2333 (*mulsi_compare0_scratch): Likewise.
2334 (*mulsi_compare0_scratch_v6): Likewise.
2335 (*mulsi3addsi): Likewise.
2336 (*mulsi3addsi_v6): Likewise.
2337 (*mulsi3addsi_compare0): Likewise.
2338 (*mulsi3addsi_compare0_v6): Likewise.
2339 (*mulsi3addsi_compare0_scratch): Likewise.
2340 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2341 (*mulsi3subsi): Likewise.
2342 (*mulsidi3adddi): Likewise.
2343 (*mulsi3addsi_v6): Likewise.
2344 (*mulsidi3adddi_v6): Likewise.
2345 (*mulsidi3_nov6): Likewise.
2346 (*mulsidi3_v6): Likewise.
2347 (*umulsidi3_nov6): Likewise.
2348 (*umulsidi3_v6): Likewise.
2349 (*umulsidi3adddi): Likewise.
2350 (*umulsidi3adddi_v6): Likewise.
2351 (*smulsi3_highpart_nov6): Likewise.
2352 (*smulsi3_highpart_v6): Likewise.
2353 (*umulsi3_highpart_nov6): Likewise.
2354 (*umulsi3_highpart_v6): Likewise.
2355 (mulhisi3): Likewise.
2356 (*mulhisi3tb): Likewise.
2357 (*mulhisi3bt): Likewise.
2358 (*mulhisi3tt): Likewise.
2359 (maddhisi4): Likewise.
2360 (*maddhisi4tb): Likewise.
2361 (*maddhisi4tt): Likewise.
2362 (maddhidi4): Likewise.
2363 (*maddhidi4tb): Likewise.
2364 (*maddhidi4tt): Likewise.
2365 (divsi3): Likewise.
2366 (udivsi3): Likewise.
2367 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2368 (thumb2_mulsi_short_compare0): Likewise.
2369 (thumb2_mulsi_short_compare0_scratch): Likewise.
2370 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2371 (1020mult2): Likewise.
2372 (1020mult3): Likewise.
2373 (1020mult4): Likewise.
2374 (1020mult5): Likewise.
2375 (1020mult6): Likewise.
22fc7d3d
UB
2376 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2377 change.
09485a08
SN
2378 (cortex_a15_mult64): Likewise.
2379 (cortex_a15_sdiv): Likewise.
2380 (cortex_a15_udiv): Likewise.
2381 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2382 (mult2): Likewise.
2383 (mult3): Likewise.
2384 (mult4): Likewise.
2385 (mult5): Likewise.
2386 (mult6): Likewise.
2387 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2388 (pj4_ir_div): Likewise.
2389 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2390 (11_mult2): Likewise.
2391 (11_mult3): Likewise.
2392 (11_mult4): Likewise.
2393 (11_mult5): Likewise.
2394 (11_mult6): Likewise.
2395 (11_mult7): Likewise.
2396 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2397 (cortex_a8_mla): Likewise.
2398 (cortex_a8_mull): Likewise.
2399 (cortex_a8_smulwy): Likewise.
2400 (cortex_a8_smlald): Likewise.
2401 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2402 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2403 (cortex_r4_mul_3): Likewise.
2404 (cortex_r4_mla_4): Likewise.
2405 (cortex_r4_mla_3): Likewise.
2406 (cortex_r4_smlald): Likewise.
2407 (cortex_r4_mull): Likewise.
2408 (cortex_r4_sdiv): Likewise.
2409 (cortex_r4_udiv): Likewise.
2410 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2411 (cortex_a7_idiv): Likewise.
2412 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2413 (9_mult2): Likewise.
2414 (9_mult3): Likewise.
2415 (9_mult4): Likewise.
2416 (9_mult5): Likewise.
2417 (9_mult6): Likewise.
2418 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2419 (cortex_a53_sdiv): Likewise.
2420 (cortex_a53_udiv): Likewise.
2421 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2422 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2423 (mp626_mult2): Likewise.
2424 (mp626_mult3): Likewise.
2425 (mp626_mult4): Likewise.
2426 * config/arm/fa526.md (526_mult1): Update attribute change.
2427 (526_mult2): Likewise.
2428 * config/arm/arm-generic.md (mult): Update attribute change.
2429 (mult_ldsched_strongarm): Likewise.
2430 (mult_ldsched): Likewise.
2431 (multi_cycle): Likewise.
2432 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2433 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2434 (606te_mult2): Likewise.
2435 (606te_mult3): Likewise.
2436 (606te_mult4): Likewise.
2437 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2438 (cortex_a9_mac16): Likewise.
2439 (cortex_a9_multiply): Likewise.
2440 (cortex_a9_mac): Likewise.
2441 (cortex_a9_multiply_long): Likewise.
2442 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2443 (626te_mult2): Likewise.
2444 (626te_mult3): Likewise.
2445 (626te_mult4): Likewise.
2446
8951f345
RB
24472013-06-18 Richard Biener <rguenther@suse.de>
2448
2449 PR lto/57334
2450 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2451
d8101d05
AK
24522013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2453
2454 PR target/57609
2455 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2456 with next_active_insn.
2457
69eff9da
AM
24582013-06-18 Alan Modra <amodra@gmail.com>
2459
2460 * config/rs6000/rs6000.h (enum data_align): New.
2461 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2462 (DATA_ABI_ALIGNMENT): Define.
2463 (CONSTANT_ALIGNMENT): Correct comment.
2464 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2465 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2466
8ed00d76
DM
24672013-06-17 David Malcolm <dmalcolm@redhat.com>
2468
2469 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2470 ATTRIBUTE_UNUSED marking.
2471
3d33d06b
SN
24722013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2473
2474 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2475 alternative and update.
2476 (aarch64_dup_lanedi): Delete.
2477 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2478 * config/aarch64/aarch64-simd-builtins.def: Update.
2479
ee03e71d
RB
24802013-06-17 Richard Biener <rguenther@suse.de>
2481
2482 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2483 (lto_input_scc): Declare.
2484 (lto_input_tree_1): Likewise.
2485 (struct lto_stats_d): Add num_tree_bodies_output and
2486 num_pickle_refs_output.
2487 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2488 (lto_read_tree_1): Split out from ...
2489 (lto_read_tree): ... this.
2490 (lto_input_scc): New function.
2491 (lto_input_tree_1): Split out from ...
2492 (lto_input_tree): ... this. Handle LTO_tree_scc.
2493 (lto_data_in_create): Create the streamer cache without hashes.
2494 * lto-streamer-out.c (create_output_block): Create the streamer
2495 cache with hashes when not doing WPA.
2496 (lto_write_tree_1): Split out from ...
2497 (lto_write_tree): ... this.
2498 (get_symbol_initial_value): New function.
2499 (lto_output_tree_1): Split out from ...
2500 (lto_output_tree): ... this. Write trees as series of SCCs
2501 using a DFS walk via DFS_write_tree.
2502 (struct sccs, struct scc_entry): New types.
2503 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2504 (DFS_write_tree_body): New function.
2505 (DFS_write_tree): Likewise.
2506 (hash_tree): Likewise.
2507 (scc_entry_compare): Likewise.
2508 (hash_scc): Likewise.
2509 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2510 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2511 TREE_CHAIN as regular reference.
2512 (streamer_read_integer_cst): Remove.
2513 (streamer_get_pickled_tree): Adjust.
2514 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2515 of DECL_EXTERNALs in BLOCK_VARS for now.
2516 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2517 reference.
2518 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2519 Add hash value argument and record that if hashes are recorded
2520 in the cache.
2521 (streamer_tree_cache_insert_1): Adjust.
2522 (streamer_tree_cache_insert): Likewise.
2523 (streamer_tree_cache_insert_at): Rename to ...
2524 (streamer_tree_cache_replace_tree): ... this and adjust.
2525 (streamer_tree_cache_append): Adjust.
2526 (record_common_node): Likewise.
2527 (streamer_tree_cache_create): Add argument whether to
2528 record hash values together with trees.
2529 (streamer_tree_cache_delete): Adjust.
2530 * tree-streamer.h (struct streamer_tree_cache_d): Add
2531 vector of hashes.
2532 (streamer_read_integer_cst): Remove.
2533 (streamer_tree_cache_insert): Adjust.
2534 (streamer_tree_cache_append): Likewise.
2535 (streamer_tree_cache_insert_at): Rename to ...
2536 (streamer_tree_cache_replace_tree): ... this and adjust.
2537 (streamer_tree_cache_create): Add argument whether to record hashes.
2538 (streamer_tree_cache_get): Rename to ...
2539 (streamer_tree_cache_get_tree): ... this.
2540 (streamer_tree_cache_get_hash): New function.
2541 * tree.c (cache_integer_cst): New function.
2542 * tree.h (cache_integer_cst): Declare.
2543 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2544 * lto-symtab.c (lto_varpool_replace_node): Only release
2545 DECL_INITIAL of non-prevailing decls.
2546 * varpool.c (varpool_remove_initializer): Do not release
2547 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2548
0de86a92
JU
25492013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2550
2551 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2552 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2553 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2554 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2555 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2556 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2557 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2558 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2559 instead of TARGET_64BIT.
2560 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2561 Require ISA_HAS_<D>DIV.
2562
74240413
RS
25632013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2564
2565 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2566 (mips*-*-linux*): Move default with_llsc setting to where other
2567 defaults are set.
2568 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2569 with_arch block.
2570 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2571 Likewise. Remove default with_tune setting. Move default float
2572 setting to its own block. Handle with_llsc in the same block as above.
2573
393f9fed
JR
25742013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2575
2576 PR rtl-optimization/57425
2577 PR rtl-optimization/57569
299a5f6a 2578 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
2579 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2580 Changed all callers.
2581 (canon_anti_dependence): New function.
2582 * cse.c (check_dependence): Use canon_anti_dependence.
2583 * cselib.c (cselib_invalidate_mem): Likewise.
2584 * rtl.h (canon_anti_dependence): Declare.
2585
b259d352
JU
25862013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2587
2588 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2589 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2590 ".set mips3" for 64-bit targets.
2591
4de09b85
DC
25922013-06-15 Dehao Chen <dehao@google.com>
2593
2594 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2595 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2596 (gimple_check_call_args): Likewise.
2597 * value-prof.c (check_ic_target): Likewise.
2598 * ipa-inline.c (early_inliner): Likewise.
2599 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2600 * cgraph.c (cgraph_create_edge_1): Likewise.
2601 (cgraph_make_edge_direct): Likewise.
2602
d1aa4a76
MM
26032013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2604
2605 PR target/57615
2606 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2607 rs6000_output_move_128bit to handle emitting quad memory
2608 operations. Set attribute length to 8 bytes.
2609
24244e4d
VP
26102013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2611
2612 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2613 New pattern.
2614 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2615 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2616 (aarch64_<su>mlsl<mode>): Likewise.
2617
f5273574
MS
26182013-06-14 Mike Stump <mikestump@comcast.net>
2619
2620 * Makefile.in (TARGET_H): Add insn-codes.h.
2621
ef7e7ab2
AM
26222013-06-14 Alan Modra <amodra@gmail.com>
2623
2624 PR middle-end/57134
2625 PR middle-end/57586
2626 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2627 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2628 bitfield expansion when EXPAND_MEMORY.
2629 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2630
135faab6
MM
26312013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2632
2633 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2634 test for clearing quad memory on 32-bit later.
2635
948a1fd9
MG
26362013-06-13 Marc Glisse <marc.glisse@inria.fr>
2637
2638 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2639 (fold_negate_expr): Likewise.
2640 (fold_real_zero_addition_p): Handle vectors.
2641 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2642
0597fb9c
AM
26432013-06-14 Alan Modra <amodra@gmail.com>
2644
2645 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2646
e5b962d0
JH
26472013-06-13 Jan Hubicka <jh@suse.cz>
2648
2649 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2650 Local comdats are not externally visible.
2651 * symtab.c (dump_symtab_base): Dump externally visible.
2652 (verify_symtab_base): Verify back links in the symtab hash.
2653
a8355e51
BC
26542013-06-13 Bin Cheng <bin.cheng@arm.com>
2655
2656 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2657 CONVERT_EXPR as equal nodes.
2658
8f7e6e33
BC
26592013-06-13 Bin Cheng <bin.cheng@arm.com>
2660
22fc7d3d 2661 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 2662
5d418483
MG
26632013-06-13 Marc Glisse <marc.glisse@inria.fr>
2664
2665 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2666 Generalize to complex and vector.
2667 * tree.c (build_all_ones_cst): New function.
2668 * tree.h (build_all_ones_cst): Declare it.
2669
50751417
AM
26702013-06-13 Alan Modra <amodra@gmail.com>
2671
2672 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2673 * config/rs6000/rs6000.md (signbittf2): New insn.
2674 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2675 (abstf2_internal, cmptf_internal2): Likewise.
2676 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2677
4b02c962
MM
26782013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2679 Pat Haugen <pthaugen@us.ibm.com>
2680 Peter Bergner <bergner@vnet.ibm.com>
2681
2682 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2683 power8 byte, half-word, and quad-word atomic instructions.
2684 (emit_store_conditional): Likewise.
2685 (rs6000_expand_atomic_compare_and_swap): Likewise.
2686 (rs6000_expand_atomic_op): Likewise.
2687
2688 * config/rs6000/sync.md (larx): Add new modes for power8.
2689 (stcx): Likewise.
2690 (AINT): New mode iterator to include TImode as well as normal
2691 integer modes on power8.
2692 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2693 that VSX registers are not considered. Use AINT mode iterator
2694 instead of INT1 to allow inclusion of quad word atomic operations
2695 on power8.
2696 (load_locked<mode>): Likewise.
2697 (store_conditional<mode>): Likewise.
2698 (atomic_compare_and_swap<mode>): Likewise.
2699 (atomic_exchange<mode>): Likewise.
2700 (atomic_nand<mode>): Likewise.
2701 (atomic_fetch_<fetchop_name><mode>): Likewise.
2702 (atomic_nand_fetch<mode>): Likewise.
2703 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2704 each type.
2705 (ATOMIC): On power8, add QImode, HImode modes.
2706 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2707 modes that promote to SImode.
2708 (load_lockedti): Convert TImode arguments to PTImode, so that we
2709 get a guaranteed even/odd register pair.
2710 (load_lockedpti): Likewise.
2711 (store_conditionalti): Likewise.
2712 (store_conditionalpti): Likewise.
2713
2714 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2715 atomic load/store instructions.
2716 (HSI): Likewise.
2717
710b6cc1
RS
27182013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2719
2720 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2721 loads.
2722 (insn_count): New attribute, with most cases extracted from...
2723 (length): ...here. Redefine most cases in terms of insn_count.
2724 (single_insn): Delete.
2725 (can_delay): Use insn_count to check for single instructions.
2726 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2727 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2728 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2729 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2730 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2731 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2732 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2733 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2734 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2735 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2736 rather than "length".
2737 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2738 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2739 Use "insn_count" rather than "length".
2740 * config/mips/mips-dsp.md
2741 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2742 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2743 length attributes.
2744
1951f101
MG
27452013-06-12 Marc Glisse <marc.glisse@inria.fr>
2746
2747 PR tree-optimization/57361
2748 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2749
8b033a8a
SN
27502013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2751
22fc7d3d
UB
2752 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2753 to split.
8b033a8a
SN
2754 (aarch64_simd_combine<mode>): New instruction expansion.
2755 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2756 function prototype.
2757 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2758 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2759
ca0f62a8
JH
27602013-06-12 Jan Hubicka <jh@suse.cz>
2761
2762 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2763 decl has when in streaming stage.
2764 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2765 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2766
cddd69eb
RS
27672013-06-12 Roland Stigge <stigge@antcom.de>
2768
2769 PR target/57578
2770 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2771
bfdeda2c
JJ
27722013-06-12 Jakub Jelinek <jakub@redhat.com>
2773
2774 PR tree-optimization/57537
2775 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2776 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2777
a4fa02d1
RB
27782013-06-12 Richard Biener <rguenther@suse.de>
2779
2780 * data-streamer.h (streamer_write_char_stream): CSE
2781 obs->current_pointer.
2782 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2783 streamer_write_char_stream manually and optimize the resulting loop.
2784 (streamer_write_hwi_stream): Likewise.
2785
bbf9ad07
JH
27862013-06-12 Jan Hubicka <jh@suse.cz>
2787
2788 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2789 * cgraph.h (varpool_create_empty_node): Declare.
2790 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2791 duplicated nodes.
2792 * symtab.c (symtab_unregister_node): Be lax about missin entries
2793 in node hash.
2794 (symtab_get_node): Update comment.
2795 * varpool.c (varpool_create_empty_node): Break out from ...
2796 (varpool_node_for_decl): ... here.
2797 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2798
a53f90ad
EB
27992013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2800
2801 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2802 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2803 part. Use straight-line flow at the end.
2804 <COMPONENT_REF>: Remove superfluous else.
2805 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2806
946f9306
JJ
28072013-06-12 Jakub Jelinek <jakub@redhat.com>
2808
2809 PR target/56564
2810 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2811 target hook even for !TREE_PUBLIC decls. If no resolution info
2812 is available, return false for common and external decls.
2813
a7fca6f0
KP
28142013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2815
2816 * config/rl78/constraints.md (U): New constraint.
2817 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2818 valloc attribute.
2819
c7d8f446
MM
28202013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2821
2822 PR target/57589
2823 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2824 to allow returning address to AT_PLATFORM name.
2825
08346abd
JH
28262013-06-11 Jan Hubicka <jh@suse.cz>
2827
2828 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2829 * cgraph.h (symtab_node_base): Add weakref flag.
2830 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2831 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2832 (output_weakrefs): Use weakref flag.
2833 * fold-const.c (simple_operand_p): Handle WEAK.
2834 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2835 * ipa.c (varpool_externally_visible_p): Drop weakref.
2836 (function_and_variable_visibility): Update comment; fix weakref
2837 sanity checks; do not clear DECL_WEAK on them.
2838 * lto-cgraph.c (lto_output_node): update.
2839 (lto_output_varpool_node): Update.
2840 (input_overwrite_node): Update.
2841 (input_node): Update.
2842 (input_varpool_node): Update.
2843 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2844 (lto_symtab_merge_symbols): Add sanity check.
2845 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2846 * passes.c (rest_of_decl_compilation): Set static flag, too.
2847 * symtab.c (dump_symtab_base): Dump weakref.
2848 (verify_symtab_base): Sanity check weakrefs.
2849 (symtab_make_decl_local): Remove duplicated code.
2850 (symtab_alias_ultimate_target): Simplify.
2851 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 2852
d9af3652
DD
28532013-06-11 DJ Delorie <dj@redhat.com>
2854
2855 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2856 (rl78_unwind_word_mode): New.
2857
ffa66012
DM
28582013-06-11 David Malcolm <dmalcolm@redhat.com>
2859
2860 * final.c (debug_prefix_maps): Make static.
2861
783f2d35
DM
28622013-06-11 David Malcolm <dmalcolm@redhat.com>
2863
2864 * function.c (initial_trampoline): Remove stray copy.
2865
7af26def
SN
28662013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2867
2868 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2869
97756c0e
MJ
28702013-06-11 Martin Jambor <mjambor@suse.cz>
2871
2872 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2873 within bounds at the beginning of the function.
2874
2c7b8bf6
AM
28752013-06-11 Alan Modra <amodra@gmail.com>
2876
2877 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2878 reporting.
2879 (get_named_section): Don't NULL !DECL_P decl.
2880
77cea46e
IZ
28812013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2882
2883 * doc/invoke.texi (core-avx2): Document.
2884 (slm): Likewise.
2885 (atom): Updated with MOVBE.
2886
888f0920
RB
28872013-06-11 Richard Biener <rguenther@suse.de>
2888
22fc7d3d 2889 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 2890
6b438d58
AB
28912013-06-11 Anton Blanchard <anton@samba.org>
2892
2893 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2894 correct shift value in little-endian mode.
2895
3bc66938
JJ
28962013-06-11 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR target/56564
2899 * varasm.c (get_variable_align): Move #endif to the right place.
2900
a5dc7f88
CC
29012013-06-10 Cary Coutant <ccoutant@google.com>
2902
2903 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2904 for hash so that hash table traversal order is deterministic.
2905
19be72ab
MM
29062013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2907 Pat Haugen <pthaugen@us.ibm.com>
2908 Peter Bergner <bergner@vnet.ibm.com>
2909
2910 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2911 of vectors in GPRS if they are direct moves or quad word load or
2912 store moves.
2913
2914 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2915 declaration.
2916 (direct_move_p): Likewise.
2917 (quad_load_store_p): Likewise.
2918
2919 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2920 classes into bins based on the physical register type.
2921 (reg_class_to_reg_type): Likewise.
2922 (IS_STD_REG_TYPE): Likewise.
2923 (IS_FP_VECT_REG_TYPE): Likewise.
2924 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2925 use direct move instructions.
2926 (reload_gpr_vsx): Likewise.
2927 (reload_vsx_gpr): Likewise.
2928 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2929 information that is a simplification of register classes. Also
2930 precalculate direct move reload helpers.
2931 (direct_move_p): New function to return true if the operation can
2932 be done as a direct move instruciton.
2933 (quad_load_store_p): New function to return true if the operation
2934 is a quad memory operation.
2935 (rs6000_legitimize_address): If quad memory, only allow register
2936 indirect for TImode addresses.
2937 (rs6000_legitimate_address_p): Likewise.
2938 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2939 (rs6000_reload_register_type): Likewise.
2940 (register_to_reg_type): Return register type.
2941 (rs6000_secondary_reload_simple_move): New helper function for
2942 secondary reload and secondary memory needed to identify anything
2943 that is a simple move, and does not need reloading.
2944 (rs6000_secondary_reload_direct_move): New helper function for
2945 secondary reload to identify cases that can be done with several
2946 instructions via the direct move instructions.
2947 (rs6000_secondary_reload_move): New helper function for secondary
2948 reload to identify moves between register types that can be done.
2949 (rs6000_secondary_reload): Add support for quad memory operations
2950 and for direct move.
2951 (rs6000_secondary_memory_needed): Likewise.
2952 (rs6000_debug_secondary_memory_needed): Change argument names.
2953 (rs6000_output_move_128bit): New function to return the move to
2954 use for 128-bit moves, including knowing about the various
2955 limitations of quad memory operations.
2956
2957 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2958 memory operations. call rs6000_output_move_128bit for the actual
2959 instruciton(s) to generate.
2960 (vsx_movti_64bit): Likewise.
2961
2962 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2963 (UNSPEC_P8V_MTVSRWZ): Likewise.
2964 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2965 (UNSPEC_P8V_MTVSRD): Likewise.
2966 (UNSPEC_P8V_XXPERMDI): Likewise.
2967 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2968 (UNSPEC_FUSION_GPR): Likewise.
2969 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 2970 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
2971 (f32_sv): Likewise.
2972 (f32_dm): Likewise.
2973 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2974 loads and direct move instructions.
2975 (zero_extendsidi2_lfiwzx): Likewise.
2976 (extendsidi2_lfiwax): Likewise.
2977 (extendsidi2_nocell): Likewise.
2978 (floatsi<mode>2_lfiwax): Likewise.
2979 (lfiwax): Likewise.
2980 (floatunssi<mode>2_lfiwzx): Likewise.
2981 (lfiwzx): Likewise.
2982 (fix_trunc<mode>_stfiwx): Likewise.
2983 (fixuns_trunc<mode>_stfiwx): Likewise.
2984 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2985 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2986 (parity<mode>2_cmpb): Set length/type attr.
2987 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2988 for 'mr.' to fast_compare.
2989 (bpermd_<mode>): Change type attr to popcnt.
2990 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2991 (p8_mtvsrwz_1): Likewise.
2992 (p8_mtvsrwz_2): Likewise.
2993 (reload_fpr_from_gpr<mode>): Likewise.
2994 (p8_mtvsrd_1): Likewise.
2995 (p8_mtvsrd_2): Likewise.
2996 (p8_xxpermdi_<mode>): Likewise.
2997 (reload_vsx_from_gpr<mode>): Likewise.
2998 (reload_vsx_from_gprsf): Likewise.
2999 (p8_mfvsrd_3_<mode>): LIkewise.
3000 (reload_gpr_from_vsx<mode>): Likewise.
3001 (reload_gpr_from_vsxsf): Likewise.
3002 (p8_mfvsrd_4_disf): Likewise.
3003 (multi-word GPR splits): Do not split direct moves or quad memory
3004 operations.
3005
16876bdc
DM
30062013-06-10 David Malcolm <dmalcolm@redhat.com>
3007
3008 * tree-into-ssa.c (interesting_blocks): Make static.
3009
df8a1d28
JJ
30102013-06-10 Jakub Jelinek <jakub@redhat.com>
3011
3012 PR target/56564
3013 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3014 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3015 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3016 (get_variable_align): New function.
3017 (get_variable_section, emit_bss, emit_common,
3018 assemble_variable_contents, place_block_symbol): Use
3019 get_variable_align instead of DECL_ALIGN.
3020 (assemble_noswitch_variable): Add align argument, use it
3021 instead of DECL_ALIGN.
3022 (assemble_variable): Adjust caller. Use get_variable_align
3023 instead of DECL_ALIGN.
3024 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3025 caller.
3026 (DATA_ABI_ALIGNMENT): Define.
3027 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3028 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3029 opt is false, only return the psABI mandated alignment increase.
3030 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3031 (DATA_ABI_ALIGNMENT): ... this.
3032 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3033 (DATA_ABI_ALIGNMENT): ... this.
3034 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3035 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3036 (DATA_ABI_ALIGNMENT): ... this.
3037 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3038 * doc/tm.texi: Regenerated.
3039
57b29ca6
UB
30402013-06-10 Uros Bizjak <ubizjak@gmail.com>
3041
3042 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3043 cmp_code to construct REG_EQUAL note.
3044
3e56ed50
JJ
30452013-06-09 Jakub Jelinek <jakub@redhat.com>
3046
3047 PR target/57568
3048 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3049 that operands[2] doesn't overlap with operands[0].
3050
74fe2a1d
DE
30512013-06-09 David Edelsohn <dje.gcc@gmail.com>
3052 Jan Hubicka <jh@suse.cz>
3053
3054 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3055 hack to mark symbols as used.
3056
ed52a84e
VM
30572013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3058
3059 PR rtl-optimization/57559
3060 * lra-constraints.c (process_alt_operands): Don't discourage
3061 memory with known offset for offsetable memory constraint.
3062 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3063
299316ed
EB
30642013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3065
3066 * varasm.c (struct oc_local_state): Reorder fields.
3067 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3068 and adjust accordingly.
3069 (output_constructor): Reorder initialization code and adjust call to
3070 output_constructor_bitfield.
3071
88ac60d3
JH
30722013-06-07 Jan Hubicka <jh@suse.cz>
3073
3074 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3075
4cdce1a8
DM
30762013-06-07 David Malcolm <dmalcolm@redhat.com>
3077
3078 * tree-object-size.c (unknown): Make const.
3079
b5e0425c
AK
30802013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3081
3082 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3083 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3084 for last alternative in the cpu_facility attribute.
3085
79678d04
KT
30862013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3087
3088 PR target/56315
3089 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3090 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3091 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3092 * config/arm/constraints.md (Dg): New constraint.
3093 * config/arm/neon.md (xordi3_neon): Remove.
3094 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3095 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3096
b31ddbdb
KT
30972013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3098
3099 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3100 Clean up alternatives.
3101
8f90b7d4
AM
31022013-06-07 Alan Modra <amodra@gmail.com>
3103
3104 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3105 va_list_gpr_size.
3106
961ce119
AM
31072013-06-07 Alan Modra <amodra@gmail.com>
3108
3109 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3110
33e49835
KT
31112013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3112
3113 * config/arm/constraints.md (Df): New constraint.
3114 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3115 Correct length attribute for last two alternatives.
3116
acd17ae6
AM
31172013-06-07 Alan Modra <amodra@gmail.com>
3118
3119 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3120 override user -mfp-in-toc.
3121 (offsettable_ok_by_alignment): Consider just the current access
3122 rather than the whole object, unless BLKmode. Handle
3123 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3124 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3125 for -mcmodel=medium.
3126 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3127 override user -mfp-in-toc or -msum-in-toc. Default to
3128 -mno-fp-in-toc for -mcmodel=medium.
3129
73310b0e
DD
31302013-06-06 DJ Delorie <dj@redhat.com>
3131
3132 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3133 TARGET_VALID_POINTER_MODE.
3134
0bd62dca
MM
31352013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3136 Pat Haugen <pthaugen@us.ibm.com>
3137 Peter Bergner <bergner@vnet.ibm.com>
3138
3139 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3140 Document new power8 builtins.
3141
3142 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3143 condition code register, to allow 128-bit logical operations to be
3144 done in the VSX or GPR registers.
3145 (nor<mode>3): Use the canonical form for nor.
3146 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3147 vclz*, and vpopcnt* vector instructions.
3148 (nand<mode>3): Likewise.
3149 (orc<mode>3): Likewise.
3150 (clz<mode>2): LIkewise.
3151 (popcount<mode>2): Likewise.
3152
3153 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3154 that only the GPRs are recognized.
3155
3156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3157 support for new power8 builtins.
3158
3159 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3160 builtin functions.
3161 (xscvdpspn): Likewise.
3162 (vclz): Likewise.
3163 (vclzb): Likewise.
3164 (vclzh): Likewise.
3165 (vclzw): Likewise.
3166 (vclzd): Likewise.
3167 (vpopcnt): Likewise.
3168 (vpopcntb): Likewise.
3169 (vpopcnth): Likewise.
3170 (vpopcntw): Likewise.
3171 (vpopcntd): Likewise.
3172 (vgbbd): Likewise.
3173 (vmrgew): Likewise.
3174 (vmrgow): Likewise.
3175 (eqv): Likewise.
3176 (eqv_v16qi3): Likewise.
3177 (eqv_v8hi3): Likewise.
3178 (eqv_v4si3): Likewise.
3179 (eqv_v2di3): Likewise.
3180 (eqv_v4sf3): Likewise.
3181 (eqv_v2df3): Likewise.
3182 (nand): Likewise.
3183 (nand_v16qi3): Likewise.
3184 (nand_v8hi3): Likewise.
3185 (nand_v4si3): Likewise.
3186 (nand_v2di3): Likewise.
3187 (nand_v4sf3): Likewise.
3188 (nand_v2df3): Likewise.
3189 (orc): Likewise.
3190 (orc_v16qi3): Likewise.
3191 (orc_v8hi3): Likewise.
3192 (orc_v4si3): Likewise.
3193 (orc_v2di3): Likewise.
3194 (orc_v4sf3): Likewise.
3195 (orc_v2df3): Likewise.
3196
3197 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3198 allow power8 quad mode in 64-bit.
3199 (rs6000_builtin_vectorized_function): Add support to vectorize
3200 ISA 2.07 count leading zeros, population count builtins.
3201 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3202 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3203 (builtin_function_type): Add vgbbd builtin function which takes an
3204 unsigned argument.
3205 (altivec_expand_vec_perm_const): Add support for new power8 merge
3206 instructions.
3207
3208 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3209 that does not include TImdoe for use with 32-bit.
3210 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3211 instructions.
3212 (UNSPEC_VSX_CVDPSPN): Likewise.
3213 (vsx_xscvdpspn): Likewise.
3214 (vsx_xscvspdpn): Likewise.
3215 (vsx_xscvdpspn_scalar): Likewise.
3216 (vsx_xscvspdpn_directmove): Likewise.
3217 (vsx_and<mode>3): Split logical operations into 32-bit and
3218 64-bit. Add support to do logical operations on TImode as well as
3219 VSX vector types. Allow logical operations to be done in either
3220 VSX registers or in general purpose registers in 64-bit mode. Add
3221 splitters if GPRs were used. For AND, add clobber of CCmode to
3222 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3223 encoding.
3224 (vsx_and<mode>3_32bit): Likewise.
3225 (vsx_and<mode>3_64bit): Likewise.
3226 (vsx_ior<mode>3): Likewise.
3227 (vsx_ior<mode>3_32bit): Likewise.
3228 (vsx_ior<mode>3_64bit): Likewise.
3229 (vsx_xor<mode>3): Likewise.
3230 (vsx_xor<mode>3_32bit): Likewise.
3231 (vsx_xor<mode>3_64bit): Likewise.
3232 (vsx_one_cmpl<mode>2): Likewise.
3233 (vsx_one_cmpl<mode>2_32bit): Likewise.
3234 (vsx_one_cmpl<mode>2_64bit): Likewise.
3235 (vsx_nor<mode>3): Likewise.
3236 (vsx_nor<mode>3_32bit): Likewise.
3237 (vsx_nor<mode>3_64bit): Likewise.
3238 (vsx_andc<mode>3): Likewise.
3239 (vsx_andc<mode>3_32bit): Likewise.
3240 (vsx_andc<mode>3_64bit): Likewise.
3241 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3242 and xxlorc instructions.
3243 (vsx_eqv<mode>3_64bit): Likewise.
3244 (vsx_nand<mode>3_32bit): Likewise.
3245 (vsx_nand<mode>3_64bit): Likewise.
3246 (vsx_orc<mode>3_32bit): Likewise.
3247 (vsx_orc<mode>3_64bit): Likewise.
3248
3249 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3250
3251 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3252 instruction.
3253 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3254 (p8_vmrgow): Likewise.
3255 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3256 GPRs to be split under VSX.
3257 (p8v_clz<mode>2): Add power8 count leading zero support.
3258 (p8v_popcount<mode>2): Add power8 population count support.
3259 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3260 support.
3261
3262 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3263 instruction.
3264
3265 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3266 builtin functions.
3267 (vec_nand): Likewise.
3268 (vec_vclz): Likewise.
3269 (vec_vclzb): Likewise.
3270 (vec_vclzd): Likewise.
3271 (vec_vclzh): Likewise.
3272 (vec_vclzw): Likewise.
3273 (vec_vgbbd): Likewise.
3274 (vec_vmrgew): Likewise.
3275 (vec_vmrgow): Likewise.
3276 (vec_vpopcnt): Likewise.
3277 (vec_vpopcntb): Likewise.
3278 (vec_vpopcntd): Likewise.
3279 (vec_vpopcnth): Likewise.
3280 (vec_vpopcntw): Likewise.
3281
37684c46
VM
32822013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3283
3284 PR rtl-optimization/57468
3285 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3286 spilled pseudos.
3287
d89ae27c
VM
32882013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3289
3290 PR rtl-optimization/57459
3291 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3292 type when setting live regs.
3293
3597e113
VM
32942013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3295
3296 * config/s390/s390.opt (mlra): New option.
3297 * config/s390/s390.c (s390_decompose_address): Check displacement
3298 for all registers for LRA.
3299 (s390_secondary_reload): Don't used secondary reloads for LRA.
3300 (s390_lra_p): New function.
3301 (TARGET_LRA_P): Define.
3302 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3303 of attribute cpu_facility to zarch for the last alternative.
3304 (*cmpmem_short): Ditto.
3305
01037aeb
EB
33062013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3307
3308 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3309 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3310 (arm_expand_prologue): Likewise.
3311
3371a64f
TJ
33122013-06-06 Teresa Johnson <tejohnson@google.com>
3313
3314 PR c++/53743
3315 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3316 as this is now done by redirect_edge_and_branch_force.
3317 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3318 barriers, and fix interaction with splitting.
3319 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3320 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3321 reflect changes made in the routine.
3322 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3323 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3324 since this is called in cfglayout mode, and replace partition fixup
3325 with assert as that is now done by force_nonfallthru_and_redirect.
3326 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3327 already be marked with region crossing note.
3328 (insert_section_boundary_note): Make non-static, gate on flag
3329 has_bb_partition, rewrite to also check for multiple partitions.
3330 (rest_of_handle_reorder_blocks): Remove call to
3331 insert_section_boundary_note, now done later during free_cfg.
3332 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3333 * bb-reorder.h (insert_section_boundary_note): Declare.
3334 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3335 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3336 invoke insert_section_boundary_note.
3337 (try_redirect_by_replacing_jump): Remove unnecessary
3338 check for region crossing note.
3339 (fixup_partition_crossing): New function.
3340 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3341 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3342 in non-cfglayout mode.
3343 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3344 remove old code that tried to do this. Emit barrier correctly
3345 when we are in cfglayout mode.
3346 (last_bb_in_partition): New function.
3347 (rtl_split_edge): Correctly fixup partition boundaries.
3348 (commit_one_edge_insertion): Remove old code that tried to
3349 fixup region crossing edge since this is now handled in
3350 split_block, and set up insertion point correctly since
3351 block may now end in a jump.
3352 (verify_hot_cold_block_grouping): Guard against checking when not in
3353 linearized RTL mode.
3354 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3355 notes.
3356 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3357 rtl_verify_flow_info, so not called in cfglayout mode.
3358 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3359 (fixup_reorder_chain): Remove old code that attempted to fixup region
3360 crossing note as this is now handled in force_nonfallthru_and_redirect.
3361 (duplicate_insn_chain): Don't duplicate switch section notes.
3362 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3363 note.
3364 * basic-block.h (emit_barrier_after_bb): Declare.
3365
66071e10
KT
33662013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3367
3368 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3369 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3370 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3371
0e26bf3d
KT
33722013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3373
3374 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3375 where appropriate.
3376 * config/arm/ldmstm.md: Regenerate.
3377
12b4e7ef
KT
33782013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3379
3380 * config/arm/sync.md (atomic_loaddi_1):
3381 Disable predication for arm_restrict_it.
3382 (arm_load_exclusive<mode>): Likewise.
3383 (arm_load_exclusivesi): Likewise.
3384 (arm_load_exclusivedi): Likewise.
3385 (arm_load_acquire_exclusive<mode>): Likewise.
3386 (arm_load_acquire_exclusivesi): Likewise.
3387 (arm_load_acquire_exclusivedi): Likewise.
3388 (arm_store_exclusive<mode>): Likewise.
3389 (arm_store_exclusive<mode>): Likewise.
3390 (arm_store_release_exclusivedi): Likewise.
3391 (arm_store_release_exclusive<mode>): Likewise.
3392
15d16c8a
RB
33932013-06-06 Richard Biener <rguenther@suse.de>
3394
3395 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3396 after LTO_null.
3397 (lto_tag_is_tree_code_p): Adjust.
3398 (lto_tag_is_gimple_code_p): Likewise.
3399 (lto_gimple_code_to_tag): Likewise.
3400 (lto_tag_to_gimple_code): Likewise.
3401 (lto_tree_code_to_tag): Likewise.
3402 (lto_tag_to_tree_code): Likewise.
3403 * data-streamer.h (streamer_write_hwi_in_range): Use
3404 uhwi streaming to stream the normalized range.
3405 (streamer_read_hwi_in_range): Likewise.
3406
17a7fc37
KT
34072013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3408
3409 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3410 (predicable_short_it): Likewise.
3411 (predicated): Likewise.
3412 (enabled): Handle above.
3413 (define_cond_exec): Set predicated attribute to yes.
3414
b57ca59b
MS
34152013-06-05 Mike Stump <mikestump@comcast.net>
3416
3417 * gdbinit.in (__FUNCTION__): Add.
3418
c1e183a9
UB
34192013-06-05 Uros Bizjak <ubizjak@gmail.com>
3420
3421 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3422 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3423
0378bddb
JH
34242013-06-05 Jan Hubicka <jh@suse.cz>
3425
3426 * varasm.c (mark_decl_referenced): Revert the removal until targets
3427 are fixed.
3428
8f8a2057
DE
34292013-06-05 David Edelsohn <dje.gcc@gmail.com>
3430
3431 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3432 instead of mark_decl_referenced.
3433
edb983b2
JH
34342013-06-05 Jan Hubicka <jh@suse.cz>
3435
3436 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3437 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3438 and symtab_used_from_object_file_p.
3439 (cgraph_make_node_local_1): Clear forced_by_abi.
3440 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3441 * cgraph.h (symtab_node_base): Add forced_by_abi.
3442 (decide_is_variable_needed): Remove.
3443 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3444 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3445 (decide_is_symbol_needed): ... this one; handle symbols in general;
3446 always analyze virtuals; honnor forced_by_abi.
3447 (cgraph_finalize_function): Update.
3448 (varpool_finalize_decl): Update.
3449 (symbol_defined_and_needed): Remove.
3450 (analyze_functions): Update.
3451 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3452 output_refs, input_overwrite_node): Handle forced_by_abi.
3453 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3454 (address_taken_from_non_vtable_p): ... this one.
3455 (comdat_can_be_unshared_p_1): New function.
3456 (cgraph_comdat_can_be_unshared_p): Rename to ...
3457 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3458 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3459 (function_and_variable_visibility): Clear forced_by_abi as needed.
3460 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3461 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
3462 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3463 * varpool.c (decide_is_variable_needed): Remove.
3464
9912dbe5
KT
34652013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3466
3467 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3468 (arm_option_override): Override arm_restrict_it where appropriate.
3469 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3470 * config/arm/arm.opt (mrestrict-it): New command-line option.
3471 * doc/invoke.texi: Document -mrestrict-it.
3472
34c136b6
DM
34732013-06-05 David Malcolm <dmalcolm@redhat.com>
3474
3475 * tsan.c (tsan_atomic_table): Make const.
3476
a367df53
RB
34772013-06-05 Richard Biener <rguenther@suse.de>
3478
3479 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3480 index associated with the tree we are supposed to replace.
3481 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3482 TREE_ASM_WRITTEN as zero for everything but SSA names.
3483
70d51a19
DM
34842013-06-05 David Malcolm <dmalcolm@redhat.com>
3485
3486 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3487
b9bd2075
JH
34882013-06-04 Jan Hubicka <jh@suse.cz>
3489
3490 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3491 (input_node, input_varpool_node): Handle correctly external same
3492 body aliases.
3493 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3494 nodes at ltrans stage.
3495
aaae719d
JH
34962013-06-04 Jan Hubicka <jh@suse.cz>
3497
3498 * ipa-inline.c (update_caller_keys): Fix availability test.
3499 (update_callee_keys): Likewise.
3500 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3501 to follow ELF standard.
3502
107eea2c
JU
35032013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3504
3505 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3506 (mips64r5900el-*-elf*): New configurations.
3507 * config/mips/mips-cpus.def (r5900): New processor.
3508 * config/mips/mips-tables.opt: Regenerate.
3509 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3510 (mips_issue_rate): Handle PROCESSOR_R5900.
3511 (mips_reorg_process_insns): Force reorder mode for the R5900.
3512 * config/mips/mips.h (TARGET_MIPS5900): Define.
3513 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3514 TARGET_MIPS5900.
3515 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3516 TARGET_MIPS5900.
3517 * config/mips/mips.md (processor): Add r5900.
3518 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3519
b7342d25
IB
35202013-06-04 Ian Bolton <ian.bolton@arm.com>
3521
3522 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3523 into function to generate MOVI instruction.
c1e183a9 3524 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
3525 (aarch64_preferred_simd_mode): Turn into wrapper.
3526 (aarch64_output_scalar_simd_mov_immediate): New function.
3527 * config/aarch64/aarch64-protos.h: Add prototype for above.
3528
81c2dfb9
IB
35292013-06-04 Ian Bolton <ian.bolton@arm.com>
3530
3531 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3532 element_char member.
3533 (sizetochar): Return signed char.
3534 (aarch64_simd_valid_immediate): Remove elchar and other
3535 unnecessary variables.
3536 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3537 Calculate element_char as required.
3538 * config/aarch64/aarch64-protos.h: Update and move prototype
3539 for aarch64_output_simd_mov_immediate.
3540 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3541 Update arguments.
3542
48063b9d
IB
35432013-06-04 Ian Bolton <ian.bolton@arm.com>
3544
3545 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3546 information completed by aarch64_simd_valid_immediate.
3547 (aarch64_legitimate_constant_p): Update arguments.
3548 (aarch64_simd_valid_immediate): Work with struct rather than many
3549 pointers.
3550 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3551 (aarch64_simd_make_constant): Update arguments.
3552 (aarch64_output_simd_mov_immediate): Work with struct rather than
3553 many pointers. Output immediate directly rather than as operand.
3554 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3555 Update prototype.
3556 * config/aarch64/constraints.md (Dn): Update arguments.
3557
3ea63f60
IB
35582013-06-04 Ian Bolton <ian.bolton@arm.com>
3559
3560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3561 longer static.
3562 (aarch64_simd_immediate_valid_for_move): Remove.
3563 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3564 (aarch64_simd_make_constant): Update call.
3565 (aarch64_output_simd_mov_immediate): Update call.
3566 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3567 Add prototype.
3568 * config/aarch64/constraints.md (Dn): Update call.
3569
d8edd899
IB
35702013-06-04 Ian Bolton <ian.bolton@arm.com>
3571
3572 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3573 return type to bool for prototype.
3574 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3575 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3576 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3577
44b20bb8
CM
35782013-06-04 Catherine Moore <clm@codesourcery.com>
3579
3580 * config/mips/mips.opt (meva): New.
c1e183a9 3581 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
3582 (ASM_SPEC): Handle -meva.
3583 * doc/invoke.texi (meva): Document.
3584
52befbd8
AM
35852013-06-04 Alan Modra <amodra@gmail.com>
3586
3587 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3588 constant output.
3589
aadaf24e
KT
35902013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3591
3592 * rtl.def: Add extra fourth optional field to define_cond_exec.
3593 * gensupport.c (process_one_cond_exec): Process attributes from
3594 define_cond_exec.
3595 * doc/md.texi: Document fourth field in define_cond_exec.
3596
0cd9e9ee
EB
35972013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3598
3599 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3600 out the processing order as in store_bit_field_1.
3601
cb0f665d
JH
36022013-06-04 Jan Hubicka <jh@suse.cz>
3603
3604 PR middle-end/57500
3605 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3606 non-VAR_DECL node if it does not exist yet.
3607
53984b9b
RS
36082013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3609
3610 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3611 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3612 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3613 target_cpu_default setting.
3614
5d318fd4
TJ
36152013-06-03 Teresa Johnson <tejohnson@google.com>
3616
3617 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3618 default to -fopt-info=optimized instead of all.
3619 * doc/invoke.texi: Ditto.
3620 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3621 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3622 (execute_vect_slp): Emit BB vectorization success under
3623 MSG_OPTIMIZED_LOCATIONS.
3624 * tree-vect-slp.c (vect_slp_transform_bb): Change
3625 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3626 * tree-vect-loop.c (vect_transform_loop): Ditto.
3627
ec3af349
JM
36282013-06-03 Jason Merrill <jason@redhat.com>
3629
3630 PR c++/57415
3631 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3632 Use TARGET_EXPR for C++.
3633
1baf9159
JJ
36342013-06-03 Jakub Jelinek <jakub@redhat.com>
3635
3636 PR rtl-optimization/57268
0cd9e9ee 3637 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
3638 if DEBUG_INSN_P (insn).
3639
3640 Reapply
3641 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3642
3643 PR rtl-optimization/57268
3644 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3645 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3646
0f1d3965
YR
36472013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3648
3649 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3650 (ix86_avoid_lea_for_addr): Likewise.
3651 (exact_dependency_1): Likewise.
3652 (ix86_adjust_cost): Likewise.
3653 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3654 removed.
3655 (do_reorder_for_imul): Fix typo, formatting and
3656 !reload_completed check removed.
3657 (ix86_sched_reorder): Fix typo and formatting.
3658 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3659 list.
3660
3bc30db4
SN
36612013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3662
3663 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3664
19cc6fac
EB
36652013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3666
3667 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3668 <STRING_CST>: Likewise.
3669 <VECTOR_CST>: Likewise.
3670
c68a6e08
JW
36712013-06-01 Janus Weil <janus@gcc.gnu.org>
3672 Mikael Morin <mikael@gcc.gnu.org>
3673
3674 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3675 * config.in: Regenerated.
3676 * configure: Regenerated.
3677
38e55e5c
JH
36782013-06-01 Jan Hubicka <jh@suse.cz>
3679
3680 PR middle-end/57366
3681 * cgraphunit.c (compile): When weakref is not supported,
3682 set up transparent aliases before final output pass.
3683 * varasm.c (assemble_alias): Do not try to do it here.
3684
eb51d2ff
JH
36852013-06-01 Jan Hubicka <jh@suse.cz>
3686
3687 PR middle-end/57467
3688 * passes.c (for_per_function): Skip unanalyzed functions.
3689
40a7fe1e
JH
36902013-06-01 Jan Hubicka <jh@suse.cz>
3691
3692 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3693 (lto_symtab_merge_symbols_1): ... this one.
3694 (lto_symtab_merge_cgraph_nodes): Rename to ...
3695 (lto_symtab_merge_symbols): ... this one; simplify.
3696 * cgraph.c (same_body_aliases_done): Rename to ...
3697 (cpp_implicit_aliases_done): ... this one.
3698 (cgraph_create_function_alias): Update.
3699 (cgraph_same_body_alias): Update.
c1e183a9 3700 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 3701 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 3702 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
3703 (cgraph_node): Remove same_body_alias.
3704 (varpool_node): Remove alias_of and extra_name_alias.
3705 (same_body_aliases_done): Rename to ..
3706 (cpp_implicit_aliases_done): ... this one.
3707 (symtab_alias_ultimate_target): Add default parameter.
3708 (symtab_resolve_alias): New function.
3709 (fixup_same_cpp_alias_visibility): Declare.
3710 (cgraph_function_node): Add default parameter.
3711 (cgraph_node_asm_name): Likewise.
3712 (cgraph_function_or_thunk_node): Add default parameter; do
3713 not ICE when it is NULL.
3714 (varpool_variable_node): Likewise.
3715 * tree-emutls.c (create_emultls_var): Update.
3716 (ipa_lower_emutls): Update.
3717 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3718 (cgraph_reset_node): Reset alias info.
3719 (cgraph_finalize_function): Update.
3720 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3721 (analyze_function): Simplify.
3722 (cgraph_process_same_body_aliases): Simplify.
3723 (analyze_functions): Fixup same body aliases.
3724 (handle_alias_pairs): Simplify.
3725 (assemble_thunk): Update.
3726 (assemble_thunks_and_aliases): Update.
3727 (output_weakrefs): Rewrite.
3728 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3729 (lto_output_varpool_node): Likewise.
3730 (compute_ltrans_boundary): Remve assert.
3731 (get_alias_symbol): New functoin.
3732 (input_node): Rewrite alias handling.
3733 (input_varpool_node): Likewise.
3734 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3735 * ipa.c (process_references): Handle weakrefs correctly.
3736 (symtab_remove_unreachable_nodes): Likewise.
3737 * trans-mem.c (get_cg_data): Update.
3738 (ipa_tm_create_version_alias): Update.
3739 (ipa_tm_execute): Update.
3740 * symtab.c (dump_symtab_base): Dump aliases.
3741 (verify_symtab_base): Verify aliases.
3742 (symtab_node_availability): New function.
3743 (symtab_alias_ultimate_target): Simplify.
3744 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3745 handle all the fixup cases.
3746 (symtab_resolve_alias): New function.
3747 * passes.c (ipa_write_summaries): Handle weakrefs.
3748 * varpool.c (varpool_analyze_node): Simplify.
3749 (assemble_aliases): Update.
3750 (varpool_create_variable_alias): Simplify.
3751 (varpool_extra_name_alias): Simplify.
3752 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3753 (lto_symtab_merge_symbols): ... this one.
3754
21759881
DT
37552013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3756
3757 Revert
3758 PR rtl-optimization/57268
3759 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3760 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3761
daf4e940
TB
37622013-06-01 Tobias Burnus <burnus@net-b.de>
3763
3764 Partially reverted:
3765 2013-05-31 Tobias Burnus <burnus@net-b.de>
3766
3767 PR middle-end/57073
3768 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3769 further up.
3770
c359d8d0
DT
37712013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3772
3773 PR rtl-optimization/57268
3774 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3775 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3776
4172215d
EB
37772013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3778
3779 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3780 unordered comparison operators when -fno-trapping-math is in effect
3781 on the e500.
3782 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3783 and implement unordered comparison operators properly on the e500.
3784
a8c50132
EB
37852013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3786
3787 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3788 for constant scalar integers.
3789 (simplify_relational_operation_1): Likewise.
3790
44626634
SB
37912013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3792
3793 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3794 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3795 Fix comment.
3796
55805e54
YR
37972013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3798 Igor Zamyatin <igor.zamyatin@intel.com>
3799
3800 Silvermont (SLM) architecture performance tuning.
3801 * config/i386/i386.h (enum ix86_tune_indices): Add
3802 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3803 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3804
3805 * config/i386/i386.c (initial_ix86_tune_features)
3806 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3807 (ix86_lea_outperforms): Handle Silvermont tuning.
3808 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3809 call.
3810 (ix86_use_lea_for_mov): Likewise.
3811 (ix86_avoid_lea_for_addr): Likewise.
3812 (ix86_lea_for_add_ok): Likewise.
3813 (exact_dependency_1): New function.
3814 (exact_store_load_dependency): Likewise.
3815 (ix86_adjust_cost): Handle Silvermont tuning.
3816 (do_reoder_for_imul): Likewise.
3817 (swap_top_of_ready_list): New function.
3818 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3819
3820 * config/i386/i386.md (peepholes that split memory operand in fp
3821 converts): New.
3822
e19c9de2
MS
38232013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3824
3825 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3826 Remove un-necessary braces.
3827
38e6c9a6
MS
38282013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3829
3830 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3831 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3832
e3530904
TB
38332013-05-31 Tobias Burnus <burnus@net-b.de>
3834
3835 PR middle-end/57073
c1e183a9 3836 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 3837
b6af05a9
KT
38382013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3839
3840 PR target/56315
3841 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3842 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3843 * config/arm/neon.md (iordi3_neon): Remove.
3844 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3845 * config/arm/predicates.md (imm_for_neon_logic_operand):
3846 Move to earlier in the file.
3847 (neon_logic_op2): Likewise.
3848 (arm_iordi_operand_neon): New predicate.
3849
f800c166
RB
38502013-05-31 Richard Biener <rguenther@suse.de>
3851
3852 PR tree-optimization/57478
3853 PR tree-optimization/57453
3854 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3855 are life as well.
3856
e571fa59
KP
38572013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3858
3859 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3860 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3861
0fa6e0ef
TB
38622013-05-30 Tobias Burnus <burnus@net-b.de>
3863 Thomas Koenig <tkoenig@gcc.gnu.org>
3864
3865 PR middle-end/57073
3866 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3867 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3868
4688ddf5
SB
38692013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3870
0fa6e0ef 3871 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 3872
3b9ceb4b
VM
38732013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3874
3875 * target.def (register_usage_leveling_p): New hook.
3876 * targhooks.c (default_register_usage_leveling_p): New.
3877 * targhooks.h (default_register_usage_leveling_p): New prototype.
3878 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3879 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3880 * doc/tm.texi: Update.
3881 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3882
65f9e789
IB
38832013-05-30 Ian Bolton <ian.bolton@arm.com>
3884
3885 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3886 (*insv_reg<mode>): New define_insn.
3887
ca035367
JR
38882013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3889
3890 PR rtl-optimization/57439
3891 * postreload.c (move2add_valid_value_p): Check that we have
3892 a zero subreg_regno_offset when accessing the register in
3893 the requested mode.
3894
0b871ccf
YR
38952013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3896 Igor Zamyatin <igor.zamyatin@intel.com>
3897
3898 Silvermont (SLM) architecture pipeline model, tuning and
3899 insn selection.
3900 * config.gcc: Add slm config options and target.
3901
3902 * config/i386/slm.md: New.
3903
3904 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3905
3906 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3907 PROCESSOR_SLM.
3908 (ix86_target_macros_internal): Likewise.
3909
3910 * gcc/config/i386/i386.c (slm_cost): New cost.
3911 (m_SLM): New macro flag.
3912 (initial_ix86_tune_features): Set m_SLM.
3913 (x86_accumulate_outgoing_args): Likewise.
3914 (x86_arch_always_fancy_math_387): Likewise.
3915 (processor_target_table): Add slm cost.
3916 (cpu_names): Add slm cpu name.
3917 (x86_option_override_internal): Set SLM ISA.
3918 (ix86_issue_rate): New case PROCESSOR_SLM.
3919 (ia32_multipass_dfa_lookahead): Likewise.
3920 (fold_builtin_cpu): Add slm.
3921
3922 * config/i386/i386.h (TARGET_SLM): New target macro.
3923 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3924 (processor_type): Add PROCESSOR_SLM.
3925
3926 * config/i386/i386.md (cpu): Add new value "slm".
3927 (slm.md): Include slm.md.
3928
24d5b097
XG
39292013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3930 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3931
3932 * config/arm/arm-protos.h: Add and update function protos.
3933 * config/arm/arm.c (use_simple_return_p): New added.
3934 (thumb2_expand_return): Check simple_return flag.
3935 * config/arm/arm.md: Add simple_return and conditional simple_return.
3936 * config/arm/iterators.md: Add iterator for return and simple_return.
3937
c1cccc15
ZC
39382013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3939
3940 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3941 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3942 (arm_emit_vfp_multi_reg_pop): Likewise.
3943 (thumb2_emit_ldrd_pop): Likewise.
3944 (arm_expand_epilogue): Add misc REG_CFA notes.
3945 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3946
3a4f280b
LC
39472013-05-29 Lawrence Crowl <crowl@google.com>
3948
3949 * config/arm/t-arm: Update for below.
3950
3951 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3952 Change type to hash_table. Update dependent calls and types.
3953
3954 * config/i386/t-cygming: Update for below.
3955
3956 * config/i386/t-interix: Update for below.
3957
3958 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3959 Change type to hash_table. Update dependent calls and types.
3960 (i386_find_on_wrapper_list::wrappers): Likewise.
3961
3962 * config/ia64/t-ia64: Update for below.
3963
3964 * config/ia64/ia64.c (bundle_state_table):
3965 Change type to hash_table. Update dependent calls and types.
3966
3967 * config/mips/mips.c (mips_reorg_process_insns::htab):
3968 Change type to hash_table. Update dependent calls and types.
3969
3970 * config/sol2.c (solaris_comdat_htab):
3971 Change type to hash_table. Update dependent calls and types.
3972
3973 * config/t-sol2: Update for above.
3974
1388a0e3
TJ
39752013-05-29 Teresa Johnson <tejohnson@google.com>
3976
3977 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3978 functions are not yet marked as defined.
3979
a5965b52
MM
39802013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3981 Pat Haugen <pthaugen@us.ibm.com>
3982 Peter Bergner <bergner@vnet.ibm.com>
3983
3984 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3985 instructions.
3986 (VEC_A): Likewise.
3987 (VEC_C): Likewise.
3988 (vrotl<mode>3): Likewise.
3989 (vashl<mode>3): Likewise.
3990 (vlshr<mode>3): Likewise.
3991 (vashr<mode>3): Likewise.
3992
3993 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3994 support for power8 V2DI builtins.
3995
3996 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3997 power8 V2DI builtins.
3998 (vupkhsw): Likewise.
3999 (vupklsw): Likewise.
4000 (vaddudm): Likewise.
4001 (vminsd): Likewise.
4002 (vmaxsd): Likewise.
4003 (vminud): Likewise.
4004 (vmaxud): Likewise.
4005 (vpkudum): Likewise.
4006 (vpksdss): Likewise.
4007 (vpkudus): Likewise.
4008 (vpksdus): Likewise.
4009 (vrld): Likewise.
4010 (vsld): Likewise.
4011 (vsrd): Likewise.
4012 (vsrad): Likewise.
4013 (vsubudm): Likewise.
4014 (vcmpequd): Likewise.
4015 (vcmpgtsd): Likewise.
4016 (vcmpgtud): Likewise.
4017 (vcmpequd_p): Likewise.
4018 (vcmpgtsd_p): Likewise.
4019 (vcmpgtud_p): Likewise.
4020 (vupkhsw): Likewise.
4021 (vupklsw): Likewise.
4022 (vaddudm): Likewise.
4023 (vmaxsd): Likewise.
4024 (vmaxud): Likewise.
4025 (vminsd): Likewise.
4026 (vminud): Likewise.
4027 (vpksdss): Likewise.
4028 (vpksdus): Likewise.
4029 (vpkudum): Likewise.
4030 (vpkudus): Likewise.
4031 (vrld): Likewise.
4032 (vsld): Likewise.
4033 (vsrad): Likewise.
4034 (vsrd): Likewise.
4035 (vsubudm): Likewise.
4036
4037 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4038 support for power8 V2DI instructions.
4039
4040 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4041 power8 V2DI instructions. Combine pack and unpack insns to use an
4042 iterator for each mode. Check whether a particular mode supports
4043 Altivec instructions instead of just checking TARGET_ALTIVEC.
4044 (UNSPEC_VPKUWUM): Likewise.
4045 (UNSPEC_VPKSHSS): Likewise.
4046 (UNSPEC_VPKSWSS): Likewise.
4047 (UNSPEC_VPKUHUS): Likewise.
4048 (UNSPEC_VPKSHUS): Likewise.
4049 (UNSPEC_VPKUWUS): Likewise.
4050 (UNSPEC_VPKSWUS): Likewise.
4051 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4052 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4053 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4054 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4055 (UNSPEC_VUPKHSB): Likewise.
4056 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4057 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4058 (UNSPEC_VUPKHSH): Likewise.
4059 (UNSPEC_VUPKLSB): Likewise.
4060 (UNSPEC_VUPKLSH): Likewise.
4061 (VI2): Likewise.
4062 (VI_char): Likewise.
4063 (VI_scalar): Likewise.
4064 (VI_unit): Likewise.
4065 (VP): Likewise.
4066 (VP_small): Likewise.
4067 (VP_small_lc): Likewise.
4068 (VU_char): Likewise.
4069 (add<mode>3): Likewise.
4070 (altivec_vaddcuw): Likewise.
4071 (altivec_vaddu<VI_char>s): Likewise.
4072 (altivec_vadds<VI_char>s): Likewise.
4073 (sub<mode>3): Likewise.
4074 (altivec_vsubcuw): Likewise.
4075 (altivec_vsubu<VI_char>s): Likewise.
4076 (altivec_vsubs<VI_char>s): Likewise.
4077 (altivec_vavgs<VI_char>): Likewise.
4078 (altivec_vcmpbfp): Likewise.
4079 (altivec_eq<mode>): Likewise.
4080 (altivec_gt<mode>): Likewise.
4081 (altivec_gtu<mode>): Likewise.
4082 (umax<mode>3): Likewise.
4083 (smax<mode>3): Likewise.
4084 (umin<mode>3): Likewise.
4085 (smin<mode>3): Likewise.
4086 (altivec_vpkuhum): Likewise.
4087 (altivec_vpkuwum): Likewise.
4088 (altivec_vpkshss): Likewise.
4089 (altivec_vpkswss): Likewise.
4090 (altivec_vpkuhus): Likewise.
4091 (altivec_vpkshus): Likewise.
4092 (altivec_vpkuwus): Likewise.
4093 (altivec_vpkswus): Likewise.
4094 (altivec_vpks<VI_char>ss): Likewise.
4095 (altivec_vpks<VI_char>us): Likewise.
4096 (altivec_vpku<VI_char>us): Likewise.
4097 (altivec_vpku<VI_char>um): Likewise.
4098 (altivec_vrl<VI_char>): Likewise.
4099 (altivec_vsl<VI_char>): Likewise.
4100 (altivec_vsr<VI_char>): Likewise.
4101 (altivec_vsra<VI_char>): Likewise.
4102 (altivec_vsldoi_<mode>): Likewise.
4103 (altivec_vupkhsb): Likewise.
4104 (altivec_vupkhs<VU_char>): Likewise.
4105 (altivec_vupkls<VU_char>): Likewise.
4106 (altivec_vupkhsh): Likewise.
4107 (altivec_vupklsb): Likewise.
4108 (altivec_vupklsh): Likewise.
4109 (altivec_vcmpequ<VI_char>_p): Likewise.
4110 (altivec_vcmpgts<VI_char>_p): Likewise.
4111 (altivec_vcmpgtu<VI_char>_p): Likewise.
4112 (abs<mode>2): Likewise.
4113 (vec_unpacks_hi_v16qi): Likewise.
4114 (vec_unpacks_hi_v8hi): Likewise.
4115 (vec_unpacks_lo_v16qi): Likewise.
4116 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4117 (vec_unpacks_lo_v8hi): Likewise.
4118 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4119 (vec_pack_trunc_v8h): Likewise.
4120 (vec_pack_trunc_v4si): Likewise.
4121 (vec_pack_trunc_<mode>): Likewise.
4122
4123 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4124 V2DI builtins.
4125 (vec_vmaxsd): Likewise.
4126 (vec_vmaxud): Likewise.
4127 (vec_vminsd): Likewise.
4128 (vec_vminud): Likewise.
4129 (vec_vpksdss): Likewise.
4130 (vec_vpksdus): Likewise.
4131 (vec_vpkudum): Likewise.
4132 (vec_vpkudus): Likewise.
4133 (vec_vrld): Likewise.
4134 (vec_vsld): Likewise.
4135 (vec_vsrad): Likewise.
4136 (vec_vsrd): Likewise.
4137 (vec_vsubudm): Likewise.
4138 (vec_vupkhsw): Likewise.
4139 (vec_vupklsw): Likewise.
4140
e70670cf
JH
41412013-05-29 Jan Hubicka <jh@suse.cz>
4142
4143 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4144 flags; reorder rest of fields in more consistent way.
4145 (varpool_node): Remove analyzed, finalized and alias.
4146 (cgraph_ndoe): Likewise.
4147 (symtab_alias_ultimate_target): New function.
4148 (cgraph_function_node): Move offline.
4149 (cgraph_reset_node): Declare.
4150 (cgraph_comdat_can_be_unshared_p): Remove.
4151 (varpool_remove_initializer): Declare.
4152 (varpool_first_defined_variable, varpool_next_defined_variable
4153 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4154 (cgraph_function_with_gimple_body_p): Update.
4155 (varpool_all_refs_explicit_p): Update.
4156 (symtab_alias_target): New function.
4157 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4158 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
4159 (cgraph_function_or_thunk_node): Simplify using
4160 symtab_alias_ultimate_target.
e70670cf
JH
4161 (varpool_variable_node): Likewise.
4162 * cgraph.c (cgraph_create_function_alias): Update.
4163 (cgraph_add_thunk): Update.
4164 (cgraph_remove_node): Update.
4165 (dump_cgraph_node): Do not dump removed flags.
4166 (cgraph_function_body_availability): Update.
4167 (cgraph_propagate_frequency): Update.
4168 (verify_cgraph_node): Check sanity of local flag.
4169 (cgraph_function_node): Move here from cgraph.h; revamp for
4170 cgraph_function_or_thunk_node.
4171 * lto-symtab.c (lto_varpool_replace_node): Update.
4172 (lto_symtab_resolve_can_prevail_p): Update.
4173 (lto_symtab_merge_cgraph_nodes): Update.
4174 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4175 propagate_constants_accross_call, devirtualization_time_bonus,
4176 ipcp_propagate_stage): Update.
4177 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
4178 * ipa-inline-transform.c (clone_inlined_nodes,
4179 preserve_function_body_p): Update.
e70670cf
JH
4180 * ipa-reference.c (propagate): Update.
4181 (write_node_summary_p): Update.
4182 * toplev.c (wrapup_global_declaration_2): Update.
4183 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4184 (analyze_function) ... this one.
4185 (cgraph_process_new_functions): Update.
4186 (cgraph_reset_node): Export.
4187 (cgraph_finalize_function): Update.
4188 (cgraph_add_new_function): Update.
4189 (process_function_and_variable_attributes): Update.
4190 (varpool_finalize_decl): Update.
4191 (symbol_finalized): Remove.
4192 (symbol_finalized_and_needed): Rename to ...
4193 (symbol_defined_and_needed): ... update.
4194 (cgraph_analyze_functions): Update.
4195 (handle_alias_pairs): Update.
4196 (mark_functions_to_output): Update.
4197 (assemble_thunk): Update.
4198 (output_in_order): Update.
4199 (output_weakrefs): Update.
4200 (finalize_compilation_unit): Update.
4201 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4202 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4203 input_node, input_varpool_node): Update.
4204 * dbxout.c (dbxout_expand_expr): Update.
4205 * cgraphclones.c (cgraph_clone_node): Update.
4206 (cgraph_copy_node_for_versioning): Update.
4207 (cgraph_materialize_clone): Update.
4208 (cgraph_materialize_all_clones): Update.
4209 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4210 propagate_pure_const, propagate_nothrow): Update.
4211 * lto-streamer-out.c (lto_output, write_symbol): Update.
4212 * ipa-utils.c (ipa_reverse_postorder): Update.
4213 * ipa-inline.c (can_inline_edge_p): Update.
4214 (update_caller_keys, ipa_inline): Update.
4215 * dwarf2out.c (reference_to_unused,
4216 premark_types_used_by_global_vars_helper): Update.
4217 * tree-eh.c (tree_could_trap_p): Update.
4218 * ipa-split.c (consider_split, execute_split_functions): Update.
4219 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
4220 has_addr_references_p): Update; move ahead in file for better
4221 readability.
e70670cf
JH
4222 (process_references): Simplify.
4223 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4224 bodies are removed.
4225 (cgraph_comdat_can_be_unshared_p): Make static.
4226 (cgraph_externally_visible_p): Update.
4227 (varpool_externally_visible_p): Update.
4228 (function_and_variable_visibility): Update.
4229 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4230 ipa_tm_mark_force_output_node): Update.
4231 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4232 estimate_edge_devirt_benefit, inline_generate_summary,
4233 inline_write_summary): Update.
4234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4235 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
4236 (ipa_print_node_params, ipa_prop_read_section,
4237 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
4238 * varasm.c (mark_decl_referenced): Update.
4239 (assemble_alias, dump_tm_clone_pairs): Update.
4240 * tree-inline.c (copy_bb): Update.
4241 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4242 Update.
4243 * symtab.c (dump_symtab_base): Print new flags.
4244 (verify_symtab_base): Verify new flags.
4245 (symtab_alias_ultimate_target): New function.
4246 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4247 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4248 Update.
c1e183a9
UB
4249 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4250 Update.
e70670cf
JH
4251 * i386.c (ix86_get_function_versions_dispatcher,
4252 ix86_generate_version_dispatcher_body): Update.
4253 (fold_builtin_cpu): Use varpool_add_new_variable.
4254 * varpool.c (varpool_remove_initializer): Break out from ...
4255 (varpool_remove_node): ... this one.
4256 (dump_varpool_node, varpool_node_for_asm,
4257 cgraph_variable_initializer_availability, varpool_analyze_node,
4258 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
4259 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4260 Update.
e70670cf 4261
182802ad
JH
42622013-05-29 Jan Hubicka <jh@suse.cz>
4263
4264 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4265
8190b609
ER
42662013-05-29 Easwaran Raman <eraman@google.com>
4267
4268 PR tree-optimization/57442
4269 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4270 when control exits the main loop.
4271
69f5aa9b
SKS
42722013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4273
4274 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4275 and RX600.
c1e183a9 4276 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
4277 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4278 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4279 option.
4280
4b847da9
BS
42812013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4282
4283 PR tree-optimization/57441
4284 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4285 Don't limit size of incr_vec to number of candidates.
4286
4fc43c39
SE
42872013-05-29 Steve Ellcey <sellcey@imgtec.com>
4288
4289 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4290 and mips16 directories.
c1e183a9 4291 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
4292 (MULTILIB_DIRNAMES): Ditto.
4293 (MULTILIB_EXCEPTIONS): Add new exceptions.
4294 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4295 (MULTILIB_DIRNAMES): Ditto.
4296 (MULTILIB_EXCEPTIONS): Add new exceptions.
4297
a5350ddc
CSS
42982012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4299 Marcus Shawcroft <marcus.shawcroft@arm.com>
4300
4301 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4302 SYMBOL_TINY_ABSOLUTE.
4303 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4304 SYMBOL_TINY_ABSOLUTE.
4305 (aarch64_expand_mov_immediate): Likewise.
4306 (aarch64_classify_symbol): Likewise.
4307 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4308 Permit SYMBOL_TINY_ABSOLUTE.
4309 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4310
17f4d4bf
CSS
43112013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4312 Marcus Shawcroft <marcus.shawcroft@arm.com>
4313
4314 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4315 Refactor if/switch. Replace gcc_assert with if.
4316
c0186656
GG
43172013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4318
4319 * config/i386/i386.c (initial_ix86_tune_features): Enable
4320 FP Reassociation for AMD bdver1 and bdver2.
4321
d20188f3
MJ
43222013-05-29 Martin Jambor <mjambor@suse.cz>
4323
4324 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4325 and IMAGPART_EXPR do not occur within other handled_components.
4326
292cba13
RB
43272013-05-29 Richard Biener <rguenther@suse.de>
4328
4329 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4330 access on whether the use is in the BB we currently try to
4331 vectorize.
4332 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4333 vectorize to vect_bb_slp_scalar_cost.
4334
6eddf228
RB
43352013-05-29 Richard Biener <rguenther@suse.de>
4336
4337 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4338 computing scalar cost offsetted by stmts that are kept live
4339 by scalar uses.
4340 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4341 for computation of scalar cost.
4342
7df36117
SE
43432013-05-28 Steve Ellcey <sellcey@mips.com>
4344
4345 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4346
36536d79
BI
43472013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4348
4349 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4350 array notation built-in reduction functions.
4351 * doc/passes.texi (Passes): Added documentation about changes done
4352 for Cilk Plus.
4353 * doc/invoke.texi (C Dialect Options): Added documentation about
4354 the -fcilkplus flag.
4355 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4356 (BUILTINS_DEF): Depend on cilkplus.def.
4357 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4358 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4359 * cilkplus.def: New file.
4360
b49eefa5
JR
43612013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4362
4363 PR rtl-optimization/57439
4364 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4365
9daf6dbb
ER
43662013-05-28 Easwaran Raman <eraman@google.com>
4367
4368 PR tree-optimization/57337
4369 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4370 (find_insert_point): Correctly identify the insertion point
4371 when two statements with the same UID is compared.
4372
fbd7e877
RB
43732013-05-28 Richard Biener <rguenther@suse.de>
4374
4375 PR tree-optimization/56787
4376 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4377 from the list of data references.
4378 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4379 clobbers.
4380 (vect_analyze_loop_operations): Likewise.
4381 (vect_transform_loop): Remove clobbers.
4382
bbba1117
MJ
43832013-05-28 Martin Jambor <mjambor@suse.cz>
4384
4385 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4386 and REALPART_EXPRs have scalar type.
4387
bd388c2a
RB
43882013-05-28 Richard Biener <rguenther@suse.de>
4389
4390 PR tree-optimization/57411
4391 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4392 virtual operands.
4393 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4394 virtual operand propagation.
4395
2f56a311
EB
43962013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4397
4398 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4399 destination register for bmasksi_vis.
4400 (vector_init_bshuffle): Likewise.
4401 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4402
5c3eacbb
EB
44032013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4404
4405 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4406 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4407 mode if the instruction isn't available in the original mode.
4408 * config/sparc/sparc.opt (mfix-ut699): New option.
4409 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4410 (divdf3): Turn into expander.
4411 (divdf3_nofix): New insn.
4412 (divdf3_fix): Likewise.
4413 (divsf3): Disable if -mfix-ut699.
4414 (sqrtdf2): Turn into expander.
4415 (sqrtdf2_nofix): New insn.
4416 (sqrtdf2_fix): Likewise.
4417 (sqrtsf2): Disable if -mfix-ut699.
4418
a1756c0a
RB
44192013-05-27 Richard Biener <rguenther@suse.de>
4420
4421 PR middle-end/57412
4422 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4423 block for the new loop.
4424
5a892248
RB
44252013-05-27 Richard Biener <rguenther@suse.de>
4426
4427 PR tree-optimization/57343
4428 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4429 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4430 (number_of_iterations_cond): Do not build the folded tree.
4431
d1de852b
RB
44322013-05-27 Richard Biener <rguenther@suse.de>
4433
4434 Revert
4435 PR middle-end/57381
4436 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4437 OEP_CONSTANT_ADDRESS_OF retained.
4438
4439 PR tree-optimization/57417
4440 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4441 for unchanged base.
4442 (set_ssa_val_to): Compare addresses using
4443 get_addr_base_and_unit_offset.
4444
7894bc6b
JR
44452013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4446
4447 PR rtl-optimization/56833
4448 * postreload.c (move2add_record_mode): New function.
4449 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4450 (move2add_use_add2_insn): Use move2add_record_sym_value.
4451 (move2add_use_add3_insn): Likewise.
4452 (reload_cse_move2add): Use move2add_valid_value_p and
4453 move2add_record_mode. Invalidate call-clobbered and REG_INC
4454 affected regs by setting reg_mode to VOIDmode.
4455 (move2add_note_store): Don't pretend the inside of a SUBREG is
4456 the actual destination. Invalidate single/leading registers by
4457 setting reg_mode to VOIDmode.
4458 Use move2add_record_sym_value, move2add_valid_value_p and
4459 move2add_record_mode.
4460
b03be25f
RB
44612013-05-27 Richard Biener <rguenther@suse.de>
4462
4463 PR tree-optimization/57396
4464 * tree-affine.c (double_int_constant_multiple_p): Properly
4465 return false for val == 0 and div != 0.
4466
44e88db2
RS
44672013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4468
4469 * config/mips/mips.h: Use #elif in preprocessor conditions.
4470
3b859704
RS
44712013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4472
4473 PR target/53916
4474 * config/mips/constraints.md (kl): New constraint.
4475 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4476 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4477 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4478 from LO for MIPS16.
4479 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4480
c979d5f5
RS
44812013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4482
4483 PR target/55777
4484 * config/mips/mips.c (mips_can_inline_p): New function.
4485 (TARGET_CAN_INLINE_P): Define.
4486
8e90de43
SB
44872013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4488
4489 * sched-int.h (ds_t, dw_t): Make unsigned int.
4490 Fix documentation that describes how all the ds_t bits are used.
4491 Reserve the last bit for delayed-branch scheduling.
4492 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4493 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4494 (gen_dep_weak_1): Remove prototype.
4495 * sched-deps.c (get_dep_weak_1): Make static.
4496 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4497 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4498 * doc/tm.texi: Regenerate.
4499 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4500
cb5cb194
SB
45012013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4502
4503 PR debug/56950
4504 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4505
5bd93ff6
NS
45062013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4507 Sandra Loosemore <sandra@codesourcery.com>
4508
4509 * config.gcc (powerpc-*): Allow native for with-cpu.
4510
2343af65
JL
45112013-05-24 Jeff Law <law@redhat.com>
4512
4513 PR tree-optimization/57124
4514 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4515 conversion feeding a condition if the range has an overflow
4516 if -fstrict-overflow. Add warnings for when we do make the
4517 transformation.
4518
3ad695b9
DC
45192013-05-24 Dehao Chen <dehao@google.com>
4520
04960246 4521 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
4522 (locus_discrim_hasher): Likewise.
4523 (locus_discrim_hasher::hash): Likewise.
4524 (locus_discrim_hasher::equal): Likewise.
4525
82338059
MJ
45262013-05-24 Martin Jambor <mjambor@suse.cz>
4527
4528 PR tree-optimization/57294
4529 * cgraph.h (ipa_record_stmt_references): Declare.
4530 * cgraphbuild.c (ipa_record_stmt_references): New function.
4531 (build_cgraph_edges): Use ipa_record_stmt_references.
4532 (rebuild_cgraph_edges): Likewise.
4533 (cgraph_rebuild_references): Likewise.
4534 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4535 associated with the old statement and build references from the
4536 newly built statements.
4537 * ipa-ref.c (ipa_remove_stmt_references): New function.
4538 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4539
1ccd4874
VM
45402013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4541
55805e54 4542 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 4543 mem-mem moves.
55805e54 4544 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 4545 too.
55805e54 4546 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
4547 secondary memory moves.
4548 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4549 reg set up in the current insn.
4550
25e25c73
DC
45512013-05-24 Dehao Chen <dehao@google.com>
4552
04960246 4553 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
4554 hash function.
4555 (locus_descrim_hasher::equal): Likewise.
04960246 4556 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
4557 (make_edges): Likewise.
4558 (next_discriminator_for_locus): Likewise.
4559 (same_line_p): Likewise.
4560 (assign_discriminators): Likewise.
4561 (make_cond_expr_edges): Likewise.
4562 (make_gimple_switch_edges): Likewise.
4563 (make_goto_expr_edges): Likewise.
4564 (make_gimple_asm_edges): Likewise.
4565
50d38551
IB
45662013-05-24 Ian Bolton <ian.bolton@arm.com>
4567
4568 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4569 X format specifier to only display bottom 16 bits.
4570 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4571 immediate to match for operand 2, since it will be masked.
4572
aea0101d
RB
45732013-05-24 Richard Biener <rguenther@suse.de>
4574
4575 PR tree-optimization/57287
4576 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4577 all SSA names that occur in abnormal PHIs.
4578
634e03d3
AI
45792013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4580
4581 PR tree-ssa/57385
4582 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4583 that index is not negative.
4584
b17c024f
EB
45852013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4586
4587 PR rtl-optimization/55177
4588 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4589 (simplify_byte_swapping_operation): New.
4590 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4591 (simplify_relational_operation_1): Deal with BSWAP.
4592
46aeac1b
RH
45932013-05-23 Richard Henderson <rth@redhat.com>
4594
4595 PR target/56742
4596 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4597 (ix86_reorg): Call it.
4598
70cc1536
UB
45992013-05-23 Uros Bizjak <ubizjak@gmail.com>
4600
4601 PR target/57379
4602 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4603 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4604 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4605
b3851501
CB
46062013-05-23 Christian Bruel <christian.bruel@st.com>
4607
4608 PR debug/57351
4609 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4610
4e194912
CSS
46112013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4612 Marcus Shawcroft <marcus.shawcroft@arm.com>
4613
4614 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4615 * config/aarch64/constraints.md (Usa): Remove.
4616 * doc/md.texi (AArch64 Usa): Remove.
4617
83f8c414
CSS
46182013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4619 Marcus Shawcroft <marcus.shawcroft@arm.com>
4620
4621 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4622 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4623 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4624 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4625
b5574232
VP
46262013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4627
4628 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4629 instruction (AdvSIMD).
4630 * config/aarch64/aarch64-builtins.c
4631 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4632 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4633
76c36cb1 46342013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
4635
4636 PR middle-end/57347
4637 * tree.h (contains_bitfld_component_ref_p): Declare.
4638 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
4639 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4640 caller.
7d2fb524
MJ
4641 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4642 not access a bit-field. Assert all final offsets are byte-aligned.
4643
ce521ae6
RB
46442013-05-23 Richard Biener <rguenther@suse.de>
4645
4646 PR tree-optimization/57380
4647 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4648 least one invariant or re-used load.
4649 * passes.c (init_optimization_passes): Move pass_phiprop before
4650 pass_forwprop.
4651
75c7257f
JG
46522013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4653
4654 * config/aarch64/aarch64-simd.md
4655 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4656
af6d44b5
RB
46572013-05-23 Richard Biener <rguenther@suse.de>
4658
4659 PR middle-end/57381
4660 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4661 OEP_CONSTANT_ADDRESS_OF retained.
4662
bd3647bf
JJ
46632013-05-23 Jakub Jelinek <jakub@redhat.com>
4664
4665 PR middle-end/57344
70cc1536
UB
4666 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4667 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 4668
a55757ea
RB
46692013-05-23 Richard Biener <rguenther@suse.de>
4670
4671 PR rtl-optimization/57341
4672 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4673 instead of true_dependence.
4674
cfb00b41
DM
46752013-05-22 David Malcolm <dmalcolm@redhat.com>
4676
dd1c676f
DM
4677 * bb-reorder.c (branch_threshold): Make const.
4678 (exec_threshold): Ditto.
cfb00b41 4679
f62511da
MM
46802013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4681 Pat Haugen <pthaugen@us.ibm.com>
4682 Peter Bergner <bergner@vnet.ibm.com>
4683
4684 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4685 documentation for the power8 crypto builtins.
4686
4687 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4688
4689 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4690 macros for defining power8 builtin functions.
4691 (BU_P8V_AV_2): Likewise.
4692 (BU_P8V_AV_P): Likewise.
4693 (BU_P8V_VSX_1): Likewise.
4694 (BU_P8V_OVERLOAD_1): Likewise.
4695 (BU_P8V_OVERLOAD_2): Likewise.
4696 (BU_CRYPTO_1): Likewise.
4697 (BU_CRYPTO_2): Likewise.
4698 (BU_CRYPTO_3): Likewise.
4699 (BU_CRYPTO_OVERLOAD_1): Likewise.
4700 (BU_CRYPTO_OVERLOAD_2): Likewise.
4701 (XSCVSPDP): Fix typo, point to the correct instruction.
4702 (VCIPHER): Add power8 crypto builtins.
4703 (VCIPHERLAST): Likewise.
4704 (VNCIPHER): Likewise.
4705 (VNCIPHERLAST): Likewise.
4706 (VPMSUMB): Likewise.
4707 (VPMSUMH): Likewise.
4708 (VPMSUMW): Likewise.
4709 (VPERMXOR_V2DI): Likewise.
4710 (VPERMXOR_V4SI: Likewise.
4711 (VPERMXOR_V8HI: Likewise.
4712 (VPERMXOR_V16QI: Likewise.
4713 (VSHASIGMAW): Likewise.
4714 (VSHASIGMAD): Likewise.
4715 (VPMSUM): Likewise.
4716 (VPERMXOR): Likewise.
4717 (VSHASIGMA): Likewise.
4718
4719 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4720 __CRYPTO__ if the crypto instructions are available.
4721 (altivec_overloaded_builtins): Add support for overloaded power8
4722 builtins.
4723
4724 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4725 support for power8 crypto builtins.
4726 (builtin_function_type): Likewise.
4727 (altivec_init_builtins): Add support for builtins that take vector
4728 long long (V2DI) arguments.
4729
4730 * config/rs6000/crypto.md: New file, define power8 crypto
4731 instructions.
4732
47332013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4734 Pat Haugen <pthaugen@us.ibm.com>
4735 Peter Bergner <bergner@vnet.ibm.com>
4736
4737 * doc/invoke.texi (Option Summary): Add power8 options.
4738 (RS/6000 and PowerPC Options): Likewise.
4739
4740 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4741 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4742 wm, wn, wr documentation.
4743
4744 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4745 registers if direct move instructions are enabled.
4746 (wn): New constraint for no registers.
4747 (wq): New constraint for quad word even GPR registers.
4748 (wr): New constraint if 64-bit instructions are enabled.
4749 (wv): New constraint if power8 vector instructions are enabled.
4750 (wQ): New constraint for quad word memory locations.
4751
4752 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4753 constraint for 0..15 for crypto instructions.
4754 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4755 as GPR and floating point registers.
4756 (int_reg_operand): New predicate to match only GPR registers.
4757 (base_reg_operand): New predicate to match base registers.
4758 (quad_int_reg_operand): New predicate to match even GPR registers
4759 for quad memory operations.
4760 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4761 operations in both GPR and VSX registers.
4762 (quad_memory_operand): New predicate for quad memory operations.
4763 (reg_or_indexed_operand): New predicate for direct move support.
4764
4765 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4766 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4767 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4768 (POWERPC_MASKS): Add power8 options.
4769 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4770 various options.
4771
4772 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4773 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4774
4775 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4776 (-mpower8-fusion): New power8 options.
4777 (-mpower8-fusion-sign): Likewise.
4778 (-mpower8-vector): Likewise.
4779 (-mcrypto): Likewise.
4780 (-mdirect-move): Likewise.
4781 (-mquad-memory): Likewise.
4782
4783 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4784 power8.
4785 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4786 registers.
70cc1536 4787 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
4788 (rs6000_debug_vector_unit): Add p8_vector.
4789 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4790 definitions. Also print fusion state.
4791 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4792 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4793 (rs6000_option_override_internal): Add support for power8.
4794 (rs6000_common_init_builtins): Add debugging for skipped builtins
4795 if -mdebug=builtin.
4796 (rs6000_adjust_cost): Add power8 support.
4797 (rs6000_issue_rate): Likewise.
4798 (insn_must_be_first_in_group): Likewise.
4799 (insn_must_be_last_in_group): Likewise.
4800 (force_new_group): Likewise.
4801 (rs6000_register_move_cost): Likewise.
4802 (rs6000_opt_masks): Likewise.
4803
4804 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4805 power8 capable assembler, default to power7 options.
4806 (TARGET_DIRECT_MOVE): Likewise.
4807 (TARGET_CRYPTO): Likewise.
4808 (TARGET_P8_VECTOR): Likewise.
4809 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4810 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4811 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4812 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4813 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4814 (TARGET_XSCVDPSPN): Likewise.
4815 (TARGET_XSCVSPDPN): Likewsie.
4816 (TARGET_SYNC_HI_QI): Likewise.
4817 (TARGET_SYNC_TI): Likewise.
4818 (MASK_CRYPTO): Likewise.
4819 (MASK_DIRECT_MOVE): Likewise.
4820 (MASK_P8_FUSION): Likewise.
4821 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
4822 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4823 temporary used by some of the direct move instructions to get two FP
4824 temporary registers does not force creation of a stack frame.
f62511da
MM
4825 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4826 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4827 that any VSX registers are tieable, even if they are also an
4828 Altivec vector mode.
4829 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4830 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4831 (RS6000_BTM_CRYPTO): Likewise.
4832 (RS6000_BTM_COMMON): Likewise.
4833
4834 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4835 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4836 (enum rs6000_vector): Add power8 vector support.
4837
73a1a707
RR
48382013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4839
4840 PR target/19599
4841 PR target/57340
4842 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4843 (any_sibcall_could_use_r3): this and handle indirect calls.
4844 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4845
d28073d4
BS
48462013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4847
4848 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4849
bee0b10c
RB
48502013-05-22 Richard Biener <rguenther@suse.de>
4851
4852 PR middle-end/57349
4853 * profile.c (branch_prob): Do not split blocks that are
4854 abnormally receiving from ECF_RETURNS_TWICE functions.
4855
98409b51
RS
48562013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4857
4858 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4859 address mode. Move pointer mode initialization to the same place.
4860
c0602ab8
MZ
48612013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4862
4863 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4864 while it has any effect.
4865
4f7a634e
ER
48662013-05-21 Easwaran Raman <eraman@google.com>
4867
4868 PR tree-optimization/57322
9daf6dbb
ER
4869 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4870 UID of the statement added to the BB to be 1.
4f7a634e 4871
a4ce1258
JJ
48722013-05-21 Jakub Jelinek <jakub@redhat.com>
4873
4874 PR tree-optimization/57331
70cc1536
UB
4875 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4876 of conversion from pointer type to integral type with integer.
a4ce1258 4877
1b14621a
MJ
48782013-05-21 Martin Jambor <mjambor@suse.cz>
4879
4880 PR lto/57289
4881 * ipa-prop.c (ipa_read_node_info): Process param_used and
4882 controlled_uses in the same order as when writing.
4883
e60661f0
MG
48842013-05-21 Magnus Granberg <baldrick@free.fr>
4885
4886 PR plugins/56754
ee49aa34 4887 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 4888
4a61be9a
RB
48892013-05-21 Richard Biener <rguenther@suse.de>
4890
4891 PR tree-optimization/57318
4892 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4893 estimate stmts with side-effects as likely eliminated.
4894
c52da5f7
RB
48952013-05-21 Richard Biener <rguenther@suse.de>
4896
4897 PR tree-optimization/57330
4898 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4899 preserve the call stmts fntype.
4900
7ec67e2a
RB
49012013-05-21 Richard Biener <rguenther@suse.de>
4902
4903 PR tree-optimization/57303
4904 * tree-ssa-sink.c (statement_sink_location): Improve killing
4905 stmt detection and properly handle self-assignments.
4906
b112d513
CB
49072013-05-21 Christian Bruel <christian.bruel@st.com>
4908
55805e54
YR
4909 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4910 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
4911 registers. Set register size out of the PARALLEL loop.
4912
14c2ec26
OE
49132013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4914
4915 PR target/56547
4916 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4917 (*fmasf4, *fmasf4_media): New insns.
4918
da734fa1
RS
49192013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4920
4921 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4922 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4923 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4924 (mips_idiv_insns): Update the comments to say that the returned
4925 instruction counts are in units of BASE_INSN_LENGTH.
4926 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4927 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4928 using 2 rather than 4 as the length of indirect MIPS16 and
4929 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4930 length of a NOP. Don't divide MIPS16 lengths by 2.
4931 (mips16_split_long_branches): Assume a branch is long if the
4932 length is greater than 4 rather than 8.
4933 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4934 rather than multiplying them by 2. Multiply instruction counts
4935 by BASE_INSN_LENGTH rather than 4.
4936 (*jump_mips16, tls_get_tp_mips16_<mode>)
4937 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4938
13719e8b
RS
49392013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4940
4941 * config/mips/mips.md (extended_mips16): Remove branch case.
4942 (length): Remove duplicated extended_mips16 test.
4943
c3850d14
RS
49442013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4945
4946 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4947
8da2e059
RS
49482013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4949
4950 * recog.h (Recog_data): Rename to...
4951 (recog_data_d): ...this.
4952 (recog_data): Update accordingly.
4953 * recog.c (recog_data): Likewise.
4954 * reload.c (save_recog_data): Likewise.
4955 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4956 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4957
2df013f3
JB
49582013-05-17 Julian Brown <julian@codesourcery.com>
4959
4960 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4961 found in a REG_EQUAL note, invalidate it.
4962
371e77e3 49632013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
4964
4965 * tree-ssa-reassoc.c (find_insert_point): New function.
4966 (insert_stmt_after): Likewise.
4967 (get_def_stmt): Likewise.
4968 (ensure_ops_are_available): Likewise.
4969 (not_dominated_by): Likewise.
4970 (rewrite_expr_tree): Do not move statements beyond what is
4971 necessary. Remove call to swap_ops_for_binary_stmt...
4972 (reassociate_bb): ... and move it here.
4973 (build_and_add_sum): Assign UIDs for new statements.
4974 (linearize_expr): Likewise.
4975 (do_reassoc): Renumber gimple statement UIDs.
4976
e01c7cca
JH
49772013-05-17 Jan Hubicka <jh@suse.cz>
4978
4979 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4980 weakrefs.
4981 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
4982 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4983 weakrefs.
e01c7cca
JH
4984 (output_weakrefs): Update.
4985
c3272a92
PCC
49862013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4987 Martin Jambor <mjambor@suse.cz>
4988
4989 PR middle-end/57276
4990 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4991 value that corresponds to the given aggval is found in values vector.
4992
11c2aa39
UB
49932013-05-17 Uros Bizjak <ubizjak@gmail.com>
4994
4995 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4996 sse, sse2, sse3, ssse3 and sse4a flags to options.
4997
abecc8c6
DM
49982013-05-17 David Malcolm <dmalcolm@redhat.com>
4999
5000 * gengtype-state.c: (s_expr_writer): New class, to handle
5001 prettifying of output layout of s-expressions.
5002 (state_writer): New class, to write out gtype.state.
5003 (state_written_type_count): Move this variable into member data of
5004 state_writer.
5005 (s_expr_writer::s_expr_writer): New code: constructor for new class
5006 (state_writer::state_writer(): ditto
5007 (s_expr_writer::write_new_line): New function
5008 (s_expr_writer::write_any_indent): ditto
5009 (s_expr_writer::begin_s_expr): ditto
5010 (s_expr_writer::end_s_expr): ditto
5011 (write_state_fileloc): convert to method of state_writer...
5012 (state_writer:: write_state_fileloc): ...and use methods of
5013 s_expr_writer to write indentation into the gtype.state output file
5014 to visually represent the hierarchical structure of the list
5015 structures
5016 (write_state_fields): ditto, renaming to...
5017 (state_writer::write_state_fields)
5018 (write_state_a_string): ditto, renaming to...
5019 (state_writer::write_state_a_string)
5020 (write_state_string_option): ditto, renaming to...
5021 (state_writer::write_state_string_option)
5022 (write_state_type_option): ditto, renaming to...
5023 (state_writer::write_state_type_option)
5024 (write_state_nested_option): ditto, renaming to...
5025 (state_writer::write_state_nested_option)
5026 (write_state_option): ditto, renaming to...
5027 (state_writer::write_state_option)
5028 (write_state_options): ditto, renaming to...
5029 (state_writer::write_state_options)
5030 (write_state_lang_bitmap): ditto, renaming to...
5031 (state_writer::write_state_lang_bitmap)
5032 (write_state_version): ditto, renaming to...
5033 (state_writer::write_state_version)
5034 (write_state_scalar_type): ditto, renaming to...
5035 (state_writer::write_state_scalar_type)
5036 (write_state_string_type): ditto, renaming to...
5037 (state_writer::write_state_string_type)
5038 (write_state_undefined_type): ditto, renaming to...
5039 (state_writer::write_state_undefined_type)
5040 (write_state_struct_union_type): ditto, renaming to...
5041 (state_writer::write_state_struct_union_type)
5042 (write_state_struct_type): ditto, renaming to...
5043 (state_writer::write_state_struct_type)
5044 (write_state_user_struct_type): ditto, renaming to...
5045 (state_writer::write_state_user_struct_type)
5046 (write_state_lang_struct_type): ditto, renaming to...
5047 (state_writer::write_state_lang_struct_type)
5048 (write_state_param_struct_type): ditto, renaming to...
5049 (state_writer::write_state_param_struct_type)
5050 (write_state_pointer_type): ditto, renaming to...
5051 (state_writer::write_state_pointer_type)
5052 (write_state_array_type): ditto, renaming to...
5053 (state_writer::write_state_array_type)
5054 (write_state_gc_used): ditto, renaming to...
5055 (state_writer::write_state_gc_used)
5056 (write_state_common_type_content): ditto, renaming to...
5057 (state_writer::write_state_common_type_content)
5058 (write_state_type): ditto, renaming to...
5059 (state_writer::write_state_type)
5060 (write_state_pair_list): ditto, renaming to...
5061 (state_writer::write_state_pair_list)
5062 (write_state_pair): ditto, renaming to...
5063 (state_writer::write_state_pair)
5064 (write_state_typedefs): ditto, renaming to...
5065 (state_writer::write_state_typedefs)
5066 (write_state_structures): ditto, renaming to...
5067 (state_writer::write_state_structures)
5068 (write_state_param_structs): ditto, renaming to...
5069 (state_writer::write_state_param_structs)
5070 (write_state_variables): ditto, renaming to...
5071 (state_writer::write_state_variables)
5072 (write_state_srcdir): ditto, renaming to...
5073 (state_writer::write_state_srcdir)
5074 (write_state_files_list): ditto, renaming to...
5075 (state_writer::write_state_files_list)
5076 (write_state_languages): ditto, renaming to...
5077 (state_writer::write_state_languages)
5078 (write_state): create a state_writer instance and use it when
5079 writing out the state file
5080
d6545f29
MS
50812013-05-17 Mike Stump <mikestump@comcast.net>
5082
816a3f73 5083 PR rtl-optimization/57304
d6545f29
MS
5084 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5085 accessing DF_REF_REAL_LOC.
5086
38c821cf
JJ
50872013-05-17 Jakub Jelinek <jakub@redhat.com>
5088
5089 PR rtl-optimization/57281
5090 PR rtl-optimization/57300
5091 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5092 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5093 what the other splitter did if the registers are dead.
5094
2a293391
RB
50952013-05-17 Richard Biener <rguenther@suse.de>
5096
5097 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5098 MEM_REF offsets.
5099
17042d2b
JJ
51002013-05-17 Jakub Jelinek <jakub@redhat.com>
5101
5102 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5103 linking.
5104
5b115c1f
MP
51052013-05-17 Marek Polacek <polacek@redhat.com>
5106
11c2aa39
UB
5107 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5108 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 5109
52d84413
JJ
51102013-05-17 Jakub Jelinek <jakub@redhat.com>
5111
68119618
JJ
5112 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5113 vect_external_def oprnd1 with loop_vinfo, try to emit
5114 optional cast, negation and and stmts on the loop preheader
5115 edge instead of into the pattern def seq.
5116
52d84413
JJ
5117 PR tree-optimization/57051
5118 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5119 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5120
17b962bd
NC
51212013-05-16 Nick Clifton <nickc@redhat.com>
5122
5123 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5124 (rl78_is_naked_func): New function.
56aefbf7
UB
5125 (rl78_expand_prologue): Skip prologue generation for naked functions.
5126 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
5127 * doc/extend.texi (naked): Add RL78 to the list of processors
5128 that supports this attribute.
5129
b1a0f84e
JL
51302013-05-16 Jeff Law <law@redhat.com>
5131
5132 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5133
af0e415b
UB
51342013-05-16 Uros Bizjak <ubizjak@gmail.com>
5135
5136 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5137 cache parameters using detect_caches_amd also for CYRIX,
5138 NSC and TM2 signatures.
5139
19db293a
UB
51402013-05-16 Uros Bizjak <ubizjak@gmail.com>
5141 Dzianis Kahanovich <mahatma@eu.by>
5142
5143 PR target/45359
5144 PR target/46396
5145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5146 VIA/Centaur processors and determine their cache parameters
5147 using detect_caches_amd.
5148
251a41b9
TJ
51492013-05-16 Teresa Johnson <tejohnson@google.com>
5150
5151 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5152 (rtl_verify_edges): New function.
5153 (rtl_verify_bb_insns): Ditto.
5154 (rtl_verify_bb_pointers): Ditto.
5155 (rtl_verify_bb_insn_chain): Ditto.
5156 (rtl_verify_fallthru): Ditto.
5157 (rtl_verify_bb_layout): Ditto.
5158 (rtl_verify_flow_info_1): Outline checks into new functions.
5159 (rtl_verify_flow_info): Ditto.
5160
f14540b6
SE
51612013-05-16 Steve Ellcey <sellcey@imgtec.com>
5162
5163 * cfghooks.c (copy_bbs): Add update_dominance argument.
5164 * cfghooks.h (copy_bbs): Update prototype.
5165 * tree-cfg.c (gimple_duplicate_sese_region):
5166 Add update_dominance argument.
5167 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5168 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5169 gimple_duplicate_sese_region call.
5170 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5171 Update copy_bbs call.
5172 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5173 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5174
7e9a3abb
JJ
51752013-05-16 Jakub Jelinek <jakub@redhat.com>
5176
5177 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5178 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5179 vect_recog_rotate_pattern.
5180 (vect_recog_rotate_pattern): New function.
5181
427b248d
JM
51822013-05-16 Jason Merrill <jason@redhat.com>
5183
5184 * Makefile.in (LLINKER): New variable.
5185 (mostlyclean): Remove link mutex.
5186 * configure.ac: Handle --enable-link-mutex.
5187 * lock-and-run.sh: New script.
5188
b871e3d2
RR
51892013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5190
5191 PR target/19599
5192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5193 for NULL decl.
5194
ce858126
RO
51952013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5196
5197 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5198
798d3d04
GY
51992013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5200
5201 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5202 * config/arm/arm.c (next_consecutive_mem): New function.
5203 (gen_movmem_ldrd_strd): Likewise.
5204 * config/arm/arm.md (movmemqi): Update condition and code.
5205 (unaligned_loaddi, unaligned_storedi): New patterns.
5206
0baddc45
RO
52072013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5208
5209 * config.gcc: Obsolete *-*-solaris2.9*.
5210 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5211
aa9d5bcf
RB
52122013-05-16 Richard Biener <rguenther@suse.de>
5213
5214 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5215 earlier, after GRAPHITE transforms and IV canonicalization.
5216
5a0f4dd3
JJ
52172013-05-16 Jakub Jelinek <jakub@redhat.com>
5218
5219 * omp-low.c (extract_omp_for_data): For collapsed loops,
5220 if at least one of the loops is known at compile time to
5221 iterate zero times, set count to 0.
5222 (expand_omp_regimplify_p): New function.
5223 (expand_omp_for_generic): For collapsed loops, if at least
5224 one of the loops isn't known to iterate at least once,
5225 add runtime check with setting count to 0.
5226 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5227 For unsigned types if it isn't known at compile time that
5228 the loop will iterate at least once, add runtime check to bypass
5229 the whole loop if initial condition isn't true.
5230
e3753785
NS
52312013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5232
5233 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5234
43bb4dd1
MG
52352013-05-16 Marc Glisse <marc.glisse@inria.fr>
5236
5237 PR middle-end/57286
5238 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5239 transformations to avoid an infinite loop.
5240
3571dde6
MP
52412013-05-16 Marek Polacek <polacek@redhat.com>
5242
5243 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5244
b8b3f0ca
LE
52452013-05-15 Leif Ekblad <leif@rdos.net>
5246
5247 * config/i386/i386.c (ix86_decompose_address): Use
5248 DEFAULT_TLS_SEG_REG to access TLS segment register.
5249 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5250 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5251 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5252
e299a383
RS
52532013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5254
5255 PR target/57260
5256 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5257 sibling calls to functions that would normally be lazily bound,
5258 unless $gp is call-clobbered.
5259
e7208ea3
UB
52602013-05-15 Uros Bizjak <ubizjak@gmail.com>
5261
19db293a 5262 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 5263 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
5264 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5265 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
5266 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5267 of TARGET_3DNOW.
5268 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5269
e7413f3d
AS
52702013-05-15 Andreas Schwab <schwab@suse.de>
5271
5272 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5273 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5274 third operand.
5275
ad4db775
TJ
52762013-05-15 Teresa Johnson <tejohnson@google.com>
5277
5278 * loop-unroll.c (report_unroll_peel): Check decision before
5279 emitting unroll/peel message.
5280
af205f67
TJ
52812013-05-15 Teresa Johnson <tejohnson@google.com>
5282
5283 * function.h (has_bb_partition): New rtl_data flag.
5284 (bb_reorder_complete): Ditto.
5285 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5286 instead of flag_reorder_blocks_and_partition.
5287 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5288 with some enhancements.
5289 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5290 * bb-reorder.c (connect_traces): Check for has_bb_partition
5291 instead of flag_reorder_blocks_and_partition.
5292 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5293 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5294 verify_hot_cold_block_grouping.
5295 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5296
9adcfa3c
RR
52972013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5298
5299 PR target/19599
5300 * config/arm/predicates.md (call_insn_operand): New predicate.
5301 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5302 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5303 if insn is not a tail call.
5304 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5305 registers.
5306 * config/arm/arm.h (enum reg_class): New caller save register class.
5307 (REG_CLASS_NAMES): Likewise.
5308 (REG_CLASS_CONTENTS): Likewise.
5309 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5310 without decls.
5311
ccb3ad87
RB
53122013-05-15 Richard Biener <rguenther@suse.de>
5313
5314 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5315 of MSG_OPTIMIZED_LOCATIONS.
5316 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5317 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5318 message.
5319 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5320 of MSG_OPTIMIZED_LOCATIONS.
5321 (execute_vect_slp): Likewise.
5322 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5323 (vect_create_cond_for_alias_checks): Likewise.
5324 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5325 (vect_recog_widen_mult_pattern): Likewise.
5326 (vect_recog_widen_sum_pattern): Likewise.
5327 (vect_recog_over_widening_pattern): Likewise.
5328 (vect_recog_widen_shift_pattern): Likewise.
5329 (vect_recog_vector_vector_shift_pattern): Likewise.
5330 (vect_recog_divmod_pattern): Likewise.
5331 (vect_recog_mixed_size_cond_pattern): Likewise.
5332 (vect_recog_bool_pattern): Likewise.
5333 (vect_pattern_recog_1): Likewise.
5334
48b1474e
MJ
53352013-05-15 Martin Jambor <mjambor@suse.cz>
5336
5337 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5338 non-functions to builtin_unreachable.
5339 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5340 correct when new direct edges were discovered.
5341
9de04252
MJ
53422013-05-15 Martin Jambor <mjambor@suse.cz>
5343
5344 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5345 header, print symbol order instead of node uid, print more information
5346 about indirect edge targets.
5347 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5348 uids.
5349 (ipa_make_edge_direct_to_target): Likewise.
5350 (remove_described_reference): Likewise.
5351 (propagate_controlled_uses): Likewise.
5352 (ipa_print_node_params): Also print symbol order.
5353 (ipcp_transform_function): Print symbol order instead of node uids.
5354 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5355 (cgraph_get_create_real_symbol_node): Likewise.
5356 * ipa-cp.c (print_lattice): Likewise.
5357 (print_all_lattices): Likewise.
5358 (determine_versionability): Likewise.
5359 (initialize_node_lattices): Likewise.
5360 (estimate_local_effects): Likewise.
5361 (update_profiling_info): Likewise.
5362 (create_specialized_node): Likewise.
5363 (perhaps_add_new_callers): Likewise.
5364 (decide_about_value): Likewise.
5365 (decide_whether_version_node): Likewise.
5366 (identify_dead_nodes): Likewise.
5367 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5368 (dump_inline_summary): Likewise.
5369 (estimate_node_size_and_time): Likewise.
5370 (inline_analyze_function): Likewise.
5371 * ipa-inline.c (report_inline_failed_reason): Likewise.
5372 (want_early_inline_function_p): Likewise.
5373 (edge_badness): Likewise.
5374 (update_edge_key): Likewise.
5375 (inline_small_functions): Likewise. Add dumping of order to two other
5376 dumps.
5377 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5378 instead of node uids.
5379 (propagate_pure_const): Likewise.
5380 (propagate_pure_const): Likewise.
5381 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5382 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5383 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5384 of node uids.
5385 * tree-pretty-print.c (dump_function_header): Likewise.
5386 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5387 Print symbol order instead of node uids.
5388
1dd03b91
AK
53892013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5390
5391 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5392 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5393
fdf6a7b9
RB
53942013-05-15 Richard Biener <rguenther@suse.de>
5395
5396 PR tree-optimization/57275
5397 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5398 return value for fail to do runtime alias checks for gather loads.
5399
2d6e4603
JH
54002013-05-15 Jan Hubicka <jh@suse.cz>
5401
5402 PR lto/57038
5403 PR lto/47375
e7208ea3
UB
5404 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5405 weakrefs are not external.
5406 (lto_symtab_merge_decls): Fix thinko when dealing with
5407 non-lto_symtab decls.
2d6e4603
JH
5408 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5409 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5410 * varpool.c (dump_varpool_node): Dump more flags.
5411
83f44b39
GG
54122013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5413
5414 * config/i386/i386.c (processor_alias_table): Add instruction
5415 FSGSBASE for AMD bdver3 architecture.
5416
2e55d062
JJ
54172013-05-14 Jakub Jelinek <jakub@redhat.com>
5418
5419 * tree.c (warn_deprecated_use): Print file:line using locus color.
5420 * diagnostic.c (diagnostic_report_current_module): Print file:line
5421 and file:line:column using locus color.
5422
0bfdb81e
MS
54232013-05-14 Mike Stump <mikestump@comcast.net>
5424
5425 * gdbinit.in: Add __null.
5426
a508ef22
MS
54272013-05-14 Mike Stump <mikestump@comcast.net>
5428
5429 * recog.h: Rename struct recog_data to Recog_data.
5430 * recog.c: Likewise.
5431 * reload.c (can_reload_into): Likewise.
5432 * config/picochip/picochip.c: Likewise.
5433
e7180acb
MS
54342013-05-14 Mike Stump <mikestump@comcast.net>
5435
5436 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5437
61216c26
SB
54382013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5439
fd6beed4
SB
5440 * resource.h (struct resources): Remove unch_memory member.
5441 (CLEAR_RESOURCE): Don't clear unch_memory.
5442 * resource.c (mark_referenced_resources): Don't set it.
5443 (mark_set_resources): Likewise.
5444 (mark_target_live_regs): Don't clear it.
5445 (init_resource_info): Likewise.
5446 * reorg.c (resource_conflicts_p): Don't compare it.
5447 (redundant_insn): Don't set it.
5448
61216c26
SB
5449 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5450 Remove prototypes.
5451 * emit-rtl.c (next_label): Remove unused function.
5452 (skip_consecutive_labels, link_cc0_insns): Move to ...
5453 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5454 only place where these functions are used, and make them static.
5455
418d1b87
MG
54562013-05-14 Marc Glisse <marc.glisse@inria.fr>
5457
5458 * fold-const.c (fold_negate_expr): Handle vectors.
5459 (fold_truth_not_expr): Make it static.
5460 (fold_invert_truthvalue): New static function.
5461 (invert_truthvalue_loc): Handle vectors. Do not call
5462 fold_truth_not_expr directly.
5463 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5464 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5465 (fold_comparison): Handle vector constants.
5466 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5467 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5468 * tree.h (fold_truth_not_expr): Remove declaration.
5469
fc21784d
JG
54702013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5471
5472 * config/aarch64/aarch64-simd.md
5473 (aarch64_vcond_internal<mode>): Rename to...
5474 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5475 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5476 float modes. Clarify all iterator modes.
5477 (vcond<mode><mode>): Use new name for vcond expanders.
5478 (vcond<v_cmp_result><mode>): Likewise.
5479 (vcondu<mode><mode>: Likewise.
5480 * config/aarch64/iterators.md (VDQF_COND): New.
5481
d4c52634
MG
54822013-05-14 Marc Glisse <marc.glisse@inria.fr>
5483
5484 PR bootstrap/57266
5485 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5486 variable for the shift amount. Check that we shift by non-negative
5487 amounts.
5488
2b261262
CLT
54892013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5490
5491 PR target/42017
5492 * config/arm/arm.h (EPILOGUE_USES): Only return true
5493 for LR_REGNUM after epilogue_completed.
5494
6e022d7b
JR
54952013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5496
5497 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 5498 is error_mark_node.
6e022d7b 5499
56cf7859
RO
55002013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5501
5502 PR target/57261
5503 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5504 and Solaris 11+/x86 with gld.
5505 * configure: Regenerate.
5506
75776c6d
JJ
55072013-05-14 Jakub Jelinek <jakub@redhat.com>
5508
5509 * expmed.c (expand_shift_1): Canonicalize rotates by
5510 constant bitsize / 2 to bitsize - 1.
7f998021 5511 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
5512 case ROTATERT>: Likewise.
5513
5514 Revert:
5515 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5516
5517 * config/i386/i386.md (rotateinv): New code attr.
5518 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5519 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5520 roll $31, %eax, etc.
5521
df35498a
RB
55222013-05-14 Richard Biener <rguenther@suse.de>
5523
5524 PR middle-end/57235
5525 * tree-eh.c (sink_clobbers): Give up for successors with
5526 multiple predecessors and no virtual uses.
5527
cc6e7ece
EB
55282013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5529
5530 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5531 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5532
f778dd4d
JJ
55332013-05-14 Jakub Jelinek <jakub@redhat.com>
5534
5535 PR middle-end/57251
5536 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5537 the case when both op0 and op1 have VOIDmode.
5538
bad4df9b
KP
55392013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5540
5541 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5542 in multiply-accumulate mode.
5543
56f3e9ac
GW
55442013-05-13 Guozhi Wei <carrot@google.com>
5545
5546 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5547
a3d7ab92
KT
55482013-05-13 Kai Tietz <ktietz@redhat.com>
5549
5550 PR target/56975
5551 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 5552 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 5553 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 5554 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
5555 (ix86_expand_prologue): Likewise.
5556 (ix86_expand_split_stack_prologue): Likewise.
5557 (legitimate_pic_address_disp_p): Likewise.
5558 (legitimize_pic_address): Likewise.
5559 (legitimize_tls_address): Likewise.
5560 (legitimize_pe_coff_symbol): Likewise.
5561 (output_pic_addr_const): Likewise.
5562 (construct_plt_address): Likewise.
5563 (ix86_expand_call): Likewise.
5564 (x86_output_mi_thunk): Likewise.
5565 (x86_function_profiler): Likewise.
5566
c59b7e28
SN
55672013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5568
5569 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5570 similar switch cases.
5571 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5572 (aarch64_simd_mov_to_<mode>low): Delete.
5573 (aarch64_simd_mov_to_<mode>high): Delete.
5574 (move_lo_quad_<mode>): Add w<-r alternative.
5575 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5576 (aarch64_simd_mov_from_*): Update type attribute.
5577 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5578 statement.
5579
5f28524a
JH
55802013-05-13 Jan Hubicka <jh@suse.cz>
5581
5582 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5583 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
5584 ix86_expand_epilogue, emit_i387_cw_initialization,
5585 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5586 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 5587
ae6fa899
JJ
55882013-05-13 Jakub Jelinek <jakub@redhat.com>
5589
5590 PR tree-optimization/45216
5591 PR tree-optimization/57157
5592 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5593 the (-Y) & (B - 1) variant if OP is |.
5594 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5595 return shifted. Use (-op1) & (prec - 1) as other_amount
5596 instead of prec - op1.
5597
4502fe8d
MJ
55982013-05-13 Martin Jambor <mjambor@suse.cz>
5599
5600 PR middle-end/42371
5601 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5602 (ipa_constant_data): New type.
5603 (ipa_jump_func): Use ipa_constant_data to hold information about
5604 constant jump functions.
5605 (ipa_get_jf_constant): Adjust to jump function type changes.
5606 (ipa_get_jf_constant_rdesc): New function.
5607 (ipa_param_descriptor): New field controlled_uses.
5608 (ipa_get_controlled_uses): New function.
5609 (ipa_set_controlled_uses): Likewise.
5610 * ipa-ref.h (ipa_find_reference): Declare.
5611 * ipa-prop.c (ipa_cst_ref_desc): New type.
5612 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5613 changes.
5614 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5615 New parameter cs. Adjust all callers.
5616 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5617 (remove_described_reference): New function.
5618 (jfunc_rdesc_usable): Likewise.
5619 (try_make_edge_direct_simple_call): Decrement controlled use count,
5620 attempt to remove reference if it hits zero.
5621 (combine_controlled_uses_counters): New function.
5622 (propagate_controlled_uses): Likewise.
5623 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5624 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5625 (ipa_print_node_params): Print described use counter.
5626 (ipa_write_jump_function): Adjust to jump function type changes.
5627 (ipa_read_jump_function): New parameter CS, pass it to
5628 ipa_set_jf_constant. Adjust caller.
5629 (ipa_write_node_info): Stream controlled use count
5630 (ipa_read_node_info): Likewise.
5631 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5632 asserting.
5633 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5634 count. Remove cloning-added reference if it reaches zero.
5635 * ipa-ref.c (ipa_find_reference): New function.
5636
0864bfc2
GG
56372013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5638
e7208ea3 5639 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
5640 alignment values for AMD BD and BT architectures.
5641
640bfeb2
MG
56422013-05-13 Marc Glisse <marc.glisse@inria.fr>
5643
5644 * tree-vect-generic.c (uniform_vector_p): Move ...
5645 * tree.c (uniform_vector_p): ... here.
5646 * tree.h (uniform_vector_p): Declare it.
5647 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5648 into a scalar.
5649
3a60f32b
JJ
56502013-05-13 Jakub Jelinek <jakub@redhat.com>
5651
198fe1bf
JJ
5652 PR tree-optimization/57230
5653 * tree-ssa-strlen.c (handle_char_store): Record length for
5654 array store from STRING_CST.
5655
3a60f32b
JJ
5656 PR tree-optimization/57230
5657 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5658 check.
5659
566be57c
JR
56602013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5661
5662 * config/epiphany/epiphany.c (epiphany_init): Check size of
5663 NUM_MODES_FOR_MODE_SWITCHING.
5664 (epiphany_expand_prologue):
5665 Remove CONFIG_REGNUM initial value handling code.
5666 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5667 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 5668 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
5669 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5670 Don't return 1 for FP_MODE_NONE.
5671 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5672 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5673 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5674 * config/epiphany/epiphany.md (save_config): New pattern.
5675
0f2c2331
UB
56762013-05-12 Uros Bizjak <ubizjak@gmail.com>
5677
5678 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5679
5b3f93c7
UB
56802013-05-10 Uros Bizjak <ubizjak@gmail.com>
5681
5682 * config/i386/i386.md (memory): Handle sseishft1.
5683 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5684 (*vec_extractv2di_1): Ditto.
5685
1f873f0e
VM
56862013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5687
5688 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5689 saved registers.
5690
341427fa 56912013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
5692
5693 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5694 Add mthumb/march=armv7-a multilib.
5695 Add mthumb/march=armv7-r multilib.
5696 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5697
9e69bdde
RC
56982013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5699
5700 * config/v850/t-rtems: Add more multilibs.
5701
9ff09a22
RB
57022013-05-10 Richard Biener <rguenther@suse.de>
5703
5704 PR tree-optimization/57214
5705 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5706 not propagate from SSA names that occur in abnormal PHI nodes.
5707
a5e0cd1d
MG
57082013-05-10 Marc Glisse <marc.glisse@inria.fr>
5709
5710 * stor-layout.c (element_precision): New function.
5711 * machmode.h (element_precision): Declare it.
5712 * tree.c (build_minus_one_cst): New function.
5713 (element_precision): Likewise.
5714 * tree.h (build_minus_one_cst): Declare new function.
5715 (element_precision): Likewise.
5716 * fold-const.c (operand_equal_p): Use element_precision.
5717 (fold_binary_loc): Handle vector types.
5718 * convert.c (convert_to_integer): Use element_precision.
5719 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5720 separately.
5721
cb2558bc
RS
57222013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5723
5724 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5725 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5726 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5727 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5728 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5729 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5730 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5731 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5732 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5733 (Uuw8): New constraints.
5734 (Usb4): Move into alphabetical order.
5735 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5736 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5737 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5738 previously unnamed patterns.
5739 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5740 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5741 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5742 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5743 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5744 of specific lengths.
5745
cb3b8d33
JJ
57462013-05-10 Jakub Jelinek <jakub@redhat.com>
5747
6f93c008
JJ
5748 * config/i386/i386.md (rotateinv): New code attr.
5749 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5750 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5751 roll $31, %eax, etc.
5752
cb3b8d33
JJ
5753 PR tree-optimization/45216
5754 PR tree-optimization/57157
5755 * tree-ssa-forwprop.c (simplify_rotate): New function.
5756 (ssa_forward_propagate_and_combine): Call it.
5757
afb119be
RB
57582013-05-10 Richard Biener <rguenther@suse.de>
5759
5760 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5761 disable peeling when we version for aliasing.
5762 (vector_alignment_reachable_p): Honor explicit user alignment.
5763 (vect_supportable_dr_alignment): Likewise.
5764 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5765 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5766 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5767 then peeling to arrange for the cost-model check to come first.
5768
01ae4861
AM
57692013-05-10 Alan Modra <amodra@gmail.com>
5770
5771 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5772 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5773 * configure: Regenerate.
5774
ebc9a431
AM
57752013-05-10 Alan Modra <amodra@gmail.com>
5776
5777 PR target/55033
5778 * varasm.c (default_elf_select_section): Move !DECL_P check..
5779 (get_named_section): ..to here before calling get_section_name.
5780 Adjust assertion.
5781 (default_section_type_flags): Add DECL_P check.
5782 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5783 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5784
d4bca93c
JR
57852013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5786
5787 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5788 When using gen_stack_adjust_str with a register offset, add a
5789 REG_FRAME_RELATED_EXPR note.
5790
60ca9a65
UB
57912013-05-09 Uros Bizjak <ubizjak@gmail.com>
5792
5793 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5794 (*vec_extractv4si_zext_mem): Ditto.
5795 (*vec_extractv2di): Add 0->x and x->x alternatives.
5796 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5797 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5798
a3409c02
JM
57992013-05-09 Jason Merrill <jason@redhat.com>
5800
0138d6b2
JM
5801 N3639 C++1y VLA support
5802 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5803 DECL_VALUE_EXPR.
5804
a3409c02
JM
5805 * tree.c (build_constructor_va): New.
5806 * tree.h: Declare it.
5807
66e6b990
MJ
58082013-05-09 Martin Jambor <mjambor@suse.cz>
5809
5810 PR lto/57084
5811 * gimple-fold.c (canonicalize_constructor_val): Call
5812 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5813
64cfa6c0
JH
58142013-05-09 Jan Hubicka <jh@suse.cz>
5815 Richard Biener <rguenther@suse.de>
5816
5817 PR lto/54095
5818 * symtab.c (symtab_make_decl_local): Do not add private names.
5819
c3167b00
JH
58202013-05-09 Jan Hubicka <jh@suse.cz>
5821
5822 PR lto/54095
5823 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5824 (unlink_from_assembler_name_hash): Likewise.
5825 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5826 symtab_unregister_node, symtab_initialize_asm_name_hash,
5827 change_decl_assembler_name): Update.
5828
12dc6974
SN
58292013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5830
5831 * config/aarch64/aarch64.md: New movtf split.
5832 (*movtf_aarch64): Update.
5833 (aarch64_movdi_tilow): Handle TF modes and rename to
5834 aarch64_movdi_<mode>low.
5835 (aarch64_movdi_tihigh): Handle TF modes and rename to
5836 aarch64_movdi_<mode>high
5837 (aarch64_movtihigh_di): Handle TF modes and rename to
5838 aarch64_mov<mode>high_di
5839 (aarch64_movtilow_di): Handle TF modes and rename to
5840 aarch64_mov<mode>low_di
5841 (aarch64_movtilow_tilow): Remove spurious whitespace.
5842 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5843 splits.
5844 (aarch64_print_operand): Update.
5845
227eb343
AM
58462013-05-09 Alan Modra <amodra@gmail.com>
5847
5848 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5849 powerpc64le.
5850 * configure: Regenerate.
5851
0b013847
UB
58522013-05-08 Uros Bizjak <ubizjak@gmail.com>
5853
5854 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5855 splitter preparation statements.
5856 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5857 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5858 adjust_address_nv.
5859
1dc3d6e9
BS
58602013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5861
5862 * gimple-ssa-strength-reduction.c (count_candidates): Change
5863 return value to int.
5864 (analyze_candidates_and_replace): Change type of length to int.
5865
e61e7d28
UB
58662013-05-08 Uros Bizjak <ubizjak@gmail.com>
5867
5868 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5869 (*vec_extract<mode>): Use VI12_128 mode iterator.
5870 (*vec_extract<mode>_mem): Ditto.
5871 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5872 attribute.
5873
4fbfcf44
DN
58742013-05-08 Diego Novillo <dnovillo@google.com>
5875
5876 PR bootstrap/54659
5877
5878 Revert:
4fbfcf44
DN
5879 2012-08-17 Diego Novillo <dnovillo@google.com>
5880
e61e7d28
UB
5881 PR bootstrap/54281
5882 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5883 * config.in: Regenerate.
5884 * configure: Regenerate.
5885 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 5886
702d8703
JH
58872013-05-08 Jan Hubicka <jh@suse.cz>
5888
5889 PR lto/54095
5890 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5891 * cgraph.h (symtab_node_base): Add unique_name.
5892 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5893 input_overwrite_node, input_varpool_node): Stream unique_name.
5894 * cgraphclones.c (cgraph_create_virtual_clone,
5895 cgraph_function_versioning): Set unique_name.
5896 * ipa.c (function_and_variable_visibility): Set unique_name.
5897
8b28cf47
BS
58982013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5899
5900 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5901 (alloc_cand_and_find_basis): Restrict conditional candidate
5902 processing to CAND_MULTs.
5903
e86074fd
JH
59042013-05-08 Jan Hubicka <jh@suse.cz>
5905
5906 PR lto/54095
5907 lto-symtab.c (lto_symtab_symbol_p): New function.
5908 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5909 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5910 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5911 Skip static symbols.
5912
44398cbe
PC
59132013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5914
5915 PR tree-optimization/57200
5916 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5917 Only call inform if the preceding warning_at returns true.
5918
f6bc1c4a
HS
59192013-05-07 Han Shen <shenhan@google.com>
5920
5921 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5922 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5923 * common.opt (fstack-protector-strong): New option.
5924 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5925 * doc/invoke.texi (Optimization Options): Document
5926 "-fstack-protector-strong".
5927 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5928
4ffecb1f
SB
59292013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5930
5931 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5932
5a107a0f
VM
59332013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5934
5935 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5936 it is not lhs of the insn.
5937 (setup_reg_equiv): Remove insn having equiv memory which it is not
5938 lhs of the insn.
5939 * lra-constraints.c (process_address): Try to improve generation
5940 code for address base + disp.
5941 (lra_constraints): Make correct the code for checking insn setting
5942 up backward equivalence. Remove insn only if it is in the init
5943 insn list.
5944 * lra-eliminations.c (update_reg_eliminate): Change return value.
5945 (lra_eliminate): Use the result.
5946
3f5783ea
UB
59472013-05-07 Uros Bizjak <ubizjak@gmail.com>
5948
5949 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5950 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5951 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5952 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5953 register target operands.
5954 (*vec_extractv8hi_sse2): New pattern.
5955 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5956 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5957 (*vec_extract<mode>_mem): New insn and split pattern.
5958
8a5800b8
CL
59592013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5960
5961 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5962 (TARGET_ASAN_SHADOW_OFFSET): Define.
5963 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5964 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5965
7bf55a70
BS
59662013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5967
5968 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5969 (incr_vec_index): Return -1 if increment not found.
5970 (create_add_on_incoming_edge): Assert if increment not found.
5971 (record_increment): Limit number of increments recorded.
5972 (all_phi_incrs_profitable): Return false if an increment not found.
5973 (replace_profitable_candidates): Don't process increments that were
5974 not recorded.
5975 (analyze_candidates_and_replace): Limit size of incr_vec.
5976
3f8825c0
RB
59772013-05-07 Richard Biener <rguenther@suse.de>
5978
5979 * calls.c (special_function_p): setjmp-like functions are leaf.
5980 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5981 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5982
fd4842cd
SN
59832013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5984
5985 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5986 (aarch64_simd_mov<mode>): New expander.
5987 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5988 (aarch64_simd_mov_to_<mode>high): Likewise.
5989 (aarch64_simd_mov_from_<mode>low): Likewise.
5990 (aarch64_simd_mov_from_<mode>high): Likewise.
5991 (aarch64_dup_lane<mode>): Update.
5992 (aarch64_dup_lanedi): New instruction pattern.
5993 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5994 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5995
a7a7d10e
BS
59962013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5997
5998 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5999 (replace_mult_candidate): Remove unnecessary argument; remove
6000 unnecessary parameter from call to introduce_cast_before_cand.
6001 (replace_unconditional_candidate): Remove unnecessary parameter
6002 from call to replace_mult_candidate.
6003 (replace_conditional_candidate): Likewise.
6004 (insert_initializers): Use make_temp_ssa_name.
6005 (introduce_cast_before_cand): Remove unnecessary argument; use
6006 make_temp_ssa_name.
6007 (replace_one_candidate): Remove unnecessary argument; remove
6008 unnecessary parameter from calls to introduce_cast_before_cand.
6009 (replace_profitable_candidates): Remove unnecessary parameters
6010 from calls to replace_one_candidate.
6011
29105868
BS
60122013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6013
6014 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6015 phi def as possibly hiding a basis for a CAND_ADD whose operands
6016 have been commuted in the analysis.
6017 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6018
4095f9fa
N
60192013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6020
6021 * config/aarch64/aarch64.md
6022 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6023 shift value between 0-4.
6024
39e843e8
RB
60252013-05-07 Richard Biener <rguenther@suse.de>
6026
6027 * double-int.h (rshift): New overload.
6028 * double-int.c (rshift): New function.
6029 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6030 (create_reference_ops_from_ref): Remove.
6031 (vn_reference_insert): Use shared ops for constructing the
6032 reference and copy it.
6033
0a1a83cb
RB
60342013-05-07 Richard Biener <rguenther@suse.de>
6035
6036 PR middle-end/57190
6037 * tree-eh.c (sink_clobbers): Properly propagate
6038 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6039
43303d6f
JJ
60402013-05-07 Jakub Jelinek <jakub@redhat.com>
6041
ba7e83f8
JJ
6042 PR tree-optimization/57149
6043 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6044 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6045 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6046 uninit_undefined_value_p instead of ssa_undefined_value_p.
6047
43303d6f
JJ
6048 PR debug/57184
6049 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6050 for modifier == EXPAND_INITIALIZER.
6051
14523c25
AB
60522013-05-07 Anton Blanchard <anton@samba.org>
6053
6054 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6055 for powerpc64 little endian.
6056 * configure: Regenerate.
6057
cb7c8be9
GS
60582013-05-06 Graham Stott <grahams@btinternet.com>
6059
6060 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6061 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6062 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6063 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6064
60652013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
6066
6067 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6068 codes which allow non-lvalues.
6069
9a0ee7b0
MG
60702013-05-06 Marc Glisse <marc.glisse@inria.fr>
6071
6072 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6073 components are all 1s.
6074 (integer_minus_onep): New function.
6075 * tree.h (integer_minus_onep): Declare it.
6076 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6077 integer_minus_onep instead of integer_all_onesp.
6078
f2c17ea9
OE
60792013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6080
6081 PR target/52933
6082 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6083 variations of these patterns.
6084
f75e6a51
UB
60852013-05-06 Uros Bizjak <ubizjak@gmail.com>
6086
6087 * config/i386/i386.md (isa): Add x64_sse4 member.
6088 (enabled): Handle x64_sse4.
6089 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6090 instruction for 64bit SSE4_1 targets. Update insn attributes.
6091 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6092 instruction for SSE4_1 targets. Update insn attributes.
6093 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6094 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6095 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6096 const_1 selector.
6097 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6098 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6099 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6100
a986d468
OE
61012013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6102
6103 PR target/57108
6104 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6105
382522cb
MK
61062013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6107
6108 * final.c (do_assembler_dialects): Don't handle curly braces and
6109 vertical bar escaped by % as dialect delimiters.
6110 (output_asm_insn): Print curly braces and vertical bar if escaped
6111 by % and ASSEMBLER_DIALECT defined.
6112 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6113 * doc/tm.texi: Regenerated.
6114
fb0d5c60
SB
61152013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6116
fb0d5c60
SB
6117 * config/mips/mips.c: Include tree-pass.h.
6118 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6119 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6120 (pass_mips_machine_reorg2): New machine specific pass.
6121 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6122 (mips_option_override): Register the new pass.
6123 * rtl.h (cleanup_barriers): Remove prototype.
6124 (dbr_schedule): Likewise.
6125 * jump.c (cleanup_barriers): Make static.
6126 * reorg.c (dbr_schedule): Likewise.
6127
aa06a978
RB
61282013-05-06 Richard Biener <rguenther@suse.de>
6129
6130 PR tree-optimization/57185
6131 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6132 SSA names properly.
6133
0b953bec
UB
61342013-05-06 Uros Bizjak <ubizjak@gmail.com>
6135
6136 PR target/57106
6137 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6138 between "first_arg" and "insn", not "last" and "insn".
6139
28708525
WS
61402013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6141
6142 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6143 (find_candidates_in_block): Re-enable slsr_process_phi.
6144 (create_phi_basis): Fix double counting of candidate adjustment.
6145
0107dca2
RB
61462013-05-06 Richard Biener <rguenther@suse.de>
6147
6148 PR middle-end/57147
6149 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6150 the edge is also fallthru, preserve it and just clear the
6151 abnormal flag.
6152 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6153 also complex, preserve that and just clear the fallthru flag.
6154 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6155 update virtual operands.
6156
470d4d13
AM
61572013-05-06 Alan Modra <amodra@gmail.com>
6158
6159 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6160 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6161 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6162 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6163 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6164 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6165
8f1dbf8d
AM
61662013-05-06 Alan Modra <amodra@gmail.com>
6167
6168 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6169 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6170 (DEFAULT_ASM_ENDIAN): Define.
6171 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6172 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6173 Update -K PIC clause from sysv4.h.
6174 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6175 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6176
54890767
AM
61772013-05-06 Alan Modra <amodra@gmail.com>
6178
6179 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6180 twice for little-endian.
6181 (ashrdi3_no_power, ashrdi3): Support little-endian.
6182
2353515d
OE
61832013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6184
6185 PR target/55303
6186 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6187 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6188 related expanders.
6189 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6190 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6191 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6192 New predicates.
6193
33e67557
SB
61942013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6195 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6196
6197 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6198 * config/pa/pa.opt: Make mbig-switch a no-op.
6199 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6200 (CASE_VECTOR_MODE): Always return SImode.
6201 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6202 for the !TARGET_BIG_SWITCH case.
6203 * config/pa/pa-linux.h: Likewise.
6204 * config/pa/pa-openbsd.h: Likewise.
6205 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6206 * config/pa/pa.md (short_jump): Remove define_insn.
6207 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6208 (casesi0): Remove define_insn.
6209 (type): Remove btable_branch.
6210 (pa_combine_type): Likewise.
6211 (in_nullified_branch_delay): Likewise.
6212 (in_call_delay): Likewise.
6213 (define_delay): Likewise.
6214 (define_insn_reservation "Z3"): Likewise.
6215 (define_insn_reservation "Z4"): Likewise.
6216 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6217 (pa_adjust_insn_length): Remove adjustment for btable branches.
6218 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6219 and mno-big-switch
6220
3095685e
UB
62212013-05-05 Uros Bizjak <ubizjak@gmail.com>
6222
6223 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6224 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6225 Add m->r,x alternatives.
6226 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6227 splitters using SWI48x mode iterator.
6228 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6229 TARGET_64BIT. Add m->x alternative.
6230 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6231 Add o->x alternative. Enable for TARGET_SSE.
6232 (sse_storeq): Remove expander.
6233 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6234 with memory input operand.
6235 (*vec_extractv2di_1 splitter): New.
6236 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6237 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6238
4b36ae28
SB
62392013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6240
6241 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6242 (INT_LOWPART): Delete.
6243 (extract_MB): Adjust.
6244 (extract_ME): Adjust.
6245 (print_operand): Adjust.
6246
da226db2
SB
62472013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6248
6249 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6250 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6251 (reg_or_logical_cint_operand, easy_fp_constant,
6252 logical_const_operand): Delete "CONST_DOUBLE" case.
6253 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6254 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 6255 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
6256 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6257 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6258 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6259 test.
6260 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6261 CONST_DOUBLE DImode/VOIDmode case.
6262 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6263 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6264 CONST_DOUBLE VOIDmode case.
6265 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6266 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6267 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6268 Delete CONST_DOUBLE case.
6269 (splitters for mov FMOVE64 const_double): Delete
6270 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6271 "HOST_BITS_PER_WIDE_INT >= 64" test.
6272 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6273 case.
6274 (mov DI const_double): Delete.
6275
40de22d6
JJ
62762013-05-04 Jakub Jelinek <jakub@redhat.com>
6277
6278 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6279 on op shows all bits zero in mode of a lowpart subreg, return zero.
6280
5ec6aff2
MM
62812013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6282
6283 PR target/57150
6284 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6285 to save TFmode registers and DImode to save TImode registers for
6286 caller save operations.
6287 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6288 mark being partially clobbered since they only use the first
6289 double word.
6290
6291 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6292 and TDmode only use the upper 64-bits of each VSX register.
6293
2cefad90
BS
62942013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6295
6296 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6297 (find_candidates_in_block): Disable slsr_process_phi.
6298
d6d7eee1
GW
62992013-05-03 Guozhi Wei <carrot@google.com>
6300
6301 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
6302 constructor to ...
6303 (build_init_ctor): ... here.
d6d7eee1 6304
9b92d12b
BS
63052013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6306
6307 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6308 (slsr_cand_d): Redefine def_phi.
6309 (stride_status, phi_adjust_status, count_phis_status): New enums.
6310 (find_phi_def): New.
6311 (find_basis_for_base_expr): New.
6312 (find_basis_for_candidate): Handle hidden bases.
6313 (alloc_cand_and_find_basis): Handle phi candidates.
6314 (slsr_process_phi): New.
6315 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6316 (create_mul_imm_cand): Likewise.
6317 (create_add_ssa_cand): Exclude phi base candidates.
6318 (create_add_imm_cand): Likewise.
6319 (slsr_process_cast): Likewise.
6320 (slsr_process_copy): Likewise.
6321 (find_candidates_in_block): Handle phi candidates.
6322 (dump_candidate): Likewise.
6323 (unconditional_cands): Delete.
6324 (unconditional_cands_with_known_stride_p): Delete.
6325 (phi_dependent_cand_p): New.
6326 (cand_increment): Handle phi-dependent candidates.
6327 (replace_dependent): Delete.
6328 (replace_mult_candidate): New.
6329 (replace_unconditional_candidate): New.
6330 (incr_vec_index): Move to avoid forward reference.
6331 (create_add_on_incoming_edge): New.
6332 (create_phi_basis): New.
6333 (replace_dependents): Delete.
6334 (replace_conditional_candidate): New.
6335 (phi_add_costs): New.
6336 (replace_uncond_cands_and_profitable_phis): New.
6337 (record_increment): Handle phi adjustments.
6338 (record_phi_increments): New.
6339 (record_increments): Handle phi adjustments.
6340 (phi_incr_cost): New.
6341 (lowest_cost_path): Handle phis.
6342 (total_savings): Likewise.
6343 (analyze_increments): Likewise.
6344 (ncd_with_phi): New.
6345 (ncd_of_cand_and_phis): New.
6346 (nearest_common_dominator_for_cands): Handle phi increments.
6347 (all_phi_incrs_profitable): New.
6348 (replace_profitable_candidates): Handle phi-dependent candidates.
6349 (analyze_candidates_and_replace): Likewise.
6350
68f073d4
TJ
63512013-05-03 Teresa Johnson <tejohnson@google.com>
6352
6353 PR bootstrap/57154
6354 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6355 do not exceed REG_BR_PROB_BASE.
6356
a4ee7cb9
JL
63572013-05-03 Jeff Law <law@redhat.com>
6358
ade67f70 6359 PR tree-optimization/57144
a4ee7cb9
JL
6360 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6361 operand of the condition will bit into the new type when eliminating
6362 a cast feeding a condition.
6363
47954c4e
JJ
63642013-05-03 Jakub Jelinek <jakub@redhat.com>
6365
6366 PR rtl-optimization/57130
3095685e
UB
6367 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6368 of COMPARE as in_code to the recursive call if needed.
47954c4e 6369
3c21604f
UB
63702013-05-03 Uros Bizjak <ubizjak@gmail.com>
6371
6372 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6373 (enabled): Handle new members.
6374 * config/i386/sse.md (*vec_concatv2si): Merge from
6375 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6376 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6377
95c03b36
JR
63782013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6379
6380 PR tree-optimization/57027
6381 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6382 for fnms opportunity, check we got the prerequisite kind
6383 of tree / gimple before using accessor functions.
6384
07bfc9ec
RB
63852013-05-03 Richard Biener <rguenther@suse.de>
6386
6387 * double-int.h (lshift): New overload without precision
6388 and arith argument.
6389 (operator *=, operator +=, operator -=): Move ...
6390 * double-int.c (operator *=, operator +=, operator -=): ... here
6391 and implement more efficiently.
6392 (mul_double_with_sign): Remove.
6393 (lshift_double): Adjust to take unsinged shift argument, push
6394 dispatching code to callers.
6395 (mul_double_wide_with_sign): Add early out for callers that
6396 are not interested in high parts or overflow.
6397 (lshift): New function.
6398 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6399 dispatch code here.
6400 (lrotate, rrotate): Use logical shifts.
6401 * expr.c (get_inner_reference): Use lshift.
6402 * fixed-value.c (do_fixed_divide): Likewise.
6403 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6404 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6405 (indirect_refs_may_alias_p): Likewise.
6406 (stmt_kills_ref_p_1): Likewise.
6407
7769bb64
VP
64082013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6409
6410 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6411
1d0c8e5c
VP
64122013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6413
6414 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6415 scalar form of FABD instruction.
6416
f15feaf9
VM
64172013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6418
6419 * lra-constraints.c (process_alt_operands): Add checking alt
6420 number to choose the best alternative.
6421
d90e76d4
RB
64222013-05-02 Richard Biener <rguenther@suse.de>
6423
6424 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6425 bitmap and its handling.
6426 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6427
9f8e7a96
RB
64282013-05-02 Richard Biener <rguenther@suse.de>
6429
6430 PR middle-end/57140
6431 * tree-inline.c (copy_loops): Properly handle removed loops.
6432 (copy_cfg_body): Mark destination loops for fixup if source
6433 loops needed fixup.
6434
f3a81b39
GY
64352013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6436
6437 PR target/56732
6438 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6439 generating simple_return for naked functions.
6440
7b920a9a
MJ
64412013-05-02 Martin Jambor <mjambor@suse.cz>
6442
6443 PR middle-end/56988
6444 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6445 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6446 flags match.
6447 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6448 ipa_agg_replacement_value structures.
6449 (known_aggs_to_agg_replacement_list): Likewise.
6450 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6451 (read_agg_replacement_chain): Likewise.
6452 (ipcp_transform_function): Also check that by_ref flags match.
6453
2c41c19d
RB
64542013-05-02 Richard Biener <rguenther@suse.de>
6455
6456 * graphds.h (struct graph): Add obstack member.
6457 * graphds.c (new_graph): Initialize obstack and allocate
6458 vertices from it.
6459 (add_edge): Allocate edge from the obstack.
3c21604f 6460 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 6461
8b47039c
TJ
64622013-05-02 Teresa Johnson <tejohnson@google.com>
6463
6464 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6465 divides.
6466 * cfg.c (update_bb_profile_for_threading): Ditto.
6467 * tree-inline.c (copy_bb): Ditto.
6468 (copy_edges_for_bb): Ditto.
6469 (initialize_cfun): Ditto.
6470 (copy_cfg_body): Ditto.
6471 (expand_call_inline): Ditto.
6472 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6473 (estimate_node_size_and_time): Ditto.
6474 (inline_merge_summary): Ditto.
6475 * cgraphclones.c (cgraph_clone_edge): Ditto.
6476 (cgraph_clone_node): Ditto.
6477 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6478 (compute_trg_info): Ditto.
6479
da65928c
IB
64802013-05-02 Ian Bolton <ian.bolton@arm.com>
6481
6482 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6483 S reg when fp attribute set.
6484 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6485
add3c965
IB
64862013-05-02 Ian Bolton <ian.bolton@arm.com>
6487
6488 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6489 New pattern.
6490 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6491 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6492 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6493
fdd43ac4
RB
64942013-05-02 Richard Biener <rguenther@suse.de>
6495
6496 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6497 (struct instantiate_cache_entry): New type.
6498 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6499 (struct instantiate_cache_type): New type.
6500 (set_instantiated_value, get_instantiated_value): Remove.
6501 (get_instantiated_value_entry): New function.
6502 (instantiate_scev_name): Use the new cache and adjust.
6503 (instantiate_scev_poly): Adjust.
6504 (instantiate_scev_binary): Likewise.
6505 (instantiate_array_ref): Likewise.
6506 (instantiate_scev_convert): Likewise.
6507 (instantiate_scev_not): Likewise.
6508 (instantiate_scev_3): Likewise.
6509 (instantiate_scev_2): Likewise.
6510 (instantiate_scev_r): Likewise.
6511 (instantiate_scev): Likewise.
6512 (resolve_mixers): Likewise.
6513
36ff9dfb
VM
65142013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6515
6516 PR target/57091
6517 * lra-constraints.c (best_small_class_operands_num): Remove.
6518 (process_alt_operands): Remove small_class_operands_num. Take
6519 small classes operands into losers and only if the operand is not
6520 matched. Modify debugging output.
6521 (curr_insn_transform): Remove best_small_class_operands_num.
6522 Print insn name.
6523
36054fab
JG
65242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6525
6526 * config/aarch64/aarch64-builtins.c
6527 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6528 * config/aarch64/aarch64-simd-builtins.def
6529 (reduc_splus_): Add new modes.
6530 (reduc_uplus_): New.
6531 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6532 (reduc_uplus_v4sf): Likewise.
6533 (reduc_splus_v4sf): Likewise.
6534 (aarch64_addv<mode>): Likewise.
6535 (reduc_uplus_<mode>): Likewise.
6536 (reduc_splus_<mode>): Likewise.
6537 (aarch64_addvv2di): Likewise.
6538 (reduc_uplus_v2di): Likewise.
6539 (reduc_splus_v2di): Likewise.
6540 (aarch64_addvv2si): Likewise.
6541 (reduc_uplus_v2si): Likewise.
6542 (reduc_splus_v2si): Likewise.
6543 (reduc_<sur>plus_<mode>): New.
6544 (reduc_<sur>plus_v2di): Likewise.
6545 (reduc_<sur>plus_v2si): Likewise.
6546 (reduc_<sur>plus_v4sf): Likewise.
6547 (aarch64_addpv4sf): Likewise.
6548 * config/aarch64/arm_neon.h
6549 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6550 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6551 add UNSPEC_SADDV, UNSPEC_UADDV.
6552 (SUADDV): New.
6553 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6554
6dce23a8
JG
65552013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6556
6557 * config/aarch64/arm_neon.h
6558 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6559
1598945b
JG
65602013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6561
6562 * config/aarch64/aarch64-builtins
6563 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6564
998eaf97
JG
65652013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6566
6567 * config/aarch64/aarch64-simd-builtins.def
6568 (reduc_smax_): New.
6569 (reduc_smin_): Likewise.
6570 (reduc_umax_): Likewise.
6571 (reduc_umin_): Likewise.
6572 (reduc_smax_nan_): Likewise.
6573 (reduc_smin_nan_): Likewise.
6574 (fmax): Remove.
6575 (fmin): Likewise.
6576 (smax): Update for V2SF, V4SF and V2DF modes.
6577 (smin): Likewise.
6578 (smax_nan): New.
6579 (smin_nan): Likewise.
6580 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6581 (<su><maxmin><mode>3): ...This, refactor.
6582 (s<maxmin><mode>3): New.
6583 (<maxmin_uns><mode>3): Likewise.
6584 (reduc_<maxmin_uns>_<mode>): Refactor.
6585 (reduc_<maxmin_uns>_v4sf): Likewise.
6586 (reduc_<maxmin_uns>_v2si): Likewise.
6587 (aarch64_<fmaxmin><mode>: Remove.
6588 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6589 new builtin names.
6590 (vmin<q>_f<32,64>): Likewise.
6591 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6592 (FMAXMIN): New.
6593 (su): Add mappings for smax, smin, umax, umin.
6594 (maxmin): New.
6595 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6596 (FMAXMIN): Rename as...
6597 (FMAXMIN_UNS): ...This.
6598 (maxminv): Remove.
6599 (fmaxminv): Likewise.
6600 (fmaxmin): Likewise.
6601 (maxmin_uns): New.
6602 (maxmin_uns_op): Likewise.
6603
bd11644e
JG
66042013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6605
6606 * config/aarch64/arm_neon.h
6607 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6608 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6609 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6610
75dd5ace
JG
66112013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6612
6613 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6614 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6615
7c19979f
JG
66162013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6617
6618 * config/aarch64/aarch64-simd.md
6619 (vcond<mode>_internal): Handle special cases for constant masks.
6620 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6621 (vcondu<mode><mode>): Likewise.
6622 (vcond<v_cmp_result><mode>): New.
6623
bb60efd9
JG
66242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6625
6626 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6627 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6628 * config/aarch64/aarch64-simd-builtins.def
6629 (cmeq): Update to BUILTIN_VALLDI.
6630 (cmgt): Likewise.
6631 (cmge): Likewise.
6632 (cmle): Likewise.
6633 (cmlt): Likewise.
6634 * config/aarch64/arm_neon.h
6635 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6636 to builtins or C as appropriate.
6637
889b9412
JG
66382013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6639
6640 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6641 (cmgeu): ...This.
6642 (cmhi): Rename to...
6643 (cmgtu): ...This.
6644 * config/aarch64/aarch64-simd.md
6645 (simd_mode): Add SF.
6646 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6647 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6648 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6649 (cstore<mode>_neg): ...This.
6650 * config/aarch64/iterators.md
6651 (VALLF): new.
6652 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6653 (COMPARISONS): New.
6654 (UCOMPARISONS): Likewise.
6655 (optab): Add missing comparisons.
6656 (n_optab): New.
6657 (cmp_1): Likewise.
6658 (cmp_2): Likewise.
6659 (CMP): Likewise.
6660 (cmp): Remove.
6661 (VCMP_S): Likewise.
6662 (VCMP_U): Likewise.
6663 (V_cmp_result): Add DF, SF modes.
6664 (v_cmp_result): Likewise.
6665 (v): Likewise.
6666 (vmtype): Likewise.
6667 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6668
0a7dbb76
GY
66692013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6670
6671 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6672 define_insn to define_insn_and_split.
6673 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6674 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6675 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6676 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6677 (thumb2_negscc): Likewise.
6678
fb614ca6
GY
66792013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6680
6681 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6682
9e64a0bf
GY
66832013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6684
6685 * config/arm/thumb2.md: Remove trailing whitespaces.
6686
d6b28156
RS
66872013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6688
6689 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6690 Use gen_int_mode rather than GEN_INT.
6691
f91674c3
L
66922013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6693
b0dec607 6694 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
6695 debug_gimple_stmt.
6696
3551257c
RB
66972013-04-30 Richard Biener <rguenther@suse.de>
6698
6699 PR middle-end/57122
3c21604f 6700 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 6701
4c1aff1c
RB
67022013-04-30 Richard Biener <rguenther@suse.de>
6703
6704 PR middle-end/57107
6705 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6706
54b8379a
AB
67072013-04-30 Andrey Belevantsev <abel@ispras.ru>
6708
6709 PR rtl-optimization/56957
6710 PR rtl-optimization/57105
54b8379a
AB
6711 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6712 variable. Use just INSN_UID for determining whether an insn
6713 should be only disconnected from the insn stream.
6714 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6715
abc27962
JJ
67162013-04-30 Jakub Jelinek <jakub@redhat.com>
6717
6718 PR tree-optimization/57104
6719 * tsan.c (instrument_expr): Don't instrument accesses to
6720 DECL_HARD_REGISTER VAR_DECLs.
6721
0fc822d0
RB
67222013-04-30 Richard Biener <rguenther@suse.de>
6723
6724 * function.h (loops_for_fn): New inline function.
6725 (set_loops_for_fn): Likewise.
6726 * cfgloop.h (place_new_loop): Add struct function parameter.
6727 (get_loop): Likewise.
6728 (get_loops): Likewise.
6729 (number_of_loops): Likewise.
6730 (fel_next): Adjust.
6731 (fel_init): Likewise.
6732 * cfg.c (get_loop_copy): Adjust.
6733 * cfgloop.c (flow_loops_dump): Likewise.
6734 (record_loop_exits): Likewise.
6735 (verify_loop_structure): Likewise.
6736 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6737 (estimate_reg_pressure_cost): Likewise.
6738 (mark_loop_exit_edges): Likewise.
6739 * cfgloopmanip.c (place_new_loop): Likewise.
6740 (add_loop): Likewise.
6741 (duplicate_loop): Likewise.
6742 * graph.c (draw_cfg_nodes): Likewise.
6743 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6744 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6745 (extract_affine_chrec): Likewise.
6746 (build_scop_iteration_domain): Likewise.
6747 * graphite.c (graphite_initialize): Likewise.
6748 * ira-build.c (create_loop_tree_nodes): Likewise.
6749 (more_one_region_p): Likewise.
6750 (rebuild_regno_allocno_maps): Likewise.
6751 (mark_loops_for_removal): Likewise.
6752 (mark_all_loops_for_removal): Likewise.
6753 (remove_unnecessary_regions): Likewise.
6754 (ira_build): Likewise.
6755 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6756 * loop-init.c (fix_loop_structure): Likewise.
6757 (gate_rtl_move_loop_invariants): Likewise.
6758 (gate_rtl_unswitch): Likewise.
6759 (gate_rtl_unroll_and_peel_loops): Likewise.
6760 (rtl_doloop): Likewise.
6761 * lto-streamer-in.c (input_cfg): Likewise.
6762 * lto-streamer-out.c (output_cfg): Likewise.
6763 * modulo-sched.c (sms_schedule): Likewise.
6764 * predict.c (tree_estimate_probability): Likewise.
6765 (tree_estimate_probability_driver): Likewise.
6766 (estimate_loops): Likewise.
6767 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6768 (move_sese_region_to_fn): Likewise.
6769 (debug_loop_num): Likewise.
6770 * tree-chrec.c (chrec_evaluate): Likewise.
6771 (hide_evolution_in_other_loops_than_loop): Likewise.
6772 (chrec_component_in_loop_num): Likewise.
6773 (reset_evolution_in_loop): Likewise.
6774 (evolution_function_is_invariant_rec_p): Likewise.
6775 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6776 * tree-inline.c (copy_loops): Likewise.
6777 (copy_cfg_body): Likewise.
6778 (tree_function_versioning): Likewise.
6779 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6780 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6781 Likewise.
6782 (add_to_evolution_1): Likewise.
6783 (scev_const_prop): Likewise.
6784 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6785 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6786 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6787 (tree_ssa_lim_initialize): Likewise.
6788 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6789 (verify_loop_closed_ssa): Likewise.
6790 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6791 (tree_ssa_loop_im): Likewise.
6792 (tree_ssa_loop_unswitch): Likewise.
6793 (tree_vectorize): Likewise.
6794 (check_data_deps): Likewise.
6795 (tree_ssa_loop_ivcanon): Likewise.
6796 (tree_ssa_loop_bounds): Likewise.
6797 (tree_complete_unroll): Likewise.
6798 (tree_complete_unroll_inner): Likewise.
6799 (tree_parallelize_loops): Likewise.
6800 (tree_ssa_loop_prefetch): Likewise.
6801 (tree_ssa_loop_ivopts): Likewise.
6802 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6803 * tree-vectorizer.c (vectorize_loops): Likewise.
6804
37953bd3
MF
68052013-04-29 Mike Frysinger <vapier@gentoo.org>
6806
6807 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6808 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6809 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6810 with EABI_LINK_SPEC.
6811
f9ed28db
UB
68122013-04-29 Uros Bizjak <ubizjak@gmail.com>
6813
6814 PR target/44578
6815 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6816 alternative.
6817
deca73f5
VM
68182013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6819
6820 PR target/57097
37953bd3 6821 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
6822 using memory for pseudos. Print cost dump for alternatives.
6823 Modify cost values for conflicts with early clobbers.
6824 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6825
fdca7d03
UB
68262013-04-29 Uros Bizjak <ubizjak@gmail.com>
6827
6828 PR target/57098
6829 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6830
0b064172
IB
68312013-04-29 Ian Bolton <ian.bolton@arm.com>
6832
6833 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6834 from/to S register.
6835 (movdi_aarch64): Support LDR/STR from/to D register.
6836
473cec55
IB
68372013-04-29 Ian Bolton <ian.bolton@arm.com>
6838
6839 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6840 or higher by default.
6841
a6f30e66
RB
68422013-04-29 Richard Biener <rguenther@suse.de>
6843
6844 PR middle-end/57075
6845 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6846 even if not adding abnormal edges for calls that can make
6847 abnormal gotos.
6848
0c2b2040
RB
68492013-04-29 Richard Biener <rguenther@suse.de>
6850
6851 PR middle-end/57103
6852 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6853 TREE_BLOCK.
6854 (move_stmt_r): Remove redundant checking.
6855
f41f80f9
TJ
68562013-04-29 Teresa Johnson <tejohnson@google.com>
6857
6858 PR bootstrap/57077
6859 * basic-block.h (apply_scale): New function.
6860 (apply_probability): Use apply_scale.
6861 * gimple-streamer-in.c (input_bb): Ditto.
6862 * lto-streamer-in.c (input_cfg): Ditto.
6863 * lto-cgraph.c (merge_profile_summaries): Ditto.
6864 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 6865 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
6866 (copy_edges_for_bb): Ditto.
6867 (copy_cfg_body): Ditto.
6868
315bbd2e
TV
68692013-04-29 Tom de Vries <tom@codesourcery.com>
6870
6871 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6872 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6873 (tail_merge_optimize): Handle current_loops == NULL.
6874
ebbd90d8
JL
68752013-04-26 Jeff Law <law@redhat.com>
6876
6877 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6878 (simplify_cond_using_ranges): Generalize code to simplify
6879 COND_EXPRs where one argument is a constant and the other
6880 is an SSA_NAME created by an integral type conversion.
6881
8b9b57eb
KT
68822013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6883
6884 * config/arm/arm.md (store_minmaxsi): Use only when
6885 optimize_insn_for_size_p.
6886
9498e5dc
CB
68872013-04-29 Christian Bruel <christian.bruel@st.com>
6888
6889 PR target/57108
6890 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6891
6093bc06
RB
68922013-04-29 Richard Biener <rguenther@suse.de>
6893
6894 PR middle-end/57089
fdca7d03
UB
6895 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6896 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
6897 (expand_omp_for_generic): Properly add loops.
6898 (expand_omp_for_static_nochunk): Likewise.
6899 (expand_omp_for_static_chunk): Likewise.
6900 (expand_omp_for): For the degenerate case fixup loops.
6901 (expand_omp_sections): Fix default bb placement in loops.
6902 (expand_omp_atomic_pipeline): Properly add loops.
6903
84aacbfd
KT
69042013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6905
6906 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6907
8dee4479
TV
69082013-04-29 Tom de Vries <tom@codesourcery.com>
6909
6910 * tree-ssa-tail-merge.c: Update header comment.
6911
47934dc4
JG
69122013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6913
6914 * config/aarch64/arm_neon.h
6915 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6916 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6917 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6918 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6919 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6920 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6921 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6922 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6923
384be29f
JG
69242013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6925
6926 * config/aarch64/aarch64-simd.md
6927 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6928 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6929 fix_trunc, fixuns_trunc.
6930 (ftrunc<VDQF:mode>2): New.
6931 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6932 (fix_trunc_optab): New.
6933
0386b123
JG
69342013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6935
6936 * config/aarch64/aarch64-builtins.c
6937 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6938 iceilf, lround, iroundf.
6939
00fcb892
UB
69402013-04-29 Uros Bizjak <ubizjak@gmail.com>
6941
6942 PR target/54349
6943 * config/i386/i386.h (enum ix86_tune_indices)
6944 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6945 New, split from X86_TUNE_INTER_UNIT_MOVES.
6946 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6947 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6948 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6949 (TARGET_INTER_UNIT_MOVES): Remove.
6950 * config/i386/i386.c (initial_ix86_tune_features): Update.
6951 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6952 (ix86_expand_convert_uns_didf_sse): Use
6953 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6954 (ix86_expand_vector_init_one_nonzero): Ditto.
6955 (ix86_expand_vector_init_interleave): Ditto.
6956 (inline_secondary_memory_needed): Return true for moves from SSE class
6957 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6958 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6959 * config/i386/constraints.md (Yi, Ym): Depend on
6960 TARGET_INTER_UNIT_MOVES_TO_VEC.
6961 (Yj, Yn): New constraints.
6962 * config/i386/i386.md (*movdi_internal): Change constraints of
6963 operand 1 from Yi to Yj and from Ym to Yn.
6964 (*movsi_internal): Ditto.
6965 (*movdf_internal): Ditto.
6966 (*movsf_internal): Ditto.
6967 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6968 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6969 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6970 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6971 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6972 * config/i386/sse.md (movdi_to_sse): Ditto.
6973 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6974 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6975 TARGET_INTER_UNIT_MOVES.
6976 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6977 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6978 instead of TARGET_INTER_UNIT_MOVES.
6979 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6980 operand 1 from Yi to Yj and from Ym to Yn.
6981
4c871069
JG
69822013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6983
6984 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6985 (float_truncate_hi_): Likewise.
6986 (float_extend_lo_): Likewise.
6987 (float_truncate_lo_): Likewise.
6988 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6989 (aarch64_float_extend_lo_v2df): Likewise.
6990 (vec_unpacks_hi_v4sf): Likewise.
6991 (aarch64_float_truncate_lo_v2sf): Likewise.
6992 (aarch64_float_truncate_hi_v4sf): Likewise.
6993 (vec_pack_trunc_v2df): Likewise.
6994 (vec_pack_trunc_df): Likewise.
6995
1709ff9b
JG
69962013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6997
6998 * config/aarch64/aarch64-builtins.c
6999 (aarch64_fold_builtin): Fold float conversions.
7000 * config/aarch64/aarch64-simd-builtins.def
7001 (floatv2si, floatv4si, floatv2di): New.
7002 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7003 * config/aarch64/aarch64-simd.md
7004 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7005 * config/aarch64/iterators.md (FLOATUORS): New.
7006 (optab): Add float, floatuns.
7007 (su_optab): Likewise.
7008
ce966824
JG
70092013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7010
7011 * config/aarch64/aarch64-builtins.c
7012 (aarch64_builtin_vectorized_function): Use new names for
7013 fcvt builtins.
7014 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7015 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7016 (fcvtzu): Split as...
7017 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7018 (fcvtas): Split as...
7019 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7020 (fcvtau): Split as...
7021 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7022 (fcvtps): Split as...
7023 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7024 (fcvtpu): Split as...
7025 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7026 (fcvtms): Split as...
7027 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7028 (fcvtmu): Split as...
7029 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7030 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7031 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7032 (lfrintnusf, lfrintnudf): Likewise.
7033 * config/aarch64/aarch64-simd.md
7034 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7035 define_insn.
7036 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7037 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7038 (fcvt_pattern): Likewise.
7039
b9de24fe
JG
70402013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7041
7042 * config/aarch64/aarch64-simd.md
7043 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7044 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7045
77a205be
JG
70462013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7047
7048 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7049 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7050 (vrnd<a,m,n,p>_f32): Implement using builtins.
7051 (vrnd<i,x><q>_f<32, 64>): New.
7052
0659ce6f
JG
70532013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7054
7055 * config/aarch64/aarch64-builtins.c
7056 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7057 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7058 (frintz): Rename to...
7059 (btrunc): ...this.
7060 (frintp): Rename to...
7061 (ceil): ...this.
7062 (frintm): Rename to...
7063 (floor): ...this.
7064 (frinti): Rename to...
7065 (nearbyint): ...this.
7066 (frintx): Rename to...
7067 (rint): ...this.
7068 (frinta): Rename to...
7069 (round): ...this.
7070 * config/aarch64/aarch64-simd.md
7071 (aarch64_frint<frint_suffix><mode>): Delete.
7072 (<frint_pattern><mode>2): Convert to insn.
7073 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7074 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7075 (frint_pattern): Likewise.
7076 (frint_suffix): Likewise.
7077
ea78906a
RB
70782013-04-29 Richard Biener <rguenther@suse.de>
7079
7080 PR tree-optimization/57081
7081 * loop-init.c: Include tree-flow.h.
7082 (loop_optimizer_finalize): Free number of iteration estimates.
7083 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7084
baee1763
JJ
70852013-04-29 Jakub Jelinek <jakub@redhat.com>
7086
94dc5332
JJ
7087 PR tree-optimization/57083
7088 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7089 non-singleton shift count range, zero extend low_bound for uns case.
7090
baee1763
JJ
7091 * config/i386/predicates.md (general_vector_operand): New predicate.
7092 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7093 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7094 if they aren't nonimmediate operands. If their original values
7095 satisfy const_vector_equal_evenodd_p, don't shift them.
7096 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7097 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7098 if not nonimmediate_operand.
7099 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7100 instead of register_operand.
7101 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7102
a9073727 71032013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
7104
7105 * stor-layout.c (finalize_size_functions): Allocate a structure and
7106 reset cfun before dumping the functions.
7107
ba8011e6
JJ
71082013-04-27 Jakub Jelinek <jakub@redhat.com>
7109
d6fde69e
JJ
7110 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7111
ba8011e6
JJ
7112 PR target/56866
7113 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7114 use xop_pmacsdqh if uns_p.
7115 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7116 the immediate rotate count.
7117
2c62cbaa
VM
71182013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7119
7120 * rtl.h (struct rtx_def): Add comment for field jump.
7121 (LRA_SUBREG_P): New macro.
7122 * recog.c (register_operand): Check LRA_SUBREG_P.
7123 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7124 stack frame.
7125 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7126 (lra_final_code_change): Skip subreg change for operators.
7127 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7128 if there are no operand changes.
7129 * lra-constraints.c (curr_insn_set): New.
7130 (match_reload): Set LRA_SUBREG_P.
7131 (emit_spill_move): Ditto.
7132 (check_and_process_move): Use curr_insn_set. Process only single
7133 set insns. Don't initialize sec_mem_p and change_p.
7134 (simplify_operand_subreg): Use LRA_SUBREG_P.
7135 (reg_in_class_p): New function.
7136 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7137 of #ifdef. Add code to remove cycling.
7138 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7139 non-null disp. Reload inner instead of disp when base and index
7140 are null. Try to put lo_sum into register.
7141 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7142 (check_and_process_move): Move code for move cost check to
7143 simple_move_p. Remove equiv_substitution.
7144 (simple_move_p): New function.
7145 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7146 curr_insn_set. Call check_and_process_move only for single set
7147 insns. Use the new function. Move call of check_and_process_move
7148 after operand equiv substitution and address process.
7149
e7d764f3
JJ
71502013-04-26 Jakub Jelinek <jakub@redhat.com>
7151
7152 PR go/57045
7153 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7154 with nonlocal goto receivers or returns twice calls, ignore
7155 unininitialized values from abnormal edges to nl goto receiver
7156 or returns twice call.
7157
41e10689
JJ
71582013-04-26 Jakub Jelinek <jakub@redhat.com>
7159
7160 PR tree-optimization/57051
7161 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7162 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7163 bitsize.
7164
d7ed20db
RB
71652013-04-26 Richard Biener <rguenther@suse.de>
7166
7167 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7168 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7169 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7170 (fixup_loop_arrays_after_move): New function.
7171 (move_sese_region_to_fn): Properly outline the loop tree parts
7172 of the SESE region.
7173
df93505e
UB
71742013-04-26 Uros Bizjak <ubizjak@gmail.com>
7175
7176 * config/i386/i386.md (type, unit): Fix long lines.
7177
dd366ec3
RB
71782013-04-26 Richard Biener <rguenther@suse.de>
7179
7180 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7181 (lto-streamer-out.o): Likewise.
7182 * cfgloop.c (init_loops_structure): Export, add struct function
7183 argument and adjust.
7184 (flow_loops_find): Adjust.
7185 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7186 (init_loops_structure): Declare.
7187 * lto-streamer-in.c: Include cfgloop.h.
7188 (input_cfg): Input the loop tree.
7189 * lto-streamer-out.c: Include cfgloop.h.
7190 (output_cfg): Output the loop tree.
7191 (output_struct_function_base): Do not drop PROP_loops.
7192
a9e0d843
RB
71932013-03-26 Richard Biener <rguenther@suse.de>
7194
7195 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7196 (pass_build_cfg): Provide PROP_loops.
7197 (move_sese_region_to_fn): Remove loops that are outlined into fn
7198 for now.
7199 * tree-inline.c: Include cfgloop.h.
7200 (initialize_cfun): Do not drop PROP_loops.
7201 (copy_loops): New function.
7202 (copy_cfg_body): Copy loop structure.
7203 (tree_function_versioning): Initialize destination loop tree.
7204 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7205 (pass_parallelize_loops): Do IL verification.
7206 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7207 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7208 the CFG make sure we fixup loops as well.
7209 * tree-ssa-tail-merge.c: Include cfgloop.h.
7210 (replace_block_by): When merging loop latches mark loops for fixup.
7211 * lto-streamer-out.c (output_struct_function_base): Drop
7212 PROP_loops for now.
7213 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7214 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7215 * ipa-split.c: Include cfgloop.h.
7216 (split_function): Add the new return block to the loop tree root.
7217 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7218 whether we have removed the forwarder block.
7219 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7220 * cfgloop.h (place_new_loop): Declare.
7221 * cfgloopmanip.c (place_new_loop): Export.
7222 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7223 (tree-switch-conversion.o): Likewise.
7224 (tree-complex.o): Likewise.
7225 (tree-inline.o): Likewise.
7226 (tree-ssa-tailmerge.o): Likewise.
7227 (ipa-split.o): Likewise.
7228 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7229 (tree-ssa-copy.o): Likewise.
7230 * tree-switch-conversion.c: Include cfgloop.h
7231 (process_switch): If we emit a bit-test cascade, schedule loops
7232 for fixup.
7233 * tree-complex.c: Include cfgloop.h.
7234 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7235 * asan.c: Include cfgloop.h.
7236 (create_cond_insert_point): Properly add new basic-blocks to
7237 loops, schedule loop fixup.
7238 * cfgloop.c (verify_loop_structure): Check that looks are not
7239 marked for fixup.
7240 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7241 to loops.
7242 (expand_omp_for_generic): Likewise.
7243 (expand_omp_sections): Likewise.
7244 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7245 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7246 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7247 is initialized, not when loops are present.
7248 * tree-parloops.c (parallelize_loops): Remove checking here.
7249 * passes.c (init_optimization_passes): Schedule a copy-propagation
7250 pass before complete unrolling of inner loops.
7251
e78e8a0b
JJ
72522013-04-26 Jakub Jelinek <jakub@redhat.com>
7253
a2e836b2
JJ
7254 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7255 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7256 (colorize_init): Add argument to _WIN32 version.
7257 * toplev.c: Include diagnostic-color.h.
7258 (process_options): Default to -fdiagnostics-color=auto if
7259 GCC_COLORS env var is in the environment.
7260 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
7261 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7262 env var is in the environment, the default is auto rather than never.
a2e836b2 7263
e78e8a0b
JJ
7264 * diagnostic.h (file_name_as_prefix): Add context argument.
7265 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7266 the string as locus.
7267 * langhooks.c (lhd_print_error_function): Adjust caller.
7268
013e5ef9
LC
72692013-04-25 Lawrence Crowl <crowl@google.com>
7270
7271 * var-tracking.c (shared_hash_def::htab):
7272 Change type to hash_table. Update dependent calls and types.
7273
4a8fb1a1
LC
72742013-04-25 Lawrence Crowl <crowl@google.com>
7275
7276 * Makefile.in: Update as needed below.
7277
7278 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7279 Move declaration to after the type's method definitons.
7280
7281 * attribs.c (htab_t scoped_attributes::attribute_hash):
7282 Change type to hash_table. Update dependent calls and types.
7283
7284 * bitmap.c (htab_t bitmap_desc_hash):
7285 Change type to hash_table. Update dependent calls and types.
7286
7287 * cselib.c (htab_t cselib_hash_table):
7288 Change type to hash_table. Update dependent calls and types.
7289
7290 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7291 (hash_string_slot_node): Move implementation into lto-streamer.h
7292 struct string_slot_hasher.
7293 (eq_string_slot_node): Likewise.
7294
7295 * data-streamer-out.c: Update output_block::string_hash_table
7296 dependent calls and types.
7297
7298 * dwarf2cfi.c (htab_t trace_index):
7299 Change type to hash_table. Update dependent calls and types.
7300
7301 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7302 Change type to hash_table. Update dependent calls and types.
7303 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7304 (htab_t optimize_external_refs::map): Likewise.
7305 (htab_t output_comp_unit::extern_map): Likewise.
7306 (htab_t output_comdat_type_unit::extern_map): Likewise.
7307 (htab_t output_macinfo::macinfo_htab): Likewise.
7308 (htab_t optimize_location_lists::htab): Likewise.
7309 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7310
7311 * except.c (htab_t ehspec_hash_type):
7312 Change type to hash_table. Update dependent calls and types.
7313 (assign_filter_values::ttypes): Likewise.
7314 (assign_filter_values::ehspec): Likewise.
7315 (sjlj_assign_call_site_values::ar_hash): Likewise.
7316 (convert_to_eh_region_ranges::ar_hash): Likewise.
7317
7318 * gcse.c (htab_t pre_ldst_table):
7319 Change type to hash_table. Update dependent calls and types.
7320
7321 * ggc-common.c (htab_t saving_htab):
7322 Change type to hash_table. Update dependent calls and types.
7323 (htab_t loc_hash): Likewise.
7324 (htab_t ptr_hash): Likewise.
7325 (call_count): Rename ggc_call_count.
7326 (call_alloc): Rename ggc_call_alloc.
7327 (loc_descriptor): Rename make_loc_descriptor.
7328 (add_statistics): Rename ggc_add_statistics.
7329
7330 * ggc-common.c (saving_htab):
7331 Change type to hash_table. Update dependent calls and types.
7332
7333 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7334 (push_gimplify_context): Likewise.
7335 (pop_gimplify_context): Likewise.
7336 (struct gimple_temp_hash_elt): Added.
7337 (struct gimplify_hasher): Likewise.
7338 (struct gimplify_ctx.temp_htab):
7339 Change type to hash_table. Update dependent calls and types.
7340
7341 * gimple-fold.c: Include gimplify-ctx.h.
7342
7343 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7344 Change type to hash_table. Update dependent calls and types.
7345 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7346 avoid potential global name collision.
7347
7348 * gimplify.c: Include gimplify-ctx.h.
7349 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7350 (htab_t gimplify_ctx::temp_htab):
7351 Update dependent calls and types for new type hash_table.
7352 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7353 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7354
7355 * gimplify-ctx.h: New.
7356 (struct gimple_temp_hash_elt): Move from gimplify.c.
7357 (class gimplify_hasher): New.
7358 (struct gimplify_ctx): Move from gimple.h.
7359 (htab_t gimplify_ctx::temp_htab):
7360 Change type to hash_table. Update dependent calls and types.
7361
7362 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7363 (htab_t ivs_params::newivs_index):
7364 Change type to hash_table. Update dependent calls and types.
7365 (htab_t ivs_params::params_index): Likewise.
7366 (htab_t print_generated_program::params_index): Likewise.
7367 (htab_t gloog::newivs_index): Likewise.
7368 (htab_t gloog::params_index): Likewise.
7369
7370 * graphite.c: Include graphite-htab.h.
7371 4htab_t graphite_transform_loops::bb_pbb_mapping):
7372 Change type to hash_table. Update dependent calls and types.
7373
7374 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7375 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7376 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7377
7378 * graphite-dependences.c: Include graphite-htab.h.
7379 (loop_is_parallel_p): Change hash table type of parameter.
7380
7381 * graphite-htab.h: New.
7382 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7383 (extern find_pbb_via_hash): Move from graphite-poly.h.
7384 (extern loop_is_parallel_p): Move from graphite-poly.h.
7385 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7386
7387 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7388 (extern loop_is_parallel_p): Move to graphite-htab.h.
7389 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7390
7391 * haifa-sched.c (htab_t delay_htab):
7392 Change type to hash_table. Update dependent calls and types.
7393 (htab_t delay_htab_i2): Likewise.
7394
7395 * ira-color.c (htab_t allocno_hard_regs_htab):
7396 Change type to hash_table. Update dependent calls and types.
7397
7398 * ira-costs.c (htab_t cost_classes_htab):
7399 Change type to hash_table. Update dependent calls and types.
7400
7401 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7402 Change type to hash_table. Update dependent calls and types.
7403
7404 * loop-iv.c (htab_t bivs):
7405 Change type to hash_table. Update dependent calls and types.
7406
7407 * loop-unroll.c (htab_t opt_info::insns_to_split):
7408 Change type to hash_table. Update dependent calls and types.
7409 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7410
7411 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7412 (struct string_slot_hasher): New.
7413 (htab_t output_block::string_hash_table):
7414 Change type to hash_table. Update dependent calls and types.
7415
7416 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7417 (htab_t file_name_hash_table):
7418 Change type to hash_table. Update dependent calls and types.
7419
7420 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7421 calls and types.
7422
7423 * lto-streamer.c (htab_t tree_htab):
7424 Change type to hash_table. Update dependent calls and types.
7425
7426 * omp-low.c: Include gimplify-ctx.h.
7427
7428 * passes.c (htab_t name_to_pass_map):
7429 Change type to hash_table. Update dependent calls and types.
7430 (pass_traverse): Rename to passes_pass_traverse.
7431
7432 * plugin.c (htab_t event_tab):
7433 Change type to hash_table. Update dependent calls and types.
7434
7435 * postreload-gcse.c (htab_t expr_table):
7436 Change type to hash_table. Update dependent calls and types.
7437 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7438
7439 * sese.c (debug_rename_map_1): Make extern.
7440 (htab_t copy_bb_and_scalar_dependences::rename_map):
7441 Change type to hash_table. Update dependent calls and types.
7442
7443 * sese.h (extern debug_rename_map): Move to .c file.
7444
7445 * store-motion.c (htab_t store_motion_mems_table):
7446 Change type to hash_table. Update dependent calls and types.
7447
7448 * trans-mem.c (htab_t tm_new_mem_hash):
7449 Change type to hash_table. Update dependent calls and types.
7450
7451 * tree-browser.c (htab_t TB_up_ht):
7452 Change type to hash_table. Update dependent calls and types.
7453
7454 * tree-cfg.c (htab_t discriminator_per_locus):
7455 Change type to hash_table. Update dependent calls and types.
7456
7457 * tree-complex.c: Include tree-hasher.h
7458 (htab_t complex_variable_components):
7459 Change type to hash_table. Update dependent calls and types.
7460
7461 * tree-eh.c (htab_t finally_tree):
7462 Change type to hash_table. Update dependent calls and types.
7463
7464 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7465 struct int_tree_hasher.
7466 (extern int_tree_map_eq): Likewise.
7467 (uid_decl_map_hash): Removed.
7468 (extern decl_tree_map_eq): Likewise.
7469
7470 * tree-hasher.h: New.
7471 (struct int_tree_hasher): New.
7472 (typedef int_tree_htab_type): New.
7473
7474 * tree-inline.c: Include gimplify-ctx.h.
7475
7476 * tree-mudflap.c: Include gimplify-ctx.h.
7477
7478 * tree-parloops.c: Include tree-hasher.h.
7479 (htab_t eliminate_local_variables_stmt::decl_address):
7480 Change type to hash_table. Update dependent calls and types.
7481 (htab_t separate_decls_in_region::decl_copies): Likewise.
7482
7483 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7484 Change type to hash_table. Update dependent calls and types.
7485
7486 * tree-sra.c (candidates):
7487 Change type to hash_table. Update dependent calls and types.
7488
7489 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7490 in tree-flow.h.
7491 (int_tree_map_hash): Likewise.
7492
7493 * tree-ssa-dom.c (htab_t avail_exprs):
7494 Change type to hash_table. Update dependent calls and types.
7495
7496 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7497 Change type to hash_table. Update dependent calls and types.
7498
7499 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7500 Change type to hash_table. Update dependent calls and types.
7501
7502 * tree-ssa-phiopt.c (seen_ssa_names):
7503 Change type to hash_table. Update dependent calls and types.
7504
7505 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7506 Change type to hash_table. Update dependent calls and types.
7507
7508 * tree-ssa-uncprop.c (equiv):
7509 Change type to hash_table. Update dependent calls and types.
7510
c5a44004
JJ
75112013-04-25 Jakub Jelinek <jakub@redhat.com>
7512
7513 PR rtl-optimization/57003
7514 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7515 call note_stores with kill_clobbered_value callback again after
7516 killing regs_invalidated_by_call.
7517
09962a4a
JG
75182013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7519
7520 * config/aarch64/aarch64-simd.md
7521 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7522 (aarch64_simd_bsl<mode>): Likewise.
7523 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7524
ea28bb0b
MP
75252013-04-25 Marek Polacek <polacek@redhat.com>
7526
7527 PR tree-optimization/57066
3c21604f 7528 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 7529
96659611
JG
75302013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7531
7532 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7533
9697e620
JG
75342013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7535
7536 * config/aarch64/aarch64-builtins.c
7537 (aarch64_fold_builtin): New.
7538 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7539 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7540 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7541 * config/aarch64/arm_neon.h
7542 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7543
0ac198d3
JG
75442013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7545 Tejas Belagod <tejas.belagod@arm.com>
7546
7547 * config/aarch64/aarch64-builtins.c
7548 (aarch64_gimple_fold_builtin): New.
7549 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7550 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7551 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7552 (addvv4sf): Update.
7553 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7554
58cff58c
N
75552013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7556
df93505e 7557 * config/aarch64/aarch64.md
58cff58c
N
7558 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7559
7e0228bf
N
75602013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7561
7562 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7563 (*ngcsi_uxtw): New pattern.
7564
5819f96f 75652013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 7566 Julian Brown <julian@codesourcery.com>
5819f96f
KT
7567
7568 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7569 (TB_DREG): Add T_V4HF.
7570 (v4hf_UP): New macro.
7571 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 7572 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7573 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7574 built-ins.
df93505e 7575 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7576 (arm_vector_mode_supported_p): Handle V4HF.
7577 (arm_mangle_map): Handle V4HFmode.
7578 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7579 * config/arm/arm_neon_builtins.def: Add entries for
7580 vcvtv4hfv4sf, vcvtv4sfv4hf.
7581 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7582 (neon_vcvtv4hfv4sf): Likewise.
7583 * config/arm/neon-gen.ml: Handle half-precision floating point
7584 features.
7585 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7586 * config/arm/arm_neon.h: Regenerate.
7587 * config/arm/neon.ml (type elts): Add F16.
7588 (type vectype): Add T_float16x4, T_floatHF.
7589 (type vecmode): Add V4HF.
7590 (type features): Add Requires_FP_bit feature.
7591 (elt_width): Handle F16.
7592 (elt_class): Likewise.
7593 (elt_of_class_width): Likewise.
7594 (mode_of_elt): Refactor.
7595 (type_for_elt): Handle F16, fix error messages.
7596 (vectype_size): Handle T_float16x4.
7597 (vcvt_sh): New function.
7598 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7599 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7600 (string_of_mode): Handle V4HF.
7601 * doc/arm-neon-intrinsics.texi: Regenerate.
7602
1ef395e4
JG
76032013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7604
7605 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7606 format specifier in 'X' case.
7607
41c34e94
AM
76082013-04-25 Alan Modra <amodra@gmail.com>
7609
7610 PR target/57052
7611 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7612 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7613 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7614 Repeat for many other rotate/shift and mask patterns using subregs.
7615 Name lshiftrt insns.
7616 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7617 on WORDS_BIG_ENDIAN.
7618
b9a7eb5d
AM
76192013-04-25 Alan Modra <amodra@gmail.com>
7620
7621 * config.gcc: Support little-endian powerpc-linux targets.
7622 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7623 (LINK_OS_LINUX_SPEC): Define.
7624 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7625 Preserve MASK_LITTLE_ENDIAN.
7626 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7627 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7628 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7629 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7630 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7631 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7632 Correct fp word order for little-endian. Don't shift toc entries
7633 smaller than a word for little-endian.
7634 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7635 (bswapdi2 splits): Correct low-part subreg for little-endian.
7636 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7637 low/high where such is correct only for be.
7638 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7639 little-endian for -mcall-aixdesc.
7640
87f73374
AM
76412013-04-25 Alan Modra <amodra@gmail.com>
7642
7643 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7644 replace_equiv_address_nv.
7645
cabf91cd
AM
76462013-04-25 Alan Modra <amodra@gmail.com>
7647
7648 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7649
0ae24cc8
VM
76502013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7651
7652 Revert:
7653 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7654 * rtl.h (struct rtx_def): ...
cabf91cd 7655
77bce07c
VM
76562013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7657
7658 PR rtl-optimizations/57046
7659 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7660 for multi-reg splits.
7661
0db63e7f
L
76622013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7663
7664 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7665
3362b6b6
SA
76662013-04-24 Sterling Augustine <saugustine@google.com>
7667
7668 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7669 (comp_dir_string, debug_str_dwo_section): New.
7670 (DEBUG_STR_DWO_SECTION): Rename to ...
7671 (DEBUG_DWO_STR_SECTION): ... this.
7672 (DEBUG_NORM_STR_SECTION): Delete.
7673 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7674 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7675 (find_AT_string): Move most logic to ...
7676 (find_AT_string_in_table): ... here. New.
7677 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7678 add_skeleton_AT_string. Delete logic.
7679 (output_skeleton_debug_sections): Remove call to
7680 add_top_level_skeleton_die_attrs.
7681 (add_comp_dir_attribute): Move logic to comp_dir_string.
7682 (dwarf2out_init): Initialize debug_str_dwo_section.
7683 (output_indirect_string): Call find_string_form.
7684 (output_indirect_strings): Rewrite.
7685 (prune_unused_types): Empty skeleton_debug_str_hash.
7686 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7687 (dwarf2out_finish): Call output_indirect_strings.
7688
e93e18e9
PC
76892013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7690
7691 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7692
f6ce35ac
VM
76932013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7694
cabf91cd 7695 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
7696 (LRA_SUBREG_P): New macro.
7697 * recog.c (register_operand): Check LRA_SUBREG_P.
7698 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7699 stack frame.
7700 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7701 (lra_final_code_change): Skip subreg change for operators.
7702 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7703 if there are no operand changes.
7704 * lra-constraints.c (curr_insn_set): New.
7705 (match_reload): Set LRA_SUBREG_P.
7706 (emit_spill_move): Ditto.
7707 (check_and_process_move): Use curr_insn_set. Process only single
7708 set insns. Don't initialize sec_mem_p and change_p.
7709 (simplify_operand_subreg): Use LRA_SUBREG_P.
7710 (reg_in_class_p): New function.
7711 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7712 of #ifdef. Add code to remove cycling.
7713 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7714 non-null disp. Reload inner instead of disp when base and index
7715 are null. Try to put lo_sum into register.
7716 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 7717 (check_and_process_move): Move code for move cost check to
f6ce35ac 7718 simple_move_p. Remove equiv_substitution.
cabf91cd 7719 (simple_move_p): New function.
f6ce35ac
VM
7720 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7721 curr_insn_set. Call check_and_process_move only for single set
7722 insns. Use the new function. Move call of check_and_process_move
7723 after operand equiv substitution and address process.
7724
38047d90
JG
77252013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7726
7727 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7728 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7729 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7730
13f39b2e
PC
77312013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7732
7733 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7734
97c116dc
MP
77352013-04-24 Marek Polacek <polacek@redhat.com>
7736
7737 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7738 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7739 (select_loops_exit_conditions): Likewise.
7740 (number_of_iterations_for_all_loops): Likewise.
7741 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7742 (scev_analysis): Likewise.
7743
83082391
CM
77442013-04-02 Catherine Moore <clm@codesourcery.com>
7745 Chao-ying Fu <fu@mips.com>
7746
cabf91cd
AM
7747 * config/mips/micromips.md (jraddiusp): New pattern.
7748 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7749 instruction if possible.
83082391 7750
19e34aa2
AM
77512013-04-24 Alan Modra <amodra@gmail.com>
7752
7753 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7754
fdb6603c
JB
77552013-04-24 Julian Brown <julian@codesourcery.com>
7756 Chung-Lin Tang <cltang@codesourcery.com>
7757
7758 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
7759 dependency behavior in enumeration type DIE generation. Add TODO note
7760 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 7761
bf190e8d
LC
77622013-04-23 Lawrence Crowl <crowl@google.com>
7763
7764 * Makefile.in: Update as needed below.
7765
7766 * hash-table.h (class hash_table):
7767 Correct many methods with parameter types compare_type to the correct
7768 value_type. (Correct code was unlikely to notice the change.)
7769 (hash_table::elements_with_deleted) New.
7770 (class hashtable::iterator): New.
7771 (hashtable::begin()): New.
7772 (hashtable::end()): New.
7773 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7774
7775 * statistics.c (statistics_hashes):
7776 Change type to hash_table. Update dependent calls and types.
7777
7778 * tree-into-ssa.c (var_infos):
7779 Change type to hash_table. Update dependent calls and types.
7780
7781 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7782 Change type to hash_table. Update dependent calls and types.
7783
7784 * tree-ssa-loop-im.c (struct mem_ref.refs):
7785 Change type to hash_table. Update dependent calls and types.
7786
7787 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7788 Change type to hash_table. Update dependent calls and types.
7789
7790 * tree-ssa-sccvn.c (vn_tables_s::nary):
7791 Change type to hash_table. Update dependent calls and types.
7792 (vn_tables_s::phis): Likewise.
7793 (vn_tables_s::references): Likewise.
7794
7795 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7796 (vn_reference_eq): Update parameter and return types.
7797
7798 * tree-ssa-structalias.c (pointer_equiv_class_table):
7799 Change type to hash_table. Update dependent calls and types.
7800 (location_equiv_class_table): Likewise.
7801
7802 * tree-vect-data-refs.c: Consequential changes for making
7803 peeling a hash_table.
7804
7805 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7806 (destroy_loop_vec_info): Dependent hash_table update.
7807
7808 * tree-vectorizer.h (peeling_htab):
7809 Change type to hash_table. Update dependent calls and types.
7810
d70a81dd
SC
78112013-04-23 Shiva Chen <shiva0217@gmail.com>
7812
cabf91cd
AM
7813 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7814 to check the register content is equal or not.
7815 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7816 to assign register content record.
7817 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 7818 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
7819 * lra-int.h (struct lra_reg): Add offset member.
7820 (lra_reg_val_equal_p): New static inline function.
7821 (lra_update_reg_val_offset): New static inline function.
7822 (lra_assign_reg_val): New static inline function.
7823 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7824 to assign register content record.
7825 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 7826
b894a1f3
CM
78272013-04-23 Catherine Moore <clm@codesourcery.com>
7828
7829 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7830 operands. Record compression.
7831
ecd14de9
XDL
78322013-04-23 Xinliang David Li <davidxl@google.com>
7833
7834 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7835
92e776e9
RB
78362013-04-23 Richard Biener <rguenther@suse.de>
7837
7838 PR middle-end/57036
7839 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7840 parameter, only add abnormal goto edges from the copied body
7841 if the call could perform abnormal gotos.
7842 (copy_cfg_body): Adjust.
7843
a15ee567
SN
78442013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7845
7846 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7847
08c52234
AS
78482013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7849
7850 * coretypes.h (gimple_stmt_iterator): Add struct to make
7851 compatible with C.
7852
999c1171
RB
78532013-04-23 Richard Biener <rguenther@suse.de>
7854
7855 PR tree-optimization/57026
7856 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7857 from SSA names occuring in abnormal PHI nodes.
7858
53669259
AK
78592013-04-22 Andi Kleen <ak@linux.intel.com>
7860
7861 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7862
1a0ad150
AK
78632013-04-22 Andi Kleen <ak@linux.intel.com>
7864
7865 * lto/lto.c (print_lto_report_1): Declare early.
7866 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7867
057f8f20
AK
78682013-04-22 Andi Kleen <ak@linux.intel.com>
7869
7870 * common.opt (-flto-report-wpa): Add.
7871 * doc/invoke.texi (-flto-report-wpa): Add.
7872 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7873 (lto_main): dito.
7874
473b1e05
XDL
78752013-04-22 Xinliang David Li <davidxl@google.com>
7876
7877 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7878 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7879 * Makefile.in: New dependency
7880
cabf91cd 7881 David Daney <ddaney.cavm@gmail.com>
b1485a33 7882
cabf91cd
AM
7883 * configure.ac (gcc_cv_as_micromips_support): Use the
7884 --fatal-warnings option.
7885 * configure: Regenerate.
b1485a33 7886
829d0168
MP
78872013-04-22 Marek Polacek <polacek@redhat.com>
7888
7889 PR sanitizer/56990
7890 * tsan.c (instrument_expr): Don't instrument expression
7891 in case its size is zero.
7892
6d9b7208
UB
78932013-04-22 Uros Bizjak <ubizjak@gmail.com>
7894
7895 PR target/57032
7896 Revert:
7897 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7898
7899 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7900
ea679d55
JG
79012013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7902
7903 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7904 (gimple_stmt_iterator): New typedef.
7905 * gimple.h (gimple_stmt_iterator): Rename to...
7906 (gimple_stmt_iterator_d): ... This.
7907 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7908 trees be valid for GIMPLE and GENERIC.
7909 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7910 * gimple-fold.c (gimple_fold_call): Call target hook
7911 gimple_fold_builtin.
7912 * hooks.c (hook_bool_gsiptr_false): New.
7913 * hooks.h (hook_bool_gsiptr_false): New.
7914 * target.def (fold_stmt): New.
7915 * doc/tm.texi: Regenerate.
7916
88a581da
VM
79172013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7918
7919 PR target/57018
7920 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7921 a set sp if no stack realignment.
7922
92be22dc
NC
79232013-04-22 Nick Clifton <nickc@redhat.com>
7924
7925 * config.gcc (tilegx-linux): Extend extra_objs rather than
7926 overwriting it.
7927 (tilepro-linux): Likewise.
7928
0ddec79f
JG
79292013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7930
7931 * config/aarch64/aarch64-builtins.c
7932 (CF): Remove.
7933 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7934 (VAR<1-12>): Add MAP parameter.
7935 (BUILTIN_*): Likewise.
7936 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7937 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7938 (aarch64_ushl_n<mode>): Likewise.
7939 (aarch64_sshr_n<mode>): Likewise.
7940 (aarch64_ushr_n<mode>): Likewise.
7941 (aarch64_<maxmin><mode>): Likewise.
7942 (aarch64_sqrt<mode>): Likewise.
7943 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7944 (vshr<q>_n_*): Likewise.
7945
0050faf8
JG
79462013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7947
7948 * config/aarch64/aarch64-builtins.c
7949 (aarch64_simd_builtin_type_mode): Handle SF types.
7950 (sf_UP): Define.
7951 (BUILTIN_GPF): Define.
7952 (aarch64_init_simd_builtins): Handle SF types.
7953 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7954 (frecps): Likewise.
7955 (frecpx): Likewise.
7956 * config/aarch64/aarch64-simd.md
7957 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7958 (aarch64_frecpe<mode>): New.
7959 (aarch64_frecps<mode>): Likewise.
7960 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7961 (v8type): Add frecp<esx>.
7962 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7963 (aarch64_frecps<mode>): Likewise.
7964 * config/aarch64/iterators.md (FRECP): New.
7965 (frecp_suffix): Likewise.
7966 * config/aarch64/arm_neon.h
7967 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7968
0fad3dbc 79692013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
7970
7971 PR target/56995
7972 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7973 (REG_CLASS_NAMES): Idem.
7974 (REG_CLASS_CONTENTS): Idem.
7975 (REGCLASS_HAS_FP_REG): Idem.
7976 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7977 (sh_conditional_register_usage): Idem.
7978
3e8a33f9
JL
79792013-04-21 Jeff Law <law@redhat.com>
7980
7981 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7982 (ssa_forward_propagate_and_combine): Use it.
7983
f38e1b0a
VM
79842013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7985
7986 * lra.c: Update the flow chart diagram.
7987
682303da
VM
79882013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7989
7990 PR rtl-optimization/56847
7991 * lra-constraints.c (process_alt_operands): Discourage alternative
7992 with non-matche doffsettable memory constraint fro memory with
7993 known offset.
7994
f6b64c35
RB
79952013-04-19 Richard Biener <rguenther@suse.de>
7996
7997 PR tree-optimization/56982
7998 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7999 function.
8000 * gimplify.c (gimplify_call_expr): Notice special calls.
8001 (gimplify_modify_expr): Likewise.
8002 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8003 abnormal control flow receivers.
8004 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8005 in the same way as cfun->has_nonlocal_labels.
8006 (gimple_purge_dead_abnormal_call_edges): Likewise.
8007 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8008 receivers start a basic-block.
8009
01d8bf07
RB
80102013-04-19 Richard Biener <rguenther@suse.de>
8011
8012 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8013 member ...
8014 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8015 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8016 (SLP_TREE_LOAD_PERMUTATION): Add.
8017 (vect_transform_slp_perm_load): Adjust prototype.
8018 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8019 (vect_free_slp_instance): Likewise.
8020 (vect_create_new_slp_node): Likewise.
8021 (vect_supported_slp_permutation_p): Remove.
8022 (vect_slp_rearrange_stmts): Adjust.
8023 (vect_supported_load_permutation_p): Likewise. Inline
8024 vect_supported_slp_permutation_p here.
8025 (vect_analyze_slp_instance): Compute load permutations per
8026 slp node instead of per instance.
8027 (vect_get_slp_defs): Adjust.
8028 (vect_transform_slp_perm_load): Likewise.
8029 (vect_schedule_slp_instance): Remove redundant code.
8030 (vect_schedule_slp): Remove hack for PR56270, add it ...
8031 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8032 CSE loads for SLP. Adjust.
8033
ede22fc3
GY
80342013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8035
8036 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8037 spelling in two comments.
8038
67bc84fb
GY
80392013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8040
8041 PR target/56797
8042 * config/arm/arm.c (load_multiple_sequence): Require SP
8043 as base register for loads if SP is in the register list.
8044
e248d83f
MJ
80452013-04-19 Martin Jambor <mjambor@suse.cz>
8046
8047 PR tree-optimization/56718
8048 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8049 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8050 and made public. Adjusted all callers.
8051 (ipa_intraprocedural_devirtualization): New function.
8052 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8053 (ipa_intraprocedural_devirtualization): Likewise.
8054 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8055
4891e8f8
RB
80562013-04-19 Richard Biener <rguenther@suse.de>
8057
8058 PR tree-optimization/57000
8059 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8060
dad89f7c
TG
80612013-04-19 Terry Guo <terry.guo@arm.com>
8062
8063 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8064 Replace with ...
8065 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8066 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8067 (cortex_m4_fmacs): Use new reservations.
8068 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8069
72ea0d47
VM
80702013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8071
f1e6512c 8072 PR rtl-optimization/56999
72ea0d47
VM
8073 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8074 related code.
8075 (lra_coalesce): Remove split_origin_bitmap and related code.
8076 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8077 ranges if necessary.
8078
780a5b71
UB
80792013-04-18 Uros Bizjak <ubizjak@gmail.com>
8080
8081 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8082 New array.
8083 (ix86_expand_call): Remove clobbered_registers array and use
8084 x86_64_ms_sysv_extra_clobbered_registers instead.
8085 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8086 Declare here.
8087 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8088 predicate.
8089 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8090 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8091 (*call_value_rex64_ms_sysv): Ditto.
8092
6f5a366a
CC
80932013-04-18 Cary Coutant <ccoutant@google.com>
8094
8095 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8096 parent instead of die_mark.
8097
475b8f37
DN
80982013-04-18 Diego Novillo <dnovillo@google.com>
8099
8100 * gimple.c (create_gimple_tmp): New.
8101 (get_expr_type): New.
8102 (build_assign): New.
8103 (build_type_cast): New.
8104 * gimple.h (enum ssa_mode): Define.
8105 (gimple_seq_set_location): New.
8106 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 8107 to use build_assign and build_type_cast.
475b8f37 8108
08940f33
RB
81092013-04-18 Richard Biener <rguenther@suse.de>
8110
8111 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8112 handle negative step. Remove redundant checks.
8113 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8114 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8115 for negative step and grouped loads fail to vectorize.
8116
0e0f87d4
SB
81172013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8118
8119 * emit-rtl.c (reset_insn_used_flags): New function.
8120 (reset_all_used_flags): Use it.
8121 (verify_insn_sharing): New function.
8122 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8123
4c445590
JJ
81242013-04-18 Jakub Jelinek <jakub@redhat.com>
8125
8126 PR tree-optimization/56984
8127 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8128 and (x >> M) >= N don't register any assertion if N << M is the
8129 minimum value.
8130
6873ecab
SB
81312013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8132
8133 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8134 do not delete_insn insns that have not yet been emitted, only
8135 unlink them with remove_insn.
8136 * df-scan.c (df_insn_delete): Revert r197492.
8137
3ccb989e
SB
81382013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8139
8140 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8141 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8142
81432013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
8144
8145 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8146 define_insn_and_split.
8147 (and_scc,ior_scc,negscc): Likewise.
8148 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8149
3ccb989e 81502013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
8151
8152 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8153 can benefit from using a sequence of LDRD instructions in epilogue
8154 instead of a single LDM instruction.
8155
6d10a203
MLI
81562013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8157
8158 PR 45688
8159 * doc/extend.texi: Fix typo.
8160
6983e6b5
RB
81612013-04-17 Richard Biener <rguenther@suse.de>
8162
8163 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8164 (vect_build_slp_tree): ... here.
8165 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8166 match. Remove special-casing of mismatched complex loads.
8167 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8168 re-try the match with swapped commutative operands.
8169 (vect_supported_load_permutation_p): Remove special-casing of
8170 mismatched complex loads.
8171 (vect_analyze_slp_instance): Adjust.
8172
ef23e6a2
RB
81732013-04-17 Richard Biener <rguenther@suse.de>
8174
8175 PR rtl-optimization/56921
8176 * cfgloop.h (struct loop): Add simple_loop_desc member.
8177 (struct niter_desc): Mark with GTY(()).
8178 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8179 * loop-iv.c (get_simple_loop_desc): Likewise.
8180 (free_simple_loop_desc): Likewise.
8181
8182 Revert
8183 2013-04-16 Richard Biener <rguenther@suse.de>
8184
8185 PR rtl-optimization/56921
8186 * loop-init.c (pass_rtl_move_loop_invariants): Add
8187 TODO_do_not_ggc_collect to todo_flags_finish.
8188 (pass_rtl_unswitch): Same.
8189 (pass_rtl_unroll_and_peel_loops): Same.
8190 (pass_rtl_doloop): Same.
8191
fc6f94f5
EB
81922013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8193
8194 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8195 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8196 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8197 references.
8198 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8199 * tree-streamer.c (record_common_node): Adjust reference in comment.
8200
10a88311
TG
82012013-04-17 Terry Guo <terry.guo@arm.com>
8202
8203 * config/arm/cortex-m4.md: Add a new bypass.
8204
6d9b7208 82052013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
8206
8207 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8208 New pattern.
8209 (*subs_<optab><mode>_multp2): New pattern.
8210 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8211 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8212
6d9b7208 82132013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
8214
8215 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8216 (*subs_mul_imm_<mode>): New pattern.
8217
18a6701e
DE
82182013-04-16 David Edelsohn <dje.gcc@gmail.com>
8219
8220 PR target/56948
8221 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8222 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8223 (vsx_movti_32bit): Change j->wa to O->wa.
8224
07c37b2f
RB
82252013-04-16 Richard Biener <rguenther@suse.de>
8226
8227 PR rtl-optimization/56921
8228 * loop-init.c (pass_rtl_move_loop_invariants): Add
8229 TODO_do_not_ggc_collect to todo_flags_finish.
8230 (pass_rtl_unswitch): Same.
8231 (pass_rtl_unroll_and_peel_loops): Same.
8232 (pass_rtl_doloop): Same.
8233
0e0f87d4 82342013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
8235
8236 * config/arm/arm.c (emit_multi_reg_push): New declaration
8237 for an existing function.
8238 (arm_emit_strd_push): New function.
8239 (arm_expand_prologue): Used here.
8240 (arm_emit_ldrd_pop): New function.
8241 (arm_expand_epilogue): Used here.
8242 (arm_get_frame_offsets): Update condition.
8243 (arm_emit_multi_reg_pop): Add a special case for load of a single
8244 register with writeback.
8245
5e8e2af4
UB
82462013-04-16 Uros Bizjak <ubizjak@gmail.com>
8247
8248 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8249 description.
8250
9fd9ccf7
RB
82512013-04-16 Richard Biener <rguenther@suse.de>
8252
8253 PR tree-optimization/56756
8254 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8255 (first_mem_ref_loc): New.
8256 (execute_sm): Place the load temporarily before a previous
8257 access instead of in the latch edge to ensure its SSA dependencies
8258 are defined at points dominating the load.
8259
96fba521
SB
82602013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8261
4c8af858
SB
8262 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8263 correct fix by moving header and footer insn to the footer of
8264 the merged basic block. Clear BB_END of the merged-away block.
8265
96fba521
SB
8266 PR middle-end/43631
8267 * emit-rtl.c (make_note_raw): New function.
8268 (link_insn_into_chain): New static inline function.
8269 (add_insn): Use it.
8270 (add_insn_before, add_insn_after): Factor insn chain linking code...
8271 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8272 using link_insn_into_chain.
8273 (note_outside_basic_block_p): New helper function for emit_note_after
8274 and emit_note_before.
8275 (emit_note_after): Use nobb variant of add_insn_after if the note
8276 should not be contained in a basic block.
8277 (emit_note_before): Use nobb variant of add_insn_before if the note
8278 should not be contained in a basic block.
8279 (emit_note_copy): Use make_note_raw.
8280 (emit_note): Likewise.
8281 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8282 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8283 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8284 the moved barrier the tail of the basic block it follows.
8285 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8286
7b8265ba
JJ
82872013-04-15 Jakub Jelinek <jakub@redhat.com>
8288
8289 PR tree-optimization/56962
8290 * gimple-ssa-strength-reduction.c (record_increment): Only set
8291 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8292 either rhs1 or rhs2 is equal to c->base_expr.
8293
5185d248
RB
82942013-04-15 Richard Biener <rguenther@suse.de>
8295
8296 PR tree-optimization/56933
8297 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8298 member.
8299 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8300 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8301 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8302 dependence check ...
8303 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8304 ... here.
8305 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8306 GROUP_READ_WRITE_DEPENDENCE.
8307
a24243a0
AK
83082013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8309
8310 * emit-rtl.c (reset_all_used_flags): New function.
8311 (verify_rtl_sharing): Call reset_all_used_flags before and after
8312 performing the checks.
8313
1c50eada
KT
83142013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8315
8316 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8317 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8318 * config/arm/constraints.md (De): New constraint.
8319 * config/arm/neon.md (anddi3_neon): Delete.
8320 (neon_vand<mode>): Expand to standard anddi3 pattern.
8321 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8322 Move earlier in the file.
8323 (neon_inv_logic_op2): Likewise.
8324 (arm_anddi_operand_neon): New predicate.
8325
e927b6ad
RO
83262013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8327
8328 * configure.ac (gcc_cv_ld_as_needed): Set
8329 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8330 Use -z ignore, -z record on *-*-solaris2*.
8331 (HAVE_LD_AS_NEEDED): Update comment.
8332 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8333 * configure: Regenerate.
8334 * config.in: Regenerate.
8335 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8336 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8337 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8338 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8339 equivalents. Fix markup.
8340 * doc/tm.texi: Regenerate.
8341
e0ea8797
AH
83422013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8343
8344 * config/i386/i386.opt: New option mstack-protector-guard=.
8345 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8346 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8347 TARGET_SSP_TLS_GUARD.
8348 * config/i386/i386.c (ix86_option_override_internal): Set
8349 ix86_stack_protector_guard.
8350 * config/i386/i386.md (stack_protect_set): Enable for
8351 TARGET_SSP_TLS_GUARD only.
8352 (stack_protect_set_<mode>): Ditto.
8353 (stack_protect_test): Ditto.
8354 (stack_protect_test_<mode>): Ditto.
8355 * doc/invoke.texi (i386 Option): Document.
8356
811b72f9
EB
83572013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8358
8359 PR target/56890
8360 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8361 (S_MODES): Set H_MODE bit.
8362 (SF_MODES): Set only S_MODE and SF_MODE bits.
8363 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8364 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8365 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8366 <MODE_FLOAT>: Likewise.
8367
5529fdd6
JY
83682013-04-15 Joey Ye <joey.ye@arm.com>
8369
8370 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8371
517b1da2
JY
83722013-04-15 Joey Ye <joey.ye@arm.com>
8373
8374 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8375 for real far jump.
8376 (thumb_far_jump_used_p): Count instruction size and set
8377 far_jump_used.
8378
01007ae0
EB
83792013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8380
8381 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8382 * resource.c (mark_target_live_regs): Reformat conditional block.
8383
c46f6580
SB
83842013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8385
8386 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8387 notes, they are emitted only just before final.
8388 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8389
1f397f45
SB
83902013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8391
8392 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8393 * cfgrtl.c (delete_insn): Call it here instead.
8394 * lra-spills.c (lra_final_code_change): Use delete_insn.
8395 * haifa-sched.c (sched_remove_insn): Likewise.
8396 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8397 returning to the nop pool.
8398 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8399 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8400
58a51369
SB
84012013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8402
8403 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8404 * doc/tm.texi: Regenerated.
8405
33159866
UB
84062013-04-12 Uros Bizjak <ubizjak@gmail.com>
8407
8408 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8409 QImode checks.
8410
226e378f
SB
84112013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8412
8413 * df-core.c (df_find_def): Compare register numbers.
8414 (df_find_use): Likewise.
8415
fafb9b18
VM
84162013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8417
8418 PR target/56903
8419 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8420 lra_in_progress for return.
8421
9a946fd6
GY
84222013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8423
8424 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8425 define_insn into define_insn_and_split and emit movsicc patterns.
8426
41b83758
GY
84272013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8428
8429 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8430
d3afd9aa
RB
84312013-04-12 Richard Biener <rguenther@suse.de>
8432
8433 * tree-pass.h (TODO_do_not_ggc_collect): New.
8434 * passes.c (execute_one_ipa_transform_pass): Honor
8435 TODO_do_not_ggc_collect.
8436 (execute_one_pass): Likewise.
8437
8438 Revert
8439 2013-04-10 Richard Biener <rguenther@suse.de>
8440
8441 * passes.c (init_optimization_passes): Remove reload pass.
8442 * ira.c (do_reload): Merge into ...
8443 (ira): ... this.
8444 (rest_of_handle_reload): Remove.
8445 (pass_reload): Likewise.
8446 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8447 of reload for vzeroupper pass placement.
8448
06f9b387
JJ
84492013-04-12 Jakub Jelinek <jakub@redhat.com>
8450
8451 PR tree-optimization/56918
8452 PR tree-optimization/56920
8453 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8454 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8455 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8456 use wide_mul_with_sign method.
8457
953094d2
RB
84582013-04-12 Richard Biener <rguenther@suse.de>
8459
8460 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8461 not be considered a gimple constant.
8462
bb506982
MG
84632013-04-12 Marc Glisse <marc.glisse@inria.fr>
8464
8465 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8466 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8467 operations.
8468
4b84d650
JJ
84692013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8470 Jakub Jelinek <jakub@redhat.com>
8471
8472 * opts.c: Include diagnostic-color.h.
8473 (common_handle_option): Handle OPT_fdiagnostics_color_.
8474 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8475 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8476 (diagnostic-color.o): New.
8477 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8478 (diagnostic_color_rule): New enum.
8479 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8480 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8481 the location string.
8482 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8483 either NULL, or color kind.
8484 * diagnostic-color.c: New file.
8485 * diagnostic-color.h: New file.
8486 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8487 arguments.
8488 * doc/invoke.texi (-fdiagnostics-color): Document.
8489 * pretty-print.h (pp_show_color): Define.
8490 (struct pretty_print_info): Add show_color field.
8491 * diagnostic.c: Include diagnostic-color.h.
8492 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8493 macros. Colorize error:, warning: etc. strings and also the location
8494 string.
8495 (diagnostic_show_locus): Colorize the caret line.
8496 * pretty-print.c: Include diagnostic-color.h.
8497 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8498 inside of %< %> quotes or quoted through q format modifier.
8499
067a1e71
AK
85002013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8501
33159866 8502 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 8503
33159866 85042013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
8505
8506 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8507 code in CC_NZ mode.
8508 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8509 pattern.
8510
7b55f98f
MP
85112013-04-11 Marek Polacek <polacek@redhat.com>
8512
8513 PR tree-optimization/48184
33159866 8514 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 8515
966b587e
EB
85162013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8517
8518 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8519 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8520 (skip_simple_arithmetic): Tidy up.
8521 * tree.h (skip_simple_constant_arithmetic): Declare.
8522
33159866 85232013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
8524
8525 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8526
1d42c1ec
RB
85272013-04-11 Richard Biener <rguenther@suse.de>
8528
8529 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8530 generate vector constants.
8531
4ba5ea11
RB
85322013-04-11 Richard Biener <rguenther@suse.de>
8533
8534 PR tree-optimization/56878
8535 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8536 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8537 New function.
8538 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8539 Prefer to align the DR with the most invariant base address.
8540
f0defe58
SKS
85412013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8542
8543 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8544 comment.
8545
d07458be
JG
85462013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8547
8548 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8549 floating-point vector comparisons against 0.
8550
146b8692
JJ
85512013-04-11 Jakub Jelinek <jakub@redhat.com>
8552
8553 PR tree-optimization/56899
8554 * fold-const.c (extract_muldiv_1): Apply distributive law
8555 only if TYPE_OVERFLOW_WRAPS (ctype).
8556
b8578ff7
BC
85572013-04-11 Bin Cheng <bin.cheng@arm.com>
8558
8559 PR target/56124
8560 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8561 loading has side effect.
8562
0ea8a6f9
SB
85632013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8564
8565 * config/sparc/sparc.c: Include tree-pass.h.
8566 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8567 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8568 head of file. Change return type. Split off gate function.
8569 (sparc_gate_work_around_errata): New function.
8570 (pass_work_around_errata): New pass definition.
8571 (insert_pass_work_around_errata) New pass insert definition to
8572 insert pass_work_around_errata just after delayed-branch scheduling.
8573 (sparc_option_override): Insert the pass.
8574 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8575
42e37616
DM
85762013-04-10 David S. Miller <davem@davemloft.net>
8577
89deeb3b
DM
8578 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8579 or -mcpu=hypersparc.
8580
42e37616
DM
8581 * target.def (cstore_mode): New hook.
8582 * target.h: Include insn-codes.h
8583 * targhooks.c: Likewise.
8584 (default_cstore_mode): New function.
8585 * targhooks.h: Declare it.
8586 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8587 * doc/tm.texi: Rebuild.
8588 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8589 target hook, rather than inspecting the insn_data.
8590 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8591 (TARGET_CSTORE_MODE): Redefine.
8592 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8593 result patterns.
8594 * config/sparc/predicates.md (cstore_result_operand): New special
8595 predicate.
8596 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8597 Use it for operand 0.
8598 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8599 (*snesi_special): Likewise.
8600 (*snesi_zero): Likewise.
8601 (*seqsi_zero): Likewise.
8602 (*sltu_insn): Likewise.
8603 (*sgeu_insn): Likewise.
8604 (*seqdi_special): Make operand 0 and comparison operation be of
8605 DImode.
8606 (*snedi_special): Likewise.
8607 (*snedi_special_vis3): Likewise.
8608 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8609 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8610 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8611 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8612 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8613 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8614 (*sltu_extend_sp64): Likewise.
8615 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8616 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8617 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8618 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8619 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8620
95ca411e
YZ
86212013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8622
8623 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8624 (aarch64_start_file): Use the new function.
8625
6782438d 86262013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 8627 Jason Merrill <jason@redhat.com>
6782438d
SKS
8628
8629 * common.opt: Add -gdwarf.
8630 * opts.c (common_handle_option): Handle it.
8631 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8632
bb313b93
RB
86332013-04-10 Richard Biener <rguenther@suse.de>
8634
8635 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8636 (execute_one_ipa_transform_pass): But unconditionally here.
8637 (execute_one_pass): And here.
8638 (init_optimization_passes): Remove reload pass.
8639 * tree-pass.h (TODO_ggc_collect): Remove.
8640 (pass_reload): Likewise.
8641 * ira.c (do_reload): Merge into ...
8642 (ira): ... this.
8643 (rest_of_handle_reload): Remove.
8644 (pass_reload): Likewise.
8645 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8646 of reload for vzeroupper pass placement.
8647 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8648 and todo_flags_finish of all passes.
8649
793d9a16
RB
86502013-04-10 Richard Biener <rguenther@suse.de>
8651
8652 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8653 first_const_oprnd field, rename first_def_type to first_op_type.
8654 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8655 (vect_get_and_check_slp_defs): Always use the type of the
8656 operand. Allow mixed vect_external_def, vect_constant_def types.
8657 (vect_get_constant_vectors): Handle mixed vect_external_def,
8658 vect_constant_def types.
8659
ee8a9b7b
JR
86602013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8661
8662 PR tree-optimization/55524
8663 * tree-ssa-math-opts.c
8664 (convert_mult_to_fma): Don't use an fms construct
8665 when we don't have an fms operation, but fnma, and it looks
8666 likely that we'll be able to use the latter.
8667
6957a6f6
ZZ
86682013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8669
8670 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8671 function.
8672 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8673 inline fail caused by overwritable functions.
8674
34ab4a5b
CJW
86752013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8676
8677 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8678 unnecessary bits in the constant power of two case.
8679
abf9bfbc
RB
86802013-04-10 Richard Biener <rguenther@suse.de>
8681
8682 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8683 broken code swapping operands.
8684 (vect_build_slp_tree): Do not compute load permutations here.
8685 (vect_analyze_slp_instance): Compute load permutations here,
8686 after building the SLP tree.
8687
f408477e
CB
86882013-04-09 Christian Bruel <christian.bruel@st.com>
8689
8690 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8691 of next/prev_real_insn.
8692
5ac42672
JH
86932013-04-09 Jan Hubicka <jh@suse.cz>
8694
abf9bfbc
RB
8695 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8696 Drop aliased parameter.
5ac42672
JH
8697 (function_and_variable_visibility): Do not handle alias pairs.
8698 * cgraph.c (varpool_externally_visible_p): Update prototype.
8699 * varpool.c (varpool_add_new_variable): Update.
8700
5017f1d2
KT
87012013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8702
8703 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8704
48eecbee
SB
87052013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8706
a949cf1c
SB
8707 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8708
48eecbee
SB
8709 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8710
75ef8e3d
MP
87112013-04-09 Marek Polacek <polacek@redhat.com>
8712
8713 PR tree-optimization/48762
33159866 8714 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 8715
23847df4
RB
87162013-04-09 Richard Biener <rguenther@suse.de>
8717
8718 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8719 dealing with cost.
8720 (vect_build_slp_tree): Likewise.
8721 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8722 calculating the cost of a SLP instance.
8723 (vect_analyze_slp_instance): Use it from here, after building
8724 the SLP tree.
8725
ea3a0fde
JJ
87262013-04-09 Jakub Jelinek <jakub@redhat.com>
8727
8728 PR middle-end/56883
8729 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8730 expand_omp_for_static_chunk): Use simple_p = true in
8731 force_gimple_operand_gsi calls when assigning to addressable decls.
8732
a32dfe9d
JL
87332013-04-09 Jeff Law <law@redhat.com>
8734
8735 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8736 when the boolean was created by converting a wider object which
8737 had a boolean range.
8738
d755c7ef
RB
87392013-04-09 Richard Biener <rguenther@suse.de>
8740
8741 * tree-vectorizer.h (slp_void_p): Remove.
8742 (slp_tree): Typedef before _slp_tree declaration.
8743 (struct _slp_tree): Use a vector of slp_tree as children.
8744 (vect_get_place_in_interleaving_chain): Remove.
8745 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8746 Move ...
8747 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8748 and make static.
8749 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8750 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8751 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8752 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8753 Use slp_node instead of slp_void_p and adjust.
8754
3d741091
RB
87552013-04-09 Richard Biener <rguenther@suse.de>
8756
8757 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8758 work that is not necessary.
8759
39307ba7
JJ
87602013-04-09 Jakub Jelinek <jakub@redhat.com>
8761
8762 PR tree-optimization/56854
8763 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8764 forward into clobber stmts if it would change MEM_REF lhs into
8765 non-MEM_REF.
8766
343881fd
MK
87672013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8768
8769 * tree.c (type_hash_lookup, type_hash_add): Make static.
8770 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8771
3922658a
RB
87722013-04-09 Richard Biener <rguenther@suse.de>
8773
8774 * tree.h (unsave_expr_now): Remove.
8775 * tree-inline.c (mark_local_for_remap_r): Remove.
8776 (unsave_expr_1): Likewise.
8777 (unsave_r): Likewise.
8778 (unsave_expr_now): Likewise.
8779 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8780 (propagate_tree_value): Likewise.
8781
9fb6b620
SB
87822013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8783
8784 * doc/rtl.texi (sequence): Rewrite documentation to match the
8785 current use of SEQUENCE rtl objects.
8786 * rtl.def (SEQUENCE): Likewise.
8787
8788 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8789 Update documentation.
8790 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8791 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8792
8793 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8794
8ddb5a29
TJ
87952013-04-08 Teresa Johnson <tejohnson@google.com>
8796
8797 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8798 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 8799 methods.
8ddb5a29
TJ
8800 (estimate_edge_size_and_time): Add comment to suggest using rounding
8801 methods.
8802 (estimate_node_size_and_time): Ditto.
8803 (remap_edge_change_prob): Use helper rounding divide methods.
8804 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8805 (gimple_mod_pow2_value_transform): Ditto.
8806 (gimple_mod_subtract_transform): Ditto.
8807 (gimple_ic_transform): Ditto.
8808 (gimple_stringops_transform): Ditto.
8809 * stmt.c (conditional_probability): Ditto.
8810 (emit_case_dispatch_table): Ditto.
8811 * lto-cgraph.c (merge_profile_summaries): Ditto.
8812 * tree-optimize.c (execute_fixup_cfg): Ditto.
8813 * cfgcleanup.c (try_forward_edges): Ditto.
8814 * cfgloopmanip.c (scale_loop_profile): Ditto.
8815 (loopify): Ditto.
8816 (duplicate_loop_to_header_edge): Ditto.
8817 (lv_adjust_loop_entry_edge): Ditto.
8818 * tree-vect-loop.c (vect_transform_loop): Ditto.
8819 * profile.c (compute_branch_probabilities): Ditto.
8820 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8821 * lto-streamer-in.c (input_cfg): Ditto.
8822 * gimple-streamer-in.c (input_bb): Ditto.
8823 * ipa-cp.c (update_profiling_info): Ditto.
8824 (update_specialized_profile): Ditto.
8825 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8826 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 8827 rounding methods.
8ddb5a29
TJ
8828 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8829 (compute_trg_info): Ditto.
8830 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8831 (purge_dead_edges): Ditto.
8832 * loop-unswitch.c (unswitch_loop): Ditto.
8833 * cgraphclones.c (cgraph_clone_edge): Ditto.
8834 (cgraph_clone_node): Ditto.
8835 * tree-inline.c (copy_bb): Ditto.
8836 (copy_edges_for_bb): Ditto.
8837 (initialize_cfun): Ditto.
8838 (copy_cfg_body): Ditto.
8839 (expand_call_inline): Ditto.
8840
661e6bd7
KT
88412013-04-08 Kai Tietz <ktietz@redhat.com>
8842
8843 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8844 TARGET_CYGWIN64 by TARGET_64BIT.
8845
105766f3
JR
88462013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8847
8848 * config/epiphany/epiphany.md (GPR_1): New constant.
8849 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8850 * config/epiphany/epiphany.c (gen_compare_reg):
8851 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8852 is already in place.
8853 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8854 Don't require being called during rtl expansion; If y operlaps r0,
8855 return 0.
8856 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8857 (epiphany_expand_epilogue): Likewise.
8858
8afab237
JR
8859 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8860 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 8861 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 8862
fa7707d6
JR
8863 * config/epiphany/constraints.md (CnL): New constraint.
8864 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8865 * config/epiphany/predicates.md (add_operand): Allow 1024.
8866
5138e18d
JR
8867 * config/epiphany/epiphany.md (logical_op): New code iterator.
8868 (op_mnc): New code attribute.
8869 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8870 (mov_f+1, mov_f+2): New peephole2 patterns.
8871
2ccc703d
JR
8872 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8873 (cstoresi4): Also allow re-use of zero result when doing a NE
8874 comparison to a non-zero operand.
aefb0819 8875 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 8876
093ac0a5
JR
8877 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8878 Use gen_addsi3_i / gen_subsi3_i.
8879
f223bb13
JJ
88802013-04-08 Jakub Jelinek <jakub@redhat.com>
8881
8882 PR c++/34949
8883 PR c++/50243
8884 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8885 contain anything but clobbers, at most one __builtin_stack_restore,
8886 optionally debug stmts and final resx, and if it has at least one
8887 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8888 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8889 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8890 which isn't defaut definition, remove them.
8891 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8892 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8893 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8894 with MEM_REF LHS with SSA_NAME address.
8895
4481581f
JL
88962013-04-08 Jeff Law <law@redhat.com>
8897
8898 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 8899
451dabda
RB
89002013-04-08 Richard Biener <rguenther@suse.de>
8901
8902 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8903 extra newline.
8904 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8905 determined vector type.
8906 (vect_analyze_data_refs): Likewise.
8907 (vect_get_new_vect_var): Adjust.
8908 (vect_create_destination_var): Preserve SSA name versions.
8909 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8910 not dump anything here.
8911
3b088b47
JR
89122013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8913
8914 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8915 Add member lr_slot_known.
8916 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8917 if necessary.
8918 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8919 Remove code that sets lr_slot_offset according to what a previous
8920 version of epiphany_emit_save_restore used to do.
8921 (epiphany_emit_save_restore): When doing an lr save or restore,
8922 set/verify lr_slot_known and lr_slot_offset.
8923
d8484d41
XQ
89242013-04-08 Xinyu Qi <xyqi@marvell.com>
8925
33159866
UB
8926 PR target/54338
8927 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
8928 in ALL_REGS.
8929
481be1c4
RB
89302013-04-08 Richard Biener <rguenther@suse.de>
8931
8932 * alias.c (find_base_term): Fix thinko in previous change.
8933
401f3a81
JJ
89342013-04-08 Jakub Jelinek <jakub@redhat.com>
8935
8936 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8937 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8938 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8939 if possible to compute val.
8940 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8941 For QImode integers don't require anything about precision. Use
8942 const_with_all_bytes_same to find out if the constant doesn't have
8943 repeated bytes in it.
8944
03ed99a8
AK
89452013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8946
8947 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8948 within mode size.
8949
781b2e62
MP
89502013-04-08 Marek Polacek <polacek@redhat.com>
8951
8952 PR rtl-optimization/48182
8953 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8954 value to 1.
8955
27e430a2
JDA
89562013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8957
8958 PR target/55487
8959 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8960 nuses, make sure we have a label.
8961
4902aa64
BS
89622013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8963
8964 PR target/56843
8965 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8966 (rs6000_emit_swdiv_low_precision): Remove.
8967 (rs6000_emit_swdiv): Rewrite to handle between one and four
8968 iterations of Newton-Raphson generally; modify required number of
8969 iterations for some cases.
8970 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8971
7bca81dc
SB
89722013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8973
8974 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8975 set-but-unused variable.
8976
8977 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8978 basic blocks of released function bodies garbage-collectable.
8979
8980 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8981 (struct rtl_opt_pass): Add TODO_df_finish.
8982
8983 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8984
4542a38a
GY
89852013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8986
8987 * config/arm/constraints.md (q): New constraint.
8988 * config/arm/ldrdstrd.md: New file.
8989 * config/arm/arm.md (ldrdstrd.md) New include.
8990 (arm_movdi): Use "q" instead of "r" constraint
8991 for double-word memory access.
8992 (movdf_soft_insn): Likewise.
8993 * config/arm/vfp.md (movdi_vfp): Likewise.
8994 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 8995 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
8996 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8997 (mem_ok_for_ldrd_strd): Likewise.
8998 (output_move_double): Update assertion.
8999
2385b218
GY
90002013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9001
9002 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9003
75fe1cb5
GY
90042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9005
9006 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9007 define_insn_and_split.
9008 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9009
dd660e8e
GY
90102013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9011
9012 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9013 define_insn_and_split.
33159866 9014 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
9015 (shiftsi3_compare): New pattern.
9016 (rrx): New pattern.
9017 * config/arm/unspecs.md (UNSPEC_RRX): New.
9018
045e472c
GY
90192013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9020
9021 * config/arm/arm.md (negdi_extendsidi): New pattern.
9022 (negdi_zero_extendsidi): Likewise.
9023
3f3bf1a8
GY
90242013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9025
9026 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9027 define_insn_and_split.
9028 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9029 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9030
b0b49556
GY
90312013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9032
9033 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9034 define_insn_and_split.
9035 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9036 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9037
d633dd84
GY
90382013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9039
9040 * config/arm/arm.md (subsi3_carryin): New pattern.
9041 (subsi3_carryin_const): Likewise.
9042 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9043 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9044
f4499066
GY
90452013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9046
9047 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9048
ceef6fd9
GY
90492013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9050
9051 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 9052 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 9053
ddbdd8a7
KT
90542013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9055
9056 * config/arm/arm.c (arm_expand_builtin): Change fcode
9057 type to unsigned int.
9058
8456d78a
RR
90592013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9060
9061 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9062
526c230f
ILT
90632013-04-04 Ian Lance Taylor <iant@google.com>
9064
33159866
UB
9065 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9066 language standard.
526c230f 9067
3cfbe04d
SB
90682013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9069
9070 PR middle-end/56729
9071 * df-scan.c (df_insn_delete): Disable failing assert.
9072
dfa3f8d0
KT
90732013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9074
9075 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9076 New function prototype.
9077 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9078 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9079 (arm_builtin_vectorized_function): New function.
9080
f7837758
KT
90812013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9082
9083 * config/arm/arm_neon_builtins.def: New file.
9084 * config/arm/arm.c (neon_builtin_data): Move contents to
9085 arm_neon_builtins.def.
9086 (enum arm_builtins): Include neon builtin definitions.
9087 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 9088 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 9089
39c1b6db
MP
90902013-04-04 Marek Polacek <polacek@redhat.com>
9091
9092 PR tree-optimization/48186
9093 * predict.c (maybe_hot_frequency_p): Return false if
9094 HOT_BB_FREQUENCY_FRACTION is 0.
9095 (cgraph_maybe_hot_edge_p): Likewise.
9096
314f64eb
RB
90972013-04-04 Richard Biener <rguenther@suse.de>
9098
9099 PR tree-optimization/56826
9100 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9101 more accurately.
9102
51a905b2
RB
91032013-04-04 Richard Biener <rguenther@suse.de>
9104
9105 PR tree-optimization/56213
9106 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 9107 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 9108
f1bf4f3a
RB
91092013-04-04 Richard Biener <rguenther@suse.de>
9110
9111 PR tree-optimization/56837
9112 * tree-loop-distribution.c (classify_partition): For non-zero
9113 values require that the value has the same precision as its
9114 mode to be useful as memset value.
9115
0bca7ded
NC
91162013-04-03 Nick Clifton <nickc@redhat.com>
9117
33159866 9118 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
9119 (fmssf4): Use fmsf.s on E3V5 architectures.
9120 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9121 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9122
b4019227
JL
91232013-04-03 Jeff Law <law@redhat.com>
9124
9125 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9126 (lra-eliminations.o): Likewise.
9127
f57ddb5b
TJ
91282013-04-03 Teresa Johnson <tejohnson@google.com>
9129
9130 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 9131 compute_working_sets here from profile.c.
f57ddb5b 9132 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
9133 (gcov_working_set_t): Moved typedef here from basic-block.h
9134 (compute_working_set): Declare.
f57ddb5b
TJ
9135 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9136 (get_working_sets): Renamed from compute_working_set,
33159866 9137 replace most of body with call to new compute_working_sets.
f57ddb5b 9138 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
9139 to get_working_sets.
9140 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 9141 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 9142 to get_working_sets.
f57ddb5b
TJ
9143 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9144 * gcov-dump.c (dump_working_sets): New function.
9145
5e0919f1
KZ
91462013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9147
9148 * hwint.c (sext_hwi, zext_hwi): New functions.
9149 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9150 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9151 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9152 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9153 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9154 (sext_hwi, zext_hwi): New functions.
0bca7ded 9155
be672e08
JL
91562013-04-03 Jeff Law <law@redhat.com>
9157
9158 PR tree-optimization/56799
33159866
UB
9159 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9160 back test for widening conversion erroneously dropped in prior change.
be672e08 9161
9d821fa5
KT
91622013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9163
9164 PR target/56809
9165 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9166 instead of next_real_insn.
9167
71c581e7
MP
91682013-04-03 Marek Polacek <polacek@redhat.com>
9169
9170 PR sanitizer/55702
33159866 9171 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 9172
4a32ef80
KT
91732013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9174
9175 PR target/56809
9176 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9177 next_real_insn.
9178 (thumb1_output_casesi): Likewise.
9179 (thumb2_output_casesi): Likewise.
9180
1b2253d4
RB
91812013-04-03 Richard Biener <rguenther@suse.de>
9182
9183 PR tree-optimization/56817
9184 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9185 Split out ...
9186 (tree_unroll_loops_completely_1): ... new function to manually
9187 walk the loop tree, properly defering outer loops of unrolled
9188 loops to later iterations.
9189
38000232
MG
91902013-04-03 Marc Glisse <marc.glisse@inria.fr>
9191
9192 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9193 (vectorizable_load): Likewise.
9194 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9195 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9196
3fa35298
MG
91972013-04-03 Marc Glisse <marc.glisse@inria.fr>
9198
9199 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9200 BIT_FIELD_REF.
9201
b3d45ff0
UW
92022013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9203
9204 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9205
ec9202a8
BC
92062013-04-03 Bin Cheng <bin.cheng@arm.com>
9207
9208 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9209
6805bd36
MG
92102013-04-03 Marc Glisse <marc.glisse@inria.fr>
9211
9212 PR tree-optimization/56790
33159866
UB
9213 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9214 folding.
6805bd36 9215
da694a77
MG
92162013-04-03 Marc Glisse <marc.glisse@inria.fr>
9217
9218 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9219 Handle VEC_MERGE.
9220 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9221 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9222 equal arguments.
9223
4e7d7b3d
JJ
92242013-04-03 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR c/19449
9227 * tree.h (force_folding_builtin_constant_p): New decl.
9228 * builtins.c (force_folding_builtin_constant_p): New variable.
9229 (fold_builtin_constant_p): Fold immediately also if
9230 force_folding_builtin_constant_p.
9231
e6c9d234
RB
92322013-04-03 Richard Biener <rguenther@suse.de>
9233
9234 PR tree-optimization/56812
9235 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9236 DRs of the same interleaving chain are independent.
9237
984d07dd
JM
92382013-04-02 Jason Merrill <jason@redhat.com>
9239
9240 * gdbinit.in (pbb): Use debug fn.
9241
622849c9
LC
92422013-04-02 Lawrence Crowl <crowl@google.com>
9243
9244 * sese.h (struct ivtype_map_elt_s): Remove unused.
9245 (extern debug_ivtype_map): Remove unused.
9246 (extern eq_ivtype_map_elts): Remove unused.
9247 * sese.c (debug_ivtype_map): Removed unused.
9248 (debug_ivtype_map_1): Removed unused.
9249 (debug_ivtype_elt): Remove unused.
9250 (eq_ivtype_map_elts): Remove unused.
9251
9252
82c0e1a0
KT
92532013-04-02 Kai Tietz <ktietz@redhat.com>
9254
9255 PR target/52790
9256 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9257 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
9258 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9259 function.
82c0e1a0
KT
9260 (legitimize_pe_coff_symbol): Likewise.
9261 (is_imported_p): New helper-function.
9262 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9263 for Windows x64 targets.
9264 (ix86_expand_prologue): Optimize for pe-coff targets.
9265 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9266 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9267 medium/large code-model.
9268 (legitimize_pic_address): Likewise.
9269 (legitimize_tls_address): Likewise.
9270 (ix86_expand_call): Likewise.
9271 (x86_output_mi_thunk): Likewise.
9272 (get_dllimport_decl): Add new beimport argument.
9273 (construct_plt_address): Don't assert for x64 pe-coff targets.
9274 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9275 targets.
9276 (SYMBOL_FLAG_STUBVAR): New macro.
9277 (SYMBOL_REF_STUBVAR_P): Likewise.
9278 * config/i386/winnt.c (stub_list): New structure.
9279 (stub_head): New local variable.
9280 (i386_pe_record_stub): New function.
9281 (i386_pe_file_end): Emit refptr-stubs.
9282
5d751b0c
JJ
92832013-04-02 Jakub Jelinek <jakub@redhat.com>
9284
09bb4c99
JJ
9285 PR rtl-optimization/56745
9286 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9287 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9288
a1d8947a
JJ
9289 PR c++/34949
9290 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9291 and both of them are MEM_REFs, just compare first argument for
9292 equality and attempt to deal even with differing offsets.
9293
5d751b0c
JJ
9294 PR c++/34949
9295 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9296 of gimple_clobber_p to be MEM_REF.
9297 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9298 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9299 after gimplification.
9300 * asan.c (get_mem_ref_of_assignment): Don't instrument
9301 gimple_clobber_p stmts.
9302 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9303 gimple_clobber_p stmt if they have MEM_REF lhs and
9304 are dead because of another gimple_clobber_p stmt.
9305 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9306 gimple_clobber_p stmts like debug stmts.
9307 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9308 that refer to unused VAR_DECLs or uninitialized values.
9309 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9310 gimple_clobber_p stmts if they refer to removed parameters.
9311 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9312 formatting.
9313
e594716a
UB
93142013-04-02 Uros Bizjak <ubizjak@gmail.com>
9315
9316 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9317 using SWI48 mode attribute.
9318
7a80735b
WM
93192013-04-02 Wei Mi <wmi@google.com>
9320
9321 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9322 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9323 *<rotate_insn><mode>3_mask in i386.md.
9324
f423a9e4
AI
93252013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9326
9327 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9328
90eb75f2
RB
93292013-04-02 Richard Biener <rguenther@suse.de>
9330
9331 PR tree-optimization/56778
9332 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9333 Runtime alias tests are not supported for gather loads.
9334 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9335 stmts referenced from SSA operands before updating SSA form.
9336
d8c69a92
IC
93372013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9338 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9339
9340 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
9341 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9342 * config/arm/cortex-a53.md: New file.
9343 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9344 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9345 * config/arm/arm.c (arm_issue_rate): Likewise.
9346 * config/arm/arm-tune.md: Regenerate
9347 * config/arm/arm-tables.opt: Regenerate.
9348 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 9349
239eb04c
ZC
93502013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9351
9352 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9353 non-static link.
9354
c902d3c8
SN
93552013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9356
d8c69a92
IC
9357 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9358 scalar load/store operations using B/H registers.
c902d3c8
SN
9359 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9360
051d0e2f
SN
93612013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9362
9363 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9364 scalar move.
9365 * config/aarch64/aarch64.c
9366 (aarch64_simd_scalar_immediate_valid_for_move): New.
9367 * config/aarch64/aarch64-protos.h
9368 (aarch64_simd_scalar_immediate_valid_for_move): New.
9369 * config/aarch64/constraints.md (Dh, Dq): New.
9370 * config/aarch64/iterators.md (hq): New.
9371
0ee1e3d9
EB
93722013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9373
9374 * reorg.c (get_branch_condition): Deal with conditional returns.
9375 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9376
136fb3f7
WM
93772013-04-01 Wei Mi <wmi@google.com>
9378
9379 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9380 Truncate operand 2 using %b asm operand modifier.
9381 (*<shift_insn><mode>3_mask): Ditto.
9382 (*<rotate_insn><mode>3_mask): Ditto.
9383
6388c738
SB
93842013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9385
9386 PR middle-end/56798
9387 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9388
f7a4d826
KK
93892013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9390
9391 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9392 of next_real_insn.
9393 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9394
4b943a49
LC
93952013-03-30 Lawrence Crowl <crowl@google.com>
9396
9397 * dse.c (clear_alias_sets): Remove never set.
9398 (disqualified_clear_alias_sets): Remove never set.
9399 (clear_alias_mode_pool): Remove never set.
9400 (dse_step0): Remove condition that is never true.
9401 (canon_address): Remove condition that is never true.
9402 (dse_step7): Remove condition that is never true.
9403 (rest_of_handle_dse): Remove condition that is never true.
9404 (rest_of_handle_dse::did_global): Remove never read from above.
9405 (dse_step2_spill): Remove never called from above.
9406 (dse_step5_spill): Remove never called from above.
9407
39718607
SB
94082013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9409
da5c6bde
SB
9410 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9411 JUMP_TABLE_DATA changes.
9412 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9413 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9414 (Insns) <jump_table_data>: New entry.
9415 * doc/tm.texi: Regenerate.
9416
39718607
SB
9417 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9418
9419 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9420 for table jump at the end of a basic block using tablejump_p.
9421 * targhooks.c (default_invalid_within_doloop): Likewise.
9422 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9423 target hook implementation that is identical to the default hook.
9424 (rs6000_invalid_within_doloop): Remove.
9425
9426 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9427 unused variable from tablejump_p call.
9428
9429 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9430 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9431 (INSN_DELETED_P): Likewise.
9432 (emit_jump_table_data): New prototype.
9433 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9434 after 4th as unused.
9435 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9436 * sched-vis.c (print_insn): Likewise.
9437 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9438 insn for compatibility with back ends that use next_active_insn to
9439 identify jump table data.
9440 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9441 (remove_insn): Likewise.
9442 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9443 to be emitted.
9444 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9445 (emit_jump_table_data): New function.
9446
9447 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9448 basic block, a JUMP_TABLE_DATA never is.
9449 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9450 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9451 off from code handling real insns.
9452 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9453 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9454 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9455 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9456 is not a NONDEBUG_INSN_P.
9457 * ira-costs.c (scan_one_insn): Likewise.
9458 * jump.c (mark_all_labels): Likewise.
9459 (mark_jump_label_1): Likewise.
9460 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9461 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9462 a basic block.
9463 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9464 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9465 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9466 JUMP_TABLE_DATA_P insns.
9467 (calculate_elim_costs_all_insns): Likewise.
9468 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9469 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9470 (delete_output_reload): Code style fixups.
9471 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9472 insn flags on this non-insn.
9473 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9474 as scheduling barriers, for pre-change compatibility.
9475 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9476 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9477
9478 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9479 redundant JUMP_TABLE_DATA_P test.
9480 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9481 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9482 (frv_for_each_packet): Likewise.
9483 * config/i386/i386.c (min_insn_size): Likewise.
9484 (ix86_avoid_jump_mispredicts): Likewise.
9485 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9486 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9487 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9488 (mips16_insn_length): Robustify.
9489 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9490 (mips16_split_long_branches): Likewise.
9491 * config/pa/pa.c (pa_combine_instructions): Likewise.
9492 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9493 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9494 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9495 as contributing to pool range lengths.
9496 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9497 Remove redundant JUMP_TABLE_DATA_P test.
9498 (sh_loop_align): Likewise.
9499 (split_branches): Likewise.
9500 (sh_insn_length_adjustment): Likewise.
9501 * config/spu/spu.c (get_branch_target): Likewise.
9502
0208f7da
JH
95032013-03-29 Jan Hubicka <jh@suse.cz>
9504
9505 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9506 gcov streaming; stream hot bb threshold to ltrans.
9507 * predict.c (get_hot_bb_threshold): Break out from ....
9508 (maybe_hot_count_p): ... here.
9509 (set_hot_bb_threshold): New function.
9510 * lto-section-in.c (lto_section_name): Add profile.
9511 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9512 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9513 and data-streamer.h
9514 (histogram_entry): New structure.
9515 (histogram, histogram_pool): New global vars.
9516 (histogram_hash): New structure.
9517 (histogram_hash::hash): New method.
9518 (histogram_hash::equal): Likewise.
9519 (account_time_size): New function.
9520 (cmp_counts): New function.
9521 (dump_histogram): New function.
9522 (ipa_profile_generate_summary): New function.
9523 (ipa_profile_write_summary): New function.
9524 (ipa_profile_read_summary): New function.
9525 (ipa_profile): Decide on threshold.
e594716a
UB
9526 (pass_ipa_profile): Add ipa_profile_write_summary and
9527 ipa_profile_read_summary.
0208f7da
JH
9528 * Makefile.in (ipa.o): Update dependencies.
9529 * lto-streamer.h (LTO_section_ipa_profile): New section.
9530
5a6ccc94
GDR
95312013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9532
9533 * tree.h (VAR_P): New.
9534
39385fa6
PC
95352013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9536
9537 PR lto/56777
9538 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9539
34f0d87a
SB
95402013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9541
9542 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9543 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9544 (control_flow_insn_p): Likewise.
9545 * cfgrtl.c (duplicate_insn_chain): Likewise.
9546 * final.c (get_attr_length_1): Likewise.
9547 (shorten_branches): Likewise.
9548 (final_scan_insn): Likewise.
9549 * function.c (instantiate_virtual_regs): Likewise.
9550 * gcse.c (insert_insn_end_basic_block): Likewise.
9551 * ira-costs.c (scan_one_insn): Likewise.
9552 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9553 * lra.c (check_rtl): Likewise.
9554 * reload1.c (elimination_costs_in_insn): Likewise.
9555 * reorg.c (follow_jumps): Likewise.
9556
9557 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9558 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9559 (thumb_far_jump_used_p): Likewise.
9560 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9561 (workaround_speculation): Likewise.
9562 (add_sched_insns_for_speculation): Likewise.
9563 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9564 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9565 (frv_for_each_packet): Likewise.
9566 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9567 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9568 (final_emit_insn_group_barriers): Likewise.
9569 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9570 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9571 (mips16_insn_length): Likewise.
9572 * config/pa/pa.c (pa_reorg): Likewise.
9573 (pa_combine_instructions): Likewise.
9574 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9575 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9576 (sh_reorg): Likewise.
9577 (split_branches): Likewise.
9578 * config/spu/spu.c (get_branch_target): Likewise.
9579
9580 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9581 JUMP_TABLE_DATA_P.
9582
4ac761b0
KY
95832013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9584
39385fa6 9585 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
9586 Fix declaration name.
9587
58a49189
LC
95882013-03-28 Lawrence Crowl <crowl@google.com>
9589
9590 * graphds.h (struct graph.indicies): Remove unused.
9591 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9592 (SCOP_ORIGINAL_PDDRS): Remove unused.
9593 * sese.h (extern insert_loop_close_phis): Removed unused.
9594 (extern insert_guard_phis): Removed unused.
9595 (extern ivtype_map_elt_info): Removed unused.
9596 (new_ivtype_map_elt): Removed unused.
9597 * sese.c (ivtype_map_elt_info): Removed unused.
9598
7b3b6ae4
LC
95992013-03-28 Lawrence Crowl <crowl@google.com>
9600
9601 * Makefile.in: Add several missing include dependences.
9602 (DUMPFILE_H): New.
9603 (test-dump.o): New. This object is not added to any executable,
9604 but is present for ad-hoc testing.
9605 * bitmap.c
9606 (debug (const bitmap_head_def &)): New.
9607 (debug (const bitmap_head_def *)): New.
9608 * bitmap.h
9609 (extern debug (const bitmap_head_def &)): New.
9610 (extern debug (const bitmap_head_def *)): New.
9611 * cfg.c
9612 (debug (edge_def &)): New.
9613 (debug (edge_def *)): New.
9614 * cfghooks.c
9615 (debug (basic_block_def &)): New.
9616 (debug (basic_block_def *)): New.
9617 * dumpfile.h
9618 (dump_node (const_tree, int, FILE *)): Correct source file.
9619 * dwarf2out.c
9620 (debug (die_struct &)): New.
9621 (debug (die_struct *)): New.
9622 * dwarf2out.h
9623 (extern debug (die_struct &)): New.
9624 (extern debug (die_struct *)): New.
9625 * gimple-pretty-print.c
9626 (debug (gimple_statement_d &)): New.
9627 (debug (gimple_statement_d *)): New.
9628 * gimple-pretty-print.h
9629 (extern debug (gimple_statement_d &)): New.
9630 (extern debug (gimple_statement_d *)): New.
9631 * ira-build.c
9632 (debug (ira_allocno_copy &)): New.
9633 (debug (ira_allocno_copy *)): New.
9634 (debug (ira_allocno &)): New.
9635 (debug (ira_allocno *)): New.
9636 * ira-int.h
9637 (extern debug (ira_allocno_copy &)): New.
9638 (extern debug (ira_allocno_copy *)): New.
9639 (extern debug (ira_allocno &)): New.
9640 (extern debug (ira_allocno *)): New.
9641 * ira-lives.c
9642 (debug (live_range &)): New.
9643 (debug (live_range *)): New.
9644 * lra-int.h
9645 (debug (lra_live_range &)): New.
9646 (debug (lra_live_range *)): New.
9647 * lra-lives.c
9648 (debug (lra_live_range &)): New.
9649 (debug (lra_live_range *)): New.
9650 * omega.c
9651 (debug (omega_pb_d &)): New.
9652 (debug (omega_pb_d *)): New.
9653 * omega.h
9654 (extern debug (omega_pb_d &)): New.
9655 (extern debug (omega_pb_d *)): New.
9656 * print-rtl.c
9657 (debug (const rtx_def &)): New.
9658 (debug (const rtx_def *)): New.
9659 * print-tree.c
9660 (debug_tree (tree): Move within file.
9661 (debug_raw (const tree_node &)): New.
9662 (debug_raw (const tree_node *)): New.
9663 (dump_tree_via_hooks (const tree_node *, int)): New.
9664 (debug (const tree_node &)): New.
9665 (debug (const tree_node *)): New.
9666 (debug_verbose (const tree_node &)): New.
9667 (debug_verbose (const tree_node *)): New.
9668 (debug_head (const tree_node &)): New.
9669 (debug_head (const tree_node *)): New.
9670 (debug_body (const tree_node &)): New.
9671 (debug_body (const tree_node *)): New.
9672 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9673 (debug (vec<tree, va_gc> &)): New.
9674 (debug (vec<tree, va_gc> *)): New.
9675 * rtl.h
9676 (extern debug (const rtx_def &)): New.
9677 (extern debug (const rtx_def *)): New.
9678 * sbitmap.c
9679 (debug_raw (simple_bitmap_def &)): New.
9680 (debug_raw (simple_bitmap_def *)): New.
9681 (debug (simple_bitmap_def &)): New.
9682 (debug (simple_bitmap_def *)): New.
9683 * sbitmap.h
9684 (extern debug (simple_bitmap_def &)): New.
9685 (extern debug (simple_bitmap_def *)): New.
9686 (extern debug_raw (simple_bitmap_def &)): New.
9687 (extern debug_raw (simple_bitmap_def *)): New.
9688 * sel-sched-dump.c
9689 (debug (vinsn_def &)): New.
9690 (debug (vinsn_def *)): New.
9691 (debug_verbose (vinsn_def &)): New.
9692 (debug_verbose (vinsn_def *)): New.
9693 (debug (expr_def &)): New.
9694 (debug (expr_def *)): New.
9695 (debug_verbose (expr_def &)): New.
9696 (debug_verbose (expr_def *)): New.
9697 (debug (vec<rtx> &)): New.
9698 (debug (vec<rtx> *)): New.
9699 * sel-sched-dump.h
9700 (extern debug (vinsn_def &)): New.
9701 (extern debug (vinsn_def *)): New.
9702 (extern debug_verbose (vinsn_def &)): New.
9703 (extern debug_verbose (vinsn_def *)): New.
9704 (extern debug (expr_def &)): New.
9705 (extern debug (expr_def *)): New.
9706 (extern debug_verbose (expr_def &)): New.
9707 (extern debug_verbose (expr_def *)): New.
9708 (extern debug (vec<rtx> &)): New.
9709 (extern debug (vec<rtx> *)): New.
9710 * sel-sched-ir.h
9711 (_list_iter_cond_expr): Make inline instead of static.
9712 * sreal.c
9713 (debug (sreal &)): New.
9714 (debug (sreal *)): New.
9715 * sreal.h
9716 (extern debug (sreal &)): New.
9717 (extern debug (sreal *)): New.
9718 * tree.h
9719 (extern debug_raw (const tree_node &)): New.
9720 (extern debug_raw (const tree_node *)): New.
9721 (extern debug (const tree_node &)): New.
9722 (extern debug (const tree_node *)): New.
9723 (extern debug_verbose (const tree_node &)): New.
9724 (extern debug_verbose (const tree_node *)): New.
9725 (extern debug_head (const tree_node &)): New.
9726 (extern debug_head (const tree_node *)): New.
9727 (extern debug_body (const tree_node &)): New.
9728 (extern debug_body (const tree_node *)): New.
9729 (extern debug (vec<tree, va_gc> &)): New.
9730 (extern debug (vec<tree, va_gc> *)): New.
9731 * tree-cfg.c
9732 (debug (struct loop &)): New.
9733 (debug (struct loop *)): New.
9734 (debug_verbose (struct loop &)): New.
9735 (debug_verbose (struct loop *)): New.
9736 * tree-dump.c: Add header dependence.
9737 * tree-flow.h
9738 (extern debug (struct loop &)): New.
9739 (extern debug (struct loop *)): New.
9740 (extern debug_verbose (struct loop &)): New.
9741 (extern debug_verbose (struct loop *)): New.
9742 * tree-data-ref.c
9743 (debug (data_reference &)): New.
9744 (debug (data_reference *)): New.
9745 (debug (vec<data_reference_p> &)): New.
9746 (debug (vec<data_reference_p> *)): New.
9747 (debug (vec<ddr_p> &)): New.
9748 (debug (vec<ddr_p> *)): New.
9749 * tree-data-ref.h
9750 (extern debug (data_reference &)): New.
9751 (extern debug (data_reference *)): New.
9752 (extern debug (vec<data_reference_p> &)): New.
9753 (extern debug (vec<data_reference_p> *)): New.
9754 (extern debug (vec<ddr_p> &)): New.
9755 (extern debug (vec<ddr_p> *)): New.
9756 * tree-ssa-alias.c
9757 (debug (pt_solution &)): New.
9758 (debug (pt_solution *)): New.
9759 * tree-ssa-alias.h
9760 (extern debug (pt_solution &)): New.
9761 (extern debug (pt_solution *)): New.
9762 * tree-ssa-alias.c
9763 (debug (_var_map &)): New.
9764 (debug (_var_map *)): New.
9765 (debug (tree_live_info_d &)): New.
9766 (debug (tree_live_info_d *)): New.
9767 * tree-ssa-alias.h
9768 (extern debug (_var_map &)): New.
9769 (extern debug (_var_map *)): New.
9770 (extern debug (tree_live_info_d &)): New.
9771 (extern debug (tree_live_info_d *)): New.
9772
be77e1e5
JH
97732013-03-28 Jan Hubicka <jh@suse.cz>
9774
9775 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9776
777e6976
IB
97772013-03-28 Ian Bolton <ian.bolton@arm.com>
9778
9779 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9780 record only when desired or required.
9781
9cd347ae
UB
97822013-03-28 Uros Bizjak <ubizjak@gmail.com>
9783
9784 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9785 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9786
33159866 97872013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
9788
9789 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9790 (*andsi3_compare0_uxtw): New pattern.
9791 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9792 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9793
89ab31c1
JH
97942013-03-28 Jan Hubicka <jh@suse.cz>
9795
9796 * data-streamer-in.c (streamer_read_gcov_count): New function.
9797 * gimple-streamer-out.c: Include value-prof.h.
9798 (output_gimple_stmt): Output histogram.
9799 (output_bb): Use streamer_write_gcov_count.
9800 * value-prof.c: Include data-streamer.h
9801 (dump_histogram_value): Add HIST_TYPE_MAX.
9802 (stream_out_histogram_value): New function.
9803 (stream_in_histogram_value): New function.
9804 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9805 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9806 * data-streamer-out.c (streamer_write_gcov_count): New function.
9807 (streamer_write_gcov_count_stream): New function.
9808 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9809 (lto_output_node): Likewise.
9810 (input_node, input_edge): Likewise.
9811 * lto-streamer-out.c (output_cfg): Update streaming.
9812 * lto-streamer-in.c (input_cfg): Likewise.
9813 * data-streamer.h (streamer_write_gcov_count,
9814 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9815 * gimple-streamer-in.c: Include value-prof.h
9816 (input_gimple_stmt): Input histograms.
9817 (input_bb): Update profile streaming.
9818
e594716a 98192013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 9820
33159866 9821 * genmodes.c (emit_max_int): New function.
8697be17 9822 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
9823 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9824 Added doc.
8697be17 9825 * machmode.def: Fixed comment.
89ab31c1 9826
e594716a 98272013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
9828
9829 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
9830 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9831
74946978
MP
98322013-03-28 Marek Polacek <polacek@redhat.com>
9833 Richard Biener <rguenther@suse.de>
9834
9835 PR tree-optimization/56695
9836 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9837 build signed result of a vector comparison.
9838 * tree-cfg.c (verify_gimple_comparison): Check that a result
9839 of a vector comparison has signed type.
9840
a64b9c26
RB
98412013-03-28 Richard Biener <rguenther@suse.de>
9842
9843 PR tree-optimization/37021
9844 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9845 do not restrict gaps between groups.
9846 * tree-vect-stmts.c (vectorizable_load): Properly account for
9847 a gap between groups.
9848
a9dc2a2f
EB
98492013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9850
9851 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9852 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9853 is not enabled.
9854
53cb97f9
GP
98552013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9856
9857 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9858 * doc/extend.texi (Named Address Spaces): Ditto.
9859 (Variable Attributes): Ditto.
9860
b802ae5c
KT
98612013-03-27 Kai Tietz <ktietz@redhat.com>
9862
eddae10a
KT
9863 * config.build: Add support for cygwin x64 target.
9864 * config.gcc: Likewise.
9865 * config.host: Likewise.
9866 * configure.ac: Likewise
9867 * configure: Regenerated.
b802ae5c 9868
371e77e3 98692013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
9870
9871 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9872 * config/i386/t-cygwin-w64: New file.
9873 * config/i386/cygwin-w64.h: New file.
9874 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9875 and add support for x64-cygwin target.
9876 (CPP_SPEC): Likewise.
9877 (CXX_WRAP_SPEC_LIST): Undefine before define.
9878 (LIBGCJ_SONAME): Use 15 as version.
9879
f49b33cb
RB
98802013-03-27 Richard Biener <rguenther@suse.de>
9881
9882 PR tree-optimization/56716
9883 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9884 dumping for ref nodes.
9885
b37a6ce5
MJ
98862013-03-27 Martin Jambor <mjambor@suse.cz>
9887
9888 PR tree-optimization/55334
9889 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9890 restricted pointers to arrays.
9891
9469b9b2
GDR
98922013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9893
9894 * Makefile.in (.SUFFIXES): Add .cc.
9895 (.c.o): Apply same recipe for implicit rule .cc.o.
9896
7d24f650
RB
98972013-03-27 Richard Biener <rguenther@suse.de>
9898
9899 PR tree-optimization/37021
9900 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9901 REALPART/IMAGPART_EXPRs around the supported refs.
9902 * tree-ssa-structalias.c (find_func_aliases): Assume that
9903 floating-point values are not used to transfer pointers.
9904
2f251a05
AI
99052013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9906
39385fa6
PC
9907 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9908 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9909 * doc/tm.texi: Regenerate.
9910 * targhooks.h (default_has_ifunc_p): New.
9911 * targhooks.c (default_has_ifunc_p): Ditto.
9912 * config/linux-protos.h: New file.
9913 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
9914 this hook for linux which disables support of indirect functions in
9915 android.
39385fa6
PC
9916 * config/linux-android.c: New file.
9917 * config/t-linux-android.c: Ditto.
9918 * config.gcc: Added new object file linux-android.o.
9919 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 9920 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 9921 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
9922 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9923 doesn't support indirect functions.
9924 * configure: Regenerate.
9925
78b4e425
BC
99262013-03-27 Bin Cheng <bin.cheng@arm.com>
9927
9928 PR target/56102
9929 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9930 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9931 mult-word mode.
9932
a5ba7b92
AK
99332013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9934
9935 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9936
be624986
TG
99372013-03-27 Terry Guo <terry.guo@arm.com>
9938
9939 * config/arm/arm-cores.def: Added core cortex-r7.
9940 * config/arm/arm-tune.md: Regenerated.
9941 * config/arm/arm-tables.opt: Regenerated.
9942 * doc/invoke.texi: Added entry for core cortex-r7.
9943
0a514f47
WL
99442013-03-27 Walter Lee <walt@tilera.com>
9945
9946 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9947 double-decrement of next_scratch_regno.
9948
9332b0d2
WL
99492013-03-27 Walter Lee <walt@tilera.com>
9950
801d9b2a 9951 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
9952 input operands.
9953 (insn_v1mulus): Ditto.
9954 (insn_v2muls): Ditto.
9955
f54ea5dd
WL
99562013-03-27 Walter Lee <walt@tilera.com>
9957
e594716a 9958 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
9959 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9960
bf60f4ca
WL
99612013-03-27 Walter Lee <walt@tilera.com>
9962
e594716a 9963 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
9964 (*sibcall_value): Ditto.
9965
e3b51eeb
WL
99662013-03-27 Walter Lee <walt@tilera.com>
9967
9968 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9969 (insn_mnz_v8qi): ... this ...
9970 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9971 vector equivalent.
9972 (insn_v<n>mnz): Replaced by ...
9973 (insn_v1mnz): ... this ...
9974 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9975 equivalent.
9976 (insn_mz_<mode>): Replaced by ...
9977 (insn_mz_v8qi): ... this ...
9978 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9979 vector equivalent.
9980 (insn_v<n>mz): Replaced by ...
9981 (insn_v1mz): ... this ...
9982 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9983 equivalent.
9984
4fc7b145
EB
99852013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9986
9987 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9988
6f33817e
RM
99892013-03-26 Roland McGrath <mcgrathr@google.com>
9990
9991 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9992 than fprintf with a non-constant, non-format string.
9993
93a4145b
UB
99942013-03-26 Uros Bizjak <ubizjak@gmail.com>
9995
9996 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9997 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9998 operand 0 predicate.
9999 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10000 attribute. Use general_x64nomem_operand as operand 1 predicate.
10001 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10002 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10003 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10004 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10005 (mov<mode>_insv_1): Remove expander. Merge insn with
10006 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10007 Use general_x64nomem_operand as operand 1 predicate.
10008 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10009 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10010 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10011 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10012 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10013 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10014 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10015 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10016 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10017 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10018 (general_x64nomem_operand): Ditto.
10019
c6a9ed5a 100202013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
10021
10022 * config/rtems.opt: Add -pthread option.
10023
31b0a960
RB
100242013-03-26 Richard Biener <rguenther@suse.de>
10025
93a4145b
UB
10026 * alias.c (find_base_term): Avoid redundant and not used recursion.
10027 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
10028 (true_dependence_1): Compute and pass base terms to base_alias_check.
10029 (write_dependence_p): Likewise.
10030 (may_alias_p): Likewise.
10031
79517551
SN
100322013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10033
10034 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10035 PC-relative load in SI modes and above only.
10036
a76213b9
XQ
100372013-03-26 Xinyu Qi <xyqi@marvell.com>
10038
10039 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
10040 * config/arm/iwmmxt.md (WCGR0): Update.
10041 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 10042
37ff9355
UB
100432013-03-26 Uros Bizjak <ubizjak@gmail.com>
10044
10045 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10046 Use x64 and nox64 isa attributes.
10047
30b0317c
RB
100482013-03-26 Richard Biener <rguenther@suse.de>
10049
10050 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10051 alignment computations and rely on get_object_alignment_1
10052 for the !TYPE_P case.
10053 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10054
cbcdb140
WL
100552013-03-26 Walter Lee <walt@tilera.com>
10056
10057 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10058 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10059
dd884525 100602013-03-25 Jeff Law <law@redhat.com>
be672e08 10061
33159866
UB
10062 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10063 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
10064 wrong version of prior patch.
10065
0051d3ec
WL
100662013-03-25 Walter Lee <walt@tilera.com>
10067
10068 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10069 TILEGX_INSN_SHUFFLEBYTES1.
10070 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10071 shufflebytes1.
10072 (tilegx_builtins): Ditto.
10073 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10074
065a3605
WL
100752013-03-25 Walter Lee <walt@tilera.com>
10076
10077 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
10078 (floatunssisf2): New pattern.
10079 (floatsidf2): New pattern.
10080 (floatunssidf2): New pattern.
065a3605 10081
5b2a3c82
WL
100822013-03-25 Walter Lee <walt@tilera.com>
10083
10084 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10085 tests for constraint J, K, N, P.
10086
192ea533
WL
100872013-03-25 Walter Lee <walt@tilera.com>
10088
10089 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10090 Use indirect/pcrel encoding.
10091 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10092 Ditto.
10093
855e0d0b
SE
100942013-03-25 Steve Ellcey <sellcey@mips.com>
10095
10096 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10097 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10098 * config/mips/mips.c (mips_option_override): Set IMADD default.
10099 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10100 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10101 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10102 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10103 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10104
39e45653
JL
101052013-03-25 Jeff Law <law@redhat.com>
10106
10107 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10108 slightly to avoid creating and folding useless trees. Simplify
10109 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10110
7482c470
UB
101112013-03-25 Uros Bizjak <ubizjak@gmail.com>
10112
10113 * config/i386/i386.md (*zero_extendsidi2): Merge with
10114 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10115 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10116 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10117 targets. Clarify comment.
10118
4a53743e
MJ
101192013-03-25 Martin Jambor <mjambor@suse.cz>
10120
10121 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10122 pass-through jump functions differently.
10123 (ipa_read_jump_function): Likewise. Also use setter functions to set
10124 up jump functions.
10125
162712de
MJ
101262013-03-25 Martin Jambor <mjambor@suse.cz>
10127
10128 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10129 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10130 process it.
10131 (ipa_get_indirect_edge_target): New function.
10132 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10133 ipa_get_indirect_edge_target. Update all callers.
10134 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10135 ipa_get_indirect_edge_target_1 instead of calling
10136 ipa_get_indirect_edge_target.
10137 (create_specialized_node): Pass aggvlas to
10138 ipcp_discover_new_direct_edges.
10139
a5a4c20a
KT
101402013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10141
10142 * config/arm/arm.md (f_sels, f_seld): New types.
10143 (*cmov<mode>): New pattern.
10144 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10145 predicate.
10146
f992b9fc
KT
101472013-03-25 Kai Tietz <ktietz@redhat.com>
10148
10149 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10150 POSIX-printf for mingw-hosted builds.
10151
c16fd676
RB
101522013-03-25 Richard Biener <rguenther@suse.de>
10153
10154 PR middle-end/56694
10155 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10156 must-not-throw stmt location.
10157
5ad29f12
KT
101582013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10159
10160 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10161 Emit load-acquire versions when acq is true.
10162 (arm_emit_store_exclusive): Add rel parameter.
10163 Emit store-release versions when rel is true.
10164 (arm_split_compare_and_swap): Use acquire-release instructions
10165 instead.
10166 of barriers when appropriate.
10167 (arm_split_atomic_op): Likewise.
10168 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10169 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10170 (VUNSPEC_SLX): Likewise.
10171 (VUNSPEC_LDA): Likewise.
10172 (VUNSPEC_STL): Likewise.
10173 * config/arm/sync.md (atomic_load<mode>): New pattern.
10174 (atomic_store<mode>): Likewise.
10175 (arm_load_acquire_exclusive<mode>): Likewise.
10176 (arm_load_acquire_exclusivesi): Likewise.
10177 (arm_load_acquire_exclusivedi): Likewise.
10178 (arm_store_release_exclusive<mode>): Likewise.
10179
03a7dddb
CM
101802013-03-25 Catherine Moore <clm@codesourcery.com>
10181
10182 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10183 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10184 * config/mip/predicates.md (lwsp_swsp_operand,
10185 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10186 sb16_operand, db4_operand, db7_operand, ib3_operand,
10187 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10188 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10189 andi16_operand): New predicates.
10190 * config/mips/mips.md (compression): New attribute.
10191 (enabled): New attribute.
10192 (length): Consider compression in computing length.
10193 (shift_compression): New code attribute.
10194 (*add<mode>3): New operands. Record compression.
10195 (sub<mode>3): Likewise.
10196 (one_cmpl<mode>2): Likewise.
10197 (*and<mode>3): Likewise.
10198 (*ior<mode>3): Likewise.
10199 (unnamed pattern for xor): Likewise.
10200 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10201 (*<optab><mode>3): Likewise.
10202 (*mov<mode>_internal: Likewise.
10203 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10204 (mips_unsigned_immediate_p): New.
10205 (umips_lwsp_swsp_address_p): New.
10206 (m16_based_address_p): New.
10207 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10208 (mips_unsigned_immediate_p): New prototype.
10209 (lwsp_swsp_address_p): New prototype.
10210 (m16_based_address_p): New prototype.
10211 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10212 (mips_signed_immediate_p): New function.
10213 (m16_based_address_p): New function.
10214 (lwsp_swsp_address_p): New function.
10215 (mips_print_operand_punctuation): Recognize short delay slot insns
10216 for microMIPS.add<mode>3"
10217
f35c297f 102182013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 10219
f35c297f
KT
10220 PR target/56720
10221 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10222 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10223
051b9446
RB
102242013-03-25 Richard Biener <rguenther@suse.de>
10225
10226 PR tree-optimization/56689
10227 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10228 any edge.
10229
374001cb
RB
102302013-03-25 Richard Biener <rguenther@suse.de>
10231
10232 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10233 of bitmap.
10234 (memory_references): Likewise.
10235 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10236 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10237 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10238 (gather_mem_refs_in_loops): Fold into ...
10239 (analyze_memory_references): ... this. Move initialization
10240 to tree_ssa_lim_initialize.
10241 (fill_always_executed_in): Rename to ...
10242 (fill_always_executed_in_1): ... this.
10243 (fill_always_executed_in): Move contains_call computation to
10244 this new function from ...
10245 (tree_ssa_lim_initialize): ... here.
10246 (tree_ssa_lim): Call fill_always_executed_in.
10247
57895947
EB
102482013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10249
10250 * postreload.c (reload_combine): Fix code detecting returns.
10251
1e1b18c1
EB
102522013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10253
10254 * function.c (emit_use_return_register_into_block): On cc0 targets,
10255 do not emit the sequence between cc0 setter and user.
10256
9216baf1
KT
102572013-03-25 Kai Tietz <ktietz@redhat.com>
10258
1e1b18c1
EB
10259 * config/i386/predicates.md (local_symbolic_operand): Interpret
10260 dll-imported symbols as none-local.
9216baf1 10261
76421b44
RB
102622013-03-25 Richard Biener <rguenther@suse.de>
10263
10264 * tree-ssa-loop-im.c (struct depend): Remove.
10265 (struct lim_aux_data): Make depends a vec of gimples.
10266 (free_lim_aux_data): Adjust.
10267 (add_dependency): Likewise.
10268 (set_level): Likewise.
10269
d154bfa2
RB
102702013-03-25 Richard Biener <rguenther@suse.de>
10271
10272 PR middle-end/56434
10273 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10274 the pointer returned by calls with ECF_MALLOC set.
10275
2cd9804e
UB
102762013-03-24 Uros Bizjak <ubizjak@gmail.com>
10277
acef5fe0
UB
10278 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10279
102802013-03-24 Uros Bizjak <ubizjak@gmail.com>
10281
10282 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
10283 using MMXMODE mode iterator.
10284 (*move<mode>_internal): Merge with *movv2sf_internal and
10285 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10286
225ccc68
SB
102872013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10288
85c0f02d
SB
10289 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10290 (record_last_mem_set_info): Likewise.
10291
225ccc68
SB
10292 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10293 of XNEWVEC followed by memset.
10294 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10295
b64925dc
SB
102962013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10297
10298 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10299 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10300 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10301 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10302 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10303 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10304 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10305 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10306 BARRIER_P instead of GET_CODE.
10307
b9aaf52e
EB
103082013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10309
10310 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10311 inaccuracy in the probing code.
10312
10313 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10314 (ctrapdi4): Likewise.
10315
66de4d7c
EB
103162013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10317
10318 * calls.c (expand_call): Add missing guard to code handling return
10319 of non-BLKmode structures in MSB.
10320 * function.c (expand_function_end): Likewise.
10321
4f25c8fb
EB
103222013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10323
10324 * combine.c (try_combine): Adjust comment. Do not add the set of
10325 insn #0 if the destination indirectly is set or dies in insn #2.
10326 Tidy up code to distribute a new note.
10327
23b7850d
UB
103282013-03-22 Uros Bizjak <ubizjak@gmail.com>
10329
10330 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10331 also for alternatives 16 and 17.
10332
bed852cf
UB
103332013-03-22 Uros Bizjak <ubizjak@gmail.com>
10334
10335 * config/i386/sse.md (*mov<mode>_internal): Merge with
10336 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10337 Emit insn template depending on type attribute. Use
10338 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10339 movd instead of movq mnemonic for interunit moves. Rewrite mode
10340 attribute calculation. Remove unit attribute calculation.
10341 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10342 Set prefix_data16 attribute for DImode ssemov types.
10343 Use Ym instead of y for SSE-MMX conversion alternatives.
10344 Reorder operand constraints.
10345
1e8a7937
SB
103462013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10347
10348 * df.h (df_insn_delete): Adjust prototype.
10349 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10350 and let it decide whether mark the basic block dirty.
10351 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10352 * df-scan.c (df_insn_info_delete): New helper function, split
10353 off from df_insn_delete.
10354 (df_scan_free_bb_info): Use it.
10355 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10356 Likewise.
10357 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10358 that the insn is actually an insn and it has a non-NULL basic block.
10359 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10360
e14d094c
RB
103612013-03-22 Richard Biener <rguenther@suse.de>
10362
10363 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10364 dep_ref members.
10365 (mem_ref_alloc): Do not allocate them.
10366 (refs_independent_p): Do not query or maintain a cache.
10367
e9cf7316
RB
103682013-03-22 Richard Biener <rguenther@suse.de>
10369
10370 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10371 (gather_mem_refs_in_loops): Do not compute it.
10372 (analyze_memory_references): Do not allocate it.
10373 (tree_ssa_lim_finalize): Do not free it.
10374 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10375
f046e81b
RB
103762013-03-22 Richard Biener <rguenther@suse.de>
10377
10378 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 10379
a05c0ddf
IB
103802013-03-22 Ian Bolton <ian.bolton@arm.com>
10381
10382 * config/aarch64/aarch64.c (aarch64_print_operand): New
10383 format specifier for printing a constant in hex.
10384 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10385 format specifier for printing second operand.
10386
c00217fc
RB
103872013-03-22 Richard Biener <rguenther@suse.de>
10388
10389 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10390 bitmaps.
10391 (gather_mem_refs_in_loops): Perform store accumulation here.
10392 (create_vop_ref_mapping_loop): Remove.
10393 (create_vop_ref_mapping): Likewise.
10394 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 10395 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
10396 (record_indep_loop): Remove.
10397 (record_dep_loop): New function.
10398 (ref_indep_loop_p_1): Adjust to only walk over references
10399 in the loop, not its subloops.
10400 (ref_indep_loop_p): Rename to ...
10401 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10402 maintaining a more fine-grained cache.
10403 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10404 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10405
15d19bf8
RB
104062013-03-22 Richard Biener <rguenther@suse.de>
10407
10408 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10409 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10410 aggregate mem_ref_loc.
10411 (free_mem_ref_locs): Inline into ...
10412 (memref_free): ... this and adjust.
10413 (mem_ref_alloc): Adjust.
10414 (mem_ref_locs_alloc): Remove.
10415 (record_mem_ref_loc): Adjust.
10416 (get_all_locs_in_loop): Rewrite into ...
10417 (for_all_locs_in_loop): ... this iterator.
10418 (rewrite_mem_ref_loc): New functor.
10419 (rewrite_mem_refs): Use for_all_locs_in_loop.
10420 (sm_set_flag_if_changed): New functor.
10421 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10422 (ref_always_accessed): New functor.
10423 (ref_always_accessed_p): Use for_all_locs_in_loop.
10424
6f37411d
MG
104252013-03-21 Marc Glisse <marc.glisse@inria.fr>
10426
10427 * tree-pass.h (PROP_gimple_lvec): New.
10428 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10429 (init_optimization_passes): Move pass_lower_vector.
10430 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10431 PROP_gimple_lvec.
10432 (pass_lower_vector): Provide PROP_gimple_lvec.
10433 (pass_lower_vector_ssa): Likewise.
10434 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10435
511ef689
MW
104362013-03-21 Mark Wielaard <mjw@redhat.com>
10437
10438 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10439
cc1df30b
UB
104402013-03-21 Uros Bizjak <ubizjak@gmail.com>
10441
10442 * config/i386/i386.md (*movdi_internal): Disparage slightly
10443 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10444 conversion alternatives.
10445
c845cfe1
JJ
104462013-03-21 Jakub Jelinek <jakub@redhat.com>
10447
37e99116
JJ
10448 PR middle-end/48087
10449 * diagnostic.def (DK_WERROR): New kind.
10450 * diagnostic.h (werrorcount): Define.
10451 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10452 promoted to DK_ERROR, increment DK_WERROR counter instead of
10453 DK_ERROR counter.
10454 * toplev.c (toplev_main): Call print_ignored_options even if
10455 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10456 even if just werrorcount is non-zero.
10457
c845cfe1
JJ
10458 PR debug/55608
10459 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10460 on failure.
10461 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10462 (string_cst_pool_decl): New function.
10463 (optimize_one_addr_into_implicit_ptr): New function.
10464 (resolve_addr_in_expr): Optimize DWARF location expression
10465 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10466 which doesn't live in memory, but has DW_AT_location or
10467 DW_AT_const_value, or refers to a string literal, into
10468 DW_OP_GNU_implicit_pointer.
10469 (optimize_location_into_implicit_ptr): New function.
10470 (resolve_addr): If removing DW_AT_location of a variable because
10471 it was DW_OP_addr of address of the variable, but the variable doesn't
10472 live in memory, try to emit const value attribute for the initializer.
10473
08e0cda6
MG
104742013-03-21 Marc Glisse <marc.glisse@inria.fr>
10475
10476 * tree.h (VECTOR_TYPE_P): New macro.
10477 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10478 TYPE_MODE): Use it.
10479 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10480 VEC_COND_EXPR cannot be lvalues.
10481 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10482
d08633b4
MG
104832013-03-21 Marc Glisse <marc.glisse@inria.fr>
10484
10485 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10486 Restrict the transformation to equal modes.
10487
e6647190
RB
104882013-03-21 Richard Biener <rguenther@suse.de>
10489
10490 PR tree-optimization/39326
10491 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10492 (MEM_ANALYZABLE): Adjust.
10493 (record_mem_ref_loc): Move bitmap ops ...
10494 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10495 unanalyzable refs, do not record locations for it.
10496 (analyze_memory_references): Allocate ref zero as shared
10497 unanalyzable ref.
10498 (refs_independent_p): Do not test for unanalyzed mems here.
10499 (ref_indep_loop_p_1): Special-case disambiguation against
10500 the unanalyzed ref.
cc1df30b 10501 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 10502
65074f54
CL
105032013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10504
10505 * config/arm/arm-protos.h (tune_params): Add
10506 prefer_neon_for_64bits field.
10507 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10508 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10509 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10510 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10511 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10512 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10513 (arm_option_override): Handle -mneon-for-64bits new option.
10514 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10515 (prefer_neon_for_64bits): Declare new variable.
10516 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 10517 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
10518 (arch_enabled): Handle new arch types. Remove support for onlya8
10519 and nota8.
10520 (one_cmpldi2): Use new arch names.
bc5faa5b 10521 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
10522 * config/arm/arm.opt (mneon-for-64bits): Add option.
10523 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10524 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10525 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10526 of onlya8.
10527 * doc/invoke.texi (-mneon-for-64bits): Document.
10528
5a2d2a79
RB
105292013-03-21 Richard Biener <rguenther@suse.de>
10530
10531 PR tree-optimization/39326
10532 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10533 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 10534 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 10535
5abe1e05
RB
105362013-03-21 Richard Biener <rguenther@suse.de>
10537
10538 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10539 (vect_insert_into_interleaving_chain): Likewise.
10540 (vect_drs_dependent_in_basic_block): Inline ...
10541 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10542 split out from ...
10543 (vect_analyze_data_ref_dependence): ... here. Simplify.
10544 (vect_check_interleaving): Simplify.
10545 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10546 (vect_slp_analyze_data_ref_dependences): ... this new function.
10547 (dr_group_sort_cmp): New function.
10548 (vect_analyze_data_ref_accesses): Compute data-reference groups
10549 here instead of in vect_analyze_data_ref_dependence. Use
10550 a more efficient algorithm.
10551 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10552 vect_slp_analyze_data_ref_dependences. Call
10553 vect_analyze_data_ref_accesses earlier.
10554 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10555 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10556 (vect_slp_analyze_data_ref_dependences): New prototype.
10557
cad1735b
RB
105582013-03-21 Richard Biener <rguenther@suse.de>
10559
10560 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10561 ref is stored in the loop.
10562 (find_refs_for_sm): Walk only over all stores.
10563 (store_motion_loop): Allocate from lim_bitmap_obstack.
10564 (store_motion): Likewise.
10565
141310ef
RB
105662013-03-21 Richard Biener <rguenther@suse.de>
10567
10568 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10569 Update virtual SSA form.
10570
5022315a
RO
105712013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10572
10573 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10574 * configure: Regenerate.
10575 * config.in: Regenerate.
10576 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10577 if !HAVE_LD_EH_FRAME_CIEV3.
10578
50d4421c
RB
105792013-03-21 Richard Biener <rguenther@suse.de>
10580
10581 * tree-cfg.c (verify_expr_no_block): New function.
10582 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10583 nor DECL_VALUE_EXPR have locations with associated blocks.
10584 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10585 (clear_unused_block_pointer): Remove code dealing with
10586 blocks in DECL_DEBUG_EXPR locations.
10587
839b422f
RB
105882013-03-21 Richard Biener <rguenther@suse.de>
10589
10590 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10591 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10592 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10593 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10594 instead of DECL_DEBUG_EXPR_IS_FROM.
10595 * gimplify.c (gimplify_modify_expr): Likewise.
10596 * tree-cfg.c (verify_expr_location_1): Likewise.
10597 * tree-complex.c (create_one_component_var): Likewise.
10598 * tree-sra.c (create_access_replacement): Likewise.
10599 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10600 (clear_unused_block_pointer): Likewise.
10601 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10602 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10603 * var-tracking.c (var_debug_decl): Likewise.
10604 (track_expr_p): Likewise.
10605 * tree-inline.c (add_local_variables): Likewise. Set
10606 DECL_HAS_DEBUG_EXPR_P after copying it.
10607 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10608 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10609
fe04878d
UB
106102013-03-21 Uros Bizjak <ubizjak@gmail.com>
10611
10612 PR bootstrap/56656
10613 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10614 * configure: Regenerate.
10615 * config.in: Regenerate.
10616 * config/i386/i386.md (*movdf_internal): Use
10617 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10618 movd instead of movq mnemonic for interunit moves.
10619 (*movdi_internal): Ditto.
10620
bd059b26 106212013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
10622
10623 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10624 (abd<mode>_3): New pattern.
10625 (aba<mode>_3): New pattern.
10626 (fabd<mode>_3): New pattern.
10627
bd059b26 106282013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
10629
10630 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10631 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10632 occurrence of REGISTER_PREFIX as its empty string.
10633
4f1f78b9
JL
106342013-03-20 Jeff Law <law@redhat.com>
10635
10636 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10637 addititional equivalences for equality comparisons between an SSA_NAME
10638 and a constant where the SSA_NAME was set from a widening conversion.
10639
327a1118
WL
106402013-03-20 Walter Lee <walt@tilera.com>
10641
10642 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10643
813e0036
UB
106442013-03-20 Uros Bizjak <ubizjak@gmail.com>
10645
10646 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10647 depending on type attribute.
10648 (*movti_internal): Ditto.
10649 (*movtf_internal): Ditto.
10650 (*movxf_internal): Ditto.
10651 (*movdf_internal): Ditto.
10652 (*movsf_internal): Ditto.
10653
7cf34aae
UB
106542013-03-20 Uros Bizjak <ubizjak@gmail.com>
10655
10656 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10657 maybe_vex for sselog1 and ssemov types.
10658 (*movdi_internal): Reorder operand constraints.
10659 (*movsi_internal): Ditto. Set prefix attribute to
10660 maybe_vex for sselog1 and ssemov types.
10661 (*movtf_internal): Set prefix attribute to maybe_vex
10662 for sselog1 and ssemov types.
10663 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10664 DImode ssemov types. Reorder operand constraints.
10665 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10666 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10667 attribute for SImode ssemov types. Reorder operand constraints.
10668
19321415
MJ
106692013-03-20 Martin Jambor <mjambor@suse.cz>
10670
10671 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10672 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10673
c6d5ff83
MM
106742013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10675
10676 * config/rs6000/predicates.md (indexed_address, update_address_mem
10677 update_indexed_address_mem): New predicates.
10678 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10679 attribute for load/store instructions.
10680 * config/rs6000/dfp.md (movsd_store): Likewise.
10681 (movsd_load): Likewise.
10682 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10683 (unnamed HI->DI extend define_insn): Likewise.
10684 (unnamed SI->DI extend define_insn): Likewise.
10685 (unnamed QI->SI extend define_insn): Likewise.
10686 (unnamed QI->HI extend define_insn): Likewise.
10687 (unnamed HI->SI extend define_insn): Likewise.
10688 (unnamed HI->SI extend define_insn): Likewise.
10689 (extendsfdf2_fpr): Likewise.
10690 (movsi_internal1): Likewise.
10691 (movsi_internal1_single): Likewise.
10692 (movhi_internal): Likewise.
10693 (movqi_internal): Likewise.
10694 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10695 attribute for load/store instructions.
10696 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10697 instructions.
10698 (mov<mode>_softfloat): Likewise.
10699 (mov<mode>_hardfloat32): Likewise.
10700 (mov<mode>_hardfloat64): Likewise.
10701 (mov<mode>_softfloat64): Likewise.
10702 (movdi_internal32): Likewise.
10703 (movdi_internal64): Likewise.
10704 (probe_stack_<mode>): Likewise.
10705
107062013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10707
10708 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10709 floating point, and decimal floating point to reload iterator.
10710
10711 * config/rs6000/constraints.md (wl constraint): New constraints to
10712 return FLOAT_REGS if certain options are used to reduce the number
10713 of separate patterns that exist in the file.
10714 (wx constraint): Likewise.
10715 (wz constraint): Likewise.
10716
10717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10718 -mdebug=reg, print wg, wl, wx, and wz constraints.
10719 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10720 Initialize the reload functions for 64-bit binary/decimal floating
10721 point types.
10722 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10723 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10724 create the buffer on the stack to overcome not having a 32-bit
10725 load and store.
10726 (rs6000_emit_move): Likewise.
10727 (rs6000_secondary_memory_needed_rtx): Likewise.
10728 (rs6000_alloc_sdmode_stack_slot): Likewise.
10729 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10730 via xxlxor, just like DFmode 0.0.
10731
10732 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10733 define as 1 if we are running on a power7 or newer.
10734 (enum r6000_reg_class_enum): Add new constraints.
10735
10736 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10737 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10738 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 10739 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
10740 (movsd splitter): Likewise.
10741 (movsd_hardfloat): Likewise.
10742 (movsd_softfloat): Likewise.
10743
10744 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10745 binary and decimal floating point moves.
10746 (fmove_ok): New attributes to combine binary and decimal floating
10747 point moves, and to combine power6x (mfpgpr) moves along normal
10748 floating moves.
10749 (real_value_to_target): Likewise.
10750 (f32_lr): Likewise.
10751 (f32_lm): Likewise.
10752 (f32_li): Likewise.
10753 (f32_sr): Likewise.
10754 (f32_sm): Likewise.
10755 (f32_si): Likewise.
10756 (movsf): Combine binary and decimal floating point moves. Combine
10757 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 10758 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
10759 (mov<mode> for SFmode/SDmode); Likewise.
10760 (SFmode/SDmode splitters): Likewise.
10761 (movsf_hardfloat): Likewise.
10762 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10763 (movsf_softfloat): Likewise.
10764 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10765
10766 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10767 wx and wz constraints.
10768
10769 * config/rs6000/constraints.md (wg constraint): New constraint to
10770 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10771
10772 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10773 constraint.
10774
10775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10776 -mdebug=reg, print wg, wl, wx, and wz constraints.
10777 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10778 Initialize the reload functions for 64-bit binary/decimal floating
10779 point types.
10780 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10781 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10782 create the buffer on the stack to overcome not having a 32-bit
10783 load and store.
10784 (rs6000_emit_move): Likewise.
10785 (rs6000_secondary_memory_needed_rtx): Likewise.
10786 (rs6000_alloc_sdmode_stack_slot): Likewise.
10787 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10788 via xxlxor, just like DFmode 0.0.
10789
c6d5ff83
MM
10790 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10791 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10792 with other moves by using conditional constraits (wg). Use LFIWZX
10793 and STFIWX for loading SDmode on power7.
10794 (movdd splitters): Likewise.
10795 (movdd_hardfloat32): Likewise.
10796 (movdd_softfloat32): Likewise.
10797 (movdd_hardfloat64_mfpgpr): Likewise.
10798 (movdd_hardfloat64): Likewise.
10799 (movdd_softfloat64): Likewise.
10800
10801 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10802 64-bit binary and decimal floating point moves.
10803 (FMOVE64X): Likewise.
10804 (movdf): Combine 64-bit binary and decimal floating point moves.
10805 Combine power6x (mfpgpr) moves with other moves by using
10806 conditional constraits (wg).
10807 (mov<mode> for DFmode/DDmode): Likewise.
10808 (DFmode/DDmode splitters): Likewise.
10809 (movdf_hardfloat32): Likewise.
10810 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10811 (movdf_softfloat32): Likewise.
10812 (movdf_hardfloat64_mfpgpr): Likewise.
10813 (movdf_hardfloat64): Likewise.
10814 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10815 (movdf_softfloat64): Likewise.
10816 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10817 (reload_<mode>_load): Move to later in the file so they aren't in
10818 the middle of the floating point move insns.
10819 (reload_<mode>_store): Likewise.
10820
10821 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10822 constraint.
10823
10824 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10825 constraint if -mdebug=reg.
bd059b26
UB
10826 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10827 Enable using dd reload support if needed.
c6d5ff83
MM
10828
10829 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10830 binary and decimal floating point moves in rs6000.md.
10831 (movtd_internal): Likewise.
10832
10833 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10834 decimal floating point moves.
10835 (movtf): Likewise.
10836 (movtf_internal): Likewise.
10837 (mov<mode>_internal, TDmode/TFmode): Likewise.
10838 (movtf_softfloat): Likewise.
10839 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10840
10841 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10842 movdi_internal64, using wg constraint for move direct operations.
10843 (movdi_internal64): Likewise.
10844
10845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10846 MODES_TIEABLE_P for selected modes. Print the numerical value of
10847 the various virtual registers. Use GPR/FPR first/last values,
10848 instead of hard coding the register numbers. Print which modes
10849 have reload functions registered.
bd059b26
UB
10850 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10851 settings before/after setting cpu, target and subtarget settings.
10852 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10853 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
10854 (rs6000_secondary_reload_fail): Likewise.
10855 (rs6000_secondary_reload_inner): Likewise.
10856
10857 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10858 macros for first/last GPR and FPR registers.
10859 (LAST_GPR_REGNO): Likewise.
10860 (FIRST_FPR_REGNO): Likewise.
10861 (LAST_FPR_REGNO): Likewise.
10862
10863 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10864 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10865 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10866 (vcond<mode><mode>): Likewise.
10867 (vcondu<mode><mode>): Likewise.
10868 (vector_gtu<mode>): Likewise.
10869 (vector_gte<mode>): Likewise.
10870 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 10871 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
10872 (ior<mode>3): Likewise.
10873 (and<mode>3): Likewise.
10874 (one_cmpl<mode>2): Likewise.
10875 (nor<mode>3): Likewise.
10876 (andc<mode>3): Likewise.
10877
10878 * config/rs6000/constraints.md (wt constraint): New constraint
10879 that returns VSX_REGS if TImode is allowed in VSX registers.
10880
10881 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10882 constant under VSX.
10883
10884 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10885 similar to TImode, but it is restricted to being in the GPRs.
10886
10887 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10888 TImode to occupy a single VSX register.
10889
10890 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10891 -mvsx-timode for power7/power8.
10892 (power7 cpu): Likewise.
10893 (power8 cpu): Likewise.
10894
10895 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10896 sure that TFmode/TDmode take up two registers if they are ever
10897 allowed in the upper VSX registers.
10898 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10899 registers.
10900 (rs6000_init_hard_regno_mode_ok): Likewise.
10901 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10902 constraint. Print if LRA is turned on.
10903 (rs6000_option_override_internal): Give an error if -mvsx-timode
10904 and VSX is not enabled.
10905 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10906 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10907 to reg+offset addressing. Use PTImode when checking offset
10908 addresses for validity.
10909 (reg_offset_addressing_ok_p): Likewise.
10910 (rs6000_legitimate_offset_address_p): Likewise.
10911 (rs6000_legitimize_address): Likewise.
10912 (rs6000_legitimize_reload_address): Likewise.
10913 (rs6000_legitimate_address_p): Likewise.
10914 (rs6000_eliminate_indexed_memrefs): Likewise.
10915 (rs6000_emit_move): Likewise.
10916 (rs6000_secondary_reload): Likewise.
10917 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10918 reloads to fpr registers to continue to use reg+offset addressing,
10919 but 64-bit reloads to altivec registers need reg+reg addressing.
10920 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10921 it. Treat LO_SUM like a PLUS operation.
10922 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 10923 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
10924 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10925 registers to share a register with a smaller sized type, since VSX
10926 puts scalars in the upper 64-bits.
10927 (print_operand): Add support for PTImode.
10928 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10929 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10930 registers, but don't have arithmetic support.
10931 (rs6000_memory_move_cost): Add test for VSX.
10932 (rs6000_opt_masks): Add -mvsx-timode.
10933
10934 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10935 for TImode.
10936 (VSs): Likewise.
10937 (VSr): Use wt constraint for TImode.
10938 (VSv): Drop TImode support.
10939 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10940 (vsx_movti_64bit): Likewise.
10941 (vsx_movti_32bit): Likewise.
10942 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10943 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10944 one '?' on the appropriate output constraint. Do not allow TImode
10945 logical operations on 32-bit systems.
10946 (vsx_ior<mode>3): Likewise.
10947 (vsx_xor<mode>3): Likewise.
10948 (vsx_one_cmpl<mode>2): Likewise.
10949 (vsx_nor<mode>3): Likewise.
10950 (vsx_andc<mode>3): Likewise.
10951 (vsx_concat_<mode>): Likewise.
10952 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10953
10954 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10955 OPTION_MASK_VSX_TIMODE.
10956 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10957 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10958
10959 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10960 (TI2 iterator): New iterator for TImode, PTImode.
10961 (wd mode attribute): Add values for vector types.
bd059b26
UB
10962 (movti_string): Replace TI move operations with operations for TImode
10963 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
10964 (mov<mode>_string, TImode/PTImode): Likewise.
10965 (movti_ppc64): Likewise.
10966 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10967 (TI mode splitters): Likewise.
10968
10969 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10970 constraint.
10971
1fc5eced
MG
109722013-03-20 Marc Glisse <marc.glisse@inria.fr>
10973
10974 PR tree-optimization/56355
10975 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10976 Also handle integers with undefined overflow.
10977
22c4c869
CM
109782013-03-20 Catherine Moore <clm@codesourcery.com>
10979 Maciej W. Rozycki <macro@codesourcery.com>
10980 Tom de Vries <tom@codesourcery.com>
10981 Nathan Sidwell <nathan@codesourcery.com>
10982 Iain Sandoe <iain@codesourcery.com>
10983 Nathan Froyd <froydnj@codesourcery.com>
10984 Chao-ying Fu <fu@mips.com>
10985
10986 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 10987 Document new function attributes.
22c4c869
CM
10988 * doc/invoke.texi (minterlink-compressed, mmicromips,
10989 m14k, m14ke, m14kec): Document new options.
10990 (minterlink-mips16): Update documentation.
10991 * doc/md.texi (ZC, ZD): Document new constraints.
10992 * configure.ac (gcc_cv_as_micromips): Check if linker
10993 supports the .set micromips directive.
10994 * configure: Regenerate.
10995 * config.in: Regenerate.
10996 * config/mips/mips-tables.opt: Regenerate.
10997 * config/mips/micromips.md: New file.
10998 * constraints.md (ZC, ZD): New constraints.
10999 * config/mips/predicates.md (movep_src_register): New predicate.
11000 (movep_src_operand): New predicate.
11001 (non_volatile_mem_operand): New predicate.
11002 * config/mips/mips.md (multimem): New type.
11003 (length): Differentiate between 17-bit and 18-bit branch offsets.
11004 (MOVEP1, MOVEP2): New mode iterator.
33159866 11005 (mov_<load>l): Use ZC constraint.
22c4c869
CM
11006 (mov_<load>r): Likewise.
11007 (mov_<store>l): Likewise.
11008 (mov_<store>r): Likewise.
11009 (*branch_equality<mode>_inverted): Add microMIPS support.
11010 (*branch_equality<mode>): Likewise.
11011 (*jump_absolute): Likewise.
11012 (indirect_jump_<mode>): Likewise.
11013 (tablejump_<mode>): Likewise.
11014 (<optab>_internal): Likewise.
11015 (sibcall_internal): Likewise.
11016 (sibcall_value_internal): Likewise.
11017 (prefetch): Use constraint ZD.
11018 * config/mips/mips.opt (minterlink-compressed): New option.
11019 (minterlink-mips16): Now an alias for minterlink-compressed.
11020 (mmicromips): New option.
11021 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11022 (compare_and_swap_12): Likewise.
11023 (sync_add<mode>): Likewise.
11024 (sync_<optab>_12): Likewise.
11025 (sync_old_<optab>_12): Likewise.
11026 (sync_new_<optab>_12): Likewise.
11027 (sync_nand_12): Likewise.
11028 (sync_old_nand_12): Likewise.
11029 (sync_new_nand_12): Likewise.
11030 (sync_sub<mode>): Likewise.
11031 (sync_old_add<mode>): Likewise.
11032 (sync_old_sub<mode>): Likewise.
11033 (sync_new_add<mode>): Likewise.
11034 (sync_new_sub<mode>): Likewise.
11035 (sync_<optab><mode>): Likewise.
11036 (sync_old_<optab><mode>): Likewise.
11037 (sync_new_<optab><mode>): Likewise.
11038 (sync_nand<mode>): Likewise.
11039 (sync_old_nand<mode>): Likewise.
11040 (sync_new_nand<mode>): Likewise.
11041 (sync_lock_test_and_set<mode>): Likewise.
11042 (test_and_set_12): Likewise.
11043 (atomic_compare_and_swap<mode>): Likewise.
11044 (atomic_exchange<mode>_llsc): Likewise.
11045 (atomic_fetch_add<mode>_llsc): Likewise.
11046 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11047 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11048 (umips_save_restore_pattern_p): Likewise.
11049 (umips_load_store_pair_p): Likewise.
11050 (umips_output_load_store_pair): Likewise.
11051 (umips_movep_target_p): Likewise.
11052 (umips_12bit_offset_address_p): Likewise.
11053 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11054 (mips_base_mips16): Rename this...
11055 (mips_base_compression_flags): ...to this. Update all uses.
11056 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11057 (mips_mips16_decl_p): Delete.
11058 (mips_nomips16_decl_p): Delete.
33159866 11059 (mips_get_compress_on_flags): New function.
22c4c869
CM
11060 (mips_get_compress_off_flags): New function.
11061 (mips_get_compress_mode): New function.
11062 (mips_get_compress_on_name): New function.
11063 (mips_get_compress_off_name): New function.
11064 (mips_insert_attributes): Support multiple compression types.
11065 (mips_merge_decl_attributes): Likewise.
11066 (umips_12bit_offset_address_p): New function.
11067 (mips_start_function_definition): Emit .set micromips directive.
11068 (mips_call_may_need_jalx_p): New function.
11069 (mips_function_ok_for_sibcall): Add microMIPS support.
11070 (mips_print_operand_punctuation): Support short delay slots and
11071 compact jumps.
11072 (umips_swm_mask, umips_swm_encoding): New.
11073 (umips_build_save_restore): New function.
11074 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11075 (was_mips16_p): Remove.
11076 (old_compression_mode): New.
11077 (mips_set_compression_mode): New function.
11078 (mips_set_current_function): Add microMIPS support.
11079 (mips_option_override): Likewise.
11080 (umips_save_restore_pattern_p): New function.
11081 (umips_output_save_restore): New function.
11082 (umips_load_store_pair_p_1): New function.
11083 (umips_load_store_pair_p): New function.
11084 (umips_output_load_store_pair_1): New function.
11085 (umips_output_load_store_pair): New function.
11086 (umips_movep_target_p) New function.
11087 (mips_prepare_pch_save): Add microMIPS support.
11088 * config/mips/mips.h (TARGET_COMPRESSION): New.
11089 (TARGET_CPU_CPP_BUILTINS): Update macro
11090 to use new compression flags and to support microMIPS.
11091 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11092 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11093 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11094 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11095 (ASM_SPEC): Support mmicromips and mno-micromips.
11096 (M16STORE_REG_P): New macro.
11097 (MIPS_CALL): Support TARGET_MICROMIPS.
11098 (MICROMIPS_J): New macro.
11099 (mips_base_mips16): Rename this...
11100 (mips_base_compression_flags): ...to this.
11101 (UMIPS_12BIT_OFFSET_P): New macro.
11102 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11103 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
111042013-03-20 Richard Biener <rguenther@suse.de>
11105
11106 PR tree-optimization/56661
11107 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11108 the result does not have to be distinct.
11109
54714c68
RB
111102013-03-20 Richard Biener <rguenther@suse.de>
11111
11112 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11113 remap_gimple_op_r.
11114
cca1130d
BS
111152013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11116 Steven Bosscher <steven@gcc.gnu.org>
11117
11118 PR rtl-optimization/56605
11119 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11120
2a930377
UB
111212013-03-20 Uros Bizjak <ubizjak@gmail.com>
11122
11123 PR bootstrap/56656
11124 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11125 that require movd instead of movq.
11126
d6d305fe
RB
111272013-03-20 Richard Biener <rguenther@suse.de>
11128
11129 * tree-ssa-structalias.c (struct variable_info): Add pointer
11130 to the first field of an aggregate with sub-vars. Make
11131 this and the pointer to the next subfield its ID.
11132 (vi_next): New function.
11133 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11134 storedanything_id, integer_id): Increment by one.
11135 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11136 get_call_clobber_vi): Adjust.
11137 (solution_set_expand): Simplify and speedup.
11138 (solution_set_add): Inline into ...
11139 (set_union_with_increment): ... this. Adjust accordingly.
11140 (do_sd_constraint): Likewise.
11141 (do_ds_constraint): Likewise.
11142 (do_complex_constraint): Simplify.
11143 (build_pred_graph): Adjust.
11144 (solve_graph): Likewise. Simplify and speedup.
11145 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11146 get_constraint_for_component_ref, get_constraint_for_1,
11147 first_vi_for_offset, first_or_preceding_vi_for_offset,
11148 create_function_info_for, create_variable_info_for_1,
11149 create_variable_info_for, intra_create_variable_infos): Adjust.
11150 (init_base_vars): Push NULL for ID zero.
11151 (compute_points_to_sets): Adjust.
11152
a271b42d
RB
111532013-03-20 Richard Biener <rguenther@suse.de>
11154
11155 * cfgloop.c (verify_loop_structure): Streamline and avoid
11156 ICEing on corrupt loop tree.
11157 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11158 loop tree.
11159
ebd65954
RB
111602013-03-20 Richard Biener <rguenther@suse.de>
11161
11162 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11163 check whether an SSA update is needed.
11164
4547b7ee
RS
111652013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11166
11167 * config/mips/constraints.md (T): Rename to...
11168 (Yf): ...this.
11169 (U): Rename to...
11170 (Yd): ...this.
11171 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11172 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11173
0b8cdc58
IB
111742013-03-19 Ian Bolton <ian.bolton@arm.com>
11175
11176 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11177 (*subsi3_carryin_uxtw): Likewise.
11178
5977a10d
IB
111792013-03-19 Ian Bolton <ian.bolton@arm.com>
11180
11181 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11182 (*rorsi3_insn_uxtw): Likewise.
11183
bd83ff2c
IB
111842013-03-19 Ian Bolton <ian.bolton@arm.com>
11185
11186 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11187 (*extrsi5_insn_uxtw): Likewise.
11188
ba65123c
RB
111892013-03-19 Richard Biener <rguenther@suse.de>
11190
11191 PR tree-optimization/56273
11192 * passes.c (init_optimization_passes): Move second VRP after DOM.
11193
2eac0476
UB
111942013-03-19 Uros Bizjak <ubizjak@gmail.com>
11195
11196 * config/i386/i386.md (*movti_internal): Merge from
11197 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11198 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11199 nox64 isa attributes.
11200
6e55eda7
RB
112012013-03-18 Richard Biener <rguenther@suse.de>
11202
11203 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11204 (unite): Likewise.
11205 (merge_node_constraints): Likewise.
11206 (build_succ_graph): Likewise.
11207 (valid_graph_edge): Inline into single caller.
11208 (unify_nodes): Likewise. Use bitmap_set_bit return value
11209 and cache varinfo.
11210 (scc_visit): Fix formatting and variable use.
11211 (do_sd_constraint): Use gcc_checking_assert.
11212 (do_ds_constraint): Likewise.
11213 (do_complex_constraint): Likewise.
11214 (condense_visit): Likewise. Cleanup.
11215 (dump_pred_graph): New function.
11216 (perform_var_substitution): Dump the pred-graph before
11217 variable substitution.
11218 (find_equivalent_node): Use gcc_checking_assert.
11219 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11220
4bdd44c4
RB
112212013-03-18 Richard Biener <rguenther@suse.de>
11222
11223 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11224 Remove cond_expr_stmt_list argument and do not gimplify the
11225 built expression.
11226 (vect_loop_versioning): Adjust.
11227 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11228 Cleanup to use less temporaries.
11229 (vect_create_data_ref_ptr): Cleanup.
11230
38c56a5b
JJ
112312013-03-18 Jakub Jelinek <jakub@redhat.com>
11232
11233 PR tree-optimization/56635
11234 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11235 require types_compatible_p types.
11236
20b2e6a0
NC
112372013-03-18 Nick Clifton <nickc@redhat.com>
11238
a6178a25
NC
11239 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11240 spurious backslash.
11241
20b2e6a0
NC
11242 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11243 Add missing line to comment describing function.
11244
92608d0e
RB
112452013-03-18 Richard Biener <rguenther@suse.de>
11246
11247 PR tree-optimization/56210
11248 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11249 Handle string / character search functions.
11250 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11251
31348d52
RB
112522013-03-18 Richard Biener <rguenther@suse.de>
11253
11254 PR middle-end/56483
11255 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11256 and implement properly.
11257 * gimple.h (gimple_cond_single_var_p): Remove.
11258
fcac74a1
RB
112592013-03-18 Richard Biener <rguenther@suse.de>
11260
11261 * tree-data-ref.h (find_data_references_in_loop): Declare.
11262 * tree-data-ref.c (get_references_in_stmt): Use a stack
11263 vector pre-allocated in the callers.
11264 (find_data_references_in_stmt): Adjust.
11265 (graphite_find_data_references_in_stmt): Likewise.
11266 (create_rdg_vertices): Likewise.
11267 (find_data_references_in_loop): Export.
11268 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11269 Compute dependences here...
11270 (vect_analyze_data_refs): ...not here. When we encounter
11271 a non-vectorizable data reference in basic-block vectorization
11272 truncate the data reference vector. Do not bother to
11273 fixup data-dependence information for gather loads.
11274 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11275 of data references, as reported.
11276
0d5a1b56
RB
112772013-03-18 Richard Biener <rguenther@suse.de>
11278
11279 PR tree-optimization/3713
11280 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11281 has_constants and expr.
11282 (stmt_has_constants): Properly valueize SSA names when deciding
11283 whether the stmt has constants.
11284
789c34e3
RB
112852013-03-18 Richard Biener <rguenther@suse.de>
11286
11287 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11288 whole function when there is nothing to do.
11289 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11290 * tree-vectorizer.c (vectorize_loops): Update virtual and
11291 loop-closed SSA once.
11292 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11293
076b4605
RB
112942013-03-18 Richard Biener <rguenther@suse.de>
11295
11296 PR middle-end/56113
11297 * domwalk.c (bb_postorder): New global static.
11298 (cmp_bb_postorder): New function.
11299 (walk_dominator_tree): Replace scheme imposing an order for
11300 visiting dominator sons by one sorting them at the time they
11301 are pushed on the stack.
11302
bdb01696
RB
113032013-03-18 Richard Biener <rguenther@suse.de>
11304
11305 PR tree-optimization/39326
11306 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11307 (struct mem_ref): Replace mem member with ao_ref typed member.
11308 (MEM_ANALYZABLE): Adjust.
11309 (memref_eq): Likewise.
11310 (mem_ref_alloc): Likewise.
11311 (gather_mem_refs_stmt): Likewise.
11312 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11313 (execute_sm_if_changed_flag_set): Adjust.
11314 (execute_sm): Likewise.
11315 (ref_always_accessed_p): Likewise.
11316 (refs_independent_p): Likewise.
11317 (can_sm_ref_p): Likewise.
11318
12d2dc5e
JJ
113192013-03-18 Jakub Jelinek <jakub@redhat.com>
11320
11321 PR c/56566
11322 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11323 return 1 even for !unsignedp.
11324
286fb677
UB
113252013-03-17 Uros Bizjak <ubizjak@gmail.com>
11326
11327 * config/i386/i386.md (isa): Add x64 and nox64.
11328 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11329 (*pushtf): Enable *roF alternative for x64 isa only.
11330 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11331 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11332 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11333 (*movtf_internal): Merge from *movtf_internal_rex64 and
11334 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11335 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11336 nox64 isa attributes.
11337 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11338 nox64 isa attributes.
11339 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11340
88b97037
UB
113412013-03-17 Uros Bizjak <ubizjak@gmail.com>
11342
11343 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11344
9f4f1735
JJ
113452013-03-17 Jakub Jelinek <jakub@redhat.com>
11346
11347 PR target/56640
11348 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11349 class names. Remove trailing comma after "ALL_REGS".
11350
48f4a6fa
JH
113512013-03-16 Jan Hubicka <jh@suse.cz>
11352
11353 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11354 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11355 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11356 of cgraph_get_create_node.
11357 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11358
98e81123
JM
113592013-03-16 Jason Merrill <jason@redhat.com>
11360
11361 PR debug/49090
11362 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11363 with DW_AT_default_value.
11364
8a298c04
JJ
113652013-03-16 Jakub Jelinek <jakub@redhat.com>
11366
11367 * BASE-VER: Set to 4.9.0.
11368
4323afa0
AK
113692013-03-14 Andi Kleen <ak@linux.intel.com>
11370
11371 PR target/56619
11372 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11373 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11374 Document _x* TSX intrinsics.
11375
b3c0d469
JJ
113762013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11377 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
11378
11379 * configure.ac: Add MicroBlaze TLS support detection.
11380 * configure: Regenerate.
88b97037
UB
11381 * config/microblaze/microblaze-protos.h
11382 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11383 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11384 * config/microblaze/microblaze.c (microblaze_address_type): Add
11385 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
11386 (microblaze_address_info): Add tls_reloc.
11387 (TARGET_HAVE_TLS): Define.
11388 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11389 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
11390 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11391 load_tls_operand, microblaze_call_tls_get_addr,
11392 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
11393 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11394 (get_base_reg): Use microblaze_tls_symbol_p.
11395 (microblaze_classify_address): Handle TLS.
88b97037
UB
11396 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11397 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
11398 (microblaze_legitimize_address): Handle TLS.
11399 (microblaze_address_insns): Handle ADDRESS_TLS.
11400 (pic_address_needs_scratch): Handle TLS.
11401 (print_operand_address): Handle TLS.
11402 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11403 (microblaze_expand_move): Handle TLS.
88b97037
UB
11404 (microblaze_legitimate_constant_p): Check
11405 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
11406 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11407 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11408 (PIC_OFFSET_TABLE_REGNUM): Set.
11409 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11410 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11411 (addsi3, movsi_internal2, movdf_internal): Update constraints
11412 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
11413 (move_operand): Redefine as move_src_operand,
11414 check microblaze_tls_referenced_p.
8cc9a5a5 11415
d803a491
IB
114162013-03-14 Ian Bolton <ian.bolton@arm.com>
11417
11418 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11419 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11420
a8504f22
IB
114212013-03-14 Ian Bolton <ian.bolton@arm.com>
11422
11423 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11424 CC mode for AND.
11425
df2dfaea
JJ
114262013-03-14 Jakub Jelinek <jakub@redhat.com>
11427
fbd28bc3
JJ
11428 PR tree-optimization/53265
11429 * common.opt (Waggressive-loop-optimizations): New option.
11430 * tree-ssa-loop-niter.c: Include tree-pass.h.
11431 (do_warn_aggressive_loop_optimizations): New function.
11432 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11433 if number_of_latch_executions returned constant.
11434 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11435 early. If number_of_latch_executions returned constant, set
11436 nb_iterations_upper_bound back to it.
11437 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11438 field.
11439 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11440 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11441
df2dfaea
JJ
11442 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11443 (MULTILIB_OSDIRNAMES): Set.
11444 * genmultilib: If defaultosdirname doesn't start with :: , set
11445 defaultosdirname2 instead, clear it and emit two . multilib_raw
11446 entries instead of just one.
11447
ee0d2b68
KK
114482013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11449
11450 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11451 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11452 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11453 (SUBTARGET_OVERRIDE_OPTIONS): New.
11454
decc676e
OE
114552013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11456
11457 PR target/49880
11458 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11459 (musermode): Convert to Var(TARGET_USERMODE).
11460 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11461 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11462 * config/sh/sh.c (sh_option_override): Use
11463 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11464 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11465 condition.
11466 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11467 TARGET_SH4.
11468 (udivsi3_i4_single, divsi3_i4_single): Use
11469 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11470
f4b719c7
DK
114712013-03-13 Dave Korn <dave.korn.cygwin@....>
11472
11473 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11474 default setting.
11475
c40eced0
RB
114762013-03-13 Richard Biener <rguenther@suse.de>
11477
11478 PR tree-optimization/56608
11479 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11480 calls when vectorizing basic-blocks.
11481
1bfa5973
JJ
114822013-03-13 Jakub Jelinek <jakub@redhat.com>
11483
11484 PR plugins/45078
11485 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11486 tm_file.
11487
6fcf5434
JJ
114882013-03-12 Jakub Jelinek <jakub@redhat.com>
11489
11490 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11491
4f38fa8c
JH
114922013-03-11 Jan Hubicka <jh@suse.cz>
11493
11494 PR lto/56557
11495 * lto-streamer-out.c (output_symbol_p): Skip references from
11496 constructors of external variables.
11497
c5c5ba89
JH
114982013-03-11 Jan Hubicka <jh@suse.cz>
11499
11500 PR middle-end/56571
11501 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11502 from pseudos.
11503 * emit-rtl.c (verify_rtx_sharing): Likewise.
11504 (copy_insn_1): Likewise.
11505 * rtl.c (copy_rtx): Likewise.
11506
c2a939b1
GJL
115072013-03-11 Georg-Johann Lay <avr@gjlay.de>
11508
11509 PR target/56591
11510 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11511 output_operand_lossage message.
88b97037 11512
3c3279fb
RE
115132013-03-11 Richard Earnshaw <rearnsha@arm.com>
11514
11515 PR target/56470
11516 * arm.c (shift_op): Validate RTL pattern on the fly.
11517 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11518 the RTL.
11519
aef5ef9d
JDA
115202013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11521
11522 PR target/56347
11523 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11524 new call patterns that clobber %fr12.
11525 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11526 split and postreload patterns.
11527 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11528 registers %fr12 and %fr12R as call used.
11529
456610d3
SB
115302013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11531
11532 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11533 (canon_address, record_store, replace_read, check_mem_read_rtx,
11534 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11535 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11536 rest_of_handle_dse): Likewise.
11537
4b1baac8
RS
115382013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11539
11540 PR middle-end/56524
11541 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11542 Add base_optabs.
11543 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11544 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11545 (save_optabs_if_changed): Replace with...
11546 (init_tree_optimization_optabs): ...this.
11547 * optabs.c (save_optabs_if_changed): Rename to...
11548 (init_tree_optimization_optabs): ...this. Take the optimization node
11549 as argument. Do nothing if the base optabs are already correct.
11550 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11551 to recompute optabs.
11552 * function.h (function): Remove optabs field.
11553 * function.c (invoke_set_current_function_hook): Call
11554 init_tree_optimization_optabs. Use the result to initialize
11555 this_fn_optabs.
11556
b7a78683
AH
115572013-02-27 Aldy Hernandez <aldyh@redhat.com>
11558
11559 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11560 if GTMA_HAS_NO_INSTRUMENTATION.
11561 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11562 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11563 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11564 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11565 GTMA_HAS_NO_INSTRUMENTATION.
11566
6384c29b
JJ
115672013-03-08 Jakub Jelinek <jakub@redhat.com>
11568
11569 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11570 libasan_preinit.o.
11571
ecd4f20a
MP
115722013-03-08 Marek Polacek <polacek@redhat.com>
11573 Jakub Jelinek <jakub@redhat.com>
11574
11575 PR tree-optimization/56478
11576 * predict.c (is_comparison_with_loop_invariant_p): Change the
11577 type of loop_step to tree.
11578 (predict_loops): Adjust.
11579 (predict_iv_comparison): Perform the computations on double_ints.
11580
64366d35
RB
115812013-03-08 Richard Biener <rguenther@suse.de>
11582
11583 PR tree-optimization/56570
11584 * tree-cfg.c (verify_expr_location_1): Verify locations for
11585 DECL_DEBUG_EXPR.
11586 * tree-sra.c (create_access_replacement): Strip locations
11587 from DECL_DEBUG_EXPRs.
11588
a9d5a059
RB
115892013-03-08 Richard Biener <rguenther@suse.de>
11590
11591 * tree-inline.c (expand_call_inline): Do not associate
11592 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11593 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11594
b7aa4e9a
RB
115952013-03-08 Richard Biener <rguenther@suse.de>
11596
11597 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11598 or block changes with -Og. Fix for location / block encoding
11599 changes and PHI arguments with locations.
11600
c4c2f9fa
SB
116012013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11602
11603 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11604 for all counters.
11605 (struct output_info): Likewise.
11606 (register_overhead): Remove bad gcc_assert.
11607 (bitmap_find_bit): If there is only a single bitmap element, do not
11608 count a miss as a search.
11609 (print_statistics): Update for counter type changes.
11610 (dump_bitmap_statistics): Likewise. Print headers such that they
11611 are properly lined up with the printed counters.
11612
5bf6606a
JJ
116132013-03-07 Jakub Jelinek <jakub@redhat.com>
11614
11615 PR tree-optimization/56559
11616 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11617 check that it has only a single use.
11618
2c653d46
RB
116192013-03-07 Richard Biener <rguenther@suse.de>
11620
11621 * doc/invoke.texi (fwhole-program): Discourage use in combination
11622 with -flto.
11623
a72d8780
JJ
116242013-03-06 Jakub Jelinek <jakub@redhat.com>
11625
01a454df
JJ
11626 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11627
c1781047
JJ
11628 PR tree-optimization/56539
11629 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11630 instead of GSI_CONTINUE_LINKING as last argument to
11631 force_gimple_operand_gsi. Adjust function comment.
11632
9772c47a
JJ
11633 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11634 aarch64-cores.def.
11635
a72d8780
JJ
11636 PR middle-end/56548
11637 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11638 promoted mode, convert the result back to the original mode.
11639
fa5556de
RB
116402013-03-06 Richard Biener <rguenther@suse.de>
11641
11642 PR middle-end/56294
11643 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11644 (insert_updated_phi_nodes_compare_uids): New function.
11645 (update_ssa): Sort symbols_to_rename after UID before
11646 traversing it to insert PHI nodes.
11647
010403d1
RB
116482013-03-06 Richard Biener <rguenther@suse.de>
11649
11650 PR middle-end/50494
11651 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11652 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11653
11654 Revert
11655 2013-02-13 Richard Biener <rguenther@suse.de>
11656
11657 PR lto/50494
11658 * varasm.c (output_constant_def_1): Get the decl representing
11659 the constant as argument.
11660 (output_constant_def): Wrap output_constant_def_1.
11661 (make_decl_rtl): Use output_constant_def_1 with the decl
11662 representing the constant.
11663 (build_constant_desc): Optionally re-use a decl already
11664 representing the constant.
11665 (tree_output_constant_def): Adjust.
11666
3c27ce4c
JY
116672013-03-06 Joey Ye <joey.ye@arm.com>
11668
11669 PR lto/50293
11670 * gcc.c (convert_white_space): New function.
11671 (main): Handles white space in function name.
11672
8f6d1c86
OE
116732013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11674
11675 PR target/56529
11676 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11677 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11678 to SH_DIV_CALL_TABLE for TARGET_SH2.
11679 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11680 list.
11681 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11682 call-table options.
11683
798a209f
SA
116842013-03-05 Sterling Augustine <saugustine@google.com>
11685 Cary Coutant <ccoutant@google.com>
11686
11687 PR debug/55364
11688 * dwarf2out.c (resolve_addr): Don't call
11689 remove_loc_list_addr_table_entries a second time for the same
11690 expression.
11691
6cfa417f 116922013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 11693
6cfa417f
JJ
11694 PR debug/56510
11695 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11696 (avoid_complex_debug_insns): New function.
11697 (expand_debug_locations): Call it.
11698
11699 PR rtl-optimization/56484
11700 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11701 lifetimes of hard registers on small register class machines.
11702
117032013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11704
11705 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 11706 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 11707 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
11708 fast_interrupt.
11709 (microblaze_fast_interrupt_function_p): New function.
11710 (microblaze_is_interrupt_handler): Rename to
11711 microblaze_is_interrupt_variant and add fast_interrupt check.
11712 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11713 (save_restore_insns): Likewise.
11714 (compute_frame_size): Likewise.
11715 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11716 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
11717 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11718 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
11719 microblaze_is_interrupt_variant.
11720
731aefac
KT
117212013-03-05 Kai Tietz <ktietz@redhat.com>
11722
11723 * sdbout.c (sdbout_one_type): Switch to current function's section
11724 supporting cold/hot.
11725
a72d8780 117262013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
11727
11728 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11729 -mxl-reorder.
11730
334e71e8
JJ
117312013-03-05 Jakub Jelinek <jakub@redhat.com>
11732
0b50e654
JJ
11733 PR middle-end/56461
11734 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11735 if VALGRIND_GET_VBITS is defined, temporarily make object
11736 memory all defined, and restore previous valgrind addressability
11737 and definability afterwards. Free this_object at the end.
11738
4ccf8f43
JJ
11739 PR middle-end/56461
11740 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11741 right before calling lra_create_live_ranges, also call it
11742 when clearing live_p. Only call lra_clear_live_ranges
11743 at the end if live_p.
11744
334e71e8
JJ
11745 PR middle-end/56461
11746 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11747
9ca966ca
RB
117482013-03-05 Richard Biener <rguenther@suse.de>
11749
11750 PR tree-optimization/56521
11751 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11752 value-id.
11753
d273b176
SB
117542013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11755
11756 PR c++/55135
11757 * except.h (remove_unreachable_eh_regions): New prototype.
11758 * except.c (remove_eh_handler_splicer): New function, split out
11759 of remove_eh_handler.
11760 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11761 warning about running it on many EH regions one at a time.
11762 (remove_unreachable_eh_regions_worker): New function, walk the
11763 EH tree in depth-first order and remove non-marked regions.
11764 (remove_unreachable_eh_regions): New function.
11765 * tree-eh.c (mark_reachable_handlers): New function, split out
11766 from remove_unreachable_handlers.
11767 (remove_unreachable_handlers): Use mark_reachable_handlers and
11768 remove_unreachable_eh_regions.
11769 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11770 and remove_unreachable_eh_regions.
11771
5e7f1aef
RB
117722013-03-05 Richard Biener <rguenther@suse.de>
11773
11774 PR middle-end/56525
11775 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11776 not freeing them until the end.
11777
f276b762
AK
117782013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11779
11780 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11781
12a43ab8
RB
117822013-03-05 Richard Biener <rguenther@suse.de>
11783
11784 PR tree-optimization/56270
11785 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11786 of loads after scheduling an SLP instance.
11787
93675444
JJ
117882013-03-05 Jakub Jelinek <jakub@redhat.com>
11789
db4138e3
JJ
11790 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11791 tic6x.exp.
11792 (check_gcc_parallelize): Run guality.exp as a separate job from
11793 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11794 struct-layout-1.exp with stackalign.exp.
11795
dd3d1ec0
JJ
11796 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11797
b8d381a3
JJ
11798 PR middle-end/56461
11799 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11800 load_index sbitmap even if some bit in it isn't set.
11801
b4f9786b
JJ
11802 PR middle-end/56461
11803 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11804 (discover_iteration_bound_by_body_walk): Change queues to
11805 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11806 spelling in comment. Call safe_push on queues[bound_index] directly.
11807 Release queues[queue_index] in every iteration unconditionally.
11808 Release bounds vector.
11809
93675444
JJ
11810 PR middle-end/56461
11811 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11812 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11813 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11814 inner_phis vector.
11815
3e492e9c
RB
118162013-03-05 Richard Biener <rguenther@suse.de>
11817
11818 PR lto/56515
11819 * tree-inline.c (remap_blocks_to_null): New function.
11820 (expand_call_inline): When expanding a call stmt without
11821 an associated block inline remap all callee blocks to NULL.
11822
a5d1569a
JJ
118232013-03-05 Jakub Jelinek <jakub@redhat.com>
11824
86efb5cd
JJ
11825 PR rtl-optimization/56494
11826 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11827 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11828 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11829
85f5dbea
JJ
11830 PR middle-end/56461
11831 * sel-sched-ir.c (free_sched_pools): Release
11832 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11833 if succs_info_pool.max_top isn't -1.
11834
a5d1569a
JJ
11835 PR bootstrap/56509
11836 * opts.c (opts_obstack, opts_concat): Moved to...
11837 * opts-common.c (opts_obstack, opts_concat): ... here.
11838
4432aa6c
JJ
118392013-03-04 Jakub Jelinek <jakub@redhat.com>
11840
11841 PR middle-end/56461
11842 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11843
f3a1fb91
MJ
118442013-03-04 Martin Jambor <mjambor@suse.cz>
11845
11846 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11847 all appropriate places.
11848
22110e6c
EB
118492013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11850
11851 PR tree-optimization/56424
11852 * ipa-split.c (split_function): Do not set the RSO flag if result is
11853 not by reference and its type is a register type.
11854
a72d8780 118552013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 11856
88b97037 11857 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 11858 (microblaze_legitimate_pic_operand): Likewise
88b97037 11859 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
11860 new function microblaze_legitimate_pic_operand
11861 * config/microblaze/microblaze-protos.h
11862 (microblaze_legitimate_pic_operand): Declare.
11863
a72d8780 118642013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 11865
a72d8780 11866 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 11867 New predicate for supported rtx code types.
a72d8780 11868 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
11869 call_insn_simple_operand predicate.
11870
541d9ac8
JJ
118712013-03-04 Jakub Jelinek <jakub@redhat.com>
11872
5eb010bc
JJ
11873 PR middle-end/56461
11874 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11875 partitions.ordered_remove.
11876
30862efc
JJ
11877 PR middle-end/56461
11878 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11879 vec_oprnds0.create (1) for modifier == NONE.
11880
8930f723
JJ
11881 PR middle-end/56461
11882 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11883 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11884 vec_oprnds1 right before pushing anything to it for
11885 scalar_shift_arg.
11886
541d9ac8
JJ
11887 PR middle-end/56461
11888 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11889 set nbbs to 0 instead of having separate code path.
11890 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11891 instead of false as last argument if returning NULL.
11892
7aa7f2e3
SL
118932013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11894
11895 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11896 the attribute is now called "target" instead of "option".
11897 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11898 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11899 attribute/pragma name for TARGET_OPTION_VALID_P and
11900 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11901 * doc/tm.texi: Regenerated.
11902
8930f723 119032013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 11904
8930f723 11905 * config/microblaze/microblaze.c:
cb8a1637 11906 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
11907 * config/microblaze/microblaze.h: Add -mxl-reorder to
11908 DRIVER_SELF_SPECS.
11909 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11910 instructions emitted if TARGET_REORDER.
88b97037
UB
11911 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11912 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 11913 separately.
cb8a1637 11914
4dc1d68c
XDL
119152013-03-01 Xinliang David Li <davidxl@google.com>
11916
11917 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11918 walk length.
11919
689eaba3
JJ
119202013-03-01 Jakub Jelinek <jakub@redhat.com>
11921
9d676bf6
JJ
11922 PR middle-end/56461
11923 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11924 vector even when returning true. Fix up function comment formatting.
11925
caff7edf
JJ
11926 PR middle-end/56461
11927 * ira-build.c (ira_loop_nodes_count): New variable.
11928 (create_loop_tree_nodes): Initialize it.
11929 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11930
b6b9227d
JJ
11931 PR middle-end/56461
11932 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11933 method on dr_chain and result_chain.
11934 * tree-vect-stmts.c (vectorizable_store): Only call
11935 result_chain.create if j == 0.
11936
689eaba3
JJ
11937 PR middle-end/56461
11938 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11939 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11940 before overwriting it.
11941
40bf31ed
TB
119422013-03-01 Tobias Burnus <burnus@net-b.de>
11943
11944 * doc/extended.texi (C Extensions): Change order in @menu
11945 to match @node.
11946 (Other MIPS Built-in Functions): Move last MIPS entry before
11947 "picoChip Built-in Functions".
11948 (SH Built-in Functions): Move after RX Built-in Functions.
11949 * doc/gcc.texi (Introduction): Change order in @menu
11950 to match @node.
11951 * doc/md.texi (Constraints): Ditto.
11952 * gty.texi (Type Information): Ditto.
11953 (User-provided marking routines for template types): Make
11954 subsection.
11955 * doc/invoke.texi (AArch64 Options): Move before
11956 "Adapteva Epiphany Options".
11957
e664c61c
KS
119582013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11959 Jakub Jelinek <jakub@redhat.com>
11960
11961 PR sanitizer/56454
11962 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11963 no_address_safety_analysis attribute.
11964 * doc/extend.texi (no_address_safety_attribute): Rename to
11965 no_sanitize_address attribute, mention no_address_safety_analysis
11966 attribute as deprecated alias.
11967
37b5ec8f
JJ
119682013-02-28 Jakub Jelinek <jakub@redhat.com>
11969
11970 PR middle-end/56461
11971 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11972 type to vec<vec<tree> > *.
11973 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11974 to be vec<tree> instead of vec<tree> *, set vec_defs
11975 to vNULL and call vec_defs.create (number_of_vects), adjust other
11976 uses of vec_defs.
11977 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11978 vectorizable_condition): Adjust vect_get_slp_defs callers.
11979
ba96cdfb
JG
119802013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11981
11982 * config/aarch64/aarch64.c
11983 (aarch64_float_const_representable): Remove unused variable.
11984
6f549691
JG
119852013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11986
11987 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11988
af55e82d
JG
119892013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11990
11991 * config/aarch64/aarch64-builtins.c
11992 (aarch64_init_simd_builtins): Make static.
11993
1df3f464
JG
119942013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11995
11996 * config/aarch64/aarch64.c
11997 (aarch64_simd_make_constant): Make static.
11998
f8f42513
MJ
119992013-02-28 Martin Jambor <mjambor@suse.cz>
12000
12001 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12002 with no initialization to the RHS of debug statements.
12003
b48b3fc4
MJ
120042013-02-28 Martin Jambor <mjambor@suse.cz>
12005
12006 PR tree-optimization/56294
12007 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12008 Adjust dumping.
12009 (get_access_replacement): Do not call create_access_replacement.
12010 Assert a replacement exists.
12011 (get_repl_default_def_ssa_name): Create the replacement declaration
12012 itself.
12013
c3ae224c
RR
120142013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12015
12016 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12017 final_end_function.
12018
45fa0eef
MP
120192013-02-28 Marek Polacek <polacek@redhat.com>
12020
12021 PR rtl-optimization/56466
12022 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12023 if we're changing a loop.
12024 (peel_loops_completely): Likewise.
12025
502c067d
PC
120262013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12027
12028 PR c++/55813
12029 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12030
ff24afc8
GJL
120312013-02-28 Georg-Johann Lay <avr@gjlay.de>
12032
12033 PR target/56445
12034 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12035 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12036 INTX_FTYPE_FX, FX_FTYPE_INTX.
12037 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12038
c7b1fc1b
GJL
120392013-02-28 Georg-Johann Lay <avr@gjlay.de>
12040
12041 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12042 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12043 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12044 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12045 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12046 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12047 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12048 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12049 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12050 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12051 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12052 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12053 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12054 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12055 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12056 (avrxmega6): Increase max flash segments from 5 to 6.
12057 * config/avr/t-multilib: Regenerate.
12058 * config/avr/avr-tables.opt: Regenerate.
12059 * doc/avr-mmcu.texi: Regenerate.
12060
4a0e3cfe
GJL
120612013-02-28 Georg-Johann Lay <avr@gjlay.de>
12062
12063 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12064 (avr_device_to_arch): Rename to avr_device_to_ld.
12065 (avr_device_to_as): New prototype.
12066 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12067 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12068 * config/avr/driver-avr.c (avr_device_to_as): New.
12069 (avr_device_to_arch): Rename to avr_device_to_ld.
12070
97785e52
JJ
120712013-02-27 Jakub Jelinek <jakub@redhat.com>
12072
3f292312
JJ
12073 PR middle-end/56461
12074 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12075 method on dr_chain and result_chain.
12076
a344216b
JJ
12077 PR middle-end/56461
12078 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12079 pointer_set_destroy on not_executed_last_iteration.
12080
f121ad02 12081 PR middle-end/56461
88b97037 12082 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 12083
307f83a3
JJ
12084 PR middle-end/56461
12085 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12086 FOR_EACH_DEFINED_FUNCTION when freeing state.
12087
e19624ee
JJ
12088 PR middle-end/56461
12089 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12090 pool_free.
12091 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12092 overwriting it.
12093
90e709fd
JJ
12094 PR middle-end/56461
12095 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12096 known_aggs[i].items and release known_aggs vector.
12097
97785e52
JJ
12098 PR middle-end/56461
12099 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12100
121012013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 12102
97785e52
JJ
12103 * config/microblaze/microblaze.c (microblaze_emit_compare):
12104 Use xor for EQ/NE comparisions.
12105 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12106 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 12107
6fa5e0ed
JJ
121082013-02-27 Jakub Jelinek <jakub@redhat.com>
12109
12110 PR middle-end/56461
12111 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12112 vector.
12113 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12114 vec_safe_push, always update *slot.
12115 (redirect_edge_var_map_clear): Use vec_free.
12116 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12117 (free_var_map_entry): Use vec_free.
12118 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12119 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12120
436a956a
AB
121212013-02-27 Andrey Belevantsev <abel@ispras.ru>
12122
12123 PR middle-end/45472
436a956a
AB
12124 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12125 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
12126 Reorder tests for speculativeness in the logical and operator.
12127
f5c2caca
JJ
121282013-02-27 Jakub Jelinek <jakub@redhat.com>
12129
0fcb564b
JJ
12130 * incpath.c (add_standard_paths): Use reconcat instead of concat
12131 where appropriate and avoid leaking memory.
12132
dc357798
JJ
12133 * opts.h: Include obstack.h.
12134 (opts_concat): New prototype.
12135 (opts_obstack): New declaration.
12136 * opts.c (opts_concat): New function.
12137 (opts_obstack): New variable.
12138 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12139 (finish_options): Use opts_concat instead of concat
12140 and XOBNEWVEC instead of XNEWVEC.
12141 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12142 generate_option): Likewise.
12143 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12144 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12145
f5c2caca
JJ
12146 PR target/56455
12147 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12148 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12149
d0163673
JJ
121502013-02-26 Jakub Jelinek <jakub@redhat.com>
12151
12152 PR middle-end/56461
12153 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12154
b5ad2b8e
JR
121552013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12156
12157 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12158 (arm_block_move_unaligned_straight): Likewise.
12159 (arm_adjust_block_mem): Likewise.
12160
9b639e2c
JR
121612013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12162
12163 PR target/48901
12164 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12165 temp, cond and label.
12166 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12167
e13a0ccb
JR
12168 PR target/52500
12169 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12170 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12171
fbe4f171
JR
12172 PR target/52501
12173 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12174 of prologue/epilogue functions.
12175
ae006543
JR
12176 PR target/52550
12177 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12178 Remove unused variable cfa_offset.
12179 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12180
c81369fa
JR
12181 PR target/54639
12182 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12183 type promotion to unsigned.
12184
f8a8fea7
JR
12185 PR target/54640
12186 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12187 for HOST_WIDE_INT of 32 bit / same size as int.
12188 (arm_block_move_unaligned_straight): Likewise.
12189 (arm_adjust_block_mem): Likewise.
12190
f8be5169
JR
12191 PR target/54662
12192 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12193 ALL_CFLAGS.
12194
f1ad3354
MP
121952013-02-26 Marek Polacek <polacek@redhat.com>
12196
12197 PR tree-optimization/56426
88b97037 12198 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 12199
a6af0f42
RB
122002013-02-26 Richard Biener <rguenther@suse.de>
12201
12202 PR target/56444
12203 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12204 unused variable loops.
12205
aca43c6c
JJ
122062013-02-26 Jakub Jelinek <jakub@redhat.com>
12207
cecbe5d9
JJ
12208 PR tree-optimization/56448
12209 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12210 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12211 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12212 later operands of the references, or even first operand for
12213 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12214
aca43c6c
JJ
12215 PR tree-optimization/56443
12216 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12217 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12218 to type_for_mode langhook.
12219
53e2e141
MT
122202013-02-25 Matt Turner <mattst88@gmail.com>
12221
12222 * doc/invoke.texi: Document r4700.
12223
259ee451
RB
122242013-02-25 Richard Biener <rguenther@suse.de>
12225
12226 PR tree-optimization/56175
12227 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12228 split out from ...
12229 (simplify_bitwise_binary): ... here. Also guard the conversion
12230 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12231
6d65e8f1
CM
122322013-02-25 Catherine Moore <clm@codesourcery.com>
12233
12234 Revert:
12235 2013-02-24 Catherine Moore <clm@codesourcery.com>
12236 Maciej W. Rozycki <macro@codesourcery.com>
12237 Tom de Vries <tom@codesourcery.com>
a72d8780 12238 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
12239 Iain Sandoe <iain@codesourcery.com>
12240 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12241 Chao-ying Fu <fu@mips.com>
88b97037 12242
6d65e8f1 12243 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12244 Document new function attributes.
6d65e8f1
CM
12245 * doc/invoke.texi (minterlink-compressed, mmicromips,
12246 m14k, m14ke, m14kec): Document new options.
12247 (minterlink-mips16): Update documentation.
12248 * doc/md.texi (ZC, ZD): Document new constraints.
12249 * configure.ac (gcc_cv_as_micromips): Check if linker
12250 supports the .set micromips directive.
12251 * configure: Regenerate.
12252 * config.in: Regenerate.
12253 * config/mips/mips-tables.opt: Regenerate.
12254 * config/mips/micromips.md: New file.
12255 * constraints.md (ZC, AD): New constraints.
12256 * config/mips/predicates.md (movep_src_register): New predicate.
12257 (movep_src_operand): New predicate.
12258 (non_volatile_mem_operand): New predicate.
12259 * config/mips/mips.md (multimem): New type.
12260 (length): Differentiate between 17-bit and 18-bit branch offsets.
12261 (MOVEP1, MOVEP2): New mode iterator.
12262 (mov_<load>l): Use ZC constraint.
12263 (mov_<load>r): Likewise.
12264 (mov_<store>l): Likewise.
12265 (mov_<store>r): Likewise.
12266 (*branch_equality<mode>_inverted): Add microMIPS support.
12267 (*branch_equality<mode>): Likewise.
12268 (*jump_absolute): Likewise.
12269 (indirect_jump_<mode>): Likewise.
12270 (tablejump_<mode>): Likewise.
12271 (<optab>_internal): Likewise.
12272 (sibcall_internal): Likewise.
12273 (sibcall_value_internal): Likewise.
12274 (prefetch): Use constraint ZD.
12275 * config/mips/mips.opt (minterlink-compressed): New option.
12276 (minterlink-mips16): Now an alias for minterlink-compressed.
12277 (mmicromips): New option.
12278 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12279 (compare_and_swap_12): Likewise.
12280 (sync_add<mode>): Likewise.
12281 (sync_<optab>_12): Likewise.
12282 (sync_old_<optab>_12): Likewise.
12283 (sync_new_<optab>_12): Likewise.
12284 (sync_nand_12): Likewise.
12285 (sync_old_nand_12): Likewise.
12286 (sync_new_nand_12): Likewise.
12287 (sync_sub<mode>): Likewise.
12288 (sync_old_add<mode>): Likewise.
12289 (sync_old_sub<mode>): Likewise.
12290 (sync_new_add<mode>): Likewise.
12291 (sync_new_sub<mode>): Likewise.
12292 (sync_<optab><mode>): Likewise.
12293 (sync_old_<optab><mode>): Likewise.
12294 (sync_new_<optab><mode>): Likewise.
12295 (sync_nand<mode>): Likewise.
12296 (sync_old_nand<mode>): Likewise.
12297 (sync_new_nand<mode>): Likewise.
12298 (sync_lock_test_and_set<mode>): Likewise.
12299 (test_and_set_12): Likewise.
12300 (atomic_compare_and_swap<mode>): Likewise.
12301 (atomic_exchange<mode>_llsc): Likewise.
12302 (atomic_fetch_add<mode>_llsc): Likewise.
12303 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12304 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12305 (umips_save_restore_pattern_p): Likewise.
12306 (umips_load_store_pair_p): Likewise.
12307 (umips_output_load_store_pair): Likewise.
12308 (umips_movep_target_p): Likewise.
12309 (umips_12bit_offset_address_p): Likewise.
12310 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12311 (mips_base_mips16): Rename this...
12312 (mips_base_compression_flags): ...to this. Update all uses.
12313 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12314 (mips_mips16_decl_p): Delete.
12315 (mips_nomips16_decl_p): Delete.
12316 (mips_get_compress_on_flags): New function.
12317 (mips_get_compress_off_flags): New function.
12318 (mips_get_compress_mode): New function.
12319 (mips_get_compress_on_name): New function.
12320 (mips_get_compress_off_name): New function.
12321 (mips_insert_attributes): Support multiple compression types.
12322 (mips_merge_decl_attributes): Likewise.
12323 (umips_12bit_offset_address_p): New function.
12324 (mips_start_function_definition): Emit .set micromips directive.
12325 (mips_call_may_need_jalx_p): New function.
12326 (mips_function_ok_for_sibcall): Add microMIPS support.
12327 (mips_print_operand_punctuation): Support short delay slots and
12328 compact jumps.
12329 (umips_swm_mask, umips_swm_encoding): New.
12330 (umips_build_save_restore): New function.
12331 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12332 (was_mips16_p): Remove.
12333 (old_compression_mode): New.
12334 (mips_set_compression_mode): New function.
12335 (mips_set_current_function): Add microMIPS support.
12336 (mips_option_override): Likewise.
12337 (umips_save_restore_pattern_p): New function.
12338 (umips_output_save_restore): New function.
12339 (umips_load_store_pair_p_1): New function.
12340 (umips_load_store_pair_p): New function.
12341 (umips_output_load_store_pair_1): New function.
12342 (umips_output_load_store_pair): New function.
12343 (umips_movep_target_p) New function.
12344 (mips_prepare_pch_save): Add microMIPS support.
12345 * config/mips/mips.h (TARGET_COMPRESSION): New.
12346 (TARGET_CPU_CPP_BUILTINS): Update macro
12347 to use new compression flags and to support microMIPS.
12348 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12349 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12350 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12351 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12352 (ASM_SPEC): Support mmicromips and mno-micromips.
12353 (M16STORE_REG_P): New macro.
12354 (MIPS_CALL): Support TARGET_MICROMIPS.
12355 (MICROMIPS_J): New macro.
12356 (mips_base_mips16): Rename this...
12357 (mips_base_compression_flags): ...to this.
12358 (UMIPS_12BIT_OFFSET_P): New macro.
12359 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12360 (MULTILIB_DIRNAMES): Likewise.
12361
5e5df392
TV
123622013-02-25 Tom de Vries <tom@codesourcery.com>
12363
12364 PR rtl-optimization/56131
12365 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12366 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12367 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12368
3fdb53c1
TB
123692013-02-25 Tobias Burnus <burnus@net-b.de>
12370
12371 * doc/invoke.texi (-fsanitize=): Move from optimization
12372 to debugging options.
12373
ed358aea
AB
123742013-02-25 Andrey Belevantsev <abel@ispras.ru>
12375
12376 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12377
f45e9053
AB
123782013-02-25 Andrey Belevantsev <abel@ispras.ru>
12379 Alexander Monakov <amonakov@ispras.ru>
12380
12381 PR middle-end/56077
12382 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12383 flush pending lists also on non-jumps. Adjust comment.
12384
6941b508
CM
123852013-02-24 Catherine Moore <clm@codesourcery.com>
12386 Maciej W. Rozycki <macro@codesourcery.com>
12387 Tom de Vries <tom@codesourcery.com>
a72d8780 12388 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
12389 Iain Sandoe <iain@codesourcery.com>
12390 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12391 Chao-ying Fu <fu@mips.com>
6941b508
CM
12392
12393 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12394 Document new function attributes.
6941b508
CM
12395 * doc/invoke.texi (minterlink-compressed, mmicromips,
12396 m14k, m14ke, m14kec): Document new options.
12397 (minterlink-mips16): Update documentation.
12398 * doc/md.texi (ZC, ZD): Document new constraints.
12399 * configure.ac (gcc_cv_as_micromips): Check if linker
12400 supports the .set micromips directive.
12401 * configure: Regenerate.
12402 * config.in: Regenerate.
12403 * config/mips/mips-tables.opt: Regenerate.
12404 * config/mips/micromips.md: New file.
12405 * constraints.md (ZC, AD): New constraints.
12406 * config/mips/predicates.md (movep_src_register): New predicate.
12407 (movep_src_operand): New predicate.
12408 (non_volatile_mem_operand): New predicate.
12409 * config/mips/mips.md (multimem): New type.
12410 (length): Differentiate between 17-bit and 18-bit branch offsets.
12411 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 12412 (mov_<load>l): Use ZC constraint.
6941b508
CM
12413 (mov_<load>r): Likewise.
12414 (mov_<store>l): Likewise.
12415 (mov_<store>r): Likewise.
12416 (*branch_equality<mode>_inverted): Add microMIPS support.
12417 (*branch_equality<mode>): Likewise.
12418 (*jump_absolute): Likewise.
12419 (indirect_jump_<mode>): Likewise.
12420 (tablejump_<mode>): Likewise.
12421 (<optab>_internal): Likewise.
12422 (sibcall_internal): Likewise.
12423 (sibcall_value_internal): Likewise.
12424 (prefetch): Use constraint ZD.
12425 * config/mips/mips.opt (minterlink-compressed): New option.
12426 (minterlink-mips16): Now an alias for minterlink-compressed.
12427 (mmicromips): New option.
12428 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12429 (compare_and_swap_12): Likewise.
12430 (sync_add<mode>): Likewise.
12431 (sync_<optab>_12): Likewise.
12432 (sync_old_<optab>_12): Likewise.
12433 (sync_new_<optab>_12): Likewise.
12434 (sync_nand_12): Likewise.
12435 (sync_old_nand_12): Likewise.
12436 (sync_new_nand_12): Likewise.
12437 (sync_sub<mode>): Likewise.
12438 (sync_old_add<mode>): Likewise.
12439 (sync_old_sub<mode>): Likewise.
12440 (sync_new_add<mode>): Likewise.
12441 (sync_new_sub<mode>): Likewise.
12442 (sync_<optab><mode>): Likewise.
12443 (sync_old_<optab><mode>): Likewise.
12444 (sync_new_<optab><mode>): Likewise.
12445 (sync_nand<mode>): Likewise.
12446 (sync_old_nand<mode>): Likewise.
12447 (sync_new_nand<mode>): Likewise.
12448 (sync_lock_test_and_set<mode>): Likewise.
12449 (test_and_set_12): Likewise.
12450 (atomic_compare_and_swap<mode>): Likewise.
12451 (atomic_exchange<mode>_llsc): Likewise.
12452 (atomic_fetch_add<mode>_llsc): Likewise.
12453 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12454 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12455 (umips_save_restore_pattern_p): Likewise.
12456 (umips_load_store_pair_p): Likewise.
12457 (umips_output_load_store_pair): Likewise.
12458 (umips_movep_target_p): Likewise.
12459 (umips_12bit_offset_address_p): Likewise.
12460 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12461 (mips_base_mips16): Rename this...
12462 (mips_base_compression_flags): ...to this. Update all uses.
12463 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12464 (mips_mips16_decl_p): Delete.
12465 (mips_nomips16_decl_p): Delete.
3fdb53c1 12466 (mips_get_compress_on_flags): New function.
6941b508
CM
12467 (mips_get_compress_off_flags): New function.
12468 (mips_get_compress_mode): New function.
12469 (mips_get_compress_on_name): New function.
12470 (mips_get_compress_off_name): New function.
12471 (mips_insert_attributes): Support multiple compression types.
12472 (mips_merge_decl_attributes): Likewise.
12473 (umips_12bit_offset_address_p): New function.
12474 (mips_start_function_definition): Emit .set micromips directive.
12475 (mips_call_may_need_jalx_p): New function.
12476 (mips_function_ok_for_sibcall): Add microMIPS support.
12477 (mips_print_operand_punctuation): Support short delay slots and
12478 compact jumps.
12479 (umips_swm_mask, umips_swm_encoding): New.
12480 (umips_build_save_restore): New function.
12481 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12482 (was_mips16_p): Remove.
12483 (old_compression_mode): New.
12484 (mips_set_compression_mode): New function.
12485 (mips_set_current_function): Add microMIPS support.
12486 (mips_option_override): Likewise.
12487 (umips_save_restore_pattern_p): New function.
12488 (umips_output_save_restore): New function.
12489 (umips_load_store_pair_p_1): New function.
12490 (umips_load_store_pair_p): New function.
12491 (umips_output_load_store_pair_1): New function.
12492 (umips_output_load_store_pair): New function.
12493 (umips_movep_target_p) New function.
12494 (mips_prepare_pch_save): Add microMIPS support.
12495 * config/mips/mips.h (TARGET_COMPRESSION): New.
12496 (TARGET_CPU_CPP_BUILTINS): Update macro
12497 to use new compression flags and to support microMIPS.
12498 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12499 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12500 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12501 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12502 (ASM_SPEC): Support mmicromips and mno-micromips.
12503 (M16STORE_REG_P): New macro.
12504 (MIPS_CALL): Support TARGET_MICROMIPS.
12505 (MICROMIPS_J): New macro.
12506 (mips_base_mips16): Rename this...
12507 (mips_base_compression_flags): ...to this.
12508 (UMIPS_12BIT_OFFSET_P): New macro.
12509 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12510 (MULTILIB_DIRNAMES): Likewise.
12511
cdebbc6d
JJ
125122013-02-24 Jakub Jelinek <jakub@redhat.com>
12513
12514 PR target/52555
12515 * target-globals.c (save_target_globals): For init_reg_sets and
12516 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12517
18c63565
JG
125182013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12519
12520 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12521 * config/aarch64/t-aarch64
12522 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12523
2194f7a2
VM
125242013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12525
12526 PR inline-asm/56148
12527 * lra-constraints.c (process_alt_operands): Reload operand
12528 conflicting with earlier clobber only if no more other conflicting
12529 operands.
12530
7d613735
JJ
125312013-02-22 Jakub Jelinek <jakub@redhat.com>
12532
12533 PR sanitizer/56393
12534 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12535 if not linking a shared library.
12536
ac8d93a7
SL
125372013-02-22 Seth LaForge <sethml@google.com>
12538
12539 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12540
e0237780
GY
125412013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12542
3fdb53c1
TB
12543 * config/arm/arm.md (split for extendsidi): Update condition.
12544 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12545 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12546 (qhs_zextenddi_cstr): Likewise.
e0237780 12547
d7fde18c
JJ
125482013-02-21 Jakub Jelinek <jakub@redhat.com>
12549
be63b77d
JJ
12550 PR middle-end/56420
12551 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12552 avoid signed wrapping.
12553 (expand_mult): Handle properly multiplication by
12554 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12555 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12556 in the compiler if coeff is HOST_WIDE_INT_MIN.
12557 (expand_divmod): Don't make ext_op1 static, change it's type to
12558 uhwi. Avoid undefined behavior in -INTVAL (op1).
12559
d7fde18c
JJ
12560 PR rtl-optimization/50339
12561 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12562 field.
12563 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12564 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12565 into splitting_ashiftrt field.
12566 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12567 ASHIFTRT.
12568 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12569 choices.
12570
6aad4455
AH
125712013-02-20 Aldy Hernandez <aldyh@redhat.com>
12572
12573 PR middle-end/56108
12574 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12575 are sure to go irrevocable.
12576
38fe784d
HPN
125772013-02-21 Hans-Peter Nilsson <hp@axis.com>
12578
12579 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12580 scalars are valid operands.
12581
0fd44da3
MJ
125822013-02-21 Martin Jambor <mjambor@suse.cz>
12583
12584 PR tree-optimization/56310
12585 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12586 only matching indices and non-negative final offsets.
12587 (intersect_aggregates_with_edge): Pass src_idx to
12588 agg_replacements_to_vector. Pass src_idx insstead of index to
12589 intersect_with_agg_replacements.
12590
7a92038b
MJ
125912013-02-21 Martin Jambor <mjambor@suse.cz>
12592
12593 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12594 instead of hard-wired defaults.
12595
c0da9c37
MR
125962013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12597
12598 * doc/invoke.texi (MIPS Options): Update documentation of the
12599 floating-point multiply-accumulate instruction restrictions.
12600
d247ea0c 126012013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
12602
12603 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12604 asan_shadow_offset on x86_64 linux.
12605
22deefcb
RB
126062013-02-21 Richard Biener <rguenther@suse.de>
12607
12608 PR tree-optimization/56415
12609 Revert
12610 2013-02-11 Richard Biener <rguenther@suse.de>
12611
12612 PR tree-optimization/56273
12613 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12614 first VRP run.
12615
7bcc6e75
JJ
126162013-02-21 Jakub Jelinek <jakub@redhat.com>
12617
a0ad148f
JJ
12618 PR bootstrap/56258
12619 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12620 instead of @itemx.
12621
7bcc6e75
JJ
12622 PR inline-asm/56405
12623 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12624 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12625
a0a7b611
JH
126262013-02-20 Jan Hubicka <jh@suse.cz>
12627
12628 PR tree-optimization/56265
88b97037
UB
12629 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12630 when target is referenced for first time.
a0a7b611 12631
c0e50f72
RB
126322013-02-20 Richard Biener <rguenther@suse.de>
12633
12634 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12635 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12636 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12637 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12638 not return anything.
12639 (rename_ssa_copies): Do not remove unused locals.
12640 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 12641 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
12642 * passes.c (execute_function_todo): Do not schedule unused locals
12643 removal if cleanup_tree_cfg did something.
12644 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12645 about the number of removed locals.
12646
a52ca739
RB
126472013-02-20 Richard Biener <rguenther@suse.de>
12648
12649 PR tree-optimization/56398
88b97037 12650 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 12651
ec9c9d1b
MJ
126522013-02-20 Martin Jambor <mjambor@suse.cz>
12653
12654 PR tree-optimization/55334
12655 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12656 restricted pointers to arrays.
12657
e91c8ed6 126582013-02-20 Richard Biener <rguenther@suse.de>
88b97037 12659 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
12660
12661 PR tree-optimization/56396
12662 * tree-ssa-ccp.c (n_const_val): New static variable.
12663 (get_value): Return NULL for SSA names we don't have a lattice
12664 entry for.
12665 (ccp_initialize): Initialize n_const_val.
12666 * tree-ssa-copy.c (n_copy_of): New static variable.
12667 (init_copy_prop): Initialize n_copy_of.
12668 (get_value): Return NULL_TREE for SSA names we don't have a
12669 lattice entry for.
12670
3d916479
MJ
126712013-02-20 Martin Jambor <mjambor@suse.cz>
12672
12673 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12674
71a86758
RB
126752013-02-20 Richard Biener <rguenther@suse.de>
12676
12677 * genpreds.c (write_lookup_constraint): Do not compare first
12678 letter of the constraint again.
12679
79836a12
RB
126802013-02-20 Richard Biener <rguenther@suse.de>
12681
12682 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12683 and ceil_log2.
12684 (get_use_iv_cost): Terminate hashtable walk when coming across
12685 an empty entry.
12686
bbe4fb2c
IZ
126872013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12688
12689 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12690 reassociation for avx2 targets.
12691
a72d8780 126922012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 12693
c77f83d5
EI
12694 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12695 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 12696 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
12697 version and TARGET_PATTERN_COMPARE check
12698 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 12699
a72d8780 127002012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 12701
a72d8780 12702 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
12703 function before branching.
12704
242387fa
AB
127052012-02-19 Andrey Belevantsev <abel@ispras.ru>
12706
12707 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12708 DUMP_INSN_RTX_UID.
12709 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12710
b4979ab9
AB
127112012-02-19 Andrey Belevantsev <abel@ispras.ru>
12712
12713 PR middle-end/55889
b4979ab9
AB
12714 * sel-sched.c: Include ira.h.
12715 (implicit_clobber_conflict_p): New function.
12716 (moveup_expr): Use it.
88b97037 12717 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 12718
24d63016
RB
127192013-02-19 Richard Biener <rguenther@suse.de>
12720
12721 PR tree-optimization/56384
12722 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12723 (vn_hash_type): Split out from ...
12724 (vn_hash_constant_with_type): ... here.
12725 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12726 (vn_phi_eq): Compare types from vn_phi_s structure.
12727 (vn_phi_lookup): Populate vn_phi_s type.
12728 (vn_phi_insert): Likewise.
12729
a475fd3d
JJ
127302013-02-19 Jakub Jelinek <jakub@redhat.com>
12731
47cc28f5
JJ
12732 PR tree-optimization/56350
12733 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12734 if haven't found reduction or nested cycle operand, rather than
12735 asserting we must find it.
12736
a475fd3d
JJ
12737 PR tree-optimization/56381
12738 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12739 to fold_build3.
12740
127412013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
12742 Jakub Jelinek <jakub@redhat.com>
12743
12744 PR target/52555
12745 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12746 (swap_optab_enable): Same.
12747 (init_all_optabs): Use argument instead of global.
88b97037 12748 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
12749 * expr.h (init_all_optabs): Add argument to prototype.
12750 (TREE_OPTIMIZATION_OPTABS): New.
12751 (save_optabs_if_changed): Protoize.
12752 * optabs.h: Declare this_fn_optabs.
12753 * optabs.c (save_optabs_if_changed): New.
12754 Declare this_fn_optabs.
12755 (init_optabs): Add argument to init_all_optabs() call.
12756 * function.c (invoke_set_current_function_hook): Handle per
12757 function optabs.
12758 * function.h (struct function): New field optabs.
12759 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12760 optimization_current_node has changed.
12761 * target-globals.h (save_target_globals_default_opts): Protoize.
12762 * target-globals.c (save_target_globals_default_opts): New.
12763
3f587ca3
JDA
127642013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12765
12766 PR target/56347
12767 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12768 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
12769
12770 PR target/56214
12771 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
12772 and HImode, require all displacements to be an integer multiple of
12773 their mode size.
ceaca33e
JDA
12774 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12775 only allow QImode and HImode when reload is in progress and strict is
12776 true. Likewise for symbolic addresses. Use base14_operand to check
12777 displacements in REG+BASE addresses.
12778
fe0b4796
RB
127792013-02-18 Richard Biener <rguenther@suse.de>
12780
12781 PR tree-optimization/56366
12782 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12783 handle sign-conversion of outer-loop initial induction value.
12784
6aaf596b
RB
127852013-02-18 Richard Biener <rguenther@suse.de>
12786
73db8ff1 12787 PR middle-end/56349
6aaf596b
RB
12788 * cfghooks.c (merge_blocks): If we merge a latch into another
12789 block adjust references to it.
12790 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12791 (verify_loop_structure): Verify that a recorded latch is in fact
12792 a latch.
12793
5e97dfb6
RB
127942013-02-18 Richard Biener <rguenther@suse.de>
12795
12796 PR tree-optimization/56321
12797 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12798 order SSA name release and virtual operand unlinking.
12799
825527e8
EI
128002013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12801
12802 * config/microblaze/microblaze.md (save_stack_block): Define.
12803 (restore_stack_block): Likewise.
12804
debd11d9
EI
128052013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12806
12807 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12808 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12809 * config/microblaze/microblaze.c (microblaze_option_override):
12810 Bail out early for PIC modes when target does not support PIC.
12811
8ec77be0
EI
128122013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12813
88b97037 12814 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
12815 Replace with a microblaze version.
12816 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 12817 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
12818 microblaze.
12819
b41288b3
JJ
128202013-02-16 Jakub Jelinek <jakub@redhat.com>
12821 Dodji Seketeli <dodji@redhat.com>
12822
12823 PR asan/56330
88b97037 12824 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
12825 (instrument_mem_region_access): Do not forget to always put
12826 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12827 0) statement, even for cases where either 'base' or 'base + len'
12828 are not instrumented -- because they have been previously
12829 instrumented. Simplify the logic by putting all the statements
12830 instrument 'base + len' inside a sequence, and then insert that
12831 sequence right before the current insertion point. Then, to
12832 instrument 'base + len', just get an iterator on that statement.
12833 And do not forget to update the pointer to iterator the function
12834 received as argument.
12835
47918951
VM
128362013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12837
12838 PR rtl-optimization/56348
12839 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12840
3fb7c699
SB
128412013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12842
12843 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12844 (clean_graph_dump_file): Pass base to start_graph_dump.
12845
576fe41a
RH
128462013-02-14 Richard Henderson <rth@redhat.com>
12847
12848 PR target/55941
12849 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12850
bb3accfa
SB
128512013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12852
12853 * collect2-aix.h: Define F_LOADONLY.
12854
03143140
RB
128552013-02-14 Richard Biener <rguenther@suse.de>
12856
12857 PR lto/50494
12858 * varasm.c (output_constant_def_1): Get the decl representing
12859 the constant as argument.
12860 (output_constant_def): Wrap output_constant_def_1.
12861 (make_decl_rtl): Use output_constant_def_1 with the decl
12862 representing the constant.
12863 (build_constant_desc): Optionally re-use a decl already
12864 representing the constant.
12865 (tree_output_constant_def): Adjust.
12866
8fb06726
DS
128672013-02-14 Dodji Seketeli <dodji@redhat.com>
12868
12869 Fix an asan crash
12870 * asan.c (instrument_builtin_call): Really put the length of the
12871 second source argument into src1_len.
12872
c4bfe8bf
JJ
128732013-02-13 Jakub Jelinek <jakub@redhat.com>
12874
12875 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12876 argument. If it is false, don't create edge from then_bb to
12877 fallthru_bb.
12878 (insert_if_then_before_iter): Pass true to it.
12879 (build_check_stmt): Pass false to it.
12880 (transform_statements): Flush hash table only on extended basic
12881 block boundaries, rather than at the beginning of every bb.
12882 Don't flush hash table on nonfreeing_call_p calls.
12883 * tree-flow.h (nonfreeing_call_p): New prototype.
12884 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12885
7afe2801
DM
128862013-02-13 David S. Miller <davem@davemloft.net>
12887
12888 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12889
70cc3288
VM
128902013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12891
12892 PR target/56184
12893 * ira.c (max_regno_before_ira): Move from ...
12894 (ira): ... here.
12895 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12896 vec_safe_length.
12897
6422242b
JJ
128982013-02-13 Jakub Jelinek <jakub@redhat.com>
12899
12900 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12901
976a81ee
RB
129022013-02-13 Richard Biener <rguenther@suse.de>
12903
12904 PR lto/56295
12905 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12906 globals in MEM_REFs.
12907
c1874a87
RB
129082013-02-13 Richard Biener <rguenther@suse.de>
12909
12910 * loop-init.c (loop_optimizer_init): Clear loop state when
12911 re-initializing preserved loops.
12912 * loop-unswitch.c (unswitch_single_loop): Return whether
12913 we unswitched the loop. Do not verify loop state here.
88b97037 12914 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 12915
b4ab7d34
KS
129162013-02-13 Kostya Serebryany <kcc@google.com>
12917
88b97037
UB
12918 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12919 on x86_64 linux.
b4ab7d34
KS
12920 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12921
bdcbe80c
DS
129222013-02-12 Dodji Seketeli <dodji@redhat.com>
12923
12924 Avoid instrumenting duplicated memory access in the same basic block
12925 * Makefile.in (asan.o): Add new dependency on hash-table.h
12926 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12927 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12928 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12929 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12930 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12931 (get_mem_ref_of_assignment): New functions.
12932 (get_mem_refs_of_builtin_call): Extract from
12933 instrument_builtin_call and tweak a little bit to make it fit with
12934 the new signature.
12935 (instrument_builtin_call): Use the new
12936 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12937 of is_gimple_builtin_call.
12938 (instrument_derefs, instrument_mem_region_access): Insert the
12939 instrumented memory reference into the hash table.
12940 (maybe_instrument_assignment): Renamed instrument_assignment into
12941 this, and change it to advance the iterator when instrumentation
12942 actually happened and return true in that case. This makes it
12943 homogeneous with maybe_instrument_assignment, and thus give a
12944 chance to callers to be more 'regular'.
12945 (transform_statements): Clear the memory reference hash table
12946 whenever we enter a new BB, when we cross a function call, or when
12947 we are done transforming statements. Use
12948 maybe_instrument_assignment instead of instrumentation. No more
12949 need to special case maybe_instrument_assignment and advance the
12950 iterator after calling it; it's now handled just like
12951 maybe_instrument_call. Update comment.
12952
4861a1f7
RB
129532013-02-13 Richard Biener <rguenther@suse.de>
12954
12955 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12956 Fix loop discovery code.
12957
1c86bd80
VM
129582013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12959
12960 PR inline-asm/56148
12961 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 12962 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
12963 the operand is not reloaded. Prefer to reload conflicting operand
12964 if earlyclobber and matching operands are the same.
12965
7cbda518
RB
129662013-02-12 Richard Biener <rguenther@suse.de>
12967
12968 PR lto/56297
12969 * lto-streamer-out.c (write_symbol): Do not output symbols
12970 for hard register variables.
12971
e68a4ef6
GJL
129722013-02-12 Georg-Johann Lay <avr@gjlay.de>
12973
12974 PR target/54222
12975 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12976 (umulsidi3_insn, mulsidi3_insn): New insns.
12977
a72d8780 129782013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
12979
12980 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12981 (struct tune_params): Add vec_costs field.
12982 * config/arm/arm.c (arm_builtin_vectorization_cost)
12983 (arm_add_stmt_cost): New functions.
12984 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12985 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12986 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12987 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12988 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12989 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12990 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12991
43320568
RB
129922013-02-12 Richard Biener <rguenther@suse.de>
12993
12994 PR lto/56295
12995 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12996 decls again if possible.
12997
a011aa39
RB
129982013-02-12 Richard Biener <rguenther@suse.de>
12999
13000 PR middle-end/56288
13001 * tree-ssa.c (verify_ssa_name): Fix check, move
13002 SSA_NAME_IN_FREE_LIST check up.
13003
6da26889
JJ
130042013-02-12 Jakub Jelinek <jakub@redhat.com>
13005 Steven Bosscher <steven@gcc.gnu.org>
13006
13007 PR rtl-optimization/56151
13008 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13009 equal to op0 or op1, and last_insn pattern is CODE operation
13010 with MEM dest and one of the operands matches that MEM.
13011
f80e0faf
ST
130122013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13013
13014 * doc/extend.texi: Document Function Multiversioning and "default"
13015 parameter string to target attribute.
13016 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13017 target attribute parameter is "default".
13018 (ix86_compare_version_priority): Remove checks for target attribute.
13019 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13020 Remove check for target attribute equal to NULL. Add assert.
13021 (ix86_generate_version_dispatcher_body): Change error to sorry.
13022
6c59ffd1
IS
130232013-02-11 Iain Sandoe <iain@codesourcery.com>
13024 Jack Howarth <howarth@bromo.med.uc.edu>
13025 Patrick Marlier <patrick.marlier@gmail.com>
13026
13027 PR libitm/55693
13028 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13029 define ENDFILE_SPEC as TM_DESTRUCTOR.
13030 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13031
a72d8780 130322013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
13033 Jack Howarth <howarth@bromo.med.uc.edu>
13034 Jakub Jelinek <jakub@redhat.com>
13035
13036 PR sanitizer/55617
13037 * config/darwin.c (cdtor_record): Rename ctor_record.
13038 (sort_cdtor_records): Rename sort_ctor_records.
13039 (finalize_dtors): New routine to sort destructors by
13040 priority before use in assemble_integer.
13041 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13042
b63fe007
UB
130432013-02-11 Uros Bizjak <ubizjak@gmail.com>
13044
13045 PR rtl-optimization/56275
13046 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13047 offset is non-negative and less than cmode size before
13048 calling simplify_subreg.
13049
8e89b5b5
RB
130502013-02-11 Richard Biener <rguenther@suse.de>
13051
13052 PR tree-optimization/56264
13053 * cfgloop.h (fix_loop_structure): Adjust prototype.
13054 * loop-init.c (fix_loop_structure): Return the number of
13055 newly discovered loops.
13056 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13057 are discovered, do a full loop-closed SSA rewrite.
13058
b4a4b56d
RB
130592013-02-11 Richard Biener <rguenther@suse.de>
13060
13061 PR tree-optimization/56273
13062 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13063 first VRP run.
13064 (check_array_ref): Fix missing newline in dumps.
13065 (search_for_addr_array): Likewise.
13066
0c885229
DE
130672013-02-09 David Edelsohn <dje.gcc@gmail.com>
13068
13069 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13070
59ac9a55
JJ
130712013-02-09 Jakub Jelinek <jakub@redhat.com>
13072
13073 PR target/56256
13074 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13075
25bb0bb5
VM
130762013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13077
13078 PR rtl-optimization/56246
0c885229 13079 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
13080 reload pseudo.
13081 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13082 constraints are satisfied.
13083
a698cc03
JL
130842013-02-08 Jeff Law <law@redhat.com>
13085
13086 PR debug/53948
13087 * emit-rtl.c (reg_is_parm_p): New function.
13088 * regs.h (reg_is_parm_p): New prototype.
13089 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13090 callee-clobbered registers.
13091
e1122ddd
MM
130922013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13093
13094 PR target/56043
13095 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13096 If there is no implicit builtin declaration, just return NULL.
13097
19c5f6e6
UB
130982013-02-08 Uros Bizjak <ubizjak@gmail.com>
13099
13100 * config/i386/sse.md (FMAMODEM): New mode iterator.
13101 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13102 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13103
2480f2ca 131042013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 13105
2480f2ca
UB
13106 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13107 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13108 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13109
131102013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13111
13112 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13113 (microblaze*-*-elf): Likewise.
13114 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13115 LINK_SPEC.
13116 * config/microblaze/microblaze-c.c: Add builtin defines for
13117 _LITTLE_ENDIAN and _BIG_ENDIAN.
13118 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13119 add to TARGET_DEFAULT flags.
76ef61fb 13120 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
13121 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13122 * config/microblaze/microblaze.md: Update extendsidi2 and
13123 movdi_internal instructions to use low-order / high-order reg
13124 print_operands.
13125 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13126 options and inversemask / mask of LITTLE_ENDIAN.
13127 * config/microblaze/t-microblaze: Expand multilib options to
13128 include mlittle-endian (le) and update exceptions patterns.
13129
600a5961
JJ
131302013-02-08 Jakub Jelinek <jakub@redhat.com>
13131
5df81313
JJ
13132 PR rtl-optimization/56195
13133 * lra-constraints.c (get_reload_reg): Don't reuse regs
13134 if they have smaller mode than requested, if they have
13135 wider mode than requested, try to return a SUBREG.
13136
600a5961
JJ
13137 PR tree-optimization/56250
13138 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13139 if type is unsigned and code isn't MULT_EXPR.
13140
ff544649
GJL
131412013-02-08 Georg-Johann Lay <avr@gjlay.de>
13142
13143 PR tree-optimization/56064
13144 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13145 bits according to mode.
13146 * fixed-value.h (fixed_from_double_int)
13147 (const_fixed_from_double_int): Adjust comments.
13148
e45cde98
RB
131492013-02-08 Richard Biener <rguenther@suse.de>
13150
13151 PR lto/56231
13152 * lto-streamer.h (struct data_in): Remove current_file, current_line
13153 and current_col members.
13154 * lto-streamer-out.c (lto_output_location): Stream changed bits
13155 en-block for efficiency.
13156 * lto-streamer-in.c (clear_line_info): Remove.
13157 (lto_input_location): Cache current file, line and column
13158 globally via local statics. Read changed bits en-block.
13159 (input_function): Do not call clear_line_info.
13160 (lto_read_body): Likewise.
13161 (lto_input_toplevel_asms): Likewise.
13162
c1ca73d8
MM
131632013-02-08 Michael Matz <matz@suse.de>
13164
13165 PR tree-optimization/52448
13166 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13167 (nt_call_phase): New static.
13168 (add_or_mark_expr): Only mark accesses with newer phase than any
13169 call seen.
13170 (nonfreeing_call_p): New.
13171 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13172 (nt_fini_block): Keep blocks marked as visited.
13173 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13174
57548aa2
RB
131752013-02-08 Richard Biener <rguenther@suse.de>
13176
13177 * ira.c (ira): Free broken dominator information.
13178
8e10366f
UB
131792013-02-08 Uros Bizjak <ubizjak@gmail.com>
13180
13181 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13182
f64fb0fa
MP
131832013-02-08 Marek Polacek <polacek@redhat.com>
13184
8e10366f 13185 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 13186
0375167b
RB
131872013-02-08 Richard Biener <rguenther@suse.de>
13188
13189 PR middle-end/56181
13190 * cfgloop.h (flow_loops_find): Adjust.
13191 (bb_loop_header_p): Declare.
13192 * cfgloop.c (bb_loop_header_p): New function split out from ...
13193 (flow_loops_find): ... here. Adjust function signature,
13194 support incremental loop structure update.
13195 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13196 * cfgloopmanip.c (fix_loop_structure): Move ...
13197 * loop-init.c (fix_loop_structure): ... here.
13198 (apply_loop_flags): Split out from ...
13199 (loop_optimizer_init): ... here.
13200 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13201 in incremental mode, only remove dead loops here.
13202
85d768f3
GJL
132032013-02-08 Georg-Johann Lay <avr@gjlay.de>
13204
13205 PR target/54222
13206 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13207 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13208 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13209 (*round<mode>3.libgcc): New insns for fixed-modes.
13210 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13211 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13212 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13213 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13214 implementations. Define to __builtin_avr_absFX,
13215 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13216 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13217 __builtin_avr_countlsFX, respectively.
13218 * config/avr/avr-c.c (target.h): Include it.
13219 (enum avr_builtin_id): New enum.
13220 (avr_resolve_overloaded_builtin): New static function.
13221 (avr_register_target_pragmas): Use it to set
13222 targetm.resolve_overloaded_builtin.
13223 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13224 tree nodes used by DEF_BUILTIN.
13225 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13226 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13227 <AVR_BUILTIN_xxBITS>: Same.
13228
661bc682
RB
132292013-02-08 Richard Biener <rguenther@suse.de>
13230
13231 * cfgloop.c (verify_loop_structure): Properly handle
13232 a loop exiting to another loop header.
13233 * ira-int.h (ira_loops): Remove.
13234 * ira.c (ira_loops): Remove.
13235 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13236 (do_reload): Use loop_optimizer_finalize.
13237 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13238 number_of_loops to access the loop tree.
13239 (more_one_region_p): Likewise.
13240 (finish_loop_tree_nodes): Likewise.
13241 (rebuild_regno_allocno_maps): Likewise.
13242 (mark_loops_for_removal): Likewise.
13243 (mark_all_loops_for_removal): Likewise.
13244 (remove_unnecessary_regions): Likewise.
13245 (ira_build): Likewise.
13246 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13247
0d5049b2
RB
132482013-02-08 Richard Biener <rguenther@suse.de>
13249
13250 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13251 * ipa-pure-const.c (analyze_function): Avoid calling
13252 mark_irreducible_loops twice.
8e10366f 13253 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 13254
499f32e8
DM
132552013-02-07 David S. Miller <davem@davemloft.net>
13256
13257 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13258 on 'reg'.
13259 * var-tracking.c (vt_add_function_parameter): Test the presence of
13260 HAVE_window_save properly and do not remap argument registers when
13261 we have a leaf function.
13262
6edc3e32
UB
132632013-02-07 Uros Bizjak <ubizjak@gmail.com>
13264
13265 PR bootstrap/56227
13266 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13267 instead of "ll".
13268 * config/i386/i386.c (ix86_print_operand): Ditto.
13269
5306401f
VM
132702013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13271
6edc3e32 13272 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 13273
027ece11
VM
132742013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13275
13276 PR rtl-optimization/56225
13277 * lra-constraints.c (process_alt_operands): Check that reload hard
13278 reg can hold value for strict_low_part.
13279
f980dfdb
JJ
132802013-02-07 Jakub Jelinek <jakub@redhat.com>
13281
13282 PR debug/56154
13283 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13284 dwarf2out_end_function.
13285 (in_first_function_p, maybe_at_text_label_p,
13286 first_loclabel_num_not_at_text_label): New variables.
13287 (dwarf2out_var_location): In the first function find out
6edc3e32 13288 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
13289 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13290 functions.
13291
73dd3123
EB
132922013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13293
13294 PR rtl-optimization/56178
13295 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13296 SUBREG of a register. Tidy up related block of code.
13297 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13298 note if the source is a register or a SUBREG of a register.
13299
e3936f47
JJ
133002013-02-07 Jakub Jelinek <jakub@redhat.com>
13301
13302 PR target/56228
13303 * config/rs6000/rs6000.md (ptrm): New mode attr.
13304 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13305 call_value_indirect_aix<pttrsize>,
13306 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13307 m in constraints.
13308
d96d674b
MH
133092013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13310
13311 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13312 if -bnortl. Convert to strcmp and strncmp.
13313
921f2dee
AM
133142013-02-07 Alan Modra <amodra@gmail.com>
13315
13316 PR target/54009
13317 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13318 addresses won't wrap when offsetting.
13319 (rs6000_secondary_reload): Provide secondary reloads needed for
13320 wrapping LO_SUM addresses.
13321
d09c7dba
TS
133222013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13323
13324 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13325 MACH, just __MACH__.
13326
a44bbd48
RB
133272013-02-06 Richard Biener <rguenther@suse.de>
13328
13329 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13330 instead of calling fix_loop_structure.
13331
6d840d99
JJ
133322013-02-06 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR middle-end/56217
13335 * omp-low.c (use_pointer_for_field): Return false if
13336 lower_send_shared_vars doesn't generate any copy-out code.
13337
0f33baa9
TV
133382013-02-06 Tom de Vries <tom@codesourcery.com>
13339
13340 PR rtl-optimization/56131
13341 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13342 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13343 of the label is NULL. Add comment.
13344
11f1e3ab
JJ
133452013-02-05 Jakub Jelinek <jakub@redhat.com>
13346
31502f9f
JJ
13347 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13348
a74db9bd
JJ
13349 PR sanitizer/55374
13350 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13351 (STATIC_LIBTSAN_LIBS): Likewise.
13352 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13353 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13354 is defined, don't add anything else beyond that.
13355 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13356 (LINK_COMMAND_SPEC): Use them.
13357
11f1e3ab
JJ
13358 PR tree-optimization/56205
13359 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13360 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13361 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13362
14ac6aa2
RB
133632013-02-05 Richard Biener <rguenther@suse.de>
13364
13365 PR tree-optimization/53342
13366 PR tree-optimization/53185
13367 * tree-vectorizer.h (vect_check_strided_load): Remove.
13368 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13369 not disallow peeling for vectorized strided loads.
13370 (vect_check_strided_load): Make static and simplify.
13371 (vect_analyze_data_refs): Adjust.
13372 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13373 correctly when vectorizing strided loads.
13374
6f22445a
RB
133752013-02-05 Richard Biener <rguenther@suse.de>
13376
13377 * doc/install.texi: Refer to ISL, not PPL.
13378
39f9719e
JH
133792013-02-05 Jan Hubicka <jh@suse.cz>
13380
ec4224ac
JH
13381 PR tree-optimization/55789
13382 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13383
133842013-02-05 Jan Hubicka <jh@suse.cz>
13385
13386 PR tree-optimization/55789
39f9719e
JH
13387 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13388 the dead call anyway.
13389
956d3b33
EB
133902013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13391
13392 PR sanitizer/55374
13393 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13394
133952013-02-04 Alexander Potapenko <glider@google.com>
13396 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
13397 Jakub Jelinek <jakub@redhat.com>
13398
13399 PR sanitizer/55617
13400 * config/darwin.c (sort_ctor_records): Stabilized qsort
13401 on constructor priority by using original position.
13402 (finalize_ctors): New routine to sort constructors by
13403 priority before use in assemble_integer.
13404 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13405
7ac3af38
JJ
134062013-02-04 Jakub Jelinek <jakub@redhat.com>
13407
13408 PR libstdc++/54314
13409 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13410 about visibility on artificial decls.
13411 * config/sol2.c (solaris_assemble_visibility): Likewise.
13412
152689dc
KT
134132013-02-04 Kai Tietz <ktietz@redhat.com>
13414
13415 PR target/56186
13416 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13417 argument and improve checking of return-argument types for 16-byte
13418 modes.
13419 (ix86_function_value_1): Add additional valtype argument on call
13420 of function_value_64.
13421 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13422 handling infunction_value_64 function.
13423
2b5987b5
MGD
134242013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13425
7ac3af38 13426 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 13427
14597080
RB
134282013-02-04 Richard Biener <rguenther@suse.de>
13429
13430 PR tree-optimization/56188
13431 * tree-ssa-structalias.c (label_visit): Consider case with
13432 initially non-empty points-to set.
13433 (perform_var_substitution): Dump node mapping and clean up.
13434
ed73881e
RG
134352013-02-04 Richard Guenther <rguenther@suse.de>
13436
13437 PR lto/56168
13438 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13439 node prevail as last resort.
13440 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 13441 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 13442
139a0707
RB
134432013-02-04 Richard Biener <rguenther@suse.de>
13444
13445 PR tree-optimization/56113
13446 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13447 Merge into ...
13448 (equiv_class_lookup_or_add): ... this.
13449 (label_visit): Adjust and fix error in previous patch.
13450 (perform_var_substitution): Adjust.
13451
50fe8924
OE
134522013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13453
13454 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13455 * config/sh/sh4-300.md: Likewise.
13456 * config/sh/sh4a.md: Likewise.
13457 * config/sh/constraints.md: Likewise.
13458 * config/sh/sh.md: Likewise.
13459 * config/sh/netbsd-elf.h: Likewise.
13460 * config/sh/predicates.md: Likewise.
13461 * config/sh/sh-protos.h: Likewise.
13462 * config/sh/ushmedia.h: Likewise.
13463 * config/sh/linux.h: Likewise.
13464 * config/sh/sh.c: Likewise.
13465 * config/sh/superh.h: Likewise.
13466 * config/sh/elf.h: Likewise.
13467 * config/sh/sh4.md: Likewise.
13468 * config/sh/sh.h: Likewise.
13469
1a04ac2b
JDA
134702013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13471
13472 * config/pa/constraints.md: Adjust unused letters. Change "T"
13473 constraint to match_test floating_point_store_memory_operand().
13474 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13475 (base14_operand): New.
13476 (floating_point_store_memory_operand): New.
13477 (integer_store_memory_operand): Revise to use base14_operand and
13478 reg_plus_base_memory_operand.
13479 (move_dest_operand): Allow symbolic_memory_operands.
13480 (symbolic_memory_operand): Check for LO_SOM.
13481 (symbolic_operand): Change default case to break.
13482 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13483 CONST_DOUBLE values to be reloaded by putting them into memory when
13484 the destination is a floating point register.
13485 (movdf): Remove code to handle CONST_DOUBLE.
13486 (movsf): Likewise.
13487 (reload_indf_r1): New.
13488 (reload_insf_r1): New.
13489 Consistently use "Q" and "T" constraints with integer and floating
13490 point move instructions, respectively.
13491 (movdi): Remove FAIL.
13492 Change predicate for source operand unamed DImode move from
13493 general_operand to move_src_operand.
13494 (umulsidi3): Change predicate for destination operand to
13495 register_operand.
13496 Likewise for similar unamed patterns.
13497 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13498 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13499 (hppa_legitimize_address): Simplify mask calculation.
13500 (pa_emit_move_sequence): Revised handling of secondary reloads from
13501 REG+D addresses for floating point loads and stores. Directly handle
13502 loading CONST0_RTX (mode) to a floating point register.
13503 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13504 to floating point registers. Don't restrict secondary reloads to
13505 floating point registers to integer modes. Revise some comments and
13506 cleanup some code.
13507 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13508 (pa_legitimate_address_p): New.
13509 (pa_legitimize_reload_address): New.
13510 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13511 (STRICT_REG_OK_FOR_BASE_P): New.
13512 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13513 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13514
3bf65591
DE
135152013-02-03 David Edelsohn <dje.gcc@gmail.com>
13516 Andrew Dixie <andrewd@gentrack.com>
13517
13518 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13519 flag set.
13520
c0a8a3e6
RS
135212013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13522
13523 * expmed.c (extract_bit_field_1): Pass the full width of the
13524 structure to get_best_reg_extraction_insn.
13525
99113dff
DE
135262013-02-01 David Edelsohn <dje.gcc@gmail.com>
13527
13528 PR target/54601
13529 * configure.ac (use_cxa_atexit): Add AIX.
13530 * configure: Regenerate.
13531
13532 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13533
ddd84654
JJ
135342013-02-01 Jakub Jelinek <jakub@redhat.com>
13535
13536 PR debug/54793
13537 * final.c (need_profile_function): New variable.
13538 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13539 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13540 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13541 notes, targetm.asm_out.function_prologue doesn't emit anything,
13542 HAVE_prologue and profiler should be emitted before prologue,
13543 set need_profile_function instead of emitting it.
13544 (final_scan_insn): If need_profile_function, emit
13545 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13546 NOTE_INSN_FUNCTION_BEG note.
13547
135482013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
13549
13550 * config/rs6000/rs6000.md (smulditi3): New.
13551 (umulditi3): New.
13552
ff2a9d88
RH
13553 * config/alpha/alpha.md (umulditi3): New.
13554
14d52b90
DE
135552013-02-01 David Edelsohn <dje.gcc@gmail.com>
13556
13557 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13558 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13559
8c7ca45c
RB
135602013-02-01 Richard Biener <rguenther@suse.de>
13561
13562 PR tree-optimization/56113
13563 * tree-ssa-structalias.c (label_visit): Reduce work for
13564 single-predecessor nodes.
13565
9f419393
EB
135662013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13567
13568 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13569 range isn't testing for zero.
13570
c5f4be84
SB
135712013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13572
13573 PR middle-end/56113
13574 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13575
dbdbd982
NC
135762013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13577 Nick Clifton <nickc@redhat.com>
13578
13579 * config/v850/constraints.md (Q): Define as a memory constraint.
13580 * config/v850/predicates.md (label_ref_operand): New predicate.
13581 (e3v5_shift_operand): New predicate.
13582 (ior_operator): New predicate.
13583 * config/v850/t-v850: Add e3v5 multilib.
13584 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13585 (v850_gen_movdi): Prototype.
13586 * config/v850/v850.c: Add support for e3v5 architecture.
13587 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13588 TARGET_V850E_UP.
13589 (construct_save_jarl): Add e3v5 long JARL support.
13590 (v850_adjust_insn_length): New function. Adjust length of call
13591 insns when using e3v5 instructions.
13592 (v850_gen_movdi): New function: Generate instructions to move a
13593 DImode value.
13594 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13595 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13596 (TARGET_USE_FPU): Enable for e3v5.
13597 (CONST_OK_FOR_W): New macro.
13598 (ADJUST_INSN_LENGTH): Define.
13599 * config/v850/v850.md (UNSPEC_LOOP): Define.
13600 (attr cpu): Add v850e3v5.
13601 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13602 (movdi): New pattern.
13603 (movdi_internal): New pattern.
13604 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13605 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13606 (cstoresf4): Likewise.
13607 (cstoredf4): Likewise.
13608 (insv): New pattern.
13609 (rotlso3_a): New pattern.
13610 (rotlsi3_b): New pattern
13611 (rotlsi3_v850e3v5): New pattern.
13612 (doloop_begin): New pattern.
13613 (fix_loop_counter): New pattern.
13614 (doloop_end): New pattern.
13615 (branch_normal): Add e3v5 long branch support.
13616 (branch_invert): Likewise.
13617 (branch_z_normal): Likewise.
13618 (branch_z_invert): Likewise.
13619 (branch_nz_normal): Likewise.
13620 (branch_nz_invert): Likewise.
13621 (call_internal_short): Add e3v5 register-indirect JARL support.
13622 (call_internal_long): Likewise.
13623 (call_value_internal_short): Likewise.
13624 (call_value_internal_long): Likewise.
13625 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13626 (mloop): New option.
13627 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 13628 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 13629
73861a41
PK
136302013-01-31 Paul Koning <ni1d@arrl.net>
13631
13632 PR debug/55059
13633 PR debug/54508
13634 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13635 children if parent is a class.
13636 (prune_unused_types_prune): Don't add DW_AT_declaration.
13637
e44978dc
RB
136382013-01-31 Richard Biener <rguenther@suse.de>
13639
13640 PR tree-optimization/56157
13641 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13642 match up operand with SLP child.
13643
90b10dec
JM
136442013-01-31 Jason Merrill <jason@redhat.com>
13645
04d2dadd 13646 PR debug/54410
90b10dec
JM
13647 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13648 parameters the first time.
13649 (gen_scheduled_generic_parms_dies): Check completeness here.
13650
6e616110
RB
136512013-01-31 Richard Biener <rguenther@suse.de>
13652
13653 PR middle-end/53073
13654 * common.opt (faggressive-loop-optimizations): New flag,
13655 enabled by default.
13656 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13657 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13658 infer_loop_bounds_from_undefined by it.
13659
636f59cf
RB
136602013-01-31 Richard Biener <rguenther@suse.de>
13661
13662 PR tree-optimization/56150
13663 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13664 visit virtual operands.
13665 (find_uses_to_rename_bb): Likewise.
13666
136672013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
13668
13669 PR tree-optimization/56150
13670 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13671 mixed store non-store stmts.
13672
32887460
JJ
136732013-01-30 Jakub Jelinek <jakub@redhat.com>
13674
e60e09a0
JJ
13675 PR sanitizer/55374
13676 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13677 LIBASAN_EARLY_SPEC is defined.
13678 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13679 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13680 before %o.
13681 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13682
32887460
JJ
13683 PR c++/55742
13684 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13685 invalid args instead of ICEing on it.
13686 (ix86_valid_target_attribute_tree): Return error_mark_node if
13687 ix86_valid_target_attribute_inner_p failed.
13688 (ix86_valid_target_attribute_p): Return false only if
13689 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13690 target("default") attribute.
13691 (sorted_attr_string): Change argument from const char * to tree,
13692 merge in all target attribute arguments rather than just one.
13693 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13694 instead of free. Avoid using strcat.
13695 (ix86_mangle_function_version_assembler_name): Mangle
13696 target("default") as if no target attribute is present. Adjust
13697 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13698 instead of xmalloc and XDELETEVEC instead of free.
13699 (ix86_function_versions): Don't return true if one of the decls
13700 doesn't have target attribute. If they don't and one of the decls
13701 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13702 sorted_attr_string caller. Use XDELETEVEC instead of free.
13703 (ix86_supports_function_versions): Remove.
13704 (make_name): Fix up formatting.
13705 (make_dispatcher_decl): Remove resolver_name and its initialization.
13706 Avoid leaking memory.
13707 (is_function_default_version): Return true if there is
13708 target("default") attribute rather than no target attribute at all.
13709 (make_resolver_func): Avoid leaking memory.
13710 (ix86_generate_version_dispatcher_body): Likewise.
13711 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13712 * target.def (supports_function_versions): Remove.
13713 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13714 * doc/tm.texi: Regenerated.
13715
73cca0cc
VM
137162013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13717
13718 PR rtl-optimization/56144
13719 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13720 for values with side effects.
13721
11452e7b
RB
137222013-01-30 Richard Biener <rguenther@suse.de>
13723
13724 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13725 (sparseset_pop): Likewise.
13726 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13727 to be able to use quick_push in the worker loop.
13728
01cb1ef5
MP
137292013-01-30 Marek Polacek <polacek@redhat.com>
13730
13731 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13732
e892936e
RB
137332013-01-30 Richard Biener <rguenther@suse.de>
13734
13735 PR lto/56147
6edc3e32 13736 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 13737
cc06c01d
GJL
137382013-01-30 Georg-Johann Lay <avr@gjlay.de>
13739
13740 PR tree-optimization/56064
13741 * fixed-value.c (fixed_from_double_int): New function.
13742 * fixed-value.h (fixed_from_double_int): New prototype.
13743 (const_fixed_from_double_int): New static inline function.
13744 * fold-const.c (native_interpret_fixed): New static function.
13745 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13746 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13747 (native_encode_fixed): New static function.
13748 (native_encode_expr) <FIXED_CST>: Use it.
13749 (native_interpret_int): Move double_int worker code to...
13750 * double-int.c (double_int::from_buffer): ...this new static method.
13751 * double-int.h (double_int::from_buffer): Prototype it.
13752
d394a308
RB
137532013-01-30 Richard Biener <rguenther@suse.de>
13754
13755 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13756 New pointer-map and obstack.
13757 (init_alias_vars): Allocate pointer-map and obstack.
13758 (delete_points_to_sets): Free them.
13759 (find_what_var_points_to): Cache result.
13760 (find_what_p_points_to): Adjust for changed interface of
13761 find_what_var_points_to.
13762 (compute_points_to_sets): Likewise.
13763 (ipa_pta_execute): Likewise.
13764
20804d96
RO
137652013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13766
13767 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13768 * configure: Regenerate.
13769 * config.in: Regenerate.
13770 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13771 #nobits/#progbits if supported.
13772
a7ad88a2
OE
137732013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13774
13775 PR target/56121
13776 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13777 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13778 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13779
7af79f92
GY
137802013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13781
91bfca59
OE
13782 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13783 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 13784
753bcf7b
GY
137852013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13786
91bfca59
OE
13787 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13788 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 13789
8cbc2ea8
GY
137902013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13791
91bfca59
OE
13792 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13793 declaration.
13794 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13795 * config/arm/cortex-a7.md: New bypasses using
13796 arm_mac_accumulator_is_result.
8cbc2ea8 13797
697a3325
GY
137982013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13799
91bfca59 13800 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 13801 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
13802 (cortex_a7_fpfmad): New reservation.
13803 (cortex_a7_fpmacs): Use ffmas and update required units.
13804 (cortex_a7_fpmuld): Update required units and latency.
13805 (cortex_a7_fpmacd): Likewise.
13806 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13807 (cortex_a7_neon). Likewise.
13808 (bypass) Update participating units.
697a3325 13809
29637783
GY
138102013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13811
91bfca59
OE
13812 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13813 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13814 from fmac to ffma.
13815 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13816 (vfp_fmul): Use ffmad.
13817 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13818 (cortex_r4_fmacd): Use ffmad.
13819 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13820 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13821 (cortex_a9_fmacd): Use ffmad.
13822 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13823 (cortex_a8_vfp_macd): Use ffmad.
13824 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13825 (cortex_a5_fpmacd): Use ffmad.
13826 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13827 (cortex_a15_vfp_macd): Use ffmad.
13828 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 13829
2ee8a2d5
JM
138302013-01-29 Jason Merrill <jason@redhat.com>
13831
13832 PR libstdc++/54314
13833 * varasm.c (default_assemble_visibility): Don't warn about
13834 visibility on artificial decls.
13835
78d087bc
RB
138362013-01-29 Richard Biener <rguenther@suse.de>
13837
13838 PR tree-optimization/56113
13839 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13840 the bitmap leader.
13841 (label_visit): Free duplicate bitmaps and record the leader instead.
13842 (perform_var_substitution): Adjust.
13843
83ba4d6f
RB
138442013-01-29 Richard Biener <rguenther@suse.de>
13845
13846 PR tree-optimization/55270
13847 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13848 the CFG, schedule loops for fixup.
13849
66dfe13f
NC
138502013-01-29 Nick Clifton <nickc@redhat.com>
13851
13852 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13853 SP_REG.
13854
5a579c3b
LE
138552013-01-28 Leif Ekblad <leif@rdos.net>
13856
13857 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13858 * config/i386/i386.h (TARGET_RDOS): New macro.
13859 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13860 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13861 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13862 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13863 DEFAULT_LARGE_SECTION_THRESHOLD.
13864 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13865 * config/i386/rdos.h: New file.
13866 * config/i386/rdos64.h: New file.
13867
51e44392
BS
138682013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13869
13870 PR other/54814
13871 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13872 TEST_HARD_REG_BIT.
13873
db1fb332
JJ
138742013-01-28 Jakub Jelinek <jakub@redhat.com>
13875
13876 PR rtl-optimization/56117
13877 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13878 call cselib_lookup_from_insn on the MEM before calling
13879 add_insn_mem_dependence.
13880
16917761
RB
138812013-01-28 Richard Biener <rguenther@suse.de>
13882
13883 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13884 to a stmt that didn't have one.
13885 (copy_phis_for_bb): Likewise for PHI arguments.
13886 (copy_debug_stmt): Likewise for debug stmts.
13887
b9fc0497
RB
138882013-01-28 Richard Biener <rguenther@suse.de>
13889
13890 PR tree-optimization/56034
6edc3e32 13891 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
13892 (partition_builtin_p): Adjust.
13893 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13894 it is the last partition.
13895 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13896 up the vertex for the definition.
13897 (classify_partition): Classify whether a partition is a
13898 PKIND_REDUCTION, thus has uses outside of the loop.
13899 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13900 Merge all PKIND_REDUCTION partitions into the last partition.
13901 (tree_loop_distribution): Seed partitions from reductions as well.
13902
aa710d25
JJ
139032013-01-28 Jakub Jelinek <jakub@redhat.com>
13904
0bfbca58
JJ
13905 PR tree-optimization/56125
13906 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13907 pow(x,c) into sqrt(x) * powi(x, n/2) or
13908 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13909 optimizing for size.
13910 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13911 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13912 integer.
13913
aa710d25
JJ
13914 PR tree-optimization/56094
13915 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13916 to UNKNOWN_LOCATION while gimplifying expr.
13917
77dc5297
UB
139182013-01-27 Uros Bizjak <ubizjak@gmail.com>
13919
13920 PR target/56114
13921 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13922 operand 0 in movabs insn template for -masm=intel asm alternative.
13923 (*movabs<mode>_2): Ditto for operand 1.
13924
0bfbca58 139252013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
13926
13927 PR target/54663
13928 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13929 of microblaze-c.o
13930
0bfbca58 139312013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
13932
13933 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13934 tm_file.
13935
0bfbca58 139362013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
13937
13938 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13939 Undef to avoid warning.
13940
478f60f9
MH
139412013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13942
13943 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13944 * configure: Regenerate.
13945
d7fa6ee2
JJ
139462013-01-25 Jakub Jelinek <jakub@redhat.com>
13947
13948 PR tree-optimization/56098
13949 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13950 for stmts with volatile ops.
13951 (cond_store_replacement): Don't optimize if assign has volatile ops.
13952 (cond_if_else_store_replacement_1): Don't optimize if either
13953 then_assign or else_assign have volatile ops.
13954 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13955 volatile ops.
13956
f8fe87bd
GJL
139572013-01-25 Georg-Johann Lay <avr@gjlay.de>
13958
13959 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13960
28398d0d
GJL
139612013-01-25 Georg-Johann Lay <avr@gjlay.de>
13962
13963 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13964 missing ':' in asm example.
13965
b7d7d917
TB
139662013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13967
13968 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13969 entries into lane and laneq entries.
77dc5297
UB
13970 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13971 Remove AdvSIMD scalar modes.
b7d7d917
TB
13972 (aarch64_sq<r>dmulh_laneq<mode>): New.
13973 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13974 modes.
13975 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13976 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13977 * config/aarch64/iterators.md (VCOND): New.
13978 (VCONQ): New.
13979
556f9906
GJL
139802013-01-25 Georg-Johann Lay <avr@gjlay.de>
13981
13982 PR target/54222
13983 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13984 Add NULL LIBNAME argument to existing definitions.
13985 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13986 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13987 * config/avr/avr.c (DEF_BUILTIN): Same.
13988 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13989 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13990 implementation is available (DECL_ASSEMBLER_NAME is set).
13991 (avr_fold_absfx): New static function.
13992 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13993 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13994 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13995 AVR_BUILTIN_ABSLLK.
13996 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13997 (abshk, absk, abslk, absllk): Provide as static inline functions.
13998
1f546bbb
MP
139992013-01-25 Marek Polacek <polacek@redhat.com>
14000
14001 PR tree-optimization/56035
14002 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14003
7e184bd7
UB
140042012-01-24 Uros Bizjak <ubizjak@gmail.com>
14005
14006 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14007 (*movtf_internal_rex64): Add (!o,C) alternative
14008 (*movxf_internal_rex64): Ditto.
14009 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14010
f5ba49ac
SM
140112013-01-24 Shenghou Ma <minux.ma@gmail.com>
14012
14013 * doc/invoke.texi: fix typo.
14014 * doc/objc.texi: fix typo.
14015
a6343728
RS
140162013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14017
14018 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14019 for the first two alternatives.
14020
cd030c07
DN
140212013-01-24 Diego Novillo <dnovillo@google.com>
14022
77dc5297 14023 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
14024 (ggc-zone.o): Remove.
14025 * configure.ac: Remove option --with-gc.
14026 * configure: Re-generate.
14027 * doc/install.texi: Remove documentation for --with-gc.
14028 * gengtype.c (write_enum_defn): Remove. Update all users.
14029 (write_Types_process_field): Remove generation of gt_e_* argument.
14030 (output_type_enum): Remove. Update all users.
14031 (write_enum_defn): Remove. Update all users.
14032 (enum alloc_zone): Remove. Update all users.
77dc5297 14033 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
14034 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14035 Update all callers.
14036 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 14037 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
14038 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14039 Update all users.
aaf1e810 14040 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
14041 (struct alloc_zone): Remove.
14042 (ggc_internal_alloc_zone_stat): Remove.
14043 (ggc_internal_cleared_alloc_zone_stat): Remove.
14044 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
14045 (ggc_pch_count_object): Remove last argument. Update all users.
14046 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
14047 (struct alloc_zone): Remove.
14048 * ggc-zone.c: Remove.
77dc5297 14049 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
14050 (struct alloc_zone): Remove.
14051 (ggc_alloc_typed_stat): Remove.
14052 (ggc_alloc_typed): Remove.
14053 (ggc_splay_alloc): Remove first argument.
14054 (rtl_zone): Remove. Update all users.
14055 (tree_zone): Remove. Update all users.
14056 (tree_id_zone): Remove. Update all users.
14057 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 14058 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 14059 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 14060 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 14061
a861ffa4
GJL
140622013-01-24 Georg-Johann Lay <avr@gjlay.de>
14063
14064 * config/avr/avr.c (avr_out_fract): Make register numbers that
14065 might be outside of source operand signed.
14066
593c0ddd
UB
140672013-01-24 Uros Bizjak <ubizjak@gmail.com>
14068
14069 * config/i386/constraints.md (Yf): New constraint.
14070 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14071 of f constraint to conditionaly disable x87 register preferences.
14072 (*movdf_internal): Ditto.
14073 (*movsf_internal): Ditto.
14074
e86c0101
SB
140752013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14076
14077 PR inline-asm/55934
14078 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14079 that have operands with impossible constraints.
14080 Add a FIXME for a speed-up opportunity.
14081 * lra-constraints.c (process_alt_operands): Verify that a class
14082 selected from constraints on asms is valid for the operand mode.
14083 (curr_insn_transform): Remove incorrect comment.
14084
f6fee35f
DE
140852013-01-23 David Edelsohn <dje.gcc@gmail.com>
14086
14087 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14088 TOC operand is a valid symbol ref in the constant pool.
14089
140902013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 14091
aaf1e810 14092 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 14093
dc62d7d1
GJL
140942013-01-23 Georg-Johann Lay <avr@gjlay.de>
14095
14096 PR target/54222
14097 * config/avr/stdfix.h: New file.
14098 * t-avr (stdfix-gcc.h): New rule to build it.
14099 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14100
2660d12d
KS
141012013-01-23 Kostya Serebryany <kcc@google.com>
14102
77dc5297
UB
14103 * config/darwin.h: remove dependency on
14104 CoreFoundation (asan on Mac OS).
2660d12d 14105
a70418fc
JJ
141062013-01-23 Jakub Jelinek <jakub@redhat.com>
14107
14108 PR target/49069
14109 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14110 instead of cmpdi_operand for first comparison operand.
14111 Don't assert that comparison operands aren't both constants.
14112
47876a2a
JW
141132013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14114
14115 * doc/install.texi (Downloading the Source): Update references to
14116 downloading separate components.
14117
141182013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
14119
14120 * doc/extend.texi (__int128): Improve grammar.
14121
47876a2a 141222013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
14123
14124 PR target/56028
14125 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14126 alternative to (o,r).
14127 (*movdi_internal_rex64): Remove (!o,n) alternative.
14128 (DImode immediate->memory splitter): Remove.
14129 (DImode immediate->memory peephole2): Remove.
14130 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14131 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14132 alternative to (!o,*r).
14133 (*movtf_internal_sse): New pattern.
14134 (*movxf_internal_rex64): New pattern.
14135 (*movxf_internal): Disable for TARGET_64BIT.
14136 (*movdf_internal_rex64): Remove (!o,F) alternative.
14137
3a984f10
JJ
141382013-01-22 Jakub Jelinek <jakub@redhat.com>
14139
502498d5
JJ
14140 PR middle-end/56074
14141 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14142 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14143 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14144 stmt locations where LOCATION_LOCUS of the stmt location is
14145 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14146
3a984f10
JJ
14147 PR target/55686
14148 * config/i386/i386.md (UNSPEC_STOS): New.
14149 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14150 *strsetqi_1): Add UNSPEC_STOS.
14151
fa817f7f
PC
141522013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14153
14154 PR c++/56067
14155 * doc/invoke.texi: Remove left over -Wsynth example.
14156
8f498c1b
JJ
141572013-01-21 Jakub Jelinek <jakub@redhat.com>
14158
14159 PR tree-optimization/56051
14160 * fold-const.c (fold_binary_loc): Don't fold
14161 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14162 a narrowing conversion, or widening conversion from signed
14163 to unsigned.
14164
47876a2a 141652013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
14166
14167 PR rtl-optimization/56023
14168 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14169 dependent on debug instruction.
14170
5b9db1bc
MJ
141712013-01-21 Martin Jambor <mjambor@suse.cz>
14172
14173 PR middle-end/56022
14174 * function.c (allocate_struct_function): Call
14175 invoke_set_current_function_hook earlier.
14176
e8bb7d68
JJ
141772013-01-21 Jakub Jelinek <jakub@redhat.com>
14178
14179 * reload1.c (init_reload): Only initialize reload_obstack
14180 during the first call.
14181
616a4e32
MP
141822013-01-21 Marek Polacek <polacek@redhat.com>
14183
14184 * cfgloop.c (verify_loop_structure): Fix up grammar.
14185
4401981b
YHH
141862013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14187
14188 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14189 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14190
8e87740b
RR
141912013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14192
14193 PR target/56058
14194 * config/arm/marvell-pj4.md: Update copyright year.
14195 Fix up use of alu to alu_reg and simple_alu_imm.
14196
47876a2a 141972013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
14198
14199 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14200
89d56d79
VM
142012013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14202
14203 PR target/55433
14204 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 14205 insn for secondary memory move when memory mode should be different.
89d56d79 14206
fe603553
JDA
142072013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14208
14209 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14210 atomic_storedi_1): New patterns.
14211
01284895
VK
142122013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14213
14214 btver2 pipeline descriptions.
14215 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14216 descriptions.
14217 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 14218 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
14219 type attributes.
14220 * config/i386/btver2.md: New file describing btver2 pipelines.
14221
5630e3e1
JL
142222013-01-19 Andrew Pinski <apinski@cavium.com>
14223
14224 PR tree-optimization/52631
14225 * tree-ssa-sccvn (visit_use): Before looking up the original
14226 statement, try looking up the simplified expression.
14227
650ae806
AG
142282013-01-19 Anthony Green <green@moxielogic.com>
14229
14230 * config/moxie/moxie.c (moxie_expand_prologue): Set
14231 current_function_static_stack_size.
14232
e300ec2d
JJ
142332013-01-18 Jakub Jelinek <jakub@redhat.com>
14234
14235 PR tree-optimization/56029
14236 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14237 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14238
a3d7af04
SS
142392013-01-18 Sharad Singhai <singhai@google.com>
14240
14241 PR tree-optimization/55995
14242 * dumpfile.c (dump_loc): Print location only if available.
14243 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14244
66aa7879
VM
142452013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14246
14247 PR target/55433
14248 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14249 secondary memory move.
14250 (inherit_reload_reg): Use rclass instead of cl for
14251 check_secondary_memory_needed_p.
14252
3f0fee7b
JJ
142532013-01-18 Jakub Jelinek <jakub@redhat.com>
14254
14255 PR middle-end/56015
14256 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 14257 the case where writing real complex part of target modifies op1.
3f0fee7b 14258
70c67693
JG
142592013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14260
14261 * config/aarch64/aarch64-simd.md
14262 (aarch64_vcond_internal<mode>): Handle unordered cases.
14263 * config/aarch64/iterators.md (v_cmp_result): New.
14264
df8de9b3
YHH
142652013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14266 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14267
14268 * config/arm/marvell-pj4.md: New file.
14269 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14270 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14271 (generic_vfp): Likewise.
14272 * config/arm/arm-cores.def: Add marvell-pj4.
14273 * config/arm/arm-tune.md: Regenerate.
14274 * config/arm/arm-tables.opt: Regenerate.
14275 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14276 * doc/invoke.texi: Document marvell-pj4.
14277
be30c356
TB
142782013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14279
14280 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14281
0bfbca58 142822013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
14283
14284 PR debug/54114
14285 PR debug/54402
14286 PR debug/49888
14287 * var-tracking.c (negative_power_of_two_p): New.
14288 (global_get_addr_cache, local_get_addr_cache): New.
14289 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14290 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14291 heading comment.
14292 (vt_stack_offset_p): Remove.
14293 (vt_canon_true_dep): Always canonicalize loc's address.
14294 (clobber_overlapping_mems): Make sure we have a MEM.
14295 (local_get_addr_clear_given_value): New.
14296 (val_reset): Clear local cached entries.
14297 (compute_bb_dataflow): Create and release the local cache.
14298 Disable duplicate MEMs clobbering.
14299 (emit_notes_in_bb): Clobber MEMs likewise.
14300 (vt_emit_notes): Create and release the local cache.
14301 (vt_initialize, vt_finalize): Create and release the global
14302 cache, respectively.
1f6bc337 14303 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 14304
0bfbca58 143052013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
14306
14307 PR libmudflap/53359
14308 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14309 not found in the symtab.
14310
0bfbca58 143112013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 14312
c350ba53 14313 PR debug/56006
3aa03517
AO
14314 PR rtl-optimization/55547
14315 PR rtl-optimization/53827
14316 PR debug/53671
14317 PR debug/49888
14318 * alias.c (offset_overlap_p): New, factored out of...
14319 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14320 the conservative special case for symbolic constants. Don't
14321 adjust zero sizes on alignment.
14322
c664546f
JL
143232013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14324
14325 PR rtl-optimization/52573
14326 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14327 REG_UNUSED for the same register.
14328
1bd3f750
MP
143292013-01-17 Richard Biener <rguenther@suse.de>
14330 Marek Polacek <polacek@redhat.com>
14331
14332 PR rtl-optimization/55833
14333 * loop-unswitch.c (unswitch_loops): Move loop verification...
14334 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14335 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14336 Set it to true when we're removing a loop from hierarchy tree in
14337 an irreducible region.
14338 (fix_bb_placements): Adjust caller.
14339 (fix_loop_placements): Likewise.
14340
e52a8b71
GJL
143412013-01-17 Georg-Johann Lay <avr@gjlay.de>
14342
14343 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14344 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14345 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14346 Remove ID. Adjust comments.
14347 * config/avr/avr-c.c (avr_builtin_name): Remove.
14348 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14349 * config/avr/avr.c (avr_tolower): New static function.
14350 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14351 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14352 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14353 default expansion.
14354
8386a7ea
JH
143552013-01-17 Jan Hubicka <jh@suse.cz>
14356
610fb637 14357 PR tree-optimization/55273
8386a7ea
JH
14358 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14359
47876a2a 143602013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
14361
14362 PR target/55981
14363 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14364 store through atomic_store<mode>_1.
14365 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14366
8222c37e
MJ
143672013-01-17 Martin Jambor <mjambor@suse.cz>
14368
14369 PR tree-optimizations/55264
14370 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14371 for virtual methods.
14372 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14373 virtual methods before inlining is over.
14374 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14375 virtual functions.
14376 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14377 non-virtual.
14378
79f01c76
VM
143792013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14380
14381 PR rtl-optimization/56005
14382 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14383 pending reads for prefetch.
14384
d0b6bb1b
IB
143852013-01-16 Ian Bolton <ian.bolton@arm.com>
14386
aaf1e810 14387 * config/aarch64/aarch64.md
d0b6bb1b
IB
14388 (*cstoresi_neg_uxtw): New pattern.
14389 (*cmovsi_insn_uxtw): New pattern.
14390 (*<optab>si3_uxtw): New pattern.
14391 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14392 (*<optab>si3_insn_uxtw): New pattern.
14393 (*bswapsi2_uxtw): New pattern.
14394
cb9cf03b
RB
143952013-01-16 Richard Biener <rguenther@suse.de>
14396
14397 * tree-inline.c (tree_function_versioning): Remove set but
14398 never used variable.
14399
2cfc56b9
RB
144002013-01-16 Richard Biener <rguenther@suse.de>
14401
14402 PR tree-optimization/55964
14403 * tree-flow.h (rename_variables_in_loop): Remove.
14404 (rename_variables_in_bb): Likewise.
14405 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14406 (copy_loop_before): Adjust and delete update-ssa status.
14407 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 14408 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
14409 (rename_variables_in_loop): Remove.
14410 (slpeel_update_phis_for_duplicate_loop): Likewise.
14411 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14412 use available cfg machinery instead of duplicating it.
14413 Update PHI nodes and perform poor-mans SSA update here.
14414 (slpeel_tree_peel_loop_to_edge): Adjust.
14415
c25a0c60
RB
144162013-01-16 Richard Biener <rguenther@suse.de>
14417
14418 PR tree-optimization/54767
14419 PR tree-optimization/53465
14420 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14421 (vrp_visit_phi_node): For PHI arguments coming via backedges
14422 drop all symbolical range information.
14423 (execute_vrp): Compute backedges.
14424
04b535af
RB
144252013-01-16 Richard Biener <rguenther@suse.de>
14426
14427 * doc/install.texi: Update CLooG and ISL requirements to
14428 0.18.0 and 0.11.1.
14429
8b0a1e0b
CB
144302013-01-16 Christian Bruel <christian.bruel@st.com>
14431
14432 PR target/55301
14433 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14434 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14435 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14436
144372013-01-16 DJ Delorie <dj@redhat.com>
14438
14439 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14440 (UNSPECV_SP_SWITCH_E): New.
14441 (sp_switch_1): Change to an unspec.
14442 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14443 replace $r15.
14444
144452013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
14446
14447 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14448 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14449 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14450 (expand_mem_thread_fence): Ditto.
14451 (expand_mem_signal_fence): Ditto.
14452 (expand_atomic_load): Ditto.
14453 (expand_atomic_store): Ditto.
14454
0bfbca58 144552013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
14456
14457 PR rtl-optimization/55547
14458 PR rtl-optimization/53827
14459 PR debug/53671
14460 PR debug/49888
14461 * alias.c (memrefs_conflict_p): Set sizes to negative after
14462 AND adjustments.
14463
305e3ac1
JJ
144642013-01-15 Jakub Jelinek <jakub@redhat.com>
14465
14466 PR target/55940
14467 * function.c (thread_prologue_and_epilogue_insns): Always
14468 add crtl->drap_reg to set_up_by_prologue.set, even if
14469 stack_realign_drap is false.
14470
f78ac4f2
JBG
144712013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14472
14473 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14474 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14475 *call): Fix indention.
14476
a78a8cc4
TV
144772013-01-15 Tom de Vries <tom@codesourcery.com>
14478
14479 PR target/55876
14480 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14481 Update comment.
14482
0e80383f
VM
144832013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14484
305e3ac1 14485 PR rtl-optimization/55153
0e80383f
VM
14486 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14487
207b5956
MJ
144882013-01-15 Martin Jambor <mjambor@suse.cz>
14489
14490 PR tree-optimization/55920
14491 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14492 accesses as grp_to_be_debug_replaced.
14493
a7818b54
JJ
144942013-01-15 Jakub Jelinek <jakub@redhat.com>
14495
14496 PR tree-optimization/55920
14497 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14498 there is non-useless type conversion needed from debug rhs to lhs,
14499 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14500
b0fe107e
JM
145012013-01-15 Joseph Myers <joseph@codesourcery.com>
14502 Mikael Pettersson <mikpe@it.uu.se>
14503
14504 PR target/43961
14505 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14506 Thumb.
14507 (ASM_OUTPUT_CASE_LABEL): Remove.
14508 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14509 * final.c (shorten_branches): Update alignment of labels before
14510 jump tables if CASE_VECTOR_SHORTEN_MODE.
14511
34ab62ee
RB
145122013-01-15 Richard Biener <rguenther@suse.de>
14513
14514 PR bootstrap/55961
14515 * system.h: Do not include gmp.h for building host tools.
14516
783a3a05
RB
145172013-01-15 Richard Biener <rguenther@suse.de>
14518
14519 PR middle-end/55882
14520 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14521 account for bitpos when computing alignment.
14522
3a579e09
VY
145232013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14524
14525 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14526 (ix86_target_macros_internal): Likewise.
14527
14528 * config/i386/i386.c (m_CORE2I7): Removed.
14529 (m_CORE_HASWELL): New macro.
14530 (m_CORE_ALL): Likewise.
14531 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14532 (initial_ix86_arch_features): Likewise.
14533 (processor_target_table): Initializations for Core avx2.
14534 (cpu_names): New names "core-avx2".
14535 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14536 PROCESSOR_CORE_HASWELL.
14537 (ix86_issue_rate): New case.
14538 (ia32_multipass_dfa_lookahead): Likewise.
14539 (ix86_sched_init_global): Likewise.
14540
14541 * config/i386/i386.h (TARGET_HASWELL): New macro.
14542 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14543 (processor_type): New PROCESSOR_HASWELL.
14544
955f5a07
JJ
145452013-01-15 Jakub Jelinek <jakub@redhat.com>
14546
ff784829
JJ
14547 PR tree-optimization/55955
14548 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14549 *SHIFT_EXPR and *ROTATE_EXPR codes.
14550
955f5a07
JJ
14551 PR tree-optimization/48766
14552 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14553 -ftrapv disable -fwrapv.
14554
aeb8b4e9
GJL
145552013-01-14 Georg-Johann Lay <avr@gjlay.de>
14556
14557 PR target/55974
14558 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14559 etc. to 1 and not to __flash.
14560 Use LL suffix for __INT24_MAX__ with -mint8.
14561 Use ULL suffix for __UINT24_MAX__ with -mint8.
14562
1c494c6a
GJL
145632013-01-14 Georg-Johann Lay <avr@gjlay.de>
14564
14565 * config/avr/avr-arch.h
14566 (struct base_arch_s): Use typedef avr_arch_t instead.
14567 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14568 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14569 * config/avr/avr.c: Same.
14570 * config/avr/avr-devices.c: Same.
14571 * config/avr/driver-avr.c: Same.
14572 * config/avr/gen-avr-mmcu-texi.c: Same.
14573 * config/avr/avr-mcus.def: Adjust comment.
14574
a50344cb
TB
145752013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14576
88e784e6
UB
14577 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14578 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 14579
47876a2a 145802013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
14581 Andi Kleen <ak@linux.intel.com>
14582
14583 PR target/55948
14584 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14585 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14586 memmodel flag.
14587
00892272
GJL
145882013-01-14 Georg-Johann Lay <avr@gjlay.de>
14589
14590 * config/avr/avr-stdint.h: Remove trailing blanks.
14591 * config/avr/avr-log.h: Same.
14592 * config/avr/avr-arch.h: Same.
14593 * config/avr/avr-devices.c: Same.
14594 * config/avr/avr-dimode.md: Same.
14595 * config/avr/predicates.md: Same.
14596 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 14597
00892272
GJL
14598 * config/avr/avr-protos.h: Same. And:
14599 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14600 (init_cumulative_args): Rename to avr_init_cumulative_args.
14601 (expand_prologue): Rename to avr_expand_prologue.
14602 (expand_epilogue): Rename to avr_expand_epilogue.
14603 (adjust_insn_length): Rename to avr_adjust_insn_length.
14604 (notice_update_cc): Rename to avr_notice_update_cc.
14605 (final_prescan_insn): Rename to avr_final_prescan_insn.
14606 * config/avr/avr.c: Same.
14607 * config/avr/avr.h: Same.
14608 * config/avr/avr.md: Remove trailing blanks.
14609 (prologue): Use avr_expand_prologue.
14610 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14611
7bb01996
RB
146122013-01-14 Richard Biener <rguenther@suse.de>
14613
14614 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14615 verify_location, collect_subblocks): New functions.
14616 (verify_gimple_in_cfg): Verify that locations only reference
14617 BLOCKs in the functions BLOCK tree.
14618
2724573f
RB
146192013-01-14 Richard Biener <rguenther@suse.de>
14620
14621 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14622 PHI argument.
14623 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14624 unshare reference.
14625 (insert_out_of_ssa_copy_on_edge): Likewise.
14626 (rewrite_close_phi_out_of_ssa): Likewise.
14627 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14628 debug expressions.
14629 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14630 propagated constants.
14631 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14632 can not be shared.
14633
9a0bbab6
GJL
146342013-01-14 Georg-Johann Lay <avr@gjlay.de>
14635
14636 * config/avr/avr-modes.def: Add GPL copyright notice.
14637
45805f17
UB
146382013-01-13 Uros Bizjak <ubizjak@gmail.com>
14639
14640 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14641 MEMMODEL_MASK to determine memory model.
14642 (atomic_store<mode>): Ditto from operands[2].
14643 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14644
9d60be38
JJ
146452013-01-13 Jakub Jelinek <jakub@redhat.com>
14646
14647 PR fortran/55935
45805f17 14648 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
14649 (fold_gimple_assign): Don't call unshare_expr here.
14650 (fold_ctor_reference): Call unshare_expr.
14651
e7f49d92
TG
146522013-01-13 Terry Guo <terry.guo@arm.com>
14653
aaf1e810
EB
14654 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14655 * doc/fragments.texi: Document MULTILIB_REUSE.
14656 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 14657 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 14658 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
14659 (tmpmultilib4): Ditto.
14660 (multilib_reuse): New multilib argument.
14661
fbd03a27
RS
146622013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14663
14664 * Makefile.in: Update copyright.
14665
b3681f13
TV
146662013-01-12 Tom de Vries <tom@codesourcery.com>
14667
14668 PR middle-end/55890
14669 * calls.c (expand_call): Check if arg_nr is valid.
14670
3f287e4b
MM
146712013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14672
14673 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14674 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
14675 documentation. Add missing '__' in front of
14676 __builtin_ia32_packssdw256.
3f287e4b 14677
1abcd5eb
AK
146782013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14679
14680 PR target/55719
14681 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14682 NO_REGS for larl operands.
14683 (s390_reload_larl_operand): Use s390_load_address instead of
14684 emit_move_insn.
14685
980d0812
RB
146862013-01-11 Richard Biener <rguenther@suse.de>
14687
14688 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14689 (verify_node_sharing): ... here.
14690 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14691
7cb9fd07
EB
146922013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14693
14694 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14695 Substitute TREECHECKING.
14696 * configure: Regenerate.
14697 * Makefile.in (TREECHECKING): New.
14698
47876a2a 146992013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
14700
14701 PR tree-optimization/44061
14702 * tree-vrp.c (extract_range_basic): Compute zero as
14703 value-range for __builtin_constant_p of function parameters.
14704
d1e082c2
RS
147052013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14706
45805f17 14707 Update copyright years.
d1e082c2 14708
f85021b0
VM
147092013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14710
9d60be38 14711 PR rtl-optimization/55672
0160442c
VM
14712 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14713 const to be eliminable.
f85021b0 14714
7a8b1ec4
DE
147152013-01-10 David Edelsohn <dje.gcc@gmail.com>
14716
14717 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14718 * configure: Regenerate.
14719
ad2e5b71
RB
147202013-01-10 Richard Biener <rguenther@suse.de>
14721
ddf9322d 14722 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 14723
ffc5b2bb
RB
147242013-01-10 Richard Biener <rguenther@suse.de>
14725
14726 PR bootstrap/55792
14727 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14728 locations for virtual PHI arguments.
14729 (rewrite_update_phi_arguments): Likewise.
14730
e1f674e4
JS
147312013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14732
14733 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14734 on to assembler.
14735
a57fc743
JJ
147362013-01-10 Jakub Jelinek <jakub@redhat.com>
14737
14738 PR tree-optimization/55921
14739 * tree-complex.c (expand_complex_asm): New function.
14740 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14741
0ff4390d
AK
147422013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14743
14744 PR target/55718
14745 * config/s390/s390.c (s390_symref_operand_p)
14746 (s390_loadrelative_operand_p): Merge the two functions.
14747 (s390_check_qrst_address, print_operand_address): Add parameters
14748 to s390_loadrelative_operand_p invokation.
14749 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14750 (s390_reload_larl_operand, s390_secondary_reload): Use
14751 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14752 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14753
6f557e0e
MS
147542013-01-09 Mike Stump <mikestump@comcast.net>
14755
14756 * dse.c (record_store): Remove unnecessary assert.
14757
7770c9e9
JH
147582013-01-09 Jan Hubicka <jh@suse.cz>
14759
14760 PR tree-optimization/55569
14761 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14762 * cfgloop.h (scale_loop_profile): Likewise.
14763
a19b1432
JH
147642013-01-09 Jan Hubicka <jh@suse.cz>
14765
14766 PR lto/45375
ddf9322d
UB
14767 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14768 functions.
a19b1432
JH
14769 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14770
9a002da8
RS
147712013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14772
14773 PR middle-end/55114
14774 * expr.h (maybe_emit_group_store): Declare.
14775 * expr.c (maybe_emit_group_store): New function.
14776 * builtins.c (expand_builtin_int_roundingfn): Call it.
14777 (expand_builtin_int_roundingfn_2): Likewise.
14778
511dcace
VM
147792013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14780
e1f2b729 14781 PR rtl-optimization/55829
511dcace
VM
14782 * lra-constraints.c (match_reload): Add code for absent output.
14783 (curr_insn_transform): Add code for reloads of matched inputs
14784 without output.
14785
7b0fe4f4
UB
147862013-01-09 Uros Bizjak <ubizjak@gmail.com>
14787
14788 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14789 attribute of movddup insn to DF.
14790 (*vec_interleave_lowv2df): Ditto.
14791 (vec_dupv2df): Ditto.
14792
870ca331
JH
147932013-01-09 Jan Hubicka <jh@suse.cz>
14794
14795 PR tree-optimiation/55875
14796 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14797 EVERY_ITERATION parameter.
7b0fe4f4 14798 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
14799 (idx_infer_loop_bounds): Similarly here.
14800 (n_of_executions_at_most): Simplify
14801 to only test for cases where statement is dominated by the
7b0fe4f4 14802 particular bound; handle correctly the "postdominance" test.
870ca331
JH
14803 (scev_probably_wraps_p): Use max loop iterations info
14804 as a global bound first.
14805
6f575fe4 148062013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
14807 Nick Clifton <nickc@redhat.com>
14808
14809 * config/v850/v850.md (cbranchsf4): New pattern.
14810 (cstoresf4): New pattern.
14811 (cbranchdf4): New pattern.
14812 (cstoredf4): New pattern.
14813 (movsicc): Disallow floating point comparisons.
14814 (cmpsf_le_insn): Fix order of operators.
14815 (cmpsf_lt_insn): Likewise.
14816 (cmpsf_eq_insn): Likewise.
14817 (cmpdf_le_insn): Likewise.
14818 (cmpdf_lt_insn): Likewise.
14819 (cmpdf_eq_insn): Likewise.
14820 (cmpsf_ge_insn): Use LE comparison.
14821 (cmpdf_ge_insn): Likewise.
14822 (cmpsf_gt_insn): Use LT comparison.
14823 (cmpdf_gt_insn): Likewise.
14824 (cmpsf_ne_insn): Delete pattern.
14825 (cmpdf_ne_insn): Delete pattern.
14826 * config/v850/v850.c (v850_gen_float_compare): Use
14827 gen_cmpdf_eq_insn for NE comparison.
14828 (v850_float_z_comparison_operator)
14829 (v850_float_nz_comparison_operator): Move from here ...
14830 * config/v850/predicates.md: ... to here. Move GT and GE
14831 comparisons into v850_float_z_comparison_operator.
14832 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14833 Delete prototype.
14834 (v850_float_nz_comparison_operator): Likewise.
14835
f0d54148
JDA
148362013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14837
14838 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14839 with calls to gen_insvsi/gen_insvdi.
14840
8f01beca
VK
148412013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14842
14843 * config/i386/i386.c (initial_ix86_tune_features): Set up
14844 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14845
2aa579ad
JJ
148462013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14847 Jakub Jelinek <jakub@redhat.com>
14848
14849 PR tree-optimization/48189
14850 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14851 If nitercst is 0, don't predict the exit edge.
14852
6edc3e32 148532013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
14854
14855 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14856 in asm_fprintf with reg_names.
14857 (aarch64_print_operand_address): Likewise.
14858 (aarch64_return_addr): Likewise.
14859 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14860
f6f94d94
JDA
148612013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14862
14863 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14864 (INT_U6_BITS): Likewise.
14865 * config/pa/predicates.md (uint6_operand): New predicate.
14866 (shift5_operand, shift6_operand): Likewise.
14867 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14868 arith32_operand.
14869 (lshrdi3): Use shift6_operand.
14870 (shrpsi4, shrpdi4): New insn patterns.
14871 (extzv): Delete expander.
14872 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14873 predicates in unamed zero extract patterns. Tighten common constraint.
14874 (extv): Delete expander.
14875 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14876 predicates in unamed sign extract patterns. Tighten common constraint.
14877 (insv): Delete expander.
14878 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14879 predicates in unamed insert patterns. Tighten common constraint.
14880 Change uint32_operand predicate to uint6_operand predicate in unamed
14881 DImode pattern to insert constant values of type 1...1xxxx.
14882
36b72910
JH
148832013-01-04 Jan Hubicka <jh@suse.cz>
14884
14885 PR tree-optimization/55823
7b0fe4f4
UB
14886 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14887 issue.
36b72910 14888
47876a2a 148892013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
14890 Uros Bizjak <ubizjak@gmail.com>
14891
14892 PR rtl-optimization/55845
14893 * df-problems.c (can_move_insns_across): Stop scanning at
14894 volatile_insn_p source instruction or give up if
14895 across_from .. across_to range contains any volatile_insn_p
14896 instructions.
14897
4369c11e
TB
148982013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14899
7b0fe4f4
UB
14900 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14901 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14902 Declare.
4369c11e 14903 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 14904 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 14905
aeb7e7c1
JJ
149062013-01-08 Jakub Jelinek <jakub@redhat.com>
14907
14908 PR fortran/55341
14909 * asan.c (asan_clear_shadow): New function.
14910 (asan_emit_stack_protection): Use it.
14911
a02ad1aa
TB
149122013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14913
14914 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14915 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14916 with tab instead of space.
14917
f90d87f5
NC
149182013-01-08 Nick Clifton <nickc@redhat.com>
14919
14920 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14921 register bank 0 at the start of an interrupt handler.
83ffd964
NC
14922 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14923 MDBH registers.
f90d87f5 14924
385eb93d
JG
149252013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14926
14927 * config/aarch64/aarch64-simd.md
14928 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14929 (aarch64_simd_bsl): Likewise.
14930 (aarch64_vcond_internal<mode>): Likewise.
14931 (vcond<mode><mode>): Likewise.
14932 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14933 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14934
4dcd1054
JG
149352013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14936
14937 * config/aarch64/aarch64-builtins.c
14938 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14939
4267a4a6
MJ
149402013-01-08 Martin Jambor <mjambor@suse.cz>
14941
14942 PR debug/55579
14943 * tree-sra.c (analyze_access_subtree): Return true also after
14944 potentially creating a debug-only replacement.
14945
5f4e6de3
JJ
149462013-01-08 Jakub Jelinek <jakub@redhat.com>
14947
3138f224
JJ
14948 PR middle-end/55890
14949 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14950
5f4e6de3
JJ
14951 PR tree-optimization/54120
14952 * tree-vrp.c (range_fits_type_p): Don't allow
14953 src_precision < precision from signed vr to unsigned_p
14954 if vr->min or vr->max is negative.
14955 (simplify_float_conversion_using_ranges): Test can_float_p
14956 against CODE_FOR_nothing.
14957
f3ef18ff
JJ
149582013-01-08 Jakub Jelinek <jakub@redhat.com>
14959 Richard Biener <rguenther@suse.de>
14960
14961 PR middle-end/55851
14962 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14963 types instead of just INTEGER_TYPE types.
14964
25c210f9
MK
149652013-01-07 Mark Kettenis <kettenis@openbsd.org>
14966
14967 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14968 TF_SIZE): Define.
f90d87f5 14969
81826a7b
SE
149702013-01-07 Steve Ellcey <sellcey@mips.com>
14971
14972 PR target/42661
14973 * config/mips/mips.opt: Change mad to mmad to match documentation.
14974
35678514
GJL
149752013-01-07 Georg-Johann Lay <avr@gjlay.de>
14976
14977 PR target/55897
14978 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14979 .progmemx.data now.
14980
e5669488
GJL
149812013-01-07 Georg-Johann Lay <avr@gjlay.de>
14982
14983 PR target/55897
14984 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14985 (avr_addrspace_t): Add .section_name field.
14986 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14987 array size.
14988 (avr_addrspace): Same. Initialize .section_name. Remove last
14989 NULL entry. Put __memx into .progmemx.data.
14990 (progmem_section_prefix): Remove.
14991 (avr_asm_init_sections): No need to initialize progmem_section.
14992 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14993 section name prefix.
14994 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14995 retrieve the progmem section.
14996 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14997 boundary to run over avr_addrspace[].
14998 (avr_register_target_pragmas): Ditto.
14999
656e6f37
JJ
150002013-01-06 Jakub Jelinek <jakub@redhat.com>
15001
15002 * varasm.c (output_constant_def_contents): For asan_protect_global
15003 protected strings, adjust DECL_ALIGN if needed, before testing for
15004 anchored symbols.
15005 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15006 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15007 normal decls.
15008 (output_object_block): For asan protected decls, emit asan padding
15009 after their contents.
15010 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15011 (asan_finish_file): Test it here instead.
15012
6edc3e32
UB
150132013-01-07 Nick Clifton <nickc@redhat.com>
15014 Matthias Klose <doko@debian.org>
15015 Doug Kwan <dougkwan@google.com>
15016 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
15017
15018 PR driver/55470
15019 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15020
15021 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15022
15023 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15024
7b0fe4f4 15025 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
15026
15027 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15028
2a095093
GJL
150292013-01-07 Georg-Johann Lay <avr@gjlay.de>
15030
f3b503f4 15031 PR target/54461
2a095093
GJL
15032 * doc/install.texi (Cross-Compiler-Specific Options): Document
15033 --with-avrlibc.
15034
383f9b34
TB
150352013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15036
15037 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15038 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15039 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15040 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15041 vqmovun_high_s64): Fix source operand number and update copyright.
15042
3626621a
RB
150432013-01-07 Richard Biener <rguenther@suse.de>
15044
15045 PR middle-end/55890
15046 * gimple.h (gimple_call_builtin_p): New overload.
15047 * gimple.c (validate_call): New function.
15048 (gimple_call_builtin_p): Likewise.
15049 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15050 Use gimple_call_builtin_p.
15051 (find_func_clobbers): Likewise.
15052 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15053 (strlen_optimize_stmt): Likewise.
15054
8b2ea410
JG
150552013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15056
15057 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15058 (vld1q_dup_*): Likewise.
15059 (vld1_*): Likewise.
15060 (vld1q_*): Likewise.
15061 (vld1_lane_*): Likewise.
15062 (vld1q_lane_*): Likewise.
15063
9713d329
RB
150642013-01-07 Richard Biener <rguenther@suse.de>
15065
15066 * lto-streamer.h (LTO_minor_version): Bump to 2.
15067
3520f7cc
JG
150682013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15069
15070 * config/aarch64/aarch64-protos.h
15071 (aarch64_const_double_zero_rtx_p): Rename to...
15072 (aarch64_float_const_zero_rtx_p): ...this.
15073 (aarch64_float_const_representable_p): New.
15074 (aarch64_output_simd_mov_immediate): Likewise.
15075 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15076 move immediate case.
15077 * config/aarch64/aarch64.c
15078 (aarch64_const_double_zero_rtx_p): Rename to...
15079 (aarch64_float_const_zero_rtx_p): ...this.
15080 (aarch64_print_operand): Allow printing of new constants.
15081 (aarch64_valid_floating_const): New.
15082 (aarch64_legitimate_constant_p): Check for valid floating-point
15083 constants.
15084 (aarch64_simd_valid_immediate): Likewise.
15085 (aarch64_vect_float_const_representable_p): New.
15086 (aarch64_float_const_representable_p): Likewise.
15087 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15088 (aarch64_output_simd_mov_immediate): New.
15089 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15090 (*movdf_aarch64): Likewise.
15091 * config/aarch64/constraints.md (Ufc): New.
15092 (Y): call aarch64_float_const_zero_rtx.
15093 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15094
e167c04d
RB
150952013-01-07 Richard Biener <rguenther@suse.de>
15096
15097 PR tree-optimization/55888
15098 PR tree-optimization/55862
15099 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15100 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15101 not if it is contained therein.
15102
0139aaab
GJL
151032013-01-07 Georg-Johann Lay <avr@gjlay.de>
15104
15105 * config/avr/t-avr: Typo.
15106
4a176b23
GJL
151072013-01-07 Georg-Johann Lay <avr@gjlay.de>
15108
15109 PR55243
15110 * config/avr/t-avr: Don't automatically rebuild
15111 $(srcdir)/config/avr/t-multilib
15112 $(srcdir)/config/avr/avr-tables.opt
15113 $(srcdir)/doc/avr-mmcu.texi
15114 (avr-mcus): New phony target to build them on request.
15115 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15116 * avr/avr-mcus.def: Adjust comments.
15117
c7afdc98
UB
151182013-01-07 Uros Bizjak <ubizjak@gmail.com>
15119
15120 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15121
1ab05c31
RS
151222013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15123
15124 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15125
488e3acc
RS
151262013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15127
15128 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15129
a89599d2
DE
151302013-01-05 David Edelsohn <dje.gcc@gmail.com>
15131
15132 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15133 to generate profiling.
15134 * config/rs6000/aix64.h (LIB_SPEC): Same.
15135
70f09188
AP
151362013-01-04 Andrew Pinski <apinski@cavium.com>
15137
15138 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15139 New function.
15140 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15141
918d445f
UB
151422013-01-04 Uros Bizjak <ubizjak@gmail.com>
15143
15144 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15145 unconditionally.
15146 (ix86_expand_move): Ditto.
15147 (ix86_zero_extend_to_Pmode): Ditto.
15148 (ix86_expand_call): Ditto.
15149 (ix86_expand_special_args_builtin): Ditto.
15150 (ix86_expand_builtin): Ditto.
15151
361618ec
RB
151522013-01-04 Richard Biener <rguenther@suse.de>
15153
15154 PR tree-optimization/55862
15155 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15156 translating them through PHI nodes.
15157
87eab554
MJ
151582013-01-04 Martin Jambor <mjambor@suse.cz>
15159
15160 PR tree-optimization/55755
15161 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15162 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15163
33879b9f
MP
151642013-01-04 Marek Polacek <polacek@redhat.com>
15165
15166 PR middle-end/55859
15167 * opts.c (default_options_optimization): Clarify error message.
15168
3068819a
RB
151692013-01-04 Richard Biener <rguenther@suse.de>
15170
15171 PR middle-end/55863
15172 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15173 reassociation.
15174
0e4ae794
JDA
151752013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15176
15177 PR target/53789
15178 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
15179 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15180 references.
0e4ae794 15181
65c88cef
RH
151822013-01-03 Richard Henderson <rth@redhat.com>
15183
15184 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15185 after eliminating TLS symbols.
15186
8ac16127
MG
151872013-01-03 Marc Glisse <marc.glisse@inria.fr>
15188
15189 PR bootstrap/50167
15190 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15191 * graphite-poly.c (debug_gmp_value): Likewise.
15192
bb664f09
UB
151932013-01-03 Uros Bizjak <ubizjak@gmail.com>
15194
15195 PR target/55712
15196 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15197 selected code model, define __code_mode_small__, __code_model_medium__,
15198 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15199 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15200 xchg temporary register with %k. Declare temporary register as
15201 early clobbered.
15202 [__x86_64__]: For medium and large code models, preserve %rbx register.
15203
bcf1ef00
RB
152042013-01-03 Richard Biener <rguenther@suse.de>
15205
0506634a 15206 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
15207 (dump_subscript): Adjust.
15208 (finalize_ddr_dependent): Do not dump redundant info.
15209 (analyze_siv_subscript): Adjust.
15210 (subscript_dependence_tester): Likewise.
15211 (compute_affine_dependence): Likewise.
15212
59fd17e3
RB
152132013-01-03 Richard Biener <rguenther@suse.de>
15214
15215 Revert
15216 2013-01-03 Richard Biener <rguenther@suse.de>
15217
15218 PR tree-optimization/55857
15219 * tree-vect-stmts.c (vectorizable_load): Do not setup
15220 re-alignment for invariant loads.
15221
15222 2013-01-02 Richard Biener <rguenther@suse.de>
15223
15224 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15225 invariant load do not generate a vector load from the scalar location.
59fd17e3 15226
595c2679
RB
152272013-01-03 Richard Biener <rguenther@suse.de>
15228
15229 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15230 for not vectorizing.
15231 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15232 not build INDIRECT_REFs, call get_name once only.
15233 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15234 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15235
90bb7d7a
RB
152362013-01-03 Richard Biener <rguenther@suse.de>
15237
15238 PR tree-optimization/55857
15239 * tree-vect-stmts.c (vectorizable_load): Do not setup
15240 re-alignment for invariant loads.
15241
f09b77ca
RB
152422013-01-03 Richard Biener <rguenther@suse.de>
15243
15244 PR lto/55848
15245 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15246 prefer a built-in decl.
15247
3461a16e
JJ
152482013-01-03 Jakub Jelinek <jakub@redhat.com>
15249
df8e2b4f
JJ
15250 * gcc.c (process_command): Update copyright notice dates.
15251 * gcov.c (print_version): Likewise.
15252 * gcov-dump.c (print_version): Likewise.
15253
3461a16e
JJ
15254 PR rtl-optimization/55838
15255 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15256 iv0.step, iv1.step and step.
15257
8b5546d6
JJ
152582013-01-03 Jakub Jelinek <jakub@redhat.com>
15259 Marc Glisse <marc.glisse@inria.fr>
15260
15261 PR tree-optimization/55832
15262 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15263 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15264 integer_{one,zero}_node.
15265
8ab1d2e9
JJ
152662013-01-03 Jakub Jelinek <jakub@redhat.com>
15267
15268 PR debug/54402
15269 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15270 * var-tracking.c (reverse_op): Don't add reverse ops to
15271 VALUEs that have already
0506634a 15272 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 15273
5b9ad1d4
GP
152742013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15275
15276 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15277
e25a6711
TJ
152782013-01-02 Teresa Johnson <tejohnson@google.com>
15279
15280 * dumpfile.c (dump_loc): Print filename with location.
15281 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15282 new location_t parameter to emit complete unroll message with
15283 new dump framework.
15284 (canonicalize_loop_induction_variables): Compute loops location
15285 and pass to try_unroll_loop_completely.
15286 * loop-unroll.c (report_unroll_peel): New function.
15287 (peel_loops_completely): Use new dump format with location
15288 for main dumpfile message, and invoke report_unroll_peel on success.
15289 (decide_unrolling_and_peeling): Ditto.
15290 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15291 by report_unroll_peel.
15292 (decide_peel_completely): Ditto.
15293 (decide_unroll_constant_iterations): Ditto.
15294 (decide_unroll_runtime_iterations): Ditto.
15295 (decide_peel_simple): Ditto.
15296 (decide_unroll_stupid): Ditto.
15297 * cfgloop.c (get_loop_location): New function.
15298 * cfgloop.h (get_loop_location): Declare.
15299
77878621
ST
153002013-01-02 Sriraman Tallam <tmsriram@google.com>
15301
15302 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15303 NULL.
15304
9e65d03e
JDA
153052013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15306
15307 PR middle-end/55198
15308 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15309 BLKmode objects when EXPAND_MEMORY is specified.
15310
6a7da30f
ST
153112013-01-02 Sriraman Tallam <tmsriram@google.com>
15312
15313 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15314 in loop predicate.
15315 (fold_builtin_cpu): Do not share cpu model decls across statements.
15316
e78167f2
JM
153172013-01-02 Jason Merrill <jason@redhat.com>
15318
15319 PR c++/55804
15320 * tree.c (build_array_type_1): Revert earlier change.
15321
8c075fb4
YZ
153222013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15323
15324 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15325 "cortex-a57".
15326 * config/aarch64/aarch64-tune.md: Re-generate.
15327
0682ed3e
RB
153282013-01-02 Richard Biener <rguenther@suse.de>
15329
15330 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15331 invariant load do not generate a vector load from the scalar location.
0682ed3e 15332
b8f6a302
RB
153332013-01-02 Richard Biener <rguenther@suse.de>
15334
15335 PR bootstrap/55784
15336 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15337 * configure: Regenerate.
15338
04b80dbb
RS
153392013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15340
15341 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15342 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15343 (expand_builtin_int_roundingfn_2): Keep the original target around
15344 for the fallback case.
15345
635b0b0c
RS
153462013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15347
15348 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15349 to be clear for sign changes.
15350
42d57399
JH
153512013-01-01 Jan Hubicka <jh@suse.cz>
15352
15353 * ipa-inline-analysis.c: Fix formatting.
15354
5bb6669d
JJ
153552013-01-01 Jakub Jelinek <jakub@redhat.com>
15356
15357 PR tree-optimization/55831
15358 * tree-vect-loop.c (get_initial_def_for_induction): Use
15359 gsi_after_labels instead of gsi_start_bb.
ad41bd84 15360\f
86a2db33 15361Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
15362
15363Copying and distribution of this file, with or without modification,
15364are permitted in any medium without royalty provided the copyright
15365notice and this notice are preserved.