]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
runtime: Handle allocating memory in cgo/SWIG function.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
ce4a9422
JR
12013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
2
3 PR rtl-optimization/57968
4 * mode-switching.c (create_pre_exit): Allow instructions that
5 don't set a return register to need a non-exit mode.
6
493f4c9e
BS
72013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8 Anton Blanchard <anton@au1.ibm.com>
9
10 * vector.md (vec_realign_load_<mode>): Reorder input operands to
11 vperm for little endian.
12 * rs6000.c (rs6000_expand_builtin): Use lvsr instead of lvsl to
13 create the control mask for a vperm for little endian.
14
73792b92
BS
152013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16 Anton Blanchard <anton@au1.ibm.com>
17
18 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
19 two operands for little-endian.
20
14c21302
SE
212013-07-23 Steve Ellcey <sellcey@mips.com>
22
23 * config/mips/mips.c (mips_case_values_threshold): New.
24 (TARGET_CASE_VALUES_THRESHOLD): Define.
25
a6056198
BS
262013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27 Anton Blanchard <anton@au1.ibm.com>
28
29 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
30 selection of field for vector splat in little endian mode.
31
dd7a40e1
MM
322013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
33
34 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
35 expanders to rs6000.md.
36 (ior<mode>3): Likewise.
37 (and<mode>3): Likewise.
38 (one_cmpl<mode>2): Likewise.
39 (nor<mode>3): Likewise.
40 (andc<mode>3): Likewise.
41 (eqv<mode>3): Likewise.
42 (nand<mode>3): Likewise.
43 (orc<mode>3): Likewise.
44
45 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
46 declaration.
47
48 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
49 to split multi-word logical operations.
50 (rs6000_split_logical_di): Likewise.
51 (rs6000_split_logical): Likewise.
52
53 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
54 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
55 and allow TImode operations in 32-bit.
56 (vsx_and<mode>3_64bit): Likewise.
57 (vsx_ior<mode>3_32bit): Likewise.
58 (vsx_ior<mode>3_64bit): Likewise.
59 (vsx_xor<mode>3_32bit): Likewise.
60 (vsx_xor<mode>3_64bit): Likewise.
61 (vsx_one_cmpl<mode>2_32bit): Likewise.
62 (vsx_one_cmpl<mode>2_64bit): Likewise.
63 (vsx_nor<mode>3_32bit): Likewise.
64 (vsx_nor<mode>3_64bit): Likewise.
65 (vsx_andc<mode>3_32bit): Likewise.
66 (vsx_andc<mode>3_64bit): Likewise.
67 (vsx_eqv<mode>3_32bit): Likewise.
68 (vsx_eqv<mode>3_64bit): Likewise.
69 (vsx_nand<mode>3_32bit): Likewise.
70 (vsx_nand<mode>3_64bit): Likewise.
71 (vsx_orc<mode>3_32bit): Likewise.
72 (vsx_orc<mode>3_64bit): Likewise.
73
74 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
75 logical types in GPRs.
76
77 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
78 logical insns to rs6000.md, and allow TImode operations in
79 32-bit.
80 (altivec_ior<mode>3): Likewise.
81 (altivec_xor<mode>3): Likewise.
82 (altivec_one_cmpl<mode>2): Likewise.
83 (altivec_nor<mode>3): Likewise.
84 (altivec_andc<mode>3): Likewise.
85
86 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
87 attributes for moving the 128-bit logical operations into
88 rs6000.md.
89 (BOOL_REGS_OUTPUT): Likewise.
90 (BOOL_REGS_OP1): Likewise.
91 (BOOL_REGS_OP2): Likewise.
92 (BOOL_REGS_UNARY): Likewise.
93 (BOOL_REGS_AND_CR0): Likewise.
94 (one_cmpl<mode>2): Add support for DI logical operations on
95 32-bit, splitting the operations to 32-bit.
96 (anddi3): Likewise.
97 (iordi3): Likewise.
98 (xordi3): Likewise.
99 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
100 changes to combine the 32/64-bit code, allow logical operations on
101 TI mode in 32-bit, and to use similar match_operator patterns like
102 scalar mode uses. Combine the Altivec and VSX code for logical
103 operations, and move it here.
104 (ior<mode>3, 128-bit types): Likewise.
105 (xor<mode>3, 128-bit types): Likewise.
106 (one_cmpl<mode>3, 128-bit types): Likewise.
107 (nor<mode>3, 128-bit types): Likewise.
108 (andc<mode>3, 128-bit types): Likewise.
109 (eqv<mode>3, 128-bit types): Likewise.
110 (nand<mode>3, 128-bit types): Likewise.
111 (orc<mode>3, 128-bit types): Likewise.
112 (and<mode>3_internal): Likewise.
113 (bool<mode>3_internal): Likewise.
114 (boolc<mode>3_internal1): Likewise.
115 (boolc<mode>3_internal2): Likewise.
116 (boolcc<mode>3_internal1): Likewise.
117 (boolcc<mode>3_internal2): Likewise.
118 (eqv<mode>3_internal1): Likewise.
119 (eqv<mode>3_internal2): Likewise.
120 (one_cmpl1<mode>3_internal): Likewise.
121
9b69d4b4
DH
1222013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
123
124 * config/microblaze/microblaze.c (microblaze_expand_prologue):
125 Rename flag_stack_usage to flag_stack_usage_info.
126
450b0ebb
DH
1272013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
128
a5f257fd
ME
129 * config/microblaze/sync.md: New file.
130 * config/microblaze/microblaze.md: Include sync.md
131 * config/microblaze/microblaze.c: Add print_operand 'y'.
132 * config/microblaze/constraints.md: Add memory_contraint
133 'Q' which is a single register.
450b0ebb 134
49fba14f
EB
1352013-07-23 Eric Botcazou <ebotcazou@adacore.com>
136
137 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
138
c7b3b99f
PCC
1392013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
140
141 * reload.c (find_reloads): Exit loop once we find this operand
142 cannot be reloaded somehow for this alternative.
143
144 * reload.c (find_reloads): Exit loop once we find a hard register.
145
146 * rtlanal.c (computed_jump_p): Exit loop once we find label
147 reference is used.
148
149 * i386.c (ix86_pad_returns): Exit loop after setting replace.
150
151 * cfgloopmanip.c (remove_path): Exit loop after setting
152 irred_invalidated.
153
154 * gensupport.c (subst_dup): Avoid loop if code is not
155 MATCH_DUP nor MATCH_OP_DUP.
156
c8fbf1fa
NBJ
1572013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
158
159 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
160
9259db42
YZ
1612013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
162
163 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
164 true for SP_REGNUM if mode == ptr_mode.
165 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
166 with value R0_REGNUM + 31.
167
00edcfbe
YZ
1682013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
169
170 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
171 pad pointer-typed argument downward.
172
43be9a95
YZ
1732013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
174
175 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
176 and __ILP32__ when the ILP32 model is in use.
177
28514dda
YZ
1782013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
179
180 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
181 (aarch64_load_symref_appropriately): In the case of
182 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
183 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
184 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
185 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
186 if 'mode' doesn't equal to 'ptr_mode'.
187 (aarch64_output_mi_thunk): Add an assertion on the alignment of
188 'vcall_offset'; change to call aarch64_emit_move differently depending
189 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
190 to calculate the upper bound of 'vcall_offset'.
191 (aarch64_cannot_force_const_mem): Change to also return true if
192 mode != ptr_mode.
193 (aarch64_legitimize_reload_address): In the case of large
194 displacements, add new local variable 'xmode' and an assertion
195 based on it; change to use 'xmode' to generate the new rtx and
196 reload.
197 (aarch64_asm_trampoline_template): Change to generate the template
198 differently depending on TARGET_ILP32 or not; change to use
199 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
200 (aarch64_trampoline_size): Removed.
201 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
202 and replace immediate literals with it. Change to use 'ptr_mode'
203 instead of 'DImode' and call convert_memory_address if the mode
204 of 'fnaddr' doesn't equal to 'ptr_mode'.
205 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
206 to output symbol.
207 (aarch64_elf_asm_destructor): Likewise.
208 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
209 on TARGET_ILP32 instead of aarch64_trampoline_size.
210 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
211 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
212 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
213 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
214 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
215 (storewb_pair<GPI:mode>_<P:mode>): ... this.
216 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
217 depending on the value of 'mode'.
218 (add_losym_<mode>): New.
219 (ldr_got_small_<mode>): New, based on ldr_got_small.
220 (ldr_got_small): Remove.
221 (ldr_got_small_sidi): New.
222 * config/aarch64/iterators.md (P): New.
223 (PTR): Change to 'ptr_mode' in the condition.
224
17a819cb
YZ
2252013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
226
227 * config.gcc (aarch64*-*-*): Support --with-abi.
228 (aarch64*-*-elf): Support --with-multilib-list.
229 (aarch64*-*-linux*): Likewise.
230 (supported_defaults): Add abi to aarch64*-*-*.
231 * configure.ac: Mention AArch64 for --with-multilib-list.
232 * configure: Re-generated.
233 * config/aarch64/biarchilp32.h: New file.
234 * config/aarch64/biarchlp64.h: New file.
235 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
236 (ABI_SPEC): Ditto.
237 (MULTILIB_DEFAULTS): Ditto.
238 (DRIVER_SELF_SPECS): Ditto.
239 (ASM_SPEC): Update to also substitute -mabi.
240 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
241 file whose name depends on -mabi= and -mbig-endian.
242 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
243 TARGET_ILP32.
244 (POINTER_SIZE): New define.
245 (POINTERS_EXTEND_UNSIGNED): Ditto.
246 (enum aarch64_abi_type): New enumeration tag.
247 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
248 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
249 (TARGET_ILP32): New define.
250 * config/aarch64/aarch64.opt (mabi): New.
251 (aarch64_abi): New.
252 (ilp32, lp64): New values for -mabi.
253 * config/aarch64/t-aarch64 (comma): New define.
254 (MULTILIB_OPTIONS): Ditto.
255 (MULTILIB_DIRNAMES): Ditto.
256 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
257 * doc/invoke.texi: Document -mabi for AArch64.
258
9f9cbdce
GJL
2592013-07-23 Georg-Johann Lay <avr@gjlay.de>
260
261 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
262
7061977b
BS
2632013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
264 Anton Blanchard <anton@au1.ibm.com>
265
266 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
267 endianness when selecting field to splat.
268
75a41878
EC
2692013-07-22 Eric Christopher <echristo@gmail.com>
270
271 * dwarf2out.c (die_odr_checksum): New function to use
272 CHECKSUM_ macros and ULEB128 for DIE tag.
273 (generate_type_signature): Use.
274
38ae58ca
EB
2752013-07-22 Eric Botcazou <ebotcazou@adacore.com>
276
277 * config.gcc (sparc*-*-*): Accept leon3 processor.
278 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
279 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
280 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
281 * config/sparc/sparc.opt (enum processor_type): Add leon3.
282 (mfix-ut699): Adjust comment.
283 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
284 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
285 (CPP_CPU_SPEC): Likewise.
286 (ASM_CPU_SPEC): Likewise.
287 * config/sparc/sparc.c (leon3_cost): New constant.
288 (sparc_option_override): Add leon3 support.
289 (mem_ref): New function.
290 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
291 (sparc_do_work_around_errata): Look into the instruction in the delay
292 slot and adjust accordingly. Add fix for the data cache nullify issues
293 of the UT699. Change insertion position for the NOP.
294 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
295 (leon3_load): New reservation.
296 (leon_store): Bump latency to 2.
297 (grfpu): New automaton.
298 (grfpu_alu): New unit.
299 (grfpu_ds): Likewise.
300 (leon_fp_alu): Adjust.
301 (leon_fp_mult): Delete.
302 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
303 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
304 * config/sparc/sparc.md (cpu): Add leon3.
305 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
306 (swapsi): Likewise.
307 (atomic_test_and_set): Likewise.
308 (ldstub): Likewise.
309
04dfc6df
JU
3102013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
311
312 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
313 default for R5900 targets.
314 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
315 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
316 * config/mips/mips.c (mips_option_override): Report an error for
317 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
318 for -march=r5900 -mhard-float.
319
c7b3b99f 3202013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
321
322 * df-problems.c (can_move_insns_across): Exit loop once we
323 find a non-fixed, non-global register.
324
325 * ipa-pure-const.c (propagate_nothrow): Exit loop after
326 setting can_throw.
327
328 * omega.c (omega_eliminate_red): Break after setting red_found.
329 (omega_problem_has_red_equations): Similarly after setting found.
330 (omega_query_variable): Similarly after setting coupled.
331
9b6e6981
MP
3322013-07-22 Marek Polacek <polacek@redhat.com>
333
334 * gimplify.c: Don't include gimple.h twice.
335
5e5f7673
KT
3362013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
337
338 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
339 instead of TARGET_THUMB1.
340 (Pz): New constraint.
341 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
342 encodings.
343 (compare_negsi_si): Likewise.
344 (compare_addsi2_op0): Likewise.
345 (compare_addsi2_op1): Likewise.
346 (addsi3_carryin_<optab>): Likewise.
347 (addsi3_carryin_alt2_<optab>): Likewise.
348 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
349 for arm_restrict_it.
350 (subsi3_carryin): Likewise.
351 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
352 (minmax_arithsi): Disable for arm_restrict_it.
353 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
354 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
355 (satsi_<SAT:code>_shift): Likewise.
356 (arm_shiftsi3): Add alternative for 16-bit encoding.
357 (arm32_movhf): Disable for arm_restrict_it.
358 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
359 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
360
859abddd
SN
3612013-07-22 Sofiane Naci <sofiane.naci@arm.com>
362
363 * config/arm/arm.md (attribute "insn"): Delete.
364 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
365 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
366 (not_shiftsi): Update for attribute change.
367 (not_shiftsi_compare0): Likewise.
368 (not_shiftsi_compare0_scratch): Likewise.
369 (arm_one_cmplsi2): Likewise.
370 (thumb1_one_cmplsi2): Likewise.
371 (notsi_compare0): Likewise.
372 (notsi_compare0_scratch): Likewise.
373 (thumb1_movdi_insn): Likewise.
374 (arm_movsi_insn): Likewise.
375 (movhi_insn_arch4): Likewise.
376 (movhi_bytes): Likewise.
377 (arm_movqi_insn): Likewise.
378 (thumb1_movqi_insn): Likewise.
379 (arm32_movhf): Likewise.
380 (thumb1_movhf): Likewise.
381 (arm_movsf_soft_insn): Likewise.
382 (thumb1_movsf_insn): Likewise.
383 (thumb_movdf_insn): Likewise.
384 (movsicc_insn): Likewise.
385 (movsfcc_soft_insn): Likewise.
386 (and_scc): Likewise.
387 (cond_move): Likewise.
388 (if_move_not): Likewise.
389 (if_not_move): Likewise.
390 (if_shift_move): Likewise.
391 (if_move_shift): Likewise.
392 (if_shift_shift): Likewise.
393 (if_not_arith): Likewise.
394 (if_arith_not): Likewise.
395 (cond_move_not): Likewise.
396 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
397 (neon_mov<mode>): Likewise.
398 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
399 (thumb2_movsi_vfp): Likewise.
400 (movsf_vfp): Likewise.
401 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
402 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
403 change.
859abddd
SN
404 (cortexa7_older_only): Likewise.
405 (cortexa7_younger): Likewise.
406 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
407 (1020alu_shift_op): Likewise.
408 (1020alu_shift_reg_op): Likewise.
409 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
410 (alu_shift_op): Likewise.
411 (alu_shift_reg_op): Likewise.
412 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
413 (11_alu_shift_op): Likewise.
414 (11_alu_shift_reg_op): Likewise.
415 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
416 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
417 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
418 change.
859abddd
SN
419 (cortex_a15_alu_shift): Likewise.
420 (cortex_a15_alu_shift_reg): Likewise.
421 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
422 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
423 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
424 change.
859abddd 425 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
426 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
427 change.
859abddd
SN
428 (cortex_a7_alu_reg): Likewise.
429 (cortex_a7_alu_shift): Likewise.
430 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
431 (cortex_a8_alu_shift): Likewise.
432 (cortex_a8_alu_shift_reg): Likewise.
433 (cortex_a8_mov): Likewise.
434 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
435 (cortex_a9_dp_shift): Likewise.
436 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
437 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
438 (cortex_r4_mov): Likewise.
439 (cortex_r4_alu_shift): Likewise.
440 (cortex_r4_alu_shift_reg): Likewise.
441 * config/arm/fa526.md (526_alu_op): Update for attribute change.
442 (526_alu_shift_op): Likewise.
443 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
444 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
445 (626te_alu_shift_op): Likewise.
446 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
447 (726te_alu_op): Likewise.
448 (726te_alu_shift_op): Likewise.
449 (726te_alu_shift_reg_op): Likewise.
450 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
451 (mp626_alu_shift_op): Likewise.
452 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
453 (pj4_alu_e1_conds): Likewise.
454 (pj4_alu): Likewise.
455 (pj4_alu_conds): Likewise.
456 (pj4_shift): Likewise.
457 (pj4_shift_conds): Likewise.
458 (pj4_alu_shift): Likewise.
459 (pj4_alu_shift_conds): Likewise.
460
95b97fac
KT
4612013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
462
463 * config/arm/predicates.md (shiftable_operator_strict_it):
464 New predicate.
465 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
466 Disable cond_exec version for arm_restrict_it.
467 (thumb2_smaxsi3): Convert to generate cond_exec.
468 (thumb2_sminsi3): Likewise.
469 (thumb32_umaxsi3): Likewise.
470 (thumb2_uminsi3): Likewise.
471 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
472 (thumb2_neg_abssi2): Likewise.
473 (thumb2_mov_scc): Add alternative for 16-bit encoding.
474 (thumb2_movsicc_insn): Adjust alternatives.
475 (thumb2_mov_negscc): Disable for arm_restrict_it.
476 (thumb2_mov_negscc_strict_it): New pattern.
477 (thumb2_mov_notscc_strict_it): New pattern.
478 (thumb2_mov_notscc): Disable for arm_restrict_it.
479 (thumb2_ior_scc): Likewise.
480 (thumb2_ior_scc_strict_it): New pattern.
481 (thumb2_cond_move): Adjust for arm_restrict_it.
482 (thumb2_cond_arith): Disable for arm_restrict_it.
483 (thumb2_cond_arith_strict_it): New pattern.
484 (thumb2_cond_sub): Adjust for arm_restrict_it.
485 (thumb2_movcond): Likewise.
486 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
487 (thumb2_zero_extendhisi2_v6): Likewise.
488 (thumb2_zero_extendqisi2_v6): Likewise.
489 (orsi_notsi_si): Likewise.
490 (orsi_not_shiftsi_si): Likewise.
491
d5a6ef82
GJL
4922013-07-22 Georg-Johann Lay <avr@gjlay.de>
493
494 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
495 instruction sequence is 1 byte shorter.
496
d9e71154
UB
4972013-07-22 Uros Bizjak <ubizjak@gmail.com>
498
499 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
500 it is not needed after split.
501
8c6381ec
IS
5022013-07-20 Iain Sandoe <iain@codesourcery.com>
503
504 PR target/51784
505 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
506 second label for nonlocal goto receivers. Don't output pic base labels
507 unless we're producing PIC; mark that action unreachable().
508 (ix86_save_reg): If the function contains a nonlocal label, save the
509 PIC base reg.
510 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
371e77e3 511 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
512 (update_pic_label_number_if_needed): New.
513 (machopic_output_function_base_name): Adjust for nonlocal receiver
514 case.
515 (machopic_should_output_picbase_label): New.
516 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
517 (nonlocal_goto_receiver): New insn and split.
518
d05d0709
JG
5192013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
520
521 * config/aarch64/aarch64-builtins.c
522 (aarch64_fold_builtin): Fold abs in all modes.
523 * config/aarch64/aarch64-simd-builtins.def
524 (abs): Enable for all modes.
525 * config/aarch64/arm_neon.h
526 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
527 (vabs_f64): Add missing intrinsic.
528
ba590e63
IB
5292013-07-19 Ian Bolton <ian.bolton@arm.com>
530
531 * config/aarch64/arm_neon.h (vabs_s64): New function
532
02371798
GJL
5332013-07-19 Georg-Johann Lay <avr@gjlay.de>
534
535 PR target/57516
536 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
537 * config/avr/avr.md (adjust_len): Add `round'.
538 * config/avr/avr-protos.h (avr_out_round): New prototype.
539 (avr_out_plus): Add `out_label' argument.
540 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
541 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
542 Handle the case where `insn' is just a pattern.
543 (avr_out_bitop): Handle the case where `insn' is just a pattern.
544 (avr_out_round): New function.
545 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
546
b950ac25
DH
5472013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
548
549 * config/microblaze/microblaze.c (microblaze_expand_prologue):
550 Add check for flag_stack_usage to handle -fstack-usage support
551
ed1fd999
PH
5522013-07-18 Pat Haugen <pthaugen@us.ibm.com>
553
554 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
555 interaction for new Power8 flags and VSX.
556
df9dda2d
ST
5572013-07-18 Sriraman Tallam <tmsriram@google.com>
558
559 PR middle-end/57698
560 * tree-inline.c (expand_call_inline): Emit errors during
561 early_inlining only if optimization is not turned on.
562
0f9cdef4
DM
5632013-07-18 David Malcolm <dmalcolm@redhat.com>
564
565 * passes.def: New.
566
567 * passes.c (init_optimization_passes): Move the construction of
568 the pass hierarchy into a new passes.def file.
569
570 * Makefile.in (passes.o): Add dependency on passes.def.
571
2efa4087
DM
5722013-07-18 David Malcolm <dmalcolm@redhat.com>
573
574 * passes.c (init_optimization_passes): Introduce macros for
575 constructing the tree of passes (INSERT_PASSES_AFTER,
576 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
577 TERMINATE_PASS_LIST).
578
bc404e1b
VM
5792013-07-18 Vladimir Makarov <vmakarov@redhat.com>
580 Wei Mi <wmi@google.com>
581
582 PR rtl-optimization/57878
583 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
584 top.
585 (reload_pseudo_compare_func): Check nregs first for reload
586 pseudos.
587
d675843f
DM
5882013-07-18 David Malcolm <dmalcolm@redhat.com>
589
590 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
591
c7b3b99f 5922013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
593
594 * read-rtl.c (validate_const_int): Once an invalid character is
595 seen, quit the loop.
596
597 * gengtype.c (write_roots): Similarly once we find the "deletable"
598 or "if_marked" option.
599
52fceb44
SN
6002013-07-18 Sofiane Naci <sofiane.naci@arm.com>
601
602 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
603 "xtab" and "sat". Move value "clz" from here to ...
604 (attriubte "type"): ... here.
605 (satsi_<SAT:code>): Delete "insn" attribute.
606 (satsi_<SAT:code>_shift): Likewise.
607 (arm_zero_extendqisi2addsi): Likewise.
608 (arm_extendqisi2addsi): Likewise.
609 (clzsi2): Update for attribute changes.
610 (rbitsi2): Likewise.
371e77e3
UB
611 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
612 attribute.
52fceb44
SN
613 (arm_usatsihi): Likewise.
614 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
615
006bd006
SN
6162013-07-18 Sofiane Naci <sofiane.naci@arm.com>
617
618 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
619 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
620 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
621 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
622 in alphabetical order.
623 (attribute "core_cycles"): Update for attribute changes.
624 (arm_addsi3): Likewise.
625 (addsi3_compare0): Likewise.
626 (addsi3_compare0_scratch): Likewise.
627 (addsi3_compare_op1): Likewise.
628 (addsi3_compare_op2): Likewise.
629 (compare_addsi2_op0): Likewise.
630 (compare_addsi2_op1): Likewise.
631 (addsi3_carryin_shift_<optab>): Likewise.
632 (subsi3_carryin_shift): Likewise.
633 (rsbsi3_carryin_shift): Likewise.
634 (arm_subsi3_insn): Likewise.
635 (subsi3_compare0): Likewise.
636 (subsi3_compare): Likewise.
637 (arm_andsi3_insn): Likewise.
638 (thumb1_andsi3_insn): Likewise.
639 (andsi3_compare0): Likewise.
640 (andsi3_compare0_scratch): Likewise.
641 (zeroextractsi_compare0_scratch
642 (andsi_not_shiftsi_si): Likewise.
643 (iorsi3_insn): Likewise.
644 (iorsi3_compare0): Likewise.
645 (iorsi3_compare0_scratch): Likewise.
646 (arm_xorsi3): Likewise.
647 (thumb1_xorsi3_insn): Likewise.
648 (xorsi3_compare0): Likewise.
649 (xorsi3_compare0_scratch): Likewise.
650 (satsi_<SAT:code>_shift): Likewise.
651 (rrx): Likewise.
652 (arm_shiftsi3): Likewise.
653 (shiftsi3_compare0): Likewise.
654 (not_shiftsi): Likewise.
655 (not_shiftsi_compare0): Likewise.
656 (not_shiftsi_compare0_scratch): Likewise.
657 (arm_one_cmplsi2): Likewise.
658 (thumb_one_complsi2): Likewise.
659 (notsi_compare0): Likewise.
660 (notsi_compare0_scratch): Likewise.
661 (thumb1_zero_extendhisi2): Likewise.
662 (arm_zero_extendhisi2): Likewise.
663 (arm_zero_extendhisi2_v6): Likewise.
664 (arm_zero_extendhisi2addsi): Likewise.
665 (thumb1_zero_extendqisi2): Likewise.
666 (thumb1_zero_extendqisi2_v6): Likewise.
667 (arm_zero_extendqisi2): Likewise.
668 (arm_zero_extendqisi2_v6): Likewise.
669 (arm_zero_extendqisi2addsi): Likewise.
670 (thumb1_extendhisi2): Likewise.
671 (arm_extendhisi2): Likewise.
672 (arm_extendhisi2_v6): Likewise.
673 (arm_extendqisi): Likewise.
674 (arm_extendqisi_v6): Likewise.
675 (arm_extendqisi2addsi): Likewise.
676 (thumb1_extendqisi2): Likewise.
677 (thumb1_movdi_insn): Likewise.
678 (arm_movsi_insn): Likewise.
679 (movsi_compare0): Likewise.
680 (movhi_insn_arch4): Likewise.
681 (movhi_bytes): Likewise.
682 (arm_movqi_insn): Likewise.
683 (thumb1_movqi_insn): Likewise.
684 (arm32_movhf): Likewise.
685 (thumb1_movhf): Likewise.
686 (arm_movsf_soft_insn): Likewise.
687 (thumb1_movsf_insn): Likewise.
688 (movdf_soft_insn): Likewise.
689 (thumb_movdf_insn): Likewise.
690 (arm_cmpsi_insn): Likewise.
691 (cmpsi_shiftsi): Likewise.
692 (cmpsi_shiftsi_swp): Likewise.
693 (arm_cmpsi_negshiftsi_si): Likewise.
694 (movsicc_insn): Likewise.
695 (movsfcc_soft_insn): Likewise.
696 (arith_shiftsi): Likewise.
697 (arith_shiftsi_compare0
698 (arith_shiftsi_compare0_scratch
699 (sub_shiftsi): Likewise.
700 (sub_shiftsi_compare0
701 (sub_shiftsi_compare0_scratch
702 (and_scc): Likewise.
703 (cond_move): Likewise.
704 (if_plus_move): Likewise.
705 (if_move_plus): Likewise.
706 (if_move_not): Likewise.
707 (if_not_move): Likewise.
708 (if_shift_move): Likewise.
709 (if_move_shift): Likewise.
710 (if_shift_shift): Likewise.
711 (if_not_arith): Likewise.
712 (if_arith_not): Likewise.
713 (cond_move_not): Likewise.
714 (thumb1_ashlsi3): Set type attribute.
715 (thumb1_ashrsi3): Likewise.
716 (thumb1_lshrsi3): Likewise.
717 (thumb1_rotrsi3): Likewise.
718 (shiftsi3_compare0_scratch): Likewise.
719 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
720 (neon_mov<mode>): Likewise.
371e77e3
UB
721 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
722 attribute changes.
006bd006
SN
723 (thumb2_movsi_insn): Likewise.
724 (thumb2_cmpsi_neg_shiftsi): Likewise.
725 (thumb2_extendqisi_v6): Likewise.
726 (thumb2_zero_extendhisi2_v6): Likewise.
727 (thumb2_zero_extendqisi2_v6): Likewise.
728 (thumb2_shiftsi3_short): Likewise.
729 (thumb2_addsi3_compare0_scratch): Likewise.
730 (orsi_not_shiftsi_si): Likewise.
731 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
732 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
733 changes.
734 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
735 (1020alu_shift_op): Likewise.
736 (1020alu_shift_reg_op): Likewise.
737 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
738 (alu_shift_op): Likewise.
739 (alu_shift_reg_op): Likewise.
740 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
741 (11_alu_shift_op): Likewise.
742 (11_alu_shift_reg_op): Likewise.
743 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
744 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
745 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
746 changes.
006bd006
SN
747 (cortex_a15_alu_shift): Likewise.
748 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
749 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
750 changes.
006bd006
SN
751 (cortex_a5_alu_shift): Likewise.
752 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
753 changes.
754 (cortex_a53_alu_shift): Likewise.
755 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
756 changes.
757 (cortex_a7_alu_reg): Likewise.
758 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
759 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
760 changes.
006bd006
SN
761 (cortex_a8_alu_shift): Likewise.
762 (cortex_a8_alu_shift_reg): Likewise.
763 (cortex_a8_mov): Likewise.
764 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
765 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
766 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
767 changes.
768 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
769 changes.
006bd006
SN
770 (cortex_r4_mov): Likewise.
771 (cortex_r4_alu_shift): Likewise.
772 (cortex_r4_alu_shift_reg): Likewise.
773 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
774 (526_alu_shift_op): Likewise.
775 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
776 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
777 (626te_alu_shift_op): Likewise.
778 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
779 (726te_alu_op): Likewise.
780 (726te_alu_shift_op): Likewise.
781 (726te_alu_shift_reg_op): Likewise.
782 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
783 (mp626_alu_shift_op): Likewise.
784 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
785 (pj4_alu_e1_conds): Likewise.
786 (pj4_alu): Likewise.
787 (pj4_alu_conds): Likewise.
788 (pj4_shift): Likewise.
789 (pj4_shift_conds): Likewise.
790 (pj4_alu_shift): Likewise.
791 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
792 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
793 changes.
006bd006
SN
794 (cortexa7_older_only): Likewise.
795 (cortexa7_younger): Likewise.
796
651df1b2
DM
7972013-07-18 David Malcolm <dmalcolm@redhat.com>
798
799 * ipa-pure-const.c (generate_summary): Rename to...
800 (pure_const_generate_summary): ... this.
801
ea717bd7
IS
8022013-07-17 Iain Sandoe <iain@codesourcery.com>
803
804 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
805
a1259a13
YR
8062013-07-17 Yvan Roux <yvan.roux@linaro.org>
807
808 PR target/57909
809 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
810 usage in HI mode.
811
167f68ed
AK
8122013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
813
814 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
815 enabled without -march=zEC12.
816 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
817 flags to be set.
818
f900a982
MR
8192013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
820
821 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
822 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
823 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
824 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
825 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
826 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
827 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
828 ISA_HAS_FP4.
829 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
830 and ISA_HAS_NMADD3_NMSUB3.
831 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
832 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
833 (nmsub4<mode>, nmsub3<mode>): Likewise.
834 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
835
d4ed27eb
MR
8362013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
837
838 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
839 TARGET_MIPS5400 checking.
840
7a5add18
PB
8412013-07-16 Jakub Jelinek <jakub@redhat.com>
842 Peter Bergner <bergner@vnet.ibm.com>
843
844 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
845 registers in the comment.
846 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
847 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
848 rather than FIRST_PSEUDO_REGISTERS.
849
8502013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
851
852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
853 enable extra ISA flags with TARGET_HTM.
854
d2ab0929
MR
8552013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
856
857 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
858 Fix comment typos.
859
839c74bc
CH
8602013-07-15 Cong Hou <congh@google.com>
861
862 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
863 in compare function for sorting.
864
7a5add18 8652013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
866
867 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
868 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
869 * config/rs6000/rs6000.opt: Add -mhtm option.
870 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
871 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
872 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
873 __HTM__ if the HTM instructions are available.
874 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
875 htm_spr_reg_operand): New define_predicates.
876 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
877 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
878 Include htm.md.
879 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
880 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
881 HTM builtin functions.
882 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
883 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
884 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
885 (rs6000_builtin_mask_calculate): Likewise.
886 (rs6000_option_override_internal): Likewise.
887 (bdesc_htm): Add new HTM builtin support.
888 (htm_spr_num): New function.
889 (htm_spr_regno): Likewise.
890 (rs6000_htm_spr_icode): Likewise.
891 (htm_expand_builtin): Likewise.
892 (htm_init_builtins): Likewise.
893 (rs6000_expand_builtin): Add support for HTM builtin functions.
894 (rs6000_init_builtins): Likewise.
371e77e3
UB
895 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
896 option.
0258b6e4
PB
897 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
898 (TARGET_HTM, MASK_HTM): Define macros.
899 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
900 (FIXED_REGISTERS): Likewise.
901 (CALL_USED_REGISTERS): Likewise.
902 (CALL_REALLY_USED_REGISTERS): Likewise.
903 (REG_ALLOC_ORDER): Likewise.
904 (enum reg_class): Likewise.
905 (REG_CLASS_NAMES): Likewise.
906 (REG_CLASS_CONTENTS): Likewise.
907 (REGISTER_NAMES): Likewise.
908 (ADDITIONAL_REGISTER_NAMES): Likewise.
909 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
910 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
911 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
912 * config/rs6000/htm.md: New file.
913 * config/rs6000/htmintrin.h: New file.
914 * config/rs6000/htmxlintrin.h: New file.
915
87dd8ab0
MS
9162013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
917
918 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
919 Define SYMBOL_TINY_GOT, update comment.
920 * config/aarch64/aarch64.c
921 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
922 (aarch64_expand_mov_immediate): Likewise.
923 (aarch64_print_operand): Likewise.
924 (aarch64_classify_symbol): Likewise.
925 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
926 (ldr_got_tiny): Define.
927
52d676b6
TG
9282013-07-13 Tobias Grosser <tobias@grosser.es>
929
930 PR tree-optimization/54094
931 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
932 scheduling dimension for the parallelism check from the polyhedral
933 information in the AST.
934 * graphite-dependences.c (carries_deps): Do not assume the schedule is
935 in 2D + 1 form.
936
286e8fc1
JM
9372013-07-13 Jason Merrill <jason@redhat.com>
938
939 * print-tree.c (debug_vec_tree): Use debug_raw.
940 (debug_raw (vec<tree, va_gc> &)): New.
941 (debug_raw (vec<tree, va_gc> *)): New.
942 * tree.h: Declare them.
943
e43257e8
BC
9442013-07-13 Bin Cheng <bin.cheng@arm.com>
945
946 * ifcvt.c (ifcvt_after_combine): New static variable.
947 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
948 for size.
949 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
950 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
951 rest_of_handle_if_after_reload): Pass new argument for if_convert.
952
da582d46
MR
9532013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
954
955 * config/mips/mips.c (mips_expand_call): Remove empty statement.
956
18b0ea8f
MM
9572013-07-12 Michael Matz <matz@suse.de>
958
959 PR middle-end/55771
960 * convert.c (convert_to_real): Reject non-float inner types.
961
e4f0f84d
TB
9622013-07-12 Tejas Belagod <tejas.belagod@arm.com>
963
964 * config/aarch64/aarch64-protos.h
965 (aarch64_simd_immediate_valid_for_move): Remove.
966 * config/aarch64/aarch64.c (simd_immediate_info): New member.
967 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
968 cases.
969 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
970
76500022
SE
9712013-07-11 Steve Ellcey <sellcey@mips.com>
972
973 * config/mips/mips.c (mips_conditional_register_usage): Do not
974 use t[0-7] registers in MIPS16 mode when optimizing for size.
975
78039734
ST
9762013-07-11 Sriraman Tallam <tmsriram@google.com>
977
978 * config/i386/i386.c (dispatch_function_versions): Fix array
979 indexing of function_version_info to match actual_versions.
980
7b24b675
TJ
9812013-07-11 Teresa Johnson <tejohnson@google.com>
982
983 * vec.h (struct va_gc): Move release out-of-line.
984 (va_gc::release): Call ggc_free on released vec.
985
85d4cbb8
UW
9862013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
987
988 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
989 Require GOT register as additional operand in UNSPEC.
990 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
991 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
992 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
993 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
994 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
995 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
996 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
997
52b3f9e2
GJL
9982013-07-11 Georg-Johann Lay <avr@gjlay.de>
999
1000 PR target/57631
1001 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1002 name seen by assembler/linker rather if available.
1003
3f3e266e
AS
10042013-07-11 Andreas Schwab <schwab@suse.de>
1005
1006 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1007
21231ca6
VM
10082013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1009
371e77e3 1010 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 1011
d331d374
JM
10122013-07-10 Joseph Myers <joseph@codesourcery.com>
1013
673c2f63
JM
1014 * doc/tm.texi.in: Move hook documentation to ....
1015 * target.def: ... here.
1016
d331d374
JM
1017 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1018 text on @hook line.
1019 * doc/tm.texi: Regenerate.
1020
dfeadaa0
PC
10212013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1022
1023 PR c++/57869
1024 * doc/invoke.texi: Document -Wconditionally-supported.
1025
bb6f2bac
GJL
10262013-07-10 Georg-Johann Lay <avr@gjlay.de>
1027
1028 PR target/57844
1029 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1030 of my_fp.
1031
5219b232
GJL
10322013-07-10 Georg-Johann Lay <avr@gjlay.de>
1033
1034 PR target/57506
1035 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1036 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1037 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1038 Remove duplicate devices.
1039 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1040 * config/avr/t-multilib: Regenerate.
1041 * config/avr/avr-tables.opt: Regenerate.
1042 * doc/avr-mmcu.texi: Regenerate.
1043
283045c0
GJL
10442013-07-10 Georg-Johann Lay <avr@gjlay.de>
1045
1046 PR target/56987
1047 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1048
ceb2d59f 10492013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 1050
ceb2d59f
GS
1051 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1052 the cost of MULT when optimizing for size.
1053
055e0a99
JBG
10542013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1055
1056 * config/cr16/cr16-protos.h: Don't include target.h.
1057
ef43e868
JM
10582013-07-09 Joseph Myers <joseph@codesourcery.com>
1059
1060 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1061 adjust register size for TDmode and TFmode for VSX registers.
1062
4a283fdf
KT
10632013-07-08 Kai Tietz <ktietz@redhat.com>
1064
1065 PR target/56892
1066 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1067 hook_bool_const_tree_true.
1068
2cf4c39e
AK
10692013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1070
1071 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1072 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1073 * config/s390/s390.md: Define FPR*_REGNUM constants.
1074 Fix FPR2_REGNUM constant (18 -> 17).
1075 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1076 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1077 ("trunc<BFP:mode><DFP_ALL:mode>2")
1078 ("trunc<DFP_ALL:mode><BFP:mode>2")
1079 ("*extend<BFP:mode><DFP_ALL:mode>2")
1080 ("*extend<DFP_ALL:mode><BFP:mode>2")
1081 ("extend<BFP:mode><DFP_ALL:mode>2")
1082 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1083 FPR4_REGNUM.
1084
e6ac0270 10852013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 1086
6a2fa4b2 1087 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 1088
b89b22fc
AK
10892013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1090
1091 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1092 and cfun_fpr_bit_p to cfun_fpr_save_p.
1093 (s390_frame_area, s390_register_info, s390_frame_info)
1094 (s390_emit_prologue, s390_emit_epilogue)
1095 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1096 register numbers.
1097 * config/s390/s390.h: Define *_REGNUM macros for floating point
1098 register numbers.
1099
07f398aa
EB
11002013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1101
1102 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1103
75fefa91
PCC
11042013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1105
1106 PR rtl-optimization/57786
1107 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1108 and break out of the loop when it is set to false.
1109
046f1eee
JJ
11102013-07-08 Jakub Jelinek <jakub@redhat.com>
1111
8140c065
JJ
1112 PR target/57819
1113 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1114 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1115 (const_int 63)) 0)).
1116 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1117 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1118 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1119
046f1eee
JJ
1120 PR rtl-optimization/57829
1121 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1122 mask bits outside of mode are just sign-extension from mode to HWI.
1123
930b700b
MZ
11242013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1125
1126 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1127 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1128 adjust_address instead of change_address to keep info about alignment.
1129 (emit_strmov): Remove.
1130 (emit_memmov): New function.
1131 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1132 (expand_movmem_epilogue): Likewise and return updated rtx for
1133 destination.
1134 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1135 destination and source.
1136 (decide_alignment): Refactor, handle vector_loop.
1137 (ix86_expand_movmem): Likewise.
1138 (ix86_expand_setmem): Likewise.
1139 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1140
7b9d1bd8
UB
11412013-07-07 Uros Bizjak <ubizjak@gmail.com>
1142
1143 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1144 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1145
eabb5f48
UB
11462013-07-06 Uros Bizjak <ubizjak@gmail.com>
1147
1148 * config/i386/sse.md (sse_movlhps): Change alternative 3
1149 of operand 2 to "m".
1150
11512013-07-06 Uros Bizjak <ubizjak@gmail.com>
1152
1153 PR target/57807
1154 * config/i386/sse.md (iptr): New mode attribute.
1155 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1156 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1157 (<sse>_vmmul<mode>3): Ditto.
1158 (<sse>_vmdiv<mode>3): Ditto.
1159 (sse_vmrcpv4sf2): Ditto.
1160 (<sse>_vmsqrt<mode>2): Ditto.
1161 (sse_vmrsqrtv4sf2): Ditto.
1162 (<sse>_vm<code><mode>3): Ditto.
1163 (avx_vmcmp<mode>3): Ditto.
1164 (<sse>_vmmaskcmp<mode>3): Ditto.
1165 (<sse>_comi): Ditto.
1166 (<sse>_ucomi): Ditto.
1167 (*xop_vmfrcz_<mode>): Ditto.
1168 (*fmai_fmadd_<mode>): Ditto.
1169 (*fmai_fmsub_<mode>): Ditto.
1170 (*fmai_fnmadd_<mode>): Ditto.
1171 (*fmai_fnmsub_<mode>): Ditto.
1172 (*fma4i_vmfmadd_<mode>): Ditto.
1173 (*fma4i_vmfmsub_<mode>): Ditto.
1174 (*fma4i_vmfnmadd_<mode>): Ditto.
1175 (*fma4i_vmfnmsub_<mode>): Ditto.
1176 (*xop_vmfrcz_<mode>): Ditto.
1177 (sse_cvtps2pi): Ditto.
1178 (sse_cvttps2pi): Ditto.
1179 (sse_cvtss2si): Ditto.
1180 (sse_cvtss2si_2): Ditto.
1181 (sse_cvtss2siq_2): Ditto.
1182 (sse_cvttss2si): Ditto.
1183 (sse_cvttss2siq): Ditto.
1184 (sse_cvtsd2si): Ditto.
1185 (sse_cvtsd2si_2): Ditto.
1186 (sse_cvtsd2siq_2): Ditto.
1187 (sse_cvttsd2si): Ditto.
1188 (sse_cvttsd2siq): Ditto.
1189 (sse_cvtsd2ss): Ditto.
1190 (sse_cvtss2sd): Ditto.
1191 (avx2_pbroadcast<mode>): Ditto.
1192 (avx2_pbroadcast<mode>_1): Ditto.
1193 (*avx_vperm_broadcast_v4sf): Ditto.
1194
1195 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1196 (sse_movlhps): Ditto.
1197 (sse_storehps): Ditto.
1198 (sse_loadhps): Ditto.
1199 (sse_storelps): Ditto.
1200 (sse_loadlps): Ditto.
1201 (*vec_concatv4sf): Ditto.
1202 (*vec_interleave_highv2df): Ditto.
1203 (*vec_interleave_lowv2df): Ditto.
1204 (*vec_extractv2df_1_sse): Ditto.
1205 (*vec_extractv2df_0_sse): Ditto.
1206 (sse2_storelpd): Ditto.
1207 (sse2_loadlpd): Ditto.
1208 (sse2_movsd): Ditto.
1209 (*vec_concatv4si): Ditto.
1210 (vec_concatv2di): Ditto.
1211
1212 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1213 for Intel asm dialect.
1214 (mmx_punpcklwd): Ditto.
1215 (mmx_punpckldq): Ditto.
1216
1217 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1218 for intel assembler dialect.
1219
1f6eac90
JJ
12202013-07-06 Jakub Jelinek <jakub@redhat.com>
1221
1222 PR target/29776
1223 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1224 for BUILT_IN_C{LZ,LRSB}*.
1225 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1226 * tree-vrp.c (extract_range_basic): Handle
1227 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1228 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1229 fall thru to code calling set_value*.
1230 * builtins.c (expand_builtin): Remove *IMAX cases.
1231 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1232 if width is bigger than 2*HWI.
1233
2b778c9d
VM
12342013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1235
1236 PR rtl-optimization/55342
1237 * lra-int.h (lra_subreg_reload_pseudos): New.
1238 * lra.c: Add undoing optional reloads to the block diagram.
1239 (lra_subreg_reload_pseudos): New.
1240 (lra_optional_reload_pseudos): Change comments.
1241 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1242 lra_optional_reload_pseudos after undo transformations.
1243 * lra-assigns.c (pseudo_prefix_title): New.
1244 (lra_setup_reg_renumber): Use it.
1245 (spill_for): Ditto. Check subreg reload pseudos too.
1246 (assign_by_spills): Consider subreg reload pseudos too.
1247 * lra-constraints.c (simplify_operand_subreg): Use
1248 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1249 (curr_insn_transform): Recognize and do optional reloads.
1250 (undo_optional_reloads): New.
1251 (lra_undo_inheritance): Call undo_optional_reloads.
1252
207156e4
TQ
12532013-07-05 Thomas Quinot <quinot@adacore.com>
1254
1255 * tree-complex.c (expand_complex_operations_1): Fix typo.
1256
8990e73a
TB
12572013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1258
1259 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1260 (tune_params): New member 'const vec_costs'.
1261 * config/aarch64/aarch64.c (generic_vector_cost): New.
1262 (generic_tunings): New member 'generic_vector_cost'.
1263 (aarch64_builtin_vectorization_cost): New.
1264 (aarch64_add_stmt_cost): New.
1265 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1266 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1267
f7bc421d
JJ
12682013-07-03 Jakub Jelinek <jakub@redhat.com>
1269
1270 PR target/57777
1271 * config/i386/predicates.md (vsib_address_operand): Disallow
1272 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1273
e90d1568
HPN
12742013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1275
1276 PR middle-end/55030
1277 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1278 expand_builtin_setjmp_receiver.
1279 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1280 with NULL for the label parameter.
1281 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1282 the frame-pointer. Adjust comments.
1283 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1284 only if LABEL is non-NULL.
1285
cbd7413b
YZ
12862013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1287
1288 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1289 (ARM_ABI_AAPCS64): Ditto.
1290 (arm_abi): Ditto.
1291 (ARM_DEFAULT_ABI): Ditto.
1292
dec11868
JG
12932013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1294
1295 * config/aarch64/aarch64-builtins.c
1296 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1297 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1298 (st1): Likewise.
1299 * config/aarch64/aarch64-simd.md
1300 (aarch64_ld1<VALL:mode>): New.
1301 (aarch64_st1<VALL:mode>): Likewise.
1302 * config/aarch64/arm_neon.h
1303 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1304
786fb9b6
ST
13052013-07-02 Sriraman Tallam <tmsriram@google.com>
1306
0ba6aff3
UB
1307 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1308 target ISA is AVX.
786fb9b6
ST
1309 (ix86_option_override_internal):Turn on all -mavx target flags by
1310 default as they are dependent on AVX anyway.
1311
4b043553
CC
13122013-07-02 Cary Coutant <ccoutant@google.com>
1313
1314 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1315 deterministic hash.
1316 (loc_checksum_ordered): Likewise.
1317 (hash_loc_operands): Remove inline keyword.
1318
c4e87a13
JJ
13192013-07-02 Jakub Jelinek <jakub@redhat.com>
1320
1321 PR tree-optimization/57741
1322 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1323 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1324 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1325 Allow REAL_CST step_exprs if flag_associative_math.
1326 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1327
26366d28
IB
13282013-07-02 Ian Bolton <ian.bolton@arm.com>
1329
0ba6aff3 1330 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 1331
2879bb2b
IB
13322013-07-02 Ian Bolton <ian.bolton@arm.com>
1333
1334 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1335
afc5e8a6
KT
13362013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1337
1338 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1339 encoding.
1340 (iorsi3_insn): Likewise.
1341 (arm_xorsi3): Likewise.
1342
31f8442b
SN
13432013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1344
1345 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1346 to ...
1347 (attribute "type"): ... here, and prefix with "wmmx_".
1348 (attribute "core_cycles"): Update for attribute changes.
1349 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1350 (tbcstv4hi): Likewise.
1351 (tbcstv2si): Likewise.
1352 (iwmmxt_iordi3): Likewise.
1353 (iwmmxt_xordi3): Likewise.
1354 (iwmmxt_anddi3): Likewise.
1355 (iwmmxt_nanddi3): Likewise.
1356 (iwmmxt_arm_movdi): Likewise.
1357 (iwmmxt_movsi_insn): Likewise.
1358 (mov<mode>_internal): Likewise.
1359 (and<mode>3_iwmmxt): Likewise.
1360 (ior<mode>3_iwmmxt): Likewise.
1361 (xor<mode>3_iwmmxt): Likewise.
1362 (add<mode>3_iwmmxt): Likewise.
1363 (ssaddv8qi3): Likewise.
1364 (ssaddv4hi3): Likewise.
1365 (ssaddv2si3): Likewise.
1366 (usaddv8qi3): Likewise.
1367 (usaddv4hi3): Likewise.
1368 (usaddv2si3): Likewise.
1369 (sub<mode>3_iwmmxt): Likewise.
1370 (sssubv8qi3): Likewise.
1371 (sssubv4hi3): Likewise.
1372 (sssubv2si3): Likewise.
1373 (ussubv8qi3): Likewise.
1374 (ussubv4hi3): Likewise.
1375 (ussubv2si3): Likewise.
1376 (mulv4hi3_iwmmxt): Likewise.
1377 (smulv4hi3_highpart): Likewise.
1378 (umulv4hi3_highpart): Likewise.
1379 (iwmmxt_wmacs): Likewise.
1380 (iwmmxt_wmacsz): Likewise.
1381 (iwmmxt_wmacu): Likewise.
1382 (iwmmxt_wmacuz): Likewise.
1383 (iwmmxt_clrdi): Likewise.
1384 (iwmmxt_clrv8qi): Likewise.
1385 (iwmmxt_clr4hi): Likewise.
1386 (iwmmxt_clr2si): Likewise.
1387 (iwmmxt_uavgrndv8qi3): Likewise.
1388 (iwmmxt_uavgrndv4hi3): Likewise.
1389 (iwmmxt_uavgv8qi3): Likewise.
1390 (iwmmxt_uavgv4hi3): Likewise.
1391 (iwmmxt_tinsrb): Likewise.
1392 (iwmmxt_tinsrh): Likewise.
1393 (iwmmxt_tinsrw): Likewise.
1394 (iwmmxt_textrmub): Likewise.
1395 (iwmmxt_textrmsb): Likewise.
1396 (iwmmxt_textrmuh): Likewise.
1397 (iwmmxt_textrmsh): Likewise.
1398 (iwmmxt_textrmw): Likewise.
1399 (iwmxxt_wshufh): Likewise.
1400 (eqv8qi3): Likewise.
1401 (eqv4hi3): Likewise.
1402 (eqv2si3): Likewise.
1403 (gtuv8qi3): Likewise.
1404 (gtuv4hi3): Likewise.
1405 (gtuv2si3): Likewise.
1406 (gtv8qi3): Likewise.
1407 (gtv4hi3): Likewise.
1408 (gtv2si3): Likewise.
1409 (smax<mode>3_iwmmxt): Likewise.
1410 (umax<mode>3_iwmmxt): Likewise.
1411 (smin<mode>3_iwmmxt): Likewise.
1412 (umin<mode>3_iwmmxt): Likewise.
1413 (iwmmxt_wpackhss): Likewise.
1414 (iwmmxt_wpackwss): Likewise.
1415 (iwmmxt_wpackdss): Likewise.
1416 (iwmmxt_wpackhus): Likewise.
1417 (iwmmxt_wpackwus): Likewise.
1418 (iwmmxt_wpackdus): Likewise.
1419 (iwmmxt_wunpckihb): Likewise.
1420 (iwmmxt_wunpckihh): Likewise.
1421 (iwmmxt_wunpckihw): Likewise.
1422 (iwmmxt_wunpckilb): Likewise.
1423 (iwmmxt_wunpckilh): Likewise.
1424 (iwmmxt_wunpckilw): Likewise.
1425 (iwmmxt_wunpckehub): Likewise.
1426 (iwmmxt_wunpckehuh): Likewise.
1427 (iwmmxt_wunpckehuw): Likewise.
1428 (iwmmxt_wunpckehsb): Likewise.
1429 (iwmmxt_wunpckehsh): Likewise.
1430 (iwmmxt_wunpckehsw): Likewise.
1431 (iwmmxt_wunpckelub): Likewise.
1432 (iwmmxt_wunpckeluh): Likewise.
1433 (iwmmxt_wunpckeluw): Likewise.
1434 (iwmmxt_wunpckelsb): Likewise.
1435 (iwmmxt_wunpckelsh): Likewise.
1436 (iwmmxt_wunpckelsw): Likewise.
1437 (ror<mode>3): Likewise.
1438 (ashr<mode>3_iwmmxt): Likewise.
1439 (lshr<mode>3_iwmmxt): Likewise.
1440 (ashl<mode>3_iwmmxt): Likewise.
1441 (ror<mode>3_di): Likewise.
1442 (ashr<mode>3_di): Likewise.
1443 (lshr<mode>3_di): Likewise.
1444 (ashl<mode>3_di): Likewise.
1445 (iwmmxt_wmadds): Likewise.
1446 (iwmmxt_wmaddu): Likewise.
1447 (iwmmxt_tmia): Likewise.
1448 (iwmmxt_tmiaph): Likewise.
1449 (iwmmxt_tmiabb): Likewise.
1450 (iwmmxt_tmiatb): Likewise.
1451 (iwmmxt_tmiabt): Likewise.
1452 (iwmmxt_tmiatt): Likewise.
1453 (iwmmxt_tmovmskb): Likewise.
1454 (iwmmxt_tmovmskh): Likewise.
1455 (iwmmxt_tmovmskw): Likewise.
1456 (iwmmxt_waccb): Likewise.
1457 (iwmmxt_wacch): Likewise.
1458 (iwmmxt_waccw): Likewise.
1459 (iwmmxt_waligni): Likewise.
1460 (iwmmxt_walignr): Likewise.
1461 (iwmmxt_walignr0): Likewise.
1462 (iwmmxt_walignr1): Likewise.
1463 (iwmmxt_walignr2): Likewise.
1464 (iwmmxt_walignr3): Likewise.
1465 (iwmmxt_wsadb): Likewise.
1466 (iwmmxt_wsadh): Likewise.
1467 (iwmmxt_wsadbz): Likewise.
1468 (iwmmxt_wsadhz): Likewise.
1469 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1470 (iwmmxt_wabsdiffb): Likewise.
1471 (iwmmxt_wabsdiffh): Likewise.
1472 (iwmmxt_wabsdiffw): Likewise.
1473 (iwmmxt_waddsubhx): Likewise
1474 (iwmmxt_wsubaddhx): Likewise.
1475 (addc<mode>3): Likewise.
1476 (iwmmxt_avg4): Likewise.
1477 (iwmmxt_avg4r): Likewise.
1478 (iwmmxt_wmaddsx): Likewise.
1479 (iwmmxt_wmaddux): Likewise.
1480 (iwmmxt_wmaddsn): Likewise.
1481 (iwmmxt_wmaddun): Likewise.
1482 (iwmmxt_wmulwsm): Likewise.
1483 (iwmmxt_wmulwum): Likewise.
1484 (iwmmxt_wmulsmr): Likewise.
1485 (iwmmxt_wmulumr): Likewise.
1486 (iwmmxt_wmulwsmr): Likewise.
1487 (iwmmxt_wmulwumr): Likewise.
1488 (iwmmxt_wmulwl): Likewise.
1489 (iwmmxt_wqmulm): Likewise.
1490 (iwmmxt_wqmulwm): Likewise.
1491 (iwmmxt_wqmulmr): Likewise.
1492 (iwmmxt_wqmulwmr): Likewise.
1493 (iwmmxt_waddbhusm): Likewise.
1494 (iwmmxt_waddbhusl): Likewise.
1495 (iwmmxt_wqmiabb): Likewise.
1496 (iwmmxt_wqmiabt): Likewise.
1497 (iwmmxt_wqmiatb): Likewise.
1498 (iwmmxt_wqmiatt): Likewise.
1499 (iwmmxt_wqmiabbn): Likewise.
1500 (iwmmxt_wqmiabtn): Likewise.
1501 (iwmmxt_wqmiatbn): Likewise.
1502 (iwmmxt_wqmiattn): Likewise.
1503 (iwmmxt_wmiabb): Likewise.
1504 (iwmmxt_wmiabt): Likewise.
1505 (iwmmxt_wmiatb): Likewise.
1506 (iwmmxt_wmiatt): Likewise.
1507 (iwmmxt_wmiabbn): Likewise.
1508 (iwmmxt_wmiabtn): Likewise.
1509 (iwmmxt_wmiatbn): Likewise.
1510 (iwmmxt_wmiattn): Likewise.
1511 (iwmmxt_wmiawbb): Likewise.
1512 (iwmmxt_wmiawbt): Likewise.
1513 (iwmmxt_wmiawtb): Likewise.
1514 (iwmmxt_wmiawtt): Likewise.
1515 (iwmmxt_wmiawbbn): Likewise.
1516 (iwmmxt_wmiawbtn): Likewise.
1517 (iwmmxt_wmiawtbn): Likewise.
1518 (iwmmxt_wmiawttn): Likewise.
1519 (iwmmxt_wmerge): Likewise.
1520 (iwmmxt_tandc<mode>3): Likewise.
1521 (iwmmxt_torc<mode>3): Likewise.
1522 (iwmmxt_torvsc<mode>3): Likewise.
1523 (iwmmxt_textrc<mode>3): Likewise.
1524 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1525 (wmmxt_pack): Likewise.
1526 (wmmxt_mult_c1): Likewise.
1527 (wmmxt_mult_c2): Likewise.
1528 (wmmxt_alu_c1): Likewise.
1529 (wmmxt_alu_c2): Likewise.
1530 (wmmxt_alu_c3): Likewise.
1531 (wmmxt_transfer_c1): Likewise.
1532 (wmmxt_transfer_c2): Likewise.
1533 (wmmxt_transfer_c3): Likewise.
1534 (marvell_f_iwmmxt_wstr): Likewise.
1535 (marvell_f_iwmmxt_wldr): Likewise.
1536
bdb7bf8a
YZ
15372013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1538
0ba6aff3 1539 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 1540
e6631d38
VM
15412013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1542
1543 Revert:
1544 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1545 * lra-constraints.c (need_for_split_p): Check call used hard regs
1546 living through calls.
1547
1548 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1549 call used regs for call insn.
1550
53c1275b
JJ
15512013-06-28 Jakub Jelinek <jakub@redhat.com>
1552
1553 PR target/57736
0ba6aff3
UB
1554 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1555 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 1556
1141ed3f
BI
15572013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1558
1559 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 1560
e32e4c4a
VM
15612013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1562
1563 * lra-constraints.c (need_for_split_p): Check call used hard regs
1564 living through calls.
1565
f161bfd3
MM
15662013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1567
1568 PR target/57744
1569 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1570 to tie with any other modes. Eliminate Altivec vector mode tests,
1571 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1572 code, to return 0 if testing MODE2 for a condition, if we've
1573 already tested MODE1 for the same condition.
1574
7eda14e1
MS
15752013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1576
1577 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1578 layout.
1579
c822f852
MS
15802013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1581
1582 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1583 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1584
da4f13a4
MS
15852013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1586
0ba6aff3
UB
1587 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1588 Define.
da4f13a4
MS
1589 (aarch64_symbolic_constant_p): Remove.
1590 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1591 static. Fix line length and white space.
1592 (aarch64_symbolic_constant_p): Remove.
1593 * config/aarch64/predicates.md (aarch64_valid_symref):
1594 Use aarch64_classify_symbol_expression.
1595
956a95a5
KT
15962013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1597
1598 * config/arm/constraints.md (Ts): New constraint.
1599 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1600 16-bit encodings.
1601 (compare_scc): Use "Ts" constraint for operand 0.
1602 (ior_scc_scc): Likewise.
1603 (and_scc_scc): Likewise.
1604 (and_scc_scc_nodom): Likewise.
1605 (ior_scc_scc_cmp): Likewise for operand 7.
1606 (and_scc_scc_cmp): Likewise.
1607 * config/arm/thumb2.md (thumb2_movsi_insn):
1608 Add alternatives for 16-bit encodings.
1609 (thumb2_movhi_insn): Likewise.
1610 (thumb2_movsicc_insn): Likewise.
1611 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1612 (thumb2_negscc): Use "Ts" constraint.
1613 Move mvn instruction outside cond_exec block.
1614 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1615 for 16-bit encodings.
1616
31dfce10
KT
16172013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1618
1619 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1620 encoding.
1621 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1622 (mulsi3subsi): Likewise.
1623 (mulsidi3adddi): Likewise.
1624 (mulsidi3_v6): Likewise.
1625 (umulsidi3_v6): Likewise.
1626 (umulsidi3adddi_v6): Likewise.
1627 (smulsi3_highpart_v6): Likewise.
1628 (umulsi3_highpart_v6): Likewise.
1629 (mulhisi3tb): Likewise.
1630 (mulhisi3bt): Likewise.
1631 (mulhisi3tt): Likewise.
1632 (maddhisi4): Likewise.
1633 (maddhisi4tb): Likewise.
1634 (maddhisi4tt): Likewise.
1635 (maddhidi4): Likewise.
1636 (maddhidi4tb): Likewise.
1637 (maddhidi4tt): Likewise.
1638 (zeroextractsi_compare0_scratch): Likewise.
1639 (insv_zero): Likewise.
1640 (insv_t2): Likewise.
1641 (anddi_notzesidi_di): Likewise.
1642 (anddi_notsesidi_di): Likewise.
1643 (andsi_notsi_si): Likewise.
1644 (iordi_zesidi_di): Likewise.
1645 (xordi_zesidi_di): Likewise.
1646 (andsi_iorsi3_notsi): Likewise.
1647 (smax_0): Likewise.
1648 (smax_m1): Likewise.
1649 (smin_0): Likewise.
1650 (not_shiftsi): Likewise.
1651 (unaligned_loadsi): Likewise.
1652 (unaligned_loadhis): Likewise.
1653 (unaligned_loadhiu): Likewise.
1654 (unaligned_storesi): Likewise.
1655 (unaligned_storehi): Likewise.
1656 (extv_reg): Likewise.
1657 (extzv_t2): Likewise.
1658 (divsi3): Likewise.
1659 (udivsi3): Likewise.
1660 (arm_zero_extendhisi2addsi): Likewise.
1661 (arm_zero_extendqisi2addsi): Likewise.
1662 (compareqi_eq0): Likewise.
1663 (arm_extendhisi2_v6): Likewise.
1664 (arm_extendqisi2addsi): Likewise.
1665 (arm_movt): Likewise.
1666 (thumb2_ldrd): Likewise.
1667 (thumb2_ldrd_base): Likewise.
1668 (thumb2_ldrd_base_neg): Likewise.
1669 (thumb2_strd): Likewise.
1670 (thumb2_strd_base): Likewise.
1671 (thumb2_strd_base_neg): Likewise.
1672 (arm_negsi2): Add alternative for 16-bit encoding.
1673 (arm_one_cmplsi2): Likewise.
1674
1572e697
KT
16752013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1676
1677 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1678 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1679 (movdfcc): Likewise.
1680 * config/arm/vfp.md (*thumb2_movsf_vfp):
1681 Disable predication for arm_restrict_it.
1682 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1683 (*thumb2_movdfcc_vfp): Likewise.
1684 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1685 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1686 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1687 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1688 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1689 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1690 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1691 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1692 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1693 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1694 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1695 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1696 Disable predication for arm_restrict_it.
1697
ebf8f0ea
KY
16982013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1699
1700 * config/i386/bmiintrin.h (_bextr_u32): New.
1701 (_bextr_u64): Ditto.
1702
a290fcda
RS
17032013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1704
1705 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1706 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1707 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1708 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1709 * config/mips/n32-elf.h: ...this new file.
1710
ea169996
MG
17112013-06-27 Marc Glisse <marc.glisse@inria.fr>
1712
1713 PR target/57224
1714 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1715 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1716
8e932114
CM
17172013-06-27 Catherine Moore <clm@codesourcery.com>
1718
1719 * config/mips/mips-tables.opt: Regenerate.
1720 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 1721 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 1722 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 1723
2444244e
JJ
17242013-06-27 Jakub Jelinek <jakub@redhat.com>
1725
cd06d2a2
JJ
1726 PR target/57623
1727 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1728 constraints of operand 1 and 2.
1729
2444244e
JJ
1730 PR target/57623
1731 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1732 to match RTL canonicalization. Swap predicates and
1733 constraints of operand 1 and 2.
1734
2f259720
VM
17352013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1736
0ba6aff3
UB
1737 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1738 Process OP_INOUT regs for splitting too.
2f259720 1739
fef4d2b3
JJ
17402013-06-27 Jakub Jelinek <jakub@redhat.com>
1741
1742 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1743 decl before the loop, initialize to NULL.
1744 (vectorizable_load): Initialize ptr_incr to NULL.
1745
79ee9826
MJ
17462013-06-27 Martin Jambor <mjambor@suse.cz>
1747
1748 PR lto/57208
1749 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1750 * ipa-ref.c (ipa_maybe_record_reference): New function.
1751 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1752 * ipa-cp.c (create_specialized_node): Record potential references from
1753 aggvals.
1754 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1755
e18b4a81
YZ
17562013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1757
1758 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1759 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1760 'mode' to force_reg.
1761 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1762 (aarch64_expand_mov_immediate): Likewise.
1763
9c023bf0
YZ
17642013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1765
1766 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1767 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1768
5a3fe9b6
AK
17692013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1770
1771 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1772 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1773 (struct machine_function): Add tbegin_p.
1774 (s390_canonicalize_comparison): Fold CC mode compares to
1775 conditional jump if possible.
1776 (s390_emit_jump): Return the emitted jump.
1777 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1778 Handle CCRAWmode compares.
1779 (s390_option_override): Default to -mhtm if available.
1780 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1781 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1782 FPRs instead of df_regs_ever_live_p.
1783 (s390_optimize_nonescaping_tx): New function.
1784 (s390_init_frame_layout): Extend clobbered_regs array to cover
1785 FPRs as well.
1786 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1787 (s390_expand_tbegin): New function.
1788 (enum s390_builtin): New enum definition.
1789 (code_for_builtin): New array definition.
1790 (s390_init_builtins): New function.
1791 (s390_expand_builtin): New function.
1792 (TARGET_INIT_BUILTINS): Define.
1793 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 1794 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
1795 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1796 (s390_alc_comparison): Likewise.
1797 * config/s390/s390-modes.def: Add CCRAWmode.
1798 * config/s390/s390.h (processor_flags): Add PF_TX.
1799 (TARGET_CPU_HTM): Define macro.
1800 (TARGET_HTM): Define macro.
1801 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1802 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1803 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1804 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 1805 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
1806 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1807 ("*cc_to_int"): Move up.
1808 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1809 constants other than 0.
1810 ("*ccraw_to_int"): New insn and splitter definition.
1811 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1812 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1813 ("tx_assist"): New expander.
1814 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1815 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1816 * config/s390/s390.opt: Add -mhtm option.
1817 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1818 * config/s390/htmxlintrin.h: New file.
1819 * config/s390/htmintrin.h: New file.
1820 * config/s390/s390intrin.h: New file.
1821 * doc/extend.texi: Document htm builtins.
1822 * config.gcc: Add the new header files to extra_headers.
1823
9e216629
TS
18242013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1825
1826 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 1827 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 1828
fd8c65e7
MM
18292013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1830 Pat Haugen <pthaugen@us.ibm.com>
1831 Peter Bergner <bergner@vnet.ibm.com>
1832
1833 * config/rs6000/power8.md: New.
1834 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1835 setting for power8 entry.
1836 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1837 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1838 test for Power4/Power5 only.
1839 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1840 support.
1841 (force_new_group): Adjust comment.
1842 * config/rs6000/rs6000.md: Include power8.md.
1843
b24a2ce5
GY
18442013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1845
1846 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1847 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1848 declaration.
1849 (tune_params): Update comment.
1850 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1851 (arm_max_conditional_execute): New function.
1852 (thumb2_final_prescan_insn): Use max_insn_skipped and
1853 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1854
f6fdeb62
JJ
18552013-06-25 Jakub Jelinek <jakub@redhat.com>
1856
1857 PR tree-optimization/57705
1858 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1859 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 1860 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
1861 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1862
c13bc3d9
MJ
18632013-06-25 Martin Jambor <mjambor@suse.cz>
1864
1865 PR middle-end/57670
1866 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1867 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1868 calls in the dump.
1869 (ipa_note_param_call): Initialize member_ptr flag.
1870 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1871 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1872 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1873 (ipa_read_indirect_edge_info): Likewise.
1874
8a845901
RB
18752013-06-25 Richard Biener <rguenther@suse.de>
1876
1877 PR middle-end/56977
1878 * passes.c (init_optimization_passes): Move pass_fold_builtins
1879 and pass_dce earlier with -Og.
1880
33be0bec
EB
18812013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1882
1883 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1884 <BIT_FIELD_REF>: Remove trailing TAB.
1885 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1886 remove blank line.
1887
5fe8e757
MJ
18882013-06-24 Martin Jambor <mjambor@suse.cz>
1889
1890 PR tree-optimization/57358
1891 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1892 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1893 (ipa_analyze_params_uses): Generate pessimistic info when true.
1894
44a60244
MJ
18952013-06-24 Martin Jambor <mjambor@suse.cz>
1896
1897 PR tree-optimization/57539
1898 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1899 global.inlined_to of the new node to it. All callers changed.
1900 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1901 inlining_into, pass it to cgraph_clone_node.
1902 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1903 ipa_free_edge_args_substructures.
1904 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1905 rdesc linked list. Do not assert rdesc edges have inlined caller.
1906 Assert we have found an rdesc in the rdesc list.
1907
7c5848b8
RB
19082013-06-24 Richard Biener <rguenther@suse.de>
1909
0ba6aff3 1910 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
1911 (pointer_set_lookup): Declare.
1912 (class pointer_map): New template class implementing a
1913 generic pointer to T map.
1914 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1915 pointer_map<T>::contains, pointer_map<T>::insert,
1916 pointer_map<T>::traverse): New functions.
1917 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1918 (pointer_set_lookup): New function.
1919 (pointer_set_contains): Use pointer_set_lookup.
1920 (pointer_set_insert): Likewise.
1921 (insert_aux): Remove.
1922 (struct pointer_map_t): Embed a pointer_set_t.
1923 (pointer_map_create): Adjust.
1924 (pointer_map_destroy): Likewise.
1925 (pointer_map_contains): Likewise.
1926 (pointer_map_insert): Likewise.
1927 (pointer_map_traverse): Likewise.
1928 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1929 pointer_map<unsigned> instead of a pointer_map_t.
1930 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1931 (streamer_tree_cache_lookup): Likewise.
1932 (streamer_tree_cache_create): Likewise.
1933 (streamer_tree_cache_delete): Likewise.
1934 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1935 pointer_map<unsigned> instead of a pointer_map_t.
1936 (lto_init_tree_ref_encoder): Adjust.
1937 (lto_destroy_tree_ref_encoder): Likewise.
1938 * lto-section-out.c (lto_output_decl_index): Likewise.
1939 (lto_record_function_out_decl_state): Likewise.
1940 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1941
3dbc97a9
RB
19422013-06-24 Richard Biener <rguenther@suse.de>
1943
1944 PR tree-optimization/57488
1945 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1946
8345965a
AM
19472013-06-24 Alan Modra <amodra@gmail.com>
1948
1949 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1950 (gen_easy_altivec_constant): Likewise.
1951 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1952 easy_vector_constant_msb): Likewise.
1953
b7df379f
JJ
19542013-06-23 Jakub Jelinek <jakub@redhat.com>
1955
1956 PR target/57688
1957 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1958 add missing return true.
1959
0bcf9a09
OE
19602013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
1961
1962 PR target/52483
1963 * config/sh/predicates.md (general_extend_operand): Invoke
1964 general_movsrc_operand for memory operands.
1965 (general_movsrc_operand): Allow reg+reg addressing, do not use
1966 general_operand for memory operands.
1967
97db2bf7
ST
19682013-06-23 Sriraman Tallam <tmsriram@google.com>
1969
1970 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
1971 when current target options does not apply.
1972 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1973 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
1974 * config/i386/bmiintrin.h: Pass appropriate target
1975 attributes to header.
97db2bf7
ST
1976 * config/i386/mmintrin.h: Ditto.
1977 * config/i386/nmmintrin.h: Ditto.
1978 * config/i386/avx2intrin.h: Ditto.
1979 * config/i386/fxsrintrin.h: Ditto.
1980 * config/i386/tbmintrin.h: Ditto.
1981 * config/i386/xsaveintrin.h: Ditto.
1982 * config/i386/f16cintrin.h: Ditto.
1983 * config/i386/xtestintrin.h: Ditto.
1984 * config/i386/xsaveoptintrin.h: Ditto.
1985 * config/i386/bmi2intrin.h: Ditto.
1986 * config/i386/lzcntintrin.h: Ditto.
1987 * config/i386/smmintrin.h: Ditto.
1988 * config/i386/wmmintrin.h: Ditto.
1989 * config/i386/x86intrin.h: Remove all header include guards.
1990 * config/i386/prfchwintrin.h: Ditto.
1991 * config/i386/pmmintrin.h: Ditto.
1992 * config/i386/tmmintrin.h: Ditto.
1993 * config/i386/xmmintrin.h: Ditto.
1994 * config/i386/popcntintrin.h: Ditto.
1995 * config/i386/rdseedintrin.h: Ditto.
1996 * config/i386/ammintrin.h: Ditto.
1997 * config/i386/emmintrin.h: Ditto.
1998 * config/i386/immintrin.h: Remove all header include guards.
1999 * config/i386/fma4intrin.h: Ditto.
2000 * config/i386/lwpintrin.h: Ditto.
2001 * config/i386/xopintrin.h: Ditto.
2002 * config/i386/ia32intrin.h: Ditto.
2003 * config/i386/avxintrin.h: Ditto.
2004 * config/i386/rtmintrin.h: Ditto.
2005 * config/i386/fmaintrin.h: Ditto.
2006 * config/i386/mm3dnow.h: Ditto.
2007
495e6879
ST
20082013-06-22 Sriraman Tallam <tmsriram@google.com>
2009
2010 * common/config/i386/i386-common.c: Handle LZCNT.
2011
11e8f687
AK
20122013-06-22 Andi Kleen <ak@linux.intel.com>
2013
2014 * doc/extend.texi: Use __atomic_store_n instead of
2015 __atomic_store in HLE example.
2016
664dd721
OE
20172013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2018
2019 * config/sh/sh.c: Remove <cstdlib> workaround.
2020
927f908b
AK
20212013-06-21 Andi Kleen <ak@linux.intel.com>
2022
0ba6aff3 2023 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 2024
cca410b6
AK
20252013-06-21 Andi Kleen <ak@linux.intel.com>
2026
2027 * doc/extend.texi: Document that __atomic_clear and
2028 __atomic_test_and_set should only be used with bool.
2029
d84db1ed
JH
20302013-06-20 Jan Hubicka <jh@suse.cz>
2031
2032 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2033 types_same_for_odr.
2034 * tree.c (decls_same_for_odr): New function.
2035 (same_for_edr): New function.
2036 (types_same_for_odr): New function.
2037 (get_binfo_at_offset): Use it.
2038 * tree.h (types_same_for_odr): Declare.
2039
664dd721 20402013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
2041 Jason Merrill <jason@redhat.com>
2042
2043 * system.h: Include <cstdlib> as well as <stdlib.h>.
2044
49b4ff63
UB
20452013-06-20 Uros Bizjak <ubizjak@gmail.com>
2046
2047 PR target/57655
2048 * config/i386/i386.c (construct_container): Report error if
2049 long double is used with disabled x87 float returns.
2050
7a89ad00
JH
20512013-06-20 Jan Hubicka <jh@suse.cz>
2052
2053 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2054
bd280792
JR
20552013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2056
2057 PR rtl-optimization/57425
2058 PR rtl-optimization/57569
2059 * alias.c (write_dependence_p): Remove parameters mem_mode and
2060 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2061 Changed all callers.
2062 (canon_anti_dependence): Get comments and semantics in sync.
2063 Add parameter mem_canonicalized. Changed all callers.
2064 * rtl.h (canon_anti_dependence): Update prototype.
2065
d16e9a99
RB
20662013-06-20 Richard Biener <rguenther@suse.de>
2067
2068 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2069 byte case, inline streamer_read_uchar and defer section
2070 overrun check.
2071
c3a9b91b
RB
20722013-06-20 Richard Biener <rguenther@suse.de>
2073
2074 PR tree-optimization/57584
2075 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2076 SSA names into the expanded expression that take part in
2077 abnormal coalescing.
2078
371e77e3 20792013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
2080
2081 * gcov.c (print_usage): Handle new option.
2082 (process_args): Ditto.
2083 (get_gcov_intermediate_filename): New function.
2084 (output_intermediate_file): New function.
2085 (output_gcov_file): New function
2086 (generate_results): Handle new option.
2087 (release_function): Relase demangled name.
2088 (read_graph_file): Handle demangled name.
2089 (output_lines): Ditto.
2090 * doc/gcov.texi: Document gcov intermediate format.
2091
11f5b71a
VM
20922013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2093
2094 PR bootstrap/57604
2095 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2096 (lra_emit_add): Use the functions. Add comment about Y as an
2097 address segment.
2098
e1f9340b
DE
20992013-06-19 David Edelsohn <dje.gcc@gmail.com>
2100
2101 PR driver/57652
2102 * collect2.c (collect_atexit): New.
2103 (collect_exit): Delete.
2104 (main): Register collect_atexit with atexit.
2105 (collect_wait): Change collect_exit to exit.
2106 (do_wait): Same.
2107 * collect2.h (collect_exit): Delete.
2108 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2109
e3f9e0ac
WM
21102013-06-19 Wei Mi <wmi@google.com>
2111
2112 PR rtl-optimization/57518
2113 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2114 if regno is used in paradoxical subreg.
2115 (update_equiv_regs): Check pdx_subregs[regno] before
2116 set a reg to be equivalent with a mem.
2117
a09f1a76
MK
21182013-06-19 Matthias Klose <doko@ubuntu.com>
2119
2120 PR driver/57651
2121 * file-find.h (find_a_file): Add a mode parameter.
2122 * file-find.c (find_a_file): Likewise.
2123 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2124 with X_OK for the executables.
2125 * collect2.c (main): Call find_a_file with X_OK.
2126
7d18b0ad
SE
21272013-06-19 Steve Ellcey <sellcey@mips.com>
2128
2129 PR target/56942
2130 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2131 Use NEXT_INSN instead of next_real_insn.
2132
6a6dac52
JH
21332013-06-19 Jan Hubicka <jh@suse.cz>
2134
2135 * cgraph.h (const_value_known_p): Replace by ...
2136 (ctor_for_folding): .. this one.
2137 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2138 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2139 * expr.c (expand_expr_real_1): Likewise.
2140 (string_constant): Likewise.
2141 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2142 * ipa.c (process_references): Likewise.
2143 (symtab_remove_unreachable_nodes): Likewise.
2144 * ipa-inline-analysis.c (param_change_prob): Likewise.
2145 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2146 (get_base_constructor): Likwise.
2147 * varpool.c (varpool_remove_node): Likewise.
2148 (varpool_remove_initializer): LIkewise.
2149 (dump_varpool_node): LIkwise.
2150 (const_value_known_p): Rewrite to ...
2151 (ctor_for_folding): ... this one.
2152
216c12ab
JJ
21532013-06-19 Jakub Jelinek <jakub@redhat.com>
2154
2155 PR driver/57651
2156 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2157 PERSONALITY in $PATH derived prefixes.
2158
d53e2f99
JL
21592013-06-19 Jeff Law <law@redhat.com>
2160
ecdbf306
JL
2161 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2162 in comment.
2163
d53e2f99
JL
2164 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2165 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2166 booleans.
2167
89e7fc04
SN
21682013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2169
2170 * config/arm/vfp.md: Move VFP instruction classification documentation
2171 to ...
2172 * config/arm/arm.md: ... here. Update instruction classification
2173 documentation.
2174
5e7f6aaa
RE
21752013-06-19 Richard Earnshaw <rearnsha@arm.com>
2176
2177 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2178 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2179 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2180
5fdc1e5d
SB
21812013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2182
2183 PR target/57609
2184 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2185 with NEXT_INSN. Use tablejump_p to check for jump table data
2186 insns.
2187
e952afba
PC
21882013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2189
2190 PR c++/56544
2191 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2192 that now in C++ the value is correct per the C++ standards.
2193
3fd0303a
RB
21942013-06-19 Richard Biener <rguenther@suse.de>
2195
2196 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2197 for global context.
2198
b04e4b08
AK
21992013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2200
2201 Revert:
2202 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2203
2204 PR target/57609
2205 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2206 with next_active_insn.
2207
bef8491a
ST
22082013-06-18 Sriraman Tallam <tmsriram@google.com>
2209
2210 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2211 functions are inlined during failures to flag an error.
2212 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2213 in early inline pass.
22fc7d3d 2214
c21b257d
L
22152013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2216
2217 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2218 in comments.
2219
33255ae3
JB
22202013-06-18 Julian Brown <julian@codesourcery.com>
2221
2222 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2223 Permit virtual register pre-reload if !strict.
2224 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2225 change.
2226 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2227 prototype.
2228 * config/arm/neon.md (movmisalign<mode>): Use
2229 neon_perm_struct_or_reg_operand instead of
2230 neon_struct_or_register_operand.
2231 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2232 neon_permissive_struct_operand instead of neon_struct_operand.
2233 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2234 neon_vector_mem_operand.
2235 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2236 neon_vector_mem_operand.
2237 (neon_permissive_struct_operand): New.
2238 (neon_struct_or_register_operand): Rename to...
2239 (neon_perm_struct_or_reg_operand): This. Adjust call to
2240 neon_vector_mem_operand.
2241
d579fcda
RB
22422013-06-18 Richard Biener <rguenther@suse.de>
2243
2244 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2245 * lto-streamer.h: Include pointer-set.h.
2246 (struct lto_decl_slot): Remove.
2247 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2248 Remove next_index entry.
2249 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2250 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2251 (lto_init_tree_ref_encoder): Adjust.
2252 (lto_destroy_tree_ref_encoder): Likewise.
2253 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2254 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2255 (lto_output_decl_index): Adjust.
2256 (lto_new_out_decl_state): Likewise.
2257 (lto_record_function_out_decl_state): Likewise.
2258 * lto-streamer-out.c (copy_function): Likewise.
2259
31ee20ba
RB
22602013-06-18 Richard Biener <rguenther@suse.de>
2261
2262 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2263 * cgraphunit.c: Include cfgloop.h.
2264 (init_lowered_empty_function): Initialize the loop tree.
2265 (assemble_thunk): Insert new BBs into loops.
2266
ac0511f2
RB
22672013-06-18 Richard Biener <rguenther@suse.de>
2268
2269 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2270 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2271 the map from cache entry to cache index optional.
2272 (streamer_tree_cache_replace_tree): Adjust accordingly.
2273 (streamer_tree_cache_append): Likewise.
2274 (streamer_tree_cache_delete): Likewise.
2275 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2276 streamer cache map from cache entry to cache index.
2277 * lto-streamer-out.c (create_output_block): Adjust.
2278
09485a08
SN
22792013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2280
22fc7d3d
UB
2281 * config/arm/arm.md (attribute "insn"): Move multiplication and
2282 division attributes to...
09485a08
SN
2283 (attribute "type"): ... here. Remove mult.
2284 (attribute "mul32"): New attribute.
2285 (attribute "mul64"): Add umaal.
2286 (*arm_mulsi3): Update attributes.
2287 (*arm_mulsi3_v6): Likewise.
2288 (*thumb_mulsi3): Likewise.
2289 (*thumb_mulsi3_v6): Likewise.
2290 (*mulsi3_compare0): Likewise.
2291 (*mulsi3_compare0_v6): Likewise.
2292 (*mulsi_compare0_scratch): Likewise.
2293 (*mulsi_compare0_scratch_v6): Likewise.
2294 (*mulsi3addsi): Likewise.
2295 (*mulsi3addsi_v6): Likewise.
2296 (*mulsi3addsi_compare0): Likewise.
2297 (*mulsi3addsi_compare0_v6): Likewise.
2298 (*mulsi3addsi_compare0_scratch): Likewise.
2299 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2300 (*mulsi3subsi): Likewise.
2301 (*mulsidi3adddi): Likewise.
2302 (*mulsi3addsi_v6): Likewise.
2303 (*mulsidi3adddi_v6): Likewise.
2304 (*mulsidi3_nov6): Likewise.
2305 (*mulsidi3_v6): Likewise.
2306 (*umulsidi3_nov6): Likewise.
2307 (*umulsidi3_v6): Likewise.
2308 (*umulsidi3adddi): Likewise.
2309 (*umulsidi3adddi_v6): Likewise.
2310 (*smulsi3_highpart_nov6): Likewise.
2311 (*smulsi3_highpart_v6): Likewise.
2312 (*umulsi3_highpart_nov6): Likewise.
2313 (*umulsi3_highpart_v6): Likewise.
2314 (mulhisi3): Likewise.
2315 (*mulhisi3tb): Likewise.
2316 (*mulhisi3bt): Likewise.
2317 (*mulhisi3tt): Likewise.
2318 (maddhisi4): Likewise.
2319 (*maddhisi4tb): Likewise.
2320 (*maddhisi4tt): Likewise.
2321 (maddhidi4): Likewise.
2322 (*maddhidi4tb): Likewise.
2323 (*maddhidi4tt): Likewise.
2324 (divsi3): Likewise.
2325 (udivsi3): Likewise.
2326 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2327 (thumb2_mulsi_short_compare0): Likewise.
2328 (thumb2_mulsi_short_compare0_scratch): Likewise.
2329 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2330 (1020mult2): Likewise.
2331 (1020mult3): Likewise.
2332 (1020mult4): Likewise.
2333 (1020mult5): Likewise.
2334 (1020mult6): Likewise.
22fc7d3d
UB
2335 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2336 change.
09485a08
SN
2337 (cortex_a15_mult64): Likewise.
2338 (cortex_a15_sdiv): Likewise.
2339 (cortex_a15_udiv): Likewise.
2340 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2341 (mult2): Likewise.
2342 (mult3): Likewise.
2343 (mult4): Likewise.
2344 (mult5): Likewise.
2345 (mult6): Likewise.
2346 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2347 (pj4_ir_div): Likewise.
2348 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2349 (11_mult2): Likewise.
2350 (11_mult3): Likewise.
2351 (11_mult4): Likewise.
2352 (11_mult5): Likewise.
2353 (11_mult6): Likewise.
2354 (11_mult7): Likewise.
2355 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2356 (cortex_a8_mla): Likewise.
2357 (cortex_a8_mull): Likewise.
2358 (cortex_a8_smulwy): Likewise.
2359 (cortex_a8_smlald): Likewise.
2360 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2361 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2362 (cortex_r4_mul_3): Likewise.
2363 (cortex_r4_mla_4): Likewise.
2364 (cortex_r4_mla_3): Likewise.
2365 (cortex_r4_smlald): Likewise.
2366 (cortex_r4_mull): Likewise.
2367 (cortex_r4_sdiv): Likewise.
2368 (cortex_r4_udiv): Likewise.
2369 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2370 (cortex_a7_idiv): Likewise.
2371 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2372 (9_mult2): Likewise.
2373 (9_mult3): Likewise.
2374 (9_mult4): Likewise.
2375 (9_mult5): Likewise.
2376 (9_mult6): Likewise.
2377 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2378 (cortex_a53_sdiv): Likewise.
2379 (cortex_a53_udiv): Likewise.
2380 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2381 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2382 (mp626_mult2): Likewise.
2383 (mp626_mult3): Likewise.
2384 (mp626_mult4): Likewise.
2385 * config/arm/fa526.md (526_mult1): Update attribute change.
2386 (526_mult2): Likewise.
2387 * config/arm/arm-generic.md (mult): Update attribute change.
2388 (mult_ldsched_strongarm): Likewise.
2389 (mult_ldsched): Likewise.
2390 (multi_cycle): Likewise.
2391 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2392 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2393 (606te_mult2): Likewise.
2394 (606te_mult3): Likewise.
2395 (606te_mult4): Likewise.
2396 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2397 (cortex_a9_mac16): Likewise.
2398 (cortex_a9_multiply): Likewise.
2399 (cortex_a9_mac): Likewise.
2400 (cortex_a9_multiply_long): Likewise.
2401 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2402 (626te_mult2): Likewise.
2403 (626te_mult3): Likewise.
2404 (626te_mult4): Likewise.
2405
8951f345
RB
24062013-06-18 Richard Biener <rguenther@suse.de>
2407
2408 PR lto/57334
2409 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2410
d8101d05
AK
24112013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2412
2413 PR target/57609
2414 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2415 with next_active_insn.
2416
69eff9da
AM
24172013-06-18 Alan Modra <amodra@gmail.com>
2418
2419 * config/rs6000/rs6000.h (enum data_align): New.
2420 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2421 (DATA_ABI_ALIGNMENT): Define.
2422 (CONSTANT_ALIGNMENT): Correct comment.
2423 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2424 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2425
8ed00d76
DM
24262013-06-17 David Malcolm <dmalcolm@redhat.com>
2427
2428 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2429 ATTRIBUTE_UNUSED marking.
2430
3d33d06b
SN
24312013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2432
2433 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2434 alternative and update.
2435 (aarch64_dup_lanedi): Delete.
2436 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2437 * config/aarch64/aarch64-simd-builtins.def: Update.
2438
ee03e71d
RB
24392013-06-17 Richard Biener <rguenther@suse.de>
2440
2441 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2442 (lto_input_scc): Declare.
2443 (lto_input_tree_1): Likewise.
2444 (struct lto_stats_d): Add num_tree_bodies_output and
2445 num_pickle_refs_output.
2446 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2447 (lto_read_tree_1): Split out from ...
2448 (lto_read_tree): ... this.
2449 (lto_input_scc): New function.
2450 (lto_input_tree_1): Split out from ...
2451 (lto_input_tree): ... this. Handle LTO_tree_scc.
2452 (lto_data_in_create): Create the streamer cache without hashes.
2453 * lto-streamer-out.c (create_output_block): Create the streamer
2454 cache with hashes when not doing WPA.
2455 (lto_write_tree_1): Split out from ...
2456 (lto_write_tree): ... this.
2457 (get_symbol_initial_value): New function.
2458 (lto_output_tree_1): Split out from ...
2459 (lto_output_tree): ... this. Write trees as series of SCCs
2460 using a DFS walk via DFS_write_tree.
2461 (struct sccs, struct scc_entry): New types.
2462 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2463 (DFS_write_tree_body): New function.
2464 (DFS_write_tree): Likewise.
2465 (hash_tree): Likewise.
2466 (scc_entry_compare): Likewise.
2467 (hash_scc): Likewise.
2468 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2469 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2470 TREE_CHAIN as regular reference.
2471 (streamer_read_integer_cst): Remove.
2472 (streamer_get_pickled_tree): Adjust.
2473 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2474 of DECL_EXTERNALs in BLOCK_VARS for now.
2475 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2476 reference.
2477 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2478 Add hash value argument and record that if hashes are recorded
2479 in the cache.
2480 (streamer_tree_cache_insert_1): Adjust.
2481 (streamer_tree_cache_insert): Likewise.
2482 (streamer_tree_cache_insert_at): Rename to ...
2483 (streamer_tree_cache_replace_tree): ... this and adjust.
2484 (streamer_tree_cache_append): Adjust.
2485 (record_common_node): Likewise.
2486 (streamer_tree_cache_create): Add argument whether to
2487 record hash values together with trees.
2488 (streamer_tree_cache_delete): Adjust.
2489 * tree-streamer.h (struct streamer_tree_cache_d): Add
2490 vector of hashes.
2491 (streamer_read_integer_cst): Remove.
2492 (streamer_tree_cache_insert): Adjust.
2493 (streamer_tree_cache_append): Likewise.
2494 (streamer_tree_cache_insert_at): Rename to ...
2495 (streamer_tree_cache_replace_tree): ... this and adjust.
2496 (streamer_tree_cache_create): Add argument whether to record hashes.
2497 (streamer_tree_cache_get): Rename to ...
2498 (streamer_tree_cache_get_tree): ... this.
2499 (streamer_tree_cache_get_hash): New function.
2500 * tree.c (cache_integer_cst): New function.
2501 * tree.h (cache_integer_cst): Declare.
2502 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2503 * lto-symtab.c (lto_varpool_replace_node): Only release
2504 DECL_INITIAL of non-prevailing decls.
2505 * varpool.c (varpool_remove_initializer): Do not release
2506 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2507
0de86a92
JU
25082013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2509
2510 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2511 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2512 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2513 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2514 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2515 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2516 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2517 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2518 instead of TARGET_64BIT.
2519 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2520 Require ISA_HAS_<D>DIV.
2521
74240413
RS
25222013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2523
2524 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2525 (mips*-*-linux*): Move default with_llsc setting to where other
2526 defaults are set.
2527 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2528 with_arch block.
2529 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2530 Likewise. Remove default with_tune setting. Move default float
2531 setting to its own block. Handle with_llsc in the same block as above.
2532
393f9fed
JR
25332013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2534
2535 PR rtl-optimization/57425
2536 PR rtl-optimization/57569
299a5f6a 2537 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
2538 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2539 Changed all callers.
2540 (canon_anti_dependence): New function.
2541 * cse.c (check_dependence): Use canon_anti_dependence.
2542 * cselib.c (cselib_invalidate_mem): Likewise.
2543 * rtl.h (canon_anti_dependence): Declare.
2544
b259d352
JU
25452013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2546
2547 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2548 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2549 ".set mips3" for 64-bit targets.
2550
4de09b85
DC
25512013-06-15 Dehao Chen <dehao@google.com>
2552
2553 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2554 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2555 (gimple_check_call_args): Likewise.
2556 * value-prof.c (check_ic_target): Likewise.
2557 * ipa-inline.c (early_inliner): Likewise.
2558 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2559 * cgraph.c (cgraph_create_edge_1): Likewise.
2560 (cgraph_make_edge_direct): Likewise.
2561
d1aa4a76
MM
25622013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2563
2564 PR target/57615
2565 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2566 rs6000_output_move_128bit to handle emitting quad memory
2567 operations. Set attribute length to 8 bytes.
2568
24244e4d
VP
25692013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2570
2571 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2572 New pattern.
2573 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2574 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2575 (aarch64_<su>mlsl<mode>): Likewise.
2576
f5273574
MS
25772013-06-14 Mike Stump <mikestump@comcast.net>
2578
2579 * Makefile.in (TARGET_H): Add insn-codes.h.
2580
ef7e7ab2
AM
25812013-06-14 Alan Modra <amodra@gmail.com>
2582
2583 PR middle-end/57134
2584 PR middle-end/57586
2585 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2586 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2587 bitfield expansion when EXPAND_MEMORY.
2588 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2589
135faab6
MM
25902013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2591
2592 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2593 test for clearing quad memory on 32-bit later.
2594
948a1fd9
MG
25952013-06-13 Marc Glisse <marc.glisse@inria.fr>
2596
2597 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2598 (fold_negate_expr): Likewise.
2599 (fold_real_zero_addition_p): Handle vectors.
2600 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2601
0597fb9c
AM
26022013-06-14 Alan Modra <amodra@gmail.com>
2603
2604 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2605
e5b962d0
JH
26062013-06-13 Jan Hubicka <jh@suse.cz>
2607
2608 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2609 Local comdats are not externally visible.
2610 * symtab.c (dump_symtab_base): Dump externally visible.
2611 (verify_symtab_base): Verify back links in the symtab hash.
2612
a8355e51
BC
26132013-06-13 Bin Cheng <bin.cheng@arm.com>
2614
2615 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2616 CONVERT_EXPR as equal nodes.
2617
8f7e6e33
BC
26182013-06-13 Bin Cheng <bin.cheng@arm.com>
2619
22fc7d3d 2620 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 2621
5d418483
MG
26222013-06-13 Marc Glisse <marc.glisse@inria.fr>
2623
2624 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2625 Generalize to complex and vector.
2626 * tree.c (build_all_ones_cst): New function.
2627 * tree.h (build_all_ones_cst): Declare it.
2628
50751417
AM
26292013-06-13 Alan Modra <amodra@gmail.com>
2630
2631 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2632 * config/rs6000/rs6000.md (signbittf2): New insn.
2633 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2634 (abstf2_internal, cmptf_internal2): Likewise.
2635 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2636
4b02c962
MM
26372013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2638 Pat Haugen <pthaugen@us.ibm.com>
2639 Peter Bergner <bergner@vnet.ibm.com>
2640
2641 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2642 power8 byte, half-word, and quad-word atomic instructions.
2643 (emit_store_conditional): Likewise.
2644 (rs6000_expand_atomic_compare_and_swap): Likewise.
2645 (rs6000_expand_atomic_op): Likewise.
2646
2647 * config/rs6000/sync.md (larx): Add new modes for power8.
2648 (stcx): Likewise.
2649 (AINT): New mode iterator to include TImode as well as normal
2650 integer modes on power8.
2651 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2652 that VSX registers are not considered. Use AINT mode iterator
2653 instead of INT1 to allow inclusion of quad word atomic operations
2654 on power8.
2655 (load_locked<mode>): Likewise.
2656 (store_conditional<mode>): Likewise.
2657 (atomic_compare_and_swap<mode>): Likewise.
2658 (atomic_exchange<mode>): Likewise.
2659 (atomic_nand<mode>): Likewise.
2660 (atomic_fetch_<fetchop_name><mode>): Likewise.
2661 (atomic_nand_fetch<mode>): Likewise.
2662 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2663 each type.
2664 (ATOMIC): On power8, add QImode, HImode modes.
2665 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2666 modes that promote to SImode.
2667 (load_lockedti): Convert TImode arguments to PTImode, so that we
2668 get a guaranteed even/odd register pair.
2669 (load_lockedpti): Likewise.
2670 (store_conditionalti): Likewise.
2671 (store_conditionalpti): Likewise.
2672
2673 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2674 atomic load/store instructions.
2675 (HSI): Likewise.
2676
710b6cc1
RS
26772013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2678
2679 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2680 loads.
2681 (insn_count): New attribute, with most cases extracted from...
2682 (length): ...here. Redefine most cases in terms of insn_count.
2683 (single_insn): Delete.
2684 (can_delay): Use insn_count to check for single instructions.
2685 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2686 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2687 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2688 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2689 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2690 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2691 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2692 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2693 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2694 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2695 rather than "length".
2696 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2697 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2698 Use "insn_count" rather than "length".
2699 * config/mips/mips-dsp.md
2700 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2701 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2702 length attributes.
2703
1951f101
MG
27042013-06-12 Marc Glisse <marc.glisse@inria.fr>
2705
2706 PR tree-optimization/57361
2707 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2708
8b033a8a
SN
27092013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2710
22fc7d3d
UB
2711 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2712 to split.
8b033a8a
SN
2713 (aarch64_simd_combine<mode>): New instruction expansion.
2714 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2715 function prototype.
2716 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2717 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2718
ca0f62a8
JH
27192013-06-12 Jan Hubicka <jh@suse.cz>
2720
2721 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2722 decl has when in streaming stage.
2723 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2724 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2725
cddd69eb
RS
27262013-06-12 Roland Stigge <stigge@antcom.de>
2727
2728 PR target/57578
2729 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2730
bfdeda2c
JJ
27312013-06-12 Jakub Jelinek <jakub@redhat.com>
2732
2733 PR tree-optimization/57537
2734 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2735 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2736
a4fa02d1
RB
27372013-06-12 Richard Biener <rguenther@suse.de>
2738
2739 * data-streamer.h (streamer_write_char_stream): CSE
2740 obs->current_pointer.
2741 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2742 streamer_write_char_stream manually and optimize the resulting loop.
2743 (streamer_write_hwi_stream): Likewise.
2744
bbf9ad07
JH
27452013-06-12 Jan Hubicka <jh@suse.cz>
2746
2747 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2748 * cgraph.h (varpool_create_empty_node): Declare.
2749 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2750 duplicated nodes.
2751 * symtab.c (symtab_unregister_node): Be lax about missin entries
2752 in node hash.
2753 (symtab_get_node): Update comment.
2754 * varpool.c (varpool_create_empty_node): Break out from ...
2755 (varpool_node_for_decl): ... here.
2756 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2757
a53f90ad
EB
27582013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2759
2760 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2761 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2762 part. Use straight-line flow at the end.
2763 <COMPONENT_REF>: Remove superfluous else.
2764 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2765
946f9306
JJ
27662013-06-12 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR target/56564
2769 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2770 target hook even for !TREE_PUBLIC decls. If no resolution info
2771 is available, return false for common and external decls.
2772
a7fca6f0
KP
27732013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2774
2775 * config/rl78/constraints.md (U): New constraint.
2776 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2777 valloc attribute.
2778
c7d8f446
MM
27792013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2780
2781 PR target/57589
2782 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2783 to allow returning address to AT_PLATFORM name.
2784
08346abd
JH
27852013-06-11 Jan Hubicka <jh@suse.cz>
2786
2787 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2788 * cgraph.h (symtab_node_base): Add weakref flag.
2789 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2790 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2791 (output_weakrefs): Use weakref flag.
2792 * fold-const.c (simple_operand_p): Handle WEAK.
2793 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2794 * ipa.c (varpool_externally_visible_p): Drop weakref.
2795 (function_and_variable_visibility): Update comment; fix weakref
2796 sanity checks; do not clear DECL_WEAK on them.
2797 * lto-cgraph.c (lto_output_node): update.
2798 (lto_output_varpool_node): Update.
2799 (input_overwrite_node): Update.
2800 (input_node): Update.
2801 (input_varpool_node): Update.
2802 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2803 (lto_symtab_merge_symbols): Add sanity check.
2804 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2805 * passes.c (rest_of_decl_compilation): Set static flag, too.
2806 * symtab.c (dump_symtab_base): Dump weakref.
2807 (verify_symtab_base): Sanity check weakrefs.
2808 (symtab_make_decl_local): Remove duplicated code.
2809 (symtab_alias_ultimate_target): Simplify.
2810 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 2811
d9af3652
DD
28122013-06-11 DJ Delorie <dj@redhat.com>
2813
2814 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2815 (rl78_unwind_word_mode): New.
2816
ffa66012
DM
28172013-06-11 David Malcolm <dmalcolm@redhat.com>
2818
2819 * final.c (debug_prefix_maps): Make static.
2820
783f2d35
DM
28212013-06-11 David Malcolm <dmalcolm@redhat.com>
2822
2823 * function.c (initial_trampoline): Remove stray copy.
2824
7af26def
SN
28252013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2826
2827 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2828
97756c0e
MJ
28292013-06-11 Martin Jambor <mjambor@suse.cz>
2830
2831 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2832 within bounds at the beginning of the function.
2833
2c7b8bf6
AM
28342013-06-11 Alan Modra <amodra@gmail.com>
2835
2836 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2837 reporting.
2838 (get_named_section): Don't NULL !DECL_P decl.
2839
77cea46e
IZ
28402013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2841
2842 * doc/invoke.texi (core-avx2): Document.
2843 (slm): Likewise.
2844 (atom): Updated with MOVBE.
2845
888f0920
RB
28462013-06-11 Richard Biener <rguenther@suse.de>
2847
22fc7d3d 2848 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 2849
6b438d58
AB
28502013-06-11 Anton Blanchard <anton@samba.org>
2851
2852 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2853 correct shift value in little-endian mode.
2854
3bc66938
JJ
28552013-06-11 Jakub Jelinek <jakub@redhat.com>
2856
2857 PR target/56564
2858 * varasm.c (get_variable_align): Move #endif to the right place.
2859
a5dc7f88
CC
28602013-06-10 Cary Coutant <ccoutant@google.com>
2861
2862 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2863 for hash so that hash table traversal order is deterministic.
2864
19be72ab
MM
28652013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2866 Pat Haugen <pthaugen@us.ibm.com>
2867 Peter Bergner <bergner@vnet.ibm.com>
2868
2869 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2870 of vectors in GPRS if they are direct moves or quad word load or
2871 store moves.
2872
2873 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2874 declaration.
2875 (direct_move_p): Likewise.
2876 (quad_load_store_p): Likewise.
2877
2878 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2879 classes into bins based on the physical register type.
2880 (reg_class_to_reg_type): Likewise.
2881 (IS_STD_REG_TYPE): Likewise.
2882 (IS_FP_VECT_REG_TYPE): Likewise.
2883 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2884 use direct move instructions.
2885 (reload_gpr_vsx): Likewise.
2886 (reload_vsx_gpr): Likewise.
2887 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2888 information that is a simplification of register classes. Also
2889 precalculate direct move reload helpers.
2890 (direct_move_p): New function to return true if the operation can
2891 be done as a direct move instruciton.
2892 (quad_load_store_p): New function to return true if the operation
2893 is a quad memory operation.
2894 (rs6000_legitimize_address): If quad memory, only allow register
2895 indirect for TImode addresses.
2896 (rs6000_legitimate_address_p): Likewise.
2897 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2898 (rs6000_reload_register_type): Likewise.
2899 (register_to_reg_type): Return register type.
2900 (rs6000_secondary_reload_simple_move): New helper function for
2901 secondary reload and secondary memory needed to identify anything
2902 that is a simple move, and does not need reloading.
2903 (rs6000_secondary_reload_direct_move): New helper function for
2904 secondary reload to identify cases that can be done with several
2905 instructions via the direct move instructions.
2906 (rs6000_secondary_reload_move): New helper function for secondary
2907 reload to identify moves between register types that can be done.
2908 (rs6000_secondary_reload): Add support for quad memory operations
2909 and for direct move.
2910 (rs6000_secondary_memory_needed): Likewise.
2911 (rs6000_debug_secondary_memory_needed): Change argument names.
2912 (rs6000_output_move_128bit): New function to return the move to
2913 use for 128-bit moves, including knowing about the various
2914 limitations of quad memory operations.
2915
2916 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2917 memory operations. call rs6000_output_move_128bit for the actual
2918 instruciton(s) to generate.
2919 (vsx_movti_64bit): Likewise.
2920
2921 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2922 (UNSPEC_P8V_MTVSRWZ): Likewise.
2923 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2924 (UNSPEC_P8V_MTVSRD): Likewise.
2925 (UNSPEC_P8V_XXPERMDI): Likewise.
2926 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2927 (UNSPEC_FUSION_GPR): Likewise.
2928 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 2929 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
2930 (f32_sv): Likewise.
2931 (f32_dm): Likewise.
2932 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2933 loads and direct move instructions.
2934 (zero_extendsidi2_lfiwzx): Likewise.
2935 (extendsidi2_lfiwax): Likewise.
2936 (extendsidi2_nocell): Likewise.
2937 (floatsi<mode>2_lfiwax): Likewise.
2938 (lfiwax): Likewise.
2939 (floatunssi<mode>2_lfiwzx): Likewise.
2940 (lfiwzx): Likewise.
2941 (fix_trunc<mode>_stfiwx): Likewise.
2942 (fixuns_trunc<mode>_stfiwx): Likewise.
2943 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2944 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2945 (parity<mode>2_cmpb): Set length/type attr.
2946 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2947 for 'mr.' to fast_compare.
2948 (bpermd_<mode>): Change type attr to popcnt.
2949 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2950 (p8_mtvsrwz_1): Likewise.
2951 (p8_mtvsrwz_2): Likewise.
2952 (reload_fpr_from_gpr<mode>): Likewise.
2953 (p8_mtvsrd_1): Likewise.
2954 (p8_mtvsrd_2): Likewise.
2955 (p8_xxpermdi_<mode>): Likewise.
2956 (reload_vsx_from_gpr<mode>): Likewise.
2957 (reload_vsx_from_gprsf): Likewise.
2958 (p8_mfvsrd_3_<mode>): LIkewise.
2959 (reload_gpr_from_vsx<mode>): Likewise.
2960 (reload_gpr_from_vsxsf): Likewise.
2961 (p8_mfvsrd_4_disf): Likewise.
2962 (multi-word GPR splits): Do not split direct moves or quad memory
2963 operations.
2964
16876bdc
DM
29652013-06-10 David Malcolm <dmalcolm@redhat.com>
2966
2967 * tree-into-ssa.c (interesting_blocks): Make static.
2968
df8a1d28
JJ
29692013-06-10 Jakub Jelinek <jakub@redhat.com>
2970
2971 PR target/56564
2972 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2973 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2974 Use DATA_ABI_ALIGNMENT for that case instead if defined.
2975 (get_variable_align): New function.
2976 (get_variable_section, emit_bss, emit_common,
2977 assemble_variable_contents, place_block_symbol): Use
2978 get_variable_align instead of DECL_ALIGN.
2979 (assemble_noswitch_variable): Add align argument, use it
2980 instead of DECL_ALIGN.
2981 (assemble_variable): Adjust caller. Use get_variable_align
2982 instead of DECL_ALIGN.
2983 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2984 caller.
2985 (DATA_ABI_ALIGNMENT): Define.
2986 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2987 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
2988 opt is false, only return the psABI mandated alignment increase.
2989 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2990 (DATA_ABI_ALIGNMENT): ... this.
2991 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2992 (DATA_ABI_ALIGNMENT): ... this.
2993 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2994 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2995 (DATA_ABI_ALIGNMENT): ... this.
2996 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2997 * doc/tm.texi: Regenerated.
2998
57b29ca6
UB
29992013-06-10 Uros Bizjak <ubizjak@gmail.com>
3000
3001 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3002 cmp_code to construct REG_EQUAL note.
3003
3e56ed50
JJ
30042013-06-09 Jakub Jelinek <jakub@redhat.com>
3005
3006 PR target/57568
3007 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3008 that operands[2] doesn't overlap with operands[0].
3009
74fe2a1d
DE
30102013-06-09 David Edelsohn <dje.gcc@gmail.com>
3011 Jan Hubicka <jh@suse.cz>
3012
3013 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3014 hack to mark symbols as used.
3015
ed52a84e
VM
30162013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3017
3018 PR rtl-optimization/57559
3019 * lra-constraints.c (process_alt_operands): Don't discourage
3020 memory with known offset for offsetable memory constraint.
3021 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3022
299316ed
EB
30232013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3024
3025 * varasm.c (struct oc_local_state): Reorder fields.
3026 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3027 and adjust accordingly.
3028 (output_constructor): Reorder initialization code and adjust call to
3029 output_constructor_bitfield.
3030
88ac60d3
JH
30312013-06-07 Jan Hubicka <jh@suse.cz>
3032
3033 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3034
4cdce1a8
DM
30352013-06-07 David Malcolm <dmalcolm@redhat.com>
3036
3037 * tree-object-size.c (unknown): Make const.
3038
b5e0425c
AK
30392013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3040
3041 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3042 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3043 for last alternative in the cpu_facility attribute.
3044
79678d04
KT
30452013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3046
3047 PR target/56315
3048 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3049 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3050 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3051 * config/arm/constraints.md (Dg): New constraint.
3052 * config/arm/neon.md (xordi3_neon): Remove.
3053 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3054 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3055
b31ddbdb
KT
30562013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3057
3058 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3059 Clean up alternatives.
3060
8f90b7d4
AM
30612013-06-07 Alan Modra <amodra@gmail.com>
3062
3063 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3064 va_list_gpr_size.
3065
961ce119
AM
30662013-06-07 Alan Modra <amodra@gmail.com>
3067
3068 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3069
33e49835
KT
30702013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3071
3072 * config/arm/constraints.md (Df): New constraint.
3073 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3074 Correct length attribute for last two alternatives.
3075
acd17ae6
AM
30762013-06-07 Alan Modra <amodra@gmail.com>
3077
3078 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3079 override user -mfp-in-toc.
3080 (offsettable_ok_by_alignment): Consider just the current access
3081 rather than the whole object, unless BLKmode. Handle
3082 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3083 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3084 for -mcmodel=medium.
3085 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3086 override user -mfp-in-toc or -msum-in-toc. Default to
3087 -mno-fp-in-toc for -mcmodel=medium.
3088
73310b0e
DD
30892013-06-06 DJ Delorie <dj@redhat.com>
3090
3091 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3092 TARGET_VALID_POINTER_MODE.
3093
0bd62dca
MM
30942013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3095 Pat Haugen <pthaugen@us.ibm.com>
3096 Peter Bergner <bergner@vnet.ibm.com>
3097
3098 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3099 Document new power8 builtins.
3100
3101 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3102 condition code register, to allow 128-bit logical operations to be
3103 done in the VSX or GPR registers.
3104 (nor<mode>3): Use the canonical form for nor.
3105 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3106 vclz*, and vpopcnt* vector instructions.
3107 (nand<mode>3): Likewise.
3108 (orc<mode>3): Likewise.
3109 (clz<mode>2): LIkewise.
3110 (popcount<mode>2): Likewise.
3111
3112 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3113 that only the GPRs are recognized.
3114
3115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3116 support for new power8 builtins.
3117
3118 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3119 builtin functions.
3120 (xscvdpspn): Likewise.
3121 (vclz): Likewise.
3122 (vclzb): Likewise.
3123 (vclzh): Likewise.
3124 (vclzw): Likewise.
3125 (vclzd): Likewise.
3126 (vpopcnt): Likewise.
3127 (vpopcntb): Likewise.
3128 (vpopcnth): Likewise.
3129 (vpopcntw): Likewise.
3130 (vpopcntd): Likewise.
3131 (vgbbd): Likewise.
3132 (vmrgew): Likewise.
3133 (vmrgow): Likewise.
3134 (eqv): Likewise.
3135 (eqv_v16qi3): Likewise.
3136 (eqv_v8hi3): Likewise.
3137 (eqv_v4si3): Likewise.
3138 (eqv_v2di3): Likewise.
3139 (eqv_v4sf3): Likewise.
3140 (eqv_v2df3): Likewise.
3141 (nand): Likewise.
3142 (nand_v16qi3): Likewise.
3143 (nand_v8hi3): Likewise.
3144 (nand_v4si3): Likewise.
3145 (nand_v2di3): Likewise.
3146 (nand_v4sf3): Likewise.
3147 (nand_v2df3): Likewise.
3148 (orc): Likewise.
3149 (orc_v16qi3): Likewise.
3150 (orc_v8hi3): Likewise.
3151 (orc_v4si3): Likewise.
3152 (orc_v2di3): Likewise.
3153 (orc_v4sf3): Likewise.
3154 (orc_v2df3): Likewise.
3155
3156 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3157 allow power8 quad mode in 64-bit.
3158 (rs6000_builtin_vectorized_function): Add support to vectorize
3159 ISA 2.07 count leading zeros, population count builtins.
3160 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3161 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3162 (builtin_function_type): Add vgbbd builtin function which takes an
3163 unsigned argument.
3164 (altivec_expand_vec_perm_const): Add support for new power8 merge
3165 instructions.
3166
3167 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3168 that does not include TImdoe for use with 32-bit.
3169 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3170 instructions.
3171 (UNSPEC_VSX_CVDPSPN): Likewise.
3172 (vsx_xscvdpspn): Likewise.
3173 (vsx_xscvspdpn): Likewise.
3174 (vsx_xscvdpspn_scalar): Likewise.
3175 (vsx_xscvspdpn_directmove): Likewise.
3176 (vsx_and<mode>3): Split logical operations into 32-bit and
3177 64-bit. Add support to do logical operations on TImode as well as
3178 VSX vector types. Allow logical operations to be done in either
3179 VSX registers or in general purpose registers in 64-bit mode. Add
3180 splitters if GPRs were used. For AND, add clobber of CCmode to
3181 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3182 encoding.
3183 (vsx_and<mode>3_32bit): Likewise.
3184 (vsx_and<mode>3_64bit): Likewise.
3185 (vsx_ior<mode>3): Likewise.
3186 (vsx_ior<mode>3_32bit): Likewise.
3187 (vsx_ior<mode>3_64bit): Likewise.
3188 (vsx_xor<mode>3): Likewise.
3189 (vsx_xor<mode>3_32bit): Likewise.
3190 (vsx_xor<mode>3_64bit): Likewise.
3191 (vsx_one_cmpl<mode>2): Likewise.
3192 (vsx_one_cmpl<mode>2_32bit): Likewise.
3193 (vsx_one_cmpl<mode>2_64bit): Likewise.
3194 (vsx_nor<mode>3): Likewise.
3195 (vsx_nor<mode>3_32bit): Likewise.
3196 (vsx_nor<mode>3_64bit): Likewise.
3197 (vsx_andc<mode>3): Likewise.
3198 (vsx_andc<mode>3_32bit): Likewise.
3199 (vsx_andc<mode>3_64bit): Likewise.
3200 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3201 and xxlorc instructions.
3202 (vsx_eqv<mode>3_64bit): Likewise.
3203 (vsx_nand<mode>3_32bit): Likewise.
3204 (vsx_nand<mode>3_64bit): Likewise.
3205 (vsx_orc<mode>3_32bit): Likewise.
3206 (vsx_orc<mode>3_64bit): Likewise.
3207
3208 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3209
3210 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3211 instruction.
3212 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3213 (p8_vmrgow): Likewise.
3214 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3215 GPRs to be split under VSX.
3216 (p8v_clz<mode>2): Add power8 count leading zero support.
3217 (p8v_popcount<mode>2): Add power8 population count support.
3218 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3219 support.
3220
3221 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3222 instruction.
3223
3224 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3225 builtin functions.
3226 (vec_nand): Likewise.
3227 (vec_vclz): Likewise.
3228 (vec_vclzb): Likewise.
3229 (vec_vclzd): Likewise.
3230 (vec_vclzh): Likewise.
3231 (vec_vclzw): Likewise.
3232 (vec_vgbbd): Likewise.
3233 (vec_vmrgew): Likewise.
3234 (vec_vmrgow): Likewise.
3235 (vec_vpopcnt): Likewise.
3236 (vec_vpopcntb): Likewise.
3237 (vec_vpopcntd): Likewise.
3238 (vec_vpopcnth): Likewise.
3239 (vec_vpopcntw): Likewise.
3240
37684c46
VM
32412013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3242
3243 PR rtl-optimization/57468
3244 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3245 spilled pseudos.
3246
d89ae27c
VM
32472013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3248
3249 PR rtl-optimization/57459
3250 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3251 type when setting live regs.
3252
3597e113
VM
32532013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3254
3255 * config/s390/s390.opt (mlra): New option.
3256 * config/s390/s390.c (s390_decompose_address): Check displacement
3257 for all registers for LRA.
3258 (s390_secondary_reload): Don't used secondary reloads for LRA.
3259 (s390_lra_p): New function.
3260 (TARGET_LRA_P): Define.
3261 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3262 of attribute cpu_facility to zarch for the last alternative.
3263 (*cmpmem_short): Ditto.
3264
01037aeb
EB
32652013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3266
3267 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3268 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3269 (arm_expand_prologue): Likewise.
3270
3371a64f
TJ
32712013-06-06 Teresa Johnson <tejohnson@google.com>
3272
3273 PR c++/53743
3274 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3275 as this is now done by redirect_edge_and_branch_force.
3276 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3277 barriers, and fix interaction with splitting.
3278 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3279 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3280 reflect changes made in the routine.
3281 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3282 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3283 since this is called in cfglayout mode, and replace partition fixup
3284 with assert as that is now done by force_nonfallthru_and_redirect.
3285 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3286 already be marked with region crossing note.
3287 (insert_section_boundary_note): Make non-static, gate on flag
3288 has_bb_partition, rewrite to also check for multiple partitions.
3289 (rest_of_handle_reorder_blocks): Remove call to
3290 insert_section_boundary_note, now done later during free_cfg.
3291 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3292 * bb-reorder.h (insert_section_boundary_note): Declare.
3293 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3294 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3295 invoke insert_section_boundary_note.
3296 (try_redirect_by_replacing_jump): Remove unnecessary
3297 check for region crossing note.
3298 (fixup_partition_crossing): New function.
3299 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3300 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3301 in non-cfglayout mode.
3302 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3303 remove old code that tried to do this. Emit barrier correctly
3304 when we are in cfglayout mode.
3305 (last_bb_in_partition): New function.
3306 (rtl_split_edge): Correctly fixup partition boundaries.
3307 (commit_one_edge_insertion): Remove old code that tried to
3308 fixup region crossing edge since this is now handled in
3309 split_block, and set up insertion point correctly since
3310 block may now end in a jump.
3311 (verify_hot_cold_block_grouping): Guard against checking when not in
3312 linearized RTL mode.
3313 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3314 notes.
3315 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3316 rtl_verify_flow_info, so not called in cfglayout mode.
3317 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3318 (fixup_reorder_chain): Remove old code that attempted to fixup region
3319 crossing note as this is now handled in force_nonfallthru_and_redirect.
3320 (duplicate_insn_chain): Don't duplicate switch section notes.
3321 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3322 note.
3323 * basic-block.h (emit_barrier_after_bb): Declare.
3324
66071e10
KT
33252013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3326
3327 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3328 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3329 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3330
0e26bf3d
KT
33312013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3332
3333 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3334 where appropriate.
3335 * config/arm/ldmstm.md: Regenerate.
3336
12b4e7ef
KT
33372013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3338
3339 * config/arm/sync.md (atomic_loaddi_1):
3340 Disable predication for arm_restrict_it.
3341 (arm_load_exclusive<mode>): Likewise.
3342 (arm_load_exclusivesi): Likewise.
3343 (arm_load_exclusivedi): Likewise.
3344 (arm_load_acquire_exclusive<mode>): Likewise.
3345 (arm_load_acquire_exclusivesi): Likewise.
3346 (arm_load_acquire_exclusivedi): Likewise.
3347 (arm_store_exclusive<mode>): Likewise.
3348 (arm_store_exclusive<mode>): Likewise.
3349 (arm_store_release_exclusivedi): Likewise.
3350 (arm_store_release_exclusive<mode>): Likewise.
3351
15d16c8a
RB
33522013-06-06 Richard Biener <rguenther@suse.de>
3353
3354 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3355 after LTO_null.
3356 (lto_tag_is_tree_code_p): Adjust.
3357 (lto_tag_is_gimple_code_p): Likewise.
3358 (lto_gimple_code_to_tag): Likewise.
3359 (lto_tag_to_gimple_code): Likewise.
3360 (lto_tree_code_to_tag): Likewise.
3361 (lto_tag_to_tree_code): Likewise.
3362 * data-streamer.h (streamer_write_hwi_in_range): Use
3363 uhwi streaming to stream the normalized range.
3364 (streamer_read_hwi_in_range): Likewise.
3365
17a7fc37
KT
33662013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3367
3368 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3369 (predicable_short_it): Likewise.
3370 (predicated): Likewise.
3371 (enabled): Handle above.
3372 (define_cond_exec): Set predicated attribute to yes.
3373
b57ca59b
MS
33742013-06-05 Mike Stump <mikestump@comcast.net>
3375
3376 * gdbinit.in (__FUNCTION__): Add.
3377
c1e183a9
UB
33782013-06-05 Uros Bizjak <ubizjak@gmail.com>
3379
3380 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3381 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3382
0378bddb
JH
33832013-06-05 Jan Hubicka <jh@suse.cz>
3384
3385 * varasm.c (mark_decl_referenced): Revert the removal until targets
3386 are fixed.
3387
8f8a2057
DE
33882013-06-05 David Edelsohn <dje.gcc@gmail.com>
3389
3390 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3391 instead of mark_decl_referenced.
3392
edb983b2
JH
33932013-06-05 Jan Hubicka <jh@suse.cz>
3394
3395 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3396 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3397 and symtab_used_from_object_file_p.
3398 (cgraph_make_node_local_1): Clear forced_by_abi.
3399 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3400 * cgraph.h (symtab_node_base): Add forced_by_abi.
3401 (decide_is_variable_needed): Remove.
3402 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3403 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3404 (decide_is_symbol_needed): ... this one; handle symbols in general;
3405 always analyze virtuals; honnor forced_by_abi.
3406 (cgraph_finalize_function): Update.
3407 (varpool_finalize_decl): Update.
3408 (symbol_defined_and_needed): Remove.
3409 (analyze_functions): Update.
3410 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3411 output_refs, input_overwrite_node): Handle forced_by_abi.
3412 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3413 (address_taken_from_non_vtable_p): ... this one.
3414 (comdat_can_be_unshared_p_1): New function.
3415 (cgraph_comdat_can_be_unshared_p): Rename to ...
3416 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3417 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3418 (function_and_variable_visibility): Clear forced_by_abi as needed.
3419 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3420 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
3421 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3422 * varpool.c (decide_is_variable_needed): Remove.
3423
9912dbe5
KT
34242013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3425
3426 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3427 (arm_option_override): Override arm_restrict_it where appropriate.
3428 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3429 * config/arm/arm.opt (mrestrict-it): New command-line option.
3430 * doc/invoke.texi: Document -mrestrict-it.
3431
34c136b6
DM
34322013-06-05 David Malcolm <dmalcolm@redhat.com>
3433
3434 * tsan.c (tsan_atomic_table): Make const.
3435
a367df53
RB
34362013-06-05 Richard Biener <rguenther@suse.de>
3437
3438 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3439 index associated with the tree we are supposed to replace.
3440 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3441 TREE_ASM_WRITTEN as zero for everything but SSA names.
3442
70d51a19
DM
34432013-06-05 David Malcolm <dmalcolm@redhat.com>
3444
3445 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3446
b9bd2075
JH
34472013-06-04 Jan Hubicka <jh@suse.cz>
3448
3449 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3450 (input_node, input_varpool_node): Handle correctly external same
3451 body aliases.
3452 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3453 nodes at ltrans stage.
3454
aaae719d
JH
34552013-06-04 Jan Hubicka <jh@suse.cz>
3456
3457 * ipa-inline.c (update_caller_keys): Fix availability test.
3458 (update_callee_keys): Likewise.
3459 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3460 to follow ELF standard.
3461
107eea2c
JU
34622013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3463
3464 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3465 (mips64r5900el-*-elf*): New configurations.
3466 * config/mips/mips-cpus.def (r5900): New processor.
3467 * config/mips/mips-tables.opt: Regenerate.
3468 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3469 (mips_issue_rate): Handle PROCESSOR_R5900.
3470 (mips_reorg_process_insns): Force reorder mode for the R5900.
3471 * config/mips/mips.h (TARGET_MIPS5900): Define.
3472 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3473 TARGET_MIPS5900.
3474 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3475 TARGET_MIPS5900.
3476 * config/mips/mips.md (processor): Add r5900.
3477 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3478
b7342d25
IB
34792013-06-04 Ian Bolton <ian.bolton@arm.com>
3480
3481 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3482 into function to generate MOVI instruction.
c1e183a9 3483 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
3484 (aarch64_preferred_simd_mode): Turn into wrapper.
3485 (aarch64_output_scalar_simd_mov_immediate): New function.
3486 * config/aarch64/aarch64-protos.h: Add prototype for above.
3487
81c2dfb9
IB
34882013-06-04 Ian Bolton <ian.bolton@arm.com>
3489
3490 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3491 element_char member.
3492 (sizetochar): Return signed char.
3493 (aarch64_simd_valid_immediate): Remove elchar and other
3494 unnecessary variables.
3495 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3496 Calculate element_char as required.
3497 * config/aarch64/aarch64-protos.h: Update and move prototype
3498 for aarch64_output_simd_mov_immediate.
3499 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3500 Update arguments.
3501
48063b9d
IB
35022013-06-04 Ian Bolton <ian.bolton@arm.com>
3503
3504 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3505 information completed by aarch64_simd_valid_immediate.
3506 (aarch64_legitimate_constant_p): Update arguments.
3507 (aarch64_simd_valid_immediate): Work with struct rather than many
3508 pointers.
3509 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3510 (aarch64_simd_make_constant): Update arguments.
3511 (aarch64_output_simd_mov_immediate): Work with struct rather than
3512 many pointers. Output immediate directly rather than as operand.
3513 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3514 Update prototype.
3515 * config/aarch64/constraints.md (Dn): Update arguments.
3516
3ea63f60
IB
35172013-06-04 Ian Bolton <ian.bolton@arm.com>
3518
3519 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3520 longer static.
3521 (aarch64_simd_immediate_valid_for_move): Remove.
3522 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3523 (aarch64_simd_make_constant): Update call.
3524 (aarch64_output_simd_mov_immediate): Update call.
3525 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3526 Add prototype.
3527 * config/aarch64/constraints.md (Dn): Update call.
3528
d8edd899
IB
35292013-06-04 Ian Bolton <ian.bolton@arm.com>
3530
3531 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3532 return type to bool for prototype.
3533 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3534 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3535 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3536
44b20bb8
CM
35372013-06-04 Catherine Moore <clm@codesourcery.com>
3538
3539 * config/mips/mips.opt (meva): New.
c1e183a9 3540 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
3541 (ASM_SPEC): Handle -meva.
3542 * doc/invoke.texi (meva): Document.
3543
52befbd8
AM
35442013-06-04 Alan Modra <amodra@gmail.com>
3545
3546 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3547 constant output.
3548
aadaf24e
KT
35492013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3550
3551 * rtl.def: Add extra fourth optional field to define_cond_exec.
3552 * gensupport.c (process_one_cond_exec): Process attributes from
3553 define_cond_exec.
3554 * doc/md.texi: Document fourth field in define_cond_exec.
3555
0cd9e9ee
EB
35562013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3557
3558 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3559 out the processing order as in store_bit_field_1.
3560
cb0f665d
JH
35612013-06-04 Jan Hubicka <jh@suse.cz>
3562
3563 PR middle-end/57500
3564 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3565 non-VAR_DECL node if it does not exist yet.
3566
53984b9b
RS
35672013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3568
3569 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3570 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3571 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3572 target_cpu_default setting.
3573
5d318fd4
TJ
35742013-06-03 Teresa Johnson <tejohnson@google.com>
3575
3576 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3577 default to -fopt-info=optimized instead of all.
3578 * doc/invoke.texi: Ditto.
3579 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3580 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3581 (execute_vect_slp): Emit BB vectorization success under
3582 MSG_OPTIMIZED_LOCATIONS.
3583 * tree-vect-slp.c (vect_slp_transform_bb): Change
3584 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3585 * tree-vect-loop.c (vect_transform_loop): Ditto.
3586
ec3af349
JM
35872013-06-03 Jason Merrill <jason@redhat.com>
3588
3589 PR c++/57415
3590 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3591 Use TARGET_EXPR for C++.
3592
1baf9159
JJ
35932013-06-03 Jakub Jelinek <jakub@redhat.com>
3594
3595 PR rtl-optimization/57268
0cd9e9ee 3596 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
3597 if DEBUG_INSN_P (insn).
3598
3599 Reapply
3600 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3601
3602 PR rtl-optimization/57268
3603 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3604 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3605
0f1d3965
YR
36062013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3607
3608 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3609 (ix86_avoid_lea_for_addr): Likewise.
3610 (exact_dependency_1): Likewise.
3611 (ix86_adjust_cost): Likewise.
3612 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3613 removed.
3614 (do_reorder_for_imul): Fix typo, formatting and
3615 !reload_completed check removed.
3616 (ix86_sched_reorder): Fix typo and formatting.
3617 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3618 list.
3619
3bc30db4
SN
36202013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3621
3622 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3623
19cc6fac
EB
36242013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3625
3626 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3627 <STRING_CST>: Likewise.
3628 <VECTOR_CST>: Likewise.
3629
c68a6e08
JW
36302013-06-01 Janus Weil <janus@gcc.gnu.org>
3631 Mikael Morin <mikael@gcc.gnu.org>
3632
3633 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3634 * config.in: Regenerated.
3635 * configure: Regenerated.
3636
38e55e5c
JH
36372013-06-01 Jan Hubicka <jh@suse.cz>
3638
3639 PR middle-end/57366
3640 * cgraphunit.c (compile): When weakref is not supported,
3641 set up transparent aliases before final output pass.
3642 * varasm.c (assemble_alias): Do not try to do it here.
3643
eb51d2ff
JH
36442013-06-01 Jan Hubicka <jh@suse.cz>
3645
3646 PR middle-end/57467
3647 * passes.c (for_per_function): Skip unanalyzed functions.
3648
40a7fe1e
JH
36492013-06-01 Jan Hubicka <jh@suse.cz>
3650
3651 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3652 (lto_symtab_merge_symbols_1): ... this one.
3653 (lto_symtab_merge_cgraph_nodes): Rename to ...
3654 (lto_symtab_merge_symbols): ... this one; simplify.
3655 * cgraph.c (same_body_aliases_done): Rename to ...
3656 (cpp_implicit_aliases_done): ... this one.
3657 (cgraph_create_function_alias): Update.
3658 (cgraph_same_body_alias): Update.
c1e183a9 3659 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 3660 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 3661 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
3662 (cgraph_node): Remove same_body_alias.
3663 (varpool_node): Remove alias_of and extra_name_alias.
3664 (same_body_aliases_done): Rename to ..
3665 (cpp_implicit_aliases_done): ... this one.
3666 (symtab_alias_ultimate_target): Add default parameter.
3667 (symtab_resolve_alias): New function.
3668 (fixup_same_cpp_alias_visibility): Declare.
3669 (cgraph_function_node): Add default parameter.
3670 (cgraph_node_asm_name): Likewise.
3671 (cgraph_function_or_thunk_node): Add default parameter; do
3672 not ICE when it is NULL.
3673 (varpool_variable_node): Likewise.
3674 * tree-emutls.c (create_emultls_var): Update.
3675 (ipa_lower_emutls): Update.
3676 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3677 (cgraph_reset_node): Reset alias info.
3678 (cgraph_finalize_function): Update.
3679 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3680 (analyze_function): Simplify.
3681 (cgraph_process_same_body_aliases): Simplify.
3682 (analyze_functions): Fixup same body aliases.
3683 (handle_alias_pairs): Simplify.
3684 (assemble_thunk): Update.
3685 (assemble_thunks_and_aliases): Update.
3686 (output_weakrefs): Rewrite.
3687 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3688 (lto_output_varpool_node): Likewise.
3689 (compute_ltrans_boundary): Remve assert.
3690 (get_alias_symbol): New functoin.
3691 (input_node): Rewrite alias handling.
3692 (input_varpool_node): Likewise.
3693 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3694 * ipa.c (process_references): Handle weakrefs correctly.
3695 (symtab_remove_unreachable_nodes): Likewise.
3696 * trans-mem.c (get_cg_data): Update.
3697 (ipa_tm_create_version_alias): Update.
3698 (ipa_tm_execute): Update.
3699 * symtab.c (dump_symtab_base): Dump aliases.
3700 (verify_symtab_base): Verify aliases.
3701 (symtab_node_availability): New function.
3702 (symtab_alias_ultimate_target): Simplify.
3703 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3704 handle all the fixup cases.
3705 (symtab_resolve_alias): New function.
3706 * passes.c (ipa_write_summaries): Handle weakrefs.
3707 * varpool.c (varpool_analyze_node): Simplify.
3708 (assemble_aliases): Update.
3709 (varpool_create_variable_alias): Simplify.
3710 (varpool_extra_name_alias): Simplify.
3711 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3712 (lto_symtab_merge_symbols): ... this one.
3713
21759881
DT
37142013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3715
3716 Revert
3717 PR rtl-optimization/57268
3718 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3719 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3720
daf4e940
TB
37212013-06-01 Tobias Burnus <burnus@net-b.de>
3722
3723 Partially reverted:
3724 2013-05-31 Tobias Burnus <burnus@net-b.de>
3725
3726 PR middle-end/57073
3727 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3728 further up.
3729
c359d8d0
DT
37302013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3731
3732 PR rtl-optimization/57268
3733 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3734 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3735
4172215d
EB
37362013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3737
3738 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3739 unordered comparison operators when -fno-trapping-math is in effect
3740 on the e500.
3741 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3742 and implement unordered comparison operators properly on the e500.
3743
a8c50132
EB
37442013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3745
3746 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3747 for constant scalar integers.
3748 (simplify_relational_operation_1): Likewise.
3749
44626634
SB
37502013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3751
3752 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3753 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3754 Fix comment.
3755
55805e54
YR
37562013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3757 Igor Zamyatin <igor.zamyatin@intel.com>
3758
3759 Silvermont (SLM) architecture performance tuning.
3760 * config/i386/i386.h (enum ix86_tune_indices): Add
3761 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3762 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3763
3764 * config/i386/i386.c (initial_ix86_tune_features)
3765 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3766 (ix86_lea_outperforms): Handle Silvermont tuning.
3767 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3768 call.
3769 (ix86_use_lea_for_mov): Likewise.
3770 (ix86_avoid_lea_for_addr): Likewise.
3771 (ix86_lea_for_add_ok): Likewise.
3772 (exact_dependency_1): New function.
3773 (exact_store_load_dependency): Likewise.
3774 (ix86_adjust_cost): Handle Silvermont tuning.
3775 (do_reoder_for_imul): Likewise.
3776 (swap_top_of_ready_list): New function.
3777 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3778
3779 * config/i386/i386.md (peepholes that split memory operand in fp
3780 converts): New.
3781
e19c9de2
MS
37822013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3783
3784 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3785 Remove un-necessary braces.
3786
38e6c9a6
MS
37872013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3788
3789 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3790 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3791
e3530904
TB
37922013-05-31 Tobias Burnus <burnus@net-b.de>
3793
3794 PR middle-end/57073
c1e183a9 3795 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 3796
b6af05a9
KT
37972013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3798
3799 PR target/56315
3800 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3801 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3802 * config/arm/neon.md (iordi3_neon): Remove.
3803 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3804 * config/arm/predicates.md (imm_for_neon_logic_operand):
3805 Move to earlier in the file.
3806 (neon_logic_op2): Likewise.
3807 (arm_iordi_operand_neon): New predicate.
3808
f800c166
RB
38092013-05-31 Richard Biener <rguenther@suse.de>
3810
3811 PR tree-optimization/57478
3812 PR tree-optimization/57453
3813 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3814 are life as well.
3815
e571fa59
KP
38162013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3817
3818 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3819 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3820
0fa6e0ef
TB
38212013-05-30 Tobias Burnus <burnus@net-b.de>
3822 Thomas Koenig <tkoenig@gcc.gnu.org>
3823
3824 PR middle-end/57073
3825 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3826 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3827
4688ddf5
SB
38282013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3829
0fa6e0ef 3830 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 3831
3b9ceb4b
VM
38322013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3833
3834 * target.def (register_usage_leveling_p): New hook.
3835 * targhooks.c (default_register_usage_leveling_p): New.
3836 * targhooks.h (default_register_usage_leveling_p): New prototype.
3837 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3838 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3839 * doc/tm.texi: Update.
3840 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3841
65f9e789
IB
38422013-05-30 Ian Bolton <ian.bolton@arm.com>
3843
3844 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3845 (*insv_reg<mode>): New define_insn.
3846
ca035367
JR
38472013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3848
3849 PR rtl-optimization/57439
3850 * postreload.c (move2add_valid_value_p): Check that we have
3851 a zero subreg_regno_offset when accessing the register in
3852 the requested mode.
3853
0b871ccf
YR
38542013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3855 Igor Zamyatin <igor.zamyatin@intel.com>
3856
3857 Silvermont (SLM) architecture pipeline model, tuning and
3858 insn selection.
3859 * config.gcc: Add slm config options and target.
3860
3861 * config/i386/slm.md: New.
3862
3863 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3864
3865 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3866 PROCESSOR_SLM.
3867 (ix86_target_macros_internal): Likewise.
3868
3869 * gcc/config/i386/i386.c (slm_cost): New cost.
3870 (m_SLM): New macro flag.
3871 (initial_ix86_tune_features): Set m_SLM.
3872 (x86_accumulate_outgoing_args): Likewise.
3873 (x86_arch_always_fancy_math_387): Likewise.
3874 (processor_target_table): Add slm cost.
3875 (cpu_names): Add slm cpu name.
3876 (x86_option_override_internal): Set SLM ISA.
3877 (ix86_issue_rate): New case PROCESSOR_SLM.
3878 (ia32_multipass_dfa_lookahead): Likewise.
3879 (fold_builtin_cpu): Add slm.
3880
3881 * config/i386/i386.h (TARGET_SLM): New target macro.
3882 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3883 (processor_type): Add PROCESSOR_SLM.
3884
3885 * config/i386/i386.md (cpu): Add new value "slm".
3886 (slm.md): Include slm.md.
3887
24d5b097
XG
38882013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3889 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3890
3891 * config/arm/arm-protos.h: Add and update function protos.
3892 * config/arm/arm.c (use_simple_return_p): New added.
3893 (thumb2_expand_return): Check simple_return flag.
3894 * config/arm/arm.md: Add simple_return and conditional simple_return.
3895 * config/arm/iterators.md: Add iterator for return and simple_return.
3896
c1cccc15
ZC
38972013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3898
3899 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3900 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3901 (arm_emit_vfp_multi_reg_pop): Likewise.
3902 (thumb2_emit_ldrd_pop): Likewise.
3903 (arm_expand_epilogue): Add misc REG_CFA notes.
3904 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3905
3a4f280b
LC
39062013-05-29 Lawrence Crowl <crowl@google.com>
3907
3908 * config/arm/t-arm: Update for below.
3909
3910 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3911 Change type to hash_table. Update dependent calls and types.
3912
3913 * config/i386/t-cygming: Update for below.
3914
3915 * config/i386/t-interix: Update for below.
3916
3917 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3918 Change type to hash_table. Update dependent calls and types.
3919 (i386_find_on_wrapper_list::wrappers): Likewise.
3920
3921 * config/ia64/t-ia64: Update for below.
3922
3923 * config/ia64/ia64.c (bundle_state_table):
3924 Change type to hash_table. Update dependent calls and types.
3925
3926 * config/mips/mips.c (mips_reorg_process_insns::htab):
3927 Change type to hash_table. Update dependent calls and types.
3928
3929 * config/sol2.c (solaris_comdat_htab):
3930 Change type to hash_table. Update dependent calls and types.
3931
3932 * config/t-sol2: Update for above.
3933
1388a0e3
TJ
39342013-05-29 Teresa Johnson <tejohnson@google.com>
3935
3936 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3937 functions are not yet marked as defined.
3938
a5965b52
MM
39392013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3940 Pat Haugen <pthaugen@us.ibm.com>
3941 Peter Bergner <bergner@vnet.ibm.com>
3942
3943 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3944 instructions.
3945 (VEC_A): Likewise.
3946 (VEC_C): Likewise.
3947 (vrotl<mode>3): Likewise.
3948 (vashl<mode>3): Likewise.
3949 (vlshr<mode>3): Likewise.
3950 (vashr<mode>3): Likewise.
3951
3952 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3953 support for power8 V2DI builtins.
3954
3955 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3956 power8 V2DI builtins.
3957 (vupkhsw): Likewise.
3958 (vupklsw): Likewise.
3959 (vaddudm): Likewise.
3960 (vminsd): Likewise.
3961 (vmaxsd): Likewise.
3962 (vminud): Likewise.
3963 (vmaxud): Likewise.
3964 (vpkudum): Likewise.
3965 (vpksdss): Likewise.
3966 (vpkudus): Likewise.
3967 (vpksdus): Likewise.
3968 (vrld): Likewise.
3969 (vsld): Likewise.
3970 (vsrd): Likewise.
3971 (vsrad): Likewise.
3972 (vsubudm): Likewise.
3973 (vcmpequd): Likewise.
3974 (vcmpgtsd): Likewise.
3975 (vcmpgtud): Likewise.
3976 (vcmpequd_p): Likewise.
3977 (vcmpgtsd_p): Likewise.
3978 (vcmpgtud_p): Likewise.
3979 (vupkhsw): Likewise.
3980 (vupklsw): Likewise.
3981 (vaddudm): Likewise.
3982 (vmaxsd): Likewise.
3983 (vmaxud): Likewise.
3984 (vminsd): Likewise.
3985 (vminud): Likewise.
3986 (vpksdss): Likewise.
3987 (vpksdus): Likewise.
3988 (vpkudum): Likewise.
3989 (vpkudus): Likewise.
3990 (vrld): Likewise.
3991 (vsld): Likewise.
3992 (vsrad): Likewise.
3993 (vsrd): Likewise.
3994 (vsubudm): Likewise.
3995
3996 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3997 support for power8 V2DI instructions.
3998
3999 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4000 power8 V2DI instructions. Combine pack and unpack insns to use an
4001 iterator for each mode. Check whether a particular mode supports
4002 Altivec instructions instead of just checking TARGET_ALTIVEC.
4003 (UNSPEC_VPKUWUM): Likewise.
4004 (UNSPEC_VPKSHSS): Likewise.
4005 (UNSPEC_VPKSWSS): Likewise.
4006 (UNSPEC_VPKUHUS): Likewise.
4007 (UNSPEC_VPKSHUS): Likewise.
4008 (UNSPEC_VPKUWUS): Likewise.
4009 (UNSPEC_VPKSWUS): Likewise.
4010 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4011 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4012 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4013 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4014 (UNSPEC_VUPKHSB): Likewise.
4015 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4016 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4017 (UNSPEC_VUPKHSH): Likewise.
4018 (UNSPEC_VUPKLSB): Likewise.
4019 (UNSPEC_VUPKLSH): Likewise.
4020 (VI2): Likewise.
4021 (VI_char): Likewise.
4022 (VI_scalar): Likewise.
4023 (VI_unit): Likewise.
4024 (VP): Likewise.
4025 (VP_small): Likewise.
4026 (VP_small_lc): Likewise.
4027 (VU_char): Likewise.
4028 (add<mode>3): Likewise.
4029 (altivec_vaddcuw): Likewise.
4030 (altivec_vaddu<VI_char>s): Likewise.
4031 (altivec_vadds<VI_char>s): Likewise.
4032 (sub<mode>3): Likewise.
4033 (altivec_vsubcuw): Likewise.
4034 (altivec_vsubu<VI_char>s): Likewise.
4035 (altivec_vsubs<VI_char>s): Likewise.
4036 (altivec_vavgs<VI_char>): Likewise.
4037 (altivec_vcmpbfp): Likewise.
4038 (altivec_eq<mode>): Likewise.
4039 (altivec_gt<mode>): Likewise.
4040 (altivec_gtu<mode>): Likewise.
4041 (umax<mode>3): Likewise.
4042 (smax<mode>3): Likewise.
4043 (umin<mode>3): Likewise.
4044 (smin<mode>3): Likewise.
4045 (altivec_vpkuhum): Likewise.
4046 (altivec_vpkuwum): Likewise.
4047 (altivec_vpkshss): Likewise.
4048 (altivec_vpkswss): Likewise.
4049 (altivec_vpkuhus): Likewise.
4050 (altivec_vpkshus): Likewise.
4051 (altivec_vpkuwus): Likewise.
4052 (altivec_vpkswus): Likewise.
4053 (altivec_vpks<VI_char>ss): Likewise.
4054 (altivec_vpks<VI_char>us): Likewise.
4055 (altivec_vpku<VI_char>us): Likewise.
4056 (altivec_vpku<VI_char>um): Likewise.
4057 (altivec_vrl<VI_char>): Likewise.
4058 (altivec_vsl<VI_char>): Likewise.
4059 (altivec_vsr<VI_char>): Likewise.
4060 (altivec_vsra<VI_char>): Likewise.
4061 (altivec_vsldoi_<mode>): Likewise.
4062 (altivec_vupkhsb): Likewise.
4063 (altivec_vupkhs<VU_char>): Likewise.
4064 (altivec_vupkls<VU_char>): Likewise.
4065 (altivec_vupkhsh): Likewise.
4066 (altivec_vupklsb): Likewise.
4067 (altivec_vupklsh): Likewise.
4068 (altivec_vcmpequ<VI_char>_p): Likewise.
4069 (altivec_vcmpgts<VI_char>_p): Likewise.
4070 (altivec_vcmpgtu<VI_char>_p): Likewise.
4071 (abs<mode>2): Likewise.
4072 (vec_unpacks_hi_v16qi): Likewise.
4073 (vec_unpacks_hi_v8hi): Likewise.
4074 (vec_unpacks_lo_v16qi): Likewise.
4075 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4076 (vec_unpacks_lo_v8hi): Likewise.
4077 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4078 (vec_pack_trunc_v8h): Likewise.
4079 (vec_pack_trunc_v4si): Likewise.
4080 (vec_pack_trunc_<mode>): Likewise.
4081
4082 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4083 V2DI builtins.
4084 (vec_vmaxsd): Likewise.
4085 (vec_vmaxud): Likewise.
4086 (vec_vminsd): Likewise.
4087 (vec_vminud): Likewise.
4088 (vec_vpksdss): Likewise.
4089 (vec_vpksdus): Likewise.
4090 (vec_vpkudum): Likewise.
4091 (vec_vpkudus): Likewise.
4092 (vec_vrld): Likewise.
4093 (vec_vsld): Likewise.
4094 (vec_vsrad): Likewise.
4095 (vec_vsrd): Likewise.
4096 (vec_vsubudm): Likewise.
4097 (vec_vupkhsw): Likewise.
4098 (vec_vupklsw): Likewise.
4099
e70670cf
JH
41002013-05-29 Jan Hubicka <jh@suse.cz>
4101
4102 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4103 flags; reorder rest of fields in more consistent way.
4104 (varpool_node): Remove analyzed, finalized and alias.
4105 (cgraph_ndoe): Likewise.
4106 (symtab_alias_ultimate_target): New function.
4107 (cgraph_function_node): Move offline.
4108 (cgraph_reset_node): Declare.
4109 (cgraph_comdat_can_be_unshared_p): Remove.
4110 (varpool_remove_initializer): Declare.
4111 (varpool_first_defined_variable, varpool_next_defined_variable
4112 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4113 (cgraph_function_with_gimple_body_p): Update.
4114 (varpool_all_refs_explicit_p): Update.
4115 (symtab_alias_target): New function.
4116 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4117 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
4118 (cgraph_function_or_thunk_node): Simplify using
4119 symtab_alias_ultimate_target.
e70670cf
JH
4120 (varpool_variable_node): Likewise.
4121 * cgraph.c (cgraph_create_function_alias): Update.
4122 (cgraph_add_thunk): Update.
4123 (cgraph_remove_node): Update.
4124 (dump_cgraph_node): Do not dump removed flags.
4125 (cgraph_function_body_availability): Update.
4126 (cgraph_propagate_frequency): Update.
4127 (verify_cgraph_node): Check sanity of local flag.
4128 (cgraph_function_node): Move here from cgraph.h; revamp for
4129 cgraph_function_or_thunk_node.
4130 * lto-symtab.c (lto_varpool_replace_node): Update.
4131 (lto_symtab_resolve_can_prevail_p): Update.
4132 (lto_symtab_merge_cgraph_nodes): Update.
4133 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4134 propagate_constants_accross_call, devirtualization_time_bonus,
4135 ipcp_propagate_stage): Update.
4136 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
4137 * ipa-inline-transform.c (clone_inlined_nodes,
4138 preserve_function_body_p): Update.
e70670cf
JH
4139 * ipa-reference.c (propagate): Update.
4140 (write_node_summary_p): Update.
4141 * toplev.c (wrapup_global_declaration_2): Update.
4142 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4143 (analyze_function) ... this one.
4144 (cgraph_process_new_functions): Update.
4145 (cgraph_reset_node): Export.
4146 (cgraph_finalize_function): Update.
4147 (cgraph_add_new_function): Update.
4148 (process_function_and_variable_attributes): Update.
4149 (varpool_finalize_decl): Update.
4150 (symbol_finalized): Remove.
4151 (symbol_finalized_and_needed): Rename to ...
4152 (symbol_defined_and_needed): ... update.
4153 (cgraph_analyze_functions): Update.
4154 (handle_alias_pairs): Update.
4155 (mark_functions_to_output): Update.
4156 (assemble_thunk): Update.
4157 (output_in_order): Update.
4158 (output_weakrefs): Update.
4159 (finalize_compilation_unit): Update.
4160 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4161 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4162 input_node, input_varpool_node): Update.
4163 * dbxout.c (dbxout_expand_expr): Update.
4164 * cgraphclones.c (cgraph_clone_node): Update.
4165 (cgraph_copy_node_for_versioning): Update.
4166 (cgraph_materialize_clone): Update.
4167 (cgraph_materialize_all_clones): Update.
4168 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4169 propagate_pure_const, propagate_nothrow): Update.
4170 * lto-streamer-out.c (lto_output, write_symbol): Update.
4171 * ipa-utils.c (ipa_reverse_postorder): Update.
4172 * ipa-inline.c (can_inline_edge_p): Update.
4173 (update_caller_keys, ipa_inline): Update.
4174 * dwarf2out.c (reference_to_unused,
4175 premark_types_used_by_global_vars_helper): Update.
4176 * tree-eh.c (tree_could_trap_p): Update.
4177 * ipa-split.c (consider_split, execute_split_functions): Update.
4178 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
4179 has_addr_references_p): Update; move ahead in file for better
4180 readability.
e70670cf
JH
4181 (process_references): Simplify.
4182 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4183 bodies are removed.
4184 (cgraph_comdat_can_be_unshared_p): Make static.
4185 (cgraph_externally_visible_p): Update.
4186 (varpool_externally_visible_p): Update.
4187 (function_and_variable_visibility): Update.
4188 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4189 ipa_tm_mark_force_output_node): Update.
4190 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4191 estimate_edge_devirt_benefit, inline_generate_summary,
4192 inline_write_summary): Update.
4193 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4194 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
4195 (ipa_print_node_params, ipa_prop_read_section,
4196 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
4197 * varasm.c (mark_decl_referenced): Update.
4198 (assemble_alias, dump_tm_clone_pairs): Update.
4199 * tree-inline.c (copy_bb): Update.
4200 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4201 Update.
4202 * symtab.c (dump_symtab_base): Print new flags.
4203 (verify_symtab_base): Verify new flags.
4204 (symtab_alias_ultimate_target): New function.
4205 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4206 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4207 Update.
c1e183a9
UB
4208 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4209 Update.
e70670cf
JH
4210 * i386.c (ix86_get_function_versions_dispatcher,
4211 ix86_generate_version_dispatcher_body): Update.
4212 (fold_builtin_cpu): Use varpool_add_new_variable.
4213 * varpool.c (varpool_remove_initializer): Break out from ...
4214 (varpool_remove_node): ... this one.
4215 (dump_varpool_node, varpool_node_for_asm,
4216 cgraph_variable_initializer_availability, varpool_analyze_node,
4217 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
4218 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4219 Update.
e70670cf 4220
182802ad
JH
42212013-05-29 Jan Hubicka <jh@suse.cz>
4222
4223 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4224
8190b609
ER
42252013-05-29 Easwaran Raman <eraman@google.com>
4226
4227 PR tree-optimization/57442
4228 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4229 when control exits the main loop.
4230
69f5aa9b
SKS
42312013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4232
4233 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4234 and RX600.
c1e183a9 4235 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
4236 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4237 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4238 option.
4239
4b847da9
BS
42402013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4241
4242 PR tree-optimization/57441
4243 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4244 Don't limit size of incr_vec to number of candidates.
4245
4fc43c39
SE
42462013-05-29 Steve Ellcey <sellcey@imgtec.com>
4247
4248 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4249 and mips16 directories.
c1e183a9 4250 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
4251 (MULTILIB_DIRNAMES): Ditto.
4252 (MULTILIB_EXCEPTIONS): Add new exceptions.
4253 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4254 (MULTILIB_DIRNAMES): Ditto.
4255 (MULTILIB_EXCEPTIONS): Add new exceptions.
4256
a5350ddc
CSS
42572012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4258 Marcus Shawcroft <marcus.shawcroft@arm.com>
4259
4260 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4261 SYMBOL_TINY_ABSOLUTE.
4262 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4263 SYMBOL_TINY_ABSOLUTE.
4264 (aarch64_expand_mov_immediate): Likewise.
4265 (aarch64_classify_symbol): Likewise.
4266 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4267 Permit SYMBOL_TINY_ABSOLUTE.
4268 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4269
17f4d4bf
CSS
42702013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4271 Marcus Shawcroft <marcus.shawcroft@arm.com>
4272
4273 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4274 Refactor if/switch. Replace gcc_assert with if.
4275
c0186656
GG
42762013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4277
4278 * config/i386/i386.c (initial_ix86_tune_features): Enable
4279 FP Reassociation for AMD bdver1 and bdver2.
4280
d20188f3
MJ
42812013-05-29 Martin Jambor <mjambor@suse.cz>
4282
4283 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4284 and IMAGPART_EXPR do not occur within other handled_components.
4285
292cba13
RB
42862013-05-29 Richard Biener <rguenther@suse.de>
4287
4288 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4289 access on whether the use is in the BB we currently try to
4290 vectorize.
4291 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4292 vectorize to vect_bb_slp_scalar_cost.
4293
6eddf228
RB
42942013-05-29 Richard Biener <rguenther@suse.de>
4295
4296 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4297 computing scalar cost offsetted by stmts that are kept live
4298 by scalar uses.
4299 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4300 for computation of scalar cost.
4301
7df36117
SE
43022013-05-28 Steve Ellcey <sellcey@mips.com>
4303
4304 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4305
36536d79
BI
43062013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4307
4308 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4309 array notation built-in reduction functions.
4310 * doc/passes.texi (Passes): Added documentation about changes done
4311 for Cilk Plus.
4312 * doc/invoke.texi (C Dialect Options): Added documentation about
4313 the -fcilkplus flag.
4314 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4315 (BUILTINS_DEF): Depend on cilkplus.def.
4316 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4317 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4318 * cilkplus.def: New file.
4319
b49eefa5
JR
43202013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4321
4322 PR rtl-optimization/57439
4323 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4324
9daf6dbb
ER
43252013-05-28 Easwaran Raman <eraman@google.com>
4326
4327 PR tree-optimization/57337
4328 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4329 (find_insert_point): Correctly identify the insertion point
4330 when two statements with the same UID is compared.
4331
fbd7e877
RB
43322013-05-28 Richard Biener <rguenther@suse.de>
4333
4334 PR tree-optimization/56787
4335 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4336 from the list of data references.
4337 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4338 clobbers.
4339 (vect_analyze_loop_operations): Likewise.
4340 (vect_transform_loop): Remove clobbers.
4341
bbba1117
MJ
43422013-05-28 Martin Jambor <mjambor@suse.cz>
4343
4344 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4345 and REALPART_EXPRs have scalar type.
4346
bd388c2a
RB
43472013-05-28 Richard Biener <rguenther@suse.de>
4348
4349 PR tree-optimization/57411
4350 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4351 virtual operands.
4352 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4353 virtual operand propagation.
4354
2f56a311
EB
43552013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4356
4357 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4358 destination register for bmasksi_vis.
4359 (vector_init_bshuffle): Likewise.
4360 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4361
5c3eacbb
EB
43622013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4363
4364 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4365 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4366 mode if the instruction isn't available in the original mode.
4367 * config/sparc/sparc.opt (mfix-ut699): New option.
4368 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4369 (divdf3): Turn into expander.
4370 (divdf3_nofix): New insn.
4371 (divdf3_fix): Likewise.
4372 (divsf3): Disable if -mfix-ut699.
4373 (sqrtdf2): Turn into expander.
4374 (sqrtdf2_nofix): New insn.
4375 (sqrtdf2_fix): Likewise.
4376 (sqrtsf2): Disable if -mfix-ut699.
4377
a1756c0a
RB
43782013-05-27 Richard Biener <rguenther@suse.de>
4379
4380 PR middle-end/57412
4381 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4382 block for the new loop.
4383
5a892248
RB
43842013-05-27 Richard Biener <rguenther@suse.de>
4385
4386 PR tree-optimization/57343
4387 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4388 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4389 (number_of_iterations_cond): Do not build the folded tree.
4390
d1de852b
RB
43912013-05-27 Richard Biener <rguenther@suse.de>
4392
4393 Revert
4394 PR middle-end/57381
4395 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4396 OEP_CONSTANT_ADDRESS_OF retained.
4397
4398 PR tree-optimization/57417
4399 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4400 for unchanged base.
4401 (set_ssa_val_to): Compare addresses using
4402 get_addr_base_and_unit_offset.
4403
7894bc6b
JR
44042013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4405
4406 PR rtl-optimization/56833
4407 * postreload.c (move2add_record_mode): New function.
4408 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4409 (move2add_use_add2_insn): Use move2add_record_sym_value.
4410 (move2add_use_add3_insn): Likewise.
4411 (reload_cse_move2add): Use move2add_valid_value_p and
4412 move2add_record_mode. Invalidate call-clobbered and REG_INC
4413 affected regs by setting reg_mode to VOIDmode.
4414 (move2add_note_store): Don't pretend the inside of a SUBREG is
4415 the actual destination. Invalidate single/leading registers by
4416 setting reg_mode to VOIDmode.
4417 Use move2add_record_sym_value, move2add_valid_value_p and
4418 move2add_record_mode.
4419
b03be25f
RB
44202013-05-27 Richard Biener <rguenther@suse.de>
4421
4422 PR tree-optimization/57396
4423 * tree-affine.c (double_int_constant_multiple_p): Properly
4424 return false for val == 0 and div != 0.
4425
44e88db2
RS
44262013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4427
4428 * config/mips/mips.h: Use #elif in preprocessor conditions.
4429
3b859704
RS
44302013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4431
4432 PR target/53916
4433 * config/mips/constraints.md (kl): New constraint.
4434 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4435 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4436 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4437 from LO for MIPS16.
4438 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4439
c979d5f5
RS
44402013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4441
4442 PR target/55777
4443 * config/mips/mips.c (mips_can_inline_p): New function.
4444 (TARGET_CAN_INLINE_P): Define.
4445
8e90de43
SB
44462013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4447
4448 * sched-int.h (ds_t, dw_t): Make unsigned int.
4449 Fix documentation that describes how all the ds_t bits are used.
4450 Reserve the last bit for delayed-branch scheduling.
4451 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4452 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4453 (gen_dep_weak_1): Remove prototype.
4454 * sched-deps.c (get_dep_weak_1): Make static.
4455 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4456 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4457 * doc/tm.texi: Regenerate.
4458 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4459
cb5cb194
SB
44602013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4461
4462 PR debug/56950
4463 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4464
5bd93ff6
NS
44652013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4466 Sandra Loosemore <sandra@codesourcery.com>
4467
4468 * config.gcc (powerpc-*): Allow native for with-cpu.
4469
2343af65
JL
44702013-05-24 Jeff Law <law@redhat.com>
4471
4472 PR tree-optimization/57124
4473 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4474 conversion feeding a condition if the range has an overflow
4475 if -fstrict-overflow. Add warnings for when we do make the
4476 transformation.
4477
3ad695b9
DC
44782013-05-24 Dehao Chen <dehao@google.com>
4479
04960246 4480 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
4481 (locus_discrim_hasher): Likewise.
4482 (locus_discrim_hasher::hash): Likewise.
4483 (locus_discrim_hasher::equal): Likewise.
4484
82338059
MJ
44852013-05-24 Martin Jambor <mjambor@suse.cz>
4486
4487 PR tree-optimization/57294
4488 * cgraph.h (ipa_record_stmt_references): Declare.
4489 * cgraphbuild.c (ipa_record_stmt_references): New function.
4490 (build_cgraph_edges): Use ipa_record_stmt_references.
4491 (rebuild_cgraph_edges): Likewise.
4492 (cgraph_rebuild_references): Likewise.
4493 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4494 associated with the old statement and build references from the
4495 newly built statements.
4496 * ipa-ref.c (ipa_remove_stmt_references): New function.
4497 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4498
1ccd4874
VM
44992013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4500
55805e54 4501 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 4502 mem-mem moves.
55805e54 4503 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 4504 too.
55805e54 4505 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
4506 secondary memory moves.
4507 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4508 reg set up in the current insn.
4509
25e25c73
DC
45102013-05-24 Dehao Chen <dehao@google.com>
4511
04960246 4512 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
4513 hash function.
4514 (locus_descrim_hasher::equal): Likewise.
04960246 4515 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
4516 (make_edges): Likewise.
4517 (next_discriminator_for_locus): Likewise.
4518 (same_line_p): Likewise.
4519 (assign_discriminators): Likewise.
4520 (make_cond_expr_edges): Likewise.
4521 (make_gimple_switch_edges): Likewise.
4522 (make_goto_expr_edges): Likewise.
4523 (make_gimple_asm_edges): Likewise.
4524
50d38551
IB
45252013-05-24 Ian Bolton <ian.bolton@arm.com>
4526
4527 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4528 X format specifier to only display bottom 16 bits.
4529 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4530 immediate to match for operand 2, since it will be masked.
4531
aea0101d
RB
45322013-05-24 Richard Biener <rguenther@suse.de>
4533
4534 PR tree-optimization/57287
4535 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4536 all SSA names that occur in abnormal PHIs.
4537
634e03d3
AI
45382013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4539
4540 PR tree-ssa/57385
4541 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4542 that index is not negative.
4543
b17c024f
EB
45442013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4545
4546 PR rtl-optimization/55177
4547 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4548 (simplify_byte_swapping_operation): New.
4549 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4550 (simplify_relational_operation_1): Deal with BSWAP.
4551
46aeac1b
RH
45522013-05-23 Richard Henderson <rth@redhat.com>
4553
4554 PR target/56742
4555 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4556 (ix86_reorg): Call it.
4557
70cc1536
UB
45582013-05-23 Uros Bizjak <ubizjak@gmail.com>
4559
4560 PR target/57379
4561 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4562 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4563 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4564
b3851501
CB
45652013-05-23 Christian Bruel <christian.bruel@st.com>
4566
4567 PR debug/57351
4568 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4569
4e194912
CSS
45702013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4571 Marcus Shawcroft <marcus.shawcroft@arm.com>
4572
4573 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4574 * config/aarch64/constraints.md (Usa): Remove.
4575 * doc/md.texi (AArch64 Usa): Remove.
4576
83f8c414
CSS
45772013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4578 Marcus Shawcroft <marcus.shawcroft@arm.com>
4579
4580 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4581 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4582 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4583 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4584
b5574232
VP
45852013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4586
4587 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4588 instruction (AdvSIMD).
4589 * config/aarch64/aarch64-builtins.c
4590 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4591 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4592
76c36cb1 45932013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
4594
4595 PR middle-end/57347
4596 * tree.h (contains_bitfld_component_ref_p): Declare.
4597 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
4598 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4599 caller.
7d2fb524
MJ
4600 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4601 not access a bit-field. Assert all final offsets are byte-aligned.
4602
ce521ae6
RB
46032013-05-23 Richard Biener <rguenther@suse.de>
4604
4605 PR tree-optimization/57380
4606 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4607 least one invariant or re-used load.
4608 * passes.c (init_optimization_passes): Move pass_phiprop before
4609 pass_forwprop.
4610
75c7257f
JG
46112013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4612
4613 * config/aarch64/aarch64-simd.md
4614 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4615
af6d44b5
RB
46162013-05-23 Richard Biener <rguenther@suse.de>
4617
4618 PR middle-end/57381
4619 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4620 OEP_CONSTANT_ADDRESS_OF retained.
4621
bd3647bf
JJ
46222013-05-23 Jakub Jelinek <jakub@redhat.com>
4623
4624 PR middle-end/57344
70cc1536
UB
4625 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4626 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 4627
a55757ea
RB
46282013-05-23 Richard Biener <rguenther@suse.de>
4629
4630 PR rtl-optimization/57341
4631 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4632 instead of true_dependence.
4633
cfb00b41
DM
46342013-05-22 David Malcolm <dmalcolm@redhat.com>
4635
dd1c676f
DM
4636 * bb-reorder.c (branch_threshold): Make const.
4637 (exec_threshold): Ditto.
cfb00b41 4638
f62511da
MM
46392013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4640 Pat Haugen <pthaugen@us.ibm.com>
4641 Peter Bergner <bergner@vnet.ibm.com>
4642
4643 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4644 documentation for the power8 crypto builtins.
4645
4646 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4647
4648 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4649 macros for defining power8 builtin functions.
4650 (BU_P8V_AV_2): Likewise.
4651 (BU_P8V_AV_P): Likewise.
4652 (BU_P8V_VSX_1): Likewise.
4653 (BU_P8V_OVERLOAD_1): Likewise.
4654 (BU_P8V_OVERLOAD_2): Likewise.
4655 (BU_CRYPTO_1): Likewise.
4656 (BU_CRYPTO_2): Likewise.
4657 (BU_CRYPTO_3): Likewise.
4658 (BU_CRYPTO_OVERLOAD_1): Likewise.
4659 (BU_CRYPTO_OVERLOAD_2): Likewise.
4660 (XSCVSPDP): Fix typo, point to the correct instruction.
4661 (VCIPHER): Add power8 crypto builtins.
4662 (VCIPHERLAST): Likewise.
4663 (VNCIPHER): Likewise.
4664 (VNCIPHERLAST): Likewise.
4665 (VPMSUMB): Likewise.
4666 (VPMSUMH): Likewise.
4667 (VPMSUMW): Likewise.
4668 (VPERMXOR_V2DI): Likewise.
4669 (VPERMXOR_V4SI: Likewise.
4670 (VPERMXOR_V8HI: Likewise.
4671 (VPERMXOR_V16QI: Likewise.
4672 (VSHASIGMAW): Likewise.
4673 (VSHASIGMAD): Likewise.
4674 (VPMSUM): Likewise.
4675 (VPERMXOR): Likewise.
4676 (VSHASIGMA): Likewise.
4677
4678 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4679 __CRYPTO__ if the crypto instructions are available.
4680 (altivec_overloaded_builtins): Add support for overloaded power8
4681 builtins.
4682
4683 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4684 support for power8 crypto builtins.
4685 (builtin_function_type): Likewise.
4686 (altivec_init_builtins): Add support for builtins that take vector
4687 long long (V2DI) arguments.
4688
4689 * config/rs6000/crypto.md: New file, define power8 crypto
4690 instructions.
4691
46922013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4693 Pat Haugen <pthaugen@us.ibm.com>
4694 Peter Bergner <bergner@vnet.ibm.com>
4695
4696 * doc/invoke.texi (Option Summary): Add power8 options.
4697 (RS/6000 and PowerPC Options): Likewise.
4698
4699 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4700 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4701 wm, wn, wr documentation.
4702
4703 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4704 registers if direct move instructions are enabled.
4705 (wn): New constraint for no registers.
4706 (wq): New constraint for quad word even GPR registers.
4707 (wr): New constraint if 64-bit instructions are enabled.
4708 (wv): New constraint if power8 vector instructions are enabled.
4709 (wQ): New constraint for quad word memory locations.
4710
4711 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4712 constraint for 0..15 for crypto instructions.
4713 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4714 as GPR and floating point registers.
4715 (int_reg_operand): New predicate to match only GPR registers.
4716 (base_reg_operand): New predicate to match base registers.
4717 (quad_int_reg_operand): New predicate to match even GPR registers
4718 for quad memory operations.
4719 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4720 operations in both GPR and VSX registers.
4721 (quad_memory_operand): New predicate for quad memory operations.
4722 (reg_or_indexed_operand): New predicate for direct move support.
4723
4724 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4725 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4726 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4727 (POWERPC_MASKS): Add power8 options.
4728 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4729 various options.
4730
4731 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4732 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4733
4734 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4735 (-mpower8-fusion): New power8 options.
4736 (-mpower8-fusion-sign): Likewise.
4737 (-mpower8-vector): Likewise.
4738 (-mcrypto): Likewise.
4739 (-mdirect-move): Likewise.
4740 (-mquad-memory): Likewise.
4741
4742 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4743 power8.
4744 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4745 registers.
70cc1536 4746 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
4747 (rs6000_debug_vector_unit): Add p8_vector.
4748 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4749 definitions. Also print fusion state.
4750 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4751 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4752 (rs6000_option_override_internal): Add support for power8.
4753 (rs6000_common_init_builtins): Add debugging for skipped builtins
4754 if -mdebug=builtin.
4755 (rs6000_adjust_cost): Add power8 support.
4756 (rs6000_issue_rate): Likewise.
4757 (insn_must_be_first_in_group): Likewise.
4758 (insn_must_be_last_in_group): Likewise.
4759 (force_new_group): Likewise.
4760 (rs6000_register_move_cost): Likewise.
4761 (rs6000_opt_masks): Likewise.
4762
4763 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4764 power8 capable assembler, default to power7 options.
4765 (TARGET_DIRECT_MOVE): Likewise.
4766 (TARGET_CRYPTO): Likewise.
4767 (TARGET_P8_VECTOR): Likewise.
4768 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4769 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4770 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4771 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4772 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4773 (TARGET_XSCVDPSPN): Likewise.
4774 (TARGET_XSCVSPDPN): Likewsie.
4775 (TARGET_SYNC_HI_QI): Likewise.
4776 (TARGET_SYNC_TI): Likewise.
4777 (MASK_CRYPTO): Likewise.
4778 (MASK_DIRECT_MOVE): Likewise.
4779 (MASK_P8_FUSION): Likewise.
4780 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
4781 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4782 temporary used by some of the direct move instructions to get two FP
4783 temporary registers does not force creation of a stack frame.
f62511da
MM
4784 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4785 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4786 that any VSX registers are tieable, even if they are also an
4787 Altivec vector mode.
4788 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4789 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4790 (RS6000_BTM_CRYPTO): Likewise.
4791 (RS6000_BTM_COMMON): Likewise.
4792
4793 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4794 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4795 (enum rs6000_vector): Add power8 vector support.
4796
73a1a707
RR
47972013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4798
4799 PR target/19599
4800 PR target/57340
4801 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4802 (any_sibcall_could_use_r3): this and handle indirect calls.
4803 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4804
d28073d4
BS
48052013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4806
4807 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4808
bee0b10c
RB
48092013-05-22 Richard Biener <rguenther@suse.de>
4810
4811 PR middle-end/57349
4812 * profile.c (branch_prob): Do not split blocks that are
4813 abnormally receiving from ECF_RETURNS_TWICE functions.
4814
98409b51
RS
48152013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4816
4817 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4818 address mode. Move pointer mode initialization to the same place.
4819
c0602ab8
MZ
48202013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4821
4822 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4823 while it has any effect.
4824
4f7a634e
ER
48252013-05-21 Easwaran Raman <eraman@google.com>
4826
4827 PR tree-optimization/57322
9daf6dbb
ER
4828 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4829 UID of the statement added to the BB to be 1.
4f7a634e 4830
a4ce1258
JJ
48312013-05-21 Jakub Jelinek <jakub@redhat.com>
4832
4833 PR tree-optimization/57331
70cc1536
UB
4834 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4835 of conversion from pointer type to integral type with integer.
a4ce1258 4836
1b14621a
MJ
48372013-05-21 Martin Jambor <mjambor@suse.cz>
4838
4839 PR lto/57289
4840 * ipa-prop.c (ipa_read_node_info): Process param_used and
4841 controlled_uses in the same order as when writing.
4842
e60661f0
MG
48432013-05-21 Magnus Granberg <baldrick@free.fr>
4844
4845 PR plugins/56754
ee49aa34 4846 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 4847
4a61be9a
RB
48482013-05-21 Richard Biener <rguenther@suse.de>
4849
4850 PR tree-optimization/57318
4851 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4852 estimate stmts with side-effects as likely eliminated.
4853
c52da5f7
RB
48542013-05-21 Richard Biener <rguenther@suse.de>
4855
4856 PR tree-optimization/57330
4857 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4858 preserve the call stmts fntype.
4859
7ec67e2a
RB
48602013-05-21 Richard Biener <rguenther@suse.de>
4861
4862 PR tree-optimization/57303
4863 * tree-ssa-sink.c (statement_sink_location): Improve killing
4864 stmt detection and properly handle self-assignments.
4865
b112d513
CB
48662013-05-21 Christian Bruel <christian.bruel@st.com>
4867
55805e54
YR
4868 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4869 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
4870 registers. Set register size out of the PARALLEL loop.
4871
14c2ec26
OE
48722013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4873
4874 PR target/56547
4875 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4876 (*fmasf4, *fmasf4_media): New insns.
4877
da734fa1
RS
48782013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4879
4880 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4881 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4882 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4883 (mips_idiv_insns): Update the comments to say that the returned
4884 instruction counts are in units of BASE_INSN_LENGTH.
4885 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4886 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4887 using 2 rather than 4 as the length of indirect MIPS16 and
4888 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4889 length of a NOP. Don't divide MIPS16 lengths by 2.
4890 (mips16_split_long_branches): Assume a branch is long if the
4891 length is greater than 4 rather than 8.
4892 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4893 rather than multiplying them by 2. Multiply instruction counts
4894 by BASE_INSN_LENGTH rather than 4.
4895 (*jump_mips16, tls_get_tp_mips16_<mode>)
4896 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4897
13719e8b
RS
48982013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4899
4900 * config/mips/mips.md (extended_mips16): Remove branch case.
4901 (length): Remove duplicated extended_mips16 test.
4902
c3850d14
RS
49032013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4904
4905 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4906
8da2e059
RS
49072013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4908
4909 * recog.h (Recog_data): Rename to...
4910 (recog_data_d): ...this.
4911 (recog_data): Update accordingly.
4912 * recog.c (recog_data): Likewise.
4913 * reload.c (save_recog_data): Likewise.
4914 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4915 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4916
2df013f3
JB
49172013-05-17 Julian Brown <julian@codesourcery.com>
4918
4919 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4920 found in a REG_EQUAL note, invalidate it.
4921
371e77e3 49222013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
4923
4924 * tree-ssa-reassoc.c (find_insert_point): New function.
4925 (insert_stmt_after): Likewise.
4926 (get_def_stmt): Likewise.
4927 (ensure_ops_are_available): Likewise.
4928 (not_dominated_by): Likewise.
4929 (rewrite_expr_tree): Do not move statements beyond what is
4930 necessary. Remove call to swap_ops_for_binary_stmt...
4931 (reassociate_bb): ... and move it here.
4932 (build_and_add_sum): Assign UIDs for new statements.
4933 (linearize_expr): Likewise.
4934 (do_reassoc): Renumber gimple statement UIDs.
4935
e01c7cca
JH
49362013-05-17 Jan Hubicka <jh@suse.cz>
4937
4938 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4939 weakrefs.
4940 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
4941 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4942 weakrefs.
e01c7cca
JH
4943 (output_weakrefs): Update.
4944
c3272a92
PCC
49452013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4946 Martin Jambor <mjambor@suse.cz>
4947
4948 PR middle-end/57276
4949 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4950 value that corresponds to the given aggval is found in values vector.
4951
11c2aa39
UB
49522013-05-17 Uros Bizjak <ubizjak@gmail.com>
4953
4954 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4955 sse, sse2, sse3, ssse3 and sse4a flags to options.
4956
abecc8c6
DM
49572013-05-17 David Malcolm <dmalcolm@redhat.com>
4958
4959 * gengtype-state.c: (s_expr_writer): New class, to handle
4960 prettifying of output layout of s-expressions.
4961 (state_writer): New class, to write out gtype.state.
4962 (state_written_type_count): Move this variable into member data of
4963 state_writer.
4964 (s_expr_writer::s_expr_writer): New code: constructor for new class
4965 (state_writer::state_writer(): ditto
4966 (s_expr_writer::write_new_line): New function
4967 (s_expr_writer::write_any_indent): ditto
4968 (s_expr_writer::begin_s_expr): ditto
4969 (s_expr_writer::end_s_expr): ditto
4970 (write_state_fileloc): convert to method of state_writer...
4971 (state_writer:: write_state_fileloc): ...and use methods of
4972 s_expr_writer to write indentation into the gtype.state output file
4973 to visually represent the hierarchical structure of the list
4974 structures
4975 (write_state_fields): ditto, renaming to...
4976 (state_writer::write_state_fields)
4977 (write_state_a_string): ditto, renaming to...
4978 (state_writer::write_state_a_string)
4979 (write_state_string_option): ditto, renaming to...
4980 (state_writer::write_state_string_option)
4981 (write_state_type_option): ditto, renaming to...
4982 (state_writer::write_state_type_option)
4983 (write_state_nested_option): ditto, renaming to...
4984 (state_writer::write_state_nested_option)
4985 (write_state_option): ditto, renaming to...
4986 (state_writer::write_state_option)
4987 (write_state_options): ditto, renaming to...
4988 (state_writer::write_state_options)
4989 (write_state_lang_bitmap): ditto, renaming to...
4990 (state_writer::write_state_lang_bitmap)
4991 (write_state_version): ditto, renaming to...
4992 (state_writer::write_state_version)
4993 (write_state_scalar_type): ditto, renaming to...
4994 (state_writer::write_state_scalar_type)
4995 (write_state_string_type): ditto, renaming to...
4996 (state_writer::write_state_string_type)
4997 (write_state_undefined_type): ditto, renaming to...
4998 (state_writer::write_state_undefined_type)
4999 (write_state_struct_union_type): ditto, renaming to...
5000 (state_writer::write_state_struct_union_type)
5001 (write_state_struct_type): ditto, renaming to...
5002 (state_writer::write_state_struct_type)
5003 (write_state_user_struct_type): ditto, renaming to...
5004 (state_writer::write_state_user_struct_type)
5005 (write_state_lang_struct_type): ditto, renaming to...
5006 (state_writer::write_state_lang_struct_type)
5007 (write_state_param_struct_type): ditto, renaming to...
5008 (state_writer::write_state_param_struct_type)
5009 (write_state_pointer_type): ditto, renaming to...
5010 (state_writer::write_state_pointer_type)
5011 (write_state_array_type): ditto, renaming to...
5012 (state_writer::write_state_array_type)
5013 (write_state_gc_used): ditto, renaming to...
5014 (state_writer::write_state_gc_used)
5015 (write_state_common_type_content): ditto, renaming to...
5016 (state_writer::write_state_common_type_content)
5017 (write_state_type): ditto, renaming to...
5018 (state_writer::write_state_type)
5019 (write_state_pair_list): ditto, renaming to...
5020 (state_writer::write_state_pair_list)
5021 (write_state_pair): ditto, renaming to...
5022 (state_writer::write_state_pair)
5023 (write_state_typedefs): ditto, renaming to...
5024 (state_writer::write_state_typedefs)
5025 (write_state_structures): ditto, renaming to...
5026 (state_writer::write_state_structures)
5027 (write_state_param_structs): ditto, renaming to...
5028 (state_writer::write_state_param_structs)
5029 (write_state_variables): ditto, renaming to...
5030 (state_writer::write_state_variables)
5031 (write_state_srcdir): ditto, renaming to...
5032 (state_writer::write_state_srcdir)
5033 (write_state_files_list): ditto, renaming to...
5034 (state_writer::write_state_files_list)
5035 (write_state_languages): ditto, renaming to...
5036 (state_writer::write_state_languages)
5037 (write_state): create a state_writer instance and use it when
5038 writing out the state file
5039
d6545f29
MS
50402013-05-17 Mike Stump <mikestump@comcast.net>
5041
816a3f73 5042 PR rtl-optimization/57304
d6545f29
MS
5043 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5044 accessing DF_REF_REAL_LOC.
5045
38c821cf
JJ
50462013-05-17 Jakub Jelinek <jakub@redhat.com>
5047
5048 PR rtl-optimization/57281
5049 PR rtl-optimization/57300
5050 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5051 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5052 what the other splitter did if the registers are dead.
5053
2a293391
RB
50542013-05-17 Richard Biener <rguenther@suse.de>
5055
5056 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5057 MEM_REF offsets.
5058
17042d2b
JJ
50592013-05-17 Jakub Jelinek <jakub@redhat.com>
5060
5061 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5062 linking.
5063
5b115c1f
MP
50642013-05-17 Marek Polacek <polacek@redhat.com>
5065
11c2aa39
UB
5066 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5067 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 5068
52d84413
JJ
50692013-05-17 Jakub Jelinek <jakub@redhat.com>
5070
68119618
JJ
5071 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5072 vect_external_def oprnd1 with loop_vinfo, try to emit
5073 optional cast, negation and and stmts on the loop preheader
5074 edge instead of into the pattern def seq.
5075
52d84413
JJ
5076 PR tree-optimization/57051
5077 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5078 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5079
17b962bd
NC
50802013-05-16 Nick Clifton <nickc@redhat.com>
5081
5082 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5083 (rl78_is_naked_func): New function.
56aefbf7
UB
5084 (rl78_expand_prologue): Skip prologue generation for naked functions.
5085 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
5086 * doc/extend.texi (naked): Add RL78 to the list of processors
5087 that supports this attribute.
5088
b1a0f84e
JL
50892013-05-16 Jeff Law <law@redhat.com>
5090
5091 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5092
af0e415b
UB
50932013-05-16 Uros Bizjak <ubizjak@gmail.com>
5094
5095 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5096 cache parameters using detect_caches_amd also for CYRIX,
5097 NSC and TM2 signatures.
5098
19db293a
UB
50992013-05-16 Uros Bizjak <ubizjak@gmail.com>
5100 Dzianis Kahanovich <mahatma@eu.by>
5101
5102 PR target/45359
5103 PR target/46396
5104 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5105 VIA/Centaur processors and determine their cache parameters
5106 using detect_caches_amd.
5107
251a41b9
TJ
51082013-05-16 Teresa Johnson <tejohnson@google.com>
5109
5110 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5111 (rtl_verify_edges): New function.
5112 (rtl_verify_bb_insns): Ditto.
5113 (rtl_verify_bb_pointers): Ditto.
5114 (rtl_verify_bb_insn_chain): Ditto.
5115 (rtl_verify_fallthru): Ditto.
5116 (rtl_verify_bb_layout): Ditto.
5117 (rtl_verify_flow_info_1): Outline checks into new functions.
5118 (rtl_verify_flow_info): Ditto.
5119
f14540b6
SE
51202013-05-16 Steve Ellcey <sellcey@imgtec.com>
5121
5122 * cfghooks.c (copy_bbs): Add update_dominance argument.
5123 * cfghooks.h (copy_bbs): Update prototype.
5124 * tree-cfg.c (gimple_duplicate_sese_region):
5125 Add update_dominance argument.
5126 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5127 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5128 gimple_duplicate_sese_region call.
5129 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5130 Update copy_bbs call.
5131 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5132 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5133
7e9a3abb
JJ
51342013-05-16 Jakub Jelinek <jakub@redhat.com>
5135
5136 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5137 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5138 vect_recog_rotate_pattern.
5139 (vect_recog_rotate_pattern): New function.
5140
427b248d
JM
51412013-05-16 Jason Merrill <jason@redhat.com>
5142
5143 * Makefile.in (LLINKER): New variable.
5144 (mostlyclean): Remove link mutex.
5145 * configure.ac: Handle --enable-link-mutex.
5146 * lock-and-run.sh: New script.
5147
b871e3d2
RR
51482013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5149
5150 PR target/19599
5151 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5152 for NULL decl.
5153
ce858126
RO
51542013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5155
5156 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5157
798d3d04
GY
51582013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5159
5160 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5161 * config/arm/arm.c (next_consecutive_mem): New function.
5162 (gen_movmem_ldrd_strd): Likewise.
5163 * config/arm/arm.md (movmemqi): Update condition and code.
5164 (unaligned_loaddi, unaligned_storedi): New patterns.
5165
0baddc45
RO
51662013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5167
5168 * config.gcc: Obsolete *-*-solaris2.9*.
5169 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5170
aa9d5bcf
RB
51712013-05-16 Richard Biener <rguenther@suse.de>
5172
5173 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5174 earlier, after GRAPHITE transforms and IV canonicalization.
5175
5a0f4dd3
JJ
51762013-05-16 Jakub Jelinek <jakub@redhat.com>
5177
5178 * omp-low.c (extract_omp_for_data): For collapsed loops,
5179 if at least one of the loops is known at compile time to
5180 iterate zero times, set count to 0.
5181 (expand_omp_regimplify_p): New function.
5182 (expand_omp_for_generic): For collapsed loops, if at least
5183 one of the loops isn't known to iterate at least once,
5184 add runtime check with setting count to 0.
5185 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5186 For unsigned types if it isn't known at compile time that
5187 the loop will iterate at least once, add runtime check to bypass
5188 the whole loop if initial condition isn't true.
5189
e3753785
NS
51902013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5191
5192 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5193
43bb4dd1
MG
51942013-05-16 Marc Glisse <marc.glisse@inria.fr>
5195
5196 PR middle-end/57286
5197 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5198 transformations to avoid an infinite loop.
5199
3571dde6
MP
52002013-05-16 Marek Polacek <polacek@redhat.com>
5201
5202 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5203
b8b3f0ca
LE
52042013-05-15 Leif Ekblad <leif@rdos.net>
5205
5206 * config/i386/i386.c (ix86_decompose_address): Use
5207 DEFAULT_TLS_SEG_REG to access TLS segment register.
5208 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5209 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5210 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5211
e299a383
RS
52122013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5213
5214 PR target/57260
5215 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5216 sibling calls to functions that would normally be lazily bound,
5217 unless $gp is call-clobbered.
5218
e7208ea3
UB
52192013-05-15 Uros Bizjak <ubizjak@gmail.com>
5220
19db293a 5221 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 5222 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
5223 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5224 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
5225 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5226 of TARGET_3DNOW.
5227 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5228
e7413f3d
AS
52292013-05-15 Andreas Schwab <schwab@suse.de>
5230
5231 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5232 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5233 third operand.
5234
ad4db775
TJ
52352013-05-15 Teresa Johnson <tejohnson@google.com>
5236
5237 * loop-unroll.c (report_unroll_peel): Check decision before
5238 emitting unroll/peel message.
5239
af205f67
TJ
52402013-05-15 Teresa Johnson <tejohnson@google.com>
5241
5242 * function.h (has_bb_partition): New rtl_data flag.
5243 (bb_reorder_complete): Ditto.
5244 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5245 instead of flag_reorder_blocks_and_partition.
5246 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5247 with some enhancements.
5248 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5249 * bb-reorder.c (connect_traces): Check for has_bb_partition
5250 instead of flag_reorder_blocks_and_partition.
5251 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5252 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5253 verify_hot_cold_block_grouping.
5254 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5255
9adcfa3c
RR
52562013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5257
5258 PR target/19599
5259 * config/arm/predicates.md (call_insn_operand): New predicate.
5260 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5261 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5262 if insn is not a tail call.
5263 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5264 registers.
5265 * config/arm/arm.h (enum reg_class): New caller save register class.
5266 (REG_CLASS_NAMES): Likewise.
5267 (REG_CLASS_CONTENTS): Likewise.
5268 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5269 without decls.
5270
ccb3ad87
RB
52712013-05-15 Richard Biener <rguenther@suse.de>
5272
5273 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5274 of MSG_OPTIMIZED_LOCATIONS.
5275 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5276 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5277 message.
5278 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5279 of MSG_OPTIMIZED_LOCATIONS.
5280 (execute_vect_slp): Likewise.
5281 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5282 (vect_create_cond_for_alias_checks): Likewise.
5283 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5284 (vect_recog_widen_mult_pattern): Likewise.
5285 (vect_recog_widen_sum_pattern): Likewise.
5286 (vect_recog_over_widening_pattern): Likewise.
5287 (vect_recog_widen_shift_pattern): Likewise.
5288 (vect_recog_vector_vector_shift_pattern): Likewise.
5289 (vect_recog_divmod_pattern): Likewise.
5290 (vect_recog_mixed_size_cond_pattern): Likewise.
5291 (vect_recog_bool_pattern): Likewise.
5292 (vect_pattern_recog_1): Likewise.
5293
48b1474e
MJ
52942013-05-15 Martin Jambor <mjambor@suse.cz>
5295
5296 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5297 non-functions to builtin_unreachable.
5298 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5299 correct when new direct edges were discovered.
5300
9de04252
MJ
53012013-05-15 Martin Jambor <mjambor@suse.cz>
5302
5303 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5304 header, print symbol order instead of node uid, print more information
5305 about indirect edge targets.
5306 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5307 uids.
5308 (ipa_make_edge_direct_to_target): Likewise.
5309 (remove_described_reference): Likewise.
5310 (propagate_controlled_uses): Likewise.
5311 (ipa_print_node_params): Also print symbol order.
5312 (ipcp_transform_function): Print symbol order instead of node uids.
5313 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5314 (cgraph_get_create_real_symbol_node): Likewise.
5315 * ipa-cp.c (print_lattice): Likewise.
5316 (print_all_lattices): Likewise.
5317 (determine_versionability): Likewise.
5318 (initialize_node_lattices): Likewise.
5319 (estimate_local_effects): Likewise.
5320 (update_profiling_info): Likewise.
5321 (create_specialized_node): Likewise.
5322 (perhaps_add_new_callers): Likewise.
5323 (decide_about_value): Likewise.
5324 (decide_whether_version_node): Likewise.
5325 (identify_dead_nodes): Likewise.
5326 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5327 (dump_inline_summary): Likewise.
5328 (estimate_node_size_and_time): Likewise.
5329 (inline_analyze_function): Likewise.
5330 * ipa-inline.c (report_inline_failed_reason): Likewise.
5331 (want_early_inline_function_p): Likewise.
5332 (edge_badness): Likewise.
5333 (update_edge_key): Likewise.
5334 (inline_small_functions): Likewise. Add dumping of order to two other
5335 dumps.
5336 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5337 instead of node uids.
5338 (propagate_pure_const): Likewise.
5339 (propagate_pure_const): Likewise.
5340 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5341 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5342 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5343 of node uids.
5344 * tree-pretty-print.c (dump_function_header): Likewise.
5345 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5346 Print symbol order instead of node uids.
5347
1dd03b91
AK
53482013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5349
5350 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5351 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5352
fdf6a7b9
RB
53532013-05-15 Richard Biener <rguenther@suse.de>
5354
5355 PR tree-optimization/57275
5356 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5357 return value for fail to do runtime alias checks for gather loads.
5358
2d6e4603
JH
53592013-05-15 Jan Hubicka <jh@suse.cz>
5360
5361 PR lto/57038
5362 PR lto/47375
e7208ea3
UB
5363 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5364 weakrefs are not external.
5365 (lto_symtab_merge_decls): Fix thinko when dealing with
5366 non-lto_symtab decls.
2d6e4603
JH
5367 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5368 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5369 * varpool.c (dump_varpool_node): Dump more flags.
5370
83f44b39
GG
53712013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5372
5373 * config/i386/i386.c (processor_alias_table): Add instruction
5374 FSGSBASE for AMD bdver3 architecture.
5375
2e55d062
JJ
53762013-05-14 Jakub Jelinek <jakub@redhat.com>
5377
5378 * tree.c (warn_deprecated_use): Print file:line using locus color.
5379 * diagnostic.c (diagnostic_report_current_module): Print file:line
5380 and file:line:column using locus color.
5381
0bfdb81e
MS
53822013-05-14 Mike Stump <mikestump@comcast.net>
5383
5384 * gdbinit.in: Add __null.
5385
a508ef22
MS
53862013-05-14 Mike Stump <mikestump@comcast.net>
5387
5388 * recog.h: Rename struct recog_data to Recog_data.
5389 * recog.c: Likewise.
5390 * reload.c (can_reload_into): Likewise.
5391 * config/picochip/picochip.c: Likewise.
5392
e7180acb
MS
53932013-05-14 Mike Stump <mikestump@comcast.net>
5394
5395 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5396
61216c26
SB
53972013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5398
fd6beed4
SB
5399 * resource.h (struct resources): Remove unch_memory member.
5400 (CLEAR_RESOURCE): Don't clear unch_memory.
5401 * resource.c (mark_referenced_resources): Don't set it.
5402 (mark_set_resources): Likewise.
5403 (mark_target_live_regs): Don't clear it.
5404 (init_resource_info): Likewise.
5405 * reorg.c (resource_conflicts_p): Don't compare it.
5406 (redundant_insn): Don't set it.
5407
61216c26
SB
5408 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5409 Remove prototypes.
5410 * emit-rtl.c (next_label): Remove unused function.
5411 (skip_consecutive_labels, link_cc0_insns): Move to ...
5412 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5413 only place where these functions are used, and make them static.
5414
418d1b87
MG
54152013-05-14 Marc Glisse <marc.glisse@inria.fr>
5416
5417 * fold-const.c (fold_negate_expr): Handle vectors.
5418 (fold_truth_not_expr): Make it static.
5419 (fold_invert_truthvalue): New static function.
5420 (invert_truthvalue_loc): Handle vectors. Do not call
5421 fold_truth_not_expr directly.
5422 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5423 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5424 (fold_comparison): Handle vector constants.
5425 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5426 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5427 * tree.h (fold_truth_not_expr): Remove declaration.
5428
fc21784d
JG
54292013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5430
5431 * config/aarch64/aarch64-simd.md
5432 (aarch64_vcond_internal<mode>): Rename to...
5433 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5434 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5435 float modes. Clarify all iterator modes.
5436 (vcond<mode><mode>): Use new name for vcond expanders.
5437 (vcond<v_cmp_result><mode>): Likewise.
5438 (vcondu<mode><mode>: Likewise.
5439 * config/aarch64/iterators.md (VDQF_COND): New.
5440
d4c52634
MG
54412013-05-14 Marc Glisse <marc.glisse@inria.fr>
5442
5443 PR bootstrap/57266
5444 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5445 variable for the shift amount. Check that we shift by non-negative
5446 amounts.
5447
2b261262
CLT
54482013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5449
5450 PR target/42017
5451 * config/arm/arm.h (EPILOGUE_USES): Only return true
5452 for LR_REGNUM after epilogue_completed.
5453
6e022d7b
JR
54542013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5455
5456 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 5457 is error_mark_node.
6e022d7b 5458
56cf7859
RO
54592013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5460
5461 PR target/57261
5462 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5463 and Solaris 11+/x86 with gld.
5464 * configure: Regenerate.
5465
75776c6d
JJ
54662013-05-14 Jakub Jelinek <jakub@redhat.com>
5467
5468 * expmed.c (expand_shift_1): Canonicalize rotates by
5469 constant bitsize / 2 to bitsize - 1.
7f998021 5470 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
5471 case ROTATERT>: Likewise.
5472
5473 Revert:
5474 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5475
5476 * config/i386/i386.md (rotateinv): New code attr.
5477 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5478 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5479 roll $31, %eax, etc.
5480
df35498a
RB
54812013-05-14 Richard Biener <rguenther@suse.de>
5482
5483 PR middle-end/57235
5484 * tree-eh.c (sink_clobbers): Give up for successors with
5485 multiple predecessors and no virtual uses.
5486
cc6e7ece
EB
54872013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5488
5489 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5490 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5491
f778dd4d
JJ
54922013-05-14 Jakub Jelinek <jakub@redhat.com>
5493
5494 PR middle-end/57251
5495 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5496 the case when both op0 and op1 have VOIDmode.
5497
bad4df9b
KP
54982013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5499
5500 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5501 in multiply-accumulate mode.
5502
56f3e9ac
GW
55032013-05-13 Guozhi Wei <carrot@google.com>
5504
5505 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5506
a3d7ab92
KT
55072013-05-13 Kai Tietz <ktietz@redhat.com>
5508
5509 PR target/56975
5510 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 5511 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 5512 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 5513 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
5514 (ix86_expand_prologue): Likewise.
5515 (ix86_expand_split_stack_prologue): Likewise.
5516 (legitimate_pic_address_disp_p): Likewise.
5517 (legitimize_pic_address): Likewise.
5518 (legitimize_tls_address): Likewise.
5519 (legitimize_pe_coff_symbol): Likewise.
5520 (output_pic_addr_const): Likewise.
5521 (construct_plt_address): Likewise.
5522 (ix86_expand_call): Likewise.
5523 (x86_output_mi_thunk): Likewise.
5524 (x86_function_profiler): Likewise.
5525
c59b7e28
SN
55262013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5527
5528 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5529 similar switch cases.
5530 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5531 (aarch64_simd_mov_to_<mode>low): Delete.
5532 (aarch64_simd_mov_to_<mode>high): Delete.
5533 (move_lo_quad_<mode>): Add w<-r alternative.
5534 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5535 (aarch64_simd_mov_from_*): Update type attribute.
5536 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5537 statement.
5538
5f28524a
JH
55392013-05-13 Jan Hubicka <jh@suse.cz>
5540
5541 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5542 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
5543 ix86_expand_epilogue, emit_i387_cw_initialization,
5544 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5545 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 5546
ae6fa899
JJ
55472013-05-13 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR tree-optimization/45216
5550 PR tree-optimization/57157
5551 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5552 the (-Y) & (B - 1) variant if OP is |.
5553 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5554 return shifted. Use (-op1) & (prec - 1) as other_amount
5555 instead of prec - op1.
5556
4502fe8d
MJ
55572013-05-13 Martin Jambor <mjambor@suse.cz>
5558
5559 PR middle-end/42371
5560 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5561 (ipa_constant_data): New type.
5562 (ipa_jump_func): Use ipa_constant_data to hold information about
5563 constant jump functions.
5564 (ipa_get_jf_constant): Adjust to jump function type changes.
5565 (ipa_get_jf_constant_rdesc): New function.
5566 (ipa_param_descriptor): New field controlled_uses.
5567 (ipa_get_controlled_uses): New function.
5568 (ipa_set_controlled_uses): Likewise.
5569 * ipa-ref.h (ipa_find_reference): Declare.
5570 * ipa-prop.c (ipa_cst_ref_desc): New type.
5571 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5572 changes.
5573 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5574 New parameter cs. Adjust all callers.
5575 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5576 (remove_described_reference): New function.
5577 (jfunc_rdesc_usable): Likewise.
5578 (try_make_edge_direct_simple_call): Decrement controlled use count,
5579 attempt to remove reference if it hits zero.
5580 (combine_controlled_uses_counters): New function.
5581 (propagate_controlled_uses): Likewise.
5582 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5583 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5584 (ipa_print_node_params): Print described use counter.
5585 (ipa_write_jump_function): Adjust to jump function type changes.
5586 (ipa_read_jump_function): New parameter CS, pass it to
5587 ipa_set_jf_constant. Adjust caller.
5588 (ipa_write_node_info): Stream controlled use count
5589 (ipa_read_node_info): Likewise.
5590 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5591 asserting.
5592 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5593 count. Remove cloning-added reference if it reaches zero.
5594 * ipa-ref.c (ipa_find_reference): New function.
5595
0864bfc2
GG
55962013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5597
e7208ea3 5598 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
5599 alignment values for AMD BD and BT architectures.
5600
640bfeb2
MG
56012013-05-13 Marc Glisse <marc.glisse@inria.fr>
5602
5603 * tree-vect-generic.c (uniform_vector_p): Move ...
5604 * tree.c (uniform_vector_p): ... here.
5605 * tree.h (uniform_vector_p): Declare it.
5606 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5607 into a scalar.
5608
3a60f32b
JJ
56092013-05-13 Jakub Jelinek <jakub@redhat.com>
5610
198fe1bf
JJ
5611 PR tree-optimization/57230
5612 * tree-ssa-strlen.c (handle_char_store): Record length for
5613 array store from STRING_CST.
5614
3a60f32b
JJ
5615 PR tree-optimization/57230
5616 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5617 check.
5618
566be57c
JR
56192013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5620
5621 * config/epiphany/epiphany.c (epiphany_init): Check size of
5622 NUM_MODES_FOR_MODE_SWITCHING.
5623 (epiphany_expand_prologue):
5624 Remove CONFIG_REGNUM initial value handling code.
5625 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5626 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 5627 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
5628 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5629 Don't return 1 for FP_MODE_NONE.
5630 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5631 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5632 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5633 * config/epiphany/epiphany.md (save_config): New pattern.
5634
0f2c2331
UB
56352013-05-12 Uros Bizjak <ubizjak@gmail.com>
5636
5637 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5638
5b3f93c7
UB
56392013-05-10 Uros Bizjak <ubizjak@gmail.com>
5640
5641 * config/i386/i386.md (memory): Handle sseishft1.
5642 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5643 (*vec_extractv2di_1): Ditto.
5644
1f873f0e
VM
56452013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5646
5647 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5648 saved registers.
5649
341427fa 56502013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
5651
5652 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5653 Add mthumb/march=armv7-a multilib.
5654 Add mthumb/march=armv7-r multilib.
5655 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5656
9e69bdde
RC
56572013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5658
5659 * config/v850/t-rtems: Add more multilibs.
5660
9ff09a22
RB
56612013-05-10 Richard Biener <rguenther@suse.de>
5662
5663 PR tree-optimization/57214
5664 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5665 not propagate from SSA names that occur in abnormal PHI nodes.
5666
a5e0cd1d
MG
56672013-05-10 Marc Glisse <marc.glisse@inria.fr>
5668
5669 * stor-layout.c (element_precision): New function.
5670 * machmode.h (element_precision): Declare it.
5671 * tree.c (build_minus_one_cst): New function.
5672 (element_precision): Likewise.
5673 * tree.h (build_minus_one_cst): Declare new function.
5674 (element_precision): Likewise.
5675 * fold-const.c (operand_equal_p): Use element_precision.
5676 (fold_binary_loc): Handle vector types.
5677 * convert.c (convert_to_integer): Use element_precision.
5678 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5679 separately.
5680
cb2558bc
RS
56812013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5682
5683 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5684 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5685 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5686 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5687 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5688 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5689 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5690 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5691 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5692 (Uuw8): New constraints.
5693 (Usb4): Move into alphabetical order.
5694 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5695 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5696 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5697 previously unnamed patterns.
5698 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5699 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5700 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5701 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5702 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5703 of specific lengths.
5704
cb3b8d33
JJ
57052013-05-10 Jakub Jelinek <jakub@redhat.com>
5706
6f93c008
JJ
5707 * config/i386/i386.md (rotateinv): New code attr.
5708 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5709 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5710 roll $31, %eax, etc.
5711
cb3b8d33
JJ
5712 PR tree-optimization/45216
5713 PR tree-optimization/57157
5714 * tree-ssa-forwprop.c (simplify_rotate): New function.
5715 (ssa_forward_propagate_and_combine): Call it.
5716
afb119be
RB
57172013-05-10 Richard Biener <rguenther@suse.de>
5718
5719 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5720 disable peeling when we version for aliasing.
5721 (vector_alignment_reachable_p): Honor explicit user alignment.
5722 (vect_supportable_dr_alignment): Likewise.
5723 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5724 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5725 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5726 then peeling to arrange for the cost-model check to come first.
5727
01ae4861
AM
57282013-05-10 Alan Modra <amodra@gmail.com>
5729
5730 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5731 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5732 * configure: Regenerate.
5733
ebc9a431
AM
57342013-05-10 Alan Modra <amodra@gmail.com>
5735
5736 PR target/55033
5737 * varasm.c (default_elf_select_section): Move !DECL_P check..
5738 (get_named_section): ..to here before calling get_section_name.
5739 Adjust assertion.
5740 (default_section_type_flags): Add DECL_P check.
5741 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5742 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5743
d4bca93c
JR
57442013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5745
5746 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5747 When using gen_stack_adjust_str with a register offset, add a
5748 REG_FRAME_RELATED_EXPR note.
5749
60ca9a65
UB
57502013-05-09 Uros Bizjak <ubizjak@gmail.com>
5751
5752 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5753 (*vec_extractv4si_zext_mem): Ditto.
5754 (*vec_extractv2di): Add 0->x and x->x alternatives.
5755 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5756 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5757
a3409c02
JM
57582013-05-09 Jason Merrill <jason@redhat.com>
5759
0138d6b2
JM
5760 N3639 C++1y VLA support
5761 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5762 DECL_VALUE_EXPR.
5763
a3409c02
JM
5764 * tree.c (build_constructor_va): New.
5765 * tree.h: Declare it.
5766
66e6b990
MJ
57672013-05-09 Martin Jambor <mjambor@suse.cz>
5768
5769 PR lto/57084
5770 * gimple-fold.c (canonicalize_constructor_val): Call
5771 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5772
64cfa6c0
JH
57732013-05-09 Jan Hubicka <jh@suse.cz>
5774 Richard Biener <rguenther@suse.de>
5775
5776 PR lto/54095
5777 * symtab.c (symtab_make_decl_local): Do not add private names.
5778
c3167b00
JH
57792013-05-09 Jan Hubicka <jh@suse.cz>
5780
5781 PR lto/54095
5782 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5783 (unlink_from_assembler_name_hash): Likewise.
5784 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5785 symtab_unregister_node, symtab_initialize_asm_name_hash,
5786 change_decl_assembler_name): Update.
5787
12dc6974
SN
57882013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5789
5790 * config/aarch64/aarch64.md: New movtf split.
5791 (*movtf_aarch64): Update.
5792 (aarch64_movdi_tilow): Handle TF modes and rename to
5793 aarch64_movdi_<mode>low.
5794 (aarch64_movdi_tihigh): Handle TF modes and rename to
5795 aarch64_movdi_<mode>high
5796 (aarch64_movtihigh_di): Handle TF modes and rename to
5797 aarch64_mov<mode>high_di
5798 (aarch64_movtilow_di): Handle TF modes and rename to
5799 aarch64_mov<mode>low_di
5800 (aarch64_movtilow_tilow): Remove spurious whitespace.
5801 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5802 splits.
5803 (aarch64_print_operand): Update.
5804
227eb343
AM
58052013-05-09 Alan Modra <amodra@gmail.com>
5806
5807 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5808 powerpc64le.
5809 * configure: Regenerate.
5810
0b013847
UB
58112013-05-08 Uros Bizjak <ubizjak@gmail.com>
5812
5813 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5814 splitter preparation statements.
5815 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5816 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5817 adjust_address_nv.
5818
1dc3d6e9
BS
58192013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5820
5821 * gimple-ssa-strength-reduction.c (count_candidates): Change
5822 return value to int.
5823 (analyze_candidates_and_replace): Change type of length to int.
5824
e61e7d28
UB
58252013-05-08 Uros Bizjak <ubizjak@gmail.com>
5826
5827 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5828 (*vec_extract<mode>): Use VI12_128 mode iterator.
5829 (*vec_extract<mode>_mem): Ditto.
5830 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5831 attribute.
5832
4fbfcf44
DN
58332013-05-08 Diego Novillo <dnovillo@google.com>
5834
5835 PR bootstrap/54659
5836
5837 Revert:
4fbfcf44
DN
5838 2012-08-17 Diego Novillo <dnovillo@google.com>
5839
e61e7d28
UB
5840 PR bootstrap/54281
5841 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5842 * config.in: Regenerate.
5843 * configure: Regenerate.
5844 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 5845
702d8703
JH
58462013-05-08 Jan Hubicka <jh@suse.cz>
5847
5848 PR lto/54095
5849 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5850 * cgraph.h (symtab_node_base): Add unique_name.
5851 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5852 input_overwrite_node, input_varpool_node): Stream unique_name.
5853 * cgraphclones.c (cgraph_create_virtual_clone,
5854 cgraph_function_versioning): Set unique_name.
5855 * ipa.c (function_and_variable_visibility): Set unique_name.
5856
8b28cf47
BS
58572013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5858
5859 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5860 (alloc_cand_and_find_basis): Restrict conditional candidate
5861 processing to CAND_MULTs.
5862
e86074fd
JH
58632013-05-08 Jan Hubicka <jh@suse.cz>
5864
5865 PR lto/54095
5866 lto-symtab.c (lto_symtab_symbol_p): New function.
5867 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5868 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5869 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5870 Skip static symbols.
5871
44398cbe
PC
58722013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5873
5874 PR tree-optimization/57200
5875 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5876 Only call inform if the preceding warning_at returns true.
5877
f6bc1c4a
HS
58782013-05-07 Han Shen <shenhan@google.com>
5879
5880 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5881 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5882 * common.opt (fstack-protector-strong): New option.
5883 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5884 * doc/invoke.texi (Optimization Options): Document
5885 "-fstack-protector-strong".
5886 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5887
4ffecb1f
SB
58882013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5889
5890 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5891
5a107a0f
VM
58922013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5893
5894 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5895 it is not lhs of the insn.
5896 (setup_reg_equiv): Remove insn having equiv memory which it is not
5897 lhs of the insn.
5898 * lra-constraints.c (process_address): Try to improve generation
5899 code for address base + disp.
5900 (lra_constraints): Make correct the code for checking insn setting
5901 up backward equivalence. Remove insn only if it is in the init
5902 insn list.
5903 * lra-eliminations.c (update_reg_eliminate): Change return value.
5904 (lra_eliminate): Use the result.
5905
3f5783ea
UB
59062013-05-07 Uros Bizjak <ubizjak@gmail.com>
5907
5908 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5909 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5910 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5911 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5912 register target operands.
5913 (*vec_extractv8hi_sse2): New pattern.
5914 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5915 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5916 (*vec_extract<mode>_mem): New insn and split pattern.
5917
8a5800b8
CL
59182013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5919
5920 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5921 (TARGET_ASAN_SHADOW_OFFSET): Define.
5922 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5923 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5924
7bf55a70
BS
59252013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5926
5927 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5928 (incr_vec_index): Return -1 if increment not found.
5929 (create_add_on_incoming_edge): Assert if increment not found.
5930 (record_increment): Limit number of increments recorded.
5931 (all_phi_incrs_profitable): Return false if an increment not found.
5932 (replace_profitable_candidates): Don't process increments that were
5933 not recorded.
5934 (analyze_candidates_and_replace): Limit size of incr_vec.
5935
3f8825c0
RB
59362013-05-07 Richard Biener <rguenther@suse.de>
5937
5938 * calls.c (special_function_p): setjmp-like functions are leaf.
5939 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5940 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5941
fd4842cd
SN
59422013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5943
5944 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5945 (aarch64_simd_mov<mode>): New expander.
5946 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5947 (aarch64_simd_mov_to_<mode>high): Likewise.
5948 (aarch64_simd_mov_from_<mode>low): Likewise.
5949 (aarch64_simd_mov_from_<mode>high): Likewise.
5950 (aarch64_dup_lane<mode>): Update.
5951 (aarch64_dup_lanedi): New instruction pattern.
5952 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5953 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5954
a7a7d10e
BS
59552013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5956
5957 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5958 (replace_mult_candidate): Remove unnecessary argument; remove
5959 unnecessary parameter from call to introduce_cast_before_cand.
5960 (replace_unconditional_candidate): Remove unnecessary parameter
5961 from call to replace_mult_candidate.
5962 (replace_conditional_candidate): Likewise.
5963 (insert_initializers): Use make_temp_ssa_name.
5964 (introduce_cast_before_cand): Remove unnecessary argument; use
5965 make_temp_ssa_name.
5966 (replace_one_candidate): Remove unnecessary argument; remove
5967 unnecessary parameter from calls to introduce_cast_before_cand.
5968 (replace_profitable_candidates): Remove unnecessary parameters
5969 from calls to replace_one_candidate.
5970
29105868
BS
59712013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5972
5973 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5974 phi def as possibly hiding a basis for a CAND_ADD whose operands
5975 have been commuted in the analysis.
5976 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5977
4095f9fa
N
59782013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5979
5980 * config/aarch64/aarch64.md
5981 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5982 shift value between 0-4.
5983
39e843e8
RB
59842013-05-07 Richard Biener <rguenther@suse.de>
5985
5986 * double-int.h (rshift): New overload.
5987 * double-int.c (rshift): New function.
5988 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5989 (create_reference_ops_from_ref): Remove.
5990 (vn_reference_insert): Use shared ops for constructing the
5991 reference and copy it.
5992
0a1a83cb
RB
59932013-05-07 Richard Biener <rguenther@suse.de>
5994
5995 PR middle-end/57190
5996 * tree-eh.c (sink_clobbers): Properly propagate
5997 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5998
43303d6f
JJ
59992013-05-07 Jakub Jelinek <jakub@redhat.com>
6000
ba7e83f8
JJ
6001 PR tree-optimization/57149
6002 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6003 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6004 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6005 uninit_undefined_value_p instead of ssa_undefined_value_p.
6006
43303d6f
JJ
6007 PR debug/57184
6008 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6009 for modifier == EXPAND_INITIALIZER.
6010
14523c25
AB
60112013-05-07 Anton Blanchard <anton@samba.org>
6012
6013 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6014 for powerpc64 little endian.
6015 * configure: Regenerate.
6016
cb7c8be9
GS
60172013-05-06 Graham Stott <grahams@btinternet.com>
6018
6019 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6020 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6021 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6022 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6023
60242013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
6025
6026 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6027 codes which allow non-lvalues.
6028
9a0ee7b0
MG
60292013-05-06 Marc Glisse <marc.glisse@inria.fr>
6030
6031 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6032 components are all 1s.
6033 (integer_minus_onep): New function.
6034 * tree.h (integer_minus_onep): Declare it.
6035 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6036 integer_minus_onep instead of integer_all_onesp.
6037
f2c17ea9
OE
60382013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6039
6040 PR target/52933
6041 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6042 variations of these patterns.
6043
f75e6a51
UB
60442013-05-06 Uros Bizjak <ubizjak@gmail.com>
6045
6046 * config/i386/i386.md (isa): Add x64_sse4 member.
6047 (enabled): Handle x64_sse4.
6048 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6049 instruction for 64bit SSE4_1 targets. Update insn attributes.
6050 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6051 instruction for SSE4_1 targets. Update insn attributes.
6052 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6053 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6054 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6055 const_1 selector.
6056 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6057 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6058 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6059
a986d468
OE
60602013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6061
6062 PR target/57108
6063 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6064
382522cb
MK
60652013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6066
6067 * final.c (do_assembler_dialects): Don't handle curly braces and
6068 vertical bar escaped by % as dialect delimiters.
6069 (output_asm_insn): Print curly braces and vertical bar if escaped
6070 by % and ASSEMBLER_DIALECT defined.
6071 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6072 * doc/tm.texi: Regenerated.
6073
fb0d5c60
SB
60742013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6075
fb0d5c60
SB
6076 * config/mips/mips.c: Include tree-pass.h.
6077 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6078 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6079 (pass_mips_machine_reorg2): New machine specific pass.
6080 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6081 (mips_option_override): Register the new pass.
6082 * rtl.h (cleanup_barriers): Remove prototype.
6083 (dbr_schedule): Likewise.
6084 * jump.c (cleanup_barriers): Make static.
6085 * reorg.c (dbr_schedule): Likewise.
6086
aa06a978
RB
60872013-05-06 Richard Biener <rguenther@suse.de>
6088
6089 PR tree-optimization/57185
6090 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6091 SSA names properly.
6092
0b953bec
UB
60932013-05-06 Uros Bizjak <ubizjak@gmail.com>
6094
6095 PR target/57106
6096 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6097 between "first_arg" and "insn", not "last" and "insn".
6098
28708525
WS
60992013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6100
6101 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6102 (find_candidates_in_block): Re-enable slsr_process_phi.
6103 (create_phi_basis): Fix double counting of candidate adjustment.
6104
0107dca2
RB
61052013-05-06 Richard Biener <rguenther@suse.de>
6106
6107 PR middle-end/57147
6108 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6109 the edge is also fallthru, preserve it and just clear the
6110 abnormal flag.
6111 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6112 also complex, preserve that and just clear the fallthru flag.
6113 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6114 update virtual operands.
6115
470d4d13
AM
61162013-05-06 Alan Modra <amodra@gmail.com>
6117
6118 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6119 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6120 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6121 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6122 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6123 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6124
8f1dbf8d
AM
61252013-05-06 Alan Modra <amodra@gmail.com>
6126
6127 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6128 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6129 (DEFAULT_ASM_ENDIAN): Define.
6130 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6131 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6132 Update -K PIC clause from sysv4.h.
6133 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6134 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6135
54890767
AM
61362013-05-06 Alan Modra <amodra@gmail.com>
6137
6138 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6139 twice for little-endian.
6140 (ashrdi3_no_power, ashrdi3): Support little-endian.
6141
2353515d
OE
61422013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6143
6144 PR target/55303
6145 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6146 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6147 related expanders.
6148 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6149 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6150 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6151 New predicates.
6152
33e67557
SB
61532013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6154 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6155
6156 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6157 * config/pa/pa.opt: Make mbig-switch a no-op.
6158 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6159 (CASE_VECTOR_MODE): Always return SImode.
6160 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6161 for the !TARGET_BIG_SWITCH case.
6162 * config/pa/pa-linux.h: Likewise.
6163 * config/pa/pa-openbsd.h: Likewise.
6164 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6165 * config/pa/pa.md (short_jump): Remove define_insn.
6166 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6167 (casesi0): Remove define_insn.
6168 (type): Remove btable_branch.
6169 (pa_combine_type): Likewise.
6170 (in_nullified_branch_delay): Likewise.
6171 (in_call_delay): Likewise.
6172 (define_delay): Likewise.
6173 (define_insn_reservation "Z3"): Likewise.
6174 (define_insn_reservation "Z4"): Likewise.
6175 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6176 (pa_adjust_insn_length): Remove adjustment for btable branches.
6177 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6178 and mno-big-switch
6179
3095685e
UB
61802013-05-05 Uros Bizjak <ubizjak@gmail.com>
6181
6182 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6183 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6184 Add m->r,x alternatives.
6185 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6186 splitters using SWI48x mode iterator.
6187 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6188 TARGET_64BIT. Add m->x alternative.
6189 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6190 Add o->x alternative. Enable for TARGET_SSE.
6191 (sse_storeq): Remove expander.
6192 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6193 with memory input operand.
6194 (*vec_extractv2di_1 splitter): New.
6195 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6196 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6197
4b36ae28
SB
61982013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6199
6200 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6201 (INT_LOWPART): Delete.
6202 (extract_MB): Adjust.
6203 (extract_ME): Adjust.
6204 (print_operand): Adjust.
6205
da226db2
SB
62062013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6207
6208 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6209 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6210 (reg_or_logical_cint_operand, easy_fp_constant,
6211 logical_const_operand): Delete "CONST_DOUBLE" case.
6212 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6213 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 6214 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
6215 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6216 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6217 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6218 test.
6219 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6220 CONST_DOUBLE DImode/VOIDmode case.
6221 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6222 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6223 CONST_DOUBLE VOIDmode case.
6224 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6225 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6226 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6227 Delete CONST_DOUBLE case.
6228 (splitters for mov FMOVE64 const_double): Delete
6229 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6230 "HOST_BITS_PER_WIDE_INT >= 64" test.
6231 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6232 case.
6233 (mov DI const_double): Delete.
6234
40de22d6
JJ
62352013-05-04 Jakub Jelinek <jakub@redhat.com>
6236
6237 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6238 on op shows all bits zero in mode of a lowpart subreg, return zero.
6239
5ec6aff2
MM
62402013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6241
6242 PR target/57150
6243 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6244 to save TFmode registers and DImode to save TImode registers for
6245 caller save operations.
6246 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6247 mark being partially clobbered since they only use the first
6248 double word.
6249
6250 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6251 and TDmode only use the upper 64-bits of each VSX register.
6252
2cefad90
BS
62532013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6254
6255 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6256 (find_candidates_in_block): Disable slsr_process_phi.
6257
d6d7eee1
GW
62582013-05-03 Guozhi Wei <carrot@google.com>
6259
6260 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
6261 constructor to ...
6262 (build_init_ctor): ... here.
d6d7eee1 6263
9b92d12b
BS
62642013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6265
6266 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6267 (slsr_cand_d): Redefine def_phi.
6268 (stride_status, phi_adjust_status, count_phis_status): New enums.
6269 (find_phi_def): New.
6270 (find_basis_for_base_expr): New.
6271 (find_basis_for_candidate): Handle hidden bases.
6272 (alloc_cand_and_find_basis): Handle phi candidates.
6273 (slsr_process_phi): New.
6274 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6275 (create_mul_imm_cand): Likewise.
6276 (create_add_ssa_cand): Exclude phi base candidates.
6277 (create_add_imm_cand): Likewise.
6278 (slsr_process_cast): Likewise.
6279 (slsr_process_copy): Likewise.
6280 (find_candidates_in_block): Handle phi candidates.
6281 (dump_candidate): Likewise.
6282 (unconditional_cands): Delete.
6283 (unconditional_cands_with_known_stride_p): Delete.
6284 (phi_dependent_cand_p): New.
6285 (cand_increment): Handle phi-dependent candidates.
6286 (replace_dependent): Delete.
6287 (replace_mult_candidate): New.
6288 (replace_unconditional_candidate): New.
6289 (incr_vec_index): Move to avoid forward reference.
6290 (create_add_on_incoming_edge): New.
6291 (create_phi_basis): New.
6292 (replace_dependents): Delete.
6293 (replace_conditional_candidate): New.
6294 (phi_add_costs): New.
6295 (replace_uncond_cands_and_profitable_phis): New.
6296 (record_increment): Handle phi adjustments.
6297 (record_phi_increments): New.
6298 (record_increments): Handle phi adjustments.
6299 (phi_incr_cost): New.
6300 (lowest_cost_path): Handle phis.
6301 (total_savings): Likewise.
6302 (analyze_increments): Likewise.
6303 (ncd_with_phi): New.
6304 (ncd_of_cand_and_phis): New.
6305 (nearest_common_dominator_for_cands): Handle phi increments.
6306 (all_phi_incrs_profitable): New.
6307 (replace_profitable_candidates): Handle phi-dependent candidates.
6308 (analyze_candidates_and_replace): Likewise.
6309
68f073d4
TJ
63102013-05-03 Teresa Johnson <tejohnson@google.com>
6311
6312 PR bootstrap/57154
6313 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6314 do not exceed REG_BR_PROB_BASE.
6315
a4ee7cb9
JL
63162013-05-03 Jeff Law <law@redhat.com>
6317
ade67f70 6318 PR tree-optimization/57144
a4ee7cb9
JL
6319 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6320 operand of the condition will bit into the new type when eliminating
6321 a cast feeding a condition.
6322
47954c4e
JJ
63232013-05-03 Jakub Jelinek <jakub@redhat.com>
6324
6325 PR rtl-optimization/57130
3095685e
UB
6326 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6327 of COMPARE as in_code to the recursive call if needed.
47954c4e 6328
3c21604f
UB
63292013-05-03 Uros Bizjak <ubizjak@gmail.com>
6330
6331 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6332 (enabled): Handle new members.
6333 * config/i386/sse.md (*vec_concatv2si): Merge from
6334 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6335 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6336
95c03b36
JR
63372013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6338
6339 PR tree-optimization/57027
6340 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6341 for fnms opportunity, check we got the prerequisite kind
6342 of tree / gimple before using accessor functions.
6343
07bfc9ec
RB
63442013-05-03 Richard Biener <rguenther@suse.de>
6345
6346 * double-int.h (lshift): New overload without precision
6347 and arith argument.
6348 (operator *=, operator +=, operator -=): Move ...
6349 * double-int.c (operator *=, operator +=, operator -=): ... here
6350 and implement more efficiently.
6351 (mul_double_with_sign): Remove.
6352 (lshift_double): Adjust to take unsinged shift argument, push
6353 dispatching code to callers.
6354 (mul_double_wide_with_sign): Add early out for callers that
6355 are not interested in high parts or overflow.
6356 (lshift): New function.
6357 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6358 dispatch code here.
6359 (lrotate, rrotate): Use logical shifts.
6360 * expr.c (get_inner_reference): Use lshift.
6361 * fixed-value.c (do_fixed_divide): Likewise.
6362 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6363 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6364 (indirect_refs_may_alias_p): Likewise.
6365 (stmt_kills_ref_p_1): Likewise.
6366
7769bb64
VP
63672013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6368
6369 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6370
1d0c8e5c
VP
63712013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6372
6373 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6374 scalar form of FABD instruction.
6375
f15feaf9
VM
63762013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6377
6378 * lra-constraints.c (process_alt_operands): Add checking alt
6379 number to choose the best alternative.
6380
d90e76d4
RB
63812013-05-02 Richard Biener <rguenther@suse.de>
6382
6383 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6384 bitmap and its handling.
6385 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6386
9f8e7a96
RB
63872013-05-02 Richard Biener <rguenther@suse.de>
6388
6389 PR middle-end/57140
6390 * tree-inline.c (copy_loops): Properly handle removed loops.
6391 (copy_cfg_body): Mark destination loops for fixup if source
6392 loops needed fixup.
6393
f3a81b39
GY
63942013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6395
6396 PR target/56732
6397 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6398 generating simple_return for naked functions.
6399
7b920a9a
MJ
64002013-05-02 Martin Jambor <mjambor@suse.cz>
6401
6402 PR middle-end/56988
6403 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6404 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6405 flags match.
6406 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6407 ipa_agg_replacement_value structures.
6408 (known_aggs_to_agg_replacement_list): Likewise.
6409 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6410 (read_agg_replacement_chain): Likewise.
6411 (ipcp_transform_function): Also check that by_ref flags match.
6412
2c41c19d
RB
64132013-05-02 Richard Biener <rguenther@suse.de>
6414
6415 * graphds.h (struct graph): Add obstack member.
6416 * graphds.c (new_graph): Initialize obstack and allocate
6417 vertices from it.
6418 (add_edge): Allocate edge from the obstack.
3c21604f 6419 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 6420
8b47039c
TJ
64212013-05-02 Teresa Johnson <tejohnson@google.com>
6422
6423 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6424 divides.
6425 * cfg.c (update_bb_profile_for_threading): Ditto.
6426 * tree-inline.c (copy_bb): Ditto.
6427 (copy_edges_for_bb): Ditto.
6428 (initialize_cfun): Ditto.
6429 (copy_cfg_body): Ditto.
6430 (expand_call_inline): Ditto.
6431 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6432 (estimate_node_size_and_time): Ditto.
6433 (inline_merge_summary): Ditto.
6434 * cgraphclones.c (cgraph_clone_edge): Ditto.
6435 (cgraph_clone_node): Ditto.
6436 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6437 (compute_trg_info): Ditto.
6438
da65928c
IB
64392013-05-02 Ian Bolton <ian.bolton@arm.com>
6440
6441 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6442 S reg when fp attribute set.
6443 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6444
add3c965
IB
64452013-05-02 Ian Bolton <ian.bolton@arm.com>
6446
6447 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6448 New pattern.
6449 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6450 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6451 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6452
fdd43ac4
RB
64532013-05-02 Richard Biener <rguenther@suse.de>
6454
6455 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6456 (struct instantiate_cache_entry): New type.
6457 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6458 (struct instantiate_cache_type): New type.
6459 (set_instantiated_value, get_instantiated_value): Remove.
6460 (get_instantiated_value_entry): New function.
6461 (instantiate_scev_name): Use the new cache and adjust.
6462 (instantiate_scev_poly): Adjust.
6463 (instantiate_scev_binary): Likewise.
6464 (instantiate_array_ref): Likewise.
6465 (instantiate_scev_convert): Likewise.
6466 (instantiate_scev_not): Likewise.
6467 (instantiate_scev_3): Likewise.
6468 (instantiate_scev_2): Likewise.
6469 (instantiate_scev_r): Likewise.
6470 (instantiate_scev): Likewise.
6471 (resolve_mixers): Likewise.
6472
36ff9dfb
VM
64732013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6474
6475 PR target/57091
6476 * lra-constraints.c (best_small_class_operands_num): Remove.
6477 (process_alt_operands): Remove small_class_operands_num. Take
6478 small classes operands into losers and only if the operand is not
6479 matched. Modify debugging output.
6480 (curr_insn_transform): Remove best_small_class_operands_num.
6481 Print insn name.
6482
36054fab
JG
64832013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6484
6485 * config/aarch64/aarch64-builtins.c
6486 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6487 * config/aarch64/aarch64-simd-builtins.def
6488 (reduc_splus_): Add new modes.
6489 (reduc_uplus_): New.
6490 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6491 (reduc_uplus_v4sf): Likewise.
6492 (reduc_splus_v4sf): Likewise.
6493 (aarch64_addv<mode>): Likewise.
6494 (reduc_uplus_<mode>): Likewise.
6495 (reduc_splus_<mode>): Likewise.
6496 (aarch64_addvv2di): Likewise.
6497 (reduc_uplus_v2di): Likewise.
6498 (reduc_splus_v2di): Likewise.
6499 (aarch64_addvv2si): Likewise.
6500 (reduc_uplus_v2si): Likewise.
6501 (reduc_splus_v2si): Likewise.
6502 (reduc_<sur>plus_<mode>): New.
6503 (reduc_<sur>plus_v2di): Likewise.
6504 (reduc_<sur>plus_v2si): Likewise.
6505 (reduc_<sur>plus_v4sf): Likewise.
6506 (aarch64_addpv4sf): Likewise.
6507 * config/aarch64/arm_neon.h
6508 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6509 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6510 add UNSPEC_SADDV, UNSPEC_UADDV.
6511 (SUADDV): New.
6512 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6513
6dce23a8
JG
65142013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6515
6516 * config/aarch64/arm_neon.h
6517 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6518
1598945b
JG
65192013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6520
6521 * config/aarch64/aarch64-builtins
6522 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6523
998eaf97
JG
65242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6525
6526 * config/aarch64/aarch64-simd-builtins.def
6527 (reduc_smax_): New.
6528 (reduc_smin_): Likewise.
6529 (reduc_umax_): Likewise.
6530 (reduc_umin_): Likewise.
6531 (reduc_smax_nan_): Likewise.
6532 (reduc_smin_nan_): Likewise.
6533 (fmax): Remove.
6534 (fmin): Likewise.
6535 (smax): Update for V2SF, V4SF and V2DF modes.
6536 (smin): Likewise.
6537 (smax_nan): New.
6538 (smin_nan): Likewise.
6539 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6540 (<su><maxmin><mode>3): ...This, refactor.
6541 (s<maxmin><mode>3): New.
6542 (<maxmin_uns><mode>3): Likewise.
6543 (reduc_<maxmin_uns>_<mode>): Refactor.
6544 (reduc_<maxmin_uns>_v4sf): Likewise.
6545 (reduc_<maxmin_uns>_v2si): Likewise.
6546 (aarch64_<fmaxmin><mode>: Remove.
6547 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6548 new builtin names.
6549 (vmin<q>_f<32,64>): Likewise.
6550 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6551 (FMAXMIN): New.
6552 (su): Add mappings for smax, smin, umax, umin.
6553 (maxmin): New.
6554 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6555 (FMAXMIN): Rename as...
6556 (FMAXMIN_UNS): ...This.
6557 (maxminv): Remove.
6558 (fmaxminv): Likewise.
6559 (fmaxmin): Likewise.
6560 (maxmin_uns): New.
6561 (maxmin_uns_op): Likewise.
6562
bd11644e
JG
65632013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6564
6565 * config/aarch64/arm_neon.h
6566 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6567 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6568 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6569
75dd5ace
JG
65702013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6571
6572 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6573 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6574
7c19979f
JG
65752013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6576
6577 * config/aarch64/aarch64-simd.md
6578 (vcond<mode>_internal): Handle special cases for constant masks.
6579 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6580 (vcondu<mode><mode>): Likewise.
6581 (vcond<v_cmp_result><mode>): New.
6582
bb60efd9
JG
65832013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6584
6585 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6586 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6587 * config/aarch64/aarch64-simd-builtins.def
6588 (cmeq): Update to BUILTIN_VALLDI.
6589 (cmgt): Likewise.
6590 (cmge): Likewise.
6591 (cmle): Likewise.
6592 (cmlt): Likewise.
6593 * config/aarch64/arm_neon.h
6594 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6595 to builtins or C as appropriate.
6596
889b9412
JG
65972013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6598
6599 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6600 (cmgeu): ...This.
6601 (cmhi): Rename to...
6602 (cmgtu): ...This.
6603 * config/aarch64/aarch64-simd.md
6604 (simd_mode): Add SF.
6605 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6606 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6607 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6608 (cstore<mode>_neg): ...This.
6609 * config/aarch64/iterators.md
6610 (VALLF): new.
6611 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6612 (COMPARISONS): New.
6613 (UCOMPARISONS): Likewise.
6614 (optab): Add missing comparisons.
6615 (n_optab): New.
6616 (cmp_1): Likewise.
6617 (cmp_2): Likewise.
6618 (CMP): Likewise.
6619 (cmp): Remove.
6620 (VCMP_S): Likewise.
6621 (VCMP_U): Likewise.
6622 (V_cmp_result): Add DF, SF modes.
6623 (v_cmp_result): Likewise.
6624 (v): Likewise.
6625 (vmtype): Likewise.
6626 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6627
0a7dbb76
GY
66282013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6629
6630 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6631 define_insn to define_insn_and_split.
6632 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6633 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6634 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6635 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6636 (thumb2_negscc): Likewise.
6637
fb614ca6
GY
66382013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6639
6640 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6641
9e64a0bf
GY
66422013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6643
6644 * config/arm/thumb2.md: Remove trailing whitespaces.
6645
d6b28156
RS
66462013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6647
6648 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6649 Use gen_int_mode rather than GEN_INT.
6650
f91674c3
L
66512013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6652
b0dec607 6653 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
6654 debug_gimple_stmt.
6655
3551257c
RB
66562013-04-30 Richard Biener <rguenther@suse.de>
6657
6658 PR middle-end/57122
3c21604f 6659 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 6660
4c1aff1c
RB
66612013-04-30 Richard Biener <rguenther@suse.de>
6662
6663 PR middle-end/57107
6664 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6665
54b8379a
AB
66662013-04-30 Andrey Belevantsev <abel@ispras.ru>
6667
6668 PR rtl-optimization/56957
6669 PR rtl-optimization/57105
54b8379a
AB
6670 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6671 variable. Use just INSN_UID for determining whether an insn
6672 should be only disconnected from the insn stream.
6673 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6674
abc27962
JJ
66752013-04-30 Jakub Jelinek <jakub@redhat.com>
6676
6677 PR tree-optimization/57104
6678 * tsan.c (instrument_expr): Don't instrument accesses to
6679 DECL_HARD_REGISTER VAR_DECLs.
6680
0fc822d0
RB
66812013-04-30 Richard Biener <rguenther@suse.de>
6682
6683 * function.h (loops_for_fn): New inline function.
6684 (set_loops_for_fn): Likewise.
6685 * cfgloop.h (place_new_loop): Add struct function parameter.
6686 (get_loop): Likewise.
6687 (get_loops): Likewise.
6688 (number_of_loops): Likewise.
6689 (fel_next): Adjust.
6690 (fel_init): Likewise.
6691 * cfg.c (get_loop_copy): Adjust.
6692 * cfgloop.c (flow_loops_dump): Likewise.
6693 (record_loop_exits): Likewise.
6694 (verify_loop_structure): Likewise.
6695 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6696 (estimate_reg_pressure_cost): Likewise.
6697 (mark_loop_exit_edges): Likewise.
6698 * cfgloopmanip.c (place_new_loop): Likewise.
6699 (add_loop): Likewise.
6700 (duplicate_loop): Likewise.
6701 * graph.c (draw_cfg_nodes): Likewise.
6702 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6703 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6704 (extract_affine_chrec): Likewise.
6705 (build_scop_iteration_domain): Likewise.
6706 * graphite.c (graphite_initialize): Likewise.
6707 * ira-build.c (create_loop_tree_nodes): Likewise.
6708 (more_one_region_p): Likewise.
6709 (rebuild_regno_allocno_maps): Likewise.
6710 (mark_loops_for_removal): Likewise.
6711 (mark_all_loops_for_removal): Likewise.
6712 (remove_unnecessary_regions): Likewise.
6713 (ira_build): Likewise.
6714 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6715 * loop-init.c (fix_loop_structure): Likewise.
6716 (gate_rtl_move_loop_invariants): Likewise.
6717 (gate_rtl_unswitch): Likewise.
6718 (gate_rtl_unroll_and_peel_loops): Likewise.
6719 (rtl_doloop): Likewise.
6720 * lto-streamer-in.c (input_cfg): Likewise.
6721 * lto-streamer-out.c (output_cfg): Likewise.
6722 * modulo-sched.c (sms_schedule): Likewise.
6723 * predict.c (tree_estimate_probability): Likewise.
6724 (tree_estimate_probability_driver): Likewise.
6725 (estimate_loops): Likewise.
6726 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6727 (move_sese_region_to_fn): Likewise.
6728 (debug_loop_num): Likewise.
6729 * tree-chrec.c (chrec_evaluate): Likewise.
6730 (hide_evolution_in_other_loops_than_loop): Likewise.
6731 (chrec_component_in_loop_num): Likewise.
6732 (reset_evolution_in_loop): Likewise.
6733 (evolution_function_is_invariant_rec_p): Likewise.
6734 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6735 * tree-inline.c (copy_loops): Likewise.
6736 (copy_cfg_body): Likewise.
6737 (tree_function_versioning): Likewise.
6738 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6739 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6740 Likewise.
6741 (add_to_evolution_1): Likewise.
6742 (scev_const_prop): Likewise.
6743 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6744 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6745 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6746 (tree_ssa_lim_initialize): Likewise.
6747 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6748 (verify_loop_closed_ssa): Likewise.
6749 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6750 (tree_ssa_loop_im): Likewise.
6751 (tree_ssa_loop_unswitch): Likewise.
6752 (tree_vectorize): Likewise.
6753 (check_data_deps): Likewise.
6754 (tree_ssa_loop_ivcanon): Likewise.
6755 (tree_ssa_loop_bounds): Likewise.
6756 (tree_complete_unroll): Likewise.
6757 (tree_complete_unroll_inner): Likewise.
6758 (tree_parallelize_loops): Likewise.
6759 (tree_ssa_loop_prefetch): Likewise.
6760 (tree_ssa_loop_ivopts): Likewise.
6761 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6762 * tree-vectorizer.c (vectorize_loops): Likewise.
6763
37953bd3
MF
67642013-04-29 Mike Frysinger <vapier@gentoo.org>
6765
6766 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6767 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6768 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6769 with EABI_LINK_SPEC.
6770
f9ed28db
UB
67712013-04-29 Uros Bizjak <ubizjak@gmail.com>
6772
6773 PR target/44578
6774 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6775 alternative.
6776
deca73f5
VM
67772013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6778
6779 PR target/57097
37953bd3 6780 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
6781 using memory for pseudos. Print cost dump for alternatives.
6782 Modify cost values for conflicts with early clobbers.
6783 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6784
fdca7d03
UB
67852013-04-29 Uros Bizjak <ubizjak@gmail.com>
6786
6787 PR target/57098
6788 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6789
0b064172
IB
67902013-04-29 Ian Bolton <ian.bolton@arm.com>
6791
6792 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6793 from/to S register.
6794 (movdi_aarch64): Support LDR/STR from/to D register.
6795
473cec55
IB
67962013-04-29 Ian Bolton <ian.bolton@arm.com>
6797
6798 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6799 or higher by default.
6800
a6f30e66
RB
68012013-04-29 Richard Biener <rguenther@suse.de>
6802
6803 PR middle-end/57075
6804 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6805 even if not adding abnormal edges for calls that can make
6806 abnormal gotos.
6807
0c2b2040
RB
68082013-04-29 Richard Biener <rguenther@suse.de>
6809
6810 PR middle-end/57103
6811 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6812 TREE_BLOCK.
6813 (move_stmt_r): Remove redundant checking.
6814
f41f80f9
TJ
68152013-04-29 Teresa Johnson <tejohnson@google.com>
6816
6817 PR bootstrap/57077
6818 * basic-block.h (apply_scale): New function.
6819 (apply_probability): Use apply_scale.
6820 * gimple-streamer-in.c (input_bb): Ditto.
6821 * lto-streamer-in.c (input_cfg): Ditto.
6822 * lto-cgraph.c (merge_profile_summaries): Ditto.
6823 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 6824 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
6825 (copy_edges_for_bb): Ditto.
6826 (copy_cfg_body): Ditto.
6827
315bbd2e
TV
68282013-04-29 Tom de Vries <tom@codesourcery.com>
6829
6830 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6831 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6832 (tail_merge_optimize): Handle current_loops == NULL.
6833
ebbd90d8
JL
68342013-04-26 Jeff Law <law@redhat.com>
6835
6836 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6837 (simplify_cond_using_ranges): Generalize code to simplify
6838 COND_EXPRs where one argument is a constant and the other
6839 is an SSA_NAME created by an integral type conversion.
6840
8b9b57eb
KT
68412013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6842
6843 * config/arm/arm.md (store_minmaxsi): Use only when
6844 optimize_insn_for_size_p.
6845
9498e5dc
CB
68462013-04-29 Christian Bruel <christian.bruel@st.com>
6847
6848 PR target/57108
6849 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6850
6093bc06
RB
68512013-04-29 Richard Biener <rguenther@suse.de>
6852
6853 PR middle-end/57089
fdca7d03
UB
6854 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6855 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
6856 (expand_omp_for_generic): Properly add loops.
6857 (expand_omp_for_static_nochunk): Likewise.
6858 (expand_omp_for_static_chunk): Likewise.
6859 (expand_omp_for): For the degenerate case fixup loops.
6860 (expand_omp_sections): Fix default bb placement in loops.
6861 (expand_omp_atomic_pipeline): Properly add loops.
6862
84aacbfd
KT
68632013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6864
6865 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6866
8dee4479
TV
68672013-04-29 Tom de Vries <tom@codesourcery.com>
6868
6869 * tree-ssa-tail-merge.c: Update header comment.
6870
47934dc4
JG
68712013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6872
6873 * config/aarch64/arm_neon.h
6874 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6875 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6876 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6877 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6878 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6879 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6880 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6881 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6882
384be29f
JG
68832013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6884
6885 * config/aarch64/aarch64-simd.md
6886 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6887 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6888 fix_trunc, fixuns_trunc.
6889 (ftrunc<VDQF:mode>2): New.
6890 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6891 (fix_trunc_optab): New.
6892
0386b123
JG
68932013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6894
6895 * config/aarch64/aarch64-builtins.c
6896 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6897 iceilf, lround, iroundf.
6898
00fcb892
UB
68992013-04-29 Uros Bizjak <ubizjak@gmail.com>
6900
6901 PR target/54349
6902 * config/i386/i386.h (enum ix86_tune_indices)
6903 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6904 New, split from X86_TUNE_INTER_UNIT_MOVES.
6905 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6906 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6907 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6908 (TARGET_INTER_UNIT_MOVES): Remove.
6909 * config/i386/i386.c (initial_ix86_tune_features): Update.
6910 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6911 (ix86_expand_convert_uns_didf_sse): Use
6912 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6913 (ix86_expand_vector_init_one_nonzero): Ditto.
6914 (ix86_expand_vector_init_interleave): Ditto.
6915 (inline_secondary_memory_needed): Return true for moves from SSE class
6916 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6917 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6918 * config/i386/constraints.md (Yi, Ym): Depend on
6919 TARGET_INTER_UNIT_MOVES_TO_VEC.
6920 (Yj, Yn): New constraints.
6921 * config/i386/i386.md (*movdi_internal): Change constraints of
6922 operand 1 from Yi to Yj and from Ym to Yn.
6923 (*movsi_internal): Ditto.
6924 (*movdf_internal): Ditto.
6925 (*movsf_internal): Ditto.
6926 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6927 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6928 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6929 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6930 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6931 * config/i386/sse.md (movdi_to_sse): Ditto.
6932 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6933 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6934 TARGET_INTER_UNIT_MOVES.
6935 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6936 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6937 instead of TARGET_INTER_UNIT_MOVES.
6938 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6939 operand 1 from Yi to Yj and from Ym to Yn.
6940
4c871069
JG
69412013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6942
6943 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6944 (float_truncate_hi_): Likewise.
6945 (float_extend_lo_): Likewise.
6946 (float_truncate_lo_): Likewise.
6947 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6948 (aarch64_float_extend_lo_v2df): Likewise.
6949 (vec_unpacks_hi_v4sf): Likewise.
6950 (aarch64_float_truncate_lo_v2sf): Likewise.
6951 (aarch64_float_truncate_hi_v4sf): Likewise.
6952 (vec_pack_trunc_v2df): Likewise.
6953 (vec_pack_trunc_df): Likewise.
6954
1709ff9b
JG
69552013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6956
6957 * config/aarch64/aarch64-builtins.c
6958 (aarch64_fold_builtin): Fold float conversions.
6959 * config/aarch64/aarch64-simd-builtins.def
6960 (floatv2si, floatv4si, floatv2di): New.
6961 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6962 * config/aarch64/aarch64-simd.md
6963 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6964 * config/aarch64/iterators.md (FLOATUORS): New.
6965 (optab): Add float, floatuns.
6966 (su_optab): Likewise.
6967
ce966824
JG
69682013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6969
6970 * config/aarch64/aarch64-builtins.c
6971 (aarch64_builtin_vectorized_function): Use new names for
6972 fcvt builtins.
6973 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6974 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6975 (fcvtzu): Split as...
6976 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6977 (fcvtas): Split as...
6978 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6979 (fcvtau): Split as...
6980 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6981 (fcvtps): Split as...
6982 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6983 (fcvtpu): Split as...
6984 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6985 (fcvtms): Split as...
6986 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6987 (fcvtmu): Split as...
6988 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6989 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6990 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6991 (lfrintnusf, lfrintnudf): Likewise.
6992 * config/aarch64/aarch64-simd.md
6993 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6994 define_insn.
6995 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6996 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6997 (fcvt_pattern): Likewise.
6998
b9de24fe
JG
69992013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7000
7001 * config/aarch64/aarch64-simd.md
7002 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7003 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7004
77a205be
JG
70052013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7006
7007 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7008 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7009 (vrnd<a,m,n,p>_f32): Implement using builtins.
7010 (vrnd<i,x><q>_f<32, 64>): New.
7011
0659ce6f
JG
70122013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7013
7014 * config/aarch64/aarch64-builtins.c
7015 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7016 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7017 (frintz): Rename to...
7018 (btrunc): ...this.
7019 (frintp): Rename to...
7020 (ceil): ...this.
7021 (frintm): Rename to...
7022 (floor): ...this.
7023 (frinti): Rename to...
7024 (nearbyint): ...this.
7025 (frintx): Rename to...
7026 (rint): ...this.
7027 (frinta): Rename to...
7028 (round): ...this.
7029 * config/aarch64/aarch64-simd.md
7030 (aarch64_frint<frint_suffix><mode>): Delete.
7031 (<frint_pattern><mode>2): Convert to insn.
7032 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7033 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7034 (frint_pattern): Likewise.
7035 (frint_suffix): Likewise.
7036
ea78906a
RB
70372013-04-29 Richard Biener <rguenther@suse.de>
7038
7039 PR tree-optimization/57081
7040 * loop-init.c: Include tree-flow.h.
7041 (loop_optimizer_finalize): Free number of iteration estimates.
7042 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7043
baee1763
JJ
70442013-04-29 Jakub Jelinek <jakub@redhat.com>
7045
94dc5332
JJ
7046 PR tree-optimization/57083
7047 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7048 non-singleton shift count range, zero extend low_bound for uns case.
7049
baee1763
JJ
7050 * config/i386/predicates.md (general_vector_operand): New predicate.
7051 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7052 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7053 if they aren't nonimmediate operands. If their original values
7054 satisfy const_vector_equal_evenodd_p, don't shift them.
7055 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7056 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7057 if not nonimmediate_operand.
7058 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7059 instead of register_operand.
7060 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7061
a9073727 70622013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
7063
7064 * stor-layout.c (finalize_size_functions): Allocate a structure and
7065 reset cfun before dumping the functions.
7066
ba8011e6
JJ
70672013-04-27 Jakub Jelinek <jakub@redhat.com>
7068
d6fde69e
JJ
7069 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7070
ba8011e6
JJ
7071 PR target/56866
7072 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7073 use xop_pmacsdqh if uns_p.
7074 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7075 the immediate rotate count.
7076
2c62cbaa
VM
70772013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7078
7079 * rtl.h (struct rtx_def): Add comment for field jump.
7080 (LRA_SUBREG_P): New macro.
7081 * recog.c (register_operand): Check LRA_SUBREG_P.
7082 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7083 stack frame.
7084 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7085 (lra_final_code_change): Skip subreg change for operators.
7086 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7087 if there are no operand changes.
7088 * lra-constraints.c (curr_insn_set): New.
7089 (match_reload): Set LRA_SUBREG_P.
7090 (emit_spill_move): Ditto.
7091 (check_and_process_move): Use curr_insn_set. Process only single
7092 set insns. Don't initialize sec_mem_p and change_p.
7093 (simplify_operand_subreg): Use LRA_SUBREG_P.
7094 (reg_in_class_p): New function.
7095 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7096 of #ifdef. Add code to remove cycling.
7097 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7098 non-null disp. Reload inner instead of disp when base and index
7099 are null. Try to put lo_sum into register.
7100 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7101 (check_and_process_move): Move code for move cost check to
7102 simple_move_p. Remove equiv_substitution.
7103 (simple_move_p): New function.
7104 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7105 curr_insn_set. Call check_and_process_move only for single set
7106 insns. Use the new function. Move call of check_and_process_move
7107 after operand equiv substitution and address process.
7108
e7d764f3
JJ
71092013-04-26 Jakub Jelinek <jakub@redhat.com>
7110
7111 PR go/57045
7112 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7113 with nonlocal goto receivers or returns twice calls, ignore
7114 unininitialized values from abnormal edges to nl goto receiver
7115 or returns twice call.
7116
41e10689
JJ
71172013-04-26 Jakub Jelinek <jakub@redhat.com>
7118
7119 PR tree-optimization/57051
7120 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7121 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7122 bitsize.
7123
d7ed20db
RB
71242013-04-26 Richard Biener <rguenther@suse.de>
7125
7126 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7127 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7128 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7129 (fixup_loop_arrays_after_move): New function.
7130 (move_sese_region_to_fn): Properly outline the loop tree parts
7131 of the SESE region.
7132
df93505e
UB
71332013-04-26 Uros Bizjak <ubizjak@gmail.com>
7134
7135 * config/i386/i386.md (type, unit): Fix long lines.
7136
dd366ec3
RB
71372013-04-26 Richard Biener <rguenther@suse.de>
7138
7139 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7140 (lto-streamer-out.o): Likewise.
7141 * cfgloop.c (init_loops_structure): Export, add struct function
7142 argument and adjust.
7143 (flow_loops_find): Adjust.
7144 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7145 (init_loops_structure): Declare.
7146 * lto-streamer-in.c: Include cfgloop.h.
7147 (input_cfg): Input the loop tree.
7148 * lto-streamer-out.c: Include cfgloop.h.
7149 (output_cfg): Output the loop tree.
7150 (output_struct_function_base): Do not drop PROP_loops.
7151
a9e0d843
RB
71522013-03-26 Richard Biener <rguenther@suse.de>
7153
7154 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7155 (pass_build_cfg): Provide PROP_loops.
7156 (move_sese_region_to_fn): Remove loops that are outlined into fn
7157 for now.
7158 * tree-inline.c: Include cfgloop.h.
7159 (initialize_cfun): Do not drop PROP_loops.
7160 (copy_loops): New function.
7161 (copy_cfg_body): Copy loop structure.
7162 (tree_function_versioning): Initialize destination loop tree.
7163 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7164 (pass_parallelize_loops): Do IL verification.
7165 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7166 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7167 the CFG make sure we fixup loops as well.
7168 * tree-ssa-tail-merge.c: Include cfgloop.h.
7169 (replace_block_by): When merging loop latches mark loops for fixup.
7170 * lto-streamer-out.c (output_struct_function_base): Drop
7171 PROP_loops for now.
7172 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7173 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7174 * ipa-split.c: Include cfgloop.h.
7175 (split_function): Add the new return block to the loop tree root.
7176 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7177 whether we have removed the forwarder block.
7178 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7179 * cfgloop.h (place_new_loop): Declare.
7180 * cfgloopmanip.c (place_new_loop): Export.
7181 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7182 (tree-switch-conversion.o): Likewise.
7183 (tree-complex.o): Likewise.
7184 (tree-inline.o): Likewise.
7185 (tree-ssa-tailmerge.o): Likewise.
7186 (ipa-split.o): Likewise.
7187 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7188 (tree-ssa-copy.o): Likewise.
7189 * tree-switch-conversion.c: Include cfgloop.h
7190 (process_switch): If we emit a bit-test cascade, schedule loops
7191 for fixup.
7192 * tree-complex.c: Include cfgloop.h.
7193 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7194 * asan.c: Include cfgloop.h.
7195 (create_cond_insert_point): Properly add new basic-blocks to
7196 loops, schedule loop fixup.
7197 * cfgloop.c (verify_loop_structure): Check that looks are not
7198 marked for fixup.
7199 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7200 to loops.
7201 (expand_omp_for_generic): Likewise.
7202 (expand_omp_sections): Likewise.
7203 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7204 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7205 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7206 is initialized, not when loops are present.
7207 * tree-parloops.c (parallelize_loops): Remove checking here.
7208 * passes.c (init_optimization_passes): Schedule a copy-propagation
7209 pass before complete unrolling of inner loops.
7210
e78e8a0b
JJ
72112013-04-26 Jakub Jelinek <jakub@redhat.com>
7212
a2e836b2
JJ
7213 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7214 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7215 (colorize_init): Add argument to _WIN32 version.
7216 * toplev.c: Include diagnostic-color.h.
7217 (process_options): Default to -fdiagnostics-color=auto if
7218 GCC_COLORS env var is in the environment.
7219 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
7220 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7221 env var is in the environment, the default is auto rather than never.
a2e836b2 7222
e78e8a0b
JJ
7223 * diagnostic.h (file_name_as_prefix): Add context argument.
7224 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7225 the string as locus.
7226 * langhooks.c (lhd_print_error_function): Adjust caller.
7227
013e5ef9
LC
72282013-04-25 Lawrence Crowl <crowl@google.com>
7229
7230 * var-tracking.c (shared_hash_def::htab):
7231 Change type to hash_table. Update dependent calls and types.
7232
4a8fb1a1
LC
72332013-04-25 Lawrence Crowl <crowl@google.com>
7234
7235 * Makefile.in: Update as needed below.
7236
7237 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7238 Move declaration to after the type's method definitons.
7239
7240 * attribs.c (htab_t scoped_attributes::attribute_hash):
7241 Change type to hash_table. Update dependent calls and types.
7242
7243 * bitmap.c (htab_t bitmap_desc_hash):
7244 Change type to hash_table. Update dependent calls and types.
7245
7246 * cselib.c (htab_t cselib_hash_table):
7247 Change type to hash_table. Update dependent calls and types.
7248
7249 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7250 (hash_string_slot_node): Move implementation into lto-streamer.h
7251 struct string_slot_hasher.
7252 (eq_string_slot_node): Likewise.
7253
7254 * data-streamer-out.c: Update output_block::string_hash_table
7255 dependent calls and types.
7256
7257 * dwarf2cfi.c (htab_t trace_index):
7258 Change type to hash_table. Update dependent calls and types.
7259
7260 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7261 Change type to hash_table. Update dependent calls and types.
7262 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7263 (htab_t optimize_external_refs::map): Likewise.
7264 (htab_t output_comp_unit::extern_map): Likewise.
7265 (htab_t output_comdat_type_unit::extern_map): Likewise.
7266 (htab_t output_macinfo::macinfo_htab): Likewise.
7267 (htab_t optimize_location_lists::htab): Likewise.
7268 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7269
7270 * except.c (htab_t ehspec_hash_type):
7271 Change type to hash_table. Update dependent calls and types.
7272 (assign_filter_values::ttypes): Likewise.
7273 (assign_filter_values::ehspec): Likewise.
7274 (sjlj_assign_call_site_values::ar_hash): Likewise.
7275 (convert_to_eh_region_ranges::ar_hash): Likewise.
7276
7277 * gcse.c (htab_t pre_ldst_table):
7278 Change type to hash_table. Update dependent calls and types.
7279
7280 * ggc-common.c (htab_t saving_htab):
7281 Change type to hash_table. Update dependent calls and types.
7282 (htab_t loc_hash): Likewise.
7283 (htab_t ptr_hash): Likewise.
7284 (call_count): Rename ggc_call_count.
7285 (call_alloc): Rename ggc_call_alloc.
7286 (loc_descriptor): Rename make_loc_descriptor.
7287 (add_statistics): Rename ggc_add_statistics.
7288
7289 * ggc-common.c (saving_htab):
7290 Change type to hash_table. Update dependent calls and types.
7291
7292 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7293 (push_gimplify_context): Likewise.
7294 (pop_gimplify_context): Likewise.
7295 (struct gimple_temp_hash_elt): Added.
7296 (struct gimplify_hasher): Likewise.
7297 (struct gimplify_ctx.temp_htab):
7298 Change type to hash_table. Update dependent calls and types.
7299
7300 * gimple-fold.c: Include gimplify-ctx.h.
7301
7302 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7303 Change type to hash_table. Update dependent calls and types.
7304 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7305 avoid potential global name collision.
7306
7307 * gimplify.c: Include gimplify-ctx.h.
7308 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7309 (htab_t gimplify_ctx::temp_htab):
7310 Update dependent calls and types for new type hash_table.
7311 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7312 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7313
7314 * gimplify-ctx.h: New.
7315 (struct gimple_temp_hash_elt): Move from gimplify.c.
7316 (class gimplify_hasher): New.
7317 (struct gimplify_ctx): Move from gimple.h.
7318 (htab_t gimplify_ctx::temp_htab):
7319 Change type to hash_table. Update dependent calls and types.
7320
7321 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7322 (htab_t ivs_params::newivs_index):
7323 Change type to hash_table. Update dependent calls and types.
7324 (htab_t ivs_params::params_index): Likewise.
7325 (htab_t print_generated_program::params_index): Likewise.
7326 (htab_t gloog::newivs_index): Likewise.
7327 (htab_t gloog::params_index): Likewise.
7328
7329 * graphite.c: Include graphite-htab.h.
7330 4htab_t graphite_transform_loops::bb_pbb_mapping):
7331 Change type to hash_table. Update dependent calls and types.
7332
7333 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7334 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7335 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7336
7337 * graphite-dependences.c: Include graphite-htab.h.
7338 (loop_is_parallel_p): Change hash table type of parameter.
7339
7340 * graphite-htab.h: New.
7341 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7342 (extern find_pbb_via_hash): Move from graphite-poly.h.
7343 (extern loop_is_parallel_p): Move from graphite-poly.h.
7344 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7345
7346 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7347 (extern loop_is_parallel_p): Move to graphite-htab.h.
7348 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7349
7350 * haifa-sched.c (htab_t delay_htab):
7351 Change type to hash_table. Update dependent calls and types.
7352 (htab_t delay_htab_i2): Likewise.
7353
7354 * ira-color.c (htab_t allocno_hard_regs_htab):
7355 Change type to hash_table. Update dependent calls and types.
7356
7357 * ira-costs.c (htab_t cost_classes_htab):
7358 Change type to hash_table. Update dependent calls and types.
7359
7360 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7361 Change type to hash_table. Update dependent calls and types.
7362
7363 * loop-iv.c (htab_t bivs):
7364 Change type to hash_table. Update dependent calls and types.
7365
7366 * loop-unroll.c (htab_t opt_info::insns_to_split):
7367 Change type to hash_table. Update dependent calls and types.
7368 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7369
7370 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7371 (struct string_slot_hasher): New.
7372 (htab_t output_block::string_hash_table):
7373 Change type to hash_table. Update dependent calls and types.
7374
7375 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7376 (htab_t file_name_hash_table):
7377 Change type to hash_table. Update dependent calls and types.
7378
7379 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7380 calls and types.
7381
7382 * lto-streamer.c (htab_t tree_htab):
7383 Change type to hash_table. Update dependent calls and types.
7384
7385 * omp-low.c: Include gimplify-ctx.h.
7386
7387 * passes.c (htab_t name_to_pass_map):
7388 Change type to hash_table. Update dependent calls and types.
7389 (pass_traverse): Rename to passes_pass_traverse.
7390
7391 * plugin.c (htab_t event_tab):
7392 Change type to hash_table. Update dependent calls and types.
7393
7394 * postreload-gcse.c (htab_t expr_table):
7395 Change type to hash_table. Update dependent calls and types.
7396 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7397
7398 * sese.c (debug_rename_map_1): Make extern.
7399 (htab_t copy_bb_and_scalar_dependences::rename_map):
7400 Change type to hash_table. Update dependent calls and types.
7401
7402 * sese.h (extern debug_rename_map): Move to .c file.
7403
7404 * store-motion.c (htab_t store_motion_mems_table):
7405 Change type to hash_table. Update dependent calls and types.
7406
7407 * trans-mem.c (htab_t tm_new_mem_hash):
7408 Change type to hash_table. Update dependent calls and types.
7409
7410 * tree-browser.c (htab_t TB_up_ht):
7411 Change type to hash_table. Update dependent calls and types.
7412
7413 * tree-cfg.c (htab_t discriminator_per_locus):
7414 Change type to hash_table. Update dependent calls and types.
7415
7416 * tree-complex.c: Include tree-hasher.h
7417 (htab_t complex_variable_components):
7418 Change type to hash_table. Update dependent calls and types.
7419
7420 * tree-eh.c (htab_t finally_tree):
7421 Change type to hash_table. Update dependent calls and types.
7422
7423 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7424 struct int_tree_hasher.
7425 (extern int_tree_map_eq): Likewise.
7426 (uid_decl_map_hash): Removed.
7427 (extern decl_tree_map_eq): Likewise.
7428
7429 * tree-hasher.h: New.
7430 (struct int_tree_hasher): New.
7431 (typedef int_tree_htab_type): New.
7432
7433 * tree-inline.c: Include gimplify-ctx.h.
7434
7435 * tree-mudflap.c: Include gimplify-ctx.h.
7436
7437 * tree-parloops.c: Include tree-hasher.h.
7438 (htab_t eliminate_local_variables_stmt::decl_address):
7439 Change type to hash_table. Update dependent calls and types.
7440 (htab_t separate_decls_in_region::decl_copies): Likewise.
7441
7442 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7443 Change type to hash_table. Update dependent calls and types.
7444
7445 * tree-sra.c (candidates):
7446 Change type to hash_table. Update dependent calls and types.
7447
7448 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7449 in tree-flow.h.
7450 (int_tree_map_hash): Likewise.
7451
7452 * tree-ssa-dom.c (htab_t avail_exprs):
7453 Change type to hash_table. Update dependent calls and types.
7454
7455 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7456 Change type to hash_table. Update dependent calls and types.
7457
7458 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7459 Change type to hash_table. Update dependent calls and types.
7460
7461 * tree-ssa-phiopt.c (seen_ssa_names):
7462 Change type to hash_table. Update dependent calls and types.
7463
7464 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7465 Change type to hash_table. Update dependent calls and types.
7466
7467 * tree-ssa-uncprop.c (equiv):
7468 Change type to hash_table. Update dependent calls and types.
7469
c5a44004
JJ
74702013-04-25 Jakub Jelinek <jakub@redhat.com>
7471
7472 PR rtl-optimization/57003
7473 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7474 call note_stores with kill_clobbered_value callback again after
7475 killing regs_invalidated_by_call.
7476
09962a4a
JG
74772013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7478
7479 * config/aarch64/aarch64-simd.md
7480 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7481 (aarch64_simd_bsl<mode>): Likewise.
7482 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7483
ea28bb0b
MP
74842013-04-25 Marek Polacek <polacek@redhat.com>
7485
7486 PR tree-optimization/57066
3c21604f 7487 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 7488
96659611
JG
74892013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7490
7491 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7492
9697e620
JG
74932013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7494
7495 * config/aarch64/aarch64-builtins.c
7496 (aarch64_fold_builtin): New.
7497 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7498 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7499 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7500 * config/aarch64/arm_neon.h
7501 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7502
0ac198d3
JG
75032013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7504 Tejas Belagod <tejas.belagod@arm.com>
7505
7506 * config/aarch64/aarch64-builtins.c
7507 (aarch64_gimple_fold_builtin): New.
7508 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7509 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7510 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7511 (addvv4sf): Update.
7512 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7513
58cff58c
N
75142013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7515
df93505e 7516 * config/aarch64/aarch64.md
58cff58c
N
7517 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7518
7e0228bf
N
75192013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7520
7521 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7522 (*ngcsi_uxtw): New pattern.
7523
5819f96f 75242013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 7525 Julian Brown <julian@codesourcery.com>
5819f96f
KT
7526
7527 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7528 (TB_DREG): Add T_V4HF.
7529 (v4hf_UP): New macro.
7530 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 7531 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7532 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7533 built-ins.
df93505e 7534 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7535 (arm_vector_mode_supported_p): Handle V4HF.
7536 (arm_mangle_map): Handle V4HFmode.
7537 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7538 * config/arm/arm_neon_builtins.def: Add entries for
7539 vcvtv4hfv4sf, vcvtv4sfv4hf.
7540 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7541 (neon_vcvtv4hfv4sf): Likewise.
7542 * config/arm/neon-gen.ml: Handle half-precision floating point
7543 features.
7544 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7545 * config/arm/arm_neon.h: Regenerate.
7546 * config/arm/neon.ml (type elts): Add F16.
7547 (type vectype): Add T_float16x4, T_floatHF.
7548 (type vecmode): Add V4HF.
7549 (type features): Add Requires_FP_bit feature.
7550 (elt_width): Handle F16.
7551 (elt_class): Likewise.
7552 (elt_of_class_width): Likewise.
7553 (mode_of_elt): Refactor.
7554 (type_for_elt): Handle F16, fix error messages.
7555 (vectype_size): Handle T_float16x4.
7556 (vcvt_sh): New function.
7557 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7558 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7559 (string_of_mode): Handle V4HF.
7560 * doc/arm-neon-intrinsics.texi: Regenerate.
7561
1ef395e4
JG
75622013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7563
7564 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7565 format specifier in 'X' case.
7566
41c34e94
AM
75672013-04-25 Alan Modra <amodra@gmail.com>
7568
7569 PR target/57052
7570 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7571 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7572 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7573 Repeat for many other rotate/shift and mask patterns using subregs.
7574 Name lshiftrt insns.
7575 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7576 on WORDS_BIG_ENDIAN.
7577
b9a7eb5d
AM
75782013-04-25 Alan Modra <amodra@gmail.com>
7579
7580 * config.gcc: Support little-endian powerpc-linux targets.
7581 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7582 (LINK_OS_LINUX_SPEC): Define.
7583 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7584 Preserve MASK_LITTLE_ENDIAN.
7585 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7586 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7587 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7588 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7589 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7590 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7591 Correct fp word order for little-endian. Don't shift toc entries
7592 smaller than a word for little-endian.
7593 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7594 (bswapdi2 splits): Correct low-part subreg for little-endian.
7595 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7596 low/high where such is correct only for be.
7597 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7598 little-endian for -mcall-aixdesc.
7599
87f73374
AM
76002013-04-25 Alan Modra <amodra@gmail.com>
7601
7602 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7603 replace_equiv_address_nv.
7604
cabf91cd
AM
76052013-04-25 Alan Modra <amodra@gmail.com>
7606
7607 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7608
0ae24cc8
VM
76092013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7610
7611 Revert:
7612 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7613 * rtl.h (struct rtx_def): ...
cabf91cd 7614
77bce07c
VM
76152013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7616
7617 PR rtl-optimizations/57046
7618 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7619 for multi-reg splits.
7620
0db63e7f
L
76212013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7622
7623 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7624
3362b6b6
SA
76252013-04-24 Sterling Augustine <saugustine@google.com>
7626
7627 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7628 (comp_dir_string, debug_str_dwo_section): New.
7629 (DEBUG_STR_DWO_SECTION): Rename to ...
7630 (DEBUG_DWO_STR_SECTION): ... this.
7631 (DEBUG_NORM_STR_SECTION): Delete.
7632 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7633 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7634 (find_AT_string): Move most logic to ...
7635 (find_AT_string_in_table): ... here. New.
7636 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7637 add_skeleton_AT_string. Delete logic.
7638 (output_skeleton_debug_sections): Remove call to
7639 add_top_level_skeleton_die_attrs.
7640 (add_comp_dir_attribute): Move logic to comp_dir_string.
7641 (dwarf2out_init): Initialize debug_str_dwo_section.
7642 (output_indirect_string): Call find_string_form.
7643 (output_indirect_strings): Rewrite.
7644 (prune_unused_types): Empty skeleton_debug_str_hash.
7645 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7646 (dwarf2out_finish): Call output_indirect_strings.
7647
e93e18e9
PC
76482013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7649
7650 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7651
f6ce35ac
VM
76522013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7653
cabf91cd 7654 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
7655 (LRA_SUBREG_P): New macro.
7656 * recog.c (register_operand): Check LRA_SUBREG_P.
7657 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7658 stack frame.
7659 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7660 (lra_final_code_change): Skip subreg change for operators.
7661 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7662 if there are no operand changes.
7663 * lra-constraints.c (curr_insn_set): New.
7664 (match_reload): Set LRA_SUBREG_P.
7665 (emit_spill_move): Ditto.
7666 (check_and_process_move): Use curr_insn_set. Process only single
7667 set insns. Don't initialize sec_mem_p and change_p.
7668 (simplify_operand_subreg): Use LRA_SUBREG_P.
7669 (reg_in_class_p): New function.
7670 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7671 of #ifdef. Add code to remove cycling.
7672 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7673 non-null disp. Reload inner instead of disp when base and index
7674 are null. Try to put lo_sum into register.
7675 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 7676 (check_and_process_move): Move code for move cost check to
f6ce35ac 7677 simple_move_p. Remove equiv_substitution.
cabf91cd 7678 (simple_move_p): New function.
f6ce35ac
VM
7679 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7680 curr_insn_set. Call check_and_process_move only for single set
7681 insns. Use the new function. Move call of check_and_process_move
7682 after operand equiv substitution and address process.
7683
38047d90
JG
76842013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7685
7686 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7687 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7688 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7689
13f39b2e
PC
76902013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7691
7692 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7693
97c116dc
MP
76942013-04-24 Marek Polacek <polacek@redhat.com>
7695
7696 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7697 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7698 (select_loops_exit_conditions): Likewise.
7699 (number_of_iterations_for_all_loops): Likewise.
7700 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7701 (scev_analysis): Likewise.
7702
83082391
CM
77032013-04-02 Catherine Moore <clm@codesourcery.com>
7704 Chao-ying Fu <fu@mips.com>
7705
cabf91cd
AM
7706 * config/mips/micromips.md (jraddiusp): New pattern.
7707 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7708 instruction if possible.
83082391 7709
19e34aa2
AM
77102013-04-24 Alan Modra <amodra@gmail.com>
7711
7712 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7713
fdb6603c
JB
77142013-04-24 Julian Brown <julian@codesourcery.com>
7715 Chung-Lin Tang <cltang@codesourcery.com>
7716
7717 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
7718 dependency behavior in enumeration type DIE generation. Add TODO note
7719 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 7720
bf190e8d
LC
77212013-04-23 Lawrence Crowl <crowl@google.com>
7722
7723 * Makefile.in: Update as needed below.
7724
7725 * hash-table.h (class hash_table):
7726 Correct many methods with parameter types compare_type to the correct
7727 value_type. (Correct code was unlikely to notice the change.)
7728 (hash_table::elements_with_deleted) New.
7729 (class hashtable::iterator): New.
7730 (hashtable::begin()): New.
7731 (hashtable::end()): New.
7732 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7733
7734 * statistics.c (statistics_hashes):
7735 Change type to hash_table. Update dependent calls and types.
7736
7737 * tree-into-ssa.c (var_infos):
7738 Change type to hash_table. Update dependent calls and types.
7739
7740 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7741 Change type to hash_table. Update dependent calls and types.
7742
7743 * tree-ssa-loop-im.c (struct mem_ref.refs):
7744 Change type to hash_table. Update dependent calls and types.
7745
7746 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7747 Change type to hash_table. Update dependent calls and types.
7748
7749 * tree-ssa-sccvn.c (vn_tables_s::nary):
7750 Change type to hash_table. Update dependent calls and types.
7751 (vn_tables_s::phis): Likewise.
7752 (vn_tables_s::references): Likewise.
7753
7754 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7755 (vn_reference_eq): Update parameter and return types.
7756
7757 * tree-ssa-structalias.c (pointer_equiv_class_table):
7758 Change type to hash_table. Update dependent calls and types.
7759 (location_equiv_class_table): Likewise.
7760
7761 * tree-vect-data-refs.c: Consequential changes for making
7762 peeling a hash_table.
7763
7764 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7765 (destroy_loop_vec_info): Dependent hash_table update.
7766
7767 * tree-vectorizer.h (peeling_htab):
7768 Change type to hash_table. Update dependent calls and types.
7769
d70a81dd
SC
77702013-04-23 Shiva Chen <shiva0217@gmail.com>
7771
cabf91cd
AM
7772 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7773 to check the register content is equal or not.
7774 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7775 to assign register content record.
7776 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 7777 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
7778 * lra-int.h (struct lra_reg): Add offset member.
7779 (lra_reg_val_equal_p): New static inline function.
7780 (lra_update_reg_val_offset): New static inline function.
7781 (lra_assign_reg_val): New static inline function.
7782 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7783 to assign register content record.
7784 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 7785
b894a1f3
CM
77862013-04-23 Catherine Moore <clm@codesourcery.com>
7787
7788 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7789 operands. Record compression.
7790
ecd14de9
XDL
77912013-04-23 Xinliang David Li <davidxl@google.com>
7792
7793 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7794
92e776e9
RB
77952013-04-23 Richard Biener <rguenther@suse.de>
7796
7797 PR middle-end/57036
7798 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7799 parameter, only add abnormal goto edges from the copied body
7800 if the call could perform abnormal gotos.
7801 (copy_cfg_body): Adjust.
7802
a15ee567
SN
78032013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7804
7805 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7806
08c52234
AS
78072013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7808
7809 * coretypes.h (gimple_stmt_iterator): Add struct to make
7810 compatible with C.
7811
999c1171
RB
78122013-04-23 Richard Biener <rguenther@suse.de>
7813
7814 PR tree-optimization/57026
7815 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7816 from SSA names occuring in abnormal PHI nodes.
7817
53669259
AK
78182013-04-22 Andi Kleen <ak@linux.intel.com>
7819
7820 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7821
1a0ad150
AK
78222013-04-22 Andi Kleen <ak@linux.intel.com>
7823
7824 * lto/lto.c (print_lto_report_1): Declare early.
7825 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7826
057f8f20
AK
78272013-04-22 Andi Kleen <ak@linux.intel.com>
7828
7829 * common.opt (-flto-report-wpa): Add.
7830 * doc/invoke.texi (-flto-report-wpa): Add.
7831 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7832 (lto_main): dito.
7833
473b1e05
XDL
78342013-04-22 Xinliang David Li <davidxl@google.com>
7835
7836 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7837 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7838 * Makefile.in: New dependency
7839
cabf91cd 7840 David Daney <ddaney.cavm@gmail.com>
b1485a33 7841
cabf91cd
AM
7842 * configure.ac (gcc_cv_as_micromips_support): Use the
7843 --fatal-warnings option.
7844 * configure: Regenerate.
b1485a33 7845
829d0168
MP
78462013-04-22 Marek Polacek <polacek@redhat.com>
7847
7848 PR sanitizer/56990
7849 * tsan.c (instrument_expr): Don't instrument expression
7850 in case its size is zero.
7851
6d9b7208
UB
78522013-04-22 Uros Bizjak <ubizjak@gmail.com>
7853
7854 PR target/57032
7855 Revert:
7856 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7857
7858 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7859
ea679d55
JG
78602013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7861
7862 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7863 (gimple_stmt_iterator): New typedef.
7864 * gimple.h (gimple_stmt_iterator): Rename to...
7865 (gimple_stmt_iterator_d): ... This.
7866 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7867 trees be valid for GIMPLE and GENERIC.
7868 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7869 * gimple-fold.c (gimple_fold_call): Call target hook
7870 gimple_fold_builtin.
7871 * hooks.c (hook_bool_gsiptr_false): New.
7872 * hooks.h (hook_bool_gsiptr_false): New.
7873 * target.def (fold_stmt): New.
7874 * doc/tm.texi: Regenerate.
7875
88a581da
VM
78762013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7877
7878 PR target/57018
7879 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7880 a set sp if no stack realignment.
7881
92be22dc
NC
78822013-04-22 Nick Clifton <nickc@redhat.com>
7883
7884 * config.gcc (tilegx-linux): Extend extra_objs rather than
7885 overwriting it.
7886 (tilepro-linux): Likewise.
7887
0ddec79f
JG
78882013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7889
7890 * config/aarch64/aarch64-builtins.c
7891 (CF): Remove.
7892 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7893 (VAR<1-12>): Add MAP parameter.
7894 (BUILTIN_*): Likewise.
7895 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7896 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7897 (aarch64_ushl_n<mode>): Likewise.
7898 (aarch64_sshr_n<mode>): Likewise.
7899 (aarch64_ushr_n<mode>): Likewise.
7900 (aarch64_<maxmin><mode>): Likewise.
7901 (aarch64_sqrt<mode>): Likewise.
7902 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7903 (vshr<q>_n_*): Likewise.
7904
0050faf8
JG
79052013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7906
7907 * config/aarch64/aarch64-builtins.c
7908 (aarch64_simd_builtin_type_mode): Handle SF types.
7909 (sf_UP): Define.
7910 (BUILTIN_GPF): Define.
7911 (aarch64_init_simd_builtins): Handle SF types.
7912 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7913 (frecps): Likewise.
7914 (frecpx): Likewise.
7915 * config/aarch64/aarch64-simd.md
7916 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7917 (aarch64_frecpe<mode>): New.
7918 (aarch64_frecps<mode>): Likewise.
7919 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7920 (v8type): Add frecp<esx>.
7921 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7922 (aarch64_frecps<mode>): Likewise.
7923 * config/aarch64/iterators.md (FRECP): New.
7924 (frecp_suffix): Likewise.
7925 * config/aarch64/arm_neon.h
7926 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7927
0fad3dbc 79282013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
7929
7930 PR target/56995
7931 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7932 (REG_CLASS_NAMES): Idem.
7933 (REG_CLASS_CONTENTS): Idem.
7934 (REGCLASS_HAS_FP_REG): Idem.
7935 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7936 (sh_conditional_register_usage): Idem.
7937
3e8a33f9
JL
79382013-04-21 Jeff Law <law@redhat.com>
7939
7940 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7941 (ssa_forward_propagate_and_combine): Use it.
7942
f38e1b0a
VM
79432013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7944
7945 * lra.c: Update the flow chart diagram.
7946
682303da
VM
79472013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7948
7949 PR rtl-optimization/56847
7950 * lra-constraints.c (process_alt_operands): Discourage alternative
7951 with non-matche doffsettable memory constraint fro memory with
7952 known offset.
7953
f6b64c35
RB
79542013-04-19 Richard Biener <rguenther@suse.de>
7955
7956 PR tree-optimization/56982
7957 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7958 function.
7959 * gimplify.c (gimplify_call_expr): Notice special calls.
7960 (gimplify_modify_expr): Likewise.
7961 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7962 abnormal control flow receivers.
7963 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7964 in the same way as cfun->has_nonlocal_labels.
7965 (gimple_purge_dead_abnormal_call_edges): Likewise.
7966 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7967 receivers start a basic-block.
7968
01d8bf07
RB
79692013-04-19 Richard Biener <rguenther@suse.de>
7970
7971 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7972 member ...
7973 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
7974 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7975 (SLP_TREE_LOAD_PERMUTATION): Add.
7976 (vect_transform_slp_perm_load): Adjust prototype.
7977 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7978 (vect_free_slp_instance): Likewise.
7979 (vect_create_new_slp_node): Likewise.
7980 (vect_supported_slp_permutation_p): Remove.
7981 (vect_slp_rearrange_stmts): Adjust.
7982 (vect_supported_load_permutation_p): Likewise. Inline
7983 vect_supported_slp_permutation_p here.
7984 (vect_analyze_slp_instance): Compute load permutations per
7985 slp node instead of per instance.
7986 (vect_get_slp_defs): Adjust.
7987 (vect_transform_slp_perm_load): Likewise.
7988 (vect_schedule_slp_instance): Remove redundant code.
7989 (vect_schedule_slp): Remove hack for PR56270, add it ...
7990 * tree-vect-stmts.c (vectorizable_load): ... here, do not
7991 CSE loads for SLP. Adjust.
7992
ede22fc3
GY
79932013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7994
7995 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7996 spelling in two comments.
7997
67bc84fb
GY
79982013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7999
8000 PR target/56797
8001 * config/arm/arm.c (load_multiple_sequence): Require SP
8002 as base register for loads if SP is in the register list.
8003
e248d83f
MJ
80042013-04-19 Martin Jambor <mjambor@suse.cz>
8005
8006 PR tree-optimization/56718
8007 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8008 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8009 and made public. Adjusted all callers.
8010 (ipa_intraprocedural_devirtualization): New function.
8011 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8012 (ipa_intraprocedural_devirtualization): Likewise.
8013 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8014
4891e8f8
RB
80152013-04-19 Richard Biener <rguenther@suse.de>
8016
8017 PR tree-optimization/57000
8018 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8019
dad89f7c
TG
80202013-04-19 Terry Guo <terry.guo@arm.com>
8021
8022 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8023 Replace with ...
8024 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8025 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8026 (cortex_m4_fmacs): Use new reservations.
8027 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8028
72ea0d47
VM
80292013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8030
f1e6512c 8031 PR rtl-optimization/56999
72ea0d47
VM
8032 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8033 related code.
8034 (lra_coalesce): Remove split_origin_bitmap and related code.
8035 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8036 ranges if necessary.
8037
780a5b71
UB
80382013-04-18 Uros Bizjak <ubizjak@gmail.com>
8039
8040 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8041 New array.
8042 (ix86_expand_call): Remove clobbered_registers array and use
8043 x86_64_ms_sysv_extra_clobbered_registers instead.
8044 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8045 Declare here.
8046 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8047 predicate.
8048 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8049 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8050 (*call_value_rex64_ms_sysv): Ditto.
8051
6f5a366a
CC
80522013-04-18 Cary Coutant <ccoutant@google.com>
8053
8054 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8055 parent instead of die_mark.
8056
475b8f37
DN
80572013-04-18 Diego Novillo <dnovillo@google.com>
8058
8059 * gimple.c (create_gimple_tmp): New.
8060 (get_expr_type): New.
8061 (build_assign): New.
8062 (build_type_cast): New.
8063 * gimple.h (enum ssa_mode): Define.
8064 (gimple_seq_set_location): New.
8065 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 8066 to use build_assign and build_type_cast.
475b8f37 8067
08940f33
RB
80682013-04-18 Richard Biener <rguenther@suse.de>
8069
8070 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8071 handle negative step. Remove redundant checks.
8072 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8073 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8074 for negative step and grouped loads fail to vectorize.
8075
0e0f87d4
SB
80762013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8077
8078 * emit-rtl.c (reset_insn_used_flags): New function.
8079 (reset_all_used_flags): Use it.
8080 (verify_insn_sharing): New function.
8081 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8082
4c445590
JJ
80832013-04-18 Jakub Jelinek <jakub@redhat.com>
8084
8085 PR tree-optimization/56984
8086 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8087 and (x >> M) >= N don't register any assertion if N << M is the
8088 minimum value.
8089
6873ecab
SB
80902013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8091
8092 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8093 do not delete_insn insns that have not yet been emitted, only
8094 unlink them with remove_insn.
8095 * df-scan.c (df_insn_delete): Revert r197492.
8096
3ccb989e
SB
80972013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8098
8099 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8100 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8101
81022013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
8103
8104 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8105 define_insn_and_split.
8106 (and_scc,ior_scc,negscc): Likewise.
8107 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8108
3ccb989e 81092013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
8110
8111 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8112 can benefit from using a sequence of LDRD instructions in epilogue
8113 instead of a single LDM instruction.
8114
6d10a203
MLI
81152013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8116
8117 PR 45688
8118 * doc/extend.texi: Fix typo.
8119
6983e6b5
RB
81202013-04-17 Richard Biener <rguenther@suse.de>
8121
8122 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8123 (vect_build_slp_tree): ... here.
8124 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8125 match. Remove special-casing of mismatched complex loads.
8126 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8127 re-try the match with swapped commutative operands.
8128 (vect_supported_load_permutation_p): Remove special-casing of
8129 mismatched complex loads.
8130 (vect_analyze_slp_instance): Adjust.
8131
ef23e6a2
RB
81322013-04-17 Richard Biener <rguenther@suse.de>
8133
8134 PR rtl-optimization/56921
8135 * cfgloop.h (struct loop): Add simple_loop_desc member.
8136 (struct niter_desc): Mark with GTY(()).
8137 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8138 * loop-iv.c (get_simple_loop_desc): Likewise.
8139 (free_simple_loop_desc): Likewise.
8140
8141 Revert
8142 2013-04-16 Richard Biener <rguenther@suse.de>
8143
8144 PR rtl-optimization/56921
8145 * loop-init.c (pass_rtl_move_loop_invariants): Add
8146 TODO_do_not_ggc_collect to todo_flags_finish.
8147 (pass_rtl_unswitch): Same.
8148 (pass_rtl_unroll_and_peel_loops): Same.
8149 (pass_rtl_doloop): Same.
8150
fc6f94f5
EB
81512013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8152
8153 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8154 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8155 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8156 references.
8157 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8158 * tree-streamer.c (record_common_node): Adjust reference in comment.
8159
10a88311
TG
81602013-04-17 Terry Guo <terry.guo@arm.com>
8161
8162 * config/arm/cortex-m4.md: Add a new bypass.
8163
6d9b7208 81642013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
8165
8166 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8167 New pattern.
8168 (*subs_<optab><mode>_multp2): New pattern.
8169 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8170 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8171
6d9b7208 81722013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
8173
8174 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8175 (*subs_mul_imm_<mode>): New pattern.
8176
18a6701e
DE
81772013-04-16 David Edelsohn <dje.gcc@gmail.com>
8178
8179 PR target/56948
8180 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8181 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8182 (vsx_movti_32bit): Change j->wa to O->wa.
8183
07c37b2f
RB
81842013-04-16 Richard Biener <rguenther@suse.de>
8185
8186 PR rtl-optimization/56921
8187 * loop-init.c (pass_rtl_move_loop_invariants): Add
8188 TODO_do_not_ggc_collect to todo_flags_finish.
8189 (pass_rtl_unswitch): Same.
8190 (pass_rtl_unroll_and_peel_loops): Same.
8191 (pass_rtl_doloop): Same.
8192
0e0f87d4 81932013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
8194
8195 * config/arm/arm.c (emit_multi_reg_push): New declaration
8196 for an existing function.
8197 (arm_emit_strd_push): New function.
8198 (arm_expand_prologue): Used here.
8199 (arm_emit_ldrd_pop): New function.
8200 (arm_expand_epilogue): Used here.
8201 (arm_get_frame_offsets): Update condition.
8202 (arm_emit_multi_reg_pop): Add a special case for load of a single
8203 register with writeback.
8204
5e8e2af4
UB
82052013-04-16 Uros Bizjak <ubizjak@gmail.com>
8206
8207 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8208 description.
8209
9fd9ccf7
RB
82102013-04-16 Richard Biener <rguenther@suse.de>
8211
8212 PR tree-optimization/56756
8213 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8214 (first_mem_ref_loc): New.
8215 (execute_sm): Place the load temporarily before a previous
8216 access instead of in the latch edge to ensure its SSA dependencies
8217 are defined at points dominating the load.
8218
96fba521
SB
82192013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8220
4c8af858
SB
8221 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8222 correct fix by moving header and footer insn to the footer of
8223 the merged basic block. Clear BB_END of the merged-away block.
8224
96fba521
SB
8225 PR middle-end/43631
8226 * emit-rtl.c (make_note_raw): New function.
8227 (link_insn_into_chain): New static inline function.
8228 (add_insn): Use it.
8229 (add_insn_before, add_insn_after): Factor insn chain linking code...
8230 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8231 using link_insn_into_chain.
8232 (note_outside_basic_block_p): New helper function for emit_note_after
8233 and emit_note_before.
8234 (emit_note_after): Use nobb variant of add_insn_after if the note
8235 should not be contained in a basic block.
8236 (emit_note_before): Use nobb variant of add_insn_before if the note
8237 should not be contained in a basic block.
8238 (emit_note_copy): Use make_note_raw.
8239 (emit_note): Likewise.
8240 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8241 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8242 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8243 the moved barrier the tail of the basic block it follows.
8244 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8245
7b8265ba
JJ
82462013-04-15 Jakub Jelinek <jakub@redhat.com>
8247
8248 PR tree-optimization/56962
8249 * gimple-ssa-strength-reduction.c (record_increment): Only set
8250 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8251 either rhs1 or rhs2 is equal to c->base_expr.
8252
5185d248
RB
82532013-04-15 Richard Biener <rguenther@suse.de>
8254
8255 PR tree-optimization/56933
8256 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8257 member.
8258 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8259 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8260 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8261 dependence check ...
8262 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8263 ... here.
8264 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8265 GROUP_READ_WRITE_DEPENDENCE.
8266
a24243a0
AK
82672013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8268
8269 * emit-rtl.c (reset_all_used_flags): New function.
8270 (verify_rtl_sharing): Call reset_all_used_flags before and after
8271 performing the checks.
8272
1c50eada
KT
82732013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8274
8275 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8276 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8277 * config/arm/constraints.md (De): New constraint.
8278 * config/arm/neon.md (anddi3_neon): Delete.
8279 (neon_vand<mode>): Expand to standard anddi3 pattern.
8280 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8281 Move earlier in the file.
8282 (neon_inv_logic_op2): Likewise.
8283 (arm_anddi_operand_neon): New predicate.
8284
e927b6ad
RO
82852013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8286
8287 * configure.ac (gcc_cv_ld_as_needed): Set
8288 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8289 Use -z ignore, -z record on *-*-solaris2*.
8290 (HAVE_LD_AS_NEEDED): Update comment.
8291 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8292 * configure: Regenerate.
8293 * config.in: Regenerate.
8294 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8295 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8296 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8297 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8298 equivalents. Fix markup.
8299 * doc/tm.texi: Regenerate.
8300
e0ea8797
AH
83012013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8302
8303 * config/i386/i386.opt: New option mstack-protector-guard=.
8304 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8305 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8306 TARGET_SSP_TLS_GUARD.
8307 * config/i386/i386.c (ix86_option_override_internal): Set
8308 ix86_stack_protector_guard.
8309 * config/i386/i386.md (stack_protect_set): Enable for
8310 TARGET_SSP_TLS_GUARD only.
8311 (stack_protect_set_<mode>): Ditto.
8312 (stack_protect_test): Ditto.
8313 (stack_protect_test_<mode>): Ditto.
8314 * doc/invoke.texi (i386 Option): Document.
8315
811b72f9
EB
83162013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8317
8318 PR target/56890
8319 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8320 (S_MODES): Set H_MODE bit.
8321 (SF_MODES): Set only S_MODE and SF_MODE bits.
8322 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8323 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8324 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8325 <MODE_FLOAT>: Likewise.
8326
5529fdd6
JY
83272013-04-15 Joey Ye <joey.ye@arm.com>
8328
8329 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8330
517b1da2
JY
83312013-04-15 Joey Ye <joey.ye@arm.com>
8332
8333 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8334 for real far jump.
8335 (thumb_far_jump_used_p): Count instruction size and set
8336 far_jump_used.
8337
01007ae0
EB
83382013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8339
8340 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8341 * resource.c (mark_target_live_regs): Reformat conditional block.
8342
c46f6580
SB
83432013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8344
8345 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8346 notes, they are emitted only just before final.
8347 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8348
1f397f45
SB
83492013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8350
8351 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8352 * cfgrtl.c (delete_insn): Call it here instead.
8353 * lra-spills.c (lra_final_code_change): Use delete_insn.
8354 * haifa-sched.c (sched_remove_insn): Likewise.
8355 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8356 returning to the nop pool.
8357 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8358 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8359
58a51369
SB
83602013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8361
8362 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8363 * doc/tm.texi: Regenerated.
8364
33159866
UB
83652013-04-12 Uros Bizjak <ubizjak@gmail.com>
8366
8367 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8368 QImode checks.
8369
226e378f
SB
83702013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8371
8372 * df-core.c (df_find_def): Compare register numbers.
8373 (df_find_use): Likewise.
8374
fafb9b18
VM
83752013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8376
8377 PR target/56903
8378 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8379 lra_in_progress for return.
8380
9a946fd6
GY
83812013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8382
8383 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8384 define_insn into define_insn_and_split and emit movsicc patterns.
8385
41b83758
GY
83862013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8387
8388 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8389
d3afd9aa
RB
83902013-04-12 Richard Biener <rguenther@suse.de>
8391
8392 * tree-pass.h (TODO_do_not_ggc_collect): New.
8393 * passes.c (execute_one_ipa_transform_pass): Honor
8394 TODO_do_not_ggc_collect.
8395 (execute_one_pass): Likewise.
8396
8397 Revert
8398 2013-04-10 Richard Biener <rguenther@suse.de>
8399
8400 * passes.c (init_optimization_passes): Remove reload pass.
8401 * ira.c (do_reload): Merge into ...
8402 (ira): ... this.
8403 (rest_of_handle_reload): Remove.
8404 (pass_reload): Likewise.
8405 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8406 of reload for vzeroupper pass placement.
8407
06f9b387
JJ
84082013-04-12 Jakub Jelinek <jakub@redhat.com>
8409
8410 PR tree-optimization/56918
8411 PR tree-optimization/56920
8412 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8413 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8414 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8415 use wide_mul_with_sign method.
8416
953094d2
RB
84172013-04-12 Richard Biener <rguenther@suse.de>
8418
8419 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8420 not be considered a gimple constant.
8421
bb506982
MG
84222013-04-12 Marc Glisse <marc.glisse@inria.fr>
8423
8424 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8425 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8426 operations.
8427
4b84d650
JJ
84282013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8429 Jakub Jelinek <jakub@redhat.com>
8430
8431 * opts.c: Include diagnostic-color.h.
8432 (common_handle_option): Handle OPT_fdiagnostics_color_.
8433 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8434 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8435 (diagnostic-color.o): New.
8436 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8437 (diagnostic_color_rule): New enum.
8438 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8439 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8440 the location string.
8441 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8442 either NULL, or color kind.
8443 * diagnostic-color.c: New file.
8444 * diagnostic-color.h: New file.
8445 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8446 arguments.
8447 * doc/invoke.texi (-fdiagnostics-color): Document.
8448 * pretty-print.h (pp_show_color): Define.
8449 (struct pretty_print_info): Add show_color field.
8450 * diagnostic.c: Include diagnostic-color.h.
8451 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8452 macros. Colorize error:, warning: etc. strings and also the location
8453 string.
8454 (diagnostic_show_locus): Colorize the caret line.
8455 * pretty-print.c: Include diagnostic-color.h.
8456 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8457 inside of %< %> quotes or quoted through q format modifier.
8458
067a1e71
AK
84592013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8460
33159866 8461 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 8462
33159866 84632013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
8464
8465 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8466 code in CC_NZ mode.
8467 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8468 pattern.
8469
7b55f98f
MP
84702013-04-11 Marek Polacek <polacek@redhat.com>
8471
8472 PR tree-optimization/48184
33159866 8473 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 8474
966b587e
EB
84752013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8476
8477 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8478 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8479 (skip_simple_arithmetic): Tidy up.
8480 * tree.h (skip_simple_constant_arithmetic): Declare.
8481
33159866 84822013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
8483
8484 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8485
1d42c1ec
RB
84862013-04-11 Richard Biener <rguenther@suse.de>
8487
8488 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8489 generate vector constants.
8490
4ba5ea11
RB
84912013-04-11 Richard Biener <rguenther@suse.de>
8492
8493 PR tree-optimization/56878
8494 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8495 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8496 New function.
8497 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8498 Prefer to align the DR with the most invariant base address.
8499
f0defe58
SKS
85002013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8501
8502 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8503 comment.
8504
d07458be
JG
85052013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8506
8507 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8508 floating-point vector comparisons against 0.
8509
146b8692
JJ
85102013-04-11 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR tree-optimization/56899
8513 * fold-const.c (extract_muldiv_1): Apply distributive law
8514 only if TYPE_OVERFLOW_WRAPS (ctype).
8515
b8578ff7
BC
85162013-04-11 Bin Cheng <bin.cheng@arm.com>
8517
8518 PR target/56124
8519 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8520 loading has side effect.
8521
0ea8a6f9
SB
85222013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8523
8524 * config/sparc/sparc.c: Include tree-pass.h.
8525 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8526 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8527 head of file. Change return type. Split off gate function.
8528 (sparc_gate_work_around_errata): New function.
8529 (pass_work_around_errata): New pass definition.
8530 (insert_pass_work_around_errata) New pass insert definition to
8531 insert pass_work_around_errata just after delayed-branch scheduling.
8532 (sparc_option_override): Insert the pass.
8533 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8534
42e37616
DM
85352013-04-10 David S. Miller <davem@davemloft.net>
8536
89deeb3b
DM
8537 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8538 or -mcpu=hypersparc.
8539
42e37616
DM
8540 * target.def (cstore_mode): New hook.
8541 * target.h: Include insn-codes.h
8542 * targhooks.c: Likewise.
8543 (default_cstore_mode): New function.
8544 * targhooks.h: Declare it.
8545 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8546 * doc/tm.texi: Rebuild.
8547 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8548 target hook, rather than inspecting the insn_data.
8549 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8550 (TARGET_CSTORE_MODE): Redefine.
8551 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8552 result patterns.
8553 * config/sparc/predicates.md (cstore_result_operand): New special
8554 predicate.
8555 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8556 Use it for operand 0.
8557 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8558 (*snesi_special): Likewise.
8559 (*snesi_zero): Likewise.
8560 (*seqsi_zero): Likewise.
8561 (*sltu_insn): Likewise.
8562 (*sgeu_insn): Likewise.
8563 (*seqdi_special): Make operand 0 and comparison operation be of
8564 DImode.
8565 (*snedi_special): Likewise.
8566 (*snedi_special_vis3): Likewise.
8567 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8568 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8569 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8570 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8571 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8572 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8573 (*sltu_extend_sp64): Likewise.
8574 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8575 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8576 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8577 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8578 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8579
95ca411e
YZ
85802013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8581
8582 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8583 (aarch64_start_file): Use the new function.
8584
6782438d 85852013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 8586 Jason Merrill <jason@redhat.com>
6782438d
SKS
8587
8588 * common.opt: Add -gdwarf.
8589 * opts.c (common_handle_option): Handle it.
8590 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8591
bb313b93
RB
85922013-04-10 Richard Biener <rguenther@suse.de>
8593
8594 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8595 (execute_one_ipa_transform_pass): But unconditionally here.
8596 (execute_one_pass): And here.
8597 (init_optimization_passes): Remove reload pass.
8598 * tree-pass.h (TODO_ggc_collect): Remove.
8599 (pass_reload): Likewise.
8600 * ira.c (do_reload): Merge into ...
8601 (ira): ... this.
8602 (rest_of_handle_reload): Remove.
8603 (pass_reload): Likewise.
8604 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8605 of reload for vzeroupper pass placement.
8606 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8607 and todo_flags_finish of all passes.
8608
793d9a16
RB
86092013-04-10 Richard Biener <rguenther@suse.de>
8610
8611 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8612 first_const_oprnd field, rename first_def_type to first_op_type.
8613 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8614 (vect_get_and_check_slp_defs): Always use the type of the
8615 operand. Allow mixed vect_external_def, vect_constant_def types.
8616 (vect_get_constant_vectors): Handle mixed vect_external_def,
8617 vect_constant_def types.
8618
ee8a9b7b
JR
86192013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8620
8621 PR tree-optimization/55524
8622 * tree-ssa-math-opts.c
8623 (convert_mult_to_fma): Don't use an fms construct
8624 when we don't have an fms operation, but fnma, and it looks
8625 likely that we'll be able to use the latter.
8626
6957a6f6
ZZ
86272013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8628
8629 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8630 function.
8631 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8632 inline fail caused by overwritable functions.
8633
34ab4a5b
CJW
86342013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8635
8636 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8637 unnecessary bits in the constant power of two case.
8638
abf9bfbc
RB
86392013-04-10 Richard Biener <rguenther@suse.de>
8640
8641 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8642 broken code swapping operands.
8643 (vect_build_slp_tree): Do not compute load permutations here.
8644 (vect_analyze_slp_instance): Compute load permutations here,
8645 after building the SLP tree.
8646
f408477e
CB
86472013-04-09 Christian Bruel <christian.bruel@st.com>
8648
8649 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8650 of next/prev_real_insn.
8651
5ac42672
JH
86522013-04-09 Jan Hubicka <jh@suse.cz>
8653
abf9bfbc
RB
8654 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8655 Drop aliased parameter.
5ac42672
JH
8656 (function_and_variable_visibility): Do not handle alias pairs.
8657 * cgraph.c (varpool_externally_visible_p): Update prototype.
8658 * varpool.c (varpool_add_new_variable): Update.
8659
5017f1d2
KT
86602013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8661
8662 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8663
48eecbee
SB
86642013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8665
a949cf1c
SB
8666 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8667
48eecbee
SB
8668 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8669
75ef8e3d
MP
86702013-04-09 Marek Polacek <polacek@redhat.com>
8671
8672 PR tree-optimization/48762
33159866 8673 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 8674
23847df4
RB
86752013-04-09 Richard Biener <rguenther@suse.de>
8676
8677 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8678 dealing with cost.
8679 (vect_build_slp_tree): Likewise.
8680 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8681 calculating the cost of a SLP instance.
8682 (vect_analyze_slp_instance): Use it from here, after building
8683 the SLP tree.
8684
ea3a0fde
JJ
86852013-04-09 Jakub Jelinek <jakub@redhat.com>
8686
8687 PR middle-end/56883
8688 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8689 expand_omp_for_static_chunk): Use simple_p = true in
8690 force_gimple_operand_gsi calls when assigning to addressable decls.
8691
a32dfe9d
JL
86922013-04-09 Jeff Law <law@redhat.com>
8693
8694 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8695 when the boolean was created by converting a wider object which
8696 had a boolean range.
8697
d755c7ef
RB
86982013-04-09 Richard Biener <rguenther@suse.de>
8699
8700 * tree-vectorizer.h (slp_void_p): Remove.
8701 (slp_tree): Typedef before _slp_tree declaration.
8702 (struct _slp_tree): Use a vector of slp_tree as children.
8703 (vect_get_place_in_interleaving_chain): Remove.
8704 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8705 Move ...
8706 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8707 and make static.
8708 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8709 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8710 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8711 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8712 Use slp_node instead of slp_void_p and adjust.
8713
3d741091
RB
87142013-04-09 Richard Biener <rguenther@suse.de>
8715
8716 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8717 work that is not necessary.
8718
39307ba7
JJ
87192013-04-09 Jakub Jelinek <jakub@redhat.com>
8720
8721 PR tree-optimization/56854
8722 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8723 forward into clobber stmts if it would change MEM_REF lhs into
8724 non-MEM_REF.
8725
343881fd
MK
87262013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8727
8728 * tree.c (type_hash_lookup, type_hash_add): Make static.
8729 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8730
3922658a
RB
87312013-04-09 Richard Biener <rguenther@suse.de>
8732
8733 * tree.h (unsave_expr_now): Remove.
8734 * tree-inline.c (mark_local_for_remap_r): Remove.
8735 (unsave_expr_1): Likewise.
8736 (unsave_r): Likewise.
8737 (unsave_expr_now): Likewise.
8738 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8739 (propagate_tree_value): Likewise.
8740
9fb6b620
SB
87412013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8742
8743 * doc/rtl.texi (sequence): Rewrite documentation to match the
8744 current use of SEQUENCE rtl objects.
8745 * rtl.def (SEQUENCE): Likewise.
8746
8747 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8748 Update documentation.
8749 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8750 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8751
8752 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8753
8ddb5a29
TJ
87542013-04-08 Teresa Johnson <tejohnson@google.com>
8755
8756 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8757 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 8758 methods.
8ddb5a29
TJ
8759 (estimate_edge_size_and_time): Add comment to suggest using rounding
8760 methods.
8761 (estimate_node_size_and_time): Ditto.
8762 (remap_edge_change_prob): Use helper rounding divide methods.
8763 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8764 (gimple_mod_pow2_value_transform): Ditto.
8765 (gimple_mod_subtract_transform): Ditto.
8766 (gimple_ic_transform): Ditto.
8767 (gimple_stringops_transform): Ditto.
8768 * stmt.c (conditional_probability): Ditto.
8769 (emit_case_dispatch_table): Ditto.
8770 * lto-cgraph.c (merge_profile_summaries): Ditto.
8771 * tree-optimize.c (execute_fixup_cfg): Ditto.
8772 * cfgcleanup.c (try_forward_edges): Ditto.
8773 * cfgloopmanip.c (scale_loop_profile): Ditto.
8774 (loopify): Ditto.
8775 (duplicate_loop_to_header_edge): Ditto.
8776 (lv_adjust_loop_entry_edge): Ditto.
8777 * tree-vect-loop.c (vect_transform_loop): Ditto.
8778 * profile.c (compute_branch_probabilities): Ditto.
8779 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8780 * lto-streamer-in.c (input_cfg): Ditto.
8781 * gimple-streamer-in.c (input_bb): Ditto.
8782 * ipa-cp.c (update_profiling_info): Ditto.
8783 (update_specialized_profile): Ditto.
8784 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8785 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 8786 rounding methods.
8ddb5a29
TJ
8787 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8788 (compute_trg_info): Ditto.
8789 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8790 (purge_dead_edges): Ditto.
8791 * loop-unswitch.c (unswitch_loop): Ditto.
8792 * cgraphclones.c (cgraph_clone_edge): Ditto.
8793 (cgraph_clone_node): Ditto.
8794 * tree-inline.c (copy_bb): Ditto.
8795 (copy_edges_for_bb): Ditto.
8796 (initialize_cfun): Ditto.
8797 (copy_cfg_body): Ditto.
8798 (expand_call_inline): Ditto.
8799
661e6bd7
KT
88002013-04-08 Kai Tietz <ktietz@redhat.com>
8801
8802 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8803 TARGET_CYGWIN64 by TARGET_64BIT.
8804
105766f3
JR
88052013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8806
8807 * config/epiphany/epiphany.md (GPR_1): New constant.
8808 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8809 * config/epiphany/epiphany.c (gen_compare_reg):
8810 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8811 is already in place.
8812 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8813 Don't require being called during rtl expansion; If y operlaps r0,
8814 return 0.
8815 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8816 (epiphany_expand_epilogue): Likewise.
8817
8afab237
JR
8818 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8819 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 8820 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 8821
fa7707d6
JR
8822 * config/epiphany/constraints.md (CnL): New constraint.
8823 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8824 * config/epiphany/predicates.md (add_operand): Allow 1024.
8825
5138e18d
JR
8826 * config/epiphany/epiphany.md (logical_op): New code iterator.
8827 (op_mnc): New code attribute.
8828 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8829 (mov_f+1, mov_f+2): New peephole2 patterns.
8830
2ccc703d
JR
8831 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8832 (cstoresi4): Also allow re-use of zero result when doing a NE
8833 comparison to a non-zero operand.
aefb0819 8834 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 8835
093ac0a5
JR
8836 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8837 Use gen_addsi3_i / gen_subsi3_i.
8838
f223bb13
JJ
88392013-04-08 Jakub Jelinek <jakub@redhat.com>
8840
8841 PR c++/34949
8842 PR c++/50243
8843 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8844 contain anything but clobbers, at most one __builtin_stack_restore,
8845 optionally debug stmts and final resx, and if it has at least one
8846 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8847 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8848 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8849 which isn't defaut definition, remove them.
8850 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8851 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8852 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8853 with MEM_REF LHS with SSA_NAME address.
8854
4481581f
JL
88552013-04-08 Jeff Law <law@redhat.com>
8856
8857 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 8858
451dabda
RB
88592013-04-08 Richard Biener <rguenther@suse.de>
8860
8861 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8862 extra newline.
8863 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8864 determined vector type.
8865 (vect_analyze_data_refs): Likewise.
8866 (vect_get_new_vect_var): Adjust.
8867 (vect_create_destination_var): Preserve SSA name versions.
8868 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8869 not dump anything here.
8870
3b088b47
JR
88712013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8872
8873 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8874 Add member lr_slot_known.
8875 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8876 if necessary.
8877 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8878 Remove code that sets lr_slot_offset according to what a previous
8879 version of epiphany_emit_save_restore used to do.
8880 (epiphany_emit_save_restore): When doing an lr save or restore,
8881 set/verify lr_slot_known and lr_slot_offset.
8882
d8484d41
XQ
88832013-04-08 Xinyu Qi <xyqi@marvell.com>
8884
33159866
UB
8885 PR target/54338
8886 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
8887 in ALL_REGS.
8888
481be1c4
RB
88892013-04-08 Richard Biener <rguenther@suse.de>
8890
8891 * alias.c (find_base_term): Fix thinko in previous change.
8892
401f3a81
JJ
88932013-04-08 Jakub Jelinek <jakub@redhat.com>
8894
8895 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8896 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8897 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8898 if possible to compute val.
8899 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8900 For QImode integers don't require anything about precision. Use
8901 const_with_all_bytes_same to find out if the constant doesn't have
8902 repeated bytes in it.
8903
03ed99a8
AK
89042013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8905
8906 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8907 within mode size.
8908
781b2e62
MP
89092013-04-08 Marek Polacek <polacek@redhat.com>
8910
8911 PR rtl-optimization/48182
8912 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8913 value to 1.
8914
27e430a2
JDA
89152013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8916
8917 PR target/55487
8918 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8919 nuses, make sure we have a label.
8920
4902aa64
BS
89212013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8922
8923 PR target/56843
8924 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8925 (rs6000_emit_swdiv_low_precision): Remove.
8926 (rs6000_emit_swdiv): Rewrite to handle between one and four
8927 iterations of Newton-Raphson generally; modify required number of
8928 iterations for some cases.
8929 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8930
7bca81dc
SB
89312013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8932
8933 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8934 set-but-unused variable.
8935
8936 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8937 basic blocks of released function bodies garbage-collectable.
8938
8939 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8940 (struct rtl_opt_pass): Add TODO_df_finish.
8941
8942 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8943
4542a38a
GY
89442013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8945
8946 * config/arm/constraints.md (q): New constraint.
8947 * config/arm/ldrdstrd.md: New file.
8948 * config/arm/arm.md (ldrdstrd.md) New include.
8949 (arm_movdi): Use "q" instead of "r" constraint
8950 for double-word memory access.
8951 (movdf_soft_insn): Likewise.
8952 * config/arm/vfp.md (movdi_vfp): Likewise.
8953 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 8954 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
8955 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8956 (mem_ok_for_ldrd_strd): Likewise.
8957 (output_move_double): Update assertion.
8958
2385b218
GY
89592013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8960
8961 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8962
75fe1cb5
GY
89632013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8964
8965 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8966 define_insn_and_split.
8967 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8968
dd660e8e
GY
89692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8970
8971 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8972 define_insn_and_split.
33159866 8973 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
8974 (shiftsi3_compare): New pattern.
8975 (rrx): New pattern.
8976 * config/arm/unspecs.md (UNSPEC_RRX): New.
8977
045e472c
GY
89782013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8979
8980 * config/arm/arm.md (negdi_extendsidi): New pattern.
8981 (negdi_zero_extendsidi): Likewise.
8982
3f3bf1a8
GY
89832013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8984
8985 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8986 define_insn_and_split.
8987 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8988 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8989
b0b49556
GY
89902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8991
8992 * config/arm/arm.md (arm_subdi3): Convert define_insn into
8993 define_insn_and_split.
8994 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8995 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8996
d633dd84
GY
89972013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8998
8999 * config/arm/arm.md (subsi3_carryin): New pattern.
9000 (subsi3_carryin_const): Likewise.
9001 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9002 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9003
f4499066
GY
90042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9005
9006 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9007
ceef6fd9
GY
90082013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9009
9010 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 9011 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 9012
ddbdd8a7
KT
90132013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9014
9015 * config/arm/arm.c (arm_expand_builtin): Change fcode
9016 type to unsigned int.
9017
8456d78a
RR
90182013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9019
9020 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9021
526c230f
ILT
90222013-04-04 Ian Lance Taylor <iant@google.com>
9023
33159866
UB
9024 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9025 language standard.
526c230f 9026
3cfbe04d
SB
90272013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9028
9029 PR middle-end/56729
9030 * df-scan.c (df_insn_delete): Disable failing assert.
9031
dfa3f8d0
KT
90322013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9033
9034 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9035 New function prototype.
9036 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9037 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9038 (arm_builtin_vectorized_function): New function.
9039
f7837758
KT
90402013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9041
9042 * config/arm/arm_neon_builtins.def: New file.
9043 * config/arm/arm.c (neon_builtin_data): Move contents to
9044 arm_neon_builtins.def.
9045 (enum arm_builtins): Include neon builtin definitions.
9046 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 9047 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 9048
39c1b6db
MP
90492013-04-04 Marek Polacek <polacek@redhat.com>
9050
9051 PR tree-optimization/48186
9052 * predict.c (maybe_hot_frequency_p): Return false if
9053 HOT_BB_FREQUENCY_FRACTION is 0.
9054 (cgraph_maybe_hot_edge_p): Likewise.
9055
314f64eb
RB
90562013-04-04 Richard Biener <rguenther@suse.de>
9057
9058 PR tree-optimization/56826
9059 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9060 more accurately.
9061
51a905b2
RB
90622013-04-04 Richard Biener <rguenther@suse.de>
9063
9064 PR tree-optimization/56213
9065 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 9066 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 9067
f1bf4f3a
RB
90682013-04-04 Richard Biener <rguenther@suse.de>
9069
9070 PR tree-optimization/56837
9071 * tree-loop-distribution.c (classify_partition): For non-zero
9072 values require that the value has the same precision as its
9073 mode to be useful as memset value.
9074
0bca7ded
NC
90752013-04-03 Nick Clifton <nickc@redhat.com>
9076
33159866 9077 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
9078 (fmssf4): Use fmsf.s on E3V5 architectures.
9079 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9080 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9081
b4019227
JL
90822013-04-03 Jeff Law <law@redhat.com>
9083
9084 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9085 (lra-eliminations.o): Likewise.
9086
f57ddb5b
TJ
90872013-04-03 Teresa Johnson <tejohnson@google.com>
9088
9089 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 9090 compute_working_sets here from profile.c.
f57ddb5b 9091 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
9092 (gcov_working_set_t): Moved typedef here from basic-block.h
9093 (compute_working_set): Declare.
f57ddb5b
TJ
9094 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9095 (get_working_sets): Renamed from compute_working_set,
33159866 9096 replace most of body with call to new compute_working_sets.
f57ddb5b 9097 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
9098 to get_working_sets.
9099 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 9100 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 9101 to get_working_sets.
f57ddb5b
TJ
9102 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9103 * gcov-dump.c (dump_working_sets): New function.
9104
5e0919f1
KZ
91052013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9106
9107 * hwint.c (sext_hwi, zext_hwi): New functions.
9108 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9109 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9110 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9111 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9112 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9113 (sext_hwi, zext_hwi): New functions.
0bca7ded 9114
be672e08
JL
91152013-04-03 Jeff Law <law@redhat.com>
9116
9117 PR tree-optimization/56799
33159866
UB
9118 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9119 back test for widening conversion erroneously dropped in prior change.
be672e08 9120
9d821fa5
KT
91212013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9122
9123 PR target/56809
9124 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9125 instead of next_real_insn.
9126
71c581e7
MP
91272013-04-03 Marek Polacek <polacek@redhat.com>
9128
9129 PR sanitizer/55702
33159866 9130 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 9131
4a32ef80
KT
91322013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9133
9134 PR target/56809
9135 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9136 next_real_insn.
9137 (thumb1_output_casesi): Likewise.
9138 (thumb2_output_casesi): Likewise.
9139
1b2253d4
RB
91402013-04-03 Richard Biener <rguenther@suse.de>
9141
9142 PR tree-optimization/56817
9143 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9144 Split out ...
9145 (tree_unroll_loops_completely_1): ... new function to manually
9146 walk the loop tree, properly defering outer loops of unrolled
9147 loops to later iterations.
9148
38000232
MG
91492013-04-03 Marc Glisse <marc.glisse@inria.fr>
9150
9151 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9152 (vectorizable_load): Likewise.
9153 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9154 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9155
3fa35298
MG
91562013-04-03 Marc Glisse <marc.glisse@inria.fr>
9157
9158 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9159 BIT_FIELD_REF.
9160
b3d45ff0
UW
91612013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9162
9163 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9164
ec9202a8
BC
91652013-04-03 Bin Cheng <bin.cheng@arm.com>
9166
9167 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9168
6805bd36
MG
91692013-04-03 Marc Glisse <marc.glisse@inria.fr>
9170
9171 PR tree-optimization/56790
33159866
UB
9172 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9173 folding.
6805bd36 9174
da694a77
MG
91752013-04-03 Marc Glisse <marc.glisse@inria.fr>
9176
9177 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9178 Handle VEC_MERGE.
9179 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9180 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9181 equal arguments.
9182
4e7d7b3d
JJ
91832013-04-03 Jakub Jelinek <jakub@redhat.com>
9184
9185 PR c/19449
9186 * tree.h (force_folding_builtin_constant_p): New decl.
9187 * builtins.c (force_folding_builtin_constant_p): New variable.
9188 (fold_builtin_constant_p): Fold immediately also if
9189 force_folding_builtin_constant_p.
9190
e6c9d234
RB
91912013-04-03 Richard Biener <rguenther@suse.de>
9192
9193 PR tree-optimization/56812
9194 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9195 DRs of the same interleaving chain are independent.
9196
984d07dd
JM
91972013-04-02 Jason Merrill <jason@redhat.com>
9198
9199 * gdbinit.in (pbb): Use debug fn.
9200
622849c9
LC
92012013-04-02 Lawrence Crowl <crowl@google.com>
9202
9203 * sese.h (struct ivtype_map_elt_s): Remove unused.
9204 (extern debug_ivtype_map): Remove unused.
9205 (extern eq_ivtype_map_elts): Remove unused.
9206 * sese.c (debug_ivtype_map): Removed unused.
9207 (debug_ivtype_map_1): Removed unused.
9208 (debug_ivtype_elt): Remove unused.
9209 (eq_ivtype_map_elts): Remove unused.
9210
9211
82c0e1a0
KT
92122013-04-02 Kai Tietz <ktietz@redhat.com>
9213
9214 PR target/52790
9215 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9216 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
9217 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9218 function.
82c0e1a0
KT
9219 (legitimize_pe_coff_symbol): Likewise.
9220 (is_imported_p): New helper-function.
9221 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9222 for Windows x64 targets.
9223 (ix86_expand_prologue): Optimize for pe-coff targets.
9224 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9225 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9226 medium/large code-model.
9227 (legitimize_pic_address): Likewise.
9228 (legitimize_tls_address): Likewise.
9229 (ix86_expand_call): Likewise.
9230 (x86_output_mi_thunk): Likewise.
9231 (get_dllimport_decl): Add new beimport argument.
9232 (construct_plt_address): Don't assert for x64 pe-coff targets.
9233 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9234 targets.
9235 (SYMBOL_FLAG_STUBVAR): New macro.
9236 (SYMBOL_REF_STUBVAR_P): Likewise.
9237 * config/i386/winnt.c (stub_list): New structure.
9238 (stub_head): New local variable.
9239 (i386_pe_record_stub): New function.
9240 (i386_pe_file_end): Emit refptr-stubs.
9241
5d751b0c
JJ
92422013-04-02 Jakub Jelinek <jakub@redhat.com>
9243
09bb4c99
JJ
9244 PR rtl-optimization/56745
9245 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9246 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9247
a1d8947a
JJ
9248 PR c++/34949
9249 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9250 and both of them are MEM_REFs, just compare first argument for
9251 equality and attempt to deal even with differing offsets.
9252
5d751b0c
JJ
9253 PR c++/34949
9254 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9255 of gimple_clobber_p to be MEM_REF.
9256 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9257 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9258 after gimplification.
9259 * asan.c (get_mem_ref_of_assignment): Don't instrument
9260 gimple_clobber_p stmts.
9261 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9262 gimple_clobber_p stmt if they have MEM_REF lhs and
9263 are dead because of another gimple_clobber_p stmt.
9264 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9265 gimple_clobber_p stmts like debug stmts.
9266 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9267 that refer to unused VAR_DECLs or uninitialized values.
9268 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9269 gimple_clobber_p stmts if they refer to removed parameters.
9270 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9271 formatting.
9272
e594716a
UB
92732013-04-02 Uros Bizjak <ubizjak@gmail.com>
9274
9275 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9276 using SWI48 mode attribute.
9277
7a80735b
WM
92782013-04-02 Wei Mi <wmi@google.com>
9279
9280 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9281 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9282 *<rotate_insn><mode>3_mask in i386.md.
9283
f423a9e4
AI
92842013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9285
9286 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9287
90eb75f2
RB
92882013-04-02 Richard Biener <rguenther@suse.de>
9289
9290 PR tree-optimization/56778
9291 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9292 Runtime alias tests are not supported for gather loads.
9293 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9294 stmts referenced from SSA operands before updating SSA form.
9295
d8c69a92
IC
92962013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9297 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9298
9299 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
9300 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9301 * config/arm/cortex-a53.md: New file.
9302 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9303 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9304 * config/arm/arm.c (arm_issue_rate): Likewise.
9305 * config/arm/arm-tune.md: Regenerate
9306 * config/arm/arm-tables.opt: Regenerate.
9307 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 9308
239eb04c
ZC
93092013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9310
9311 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9312 non-static link.
9313
c902d3c8
SN
93142013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9315
d8c69a92
IC
9316 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9317 scalar load/store operations using B/H registers.
c902d3c8
SN
9318 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9319
051d0e2f
SN
93202013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9321
9322 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9323 scalar move.
9324 * config/aarch64/aarch64.c
9325 (aarch64_simd_scalar_immediate_valid_for_move): New.
9326 * config/aarch64/aarch64-protos.h
9327 (aarch64_simd_scalar_immediate_valid_for_move): New.
9328 * config/aarch64/constraints.md (Dh, Dq): New.
9329 * config/aarch64/iterators.md (hq): New.
9330
0ee1e3d9
EB
93312013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9332
9333 * reorg.c (get_branch_condition): Deal with conditional returns.
9334 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9335
136fb3f7
WM
93362013-04-01 Wei Mi <wmi@google.com>
9337
9338 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9339 Truncate operand 2 using %b asm operand modifier.
9340 (*<shift_insn><mode>3_mask): Ditto.
9341 (*<rotate_insn><mode>3_mask): Ditto.
9342
6388c738
SB
93432013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9344
9345 PR middle-end/56798
9346 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9347
f7a4d826
KK
93482013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9349
9350 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9351 of next_real_insn.
9352 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9353
4b943a49
LC
93542013-03-30 Lawrence Crowl <crowl@google.com>
9355
9356 * dse.c (clear_alias_sets): Remove never set.
9357 (disqualified_clear_alias_sets): Remove never set.
9358 (clear_alias_mode_pool): Remove never set.
9359 (dse_step0): Remove condition that is never true.
9360 (canon_address): Remove condition that is never true.
9361 (dse_step7): Remove condition that is never true.
9362 (rest_of_handle_dse): Remove condition that is never true.
9363 (rest_of_handle_dse::did_global): Remove never read from above.
9364 (dse_step2_spill): Remove never called from above.
9365 (dse_step5_spill): Remove never called from above.
9366
39718607
SB
93672013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9368
da5c6bde
SB
9369 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9370 JUMP_TABLE_DATA changes.
9371 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9372 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9373 (Insns) <jump_table_data>: New entry.
9374 * doc/tm.texi: Regenerate.
9375
39718607
SB
9376 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9377
9378 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9379 for table jump at the end of a basic block using tablejump_p.
9380 * targhooks.c (default_invalid_within_doloop): Likewise.
9381 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9382 target hook implementation that is identical to the default hook.
9383 (rs6000_invalid_within_doloop): Remove.
9384
9385 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9386 unused variable from tablejump_p call.
9387
9388 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9389 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9390 (INSN_DELETED_P): Likewise.
9391 (emit_jump_table_data): New prototype.
9392 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9393 after 4th as unused.
9394 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9395 * sched-vis.c (print_insn): Likewise.
9396 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9397 insn for compatibility with back ends that use next_active_insn to
9398 identify jump table data.
9399 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9400 (remove_insn): Likewise.
9401 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9402 to be emitted.
9403 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9404 (emit_jump_table_data): New function.
9405
9406 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9407 basic block, a JUMP_TABLE_DATA never is.
9408 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9409 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9410 off from code handling real insns.
9411 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9412 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9413 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9414 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9415 is not a NONDEBUG_INSN_P.
9416 * ira-costs.c (scan_one_insn): Likewise.
9417 * jump.c (mark_all_labels): Likewise.
9418 (mark_jump_label_1): Likewise.
9419 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9420 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9421 a basic block.
9422 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9423 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9424 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9425 JUMP_TABLE_DATA_P insns.
9426 (calculate_elim_costs_all_insns): Likewise.
9427 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9428 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9429 (delete_output_reload): Code style fixups.
9430 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9431 insn flags on this non-insn.
9432 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9433 as scheduling barriers, for pre-change compatibility.
9434 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9435 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9436
9437 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9438 redundant JUMP_TABLE_DATA_P test.
9439 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9440 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9441 (frv_for_each_packet): Likewise.
9442 * config/i386/i386.c (min_insn_size): Likewise.
9443 (ix86_avoid_jump_mispredicts): Likewise.
9444 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9445 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9446 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9447 (mips16_insn_length): Robustify.
9448 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9449 (mips16_split_long_branches): Likewise.
9450 * config/pa/pa.c (pa_combine_instructions): Likewise.
9451 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9452 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9453 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9454 as contributing to pool range lengths.
9455 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9456 Remove redundant JUMP_TABLE_DATA_P test.
9457 (sh_loop_align): Likewise.
9458 (split_branches): Likewise.
9459 (sh_insn_length_adjustment): Likewise.
9460 * config/spu/spu.c (get_branch_target): Likewise.
9461
0208f7da
JH
94622013-03-29 Jan Hubicka <jh@suse.cz>
9463
9464 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9465 gcov streaming; stream hot bb threshold to ltrans.
9466 * predict.c (get_hot_bb_threshold): Break out from ....
9467 (maybe_hot_count_p): ... here.
9468 (set_hot_bb_threshold): New function.
9469 * lto-section-in.c (lto_section_name): Add profile.
9470 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9471 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9472 and data-streamer.h
9473 (histogram_entry): New structure.
9474 (histogram, histogram_pool): New global vars.
9475 (histogram_hash): New structure.
9476 (histogram_hash::hash): New method.
9477 (histogram_hash::equal): Likewise.
9478 (account_time_size): New function.
9479 (cmp_counts): New function.
9480 (dump_histogram): New function.
9481 (ipa_profile_generate_summary): New function.
9482 (ipa_profile_write_summary): New function.
9483 (ipa_profile_read_summary): New function.
9484 (ipa_profile): Decide on threshold.
e594716a
UB
9485 (pass_ipa_profile): Add ipa_profile_write_summary and
9486 ipa_profile_read_summary.
0208f7da
JH
9487 * Makefile.in (ipa.o): Update dependencies.
9488 * lto-streamer.h (LTO_section_ipa_profile): New section.
9489
5a6ccc94
GDR
94902013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9491
9492 * tree.h (VAR_P): New.
9493
39385fa6
PC
94942013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9495
9496 PR lto/56777
9497 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9498
34f0d87a
SB
94992013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9500
9501 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9502 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9503 (control_flow_insn_p): Likewise.
9504 * cfgrtl.c (duplicate_insn_chain): Likewise.
9505 * final.c (get_attr_length_1): Likewise.
9506 (shorten_branches): Likewise.
9507 (final_scan_insn): Likewise.
9508 * function.c (instantiate_virtual_regs): Likewise.
9509 * gcse.c (insert_insn_end_basic_block): Likewise.
9510 * ira-costs.c (scan_one_insn): Likewise.
9511 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9512 * lra.c (check_rtl): Likewise.
9513 * reload1.c (elimination_costs_in_insn): Likewise.
9514 * reorg.c (follow_jumps): Likewise.
9515
9516 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9517 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9518 (thumb_far_jump_used_p): Likewise.
9519 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9520 (workaround_speculation): Likewise.
9521 (add_sched_insns_for_speculation): Likewise.
9522 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9523 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9524 (frv_for_each_packet): Likewise.
9525 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9526 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9527 (final_emit_insn_group_barriers): Likewise.
9528 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9529 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9530 (mips16_insn_length): Likewise.
9531 * config/pa/pa.c (pa_reorg): Likewise.
9532 (pa_combine_instructions): Likewise.
9533 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9534 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9535 (sh_reorg): Likewise.
9536 (split_branches): Likewise.
9537 * config/spu/spu.c (get_branch_target): Likewise.
9538
9539 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9540 JUMP_TABLE_DATA_P.
9541
4ac761b0
KY
95422013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9543
39385fa6 9544 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
9545 Fix declaration name.
9546
58a49189
LC
95472013-03-28 Lawrence Crowl <crowl@google.com>
9548
9549 * graphds.h (struct graph.indicies): Remove unused.
9550 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9551 (SCOP_ORIGINAL_PDDRS): Remove unused.
9552 * sese.h (extern insert_loop_close_phis): Removed unused.
9553 (extern insert_guard_phis): Removed unused.
9554 (extern ivtype_map_elt_info): Removed unused.
9555 (new_ivtype_map_elt): Removed unused.
9556 * sese.c (ivtype_map_elt_info): Removed unused.
9557
7b3b6ae4
LC
95582013-03-28 Lawrence Crowl <crowl@google.com>
9559
9560 * Makefile.in: Add several missing include dependences.
9561 (DUMPFILE_H): New.
9562 (test-dump.o): New. This object is not added to any executable,
9563 but is present for ad-hoc testing.
9564 * bitmap.c
9565 (debug (const bitmap_head_def &)): New.
9566 (debug (const bitmap_head_def *)): New.
9567 * bitmap.h
9568 (extern debug (const bitmap_head_def &)): New.
9569 (extern debug (const bitmap_head_def *)): New.
9570 * cfg.c
9571 (debug (edge_def &)): New.
9572 (debug (edge_def *)): New.
9573 * cfghooks.c
9574 (debug (basic_block_def &)): New.
9575 (debug (basic_block_def *)): New.
9576 * dumpfile.h
9577 (dump_node (const_tree, int, FILE *)): Correct source file.
9578 * dwarf2out.c
9579 (debug (die_struct &)): New.
9580 (debug (die_struct *)): New.
9581 * dwarf2out.h
9582 (extern debug (die_struct &)): New.
9583 (extern debug (die_struct *)): New.
9584 * gimple-pretty-print.c
9585 (debug (gimple_statement_d &)): New.
9586 (debug (gimple_statement_d *)): New.
9587 * gimple-pretty-print.h
9588 (extern debug (gimple_statement_d &)): New.
9589 (extern debug (gimple_statement_d *)): New.
9590 * ira-build.c
9591 (debug (ira_allocno_copy &)): New.
9592 (debug (ira_allocno_copy *)): New.
9593 (debug (ira_allocno &)): New.
9594 (debug (ira_allocno *)): New.
9595 * ira-int.h
9596 (extern debug (ira_allocno_copy &)): New.
9597 (extern debug (ira_allocno_copy *)): New.
9598 (extern debug (ira_allocno &)): New.
9599 (extern debug (ira_allocno *)): New.
9600 * ira-lives.c
9601 (debug (live_range &)): New.
9602 (debug (live_range *)): New.
9603 * lra-int.h
9604 (debug (lra_live_range &)): New.
9605 (debug (lra_live_range *)): New.
9606 * lra-lives.c
9607 (debug (lra_live_range &)): New.
9608 (debug (lra_live_range *)): New.
9609 * omega.c
9610 (debug (omega_pb_d &)): New.
9611 (debug (omega_pb_d *)): New.
9612 * omega.h
9613 (extern debug (omega_pb_d &)): New.
9614 (extern debug (omega_pb_d *)): New.
9615 * print-rtl.c
9616 (debug (const rtx_def &)): New.
9617 (debug (const rtx_def *)): New.
9618 * print-tree.c
9619 (debug_tree (tree): Move within file.
9620 (debug_raw (const tree_node &)): New.
9621 (debug_raw (const tree_node *)): New.
9622 (dump_tree_via_hooks (const tree_node *, int)): New.
9623 (debug (const tree_node &)): New.
9624 (debug (const tree_node *)): New.
9625 (debug_verbose (const tree_node &)): New.
9626 (debug_verbose (const tree_node *)): New.
9627 (debug_head (const tree_node &)): New.
9628 (debug_head (const tree_node *)): New.
9629 (debug_body (const tree_node &)): New.
9630 (debug_body (const tree_node *)): New.
9631 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9632 (debug (vec<tree, va_gc> &)): New.
9633 (debug (vec<tree, va_gc> *)): New.
9634 * rtl.h
9635 (extern debug (const rtx_def &)): New.
9636 (extern debug (const rtx_def *)): New.
9637 * sbitmap.c
9638 (debug_raw (simple_bitmap_def &)): New.
9639 (debug_raw (simple_bitmap_def *)): New.
9640 (debug (simple_bitmap_def &)): New.
9641 (debug (simple_bitmap_def *)): New.
9642 * sbitmap.h
9643 (extern debug (simple_bitmap_def &)): New.
9644 (extern debug (simple_bitmap_def *)): New.
9645 (extern debug_raw (simple_bitmap_def &)): New.
9646 (extern debug_raw (simple_bitmap_def *)): New.
9647 * sel-sched-dump.c
9648 (debug (vinsn_def &)): New.
9649 (debug (vinsn_def *)): New.
9650 (debug_verbose (vinsn_def &)): New.
9651 (debug_verbose (vinsn_def *)): New.
9652 (debug (expr_def &)): New.
9653 (debug (expr_def *)): New.
9654 (debug_verbose (expr_def &)): New.
9655 (debug_verbose (expr_def *)): New.
9656 (debug (vec<rtx> &)): New.
9657 (debug (vec<rtx> *)): New.
9658 * sel-sched-dump.h
9659 (extern debug (vinsn_def &)): New.
9660 (extern debug (vinsn_def *)): New.
9661 (extern debug_verbose (vinsn_def &)): New.
9662 (extern debug_verbose (vinsn_def *)): New.
9663 (extern debug (expr_def &)): New.
9664 (extern debug (expr_def *)): New.
9665 (extern debug_verbose (expr_def &)): New.
9666 (extern debug_verbose (expr_def *)): New.
9667 (extern debug (vec<rtx> &)): New.
9668 (extern debug (vec<rtx> *)): New.
9669 * sel-sched-ir.h
9670 (_list_iter_cond_expr): Make inline instead of static.
9671 * sreal.c
9672 (debug (sreal &)): New.
9673 (debug (sreal *)): New.
9674 * sreal.h
9675 (extern debug (sreal &)): New.
9676 (extern debug (sreal *)): New.
9677 * tree.h
9678 (extern debug_raw (const tree_node &)): New.
9679 (extern debug_raw (const tree_node *)): New.
9680 (extern debug (const tree_node &)): New.
9681 (extern debug (const tree_node *)): New.
9682 (extern debug_verbose (const tree_node &)): New.
9683 (extern debug_verbose (const tree_node *)): New.
9684 (extern debug_head (const tree_node &)): New.
9685 (extern debug_head (const tree_node *)): New.
9686 (extern debug_body (const tree_node &)): New.
9687 (extern debug_body (const tree_node *)): New.
9688 (extern debug (vec<tree, va_gc> &)): New.
9689 (extern debug (vec<tree, va_gc> *)): New.
9690 * tree-cfg.c
9691 (debug (struct loop &)): New.
9692 (debug (struct loop *)): New.
9693 (debug_verbose (struct loop &)): New.
9694 (debug_verbose (struct loop *)): New.
9695 * tree-dump.c: Add header dependence.
9696 * tree-flow.h
9697 (extern debug (struct loop &)): New.
9698 (extern debug (struct loop *)): New.
9699 (extern debug_verbose (struct loop &)): New.
9700 (extern debug_verbose (struct loop *)): New.
9701 * tree-data-ref.c
9702 (debug (data_reference &)): New.
9703 (debug (data_reference *)): New.
9704 (debug (vec<data_reference_p> &)): New.
9705 (debug (vec<data_reference_p> *)): New.
9706 (debug (vec<ddr_p> &)): New.
9707 (debug (vec<ddr_p> *)): New.
9708 * tree-data-ref.h
9709 (extern debug (data_reference &)): New.
9710 (extern debug (data_reference *)): New.
9711 (extern debug (vec<data_reference_p> &)): New.
9712 (extern debug (vec<data_reference_p> *)): New.
9713 (extern debug (vec<ddr_p> &)): New.
9714 (extern debug (vec<ddr_p> *)): New.
9715 * tree-ssa-alias.c
9716 (debug (pt_solution &)): New.
9717 (debug (pt_solution *)): New.
9718 * tree-ssa-alias.h
9719 (extern debug (pt_solution &)): New.
9720 (extern debug (pt_solution *)): New.
9721 * tree-ssa-alias.c
9722 (debug (_var_map &)): New.
9723 (debug (_var_map *)): New.
9724 (debug (tree_live_info_d &)): New.
9725 (debug (tree_live_info_d *)): New.
9726 * tree-ssa-alias.h
9727 (extern debug (_var_map &)): New.
9728 (extern debug (_var_map *)): New.
9729 (extern debug (tree_live_info_d &)): New.
9730 (extern debug (tree_live_info_d *)): New.
9731
be77e1e5
JH
97322013-03-28 Jan Hubicka <jh@suse.cz>
9733
9734 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9735
777e6976
IB
97362013-03-28 Ian Bolton <ian.bolton@arm.com>
9737
9738 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9739 record only when desired or required.
9740
9cd347ae
UB
97412013-03-28 Uros Bizjak <ubizjak@gmail.com>
9742
9743 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9744 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9745
33159866 97462013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
9747
9748 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9749 (*andsi3_compare0_uxtw): New pattern.
9750 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9751 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9752
89ab31c1
JH
97532013-03-28 Jan Hubicka <jh@suse.cz>
9754
9755 * data-streamer-in.c (streamer_read_gcov_count): New function.
9756 * gimple-streamer-out.c: Include value-prof.h.
9757 (output_gimple_stmt): Output histogram.
9758 (output_bb): Use streamer_write_gcov_count.
9759 * value-prof.c: Include data-streamer.h
9760 (dump_histogram_value): Add HIST_TYPE_MAX.
9761 (stream_out_histogram_value): New function.
9762 (stream_in_histogram_value): New function.
9763 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9764 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9765 * data-streamer-out.c (streamer_write_gcov_count): New function.
9766 (streamer_write_gcov_count_stream): New function.
9767 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9768 (lto_output_node): Likewise.
9769 (input_node, input_edge): Likewise.
9770 * lto-streamer-out.c (output_cfg): Update streaming.
9771 * lto-streamer-in.c (input_cfg): Likewise.
9772 * data-streamer.h (streamer_write_gcov_count,
9773 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9774 * gimple-streamer-in.c: Include value-prof.h
9775 (input_gimple_stmt): Input histograms.
9776 (input_bb): Update profile streaming.
9777
e594716a 97782013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 9779
33159866 9780 * genmodes.c (emit_max_int): New function.
8697be17 9781 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
9782 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9783 Added doc.
8697be17 9784 * machmode.def: Fixed comment.
89ab31c1 9785
e594716a 97862013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
9787
9788 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
9789 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9790
74946978
MP
97912013-03-28 Marek Polacek <polacek@redhat.com>
9792 Richard Biener <rguenther@suse.de>
9793
9794 PR tree-optimization/56695
9795 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9796 build signed result of a vector comparison.
9797 * tree-cfg.c (verify_gimple_comparison): Check that a result
9798 of a vector comparison has signed type.
9799
a64b9c26
RB
98002013-03-28 Richard Biener <rguenther@suse.de>
9801
9802 PR tree-optimization/37021
9803 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9804 do not restrict gaps between groups.
9805 * tree-vect-stmts.c (vectorizable_load): Properly account for
9806 a gap between groups.
9807
a9dc2a2f
EB
98082013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9809
9810 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9811 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9812 is not enabled.
9813
53cb97f9
GP
98142013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9815
9816 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9817 * doc/extend.texi (Named Address Spaces): Ditto.
9818 (Variable Attributes): Ditto.
9819
b802ae5c
KT
98202013-03-27 Kai Tietz <ktietz@redhat.com>
9821
eddae10a
KT
9822 * config.build: Add support for cygwin x64 target.
9823 * config.gcc: Likewise.
9824 * config.host: Likewise.
9825 * configure.ac: Likewise
9826 * configure: Regenerated.
b802ae5c 9827
371e77e3 98282013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
9829
9830 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9831 * config/i386/t-cygwin-w64: New file.
9832 * config/i386/cygwin-w64.h: New file.
9833 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9834 and add support for x64-cygwin target.
9835 (CPP_SPEC): Likewise.
9836 (CXX_WRAP_SPEC_LIST): Undefine before define.
9837 (LIBGCJ_SONAME): Use 15 as version.
9838
f49b33cb
RB
98392013-03-27 Richard Biener <rguenther@suse.de>
9840
9841 PR tree-optimization/56716
9842 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9843 dumping for ref nodes.
9844
b37a6ce5
MJ
98452013-03-27 Martin Jambor <mjambor@suse.cz>
9846
9847 PR tree-optimization/55334
9848 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9849 restricted pointers to arrays.
9850
9469b9b2
GDR
98512013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9852
9853 * Makefile.in (.SUFFIXES): Add .cc.
9854 (.c.o): Apply same recipe for implicit rule .cc.o.
9855
7d24f650
RB
98562013-03-27 Richard Biener <rguenther@suse.de>
9857
9858 PR tree-optimization/37021
9859 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9860 REALPART/IMAGPART_EXPRs around the supported refs.
9861 * tree-ssa-structalias.c (find_func_aliases): Assume that
9862 floating-point values are not used to transfer pointers.
9863
2f251a05
AI
98642013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9865
39385fa6
PC
9866 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9867 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9868 * doc/tm.texi: Regenerate.
9869 * targhooks.h (default_has_ifunc_p): New.
9870 * targhooks.c (default_has_ifunc_p): Ditto.
9871 * config/linux-protos.h: New file.
9872 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
9873 this hook for linux which disables support of indirect functions in
9874 android.
39385fa6
PC
9875 * config/linux-android.c: New file.
9876 * config/t-linux-android.c: Ditto.
9877 * config.gcc: Added new object file linux-android.o.
9878 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 9879 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 9880 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
9881 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9882 doesn't support indirect functions.
9883 * configure: Regenerate.
9884
78b4e425
BC
98852013-03-27 Bin Cheng <bin.cheng@arm.com>
9886
9887 PR target/56102
9888 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9889 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9890 mult-word mode.
9891
a5ba7b92
AK
98922013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9893
9894 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9895
be624986
TG
98962013-03-27 Terry Guo <terry.guo@arm.com>
9897
9898 * config/arm/arm-cores.def: Added core cortex-r7.
9899 * config/arm/arm-tune.md: Regenerated.
9900 * config/arm/arm-tables.opt: Regenerated.
9901 * doc/invoke.texi: Added entry for core cortex-r7.
9902
0a514f47
WL
99032013-03-27 Walter Lee <walt@tilera.com>
9904
9905 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9906 double-decrement of next_scratch_regno.
9907
9332b0d2
WL
99082013-03-27 Walter Lee <walt@tilera.com>
9909
801d9b2a 9910 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
9911 input operands.
9912 (insn_v1mulus): Ditto.
9913 (insn_v2muls): Ditto.
9914
f54ea5dd
WL
99152013-03-27 Walter Lee <walt@tilera.com>
9916
e594716a 9917 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
9918 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9919
bf60f4ca
WL
99202013-03-27 Walter Lee <walt@tilera.com>
9921
e594716a 9922 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
9923 (*sibcall_value): Ditto.
9924
e3b51eeb
WL
99252013-03-27 Walter Lee <walt@tilera.com>
9926
9927 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9928 (insn_mnz_v8qi): ... this ...
9929 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9930 vector equivalent.
9931 (insn_v<n>mnz): Replaced by ...
9932 (insn_v1mnz): ... this ...
9933 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9934 equivalent.
9935 (insn_mz_<mode>): Replaced by ...
9936 (insn_mz_v8qi): ... this ...
9937 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9938 vector equivalent.
9939 (insn_v<n>mz): Replaced by ...
9940 (insn_v1mz): ... this ...
9941 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9942 equivalent.
9943
4fc7b145
EB
99442013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9945
9946 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9947
6f33817e
RM
99482013-03-26 Roland McGrath <mcgrathr@google.com>
9949
9950 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9951 than fprintf with a non-constant, non-format string.
9952
93a4145b
UB
99532013-03-26 Uros Bizjak <ubizjak@gmail.com>
9954
9955 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9956 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9957 operand 0 predicate.
9958 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9959 attribute. Use general_x64nomem_operand as operand 1 predicate.
9960 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9961 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9962 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9963 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9964 (mov<mode>_insv_1): Remove expander. Merge insn with
9965 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9966 Use general_x64nomem_operand as operand 1 predicate.
9967 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9968 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9969 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9970 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9971 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
9972 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9973 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9974 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9975 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
9976 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9977 (general_x64nomem_operand): Ditto.
9978
c6a9ed5a 99792013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
9980
9981 * config/rtems.opt: Add -pthread option.
9982
31b0a960
RB
99832013-03-26 Richard Biener <rguenther@suse.de>
9984
93a4145b
UB
9985 * alias.c (find_base_term): Avoid redundant and not used recursion.
9986 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
9987 (true_dependence_1): Compute and pass base terms to base_alias_check.
9988 (write_dependence_p): Likewise.
9989 (may_alias_p): Likewise.
9990
79517551
SN
99912013-03-26 Sofiane Naci <sofiane.naci@arm.com>
9992
9993 * config/aarch64/aarch64.c (aarch64_classify_address): Support
9994 PC-relative load in SI modes and above only.
9995
a76213b9
XQ
99962013-03-26 Xinyu Qi <xyqi@marvell.com>
9997
9998 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
9999 * config/arm/iwmmxt.md (WCGR0): Update.
10000 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 10001
37ff9355
UB
100022013-03-26 Uros Bizjak <ubizjak@gmail.com>
10003
10004 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10005 Use x64 and nox64 isa attributes.
10006
30b0317c
RB
100072013-03-26 Richard Biener <rguenther@suse.de>
10008
10009 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10010 alignment computations and rely on get_object_alignment_1
10011 for the !TYPE_P case.
10012 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10013
cbcdb140
WL
100142013-03-26 Walter Lee <walt@tilera.com>
10015
10016 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10017 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10018
dd884525 100192013-03-25 Jeff Law <law@redhat.com>
be672e08 10020
33159866
UB
10021 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10022 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
10023 wrong version of prior patch.
10024
0051d3ec
WL
100252013-03-25 Walter Lee <walt@tilera.com>
10026
10027 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10028 TILEGX_INSN_SHUFFLEBYTES1.
10029 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10030 shufflebytes1.
10031 (tilegx_builtins): Ditto.
10032 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10033
065a3605
WL
100342013-03-25 Walter Lee <walt@tilera.com>
10035
10036 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
10037 (floatunssisf2): New pattern.
10038 (floatsidf2): New pattern.
10039 (floatunssidf2): New pattern.
065a3605 10040
5b2a3c82
WL
100412013-03-25 Walter Lee <walt@tilera.com>
10042
10043 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10044 tests for constraint J, K, N, P.
10045
192ea533
WL
100462013-03-25 Walter Lee <walt@tilera.com>
10047
10048 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10049 Use indirect/pcrel encoding.
10050 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10051 Ditto.
10052
855e0d0b
SE
100532013-03-25 Steve Ellcey <sellcey@mips.com>
10054
10055 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10056 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10057 * config/mips/mips.c (mips_option_override): Set IMADD default.
10058 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10059 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10060 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10061 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10062 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10063
39e45653
JL
100642013-03-25 Jeff Law <law@redhat.com>
10065
10066 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10067 slightly to avoid creating and folding useless trees. Simplify
10068 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10069
7482c470
UB
100702013-03-25 Uros Bizjak <ubizjak@gmail.com>
10071
10072 * config/i386/i386.md (*zero_extendsidi2): Merge with
10073 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10074 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10075 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10076 targets. Clarify comment.
10077
4a53743e
MJ
100782013-03-25 Martin Jambor <mjambor@suse.cz>
10079
10080 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10081 pass-through jump functions differently.
10082 (ipa_read_jump_function): Likewise. Also use setter functions to set
10083 up jump functions.
10084
162712de
MJ
100852013-03-25 Martin Jambor <mjambor@suse.cz>
10086
10087 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10088 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10089 process it.
10090 (ipa_get_indirect_edge_target): New function.
10091 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10092 ipa_get_indirect_edge_target. Update all callers.
10093 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10094 ipa_get_indirect_edge_target_1 instead of calling
10095 ipa_get_indirect_edge_target.
10096 (create_specialized_node): Pass aggvlas to
10097 ipcp_discover_new_direct_edges.
10098
a5a4c20a
KT
100992013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10100
10101 * config/arm/arm.md (f_sels, f_seld): New types.
10102 (*cmov<mode>): New pattern.
10103 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10104 predicate.
10105
f992b9fc
KT
101062013-03-25 Kai Tietz <ktietz@redhat.com>
10107
10108 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10109 POSIX-printf for mingw-hosted builds.
10110
c16fd676
RB
101112013-03-25 Richard Biener <rguenther@suse.de>
10112
10113 PR middle-end/56694
10114 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10115 must-not-throw stmt location.
10116
5ad29f12
KT
101172013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10118
10119 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10120 Emit load-acquire versions when acq is true.
10121 (arm_emit_store_exclusive): Add rel parameter.
10122 Emit store-release versions when rel is true.
10123 (arm_split_compare_and_swap): Use acquire-release instructions
10124 instead.
10125 of barriers when appropriate.
10126 (arm_split_atomic_op): Likewise.
10127 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10128 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10129 (VUNSPEC_SLX): Likewise.
10130 (VUNSPEC_LDA): Likewise.
10131 (VUNSPEC_STL): Likewise.
10132 * config/arm/sync.md (atomic_load<mode>): New pattern.
10133 (atomic_store<mode>): Likewise.
10134 (arm_load_acquire_exclusive<mode>): Likewise.
10135 (arm_load_acquire_exclusivesi): Likewise.
10136 (arm_load_acquire_exclusivedi): Likewise.
10137 (arm_store_release_exclusive<mode>): Likewise.
10138
03a7dddb
CM
101392013-03-25 Catherine Moore <clm@codesourcery.com>
10140
10141 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10142 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10143 * config/mip/predicates.md (lwsp_swsp_operand,
10144 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10145 sb16_operand, db4_operand, db7_operand, ib3_operand,
10146 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10147 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10148 andi16_operand): New predicates.
10149 * config/mips/mips.md (compression): New attribute.
10150 (enabled): New attribute.
10151 (length): Consider compression in computing length.
10152 (shift_compression): New code attribute.
10153 (*add<mode>3): New operands. Record compression.
10154 (sub<mode>3): Likewise.
10155 (one_cmpl<mode>2): Likewise.
10156 (*and<mode>3): Likewise.
10157 (*ior<mode>3): Likewise.
10158 (unnamed pattern for xor): Likewise.
10159 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10160 (*<optab><mode>3): Likewise.
10161 (*mov<mode>_internal: Likewise.
10162 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10163 (mips_unsigned_immediate_p): New.
10164 (umips_lwsp_swsp_address_p): New.
10165 (m16_based_address_p): New.
10166 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10167 (mips_unsigned_immediate_p): New prototype.
10168 (lwsp_swsp_address_p): New prototype.
10169 (m16_based_address_p): New prototype.
10170 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10171 (mips_signed_immediate_p): New function.
10172 (m16_based_address_p): New function.
10173 (lwsp_swsp_address_p): New function.
10174 (mips_print_operand_punctuation): Recognize short delay slot insns
10175 for microMIPS.add<mode>3"
10176
f35c297f 101772013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 10178
f35c297f
KT
10179 PR target/56720
10180 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10181 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10182
051b9446
RB
101832013-03-25 Richard Biener <rguenther@suse.de>
10184
10185 PR tree-optimization/56689
10186 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10187 any edge.
10188
374001cb
RB
101892013-03-25 Richard Biener <rguenther@suse.de>
10190
10191 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10192 of bitmap.
10193 (memory_references): Likewise.
10194 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10195 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10196 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10197 (gather_mem_refs_in_loops): Fold into ...
10198 (analyze_memory_references): ... this. Move initialization
10199 to tree_ssa_lim_initialize.
10200 (fill_always_executed_in): Rename to ...
10201 (fill_always_executed_in_1): ... this.
10202 (fill_always_executed_in): Move contains_call computation to
10203 this new function from ...
10204 (tree_ssa_lim_initialize): ... here.
10205 (tree_ssa_lim): Call fill_always_executed_in.
10206
57895947
EB
102072013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10208
10209 * postreload.c (reload_combine): Fix code detecting returns.
10210
1e1b18c1
EB
102112013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10212
10213 * function.c (emit_use_return_register_into_block): On cc0 targets,
10214 do not emit the sequence between cc0 setter and user.
10215
9216baf1
KT
102162013-03-25 Kai Tietz <ktietz@redhat.com>
10217
1e1b18c1
EB
10218 * config/i386/predicates.md (local_symbolic_operand): Interpret
10219 dll-imported symbols as none-local.
9216baf1 10220
76421b44
RB
102212013-03-25 Richard Biener <rguenther@suse.de>
10222
10223 * tree-ssa-loop-im.c (struct depend): Remove.
10224 (struct lim_aux_data): Make depends a vec of gimples.
10225 (free_lim_aux_data): Adjust.
10226 (add_dependency): Likewise.
10227 (set_level): Likewise.
10228
d154bfa2
RB
102292013-03-25 Richard Biener <rguenther@suse.de>
10230
10231 PR middle-end/56434
10232 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10233 the pointer returned by calls with ECF_MALLOC set.
10234
2cd9804e
UB
102352013-03-24 Uros Bizjak <ubizjak@gmail.com>
10236
acef5fe0
UB
10237 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10238
102392013-03-24 Uros Bizjak <ubizjak@gmail.com>
10240
10241 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
10242 using MMXMODE mode iterator.
10243 (*move<mode>_internal): Merge with *movv2sf_internal and
10244 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10245
225ccc68
SB
102462013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10247
85c0f02d
SB
10248 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10249 (record_last_mem_set_info): Likewise.
10250
225ccc68
SB
10251 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10252 of XNEWVEC followed by memset.
10253 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10254
b64925dc
SB
102552013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10256
10257 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10258 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10259 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10260 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10261 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10262 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10263 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10264 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10265 BARRIER_P instead of GET_CODE.
10266
b9aaf52e
EB
102672013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10268
10269 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10270 inaccuracy in the probing code.
10271
10272 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10273 (ctrapdi4): Likewise.
10274
66de4d7c
EB
102752013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10276
10277 * calls.c (expand_call): Add missing guard to code handling return
10278 of non-BLKmode structures in MSB.
10279 * function.c (expand_function_end): Likewise.
10280
4f25c8fb
EB
102812013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10282
10283 * combine.c (try_combine): Adjust comment. Do not add the set of
10284 insn #0 if the destination indirectly is set or dies in insn #2.
10285 Tidy up code to distribute a new note.
10286
23b7850d
UB
102872013-03-22 Uros Bizjak <ubizjak@gmail.com>
10288
10289 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10290 also for alternatives 16 and 17.
10291
bed852cf
UB
102922013-03-22 Uros Bizjak <ubizjak@gmail.com>
10293
10294 * config/i386/sse.md (*mov<mode>_internal): Merge with
10295 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10296 Emit insn template depending on type attribute. Use
10297 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10298 movd instead of movq mnemonic for interunit moves. Rewrite mode
10299 attribute calculation. Remove unit attribute calculation.
10300 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10301 Set prefix_data16 attribute for DImode ssemov types.
10302 Use Ym instead of y for SSE-MMX conversion alternatives.
10303 Reorder operand constraints.
10304
1e8a7937
SB
103052013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10306
10307 * df.h (df_insn_delete): Adjust prototype.
10308 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10309 and let it decide whether mark the basic block dirty.
10310 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10311 * df-scan.c (df_insn_info_delete): New helper function, split
10312 off from df_insn_delete.
10313 (df_scan_free_bb_info): Use it.
10314 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10315 Likewise.
10316 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10317 that the insn is actually an insn and it has a non-NULL basic block.
10318 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10319
e14d094c
RB
103202013-03-22 Richard Biener <rguenther@suse.de>
10321
10322 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10323 dep_ref members.
10324 (mem_ref_alloc): Do not allocate them.
10325 (refs_independent_p): Do not query or maintain a cache.
10326
e9cf7316
RB
103272013-03-22 Richard Biener <rguenther@suse.de>
10328
10329 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10330 (gather_mem_refs_in_loops): Do not compute it.
10331 (analyze_memory_references): Do not allocate it.
10332 (tree_ssa_lim_finalize): Do not free it.
10333 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10334
f046e81b
RB
103352013-03-22 Richard Biener <rguenther@suse.de>
10336
10337 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 10338
a05c0ddf
IB
103392013-03-22 Ian Bolton <ian.bolton@arm.com>
10340
10341 * config/aarch64/aarch64.c (aarch64_print_operand): New
10342 format specifier for printing a constant in hex.
10343 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10344 format specifier for printing second operand.
10345
c00217fc
RB
103462013-03-22 Richard Biener <rguenther@suse.de>
10347
10348 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10349 bitmaps.
10350 (gather_mem_refs_in_loops): Perform store accumulation here.
10351 (create_vop_ref_mapping_loop): Remove.
10352 (create_vop_ref_mapping): Likewise.
10353 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 10354 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
10355 (record_indep_loop): Remove.
10356 (record_dep_loop): New function.
10357 (ref_indep_loop_p_1): Adjust to only walk over references
10358 in the loop, not its subloops.
10359 (ref_indep_loop_p): Rename to ...
10360 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10361 maintaining a more fine-grained cache.
10362 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10363 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10364
15d19bf8
RB
103652013-03-22 Richard Biener <rguenther@suse.de>
10366
10367 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10368 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10369 aggregate mem_ref_loc.
10370 (free_mem_ref_locs): Inline into ...
10371 (memref_free): ... this and adjust.
10372 (mem_ref_alloc): Adjust.
10373 (mem_ref_locs_alloc): Remove.
10374 (record_mem_ref_loc): Adjust.
10375 (get_all_locs_in_loop): Rewrite into ...
10376 (for_all_locs_in_loop): ... this iterator.
10377 (rewrite_mem_ref_loc): New functor.
10378 (rewrite_mem_refs): Use for_all_locs_in_loop.
10379 (sm_set_flag_if_changed): New functor.
10380 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10381 (ref_always_accessed): New functor.
10382 (ref_always_accessed_p): Use for_all_locs_in_loop.
10383
6f37411d
MG
103842013-03-21 Marc Glisse <marc.glisse@inria.fr>
10385
10386 * tree-pass.h (PROP_gimple_lvec): New.
10387 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10388 (init_optimization_passes): Move pass_lower_vector.
10389 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10390 PROP_gimple_lvec.
10391 (pass_lower_vector): Provide PROP_gimple_lvec.
10392 (pass_lower_vector_ssa): Likewise.
10393 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10394
511ef689
MW
103952013-03-21 Mark Wielaard <mjw@redhat.com>
10396
10397 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10398
cc1df30b
UB
103992013-03-21 Uros Bizjak <ubizjak@gmail.com>
10400
10401 * config/i386/i386.md (*movdi_internal): Disparage slightly
10402 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10403 conversion alternatives.
10404
c845cfe1
JJ
104052013-03-21 Jakub Jelinek <jakub@redhat.com>
10406
37e99116
JJ
10407 PR middle-end/48087
10408 * diagnostic.def (DK_WERROR): New kind.
10409 * diagnostic.h (werrorcount): Define.
10410 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10411 promoted to DK_ERROR, increment DK_WERROR counter instead of
10412 DK_ERROR counter.
10413 * toplev.c (toplev_main): Call print_ignored_options even if
10414 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10415 even if just werrorcount is non-zero.
10416
c845cfe1
JJ
10417 PR debug/55608
10418 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10419 on failure.
10420 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10421 (string_cst_pool_decl): New function.
10422 (optimize_one_addr_into_implicit_ptr): New function.
10423 (resolve_addr_in_expr): Optimize DWARF location expression
10424 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10425 which doesn't live in memory, but has DW_AT_location or
10426 DW_AT_const_value, or refers to a string literal, into
10427 DW_OP_GNU_implicit_pointer.
10428 (optimize_location_into_implicit_ptr): New function.
10429 (resolve_addr): If removing DW_AT_location of a variable because
10430 it was DW_OP_addr of address of the variable, but the variable doesn't
10431 live in memory, try to emit const value attribute for the initializer.
10432
08e0cda6
MG
104332013-03-21 Marc Glisse <marc.glisse@inria.fr>
10434
10435 * tree.h (VECTOR_TYPE_P): New macro.
10436 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10437 TYPE_MODE): Use it.
10438 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10439 VEC_COND_EXPR cannot be lvalues.
10440 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10441
d08633b4
MG
104422013-03-21 Marc Glisse <marc.glisse@inria.fr>
10443
10444 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10445 Restrict the transformation to equal modes.
10446
e6647190
RB
104472013-03-21 Richard Biener <rguenther@suse.de>
10448
10449 PR tree-optimization/39326
10450 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10451 (MEM_ANALYZABLE): Adjust.
10452 (record_mem_ref_loc): Move bitmap ops ...
10453 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10454 unanalyzable refs, do not record locations for it.
10455 (analyze_memory_references): Allocate ref zero as shared
10456 unanalyzable ref.
10457 (refs_independent_p): Do not test for unanalyzed mems here.
10458 (ref_indep_loop_p_1): Special-case disambiguation against
10459 the unanalyzed ref.
cc1df30b 10460 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 10461
65074f54
CL
104622013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10463
10464 * config/arm/arm-protos.h (tune_params): Add
10465 prefer_neon_for_64bits field.
10466 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10467 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10468 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10469 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10470 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10471 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10472 (arm_option_override): Handle -mneon-for-64bits new option.
10473 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10474 (prefer_neon_for_64bits): Declare new variable.
10475 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 10476 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
10477 (arch_enabled): Handle new arch types. Remove support for onlya8
10478 and nota8.
10479 (one_cmpldi2): Use new arch names.
bc5faa5b 10480 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
10481 * config/arm/arm.opt (mneon-for-64bits): Add option.
10482 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10483 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10484 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10485 of onlya8.
10486 * doc/invoke.texi (-mneon-for-64bits): Document.
10487
5a2d2a79
RB
104882013-03-21 Richard Biener <rguenther@suse.de>
10489
10490 PR tree-optimization/39326
10491 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10492 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 10493 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 10494
5abe1e05
RB
104952013-03-21 Richard Biener <rguenther@suse.de>
10496
10497 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10498 (vect_insert_into_interleaving_chain): Likewise.
10499 (vect_drs_dependent_in_basic_block): Inline ...
10500 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10501 split out from ...
10502 (vect_analyze_data_ref_dependence): ... here. Simplify.
10503 (vect_check_interleaving): Simplify.
10504 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10505 (vect_slp_analyze_data_ref_dependences): ... this new function.
10506 (dr_group_sort_cmp): New function.
10507 (vect_analyze_data_ref_accesses): Compute data-reference groups
10508 here instead of in vect_analyze_data_ref_dependence. Use
10509 a more efficient algorithm.
10510 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10511 vect_slp_analyze_data_ref_dependences. Call
10512 vect_analyze_data_ref_accesses earlier.
10513 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10514 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10515 (vect_slp_analyze_data_ref_dependences): New prototype.
10516
cad1735b
RB
105172013-03-21 Richard Biener <rguenther@suse.de>
10518
10519 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10520 ref is stored in the loop.
10521 (find_refs_for_sm): Walk only over all stores.
10522 (store_motion_loop): Allocate from lim_bitmap_obstack.
10523 (store_motion): Likewise.
10524
141310ef
RB
105252013-03-21 Richard Biener <rguenther@suse.de>
10526
10527 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10528 Update virtual SSA form.
10529
5022315a
RO
105302013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10531
10532 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10533 * configure: Regenerate.
10534 * config.in: Regenerate.
10535 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10536 if !HAVE_LD_EH_FRAME_CIEV3.
10537
50d4421c
RB
105382013-03-21 Richard Biener <rguenther@suse.de>
10539
10540 * tree-cfg.c (verify_expr_no_block): New function.
10541 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10542 nor DECL_VALUE_EXPR have locations with associated blocks.
10543 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10544 (clear_unused_block_pointer): Remove code dealing with
10545 blocks in DECL_DEBUG_EXPR locations.
10546
839b422f
RB
105472013-03-21 Richard Biener <rguenther@suse.de>
10548
10549 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10550 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10551 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10552 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10553 instead of DECL_DEBUG_EXPR_IS_FROM.
10554 * gimplify.c (gimplify_modify_expr): Likewise.
10555 * tree-cfg.c (verify_expr_location_1): Likewise.
10556 * tree-complex.c (create_one_component_var): Likewise.
10557 * tree-sra.c (create_access_replacement): Likewise.
10558 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10559 (clear_unused_block_pointer): Likewise.
10560 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10561 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10562 * var-tracking.c (var_debug_decl): Likewise.
10563 (track_expr_p): Likewise.
10564 * tree-inline.c (add_local_variables): Likewise. Set
10565 DECL_HAS_DEBUG_EXPR_P after copying it.
10566 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10567 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10568
fe04878d
UB
105692013-03-21 Uros Bizjak <ubizjak@gmail.com>
10570
10571 PR bootstrap/56656
10572 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10573 * configure: Regenerate.
10574 * config.in: Regenerate.
10575 * config/i386/i386.md (*movdf_internal): Use
10576 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10577 movd instead of movq mnemonic for interunit moves.
10578 (*movdi_internal): Ditto.
10579
bd059b26 105802013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
10581
10582 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10583 (abd<mode>_3): New pattern.
10584 (aba<mode>_3): New pattern.
10585 (fabd<mode>_3): New pattern.
10586
bd059b26 105872013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
10588
10589 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10590 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10591 occurrence of REGISTER_PREFIX as its empty string.
10592
4f1f78b9
JL
105932013-03-20 Jeff Law <law@redhat.com>
10594
10595 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10596 addititional equivalences for equality comparisons between an SSA_NAME
10597 and a constant where the SSA_NAME was set from a widening conversion.
10598
327a1118
WL
105992013-03-20 Walter Lee <walt@tilera.com>
10600
10601 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10602
813e0036
UB
106032013-03-20 Uros Bizjak <ubizjak@gmail.com>
10604
10605 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10606 depending on type attribute.
10607 (*movti_internal): Ditto.
10608 (*movtf_internal): Ditto.
10609 (*movxf_internal): Ditto.
10610 (*movdf_internal): Ditto.
10611 (*movsf_internal): Ditto.
10612
7cf34aae
UB
106132013-03-20 Uros Bizjak <ubizjak@gmail.com>
10614
10615 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10616 maybe_vex for sselog1 and ssemov types.
10617 (*movdi_internal): Reorder operand constraints.
10618 (*movsi_internal): Ditto. Set prefix attribute to
10619 maybe_vex for sselog1 and ssemov types.
10620 (*movtf_internal): Set prefix attribute to maybe_vex
10621 for sselog1 and ssemov types.
10622 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10623 DImode ssemov types. Reorder operand constraints.
10624 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10625 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10626 attribute for SImode ssemov types. Reorder operand constraints.
10627
19321415
MJ
106282013-03-20 Martin Jambor <mjambor@suse.cz>
10629
10630 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10631 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10632
c6d5ff83
MM
106332013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10634
10635 * config/rs6000/predicates.md (indexed_address, update_address_mem
10636 update_indexed_address_mem): New predicates.
10637 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10638 attribute for load/store instructions.
10639 * config/rs6000/dfp.md (movsd_store): Likewise.
10640 (movsd_load): Likewise.
10641 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10642 (unnamed HI->DI extend define_insn): Likewise.
10643 (unnamed SI->DI extend define_insn): Likewise.
10644 (unnamed QI->SI extend define_insn): Likewise.
10645 (unnamed QI->HI extend define_insn): Likewise.
10646 (unnamed HI->SI extend define_insn): Likewise.
10647 (unnamed HI->SI extend define_insn): Likewise.
10648 (extendsfdf2_fpr): Likewise.
10649 (movsi_internal1): Likewise.
10650 (movsi_internal1_single): Likewise.
10651 (movhi_internal): Likewise.
10652 (movqi_internal): Likewise.
10653 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10654 attribute for load/store instructions.
10655 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10656 instructions.
10657 (mov<mode>_softfloat): Likewise.
10658 (mov<mode>_hardfloat32): Likewise.
10659 (mov<mode>_hardfloat64): Likewise.
10660 (mov<mode>_softfloat64): Likewise.
10661 (movdi_internal32): Likewise.
10662 (movdi_internal64): Likewise.
10663 (probe_stack_<mode>): Likewise.
10664
106652013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10666
10667 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10668 floating point, and decimal floating point to reload iterator.
10669
10670 * config/rs6000/constraints.md (wl constraint): New constraints to
10671 return FLOAT_REGS if certain options are used to reduce the number
10672 of separate patterns that exist in the file.
10673 (wx constraint): Likewise.
10674 (wz constraint): Likewise.
10675
10676 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10677 -mdebug=reg, print wg, wl, wx, and wz constraints.
10678 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10679 Initialize the reload functions for 64-bit binary/decimal floating
10680 point types.
10681 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10682 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10683 create the buffer on the stack to overcome not having a 32-bit
10684 load and store.
10685 (rs6000_emit_move): Likewise.
10686 (rs6000_secondary_memory_needed_rtx): Likewise.
10687 (rs6000_alloc_sdmode_stack_slot): Likewise.
10688 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10689 via xxlxor, just like DFmode 0.0.
10690
10691 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10692 define as 1 if we are running on a power7 or newer.
10693 (enum r6000_reg_class_enum): Add new constraints.
10694
10695 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10696 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10697 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 10698 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
10699 (movsd splitter): Likewise.
10700 (movsd_hardfloat): Likewise.
10701 (movsd_softfloat): Likewise.
10702
10703 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10704 binary and decimal floating point moves.
10705 (fmove_ok): New attributes to combine binary and decimal floating
10706 point moves, and to combine power6x (mfpgpr) moves along normal
10707 floating moves.
10708 (real_value_to_target): Likewise.
10709 (f32_lr): Likewise.
10710 (f32_lm): Likewise.
10711 (f32_li): Likewise.
10712 (f32_sr): Likewise.
10713 (f32_sm): Likewise.
10714 (f32_si): Likewise.
10715 (movsf): Combine binary and decimal floating point moves. Combine
10716 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 10717 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
10718 (mov<mode> for SFmode/SDmode); Likewise.
10719 (SFmode/SDmode splitters): Likewise.
10720 (movsf_hardfloat): Likewise.
10721 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10722 (movsf_softfloat): Likewise.
10723 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10724
10725 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10726 wx and wz constraints.
10727
10728 * config/rs6000/constraints.md (wg constraint): New constraint to
10729 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10730
10731 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10732 constraint.
10733
10734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10735 -mdebug=reg, print wg, wl, wx, and wz constraints.
10736 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10737 Initialize the reload functions for 64-bit binary/decimal floating
10738 point types.
10739 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10740 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10741 create the buffer on the stack to overcome not having a 32-bit
10742 load and store.
10743 (rs6000_emit_move): Likewise.
10744 (rs6000_secondary_memory_needed_rtx): Likewise.
10745 (rs6000_alloc_sdmode_stack_slot): Likewise.
10746 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10747 via xxlxor, just like DFmode 0.0.
10748
c6d5ff83
MM
10749 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10750 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10751 with other moves by using conditional constraits (wg). Use LFIWZX
10752 and STFIWX for loading SDmode on power7.
10753 (movdd splitters): Likewise.
10754 (movdd_hardfloat32): Likewise.
10755 (movdd_softfloat32): Likewise.
10756 (movdd_hardfloat64_mfpgpr): Likewise.
10757 (movdd_hardfloat64): Likewise.
10758 (movdd_softfloat64): Likewise.
10759
10760 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10761 64-bit binary and decimal floating point moves.
10762 (FMOVE64X): Likewise.
10763 (movdf): Combine 64-bit binary and decimal floating point moves.
10764 Combine power6x (mfpgpr) moves with other moves by using
10765 conditional constraits (wg).
10766 (mov<mode> for DFmode/DDmode): Likewise.
10767 (DFmode/DDmode splitters): Likewise.
10768 (movdf_hardfloat32): Likewise.
10769 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10770 (movdf_softfloat32): Likewise.
10771 (movdf_hardfloat64_mfpgpr): Likewise.
10772 (movdf_hardfloat64): Likewise.
10773 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10774 (movdf_softfloat64): Likewise.
10775 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10776 (reload_<mode>_load): Move to later in the file so they aren't in
10777 the middle of the floating point move insns.
10778 (reload_<mode>_store): Likewise.
10779
10780 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10781 constraint.
10782
10783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10784 constraint if -mdebug=reg.
bd059b26
UB
10785 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10786 Enable using dd reload support if needed.
c6d5ff83
MM
10787
10788 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10789 binary and decimal floating point moves in rs6000.md.
10790 (movtd_internal): Likewise.
10791
10792 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10793 decimal floating point moves.
10794 (movtf): Likewise.
10795 (movtf_internal): Likewise.
10796 (mov<mode>_internal, TDmode/TFmode): Likewise.
10797 (movtf_softfloat): Likewise.
10798 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10799
10800 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10801 movdi_internal64, using wg constraint for move direct operations.
10802 (movdi_internal64): Likewise.
10803
10804 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10805 MODES_TIEABLE_P for selected modes. Print the numerical value of
10806 the various virtual registers. Use GPR/FPR first/last values,
10807 instead of hard coding the register numbers. Print which modes
10808 have reload functions registered.
bd059b26
UB
10809 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10810 settings before/after setting cpu, target and subtarget settings.
10811 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10812 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
10813 (rs6000_secondary_reload_fail): Likewise.
10814 (rs6000_secondary_reload_inner): Likewise.
10815
10816 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10817 macros for first/last GPR and FPR registers.
10818 (LAST_GPR_REGNO): Likewise.
10819 (FIRST_FPR_REGNO): Likewise.
10820 (LAST_FPR_REGNO): Likewise.
10821
10822 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10823 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10824 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10825 (vcond<mode><mode>): Likewise.
10826 (vcondu<mode><mode>): Likewise.
10827 (vector_gtu<mode>): Likewise.
10828 (vector_gte<mode>): Likewise.
10829 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 10830 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
10831 (ior<mode>3): Likewise.
10832 (and<mode>3): Likewise.
10833 (one_cmpl<mode>2): Likewise.
10834 (nor<mode>3): Likewise.
10835 (andc<mode>3): Likewise.
10836
10837 * config/rs6000/constraints.md (wt constraint): New constraint
10838 that returns VSX_REGS if TImode is allowed in VSX registers.
10839
10840 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10841 constant under VSX.
10842
10843 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10844 similar to TImode, but it is restricted to being in the GPRs.
10845
10846 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10847 TImode to occupy a single VSX register.
10848
10849 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10850 -mvsx-timode for power7/power8.
10851 (power7 cpu): Likewise.
10852 (power8 cpu): Likewise.
10853
10854 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10855 sure that TFmode/TDmode take up two registers if they are ever
10856 allowed in the upper VSX registers.
10857 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10858 registers.
10859 (rs6000_init_hard_regno_mode_ok): Likewise.
10860 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10861 constraint. Print if LRA is turned on.
10862 (rs6000_option_override_internal): Give an error if -mvsx-timode
10863 and VSX is not enabled.
10864 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10865 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10866 to reg+offset addressing. Use PTImode when checking offset
10867 addresses for validity.
10868 (reg_offset_addressing_ok_p): Likewise.
10869 (rs6000_legitimate_offset_address_p): Likewise.
10870 (rs6000_legitimize_address): Likewise.
10871 (rs6000_legitimize_reload_address): Likewise.
10872 (rs6000_legitimate_address_p): Likewise.
10873 (rs6000_eliminate_indexed_memrefs): Likewise.
10874 (rs6000_emit_move): Likewise.
10875 (rs6000_secondary_reload): Likewise.
10876 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10877 reloads to fpr registers to continue to use reg+offset addressing,
10878 but 64-bit reloads to altivec registers need reg+reg addressing.
10879 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10880 it. Treat LO_SUM like a PLUS operation.
10881 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 10882 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
10883 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10884 registers to share a register with a smaller sized type, since VSX
10885 puts scalars in the upper 64-bits.
10886 (print_operand): Add support for PTImode.
10887 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10888 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10889 registers, but don't have arithmetic support.
10890 (rs6000_memory_move_cost): Add test for VSX.
10891 (rs6000_opt_masks): Add -mvsx-timode.
10892
10893 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10894 for TImode.
10895 (VSs): Likewise.
10896 (VSr): Use wt constraint for TImode.
10897 (VSv): Drop TImode support.
10898 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10899 (vsx_movti_64bit): Likewise.
10900 (vsx_movti_32bit): Likewise.
10901 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10902 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10903 one '?' on the appropriate output constraint. Do not allow TImode
10904 logical operations on 32-bit systems.
10905 (vsx_ior<mode>3): Likewise.
10906 (vsx_xor<mode>3): Likewise.
10907 (vsx_one_cmpl<mode>2): Likewise.
10908 (vsx_nor<mode>3): Likewise.
10909 (vsx_andc<mode>3): Likewise.
10910 (vsx_concat_<mode>): Likewise.
10911 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10912
10913 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10914 OPTION_MASK_VSX_TIMODE.
10915 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10916 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10917
10918 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10919 (TI2 iterator): New iterator for TImode, PTImode.
10920 (wd mode attribute): Add values for vector types.
bd059b26
UB
10921 (movti_string): Replace TI move operations with operations for TImode
10922 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
10923 (mov<mode>_string, TImode/PTImode): Likewise.
10924 (movti_ppc64): Likewise.
10925 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10926 (TI mode splitters): Likewise.
10927
10928 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10929 constraint.
10930
1fc5eced
MG
109312013-03-20 Marc Glisse <marc.glisse@inria.fr>
10932
10933 PR tree-optimization/56355
10934 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10935 Also handle integers with undefined overflow.
10936
22c4c869
CM
109372013-03-20 Catherine Moore <clm@codesourcery.com>
10938 Maciej W. Rozycki <macro@codesourcery.com>
10939 Tom de Vries <tom@codesourcery.com>
10940 Nathan Sidwell <nathan@codesourcery.com>
10941 Iain Sandoe <iain@codesourcery.com>
10942 Nathan Froyd <froydnj@codesourcery.com>
10943 Chao-ying Fu <fu@mips.com>
10944
10945 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 10946 Document new function attributes.
22c4c869
CM
10947 * doc/invoke.texi (minterlink-compressed, mmicromips,
10948 m14k, m14ke, m14kec): Document new options.
10949 (minterlink-mips16): Update documentation.
10950 * doc/md.texi (ZC, ZD): Document new constraints.
10951 * configure.ac (gcc_cv_as_micromips): Check if linker
10952 supports the .set micromips directive.
10953 * configure: Regenerate.
10954 * config.in: Regenerate.
10955 * config/mips/mips-tables.opt: Regenerate.
10956 * config/mips/micromips.md: New file.
10957 * constraints.md (ZC, ZD): New constraints.
10958 * config/mips/predicates.md (movep_src_register): New predicate.
10959 (movep_src_operand): New predicate.
10960 (non_volatile_mem_operand): New predicate.
10961 * config/mips/mips.md (multimem): New type.
10962 (length): Differentiate between 17-bit and 18-bit branch offsets.
10963 (MOVEP1, MOVEP2): New mode iterator.
33159866 10964 (mov_<load>l): Use ZC constraint.
22c4c869
CM
10965 (mov_<load>r): Likewise.
10966 (mov_<store>l): Likewise.
10967 (mov_<store>r): Likewise.
10968 (*branch_equality<mode>_inverted): Add microMIPS support.
10969 (*branch_equality<mode>): Likewise.
10970 (*jump_absolute): Likewise.
10971 (indirect_jump_<mode>): Likewise.
10972 (tablejump_<mode>): Likewise.
10973 (<optab>_internal): Likewise.
10974 (sibcall_internal): Likewise.
10975 (sibcall_value_internal): Likewise.
10976 (prefetch): Use constraint ZD.
10977 * config/mips/mips.opt (minterlink-compressed): New option.
10978 (minterlink-mips16): Now an alias for minterlink-compressed.
10979 (mmicromips): New option.
10980 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10981 (compare_and_swap_12): Likewise.
10982 (sync_add<mode>): Likewise.
10983 (sync_<optab>_12): Likewise.
10984 (sync_old_<optab>_12): Likewise.
10985 (sync_new_<optab>_12): Likewise.
10986 (sync_nand_12): Likewise.
10987 (sync_old_nand_12): Likewise.
10988 (sync_new_nand_12): Likewise.
10989 (sync_sub<mode>): Likewise.
10990 (sync_old_add<mode>): Likewise.
10991 (sync_old_sub<mode>): Likewise.
10992 (sync_new_add<mode>): Likewise.
10993 (sync_new_sub<mode>): Likewise.
10994 (sync_<optab><mode>): Likewise.
10995 (sync_old_<optab><mode>): Likewise.
10996 (sync_new_<optab><mode>): Likewise.
10997 (sync_nand<mode>): Likewise.
10998 (sync_old_nand<mode>): Likewise.
10999 (sync_new_nand<mode>): Likewise.
11000 (sync_lock_test_and_set<mode>): Likewise.
11001 (test_and_set_12): Likewise.
11002 (atomic_compare_and_swap<mode>): Likewise.
11003 (atomic_exchange<mode>_llsc): Likewise.
11004 (atomic_fetch_add<mode>_llsc): Likewise.
11005 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11006 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11007 (umips_save_restore_pattern_p): Likewise.
11008 (umips_load_store_pair_p): Likewise.
11009 (umips_output_load_store_pair): Likewise.
11010 (umips_movep_target_p): Likewise.
11011 (umips_12bit_offset_address_p): Likewise.
11012 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11013 (mips_base_mips16): Rename this...
11014 (mips_base_compression_flags): ...to this. Update all uses.
11015 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11016 (mips_mips16_decl_p): Delete.
11017 (mips_nomips16_decl_p): Delete.
33159866 11018 (mips_get_compress_on_flags): New function.
22c4c869
CM
11019 (mips_get_compress_off_flags): New function.
11020 (mips_get_compress_mode): New function.
11021 (mips_get_compress_on_name): New function.
11022 (mips_get_compress_off_name): New function.
11023 (mips_insert_attributes): Support multiple compression types.
11024 (mips_merge_decl_attributes): Likewise.
11025 (umips_12bit_offset_address_p): New function.
11026 (mips_start_function_definition): Emit .set micromips directive.
11027 (mips_call_may_need_jalx_p): New function.
11028 (mips_function_ok_for_sibcall): Add microMIPS support.
11029 (mips_print_operand_punctuation): Support short delay slots and
11030 compact jumps.
11031 (umips_swm_mask, umips_swm_encoding): New.
11032 (umips_build_save_restore): New function.
11033 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11034 (was_mips16_p): Remove.
11035 (old_compression_mode): New.
11036 (mips_set_compression_mode): New function.
11037 (mips_set_current_function): Add microMIPS support.
11038 (mips_option_override): Likewise.
11039 (umips_save_restore_pattern_p): New function.
11040 (umips_output_save_restore): New function.
11041 (umips_load_store_pair_p_1): New function.
11042 (umips_load_store_pair_p): New function.
11043 (umips_output_load_store_pair_1): New function.
11044 (umips_output_load_store_pair): New function.
11045 (umips_movep_target_p) New function.
11046 (mips_prepare_pch_save): Add microMIPS support.
11047 * config/mips/mips.h (TARGET_COMPRESSION): New.
11048 (TARGET_CPU_CPP_BUILTINS): Update macro
11049 to use new compression flags and to support microMIPS.
11050 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11051 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11052 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11053 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11054 (ASM_SPEC): Support mmicromips and mno-micromips.
11055 (M16STORE_REG_P): New macro.
11056 (MIPS_CALL): Support TARGET_MICROMIPS.
11057 (MICROMIPS_J): New macro.
11058 (mips_base_mips16): Rename this...
11059 (mips_base_compression_flags): ...to this.
11060 (UMIPS_12BIT_OFFSET_P): New macro.
11061 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11062 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
110632013-03-20 Richard Biener <rguenther@suse.de>
11064
11065 PR tree-optimization/56661
11066 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11067 the result does not have to be distinct.
11068
54714c68
RB
110692013-03-20 Richard Biener <rguenther@suse.de>
11070
11071 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11072 remap_gimple_op_r.
11073
cca1130d
BS
110742013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11075 Steven Bosscher <steven@gcc.gnu.org>
11076
11077 PR rtl-optimization/56605
11078 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11079
2a930377
UB
110802013-03-20 Uros Bizjak <ubizjak@gmail.com>
11081
11082 PR bootstrap/56656
11083 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11084 that require movd instead of movq.
11085
d6d305fe
RB
110862013-03-20 Richard Biener <rguenther@suse.de>
11087
11088 * tree-ssa-structalias.c (struct variable_info): Add pointer
11089 to the first field of an aggregate with sub-vars. Make
11090 this and the pointer to the next subfield its ID.
11091 (vi_next): New function.
11092 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11093 storedanything_id, integer_id): Increment by one.
11094 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11095 get_call_clobber_vi): Adjust.
11096 (solution_set_expand): Simplify and speedup.
11097 (solution_set_add): Inline into ...
11098 (set_union_with_increment): ... this. Adjust accordingly.
11099 (do_sd_constraint): Likewise.
11100 (do_ds_constraint): Likewise.
11101 (do_complex_constraint): Simplify.
11102 (build_pred_graph): Adjust.
11103 (solve_graph): Likewise. Simplify and speedup.
11104 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11105 get_constraint_for_component_ref, get_constraint_for_1,
11106 first_vi_for_offset, first_or_preceding_vi_for_offset,
11107 create_function_info_for, create_variable_info_for_1,
11108 create_variable_info_for, intra_create_variable_infos): Adjust.
11109 (init_base_vars): Push NULL for ID zero.
11110 (compute_points_to_sets): Adjust.
11111
a271b42d
RB
111122013-03-20 Richard Biener <rguenther@suse.de>
11113
11114 * cfgloop.c (verify_loop_structure): Streamline and avoid
11115 ICEing on corrupt loop tree.
11116 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11117 loop tree.
11118
ebd65954
RB
111192013-03-20 Richard Biener <rguenther@suse.de>
11120
11121 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11122 check whether an SSA update is needed.
11123
4547b7ee
RS
111242013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11125
11126 * config/mips/constraints.md (T): Rename to...
11127 (Yf): ...this.
11128 (U): Rename to...
11129 (Yd): ...this.
11130 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11131 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11132
0b8cdc58
IB
111332013-03-19 Ian Bolton <ian.bolton@arm.com>
11134
11135 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11136 (*subsi3_carryin_uxtw): Likewise.
11137
5977a10d
IB
111382013-03-19 Ian Bolton <ian.bolton@arm.com>
11139
11140 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11141 (*rorsi3_insn_uxtw): Likewise.
11142
bd83ff2c
IB
111432013-03-19 Ian Bolton <ian.bolton@arm.com>
11144
11145 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11146 (*extrsi5_insn_uxtw): Likewise.
11147
ba65123c
RB
111482013-03-19 Richard Biener <rguenther@suse.de>
11149
11150 PR tree-optimization/56273
11151 * passes.c (init_optimization_passes): Move second VRP after DOM.
11152
2eac0476
UB
111532013-03-19 Uros Bizjak <ubizjak@gmail.com>
11154
11155 * config/i386/i386.md (*movti_internal): Merge from
11156 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11157 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11158 nox64 isa attributes.
11159
6e55eda7
RB
111602013-03-18 Richard Biener <rguenther@suse.de>
11161
11162 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11163 (unite): Likewise.
11164 (merge_node_constraints): Likewise.
11165 (build_succ_graph): Likewise.
11166 (valid_graph_edge): Inline into single caller.
11167 (unify_nodes): Likewise. Use bitmap_set_bit return value
11168 and cache varinfo.
11169 (scc_visit): Fix formatting and variable use.
11170 (do_sd_constraint): Use gcc_checking_assert.
11171 (do_ds_constraint): Likewise.
11172 (do_complex_constraint): Likewise.
11173 (condense_visit): Likewise. Cleanup.
11174 (dump_pred_graph): New function.
11175 (perform_var_substitution): Dump the pred-graph before
11176 variable substitution.
11177 (find_equivalent_node): Use gcc_checking_assert.
11178 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11179
4bdd44c4
RB
111802013-03-18 Richard Biener <rguenther@suse.de>
11181
11182 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11183 Remove cond_expr_stmt_list argument and do not gimplify the
11184 built expression.
11185 (vect_loop_versioning): Adjust.
11186 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11187 Cleanup to use less temporaries.
11188 (vect_create_data_ref_ptr): Cleanup.
11189
38c56a5b
JJ
111902013-03-18 Jakub Jelinek <jakub@redhat.com>
11191
11192 PR tree-optimization/56635
11193 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11194 require types_compatible_p types.
11195
20b2e6a0
NC
111962013-03-18 Nick Clifton <nickc@redhat.com>
11197
a6178a25
NC
11198 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11199 spurious backslash.
11200
20b2e6a0
NC
11201 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11202 Add missing line to comment describing function.
11203
92608d0e
RB
112042013-03-18 Richard Biener <rguenther@suse.de>
11205
11206 PR tree-optimization/56210
11207 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11208 Handle string / character search functions.
11209 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11210
31348d52
RB
112112013-03-18 Richard Biener <rguenther@suse.de>
11212
11213 PR middle-end/56483
11214 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11215 and implement properly.
11216 * gimple.h (gimple_cond_single_var_p): Remove.
11217
fcac74a1
RB
112182013-03-18 Richard Biener <rguenther@suse.de>
11219
11220 * tree-data-ref.h (find_data_references_in_loop): Declare.
11221 * tree-data-ref.c (get_references_in_stmt): Use a stack
11222 vector pre-allocated in the callers.
11223 (find_data_references_in_stmt): Adjust.
11224 (graphite_find_data_references_in_stmt): Likewise.
11225 (create_rdg_vertices): Likewise.
11226 (find_data_references_in_loop): Export.
11227 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11228 Compute dependences here...
11229 (vect_analyze_data_refs): ...not here. When we encounter
11230 a non-vectorizable data reference in basic-block vectorization
11231 truncate the data reference vector. Do not bother to
11232 fixup data-dependence information for gather loads.
11233 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11234 of data references, as reported.
11235
0d5a1b56
RB
112362013-03-18 Richard Biener <rguenther@suse.de>
11237
11238 PR tree-optimization/3713
11239 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11240 has_constants and expr.
11241 (stmt_has_constants): Properly valueize SSA names when deciding
11242 whether the stmt has constants.
11243
789c34e3
RB
112442013-03-18 Richard Biener <rguenther@suse.de>
11245
11246 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11247 whole function when there is nothing to do.
11248 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11249 * tree-vectorizer.c (vectorize_loops): Update virtual and
11250 loop-closed SSA once.
11251 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11252
076b4605
RB
112532013-03-18 Richard Biener <rguenther@suse.de>
11254
11255 PR middle-end/56113
11256 * domwalk.c (bb_postorder): New global static.
11257 (cmp_bb_postorder): New function.
11258 (walk_dominator_tree): Replace scheme imposing an order for
11259 visiting dominator sons by one sorting them at the time they
11260 are pushed on the stack.
11261
bdb01696
RB
112622013-03-18 Richard Biener <rguenther@suse.de>
11263
11264 PR tree-optimization/39326
11265 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11266 (struct mem_ref): Replace mem member with ao_ref typed member.
11267 (MEM_ANALYZABLE): Adjust.
11268 (memref_eq): Likewise.
11269 (mem_ref_alloc): Likewise.
11270 (gather_mem_refs_stmt): Likewise.
11271 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11272 (execute_sm_if_changed_flag_set): Adjust.
11273 (execute_sm): Likewise.
11274 (ref_always_accessed_p): Likewise.
11275 (refs_independent_p): Likewise.
11276 (can_sm_ref_p): Likewise.
11277
12d2dc5e
JJ
112782013-03-18 Jakub Jelinek <jakub@redhat.com>
11279
11280 PR c/56566
11281 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11282 return 1 even for !unsignedp.
11283
286fb677
UB
112842013-03-17 Uros Bizjak <ubizjak@gmail.com>
11285
11286 * config/i386/i386.md (isa): Add x64 and nox64.
11287 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11288 (*pushtf): Enable *roF alternative for x64 isa only.
11289 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11290 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11291 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11292 (*movtf_internal): Merge from *movtf_internal_rex64 and
11293 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11294 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11295 nox64 isa attributes.
11296 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11297 nox64 isa attributes.
11298 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11299
88b97037
UB
113002013-03-17 Uros Bizjak <ubizjak@gmail.com>
11301
11302 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11303
9f4f1735
JJ
113042013-03-17 Jakub Jelinek <jakub@redhat.com>
11305
11306 PR target/56640
11307 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11308 class names. Remove trailing comma after "ALL_REGS".
11309
48f4a6fa
JH
113102013-03-16 Jan Hubicka <jh@suse.cz>
11311
11312 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11313 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11314 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11315 of cgraph_get_create_node.
11316 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11317
98e81123
JM
113182013-03-16 Jason Merrill <jason@redhat.com>
11319
11320 PR debug/49090
11321 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11322 with DW_AT_default_value.
11323
8a298c04
JJ
113242013-03-16 Jakub Jelinek <jakub@redhat.com>
11325
11326 * BASE-VER: Set to 4.9.0.
11327
4323afa0
AK
113282013-03-14 Andi Kleen <ak@linux.intel.com>
11329
11330 PR target/56619
11331 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11332 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11333 Document _x* TSX intrinsics.
11334
b3c0d469
JJ
113352013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11336 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
11337
11338 * configure.ac: Add MicroBlaze TLS support detection.
11339 * configure: Regenerate.
88b97037
UB
11340 * config/microblaze/microblaze-protos.h
11341 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11342 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11343 * config/microblaze/microblaze.c (microblaze_address_type): Add
11344 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
11345 (microblaze_address_info): Add tls_reloc.
11346 (TARGET_HAVE_TLS): Define.
11347 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11348 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
11349 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11350 load_tls_operand, microblaze_call_tls_get_addr,
11351 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
11352 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11353 (get_base_reg): Use microblaze_tls_symbol_p.
11354 (microblaze_classify_address): Handle TLS.
88b97037
UB
11355 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11356 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
11357 (microblaze_legitimize_address): Handle TLS.
11358 (microblaze_address_insns): Handle ADDRESS_TLS.
11359 (pic_address_needs_scratch): Handle TLS.
11360 (print_operand_address): Handle TLS.
11361 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11362 (microblaze_expand_move): Handle TLS.
88b97037
UB
11363 (microblaze_legitimate_constant_p): Check
11364 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
11365 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11366 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11367 (PIC_OFFSET_TABLE_REGNUM): Set.
11368 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11369 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11370 (addsi3, movsi_internal2, movdf_internal): Update constraints
11371 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
11372 (move_operand): Redefine as move_src_operand,
11373 check microblaze_tls_referenced_p.
8cc9a5a5 11374
d803a491
IB
113752013-03-14 Ian Bolton <ian.bolton@arm.com>
11376
11377 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11378 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11379
a8504f22
IB
113802013-03-14 Ian Bolton <ian.bolton@arm.com>
11381
11382 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11383 CC mode for AND.
11384
df2dfaea
JJ
113852013-03-14 Jakub Jelinek <jakub@redhat.com>
11386
fbd28bc3
JJ
11387 PR tree-optimization/53265
11388 * common.opt (Waggressive-loop-optimizations): New option.
11389 * tree-ssa-loop-niter.c: Include tree-pass.h.
11390 (do_warn_aggressive_loop_optimizations): New function.
11391 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11392 if number_of_latch_executions returned constant.
11393 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11394 early. If number_of_latch_executions returned constant, set
11395 nb_iterations_upper_bound back to it.
11396 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11397 field.
11398 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11399 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11400
df2dfaea
JJ
11401 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11402 (MULTILIB_OSDIRNAMES): Set.
11403 * genmultilib: If defaultosdirname doesn't start with :: , set
11404 defaultosdirname2 instead, clear it and emit two . multilib_raw
11405 entries instead of just one.
11406
ee0d2b68
KK
114072013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11408
11409 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11410 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11411 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11412 (SUBTARGET_OVERRIDE_OPTIONS): New.
11413
decc676e
OE
114142013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11415
11416 PR target/49880
11417 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11418 (musermode): Convert to Var(TARGET_USERMODE).
11419 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11420 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11421 * config/sh/sh.c (sh_option_override): Use
11422 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11423 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11424 condition.
11425 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11426 TARGET_SH4.
11427 (udivsi3_i4_single, divsi3_i4_single): Use
11428 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11429
f4b719c7
DK
114302013-03-13 Dave Korn <dave.korn.cygwin@....>
11431
11432 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11433 default setting.
11434
c40eced0
RB
114352013-03-13 Richard Biener <rguenther@suse.de>
11436
11437 PR tree-optimization/56608
11438 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11439 calls when vectorizing basic-blocks.
11440
1bfa5973
JJ
114412013-03-13 Jakub Jelinek <jakub@redhat.com>
11442
11443 PR plugins/45078
11444 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11445 tm_file.
11446
6fcf5434
JJ
114472013-03-12 Jakub Jelinek <jakub@redhat.com>
11448
11449 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11450
4f38fa8c
JH
114512013-03-11 Jan Hubicka <jh@suse.cz>
11452
11453 PR lto/56557
11454 * lto-streamer-out.c (output_symbol_p): Skip references from
11455 constructors of external variables.
11456
c5c5ba89
JH
114572013-03-11 Jan Hubicka <jh@suse.cz>
11458
11459 PR middle-end/56571
11460 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11461 from pseudos.
11462 * emit-rtl.c (verify_rtx_sharing): Likewise.
11463 (copy_insn_1): Likewise.
11464 * rtl.c (copy_rtx): Likewise.
11465
c2a939b1
GJL
114662013-03-11 Georg-Johann Lay <avr@gjlay.de>
11467
11468 PR target/56591
11469 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11470 output_operand_lossage message.
88b97037 11471
3c3279fb
RE
114722013-03-11 Richard Earnshaw <rearnsha@arm.com>
11473
11474 PR target/56470
11475 * arm.c (shift_op): Validate RTL pattern on the fly.
11476 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11477 the RTL.
11478
aef5ef9d
JDA
114792013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11480
11481 PR target/56347
11482 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11483 new call patterns that clobber %fr12.
11484 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11485 split and postreload patterns.
11486 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11487 registers %fr12 and %fr12R as call used.
11488
456610d3
SB
114892013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11490
11491 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11492 (canon_address, record_store, replace_read, check_mem_read_rtx,
11493 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11494 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11495 rest_of_handle_dse): Likewise.
11496
4b1baac8
RS
114972013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11498
11499 PR middle-end/56524
11500 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11501 Add base_optabs.
11502 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11503 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11504 (save_optabs_if_changed): Replace with...
11505 (init_tree_optimization_optabs): ...this.
11506 * optabs.c (save_optabs_if_changed): Rename to...
11507 (init_tree_optimization_optabs): ...this. Take the optimization node
11508 as argument. Do nothing if the base optabs are already correct.
11509 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11510 to recompute optabs.
11511 * function.h (function): Remove optabs field.
11512 * function.c (invoke_set_current_function_hook): Call
11513 init_tree_optimization_optabs. Use the result to initialize
11514 this_fn_optabs.
11515
b7a78683
AH
115162013-02-27 Aldy Hernandez <aldyh@redhat.com>
11517
11518 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11519 if GTMA_HAS_NO_INSTRUMENTATION.
11520 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11521 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11522 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11523 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11524 GTMA_HAS_NO_INSTRUMENTATION.
11525
6384c29b
JJ
115262013-03-08 Jakub Jelinek <jakub@redhat.com>
11527
11528 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11529 libasan_preinit.o.
11530
ecd4f20a
MP
115312013-03-08 Marek Polacek <polacek@redhat.com>
11532 Jakub Jelinek <jakub@redhat.com>
11533
11534 PR tree-optimization/56478
11535 * predict.c (is_comparison_with_loop_invariant_p): Change the
11536 type of loop_step to tree.
11537 (predict_loops): Adjust.
11538 (predict_iv_comparison): Perform the computations on double_ints.
11539
64366d35
RB
115402013-03-08 Richard Biener <rguenther@suse.de>
11541
11542 PR tree-optimization/56570
11543 * tree-cfg.c (verify_expr_location_1): Verify locations for
11544 DECL_DEBUG_EXPR.
11545 * tree-sra.c (create_access_replacement): Strip locations
11546 from DECL_DEBUG_EXPRs.
11547
a9d5a059
RB
115482013-03-08 Richard Biener <rguenther@suse.de>
11549
11550 * tree-inline.c (expand_call_inline): Do not associate
11551 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11552 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11553
b7aa4e9a
RB
115542013-03-08 Richard Biener <rguenther@suse.de>
11555
11556 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11557 or block changes with -Og. Fix for location / block encoding
11558 changes and PHI arguments with locations.
11559
c4c2f9fa
SB
115602013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11561
11562 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11563 for all counters.
11564 (struct output_info): Likewise.
11565 (register_overhead): Remove bad gcc_assert.
11566 (bitmap_find_bit): If there is only a single bitmap element, do not
11567 count a miss as a search.
11568 (print_statistics): Update for counter type changes.
11569 (dump_bitmap_statistics): Likewise. Print headers such that they
11570 are properly lined up with the printed counters.
11571
5bf6606a
JJ
115722013-03-07 Jakub Jelinek <jakub@redhat.com>
11573
11574 PR tree-optimization/56559
11575 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11576 check that it has only a single use.
11577
2c653d46
RB
115782013-03-07 Richard Biener <rguenther@suse.de>
11579
11580 * doc/invoke.texi (fwhole-program): Discourage use in combination
11581 with -flto.
11582
a72d8780
JJ
115832013-03-06 Jakub Jelinek <jakub@redhat.com>
11584
01a454df
JJ
11585 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11586
c1781047
JJ
11587 PR tree-optimization/56539
11588 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11589 instead of GSI_CONTINUE_LINKING as last argument to
11590 force_gimple_operand_gsi. Adjust function comment.
11591
9772c47a
JJ
11592 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11593 aarch64-cores.def.
11594
a72d8780
JJ
11595 PR middle-end/56548
11596 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11597 promoted mode, convert the result back to the original mode.
11598
fa5556de
RB
115992013-03-06 Richard Biener <rguenther@suse.de>
11600
11601 PR middle-end/56294
11602 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11603 (insert_updated_phi_nodes_compare_uids): New function.
11604 (update_ssa): Sort symbols_to_rename after UID before
11605 traversing it to insert PHI nodes.
11606
010403d1
RB
116072013-03-06 Richard Biener <rguenther@suse.de>
11608
11609 PR middle-end/50494
11610 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11611 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11612
11613 Revert
11614 2013-02-13 Richard Biener <rguenther@suse.de>
11615
11616 PR lto/50494
11617 * varasm.c (output_constant_def_1): Get the decl representing
11618 the constant as argument.
11619 (output_constant_def): Wrap output_constant_def_1.
11620 (make_decl_rtl): Use output_constant_def_1 with the decl
11621 representing the constant.
11622 (build_constant_desc): Optionally re-use a decl already
11623 representing the constant.
11624 (tree_output_constant_def): Adjust.
11625
3c27ce4c
JY
116262013-03-06 Joey Ye <joey.ye@arm.com>
11627
11628 PR lto/50293
11629 * gcc.c (convert_white_space): New function.
11630 (main): Handles white space in function name.
11631
8f6d1c86
OE
116322013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11633
11634 PR target/56529
11635 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11636 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11637 to SH_DIV_CALL_TABLE for TARGET_SH2.
11638 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11639 list.
11640 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11641 call-table options.
11642
798a209f
SA
116432013-03-05 Sterling Augustine <saugustine@google.com>
11644 Cary Coutant <ccoutant@google.com>
11645
11646 PR debug/55364
11647 * dwarf2out.c (resolve_addr): Don't call
11648 remove_loc_list_addr_table_entries a second time for the same
11649 expression.
11650
6cfa417f 116512013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 11652
6cfa417f
JJ
11653 PR debug/56510
11654 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11655 (avoid_complex_debug_insns): New function.
11656 (expand_debug_locations): Call it.
11657
11658 PR rtl-optimization/56484
11659 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11660 lifetimes of hard registers on small register class machines.
11661
116622013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11663
11664 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 11665 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 11666 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
11667 fast_interrupt.
11668 (microblaze_fast_interrupt_function_p): New function.
11669 (microblaze_is_interrupt_handler): Rename to
11670 microblaze_is_interrupt_variant and add fast_interrupt check.
11671 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11672 (save_restore_insns): Likewise.
11673 (compute_frame_size): Likewise.
11674 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11675 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
11676 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11677 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
11678 microblaze_is_interrupt_variant.
11679
731aefac
KT
116802013-03-05 Kai Tietz <ktietz@redhat.com>
11681
11682 * sdbout.c (sdbout_one_type): Switch to current function's section
11683 supporting cold/hot.
11684
a72d8780 116852013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
11686
11687 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11688 -mxl-reorder.
11689
334e71e8
JJ
116902013-03-05 Jakub Jelinek <jakub@redhat.com>
11691
0b50e654
JJ
11692 PR middle-end/56461
11693 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11694 if VALGRIND_GET_VBITS is defined, temporarily make object
11695 memory all defined, and restore previous valgrind addressability
11696 and definability afterwards. Free this_object at the end.
11697
4ccf8f43
JJ
11698 PR middle-end/56461
11699 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11700 right before calling lra_create_live_ranges, also call it
11701 when clearing live_p. Only call lra_clear_live_ranges
11702 at the end if live_p.
11703
334e71e8
JJ
11704 PR middle-end/56461
11705 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11706
9ca966ca
RB
117072013-03-05 Richard Biener <rguenther@suse.de>
11708
11709 PR tree-optimization/56521
11710 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11711 value-id.
11712
d273b176
SB
117132013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11714
11715 PR c++/55135
11716 * except.h (remove_unreachable_eh_regions): New prototype.
11717 * except.c (remove_eh_handler_splicer): New function, split out
11718 of remove_eh_handler.
11719 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11720 warning about running it on many EH regions one at a time.
11721 (remove_unreachable_eh_regions_worker): New function, walk the
11722 EH tree in depth-first order and remove non-marked regions.
11723 (remove_unreachable_eh_regions): New function.
11724 * tree-eh.c (mark_reachable_handlers): New function, split out
11725 from remove_unreachable_handlers.
11726 (remove_unreachable_handlers): Use mark_reachable_handlers and
11727 remove_unreachable_eh_regions.
11728 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11729 and remove_unreachable_eh_regions.
11730
5e7f1aef
RB
117312013-03-05 Richard Biener <rguenther@suse.de>
11732
11733 PR middle-end/56525
11734 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11735 not freeing them until the end.
11736
f276b762
AK
117372013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11738
11739 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11740
12a43ab8
RB
117412013-03-05 Richard Biener <rguenther@suse.de>
11742
11743 PR tree-optimization/56270
11744 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11745 of loads after scheduling an SLP instance.
11746
93675444
JJ
117472013-03-05 Jakub Jelinek <jakub@redhat.com>
11748
db4138e3
JJ
11749 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11750 tic6x.exp.
11751 (check_gcc_parallelize): Run guality.exp as a separate job from
11752 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11753 struct-layout-1.exp with stackalign.exp.
11754
dd3d1ec0
JJ
11755 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11756
b8d381a3
JJ
11757 PR middle-end/56461
11758 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11759 load_index sbitmap even if some bit in it isn't set.
11760
b4f9786b
JJ
11761 PR middle-end/56461
11762 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11763 (discover_iteration_bound_by_body_walk): Change queues to
11764 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11765 spelling in comment. Call safe_push on queues[bound_index] directly.
11766 Release queues[queue_index] in every iteration unconditionally.
11767 Release bounds vector.
11768
93675444
JJ
11769 PR middle-end/56461
11770 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11771 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11772 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11773 inner_phis vector.
11774
3e492e9c
RB
117752013-03-05 Richard Biener <rguenther@suse.de>
11776
11777 PR lto/56515
11778 * tree-inline.c (remap_blocks_to_null): New function.
11779 (expand_call_inline): When expanding a call stmt without
11780 an associated block inline remap all callee blocks to NULL.
11781
a5d1569a
JJ
117822013-03-05 Jakub Jelinek <jakub@redhat.com>
11783
86efb5cd
JJ
11784 PR rtl-optimization/56494
11785 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11786 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11787 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11788
85f5dbea
JJ
11789 PR middle-end/56461
11790 * sel-sched-ir.c (free_sched_pools): Release
11791 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11792 if succs_info_pool.max_top isn't -1.
11793
a5d1569a
JJ
11794 PR bootstrap/56509
11795 * opts.c (opts_obstack, opts_concat): Moved to...
11796 * opts-common.c (opts_obstack, opts_concat): ... here.
11797
4432aa6c
JJ
117982013-03-04 Jakub Jelinek <jakub@redhat.com>
11799
11800 PR middle-end/56461
11801 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11802
f3a1fb91
MJ
118032013-03-04 Martin Jambor <mjambor@suse.cz>
11804
11805 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11806 all appropriate places.
11807
22110e6c
EB
118082013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11809
11810 PR tree-optimization/56424
11811 * ipa-split.c (split_function): Do not set the RSO flag if result is
11812 not by reference and its type is a register type.
11813
a72d8780 118142013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 11815
88b97037 11816 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 11817 (microblaze_legitimate_pic_operand): Likewise
88b97037 11818 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
11819 new function microblaze_legitimate_pic_operand
11820 * config/microblaze/microblaze-protos.h
11821 (microblaze_legitimate_pic_operand): Declare.
11822
a72d8780 118232013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 11824
a72d8780 11825 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 11826 New predicate for supported rtx code types.
a72d8780 11827 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
11828 call_insn_simple_operand predicate.
11829
541d9ac8
JJ
118302013-03-04 Jakub Jelinek <jakub@redhat.com>
11831
5eb010bc
JJ
11832 PR middle-end/56461
11833 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11834 partitions.ordered_remove.
11835
30862efc
JJ
11836 PR middle-end/56461
11837 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11838 vec_oprnds0.create (1) for modifier == NONE.
11839
8930f723
JJ
11840 PR middle-end/56461
11841 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11842 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11843 vec_oprnds1 right before pushing anything to it for
11844 scalar_shift_arg.
11845
541d9ac8
JJ
11846 PR middle-end/56461
11847 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11848 set nbbs to 0 instead of having separate code path.
11849 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11850 instead of false as last argument if returning NULL.
11851
7aa7f2e3
SL
118522013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11853
11854 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11855 the attribute is now called "target" instead of "option".
11856 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11857 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11858 attribute/pragma name for TARGET_OPTION_VALID_P and
11859 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11860 * doc/tm.texi: Regenerated.
11861
8930f723 118622013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 11863
8930f723 11864 * config/microblaze/microblaze.c:
cb8a1637 11865 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
11866 * config/microblaze/microblaze.h: Add -mxl-reorder to
11867 DRIVER_SELF_SPECS.
11868 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11869 instructions emitted if TARGET_REORDER.
88b97037
UB
11870 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11871 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 11872 separately.
cb8a1637 11873
4dc1d68c
XDL
118742013-03-01 Xinliang David Li <davidxl@google.com>
11875
11876 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11877 walk length.
11878
689eaba3
JJ
118792013-03-01 Jakub Jelinek <jakub@redhat.com>
11880
9d676bf6
JJ
11881 PR middle-end/56461
11882 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11883 vector even when returning true. Fix up function comment formatting.
11884
caff7edf
JJ
11885 PR middle-end/56461
11886 * ira-build.c (ira_loop_nodes_count): New variable.
11887 (create_loop_tree_nodes): Initialize it.
11888 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11889
b6b9227d
JJ
11890 PR middle-end/56461
11891 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11892 method on dr_chain and result_chain.
11893 * tree-vect-stmts.c (vectorizable_store): Only call
11894 result_chain.create if j == 0.
11895
689eaba3
JJ
11896 PR middle-end/56461
11897 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11898 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11899 before overwriting it.
11900
40bf31ed
TB
119012013-03-01 Tobias Burnus <burnus@net-b.de>
11902
11903 * doc/extended.texi (C Extensions): Change order in @menu
11904 to match @node.
11905 (Other MIPS Built-in Functions): Move last MIPS entry before
11906 "picoChip Built-in Functions".
11907 (SH Built-in Functions): Move after RX Built-in Functions.
11908 * doc/gcc.texi (Introduction): Change order in @menu
11909 to match @node.
11910 * doc/md.texi (Constraints): Ditto.
11911 * gty.texi (Type Information): Ditto.
11912 (User-provided marking routines for template types): Make
11913 subsection.
11914 * doc/invoke.texi (AArch64 Options): Move before
11915 "Adapteva Epiphany Options".
11916
e664c61c
KS
119172013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11918 Jakub Jelinek <jakub@redhat.com>
11919
11920 PR sanitizer/56454
11921 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11922 no_address_safety_analysis attribute.
11923 * doc/extend.texi (no_address_safety_attribute): Rename to
11924 no_sanitize_address attribute, mention no_address_safety_analysis
11925 attribute as deprecated alias.
11926
37b5ec8f
JJ
119272013-02-28 Jakub Jelinek <jakub@redhat.com>
11928
11929 PR middle-end/56461
11930 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11931 type to vec<vec<tree> > *.
11932 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11933 to be vec<tree> instead of vec<tree> *, set vec_defs
11934 to vNULL and call vec_defs.create (number_of_vects), adjust other
11935 uses of vec_defs.
11936 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11937 vectorizable_condition): Adjust vect_get_slp_defs callers.
11938
ba96cdfb
JG
119392013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11940
11941 * config/aarch64/aarch64.c
11942 (aarch64_float_const_representable): Remove unused variable.
11943
6f549691
JG
119442013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11945
11946 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11947
af55e82d
JG
119482013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11949
11950 * config/aarch64/aarch64-builtins.c
11951 (aarch64_init_simd_builtins): Make static.
11952
1df3f464
JG
119532013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11954
11955 * config/aarch64/aarch64.c
11956 (aarch64_simd_make_constant): Make static.
11957
f8f42513
MJ
119582013-02-28 Martin Jambor <mjambor@suse.cz>
11959
11960 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11961 with no initialization to the RHS of debug statements.
11962
b48b3fc4
MJ
119632013-02-28 Martin Jambor <mjambor@suse.cz>
11964
11965 PR tree-optimization/56294
11966 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11967 Adjust dumping.
11968 (get_access_replacement): Do not call create_access_replacement.
11969 Assert a replacement exists.
11970 (get_repl_default_def_ssa_name): Create the replacement declaration
11971 itself.
11972
c3ae224c
RR
119732013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11974
11975 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11976 final_end_function.
11977
45fa0eef
MP
119782013-02-28 Marek Polacek <polacek@redhat.com>
11979
11980 PR rtl-optimization/56466
11981 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11982 if we're changing a loop.
11983 (peel_loops_completely): Likewise.
11984
502c067d
PC
119852013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11986
11987 PR c++/55813
11988 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11989
ff24afc8
GJL
119902013-02-28 Georg-Johann Lay <avr@gjlay.de>
11991
11992 PR target/56445
11993 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11994 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11995 INTX_FTYPE_FX, FX_FTYPE_INTX.
11996 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11997
c7b1fc1b
GJL
119982013-02-28 Georg-Johann Lay <avr@gjlay.de>
11999
12000 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12001 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12002 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12003 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12004 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12005 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12006 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12007 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12008 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12009 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12010 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12011 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12012 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12013 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12014 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12015 (avrxmega6): Increase max flash segments from 5 to 6.
12016 * config/avr/t-multilib: Regenerate.
12017 * config/avr/avr-tables.opt: Regenerate.
12018 * doc/avr-mmcu.texi: Regenerate.
12019
4a0e3cfe
GJL
120202013-02-28 Georg-Johann Lay <avr@gjlay.de>
12021
12022 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12023 (avr_device_to_arch): Rename to avr_device_to_ld.
12024 (avr_device_to_as): New prototype.
12025 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12026 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12027 * config/avr/driver-avr.c (avr_device_to_as): New.
12028 (avr_device_to_arch): Rename to avr_device_to_ld.
12029
97785e52
JJ
120302013-02-27 Jakub Jelinek <jakub@redhat.com>
12031
3f292312
JJ
12032 PR middle-end/56461
12033 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12034 method on dr_chain and result_chain.
12035
a344216b
JJ
12036 PR middle-end/56461
12037 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12038 pointer_set_destroy on not_executed_last_iteration.
12039
f121ad02 12040 PR middle-end/56461
88b97037 12041 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 12042
307f83a3
JJ
12043 PR middle-end/56461
12044 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12045 FOR_EACH_DEFINED_FUNCTION when freeing state.
12046
e19624ee
JJ
12047 PR middle-end/56461
12048 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12049 pool_free.
12050 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12051 overwriting it.
12052
90e709fd
JJ
12053 PR middle-end/56461
12054 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12055 known_aggs[i].items and release known_aggs vector.
12056
97785e52
JJ
12057 PR middle-end/56461
12058 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12059
120602013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 12061
97785e52
JJ
12062 * config/microblaze/microblaze.c (microblaze_emit_compare):
12063 Use xor for EQ/NE comparisions.
12064 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12065 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 12066
6fa5e0ed
JJ
120672013-02-27 Jakub Jelinek <jakub@redhat.com>
12068
12069 PR middle-end/56461
12070 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12071 vector.
12072 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12073 vec_safe_push, always update *slot.
12074 (redirect_edge_var_map_clear): Use vec_free.
12075 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12076 (free_var_map_entry): Use vec_free.
12077 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12078 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12079
436a956a
AB
120802013-02-27 Andrey Belevantsev <abel@ispras.ru>
12081
12082 PR middle-end/45472
436a956a
AB
12083 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12084 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
12085 Reorder tests for speculativeness in the logical and operator.
12086
f5c2caca
JJ
120872013-02-27 Jakub Jelinek <jakub@redhat.com>
12088
0fcb564b
JJ
12089 * incpath.c (add_standard_paths): Use reconcat instead of concat
12090 where appropriate and avoid leaking memory.
12091
dc357798
JJ
12092 * opts.h: Include obstack.h.
12093 (opts_concat): New prototype.
12094 (opts_obstack): New declaration.
12095 * opts.c (opts_concat): New function.
12096 (opts_obstack): New variable.
12097 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12098 (finish_options): Use opts_concat instead of concat
12099 and XOBNEWVEC instead of XNEWVEC.
12100 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12101 generate_option): Likewise.
12102 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12103 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12104
f5c2caca
JJ
12105 PR target/56455
12106 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12107 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12108
d0163673
JJ
121092013-02-26 Jakub Jelinek <jakub@redhat.com>
12110
12111 PR middle-end/56461
12112 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12113
b5ad2b8e
JR
121142013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12115
12116 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12117 (arm_block_move_unaligned_straight): Likewise.
12118 (arm_adjust_block_mem): Likewise.
12119
9b639e2c
JR
121202013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12121
12122 PR target/48901
12123 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12124 temp, cond and label.
12125 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12126
e13a0ccb
JR
12127 PR target/52500
12128 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12129 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12130
fbe4f171
JR
12131 PR target/52501
12132 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12133 of prologue/epilogue functions.
12134
ae006543
JR
12135 PR target/52550
12136 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12137 Remove unused variable cfa_offset.
12138 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12139
c81369fa
JR
12140 PR target/54639
12141 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12142 type promotion to unsigned.
12143
f8a8fea7
JR
12144 PR target/54640
12145 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12146 for HOST_WIDE_INT of 32 bit / same size as int.
12147 (arm_block_move_unaligned_straight): Likewise.
12148 (arm_adjust_block_mem): Likewise.
12149
f8be5169
JR
12150 PR target/54662
12151 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12152 ALL_CFLAGS.
12153
f1ad3354
MP
121542013-02-26 Marek Polacek <polacek@redhat.com>
12155
12156 PR tree-optimization/56426
88b97037 12157 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 12158
a6af0f42
RB
121592013-02-26 Richard Biener <rguenther@suse.de>
12160
12161 PR target/56444
12162 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12163 unused variable loops.
12164
aca43c6c
JJ
121652013-02-26 Jakub Jelinek <jakub@redhat.com>
12166
cecbe5d9
JJ
12167 PR tree-optimization/56448
12168 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12169 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12170 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12171 later operands of the references, or even first operand for
12172 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12173
aca43c6c
JJ
12174 PR tree-optimization/56443
12175 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12176 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12177 to type_for_mode langhook.
12178
53e2e141
MT
121792013-02-25 Matt Turner <mattst88@gmail.com>
12180
12181 * doc/invoke.texi: Document r4700.
12182
259ee451
RB
121832013-02-25 Richard Biener <rguenther@suse.de>
12184
12185 PR tree-optimization/56175
12186 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12187 split out from ...
12188 (simplify_bitwise_binary): ... here. Also guard the conversion
12189 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12190
6d65e8f1
CM
121912013-02-25 Catherine Moore <clm@codesourcery.com>
12192
12193 Revert:
12194 2013-02-24 Catherine Moore <clm@codesourcery.com>
12195 Maciej W. Rozycki <macro@codesourcery.com>
12196 Tom de Vries <tom@codesourcery.com>
a72d8780 12197 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
12198 Iain Sandoe <iain@codesourcery.com>
12199 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12200 Chao-ying Fu <fu@mips.com>
88b97037 12201
6d65e8f1 12202 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12203 Document new function attributes.
6d65e8f1
CM
12204 * doc/invoke.texi (minterlink-compressed, mmicromips,
12205 m14k, m14ke, m14kec): Document new options.
12206 (minterlink-mips16): Update documentation.
12207 * doc/md.texi (ZC, ZD): Document new constraints.
12208 * configure.ac (gcc_cv_as_micromips): Check if linker
12209 supports the .set micromips directive.
12210 * configure: Regenerate.
12211 * config.in: Regenerate.
12212 * config/mips/mips-tables.opt: Regenerate.
12213 * config/mips/micromips.md: New file.
12214 * constraints.md (ZC, AD): New constraints.
12215 * config/mips/predicates.md (movep_src_register): New predicate.
12216 (movep_src_operand): New predicate.
12217 (non_volatile_mem_operand): New predicate.
12218 * config/mips/mips.md (multimem): New type.
12219 (length): Differentiate between 17-bit and 18-bit branch offsets.
12220 (MOVEP1, MOVEP2): New mode iterator.
12221 (mov_<load>l): Use ZC constraint.
12222 (mov_<load>r): Likewise.
12223 (mov_<store>l): Likewise.
12224 (mov_<store>r): Likewise.
12225 (*branch_equality<mode>_inverted): Add microMIPS support.
12226 (*branch_equality<mode>): Likewise.
12227 (*jump_absolute): Likewise.
12228 (indirect_jump_<mode>): Likewise.
12229 (tablejump_<mode>): Likewise.
12230 (<optab>_internal): Likewise.
12231 (sibcall_internal): Likewise.
12232 (sibcall_value_internal): Likewise.
12233 (prefetch): Use constraint ZD.
12234 * config/mips/mips.opt (minterlink-compressed): New option.
12235 (minterlink-mips16): Now an alias for minterlink-compressed.
12236 (mmicromips): New option.
12237 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12238 (compare_and_swap_12): Likewise.
12239 (sync_add<mode>): Likewise.
12240 (sync_<optab>_12): Likewise.
12241 (sync_old_<optab>_12): Likewise.
12242 (sync_new_<optab>_12): Likewise.
12243 (sync_nand_12): Likewise.
12244 (sync_old_nand_12): Likewise.
12245 (sync_new_nand_12): Likewise.
12246 (sync_sub<mode>): Likewise.
12247 (sync_old_add<mode>): Likewise.
12248 (sync_old_sub<mode>): Likewise.
12249 (sync_new_add<mode>): Likewise.
12250 (sync_new_sub<mode>): Likewise.
12251 (sync_<optab><mode>): Likewise.
12252 (sync_old_<optab><mode>): Likewise.
12253 (sync_new_<optab><mode>): Likewise.
12254 (sync_nand<mode>): Likewise.
12255 (sync_old_nand<mode>): Likewise.
12256 (sync_new_nand<mode>): Likewise.
12257 (sync_lock_test_and_set<mode>): Likewise.
12258 (test_and_set_12): Likewise.
12259 (atomic_compare_and_swap<mode>): Likewise.
12260 (atomic_exchange<mode>_llsc): Likewise.
12261 (atomic_fetch_add<mode>_llsc): Likewise.
12262 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12263 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12264 (umips_save_restore_pattern_p): Likewise.
12265 (umips_load_store_pair_p): Likewise.
12266 (umips_output_load_store_pair): Likewise.
12267 (umips_movep_target_p): Likewise.
12268 (umips_12bit_offset_address_p): Likewise.
12269 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12270 (mips_base_mips16): Rename this...
12271 (mips_base_compression_flags): ...to this. Update all uses.
12272 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12273 (mips_mips16_decl_p): Delete.
12274 (mips_nomips16_decl_p): Delete.
12275 (mips_get_compress_on_flags): New function.
12276 (mips_get_compress_off_flags): New function.
12277 (mips_get_compress_mode): New function.
12278 (mips_get_compress_on_name): New function.
12279 (mips_get_compress_off_name): New function.
12280 (mips_insert_attributes): Support multiple compression types.
12281 (mips_merge_decl_attributes): Likewise.
12282 (umips_12bit_offset_address_p): New function.
12283 (mips_start_function_definition): Emit .set micromips directive.
12284 (mips_call_may_need_jalx_p): New function.
12285 (mips_function_ok_for_sibcall): Add microMIPS support.
12286 (mips_print_operand_punctuation): Support short delay slots and
12287 compact jumps.
12288 (umips_swm_mask, umips_swm_encoding): New.
12289 (umips_build_save_restore): New function.
12290 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12291 (was_mips16_p): Remove.
12292 (old_compression_mode): New.
12293 (mips_set_compression_mode): New function.
12294 (mips_set_current_function): Add microMIPS support.
12295 (mips_option_override): Likewise.
12296 (umips_save_restore_pattern_p): New function.
12297 (umips_output_save_restore): New function.
12298 (umips_load_store_pair_p_1): New function.
12299 (umips_load_store_pair_p): New function.
12300 (umips_output_load_store_pair_1): New function.
12301 (umips_output_load_store_pair): New function.
12302 (umips_movep_target_p) New function.
12303 (mips_prepare_pch_save): Add microMIPS support.
12304 * config/mips/mips.h (TARGET_COMPRESSION): New.
12305 (TARGET_CPU_CPP_BUILTINS): Update macro
12306 to use new compression flags and to support microMIPS.
12307 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12308 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12309 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12310 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12311 (ASM_SPEC): Support mmicromips and mno-micromips.
12312 (M16STORE_REG_P): New macro.
12313 (MIPS_CALL): Support TARGET_MICROMIPS.
12314 (MICROMIPS_J): New macro.
12315 (mips_base_mips16): Rename this...
12316 (mips_base_compression_flags): ...to this.
12317 (UMIPS_12BIT_OFFSET_P): New macro.
12318 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12319 (MULTILIB_DIRNAMES): Likewise.
12320
5e5df392
TV
123212013-02-25 Tom de Vries <tom@codesourcery.com>
12322
12323 PR rtl-optimization/56131
12324 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12325 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12326 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12327
3fdb53c1
TB
123282013-02-25 Tobias Burnus <burnus@net-b.de>
12329
12330 * doc/invoke.texi (-fsanitize=): Move from optimization
12331 to debugging options.
12332
ed358aea
AB
123332013-02-25 Andrey Belevantsev <abel@ispras.ru>
12334
12335 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12336
f45e9053
AB
123372013-02-25 Andrey Belevantsev <abel@ispras.ru>
12338 Alexander Monakov <amonakov@ispras.ru>
12339
12340 PR middle-end/56077
12341 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12342 flush pending lists also on non-jumps. Adjust comment.
12343
6941b508
CM
123442013-02-24 Catherine Moore <clm@codesourcery.com>
12345 Maciej W. Rozycki <macro@codesourcery.com>
12346 Tom de Vries <tom@codesourcery.com>
a72d8780 12347 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
12348 Iain Sandoe <iain@codesourcery.com>
12349 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12350 Chao-ying Fu <fu@mips.com>
6941b508
CM
12351
12352 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12353 Document new function attributes.
6941b508
CM
12354 * doc/invoke.texi (minterlink-compressed, mmicromips,
12355 m14k, m14ke, m14kec): Document new options.
12356 (minterlink-mips16): Update documentation.
12357 * doc/md.texi (ZC, ZD): Document new constraints.
12358 * configure.ac (gcc_cv_as_micromips): Check if linker
12359 supports the .set micromips directive.
12360 * configure: Regenerate.
12361 * config.in: Regenerate.
12362 * config/mips/mips-tables.opt: Regenerate.
12363 * config/mips/micromips.md: New file.
12364 * constraints.md (ZC, AD): New constraints.
12365 * config/mips/predicates.md (movep_src_register): New predicate.
12366 (movep_src_operand): New predicate.
12367 (non_volatile_mem_operand): New predicate.
12368 * config/mips/mips.md (multimem): New type.
12369 (length): Differentiate between 17-bit and 18-bit branch offsets.
12370 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 12371 (mov_<load>l): Use ZC constraint.
6941b508
CM
12372 (mov_<load>r): Likewise.
12373 (mov_<store>l): Likewise.
12374 (mov_<store>r): Likewise.
12375 (*branch_equality<mode>_inverted): Add microMIPS support.
12376 (*branch_equality<mode>): Likewise.
12377 (*jump_absolute): Likewise.
12378 (indirect_jump_<mode>): Likewise.
12379 (tablejump_<mode>): Likewise.
12380 (<optab>_internal): Likewise.
12381 (sibcall_internal): Likewise.
12382 (sibcall_value_internal): Likewise.
12383 (prefetch): Use constraint ZD.
12384 * config/mips/mips.opt (minterlink-compressed): New option.
12385 (minterlink-mips16): Now an alias for minterlink-compressed.
12386 (mmicromips): New option.
12387 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12388 (compare_and_swap_12): Likewise.
12389 (sync_add<mode>): Likewise.
12390 (sync_<optab>_12): Likewise.
12391 (sync_old_<optab>_12): Likewise.
12392 (sync_new_<optab>_12): Likewise.
12393 (sync_nand_12): Likewise.
12394 (sync_old_nand_12): Likewise.
12395 (sync_new_nand_12): Likewise.
12396 (sync_sub<mode>): Likewise.
12397 (sync_old_add<mode>): Likewise.
12398 (sync_old_sub<mode>): Likewise.
12399 (sync_new_add<mode>): Likewise.
12400 (sync_new_sub<mode>): Likewise.
12401 (sync_<optab><mode>): Likewise.
12402 (sync_old_<optab><mode>): Likewise.
12403 (sync_new_<optab><mode>): Likewise.
12404 (sync_nand<mode>): Likewise.
12405 (sync_old_nand<mode>): Likewise.
12406 (sync_new_nand<mode>): Likewise.
12407 (sync_lock_test_and_set<mode>): Likewise.
12408 (test_and_set_12): Likewise.
12409 (atomic_compare_and_swap<mode>): Likewise.
12410 (atomic_exchange<mode>_llsc): Likewise.
12411 (atomic_fetch_add<mode>_llsc): Likewise.
12412 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12413 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12414 (umips_save_restore_pattern_p): Likewise.
12415 (umips_load_store_pair_p): Likewise.
12416 (umips_output_load_store_pair): Likewise.
12417 (umips_movep_target_p): Likewise.
12418 (umips_12bit_offset_address_p): Likewise.
12419 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12420 (mips_base_mips16): Rename this...
12421 (mips_base_compression_flags): ...to this. Update all uses.
12422 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12423 (mips_mips16_decl_p): Delete.
12424 (mips_nomips16_decl_p): Delete.
3fdb53c1 12425 (mips_get_compress_on_flags): New function.
6941b508
CM
12426 (mips_get_compress_off_flags): New function.
12427 (mips_get_compress_mode): New function.
12428 (mips_get_compress_on_name): New function.
12429 (mips_get_compress_off_name): New function.
12430 (mips_insert_attributes): Support multiple compression types.
12431 (mips_merge_decl_attributes): Likewise.
12432 (umips_12bit_offset_address_p): New function.
12433 (mips_start_function_definition): Emit .set micromips directive.
12434 (mips_call_may_need_jalx_p): New function.
12435 (mips_function_ok_for_sibcall): Add microMIPS support.
12436 (mips_print_operand_punctuation): Support short delay slots and
12437 compact jumps.
12438 (umips_swm_mask, umips_swm_encoding): New.
12439 (umips_build_save_restore): New function.
12440 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12441 (was_mips16_p): Remove.
12442 (old_compression_mode): New.
12443 (mips_set_compression_mode): New function.
12444 (mips_set_current_function): Add microMIPS support.
12445 (mips_option_override): Likewise.
12446 (umips_save_restore_pattern_p): New function.
12447 (umips_output_save_restore): New function.
12448 (umips_load_store_pair_p_1): New function.
12449 (umips_load_store_pair_p): New function.
12450 (umips_output_load_store_pair_1): New function.
12451 (umips_output_load_store_pair): New function.
12452 (umips_movep_target_p) New function.
12453 (mips_prepare_pch_save): Add microMIPS support.
12454 * config/mips/mips.h (TARGET_COMPRESSION): New.
12455 (TARGET_CPU_CPP_BUILTINS): Update macro
12456 to use new compression flags and to support microMIPS.
12457 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12458 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12459 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12460 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12461 (ASM_SPEC): Support mmicromips and mno-micromips.
12462 (M16STORE_REG_P): New macro.
12463 (MIPS_CALL): Support TARGET_MICROMIPS.
12464 (MICROMIPS_J): New macro.
12465 (mips_base_mips16): Rename this...
12466 (mips_base_compression_flags): ...to this.
12467 (UMIPS_12BIT_OFFSET_P): New macro.
12468 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12469 (MULTILIB_DIRNAMES): Likewise.
12470
cdebbc6d
JJ
124712013-02-24 Jakub Jelinek <jakub@redhat.com>
12472
12473 PR target/52555
12474 * target-globals.c (save_target_globals): For init_reg_sets and
12475 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12476
18c63565
JG
124772013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12478
12479 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12480 * config/aarch64/t-aarch64
12481 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12482
2194f7a2
VM
124832013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12484
12485 PR inline-asm/56148
12486 * lra-constraints.c (process_alt_operands): Reload operand
12487 conflicting with earlier clobber only if no more other conflicting
12488 operands.
12489
7d613735
JJ
124902013-02-22 Jakub Jelinek <jakub@redhat.com>
12491
12492 PR sanitizer/56393
12493 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12494 if not linking a shared library.
12495
ac8d93a7
SL
124962013-02-22 Seth LaForge <sethml@google.com>
12497
12498 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12499
e0237780
GY
125002013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12501
3fdb53c1
TB
12502 * config/arm/arm.md (split for extendsidi): Update condition.
12503 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12504 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12505 (qhs_zextenddi_cstr): Likewise.
e0237780 12506
d7fde18c
JJ
125072013-02-21 Jakub Jelinek <jakub@redhat.com>
12508
be63b77d
JJ
12509 PR middle-end/56420
12510 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12511 avoid signed wrapping.
12512 (expand_mult): Handle properly multiplication by
12513 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12514 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12515 in the compiler if coeff is HOST_WIDE_INT_MIN.
12516 (expand_divmod): Don't make ext_op1 static, change it's type to
12517 uhwi. Avoid undefined behavior in -INTVAL (op1).
12518
d7fde18c
JJ
12519 PR rtl-optimization/50339
12520 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12521 field.
12522 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12523 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12524 into splitting_ashiftrt field.
12525 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12526 ASHIFTRT.
12527 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12528 choices.
12529
6aad4455
AH
125302013-02-20 Aldy Hernandez <aldyh@redhat.com>
12531
12532 PR middle-end/56108
12533 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12534 are sure to go irrevocable.
12535
38fe784d
HPN
125362013-02-21 Hans-Peter Nilsson <hp@axis.com>
12537
12538 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12539 scalars are valid operands.
12540
0fd44da3
MJ
125412013-02-21 Martin Jambor <mjambor@suse.cz>
12542
12543 PR tree-optimization/56310
12544 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12545 only matching indices and non-negative final offsets.
12546 (intersect_aggregates_with_edge): Pass src_idx to
12547 agg_replacements_to_vector. Pass src_idx insstead of index to
12548 intersect_with_agg_replacements.
12549
7a92038b
MJ
125502013-02-21 Martin Jambor <mjambor@suse.cz>
12551
12552 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12553 instead of hard-wired defaults.
12554
c0da9c37
MR
125552013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12556
12557 * doc/invoke.texi (MIPS Options): Update documentation of the
12558 floating-point multiply-accumulate instruction restrictions.
12559
d247ea0c 125602013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
12561
12562 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12563 asan_shadow_offset on x86_64 linux.
12564
22deefcb
RB
125652013-02-21 Richard Biener <rguenther@suse.de>
12566
12567 PR tree-optimization/56415
12568 Revert
12569 2013-02-11 Richard Biener <rguenther@suse.de>
12570
12571 PR tree-optimization/56273
12572 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12573 first VRP run.
12574
7bcc6e75
JJ
125752013-02-21 Jakub Jelinek <jakub@redhat.com>
12576
a0ad148f
JJ
12577 PR bootstrap/56258
12578 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12579 instead of @itemx.
12580
7bcc6e75
JJ
12581 PR inline-asm/56405
12582 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12583 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12584
a0a7b611
JH
125852013-02-20 Jan Hubicka <jh@suse.cz>
12586
12587 PR tree-optimization/56265
88b97037
UB
12588 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12589 when target is referenced for first time.
a0a7b611 12590
c0e50f72
RB
125912013-02-20 Richard Biener <rguenther@suse.de>
12592
12593 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12594 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12595 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12596 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12597 not return anything.
12598 (rename_ssa_copies): Do not remove unused locals.
12599 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 12600 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
12601 * passes.c (execute_function_todo): Do not schedule unused locals
12602 removal if cleanup_tree_cfg did something.
12603 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12604 about the number of removed locals.
12605
a52ca739
RB
126062013-02-20 Richard Biener <rguenther@suse.de>
12607
12608 PR tree-optimization/56398
88b97037 12609 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 12610
ec9c9d1b
MJ
126112013-02-20 Martin Jambor <mjambor@suse.cz>
12612
12613 PR tree-optimization/55334
12614 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12615 restricted pointers to arrays.
12616
e91c8ed6 126172013-02-20 Richard Biener <rguenther@suse.de>
88b97037 12618 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
12619
12620 PR tree-optimization/56396
12621 * tree-ssa-ccp.c (n_const_val): New static variable.
12622 (get_value): Return NULL for SSA names we don't have a lattice
12623 entry for.
12624 (ccp_initialize): Initialize n_const_val.
12625 * tree-ssa-copy.c (n_copy_of): New static variable.
12626 (init_copy_prop): Initialize n_copy_of.
12627 (get_value): Return NULL_TREE for SSA names we don't have a
12628 lattice entry for.
12629
3d916479
MJ
126302013-02-20 Martin Jambor <mjambor@suse.cz>
12631
12632 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12633
71a86758
RB
126342013-02-20 Richard Biener <rguenther@suse.de>
12635
12636 * genpreds.c (write_lookup_constraint): Do not compare first
12637 letter of the constraint again.
12638
79836a12
RB
126392013-02-20 Richard Biener <rguenther@suse.de>
12640
12641 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12642 and ceil_log2.
12643 (get_use_iv_cost): Terminate hashtable walk when coming across
12644 an empty entry.
12645
bbe4fb2c
IZ
126462013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12647
12648 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12649 reassociation for avx2 targets.
12650
a72d8780 126512012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 12652
c77f83d5
EI
12653 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12654 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 12655 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
12656 version and TARGET_PATTERN_COMPARE check
12657 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 12658
a72d8780 126592012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 12660
a72d8780 12661 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
12662 function before branching.
12663
242387fa
AB
126642012-02-19 Andrey Belevantsev <abel@ispras.ru>
12665
12666 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12667 DUMP_INSN_RTX_UID.
12668 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12669
b4979ab9
AB
126702012-02-19 Andrey Belevantsev <abel@ispras.ru>
12671
12672 PR middle-end/55889
b4979ab9
AB
12673 * sel-sched.c: Include ira.h.
12674 (implicit_clobber_conflict_p): New function.
12675 (moveup_expr): Use it.
88b97037 12676 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 12677
24d63016
RB
126782013-02-19 Richard Biener <rguenther@suse.de>
12679
12680 PR tree-optimization/56384
12681 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12682 (vn_hash_type): Split out from ...
12683 (vn_hash_constant_with_type): ... here.
12684 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12685 (vn_phi_eq): Compare types from vn_phi_s structure.
12686 (vn_phi_lookup): Populate vn_phi_s type.
12687 (vn_phi_insert): Likewise.
12688
a475fd3d
JJ
126892013-02-19 Jakub Jelinek <jakub@redhat.com>
12690
47cc28f5
JJ
12691 PR tree-optimization/56350
12692 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12693 if haven't found reduction or nested cycle operand, rather than
12694 asserting we must find it.
12695
a475fd3d
JJ
12696 PR tree-optimization/56381
12697 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12698 to fold_build3.
12699
127002013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
12701 Jakub Jelinek <jakub@redhat.com>
12702
12703 PR target/52555
12704 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12705 (swap_optab_enable): Same.
12706 (init_all_optabs): Use argument instead of global.
88b97037 12707 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
12708 * expr.h (init_all_optabs): Add argument to prototype.
12709 (TREE_OPTIMIZATION_OPTABS): New.
12710 (save_optabs_if_changed): Protoize.
12711 * optabs.h: Declare this_fn_optabs.
12712 * optabs.c (save_optabs_if_changed): New.
12713 Declare this_fn_optabs.
12714 (init_optabs): Add argument to init_all_optabs() call.
12715 * function.c (invoke_set_current_function_hook): Handle per
12716 function optabs.
12717 * function.h (struct function): New field optabs.
12718 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12719 optimization_current_node has changed.
12720 * target-globals.h (save_target_globals_default_opts): Protoize.
12721 * target-globals.c (save_target_globals_default_opts): New.
12722
3f587ca3
JDA
127232013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12724
12725 PR target/56347
12726 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12727 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
12728
12729 PR target/56214
12730 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
12731 and HImode, require all displacements to be an integer multiple of
12732 their mode size.
ceaca33e
JDA
12733 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12734 only allow QImode and HImode when reload is in progress and strict is
12735 true. Likewise for symbolic addresses. Use base14_operand to check
12736 displacements in REG+BASE addresses.
12737
fe0b4796
RB
127382013-02-18 Richard Biener <rguenther@suse.de>
12739
12740 PR tree-optimization/56366
12741 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12742 handle sign-conversion of outer-loop initial induction value.
12743
6aaf596b
RB
127442013-02-18 Richard Biener <rguenther@suse.de>
12745
73db8ff1 12746 PR middle-end/56349
6aaf596b
RB
12747 * cfghooks.c (merge_blocks): If we merge a latch into another
12748 block adjust references to it.
12749 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12750 (verify_loop_structure): Verify that a recorded latch is in fact
12751 a latch.
12752
5e97dfb6
RB
127532013-02-18 Richard Biener <rguenther@suse.de>
12754
12755 PR tree-optimization/56321
12756 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12757 order SSA name release and virtual operand unlinking.
12758
825527e8
EI
127592013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12760
12761 * config/microblaze/microblaze.md (save_stack_block): Define.
12762 (restore_stack_block): Likewise.
12763
debd11d9
EI
127642013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12765
12766 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12767 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12768 * config/microblaze/microblaze.c (microblaze_option_override):
12769 Bail out early for PIC modes when target does not support PIC.
12770
8ec77be0
EI
127712013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12772
88b97037 12773 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
12774 Replace with a microblaze version.
12775 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 12776 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
12777 microblaze.
12778
b41288b3
JJ
127792013-02-16 Jakub Jelinek <jakub@redhat.com>
12780 Dodji Seketeli <dodji@redhat.com>
12781
12782 PR asan/56330
88b97037 12783 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
12784 (instrument_mem_region_access): Do not forget to always put
12785 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12786 0) statement, even for cases where either 'base' or 'base + len'
12787 are not instrumented -- because they have been previously
12788 instrumented. Simplify the logic by putting all the statements
12789 instrument 'base + len' inside a sequence, and then insert that
12790 sequence right before the current insertion point. Then, to
12791 instrument 'base + len', just get an iterator on that statement.
12792 And do not forget to update the pointer to iterator the function
12793 received as argument.
12794
47918951
VM
127952013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12796
12797 PR rtl-optimization/56348
12798 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12799
3fb7c699
SB
128002013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12801
12802 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12803 (clean_graph_dump_file): Pass base to start_graph_dump.
12804
576fe41a
RH
128052013-02-14 Richard Henderson <rth@redhat.com>
12806
12807 PR target/55941
12808 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12809
bb3accfa
SB
128102013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12811
12812 * collect2-aix.h: Define F_LOADONLY.
12813
03143140
RB
128142013-02-14 Richard Biener <rguenther@suse.de>
12815
12816 PR lto/50494
12817 * varasm.c (output_constant_def_1): Get the decl representing
12818 the constant as argument.
12819 (output_constant_def): Wrap output_constant_def_1.
12820 (make_decl_rtl): Use output_constant_def_1 with the decl
12821 representing the constant.
12822 (build_constant_desc): Optionally re-use a decl already
12823 representing the constant.
12824 (tree_output_constant_def): Adjust.
12825
8fb06726
DS
128262013-02-14 Dodji Seketeli <dodji@redhat.com>
12827
12828 Fix an asan crash
12829 * asan.c (instrument_builtin_call): Really put the length of the
12830 second source argument into src1_len.
12831
c4bfe8bf
JJ
128322013-02-13 Jakub Jelinek <jakub@redhat.com>
12833
12834 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12835 argument. If it is false, don't create edge from then_bb to
12836 fallthru_bb.
12837 (insert_if_then_before_iter): Pass true to it.
12838 (build_check_stmt): Pass false to it.
12839 (transform_statements): Flush hash table only on extended basic
12840 block boundaries, rather than at the beginning of every bb.
12841 Don't flush hash table on nonfreeing_call_p calls.
12842 * tree-flow.h (nonfreeing_call_p): New prototype.
12843 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12844
7afe2801
DM
128452013-02-13 David S. Miller <davem@davemloft.net>
12846
12847 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12848
70cc3288
VM
128492013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12850
12851 PR target/56184
12852 * ira.c (max_regno_before_ira): Move from ...
12853 (ira): ... here.
12854 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12855 vec_safe_length.
12856
6422242b
JJ
128572013-02-13 Jakub Jelinek <jakub@redhat.com>
12858
12859 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12860
976a81ee
RB
128612013-02-13 Richard Biener <rguenther@suse.de>
12862
12863 PR lto/56295
12864 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12865 globals in MEM_REFs.
12866
c1874a87
RB
128672013-02-13 Richard Biener <rguenther@suse.de>
12868
12869 * loop-init.c (loop_optimizer_init): Clear loop state when
12870 re-initializing preserved loops.
12871 * loop-unswitch.c (unswitch_single_loop): Return whether
12872 we unswitched the loop. Do not verify loop state here.
88b97037 12873 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 12874
b4ab7d34
KS
128752013-02-13 Kostya Serebryany <kcc@google.com>
12876
88b97037
UB
12877 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12878 on x86_64 linux.
b4ab7d34
KS
12879 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12880
bdcbe80c
DS
128812013-02-12 Dodji Seketeli <dodji@redhat.com>
12882
12883 Avoid instrumenting duplicated memory access in the same basic block
12884 * Makefile.in (asan.o): Add new dependency on hash-table.h
12885 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12886 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12887 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12888 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12889 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12890 (get_mem_ref_of_assignment): New functions.
12891 (get_mem_refs_of_builtin_call): Extract from
12892 instrument_builtin_call and tweak a little bit to make it fit with
12893 the new signature.
12894 (instrument_builtin_call): Use the new
12895 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12896 of is_gimple_builtin_call.
12897 (instrument_derefs, instrument_mem_region_access): Insert the
12898 instrumented memory reference into the hash table.
12899 (maybe_instrument_assignment): Renamed instrument_assignment into
12900 this, and change it to advance the iterator when instrumentation
12901 actually happened and return true in that case. This makes it
12902 homogeneous with maybe_instrument_assignment, and thus give a
12903 chance to callers to be more 'regular'.
12904 (transform_statements): Clear the memory reference hash table
12905 whenever we enter a new BB, when we cross a function call, or when
12906 we are done transforming statements. Use
12907 maybe_instrument_assignment instead of instrumentation. No more
12908 need to special case maybe_instrument_assignment and advance the
12909 iterator after calling it; it's now handled just like
12910 maybe_instrument_call. Update comment.
12911
4861a1f7
RB
129122013-02-13 Richard Biener <rguenther@suse.de>
12913
12914 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12915 Fix loop discovery code.
12916
1c86bd80
VM
129172013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12918
12919 PR inline-asm/56148
12920 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 12921 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
12922 the operand is not reloaded. Prefer to reload conflicting operand
12923 if earlyclobber and matching operands are the same.
12924
7cbda518
RB
129252013-02-12 Richard Biener <rguenther@suse.de>
12926
12927 PR lto/56297
12928 * lto-streamer-out.c (write_symbol): Do not output symbols
12929 for hard register variables.
12930
e68a4ef6
GJL
129312013-02-12 Georg-Johann Lay <avr@gjlay.de>
12932
12933 PR target/54222
12934 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12935 (umulsidi3_insn, mulsidi3_insn): New insns.
12936
a72d8780 129372013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
12938
12939 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12940 (struct tune_params): Add vec_costs field.
12941 * config/arm/arm.c (arm_builtin_vectorization_cost)
12942 (arm_add_stmt_cost): New functions.
12943 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12944 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12945 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12946 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12947 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12948 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12949 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12950
43320568
RB
129512013-02-12 Richard Biener <rguenther@suse.de>
12952
12953 PR lto/56295
12954 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12955 decls again if possible.
12956
a011aa39
RB
129572013-02-12 Richard Biener <rguenther@suse.de>
12958
12959 PR middle-end/56288
12960 * tree-ssa.c (verify_ssa_name): Fix check, move
12961 SSA_NAME_IN_FREE_LIST check up.
12962
6da26889
JJ
129632013-02-12 Jakub Jelinek <jakub@redhat.com>
12964 Steven Bosscher <steven@gcc.gnu.org>
12965
12966 PR rtl-optimization/56151
12967 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12968 equal to op0 or op1, and last_insn pattern is CODE operation
12969 with MEM dest and one of the operands matches that MEM.
12970
f80e0faf
ST
129712013-02-11 Sriraman Tallam <tmsriramgoogle.com>
12972
12973 * doc/extend.texi: Document Function Multiversioning and "default"
12974 parameter string to target attribute.
12975 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12976 target attribute parameter is "default".
12977 (ix86_compare_version_priority): Remove checks for target attribute.
12978 (ix86_mangle_function_version_assembler_name): Change error to sorry.
12979 Remove check for target attribute equal to NULL. Add assert.
12980 (ix86_generate_version_dispatcher_body): Change error to sorry.
12981
6c59ffd1
IS
129822013-02-11 Iain Sandoe <iain@codesourcery.com>
12983 Jack Howarth <howarth@bromo.med.uc.edu>
12984 Patrick Marlier <patrick.marlier@gmail.com>
12985
12986 PR libitm/55693
12987 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12988 define ENDFILE_SPEC as TM_DESTRUCTOR.
12989 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12990
a72d8780 129912013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
12992 Jack Howarth <howarth@bromo.med.uc.edu>
12993 Jakub Jelinek <jakub@redhat.com>
12994
12995 PR sanitizer/55617
12996 * config/darwin.c (cdtor_record): Rename ctor_record.
12997 (sort_cdtor_records): Rename sort_ctor_records.
12998 (finalize_dtors): New routine to sort destructors by
12999 priority before use in assemble_integer.
13000 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13001
b63fe007
UB
130022013-02-11 Uros Bizjak <ubizjak@gmail.com>
13003
13004 PR rtl-optimization/56275
13005 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13006 offset is non-negative and less than cmode size before
13007 calling simplify_subreg.
13008
8e89b5b5
RB
130092013-02-11 Richard Biener <rguenther@suse.de>
13010
13011 PR tree-optimization/56264
13012 * cfgloop.h (fix_loop_structure): Adjust prototype.
13013 * loop-init.c (fix_loop_structure): Return the number of
13014 newly discovered loops.
13015 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13016 are discovered, do a full loop-closed SSA rewrite.
13017
b4a4b56d
RB
130182013-02-11 Richard Biener <rguenther@suse.de>
13019
13020 PR tree-optimization/56273
13021 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13022 first VRP run.
13023 (check_array_ref): Fix missing newline in dumps.
13024 (search_for_addr_array): Likewise.
13025
0c885229
DE
130262013-02-09 David Edelsohn <dje.gcc@gmail.com>
13027
13028 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13029
59ac9a55
JJ
130302013-02-09 Jakub Jelinek <jakub@redhat.com>
13031
13032 PR target/56256
13033 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13034
25bb0bb5
VM
130352013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13036
13037 PR rtl-optimization/56246
0c885229 13038 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
13039 reload pseudo.
13040 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13041 constraints are satisfied.
13042
a698cc03
JL
130432013-02-08 Jeff Law <law@redhat.com>
13044
13045 PR debug/53948
13046 * emit-rtl.c (reg_is_parm_p): New function.
13047 * regs.h (reg_is_parm_p): New prototype.
13048 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13049 callee-clobbered registers.
13050
e1122ddd
MM
130512013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13052
13053 PR target/56043
13054 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13055 If there is no implicit builtin declaration, just return NULL.
13056
19c5f6e6
UB
130572013-02-08 Uros Bizjak <ubizjak@gmail.com>
13058
13059 * config/i386/sse.md (FMAMODEM): New mode iterator.
13060 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13061 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13062
2480f2ca 130632013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 13064
2480f2ca
UB
13065 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13066 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13067 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13068
130692013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13070
13071 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13072 (microblaze*-*-elf): Likewise.
13073 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13074 LINK_SPEC.
13075 * config/microblaze/microblaze-c.c: Add builtin defines for
13076 _LITTLE_ENDIAN and _BIG_ENDIAN.
13077 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13078 add to TARGET_DEFAULT flags.
76ef61fb 13079 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
13080 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13081 * config/microblaze/microblaze.md: Update extendsidi2 and
13082 movdi_internal instructions to use low-order / high-order reg
13083 print_operands.
13084 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13085 options and inversemask / mask of LITTLE_ENDIAN.
13086 * config/microblaze/t-microblaze: Expand multilib options to
13087 include mlittle-endian (le) and update exceptions patterns.
13088
600a5961
JJ
130892013-02-08 Jakub Jelinek <jakub@redhat.com>
13090
5df81313
JJ
13091 PR rtl-optimization/56195
13092 * lra-constraints.c (get_reload_reg): Don't reuse regs
13093 if they have smaller mode than requested, if they have
13094 wider mode than requested, try to return a SUBREG.
13095
600a5961
JJ
13096 PR tree-optimization/56250
13097 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13098 if type is unsigned and code isn't MULT_EXPR.
13099
ff544649
GJL
131002013-02-08 Georg-Johann Lay <avr@gjlay.de>
13101
13102 PR tree-optimization/56064
13103 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13104 bits according to mode.
13105 * fixed-value.h (fixed_from_double_int)
13106 (const_fixed_from_double_int): Adjust comments.
13107
e45cde98
RB
131082013-02-08 Richard Biener <rguenther@suse.de>
13109
13110 PR lto/56231
13111 * lto-streamer.h (struct data_in): Remove current_file, current_line
13112 and current_col members.
13113 * lto-streamer-out.c (lto_output_location): Stream changed bits
13114 en-block for efficiency.
13115 * lto-streamer-in.c (clear_line_info): Remove.
13116 (lto_input_location): Cache current file, line and column
13117 globally via local statics. Read changed bits en-block.
13118 (input_function): Do not call clear_line_info.
13119 (lto_read_body): Likewise.
13120 (lto_input_toplevel_asms): Likewise.
13121
c1ca73d8
MM
131222013-02-08 Michael Matz <matz@suse.de>
13123
13124 PR tree-optimization/52448
13125 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13126 (nt_call_phase): New static.
13127 (add_or_mark_expr): Only mark accesses with newer phase than any
13128 call seen.
13129 (nonfreeing_call_p): New.
13130 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13131 (nt_fini_block): Keep blocks marked as visited.
13132 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13133
57548aa2
RB
131342013-02-08 Richard Biener <rguenther@suse.de>
13135
13136 * ira.c (ira): Free broken dominator information.
13137
8e10366f
UB
131382013-02-08 Uros Bizjak <ubizjak@gmail.com>
13139
13140 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13141
f64fb0fa
MP
131422013-02-08 Marek Polacek <polacek@redhat.com>
13143
8e10366f 13144 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 13145
0375167b
RB
131462013-02-08 Richard Biener <rguenther@suse.de>
13147
13148 PR middle-end/56181
13149 * cfgloop.h (flow_loops_find): Adjust.
13150 (bb_loop_header_p): Declare.
13151 * cfgloop.c (bb_loop_header_p): New function split out from ...
13152 (flow_loops_find): ... here. Adjust function signature,
13153 support incremental loop structure update.
13154 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13155 * cfgloopmanip.c (fix_loop_structure): Move ...
13156 * loop-init.c (fix_loop_structure): ... here.
13157 (apply_loop_flags): Split out from ...
13158 (loop_optimizer_init): ... here.
13159 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13160 in incremental mode, only remove dead loops here.
13161
85d768f3
GJL
131622013-02-08 Georg-Johann Lay <avr@gjlay.de>
13163
13164 PR target/54222
13165 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13166 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13167 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13168 (*round<mode>3.libgcc): New insns for fixed-modes.
13169 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13170 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13171 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13172 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13173 implementations. Define to __builtin_avr_absFX,
13174 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13175 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13176 __builtin_avr_countlsFX, respectively.
13177 * config/avr/avr-c.c (target.h): Include it.
13178 (enum avr_builtin_id): New enum.
13179 (avr_resolve_overloaded_builtin): New static function.
13180 (avr_register_target_pragmas): Use it to set
13181 targetm.resolve_overloaded_builtin.
13182 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13183 tree nodes used by DEF_BUILTIN.
13184 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13185 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13186 <AVR_BUILTIN_xxBITS>: Same.
13187
661bc682
RB
131882013-02-08 Richard Biener <rguenther@suse.de>
13189
13190 * cfgloop.c (verify_loop_structure): Properly handle
13191 a loop exiting to another loop header.
13192 * ira-int.h (ira_loops): Remove.
13193 * ira.c (ira_loops): Remove.
13194 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13195 (do_reload): Use loop_optimizer_finalize.
13196 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13197 number_of_loops to access the loop tree.
13198 (more_one_region_p): Likewise.
13199 (finish_loop_tree_nodes): Likewise.
13200 (rebuild_regno_allocno_maps): Likewise.
13201 (mark_loops_for_removal): Likewise.
13202 (mark_all_loops_for_removal): Likewise.
13203 (remove_unnecessary_regions): Likewise.
13204 (ira_build): Likewise.
13205 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13206
0d5049b2
RB
132072013-02-08 Richard Biener <rguenther@suse.de>
13208
13209 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13210 * ipa-pure-const.c (analyze_function): Avoid calling
13211 mark_irreducible_loops twice.
8e10366f 13212 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 13213
499f32e8
DM
132142013-02-07 David S. Miller <davem@davemloft.net>
13215
13216 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13217 on 'reg'.
13218 * var-tracking.c (vt_add_function_parameter): Test the presence of
13219 HAVE_window_save properly and do not remap argument registers when
13220 we have a leaf function.
13221
6edc3e32
UB
132222013-02-07 Uros Bizjak <ubizjak@gmail.com>
13223
13224 PR bootstrap/56227
13225 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13226 instead of "ll".
13227 * config/i386/i386.c (ix86_print_operand): Ditto.
13228
5306401f
VM
132292013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13230
6edc3e32 13231 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 13232
027ece11
VM
132332013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13234
13235 PR rtl-optimization/56225
13236 * lra-constraints.c (process_alt_operands): Check that reload hard
13237 reg can hold value for strict_low_part.
13238
f980dfdb
JJ
132392013-02-07 Jakub Jelinek <jakub@redhat.com>
13240
13241 PR debug/56154
13242 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13243 dwarf2out_end_function.
13244 (in_first_function_p, maybe_at_text_label_p,
13245 first_loclabel_num_not_at_text_label): New variables.
13246 (dwarf2out_var_location): In the first function find out
6edc3e32 13247 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
13248 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13249 functions.
13250
73dd3123
EB
132512013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13252
13253 PR rtl-optimization/56178
13254 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13255 SUBREG of a register. Tidy up related block of code.
13256 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13257 note if the source is a register or a SUBREG of a register.
13258
e3936f47
JJ
132592013-02-07 Jakub Jelinek <jakub@redhat.com>
13260
13261 PR target/56228
13262 * config/rs6000/rs6000.md (ptrm): New mode attr.
13263 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13264 call_value_indirect_aix<pttrsize>,
13265 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13266 m in constraints.
13267
d96d674b
MH
132682013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13269
13270 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13271 if -bnortl. Convert to strcmp and strncmp.
13272
921f2dee
AM
132732013-02-07 Alan Modra <amodra@gmail.com>
13274
13275 PR target/54009
13276 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13277 addresses won't wrap when offsetting.
13278 (rs6000_secondary_reload): Provide secondary reloads needed for
13279 wrapping LO_SUM addresses.
13280
d09c7dba
TS
132812013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13282
13283 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13284 MACH, just __MACH__.
13285
a44bbd48
RB
132862013-02-06 Richard Biener <rguenther@suse.de>
13287
13288 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13289 instead of calling fix_loop_structure.
13290
6d840d99
JJ
132912013-02-06 Jakub Jelinek <jakub@redhat.com>
13292
13293 PR middle-end/56217
13294 * omp-low.c (use_pointer_for_field): Return false if
13295 lower_send_shared_vars doesn't generate any copy-out code.
13296
0f33baa9
TV
132972013-02-06 Tom de Vries <tom@codesourcery.com>
13298
13299 PR rtl-optimization/56131
13300 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13301 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13302 of the label is NULL. Add comment.
13303
11f1e3ab
JJ
133042013-02-05 Jakub Jelinek <jakub@redhat.com>
13305
31502f9f
JJ
13306 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13307
a74db9bd
JJ
13308 PR sanitizer/55374
13309 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13310 (STATIC_LIBTSAN_LIBS): Likewise.
13311 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13312 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13313 is defined, don't add anything else beyond that.
13314 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13315 (LINK_COMMAND_SPEC): Use them.
13316
11f1e3ab
JJ
13317 PR tree-optimization/56205
13318 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13319 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13320 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13321
14ac6aa2
RB
133222013-02-05 Richard Biener <rguenther@suse.de>
13323
13324 PR tree-optimization/53342
13325 PR tree-optimization/53185
13326 * tree-vectorizer.h (vect_check_strided_load): Remove.
13327 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13328 not disallow peeling for vectorized strided loads.
13329 (vect_check_strided_load): Make static and simplify.
13330 (vect_analyze_data_refs): Adjust.
13331 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13332 correctly when vectorizing strided loads.
13333
6f22445a
RB
133342013-02-05 Richard Biener <rguenther@suse.de>
13335
13336 * doc/install.texi: Refer to ISL, not PPL.
13337
39f9719e
JH
133382013-02-05 Jan Hubicka <jh@suse.cz>
13339
ec4224ac
JH
13340 PR tree-optimization/55789
13341 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13342
133432013-02-05 Jan Hubicka <jh@suse.cz>
13344
13345 PR tree-optimization/55789
39f9719e
JH
13346 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13347 the dead call anyway.
13348
956d3b33
EB
133492013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13350
13351 PR sanitizer/55374
13352 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13353
133542013-02-04 Alexander Potapenko <glider@google.com>
13355 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
13356 Jakub Jelinek <jakub@redhat.com>
13357
13358 PR sanitizer/55617
13359 * config/darwin.c (sort_ctor_records): Stabilized qsort
13360 on constructor priority by using original position.
13361 (finalize_ctors): New routine to sort constructors by
13362 priority before use in assemble_integer.
13363 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13364
7ac3af38
JJ
133652013-02-04 Jakub Jelinek <jakub@redhat.com>
13366
13367 PR libstdc++/54314
13368 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13369 about visibility on artificial decls.
13370 * config/sol2.c (solaris_assemble_visibility): Likewise.
13371
152689dc
KT
133722013-02-04 Kai Tietz <ktietz@redhat.com>
13373
13374 PR target/56186
13375 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13376 argument and improve checking of return-argument types for 16-byte
13377 modes.
13378 (ix86_function_value_1): Add additional valtype argument on call
13379 of function_value_64.
13380 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13381 handling infunction_value_64 function.
13382
2b5987b5
MGD
133832013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13384
7ac3af38 13385 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 13386
14597080
RB
133872013-02-04 Richard Biener <rguenther@suse.de>
13388
13389 PR tree-optimization/56188
13390 * tree-ssa-structalias.c (label_visit): Consider case with
13391 initially non-empty points-to set.
13392 (perform_var_substitution): Dump node mapping and clean up.
13393
ed73881e
RG
133942013-02-04 Richard Guenther <rguenther@suse.de>
13395
13396 PR lto/56168
13397 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13398 node prevail as last resort.
13399 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 13400 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 13401
139a0707
RB
134022013-02-04 Richard Biener <rguenther@suse.de>
13403
13404 PR tree-optimization/56113
13405 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13406 Merge into ...
13407 (equiv_class_lookup_or_add): ... this.
13408 (label_visit): Adjust and fix error in previous patch.
13409 (perform_var_substitution): Adjust.
13410
50fe8924
OE
134112013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13412
13413 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13414 * config/sh/sh4-300.md: Likewise.
13415 * config/sh/sh4a.md: Likewise.
13416 * config/sh/constraints.md: Likewise.
13417 * config/sh/sh.md: Likewise.
13418 * config/sh/netbsd-elf.h: Likewise.
13419 * config/sh/predicates.md: Likewise.
13420 * config/sh/sh-protos.h: Likewise.
13421 * config/sh/ushmedia.h: Likewise.
13422 * config/sh/linux.h: Likewise.
13423 * config/sh/sh.c: Likewise.
13424 * config/sh/superh.h: Likewise.
13425 * config/sh/elf.h: Likewise.
13426 * config/sh/sh4.md: Likewise.
13427 * config/sh/sh.h: Likewise.
13428
1a04ac2b
JDA
134292013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13430
13431 * config/pa/constraints.md: Adjust unused letters. Change "T"
13432 constraint to match_test floating_point_store_memory_operand().
13433 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13434 (base14_operand): New.
13435 (floating_point_store_memory_operand): New.
13436 (integer_store_memory_operand): Revise to use base14_operand and
13437 reg_plus_base_memory_operand.
13438 (move_dest_operand): Allow symbolic_memory_operands.
13439 (symbolic_memory_operand): Check for LO_SOM.
13440 (symbolic_operand): Change default case to break.
13441 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13442 CONST_DOUBLE values to be reloaded by putting them into memory when
13443 the destination is a floating point register.
13444 (movdf): Remove code to handle CONST_DOUBLE.
13445 (movsf): Likewise.
13446 (reload_indf_r1): New.
13447 (reload_insf_r1): New.
13448 Consistently use "Q" and "T" constraints with integer and floating
13449 point move instructions, respectively.
13450 (movdi): Remove FAIL.
13451 Change predicate for source operand unamed DImode move from
13452 general_operand to move_src_operand.
13453 (umulsidi3): Change predicate for destination operand to
13454 register_operand.
13455 Likewise for similar unamed patterns.
13456 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13457 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13458 (hppa_legitimize_address): Simplify mask calculation.
13459 (pa_emit_move_sequence): Revised handling of secondary reloads from
13460 REG+D addresses for floating point loads and stores. Directly handle
13461 loading CONST0_RTX (mode) to a floating point register.
13462 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13463 to floating point registers. Don't restrict secondary reloads to
13464 floating point registers to integer modes. Revise some comments and
13465 cleanup some code.
13466 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13467 (pa_legitimate_address_p): New.
13468 (pa_legitimize_reload_address): New.
13469 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13470 (STRICT_REG_OK_FOR_BASE_P): New.
13471 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13472 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13473
3bf65591
DE
134742013-02-03 David Edelsohn <dje.gcc@gmail.com>
13475 Andrew Dixie <andrewd@gentrack.com>
13476
13477 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13478 flag set.
13479
c0a8a3e6
RS
134802013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13481
13482 * expmed.c (extract_bit_field_1): Pass the full width of the
13483 structure to get_best_reg_extraction_insn.
13484
99113dff
DE
134852013-02-01 David Edelsohn <dje.gcc@gmail.com>
13486
13487 PR target/54601
13488 * configure.ac (use_cxa_atexit): Add AIX.
13489 * configure: Regenerate.
13490
13491 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13492
ddd84654
JJ
134932013-02-01 Jakub Jelinek <jakub@redhat.com>
13494
13495 PR debug/54793
13496 * final.c (need_profile_function): New variable.
13497 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13498 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13499 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13500 notes, targetm.asm_out.function_prologue doesn't emit anything,
13501 HAVE_prologue and profiler should be emitted before prologue,
13502 set need_profile_function instead of emitting it.
13503 (final_scan_insn): If need_profile_function, emit
13504 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13505 NOTE_INSN_FUNCTION_BEG note.
13506
135072013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
13508
13509 * config/rs6000/rs6000.md (smulditi3): New.
13510 (umulditi3): New.
13511
ff2a9d88
RH
13512 * config/alpha/alpha.md (umulditi3): New.
13513
14d52b90
DE
135142013-02-01 David Edelsohn <dje.gcc@gmail.com>
13515
13516 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13517 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13518
8c7ca45c
RB
135192013-02-01 Richard Biener <rguenther@suse.de>
13520
13521 PR tree-optimization/56113
13522 * tree-ssa-structalias.c (label_visit): Reduce work for
13523 single-predecessor nodes.
13524
9f419393
EB
135252013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13526
13527 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13528 range isn't testing for zero.
13529
c5f4be84
SB
135302013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13531
13532 PR middle-end/56113
13533 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13534
dbdbd982
NC
135352013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13536 Nick Clifton <nickc@redhat.com>
13537
13538 * config/v850/constraints.md (Q): Define as a memory constraint.
13539 * config/v850/predicates.md (label_ref_operand): New predicate.
13540 (e3v5_shift_operand): New predicate.
13541 (ior_operator): New predicate.
13542 * config/v850/t-v850: Add e3v5 multilib.
13543 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13544 (v850_gen_movdi): Prototype.
13545 * config/v850/v850.c: Add support for e3v5 architecture.
13546 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13547 TARGET_V850E_UP.
13548 (construct_save_jarl): Add e3v5 long JARL support.
13549 (v850_adjust_insn_length): New function. Adjust length of call
13550 insns when using e3v5 instructions.
13551 (v850_gen_movdi): New function: Generate instructions to move a
13552 DImode value.
13553 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13554 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13555 (TARGET_USE_FPU): Enable for e3v5.
13556 (CONST_OK_FOR_W): New macro.
13557 (ADJUST_INSN_LENGTH): Define.
13558 * config/v850/v850.md (UNSPEC_LOOP): Define.
13559 (attr cpu): Add v850e3v5.
13560 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13561 (movdi): New pattern.
13562 (movdi_internal): New pattern.
13563 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13564 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13565 (cstoresf4): Likewise.
13566 (cstoredf4): Likewise.
13567 (insv): New pattern.
13568 (rotlso3_a): New pattern.
13569 (rotlsi3_b): New pattern
13570 (rotlsi3_v850e3v5): New pattern.
13571 (doloop_begin): New pattern.
13572 (fix_loop_counter): New pattern.
13573 (doloop_end): New pattern.
13574 (branch_normal): Add e3v5 long branch support.
13575 (branch_invert): Likewise.
13576 (branch_z_normal): Likewise.
13577 (branch_z_invert): Likewise.
13578 (branch_nz_normal): Likewise.
13579 (branch_nz_invert): Likewise.
13580 (call_internal_short): Add e3v5 register-indirect JARL support.
13581 (call_internal_long): Likewise.
13582 (call_value_internal_short): Likewise.
13583 (call_value_internal_long): Likewise.
13584 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13585 (mloop): New option.
13586 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 13587 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 13588
73861a41
PK
135892013-01-31 Paul Koning <ni1d@arrl.net>
13590
13591 PR debug/55059
13592 PR debug/54508
13593 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13594 children if parent is a class.
13595 (prune_unused_types_prune): Don't add DW_AT_declaration.
13596
e44978dc
RB
135972013-01-31 Richard Biener <rguenther@suse.de>
13598
13599 PR tree-optimization/56157
13600 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13601 match up operand with SLP child.
13602
90b10dec
JM
136032013-01-31 Jason Merrill <jason@redhat.com>
13604
04d2dadd 13605 PR debug/54410
90b10dec
JM
13606 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13607 parameters the first time.
13608 (gen_scheduled_generic_parms_dies): Check completeness here.
13609
6e616110
RB
136102013-01-31 Richard Biener <rguenther@suse.de>
13611
13612 PR middle-end/53073
13613 * common.opt (faggressive-loop-optimizations): New flag,
13614 enabled by default.
13615 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13616 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13617 infer_loop_bounds_from_undefined by it.
13618
636f59cf
RB
136192013-01-31 Richard Biener <rguenther@suse.de>
13620
13621 PR tree-optimization/56150
13622 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13623 visit virtual operands.
13624 (find_uses_to_rename_bb): Likewise.
13625
136262013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
13627
13628 PR tree-optimization/56150
13629 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13630 mixed store non-store stmts.
13631
32887460
JJ
136322013-01-30 Jakub Jelinek <jakub@redhat.com>
13633
e60e09a0
JJ
13634 PR sanitizer/55374
13635 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13636 LIBASAN_EARLY_SPEC is defined.
13637 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13638 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13639 before %o.
13640 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13641
32887460
JJ
13642 PR c++/55742
13643 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13644 invalid args instead of ICEing on it.
13645 (ix86_valid_target_attribute_tree): Return error_mark_node if
13646 ix86_valid_target_attribute_inner_p failed.
13647 (ix86_valid_target_attribute_p): Return false only if
13648 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13649 target("default") attribute.
13650 (sorted_attr_string): Change argument from const char * to tree,
13651 merge in all target attribute arguments rather than just one.
13652 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13653 instead of free. Avoid using strcat.
13654 (ix86_mangle_function_version_assembler_name): Mangle
13655 target("default") as if no target attribute is present. Adjust
13656 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13657 instead of xmalloc and XDELETEVEC instead of free.
13658 (ix86_function_versions): Don't return true if one of the decls
13659 doesn't have target attribute. If they don't and one of the decls
13660 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13661 sorted_attr_string caller. Use XDELETEVEC instead of free.
13662 (ix86_supports_function_versions): Remove.
13663 (make_name): Fix up formatting.
13664 (make_dispatcher_decl): Remove resolver_name and its initialization.
13665 Avoid leaking memory.
13666 (is_function_default_version): Return true if there is
13667 target("default") attribute rather than no target attribute at all.
13668 (make_resolver_func): Avoid leaking memory.
13669 (ix86_generate_version_dispatcher_body): Likewise.
13670 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13671 * target.def (supports_function_versions): Remove.
13672 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13673 * doc/tm.texi: Regenerated.
13674
73cca0cc
VM
136752013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13676
13677 PR rtl-optimization/56144
13678 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13679 for values with side effects.
13680
11452e7b
RB
136812013-01-30 Richard Biener <rguenther@suse.de>
13682
13683 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13684 (sparseset_pop): Likewise.
13685 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13686 to be able to use quick_push in the worker loop.
13687
01cb1ef5
MP
136882013-01-30 Marek Polacek <polacek@redhat.com>
13689
13690 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13691
e892936e
RB
136922013-01-30 Richard Biener <rguenther@suse.de>
13693
13694 PR lto/56147
6edc3e32 13695 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 13696
cc06c01d
GJL
136972013-01-30 Georg-Johann Lay <avr@gjlay.de>
13698
13699 PR tree-optimization/56064
13700 * fixed-value.c (fixed_from_double_int): New function.
13701 * fixed-value.h (fixed_from_double_int): New prototype.
13702 (const_fixed_from_double_int): New static inline function.
13703 * fold-const.c (native_interpret_fixed): New static function.
13704 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13705 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13706 (native_encode_fixed): New static function.
13707 (native_encode_expr) <FIXED_CST>: Use it.
13708 (native_interpret_int): Move double_int worker code to...
13709 * double-int.c (double_int::from_buffer): ...this new static method.
13710 * double-int.h (double_int::from_buffer): Prototype it.
13711
d394a308
RB
137122013-01-30 Richard Biener <rguenther@suse.de>
13713
13714 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13715 New pointer-map and obstack.
13716 (init_alias_vars): Allocate pointer-map and obstack.
13717 (delete_points_to_sets): Free them.
13718 (find_what_var_points_to): Cache result.
13719 (find_what_p_points_to): Adjust for changed interface of
13720 find_what_var_points_to.
13721 (compute_points_to_sets): Likewise.
13722 (ipa_pta_execute): Likewise.
13723
20804d96
RO
137242013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13725
13726 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13727 * configure: Regenerate.
13728 * config.in: Regenerate.
13729 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13730 #nobits/#progbits if supported.
13731
a7ad88a2
OE
137322013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13733
13734 PR target/56121
13735 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13736 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13737 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13738
7af79f92
GY
137392013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13740
91bfca59
OE
13741 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13742 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 13743
753bcf7b
GY
137442013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13745
91bfca59
OE
13746 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13747 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 13748
8cbc2ea8
GY
137492013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13750
91bfca59
OE
13751 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13752 declaration.
13753 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13754 * config/arm/cortex-a7.md: New bypasses using
13755 arm_mac_accumulator_is_result.
8cbc2ea8 13756
697a3325
GY
137572013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13758
91bfca59 13759 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 13760 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
13761 (cortex_a7_fpfmad): New reservation.
13762 (cortex_a7_fpmacs): Use ffmas and update required units.
13763 (cortex_a7_fpmuld): Update required units and latency.
13764 (cortex_a7_fpmacd): Likewise.
13765 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13766 (cortex_a7_neon). Likewise.
13767 (bypass) Update participating units.
697a3325 13768
29637783
GY
137692013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13770
91bfca59
OE
13771 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13772 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13773 from fmac to ffma.
13774 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13775 (vfp_fmul): Use ffmad.
13776 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13777 (cortex_r4_fmacd): Use ffmad.
13778 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13779 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13780 (cortex_a9_fmacd): Use ffmad.
13781 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13782 (cortex_a8_vfp_macd): Use ffmad.
13783 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13784 (cortex_a5_fpmacd): Use ffmad.
13785 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13786 (cortex_a15_vfp_macd): Use ffmad.
13787 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 13788
2ee8a2d5
JM
137892013-01-29 Jason Merrill <jason@redhat.com>
13790
13791 PR libstdc++/54314
13792 * varasm.c (default_assemble_visibility): Don't warn about
13793 visibility on artificial decls.
13794
78d087bc
RB
137952013-01-29 Richard Biener <rguenther@suse.de>
13796
13797 PR tree-optimization/56113
13798 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13799 the bitmap leader.
13800 (label_visit): Free duplicate bitmaps and record the leader instead.
13801 (perform_var_substitution): Adjust.
13802
83ba4d6f
RB
138032013-01-29 Richard Biener <rguenther@suse.de>
13804
13805 PR tree-optimization/55270
13806 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13807 the CFG, schedule loops for fixup.
13808
66dfe13f
NC
138092013-01-29 Nick Clifton <nickc@redhat.com>
13810
13811 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13812 SP_REG.
13813
5a579c3b
LE
138142013-01-28 Leif Ekblad <leif@rdos.net>
13815
13816 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13817 * config/i386/i386.h (TARGET_RDOS): New macro.
13818 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13819 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13820 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13821 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13822 DEFAULT_LARGE_SECTION_THRESHOLD.
13823 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13824 * config/i386/rdos.h: New file.
13825 * config/i386/rdos64.h: New file.
13826
51e44392
BS
138272013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13828
13829 PR other/54814
13830 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13831 TEST_HARD_REG_BIT.
13832
db1fb332
JJ
138332013-01-28 Jakub Jelinek <jakub@redhat.com>
13834
13835 PR rtl-optimization/56117
13836 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13837 call cselib_lookup_from_insn on the MEM before calling
13838 add_insn_mem_dependence.
13839
16917761
RB
138402013-01-28 Richard Biener <rguenther@suse.de>
13841
13842 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13843 to a stmt that didn't have one.
13844 (copy_phis_for_bb): Likewise for PHI arguments.
13845 (copy_debug_stmt): Likewise for debug stmts.
13846
b9fc0497
RB
138472013-01-28 Richard Biener <rguenther@suse.de>
13848
13849 PR tree-optimization/56034
6edc3e32 13850 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
13851 (partition_builtin_p): Adjust.
13852 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13853 it is the last partition.
13854 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13855 up the vertex for the definition.
13856 (classify_partition): Classify whether a partition is a
13857 PKIND_REDUCTION, thus has uses outside of the loop.
13858 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13859 Merge all PKIND_REDUCTION partitions into the last partition.
13860 (tree_loop_distribution): Seed partitions from reductions as well.
13861
aa710d25
JJ
138622013-01-28 Jakub Jelinek <jakub@redhat.com>
13863
0bfbca58
JJ
13864 PR tree-optimization/56125
13865 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13866 pow(x,c) into sqrt(x) * powi(x, n/2) or
13867 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13868 optimizing for size.
13869 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13870 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13871 integer.
13872
aa710d25
JJ
13873 PR tree-optimization/56094
13874 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13875 to UNKNOWN_LOCATION while gimplifying expr.
13876
77dc5297
UB
138772013-01-27 Uros Bizjak <ubizjak@gmail.com>
13878
13879 PR target/56114
13880 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13881 operand 0 in movabs insn template for -masm=intel asm alternative.
13882 (*movabs<mode>_2): Ditto for operand 1.
13883
0bfbca58 138842013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
13885
13886 PR target/54663
13887 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13888 of microblaze-c.o
13889
0bfbca58 138902013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
13891
13892 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13893 tm_file.
13894
0bfbca58 138952013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
13896
13897 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13898 Undef to avoid warning.
13899
478f60f9
MH
139002013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13901
13902 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13903 * configure: Regenerate.
13904
d7fa6ee2
JJ
139052013-01-25 Jakub Jelinek <jakub@redhat.com>
13906
13907 PR tree-optimization/56098
13908 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13909 for stmts with volatile ops.
13910 (cond_store_replacement): Don't optimize if assign has volatile ops.
13911 (cond_if_else_store_replacement_1): Don't optimize if either
13912 then_assign or else_assign have volatile ops.
13913 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13914 volatile ops.
13915
f8fe87bd
GJL
139162013-01-25 Georg-Johann Lay <avr@gjlay.de>
13917
13918 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13919
28398d0d
GJL
139202013-01-25 Georg-Johann Lay <avr@gjlay.de>
13921
13922 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13923 missing ':' in asm example.
13924
b7d7d917
TB
139252013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13926
13927 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13928 entries into lane and laneq entries.
77dc5297
UB
13929 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13930 Remove AdvSIMD scalar modes.
b7d7d917
TB
13931 (aarch64_sq<r>dmulh_laneq<mode>): New.
13932 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13933 modes.
13934 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13935 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13936 * config/aarch64/iterators.md (VCOND): New.
13937 (VCONQ): New.
13938
556f9906
GJL
139392013-01-25 Georg-Johann Lay <avr@gjlay.de>
13940
13941 PR target/54222
13942 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13943 Add NULL LIBNAME argument to existing definitions.
13944 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13945 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13946 * config/avr/avr.c (DEF_BUILTIN): Same.
13947 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13948 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13949 implementation is available (DECL_ASSEMBLER_NAME is set).
13950 (avr_fold_absfx): New static function.
13951 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13952 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13953 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13954 AVR_BUILTIN_ABSLLK.
13955 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13956 (abshk, absk, abslk, absllk): Provide as static inline functions.
13957
1f546bbb
MP
139582013-01-25 Marek Polacek <polacek@redhat.com>
13959
13960 PR tree-optimization/56035
13961 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13962
7e184bd7
UB
139632012-01-24 Uros Bizjak <ubizjak@gmail.com>
13964
13965 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13966 (*movtf_internal_rex64): Add (!o,C) alternative
13967 (*movxf_internal_rex64): Ditto.
13968 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13969
f5ba49ac
SM
139702013-01-24 Shenghou Ma <minux.ma@gmail.com>
13971
13972 * doc/invoke.texi: fix typo.
13973 * doc/objc.texi: fix typo.
13974
a6343728
RS
139752013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13976
13977 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13978 for the first two alternatives.
13979
cd030c07
DN
139802013-01-24 Diego Novillo <dnovillo@google.com>
13981
77dc5297 13982 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
13983 (ggc-zone.o): Remove.
13984 * configure.ac: Remove option --with-gc.
13985 * configure: Re-generate.
13986 * doc/install.texi: Remove documentation for --with-gc.
13987 * gengtype.c (write_enum_defn): Remove. Update all users.
13988 (write_Types_process_field): Remove generation of gt_e_* argument.
13989 (output_type_enum): Remove. Update all users.
13990 (write_enum_defn): Remove. Update all users.
13991 (enum alloc_zone): Remove. Update all users.
77dc5297 13992 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
13993 * ggc-common.c (ggc_splay_alloc): Remove first argument.
13994 Update all callers.
13995 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 13996 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
13997 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13998 Update all users.
aaf1e810 13999 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
14000 (struct alloc_zone): Remove.
14001 (ggc_internal_alloc_zone_stat): Remove.
14002 (ggc_internal_cleared_alloc_zone_stat): Remove.
14003 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
14004 (ggc_pch_count_object): Remove last argument. Update all users.
14005 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
14006 (struct alloc_zone): Remove.
14007 * ggc-zone.c: Remove.
77dc5297 14008 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
14009 (struct alloc_zone): Remove.
14010 (ggc_alloc_typed_stat): Remove.
14011 (ggc_alloc_typed): Remove.
14012 (ggc_splay_alloc): Remove first argument.
14013 (rtl_zone): Remove. Update all users.
14014 (tree_zone): Remove. Update all users.
14015 (tree_id_zone): Remove. Update all users.
14016 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 14017 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 14018 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 14019 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 14020
a861ffa4
GJL
140212013-01-24 Georg-Johann Lay <avr@gjlay.de>
14022
14023 * config/avr/avr.c (avr_out_fract): Make register numbers that
14024 might be outside of source operand signed.
14025
593c0ddd
UB
140262013-01-24 Uros Bizjak <ubizjak@gmail.com>
14027
14028 * config/i386/constraints.md (Yf): New constraint.
14029 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14030 of f constraint to conditionaly disable x87 register preferences.
14031 (*movdf_internal): Ditto.
14032 (*movsf_internal): Ditto.
14033
e86c0101
SB
140342013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14035
14036 PR inline-asm/55934
14037 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14038 that have operands with impossible constraints.
14039 Add a FIXME for a speed-up opportunity.
14040 * lra-constraints.c (process_alt_operands): Verify that a class
14041 selected from constraints on asms is valid for the operand mode.
14042 (curr_insn_transform): Remove incorrect comment.
14043
f6fee35f
DE
140442013-01-23 David Edelsohn <dje.gcc@gmail.com>
14045
14046 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14047 TOC operand is a valid symbol ref in the constant pool.
14048
140492013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 14050
aaf1e810 14051 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 14052
dc62d7d1
GJL
140532013-01-23 Georg-Johann Lay <avr@gjlay.de>
14054
14055 PR target/54222
14056 * config/avr/stdfix.h: New file.
14057 * t-avr (stdfix-gcc.h): New rule to build it.
14058 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14059
2660d12d
KS
140602013-01-23 Kostya Serebryany <kcc@google.com>
14061
77dc5297
UB
14062 * config/darwin.h: remove dependency on
14063 CoreFoundation (asan on Mac OS).
2660d12d 14064
a70418fc
JJ
140652013-01-23 Jakub Jelinek <jakub@redhat.com>
14066
14067 PR target/49069
14068 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14069 instead of cmpdi_operand for first comparison operand.
14070 Don't assert that comparison operands aren't both constants.
14071
47876a2a
JW
140722013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14073
14074 * doc/install.texi (Downloading the Source): Update references to
14075 downloading separate components.
14076
140772013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
14078
14079 * doc/extend.texi (__int128): Improve grammar.
14080
47876a2a 140812013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
14082
14083 PR target/56028
14084 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14085 alternative to (o,r).
14086 (*movdi_internal_rex64): Remove (!o,n) alternative.
14087 (DImode immediate->memory splitter): Remove.
14088 (DImode immediate->memory peephole2): Remove.
14089 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14090 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14091 alternative to (!o,*r).
14092 (*movtf_internal_sse): New pattern.
14093 (*movxf_internal_rex64): New pattern.
14094 (*movxf_internal): Disable for TARGET_64BIT.
14095 (*movdf_internal_rex64): Remove (!o,F) alternative.
14096
3a984f10
JJ
140972013-01-22 Jakub Jelinek <jakub@redhat.com>
14098
502498d5
JJ
14099 PR middle-end/56074
14100 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14101 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14102 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14103 stmt locations where LOCATION_LOCUS of the stmt location is
14104 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14105
3a984f10
JJ
14106 PR target/55686
14107 * config/i386/i386.md (UNSPEC_STOS): New.
14108 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14109 *strsetqi_1): Add UNSPEC_STOS.
14110
fa817f7f
PC
141112013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14112
14113 PR c++/56067
14114 * doc/invoke.texi: Remove left over -Wsynth example.
14115
8f498c1b
JJ
141162013-01-21 Jakub Jelinek <jakub@redhat.com>
14117
14118 PR tree-optimization/56051
14119 * fold-const.c (fold_binary_loc): Don't fold
14120 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14121 a narrowing conversion, or widening conversion from signed
14122 to unsigned.
14123
47876a2a 141242013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
14125
14126 PR rtl-optimization/56023
14127 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14128 dependent on debug instruction.
14129
5b9db1bc
MJ
141302013-01-21 Martin Jambor <mjambor@suse.cz>
14131
14132 PR middle-end/56022
14133 * function.c (allocate_struct_function): Call
14134 invoke_set_current_function_hook earlier.
14135
e8bb7d68
JJ
141362013-01-21 Jakub Jelinek <jakub@redhat.com>
14137
14138 * reload1.c (init_reload): Only initialize reload_obstack
14139 during the first call.
14140
616a4e32
MP
141412013-01-21 Marek Polacek <polacek@redhat.com>
14142
14143 * cfgloop.c (verify_loop_structure): Fix up grammar.
14144
4401981b
YHH
141452013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14146
14147 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14148 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14149
8e87740b
RR
141502013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14151
14152 PR target/56058
14153 * config/arm/marvell-pj4.md: Update copyright year.
14154 Fix up use of alu to alu_reg and simple_alu_imm.
14155
47876a2a 141562013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
14157
14158 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14159
89d56d79
VM
141602013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14161
14162 PR target/55433
14163 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 14164 insn for secondary memory move when memory mode should be different.
89d56d79 14165
fe603553
JDA
141662013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14167
14168 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14169 atomic_storedi_1): New patterns.
14170
01284895
VK
141712013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14172
14173 btver2 pipeline descriptions.
14174 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14175 descriptions.
14176 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 14177 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
14178 type attributes.
14179 * config/i386/btver2.md: New file describing btver2 pipelines.
14180
5630e3e1
JL
141812013-01-19 Andrew Pinski <apinski@cavium.com>
14182
14183 PR tree-optimization/52631
14184 * tree-ssa-sccvn (visit_use): Before looking up the original
14185 statement, try looking up the simplified expression.
14186
650ae806
AG
141872013-01-19 Anthony Green <green@moxielogic.com>
14188
14189 * config/moxie/moxie.c (moxie_expand_prologue): Set
14190 current_function_static_stack_size.
14191
e300ec2d
JJ
141922013-01-18 Jakub Jelinek <jakub@redhat.com>
14193
14194 PR tree-optimization/56029
14195 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14196 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14197
a3d7af04
SS
141982013-01-18 Sharad Singhai <singhai@google.com>
14199
14200 PR tree-optimization/55995
14201 * dumpfile.c (dump_loc): Print location only if available.
14202 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14203
66aa7879
VM
142042013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14205
14206 PR target/55433
14207 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14208 secondary memory move.
14209 (inherit_reload_reg): Use rclass instead of cl for
14210 check_secondary_memory_needed_p.
14211
3f0fee7b
JJ
142122013-01-18 Jakub Jelinek <jakub@redhat.com>
14213
14214 PR middle-end/56015
14215 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 14216 the case where writing real complex part of target modifies op1.
3f0fee7b 14217
70c67693
JG
142182013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14219
14220 * config/aarch64/aarch64-simd.md
14221 (aarch64_vcond_internal<mode>): Handle unordered cases.
14222 * config/aarch64/iterators.md (v_cmp_result): New.
14223
df8de9b3
YHH
142242013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14225 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14226
14227 * config/arm/marvell-pj4.md: New file.
14228 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14229 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14230 (generic_vfp): Likewise.
14231 * config/arm/arm-cores.def: Add marvell-pj4.
14232 * config/arm/arm-tune.md: Regenerate.
14233 * config/arm/arm-tables.opt: Regenerate.
14234 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14235 * doc/invoke.texi: Document marvell-pj4.
14236
be30c356
TB
142372013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14238
14239 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14240
0bfbca58 142412013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
14242
14243 PR debug/54114
14244 PR debug/54402
14245 PR debug/49888
14246 * var-tracking.c (negative_power_of_two_p): New.
14247 (global_get_addr_cache, local_get_addr_cache): New.
14248 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14249 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14250 heading comment.
14251 (vt_stack_offset_p): Remove.
14252 (vt_canon_true_dep): Always canonicalize loc's address.
14253 (clobber_overlapping_mems): Make sure we have a MEM.
14254 (local_get_addr_clear_given_value): New.
14255 (val_reset): Clear local cached entries.
14256 (compute_bb_dataflow): Create and release the local cache.
14257 Disable duplicate MEMs clobbering.
14258 (emit_notes_in_bb): Clobber MEMs likewise.
14259 (vt_emit_notes): Create and release the local cache.
14260 (vt_initialize, vt_finalize): Create and release the global
14261 cache, respectively.
1f6bc337 14262 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 14263
0bfbca58 142642013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
14265
14266 PR libmudflap/53359
14267 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14268 not found in the symtab.
14269
0bfbca58 142702013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 14271
c350ba53 14272 PR debug/56006
3aa03517
AO
14273 PR rtl-optimization/55547
14274 PR rtl-optimization/53827
14275 PR debug/53671
14276 PR debug/49888
14277 * alias.c (offset_overlap_p): New, factored out of...
14278 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14279 the conservative special case for symbolic constants. Don't
14280 adjust zero sizes on alignment.
14281
c664546f
JL
142822013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14283
14284 PR rtl-optimization/52573
14285 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14286 REG_UNUSED for the same register.
14287
1bd3f750
MP
142882013-01-17 Richard Biener <rguenther@suse.de>
14289 Marek Polacek <polacek@redhat.com>
14290
14291 PR rtl-optimization/55833
14292 * loop-unswitch.c (unswitch_loops): Move loop verification...
14293 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14294 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14295 Set it to true when we're removing a loop from hierarchy tree in
14296 an irreducible region.
14297 (fix_bb_placements): Adjust caller.
14298 (fix_loop_placements): Likewise.
14299
e52a8b71
GJL
143002013-01-17 Georg-Johann Lay <avr@gjlay.de>
14301
14302 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14303 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14304 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14305 Remove ID. Adjust comments.
14306 * config/avr/avr-c.c (avr_builtin_name): Remove.
14307 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14308 * config/avr/avr.c (avr_tolower): New static function.
14309 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14310 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14311 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14312 default expansion.
14313
8386a7ea
JH
143142013-01-17 Jan Hubicka <jh@suse.cz>
14315
610fb637 14316 PR tree-optimization/55273
8386a7ea
JH
14317 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14318
47876a2a 143192013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
14320
14321 PR target/55981
14322 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14323 store through atomic_store<mode>_1.
14324 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14325
8222c37e
MJ
143262013-01-17 Martin Jambor <mjambor@suse.cz>
14327
14328 PR tree-optimizations/55264
14329 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14330 for virtual methods.
14331 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14332 virtual methods before inlining is over.
14333 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14334 virtual functions.
14335 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14336 non-virtual.
14337
79f01c76
VM
143382013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14339
14340 PR rtl-optimization/56005
14341 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14342 pending reads for prefetch.
14343
d0b6bb1b
IB
143442013-01-16 Ian Bolton <ian.bolton@arm.com>
14345
aaf1e810 14346 * config/aarch64/aarch64.md
d0b6bb1b
IB
14347 (*cstoresi_neg_uxtw): New pattern.
14348 (*cmovsi_insn_uxtw): New pattern.
14349 (*<optab>si3_uxtw): New pattern.
14350 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14351 (*<optab>si3_insn_uxtw): New pattern.
14352 (*bswapsi2_uxtw): New pattern.
14353
cb9cf03b
RB
143542013-01-16 Richard Biener <rguenther@suse.de>
14355
14356 * tree-inline.c (tree_function_versioning): Remove set but
14357 never used variable.
14358
2cfc56b9
RB
143592013-01-16 Richard Biener <rguenther@suse.de>
14360
14361 PR tree-optimization/55964
14362 * tree-flow.h (rename_variables_in_loop): Remove.
14363 (rename_variables_in_bb): Likewise.
14364 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14365 (copy_loop_before): Adjust and delete update-ssa status.
14366 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 14367 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
14368 (rename_variables_in_loop): Remove.
14369 (slpeel_update_phis_for_duplicate_loop): Likewise.
14370 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14371 use available cfg machinery instead of duplicating it.
14372 Update PHI nodes and perform poor-mans SSA update here.
14373 (slpeel_tree_peel_loop_to_edge): Adjust.
14374
c25a0c60
RB
143752013-01-16 Richard Biener <rguenther@suse.de>
14376
14377 PR tree-optimization/54767
14378 PR tree-optimization/53465
14379 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14380 (vrp_visit_phi_node): For PHI arguments coming via backedges
14381 drop all symbolical range information.
14382 (execute_vrp): Compute backedges.
14383
04b535af
RB
143842013-01-16 Richard Biener <rguenther@suse.de>
14385
14386 * doc/install.texi: Update CLooG and ISL requirements to
14387 0.18.0 and 0.11.1.
14388
8b0a1e0b
CB
143892013-01-16 Christian Bruel <christian.bruel@st.com>
14390
14391 PR target/55301
14392 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14393 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14394 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14395
143962013-01-16 DJ Delorie <dj@redhat.com>
14397
14398 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14399 (UNSPECV_SP_SWITCH_E): New.
14400 (sp_switch_1): Change to an unspec.
14401 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14402 replace $r15.
14403
144042013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
14405
14406 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14407 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14408 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14409 (expand_mem_thread_fence): Ditto.
14410 (expand_mem_signal_fence): Ditto.
14411 (expand_atomic_load): Ditto.
14412 (expand_atomic_store): Ditto.
14413
0bfbca58 144142013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
14415
14416 PR rtl-optimization/55547
14417 PR rtl-optimization/53827
14418 PR debug/53671
14419 PR debug/49888
14420 * alias.c (memrefs_conflict_p): Set sizes to negative after
14421 AND adjustments.
14422
305e3ac1
JJ
144232013-01-15 Jakub Jelinek <jakub@redhat.com>
14424
14425 PR target/55940
14426 * function.c (thread_prologue_and_epilogue_insns): Always
14427 add crtl->drap_reg to set_up_by_prologue.set, even if
14428 stack_realign_drap is false.
14429
f78ac4f2
JBG
144302013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14431
14432 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14433 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14434 *call): Fix indention.
14435
a78a8cc4
TV
144362013-01-15 Tom de Vries <tom@codesourcery.com>
14437
14438 PR target/55876
14439 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14440 Update comment.
14441
0e80383f
VM
144422013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14443
305e3ac1 14444 PR rtl-optimization/55153
0e80383f
VM
14445 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14446
207b5956
MJ
144472013-01-15 Martin Jambor <mjambor@suse.cz>
14448
14449 PR tree-optimization/55920
14450 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14451 accesses as grp_to_be_debug_replaced.
14452
a7818b54
JJ
144532013-01-15 Jakub Jelinek <jakub@redhat.com>
14454
14455 PR tree-optimization/55920
14456 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14457 there is non-useless type conversion needed from debug rhs to lhs,
14458 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14459
b0fe107e
JM
144602013-01-15 Joseph Myers <joseph@codesourcery.com>
14461 Mikael Pettersson <mikpe@it.uu.se>
14462
14463 PR target/43961
14464 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14465 Thumb.
14466 (ASM_OUTPUT_CASE_LABEL): Remove.
14467 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14468 * final.c (shorten_branches): Update alignment of labels before
14469 jump tables if CASE_VECTOR_SHORTEN_MODE.
14470
34ab62ee
RB
144712013-01-15 Richard Biener <rguenther@suse.de>
14472
14473 PR bootstrap/55961
14474 * system.h: Do not include gmp.h for building host tools.
14475
783a3a05
RB
144762013-01-15 Richard Biener <rguenther@suse.de>
14477
14478 PR middle-end/55882
14479 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14480 account for bitpos when computing alignment.
14481
3a579e09
VY
144822013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14483
14484 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14485 (ix86_target_macros_internal): Likewise.
14486
14487 * config/i386/i386.c (m_CORE2I7): Removed.
14488 (m_CORE_HASWELL): New macro.
14489 (m_CORE_ALL): Likewise.
14490 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14491 (initial_ix86_arch_features): Likewise.
14492 (processor_target_table): Initializations for Core avx2.
14493 (cpu_names): New names "core-avx2".
14494 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14495 PROCESSOR_CORE_HASWELL.
14496 (ix86_issue_rate): New case.
14497 (ia32_multipass_dfa_lookahead): Likewise.
14498 (ix86_sched_init_global): Likewise.
14499
14500 * config/i386/i386.h (TARGET_HASWELL): New macro.
14501 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14502 (processor_type): New PROCESSOR_HASWELL.
14503
955f5a07
JJ
145042013-01-15 Jakub Jelinek <jakub@redhat.com>
14505
ff784829
JJ
14506 PR tree-optimization/55955
14507 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14508 *SHIFT_EXPR and *ROTATE_EXPR codes.
14509
955f5a07
JJ
14510 PR tree-optimization/48766
14511 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14512 -ftrapv disable -fwrapv.
14513
aeb8b4e9
GJL
145142013-01-14 Georg-Johann Lay <avr@gjlay.de>
14515
14516 PR target/55974
14517 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14518 etc. to 1 and not to __flash.
14519 Use LL suffix for __INT24_MAX__ with -mint8.
14520 Use ULL suffix for __UINT24_MAX__ with -mint8.
14521
1c494c6a
GJL
145222013-01-14 Georg-Johann Lay <avr@gjlay.de>
14523
14524 * config/avr/avr-arch.h
14525 (struct base_arch_s): Use typedef avr_arch_t instead.
14526 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14527 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14528 * config/avr/avr.c: Same.
14529 * config/avr/avr-devices.c: Same.
14530 * config/avr/driver-avr.c: Same.
14531 * config/avr/gen-avr-mmcu-texi.c: Same.
14532 * config/avr/avr-mcus.def: Adjust comment.
14533
a50344cb
TB
145342013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14535
88e784e6
UB
14536 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14537 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 14538
47876a2a 145392013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
14540 Andi Kleen <ak@linux.intel.com>
14541
14542 PR target/55948
14543 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14544 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14545 memmodel flag.
14546
00892272
GJL
145472013-01-14 Georg-Johann Lay <avr@gjlay.de>
14548
14549 * config/avr/avr-stdint.h: Remove trailing blanks.
14550 * config/avr/avr-log.h: Same.
14551 * config/avr/avr-arch.h: Same.
14552 * config/avr/avr-devices.c: Same.
14553 * config/avr/avr-dimode.md: Same.
14554 * config/avr/predicates.md: Same.
14555 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 14556
00892272
GJL
14557 * config/avr/avr-protos.h: Same. And:
14558 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14559 (init_cumulative_args): Rename to avr_init_cumulative_args.
14560 (expand_prologue): Rename to avr_expand_prologue.
14561 (expand_epilogue): Rename to avr_expand_epilogue.
14562 (adjust_insn_length): Rename to avr_adjust_insn_length.
14563 (notice_update_cc): Rename to avr_notice_update_cc.
14564 (final_prescan_insn): Rename to avr_final_prescan_insn.
14565 * config/avr/avr.c: Same.
14566 * config/avr/avr.h: Same.
14567 * config/avr/avr.md: Remove trailing blanks.
14568 (prologue): Use avr_expand_prologue.
14569 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14570
7bb01996
RB
145712013-01-14 Richard Biener <rguenther@suse.de>
14572
14573 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14574 verify_location, collect_subblocks): New functions.
14575 (verify_gimple_in_cfg): Verify that locations only reference
14576 BLOCKs in the functions BLOCK tree.
14577
2724573f
RB
145782013-01-14 Richard Biener <rguenther@suse.de>
14579
14580 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14581 PHI argument.
14582 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14583 unshare reference.
14584 (insert_out_of_ssa_copy_on_edge): Likewise.
14585 (rewrite_close_phi_out_of_ssa): Likewise.
14586 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14587 debug expressions.
14588 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14589 propagated constants.
14590 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14591 can not be shared.
14592
9a0bbab6
GJL
145932013-01-14 Georg-Johann Lay <avr@gjlay.de>
14594
14595 * config/avr/avr-modes.def: Add GPL copyright notice.
14596
45805f17
UB
145972013-01-13 Uros Bizjak <ubizjak@gmail.com>
14598
14599 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14600 MEMMODEL_MASK to determine memory model.
14601 (atomic_store<mode>): Ditto from operands[2].
14602 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14603
9d60be38
JJ
146042013-01-13 Jakub Jelinek <jakub@redhat.com>
14605
14606 PR fortran/55935
45805f17 14607 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
14608 (fold_gimple_assign): Don't call unshare_expr here.
14609 (fold_ctor_reference): Call unshare_expr.
14610
e7f49d92
TG
146112013-01-13 Terry Guo <terry.guo@arm.com>
14612
aaf1e810
EB
14613 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14614 * doc/fragments.texi: Document MULTILIB_REUSE.
14615 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 14616 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 14617 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
14618 (tmpmultilib4): Ditto.
14619 (multilib_reuse): New multilib argument.
14620
fbd03a27
RS
146212013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14622
14623 * Makefile.in: Update copyright.
14624
b3681f13
TV
146252013-01-12 Tom de Vries <tom@codesourcery.com>
14626
14627 PR middle-end/55890
14628 * calls.c (expand_call): Check if arg_nr is valid.
14629
3f287e4b
MM
146302013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14631
14632 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14633 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
14634 documentation. Add missing '__' in front of
14635 __builtin_ia32_packssdw256.
3f287e4b 14636
1abcd5eb
AK
146372013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14638
14639 PR target/55719
14640 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14641 NO_REGS for larl operands.
14642 (s390_reload_larl_operand): Use s390_load_address instead of
14643 emit_move_insn.
14644
980d0812
RB
146452013-01-11 Richard Biener <rguenther@suse.de>
14646
14647 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14648 (verify_node_sharing): ... here.
14649 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14650
7cb9fd07
EB
146512013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14652
14653 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14654 Substitute TREECHECKING.
14655 * configure: Regenerate.
14656 * Makefile.in (TREECHECKING): New.
14657
47876a2a 146582013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
14659
14660 PR tree-optimization/44061
14661 * tree-vrp.c (extract_range_basic): Compute zero as
14662 value-range for __builtin_constant_p of function parameters.
14663
d1e082c2
RS
146642013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14665
45805f17 14666 Update copyright years.
d1e082c2 14667
f85021b0
VM
146682013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14669
9d60be38 14670 PR rtl-optimization/55672
0160442c
VM
14671 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14672 const to be eliminable.
f85021b0 14673
7a8b1ec4
DE
146742013-01-10 David Edelsohn <dje.gcc@gmail.com>
14675
14676 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14677 * configure: Regenerate.
14678
ad2e5b71
RB
146792013-01-10 Richard Biener <rguenther@suse.de>
14680
ddf9322d 14681 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 14682
ffc5b2bb
RB
146832013-01-10 Richard Biener <rguenther@suse.de>
14684
14685 PR bootstrap/55792
14686 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14687 locations for virtual PHI arguments.
14688 (rewrite_update_phi_arguments): Likewise.
14689
e1f674e4
JS
146902013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14691
14692 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14693 on to assembler.
14694
a57fc743
JJ
146952013-01-10 Jakub Jelinek <jakub@redhat.com>
14696
14697 PR tree-optimization/55921
14698 * tree-complex.c (expand_complex_asm): New function.
14699 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14700
0ff4390d
AK
147012013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14702
14703 PR target/55718
14704 * config/s390/s390.c (s390_symref_operand_p)
14705 (s390_loadrelative_operand_p): Merge the two functions.
14706 (s390_check_qrst_address, print_operand_address): Add parameters
14707 to s390_loadrelative_operand_p invokation.
14708 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14709 (s390_reload_larl_operand, s390_secondary_reload): Use
14710 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14711 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14712
6f557e0e
MS
147132013-01-09 Mike Stump <mikestump@comcast.net>
14714
14715 * dse.c (record_store): Remove unnecessary assert.
14716
7770c9e9
JH
147172013-01-09 Jan Hubicka <jh@suse.cz>
14718
14719 PR tree-optimization/55569
14720 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14721 * cfgloop.h (scale_loop_profile): Likewise.
14722
a19b1432
JH
147232013-01-09 Jan Hubicka <jh@suse.cz>
14724
14725 PR lto/45375
ddf9322d
UB
14726 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14727 functions.
a19b1432
JH
14728 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14729
9a002da8
RS
147302013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14731
14732 PR middle-end/55114
14733 * expr.h (maybe_emit_group_store): Declare.
14734 * expr.c (maybe_emit_group_store): New function.
14735 * builtins.c (expand_builtin_int_roundingfn): Call it.
14736 (expand_builtin_int_roundingfn_2): Likewise.
14737
511dcace
VM
147382013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14739
e1f2b729 14740 PR rtl-optimization/55829
511dcace
VM
14741 * lra-constraints.c (match_reload): Add code for absent output.
14742 (curr_insn_transform): Add code for reloads of matched inputs
14743 without output.
14744
7b0fe4f4
UB
147452013-01-09 Uros Bizjak <ubizjak@gmail.com>
14746
14747 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14748 attribute of movddup insn to DF.
14749 (*vec_interleave_lowv2df): Ditto.
14750 (vec_dupv2df): Ditto.
14751
870ca331
JH
147522013-01-09 Jan Hubicka <jh@suse.cz>
14753
14754 PR tree-optimiation/55875
14755 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14756 EVERY_ITERATION parameter.
7b0fe4f4 14757 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
14758 (idx_infer_loop_bounds): Similarly here.
14759 (n_of_executions_at_most): Simplify
14760 to only test for cases where statement is dominated by the
7b0fe4f4 14761 particular bound; handle correctly the "postdominance" test.
870ca331
JH
14762 (scev_probably_wraps_p): Use max loop iterations info
14763 as a global bound first.
14764
6f575fe4 147652013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
14766 Nick Clifton <nickc@redhat.com>
14767
14768 * config/v850/v850.md (cbranchsf4): New pattern.
14769 (cstoresf4): New pattern.
14770 (cbranchdf4): New pattern.
14771 (cstoredf4): New pattern.
14772 (movsicc): Disallow floating point comparisons.
14773 (cmpsf_le_insn): Fix order of operators.
14774 (cmpsf_lt_insn): Likewise.
14775 (cmpsf_eq_insn): Likewise.
14776 (cmpdf_le_insn): Likewise.
14777 (cmpdf_lt_insn): Likewise.
14778 (cmpdf_eq_insn): Likewise.
14779 (cmpsf_ge_insn): Use LE comparison.
14780 (cmpdf_ge_insn): Likewise.
14781 (cmpsf_gt_insn): Use LT comparison.
14782 (cmpdf_gt_insn): Likewise.
14783 (cmpsf_ne_insn): Delete pattern.
14784 (cmpdf_ne_insn): Delete pattern.
14785 * config/v850/v850.c (v850_gen_float_compare): Use
14786 gen_cmpdf_eq_insn for NE comparison.
14787 (v850_float_z_comparison_operator)
14788 (v850_float_nz_comparison_operator): Move from here ...
14789 * config/v850/predicates.md: ... to here. Move GT and GE
14790 comparisons into v850_float_z_comparison_operator.
14791 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14792 Delete prototype.
14793 (v850_float_nz_comparison_operator): Likewise.
14794
f0d54148
JDA
147952013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14796
14797 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14798 with calls to gen_insvsi/gen_insvdi.
14799
8f01beca
VK
148002013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14801
14802 * config/i386/i386.c (initial_ix86_tune_features): Set up
14803 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14804
2aa579ad
JJ
148052013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14806 Jakub Jelinek <jakub@redhat.com>
14807
14808 PR tree-optimization/48189
14809 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14810 If nitercst is 0, don't predict the exit edge.
14811
6edc3e32 148122013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
14813
14814 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14815 in asm_fprintf with reg_names.
14816 (aarch64_print_operand_address): Likewise.
14817 (aarch64_return_addr): Likewise.
14818 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14819
f6f94d94
JDA
148202013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14821
14822 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14823 (INT_U6_BITS): Likewise.
14824 * config/pa/predicates.md (uint6_operand): New predicate.
14825 (shift5_operand, shift6_operand): Likewise.
14826 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14827 arith32_operand.
14828 (lshrdi3): Use shift6_operand.
14829 (shrpsi4, shrpdi4): New insn patterns.
14830 (extzv): Delete expander.
14831 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14832 predicates in unamed zero extract patterns. Tighten common constraint.
14833 (extv): Delete expander.
14834 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14835 predicates in unamed sign extract patterns. Tighten common constraint.
14836 (insv): Delete expander.
14837 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14838 predicates in unamed insert patterns. Tighten common constraint.
14839 Change uint32_operand predicate to uint6_operand predicate in unamed
14840 DImode pattern to insert constant values of type 1...1xxxx.
14841
36b72910
JH
148422013-01-04 Jan Hubicka <jh@suse.cz>
14843
14844 PR tree-optimization/55823
7b0fe4f4
UB
14845 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14846 issue.
36b72910 14847
47876a2a 148482013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
14849 Uros Bizjak <ubizjak@gmail.com>
14850
14851 PR rtl-optimization/55845
14852 * df-problems.c (can_move_insns_across): Stop scanning at
14853 volatile_insn_p source instruction or give up if
14854 across_from .. across_to range contains any volatile_insn_p
14855 instructions.
14856
4369c11e
TB
148572013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14858
7b0fe4f4
UB
14859 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14860 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14861 Declare.
4369c11e 14862 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 14863 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 14864
aeb7e7c1
JJ
148652013-01-08 Jakub Jelinek <jakub@redhat.com>
14866
14867 PR fortran/55341
14868 * asan.c (asan_clear_shadow): New function.
14869 (asan_emit_stack_protection): Use it.
14870
a02ad1aa
TB
148712013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14872
14873 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14874 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14875 with tab instead of space.
14876
f90d87f5
NC
148772013-01-08 Nick Clifton <nickc@redhat.com>
14878
14879 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14880 register bank 0 at the start of an interrupt handler.
83ffd964
NC
14881 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14882 MDBH registers.
f90d87f5 14883
385eb93d
JG
148842013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14885
14886 * config/aarch64/aarch64-simd.md
14887 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14888 (aarch64_simd_bsl): Likewise.
14889 (aarch64_vcond_internal<mode>): Likewise.
14890 (vcond<mode><mode>): Likewise.
14891 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14892 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14893
4dcd1054
JG
148942013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14895
14896 * config/aarch64/aarch64-builtins.c
14897 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14898
4267a4a6
MJ
148992013-01-08 Martin Jambor <mjambor@suse.cz>
14900
14901 PR debug/55579
14902 * tree-sra.c (analyze_access_subtree): Return true also after
14903 potentially creating a debug-only replacement.
14904
5f4e6de3
JJ
149052013-01-08 Jakub Jelinek <jakub@redhat.com>
14906
3138f224
JJ
14907 PR middle-end/55890
14908 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14909
5f4e6de3
JJ
14910 PR tree-optimization/54120
14911 * tree-vrp.c (range_fits_type_p): Don't allow
14912 src_precision < precision from signed vr to unsigned_p
14913 if vr->min or vr->max is negative.
14914 (simplify_float_conversion_using_ranges): Test can_float_p
14915 against CODE_FOR_nothing.
14916
f3ef18ff
JJ
149172013-01-08 Jakub Jelinek <jakub@redhat.com>
14918 Richard Biener <rguenther@suse.de>
14919
14920 PR middle-end/55851
14921 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14922 types instead of just INTEGER_TYPE types.
14923
25c210f9
MK
149242013-01-07 Mark Kettenis <kettenis@openbsd.org>
14925
14926 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14927 TF_SIZE): Define.
f90d87f5 14928
81826a7b
SE
149292013-01-07 Steve Ellcey <sellcey@mips.com>
14930
14931 PR target/42661
14932 * config/mips/mips.opt: Change mad to mmad to match documentation.
14933
35678514
GJL
149342013-01-07 Georg-Johann Lay <avr@gjlay.de>
14935
14936 PR target/55897
14937 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14938 .progmemx.data now.
14939
e5669488
GJL
149402013-01-07 Georg-Johann Lay <avr@gjlay.de>
14941
14942 PR target/55897
14943 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14944 (avr_addrspace_t): Add .section_name field.
14945 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14946 array size.
14947 (avr_addrspace): Same. Initialize .section_name. Remove last
14948 NULL entry. Put __memx into .progmemx.data.
14949 (progmem_section_prefix): Remove.
14950 (avr_asm_init_sections): No need to initialize progmem_section.
14951 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14952 section name prefix.
14953 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14954 retrieve the progmem section.
14955 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14956 boundary to run over avr_addrspace[].
14957 (avr_register_target_pragmas): Ditto.
14958
656e6f37
JJ
149592013-01-06 Jakub Jelinek <jakub@redhat.com>
14960
14961 * varasm.c (output_constant_def_contents): For asan_protect_global
14962 protected strings, adjust DECL_ALIGN if needed, before testing for
14963 anchored symbols.
14964 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14965 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
14966 normal decls.
14967 (output_object_block): For asan protected decls, emit asan padding
14968 after their contents.
14969 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14970 (asan_finish_file): Test it here instead.
14971
6edc3e32
UB
149722013-01-07 Nick Clifton <nickc@redhat.com>
14973 Matthias Klose <doko@debian.org>
14974 Doug Kwan <dougkwan@google.com>
14975 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
14976
14977 PR driver/55470
14978 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14979
14980 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14981
14982 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14983
7b0fe4f4 14984 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
14985
14986 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14987
2a095093
GJL
149882013-01-07 Georg-Johann Lay <avr@gjlay.de>
14989
f3b503f4 14990 PR target/54461
2a095093
GJL
14991 * doc/install.texi (Cross-Compiler-Specific Options): Document
14992 --with-avrlibc.
14993
383f9b34
TB
149942013-01-07 Tejas Belagod <tejas.belagod@arm.com>
14995
14996 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14997 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14998 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14999 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15000 vqmovun_high_s64): Fix source operand number and update copyright.
15001
3626621a
RB
150022013-01-07 Richard Biener <rguenther@suse.de>
15003
15004 PR middle-end/55890
15005 * gimple.h (gimple_call_builtin_p): New overload.
15006 * gimple.c (validate_call): New function.
15007 (gimple_call_builtin_p): Likewise.
15008 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15009 Use gimple_call_builtin_p.
15010 (find_func_clobbers): Likewise.
15011 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15012 (strlen_optimize_stmt): Likewise.
15013
8b2ea410
JG
150142013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15015
15016 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15017 (vld1q_dup_*): Likewise.
15018 (vld1_*): Likewise.
15019 (vld1q_*): Likewise.
15020 (vld1_lane_*): Likewise.
15021 (vld1q_lane_*): Likewise.
15022
9713d329
RB
150232013-01-07 Richard Biener <rguenther@suse.de>
15024
15025 * lto-streamer.h (LTO_minor_version): Bump to 2.
15026
3520f7cc
JG
150272013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15028
15029 * config/aarch64/aarch64-protos.h
15030 (aarch64_const_double_zero_rtx_p): Rename to...
15031 (aarch64_float_const_zero_rtx_p): ...this.
15032 (aarch64_float_const_representable_p): New.
15033 (aarch64_output_simd_mov_immediate): Likewise.
15034 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15035 move immediate case.
15036 * config/aarch64/aarch64.c
15037 (aarch64_const_double_zero_rtx_p): Rename to...
15038 (aarch64_float_const_zero_rtx_p): ...this.
15039 (aarch64_print_operand): Allow printing of new constants.
15040 (aarch64_valid_floating_const): New.
15041 (aarch64_legitimate_constant_p): Check for valid floating-point
15042 constants.
15043 (aarch64_simd_valid_immediate): Likewise.
15044 (aarch64_vect_float_const_representable_p): New.
15045 (aarch64_float_const_representable_p): Likewise.
15046 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15047 (aarch64_output_simd_mov_immediate): New.
15048 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15049 (*movdf_aarch64): Likewise.
15050 * config/aarch64/constraints.md (Ufc): New.
15051 (Y): call aarch64_float_const_zero_rtx.
15052 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15053
e167c04d
RB
150542013-01-07 Richard Biener <rguenther@suse.de>
15055
15056 PR tree-optimization/55888
15057 PR tree-optimization/55862
15058 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15059 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15060 not if it is contained therein.
15061
0139aaab
GJL
150622013-01-07 Georg-Johann Lay <avr@gjlay.de>
15063
15064 * config/avr/t-avr: Typo.
15065
4a176b23
GJL
150662013-01-07 Georg-Johann Lay <avr@gjlay.de>
15067
15068 PR55243
15069 * config/avr/t-avr: Don't automatically rebuild
15070 $(srcdir)/config/avr/t-multilib
15071 $(srcdir)/config/avr/avr-tables.opt
15072 $(srcdir)/doc/avr-mmcu.texi
15073 (avr-mcus): New phony target to build them on request.
15074 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15075 * avr/avr-mcus.def: Adjust comments.
15076
c7afdc98
UB
150772013-01-07 Uros Bizjak <ubizjak@gmail.com>
15078
15079 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15080
1ab05c31
RS
150812013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15082
15083 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15084
488e3acc
RS
150852013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15086
15087 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15088
a89599d2
DE
150892013-01-05 David Edelsohn <dje.gcc@gmail.com>
15090
15091 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15092 to generate profiling.
15093 * config/rs6000/aix64.h (LIB_SPEC): Same.
15094
70f09188
AP
150952013-01-04 Andrew Pinski <apinski@cavium.com>
15096
15097 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15098 New function.
15099 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15100
918d445f
UB
151012013-01-04 Uros Bizjak <ubizjak@gmail.com>
15102
15103 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15104 unconditionally.
15105 (ix86_expand_move): Ditto.
15106 (ix86_zero_extend_to_Pmode): Ditto.
15107 (ix86_expand_call): Ditto.
15108 (ix86_expand_special_args_builtin): Ditto.
15109 (ix86_expand_builtin): Ditto.
15110
361618ec
RB
151112013-01-04 Richard Biener <rguenther@suse.de>
15112
15113 PR tree-optimization/55862
15114 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15115 translating them through PHI nodes.
15116
87eab554
MJ
151172013-01-04 Martin Jambor <mjambor@suse.cz>
15118
15119 PR tree-optimization/55755
15120 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15121 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15122
33879b9f
MP
151232013-01-04 Marek Polacek <polacek@redhat.com>
15124
15125 PR middle-end/55859
15126 * opts.c (default_options_optimization): Clarify error message.
15127
3068819a
RB
151282013-01-04 Richard Biener <rguenther@suse.de>
15129
15130 PR middle-end/55863
15131 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15132 reassociation.
15133
0e4ae794
JDA
151342013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15135
15136 PR target/53789
15137 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
15138 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15139 references.
0e4ae794 15140
65c88cef
RH
151412013-01-03 Richard Henderson <rth@redhat.com>
15142
15143 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15144 after eliminating TLS symbols.
15145
8ac16127
MG
151462013-01-03 Marc Glisse <marc.glisse@inria.fr>
15147
15148 PR bootstrap/50167
15149 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15150 * graphite-poly.c (debug_gmp_value): Likewise.
15151
bb664f09
UB
151522013-01-03 Uros Bizjak <ubizjak@gmail.com>
15153
15154 PR target/55712
15155 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15156 selected code model, define __code_mode_small__, __code_model_medium__,
15157 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15158 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15159 xchg temporary register with %k. Declare temporary register as
15160 early clobbered.
15161 [__x86_64__]: For medium and large code models, preserve %rbx register.
15162
bcf1ef00
RB
151632013-01-03 Richard Biener <rguenther@suse.de>
15164
0506634a 15165 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
15166 (dump_subscript): Adjust.
15167 (finalize_ddr_dependent): Do not dump redundant info.
15168 (analyze_siv_subscript): Adjust.
15169 (subscript_dependence_tester): Likewise.
15170 (compute_affine_dependence): Likewise.
15171
59fd17e3
RB
151722013-01-03 Richard Biener <rguenther@suse.de>
15173
15174 Revert
15175 2013-01-03 Richard Biener <rguenther@suse.de>
15176
15177 PR tree-optimization/55857
15178 * tree-vect-stmts.c (vectorizable_load): Do not setup
15179 re-alignment for invariant loads.
15180
15181 2013-01-02 Richard Biener <rguenther@suse.de>
15182
15183 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15184 invariant load do not generate a vector load from the scalar location.
59fd17e3 15185
595c2679
RB
151862013-01-03 Richard Biener <rguenther@suse.de>
15187
15188 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15189 for not vectorizing.
15190 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15191 not build INDIRECT_REFs, call get_name once only.
15192 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15193 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15194
90bb7d7a
RB
151952013-01-03 Richard Biener <rguenther@suse.de>
15196
15197 PR tree-optimization/55857
15198 * tree-vect-stmts.c (vectorizable_load): Do not setup
15199 re-alignment for invariant loads.
15200
f09b77ca
RB
152012013-01-03 Richard Biener <rguenther@suse.de>
15202
15203 PR lto/55848
15204 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15205 prefer a built-in decl.
15206
3461a16e
JJ
152072013-01-03 Jakub Jelinek <jakub@redhat.com>
15208
df8e2b4f
JJ
15209 * gcc.c (process_command): Update copyright notice dates.
15210 * gcov.c (print_version): Likewise.
15211 * gcov-dump.c (print_version): Likewise.
15212
3461a16e
JJ
15213 PR rtl-optimization/55838
15214 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15215 iv0.step, iv1.step and step.
15216
8b5546d6
JJ
152172013-01-03 Jakub Jelinek <jakub@redhat.com>
15218 Marc Glisse <marc.glisse@inria.fr>
15219
15220 PR tree-optimization/55832
15221 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15222 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15223 integer_{one,zero}_node.
15224
8ab1d2e9
JJ
152252013-01-03 Jakub Jelinek <jakub@redhat.com>
15226
15227 PR debug/54402
15228 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15229 * var-tracking.c (reverse_op): Don't add reverse ops to
15230 VALUEs that have already
0506634a 15231 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 15232
5b9ad1d4
GP
152332013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15234
15235 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15236
e25a6711
TJ
152372013-01-02 Teresa Johnson <tejohnson@google.com>
15238
15239 * dumpfile.c (dump_loc): Print filename with location.
15240 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15241 new location_t parameter to emit complete unroll message with
15242 new dump framework.
15243 (canonicalize_loop_induction_variables): Compute loops location
15244 and pass to try_unroll_loop_completely.
15245 * loop-unroll.c (report_unroll_peel): New function.
15246 (peel_loops_completely): Use new dump format with location
15247 for main dumpfile message, and invoke report_unroll_peel on success.
15248 (decide_unrolling_and_peeling): Ditto.
15249 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15250 by report_unroll_peel.
15251 (decide_peel_completely): Ditto.
15252 (decide_unroll_constant_iterations): Ditto.
15253 (decide_unroll_runtime_iterations): Ditto.
15254 (decide_peel_simple): Ditto.
15255 (decide_unroll_stupid): Ditto.
15256 * cfgloop.c (get_loop_location): New function.
15257 * cfgloop.h (get_loop_location): Declare.
15258
77878621
ST
152592013-01-02 Sriraman Tallam <tmsriram@google.com>
15260
15261 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15262 NULL.
15263
9e65d03e
JDA
152642013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15265
15266 PR middle-end/55198
15267 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15268 BLKmode objects when EXPAND_MEMORY is specified.
15269
6a7da30f
ST
152702013-01-02 Sriraman Tallam <tmsriram@google.com>
15271
15272 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15273 in loop predicate.
15274 (fold_builtin_cpu): Do not share cpu model decls across statements.
15275
e78167f2
JM
152762013-01-02 Jason Merrill <jason@redhat.com>
15277
15278 PR c++/55804
15279 * tree.c (build_array_type_1): Revert earlier change.
15280
8c075fb4
YZ
152812013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15282
15283 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15284 "cortex-a57".
15285 * config/aarch64/aarch64-tune.md: Re-generate.
15286
0682ed3e
RB
152872013-01-02 Richard Biener <rguenther@suse.de>
15288
15289 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15290 invariant load do not generate a vector load from the scalar location.
0682ed3e 15291
b8f6a302
RB
152922013-01-02 Richard Biener <rguenther@suse.de>
15293
15294 PR bootstrap/55784
15295 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15296 * configure: Regenerate.
15297
04b80dbb
RS
152982013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15299
15300 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15301 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15302 (expand_builtin_int_roundingfn_2): Keep the original target around
15303 for the fallback case.
15304
635b0b0c
RS
153052013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15306
15307 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15308 to be clear for sign changes.
15309
42d57399
JH
153102013-01-01 Jan Hubicka <jh@suse.cz>
15311
15312 * ipa-inline-analysis.c: Fix formatting.
15313
5bb6669d
JJ
153142013-01-01 Jakub Jelinek <jakub@redhat.com>
15315
15316 PR tree-optimization/55831
15317 * tree-vect-loop.c (get_initial_def_for_induction): Use
15318 gsi_after_labels instead of gsi_start_bb.
ad41bd84 15319\f
86a2db33 15320Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
15321
15322Copying and distribution of this file, with or without modification,
15323are permitted in any medium without royalty provided the copyright
15324notice and this notice are preserved.