gcc/
[official-gcc.git] / gcc / ChangeLog
blob4237a6d2550b3d79c52c75fc4b31894b37ae67dd
1 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
3         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
4         (UCLIBC_DYNAMIC_LINKER): New macro.
5         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
6         `-mnan=2008'.
7         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
9         `-mnan=2008'.
10         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
11         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
12         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
13         for SF and DF modes.  Use ieee_quad_format for TF mode.
14         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
15         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
16         (mips_option_override): Handle `-mnan=legacy'.
17         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
18         `-mabs=2008' and `-mnan=2008'.
19         (OPTION_DEFAULT_SPECS): Add "nan" default.
20         (ASM_SPEC): Handle `-mnan='.
21         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
22         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
23         comment accordingly.
24         (neg<mode>2): Likewise.
25         * config/mips/mips.opt (mabs, mnan): New options.
26         * doc/install.texi (Configuration): Document `--with-nan=' option.
27         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
28         `-mnan=' options.
29         (MIPS Options): Document them.
30         * config.gcc <mips*-*-*>: Handle `--with-nan='.
31         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
32         * configure: Regenerate.
33         * config.in: Regenerate.
35 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
37         * config/i386/i386.md (float post-reload splitters): Do not check
38         for subregs of SSE registers.
40 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
41             H.J. Lu  <hongjiu.lu@intel.com>
43         PR target/57954
44         PR target/57988
45         * config/i386/i386.md (post-reload splitter
46         to avoid partial SSE reg dependency stalls): New pattern.
48 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
50         * config/s390/s390.md ("movcc"): Swap load and store instructions.
52 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
54         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
55         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
57 2013-07-26  Cary Coutant  <ccoutant@google.com>
59         * dwarf2out.c (die_checksum_ordered): Don't include template
60         instantiations in signature.
61         (is_template_parameter): New function.
62         (is_template_instantiation): New function.
63         (generate_skeleton_bottom_up): Don't include template instantiations
64         in type unit DIE.
65         (generate_skeleton): Likewise.
66         (break_out_comdat_types): Move recursive call to break out nested
67         types earlier.
68         (prune_unused_types_mark_generic_parms_dies): Call
69         is_template_parameter.
71 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
73         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
74         uses vector registers.
75         * config/aarch64/iterators.md: Add attributes rtn and vas.
77 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
78             Richard Earnshaw  <richard.earnshaw@arm.com>
80         * combine.c (simplify_comparison): Re-canonicalize operands
81         where appropriate.
82         * config/arm/arm.md (movcond_addsi): New splitter.
84 2013-07-25  Sterling Augustine  <saugustine@google.com>
86         * dwarf2out.c (size_of_pubnames): Move code to...
87         (include_pubname_in_output): ...here.  New.
88         (want_pubnames): Rearrange.
89         (output_pubnames): Call include_pubname_in_output.  Move assertion.
91 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
93         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
95 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
97         PR target/38836
98         * doc/extend.texi: Remove obsolete builtins. Fix
99         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
101 2013-07-25  Jan Hubicka  <jh@suse.cz>
103         * cgraph.c (release_function_body): Break out from ...
104         (cgraph_release_function_body): ... this one; also release DECL_RESULT
105         and DECL_ARGUMENTS.
106         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
107         old_tree in the map.
108         (create_specialized_node): Update.
109         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
110         into index.
111         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
112         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
113         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
114         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
115         DECL_RESULT.
117 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
119         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
120         addsi3_carryin_alt2_<optab>): Correct output template.
122 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
124         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
125         Adjust for arm_restrict_it.
126         Remove trailing whitespace.
128 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
130         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
131         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
133         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
135 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
137         PR rtl-optimization/57960
138         * lra-constraints.c (process_alt_operands): Use the right mode
139         when checking strict_low.
141 2013-07-25  Jan Hubicka  <jh@suse.cz>
143         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
144         * cgraph.c (cgraph_remove_node): Do not release function body
145         when in cgraph streaming.
146         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
147         in other partitions are not considered reachable; fix handling of
148         clones.
150 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
152         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
154 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
156         PR target/19599
157         PR target/57731
158         PR target/57837
159         * config/arm/arm.md ("*sibcall_insn): Replace use of
160         Ss with US. Adjust output for v5 and v4t.
161         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
163         * config/arm/constraints.md ("Ss"): Rename to US.
165 2013-07-25  Terry Guo  <terry.guo@arm.com>
167         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
168         shift_add/shift_sub0/shift_sub1 RTXs.
170 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
171             Anton Blanchard <anton@au1.ibm.com>
173         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
174         (altivec_vpks<VI_char>ss): Likewise.
175         (altivec_vpks<VI_char>us): Likewise.
176         (altivec_vpku<VI_char>us): Likewise.
177         (altivec_vpku<VI_char>um): Likewise.
179 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
181         Introduce context class.
183         * Makefile.in (CONTEXT_H): New.
184         (OBJS): Add context.o.
185         (toplev.o): Add CONTEXT_H to dependencies.
186         (context.o): New.
188         * toplev.c (general_init): Create the singleton gcc::context instance.
190         * context.c: New.
192         * context.h: New.
194 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
196         PR rtl-optimization/57968
197         * mode-switching.c (create_pre_exit): Allow instructions that
198         don't set a return register to need a non-exit mode.
200 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
201             Anton Blanchard <anton@au1.ibm.com>
203         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
204         operands to vperm for little endian.
205         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
206         of lvsl to create the control mask for a vperm for little endian.
208 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
209             Anton Blanchard <anton@au1.ibm.com>
211         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
212         two operands for little-endian.
214 2013-07-23  Steve Ellcey  <sellcey@mips.com>
216         * config/mips/mips.c (mips_case_values_threshold): New.
217         (TARGET_CASE_VALUES_THRESHOLD): Define.
219 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
220             Anton Blanchard <anton@au1.ibm.com>
222         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
223         selection of field for vector splat in little endian mode.
225 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
227         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
228         expanders to rs6000.md.
229         (ior<mode>3): Likewise.
230         (and<mode>3): Likewise.
231         (one_cmpl<mode>2): Likewise.
232         (nor<mode>3): Likewise.
233         (andc<mode>3): Likewise.
234         (eqv<mode>3): Likewise.
235         (nand<mode>3): Likewise.
236         (orc<mode>3): Likewise.
238         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
239         declaration.
241         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
242         to split multi-word logical operations.
243         (rs6000_split_logical_di): Likewise.
244         (rs6000_split_logical): Likewise.
246         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
247         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
248         and allow TImode operations in 32-bit.
249         (vsx_and<mode>3_64bit): Likewise.
250         (vsx_ior<mode>3_32bit): Likewise.
251         (vsx_ior<mode>3_64bit): Likewise.
252         (vsx_xor<mode>3_32bit): Likewise.
253         (vsx_xor<mode>3_64bit): Likewise.
254         (vsx_one_cmpl<mode>2_32bit): Likewise.
255         (vsx_one_cmpl<mode>2_64bit): Likewise.
256         (vsx_nor<mode>3_32bit): Likewise.
257         (vsx_nor<mode>3_64bit): Likewise.
258         (vsx_andc<mode>3_32bit): Likewise.
259         (vsx_andc<mode>3_64bit): Likewise.
260         (vsx_eqv<mode>3_32bit): Likewise.
261         (vsx_eqv<mode>3_64bit): Likewise.
262         (vsx_nand<mode>3_32bit): Likewise.
263         (vsx_nand<mode>3_64bit): Likewise.
264         (vsx_orc<mode>3_32bit): Likewise.
265         (vsx_orc<mode>3_64bit): Likewise.
267         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
268         logical types in GPRs.
270         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
271         logical insns to rs6000.md, and allow TImode operations in
272         32-bit.
273         (altivec_ior<mode>3): Likewise.
274         (altivec_xor<mode>3): Likewise.
275         (altivec_one_cmpl<mode>2): Likewise.
276         (altivec_nor<mode>3): Likewise.
277         (altivec_andc<mode>3): Likewise.
279         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
280         attributes for moving the 128-bit logical operations into
281         rs6000.md.
282         (BOOL_REGS_OUTPUT): Likewise.
283         (BOOL_REGS_OP1): Likewise.
284         (BOOL_REGS_OP2): Likewise.
285         (BOOL_REGS_UNARY): Likewise.
286         (BOOL_REGS_AND_CR0): Likewise.
287         (one_cmpl<mode>2): Add support for DI logical operations on
288         32-bit, splitting the operations to 32-bit.
289         (anddi3): Likewise.
290         (iordi3): Likewise.
291         (xordi3): Likewise.
292         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
293         changes to combine the 32/64-bit code, allow logical operations on
294         TI mode in 32-bit, and to use similar match_operator patterns like
295         scalar mode uses.  Combine the Altivec and VSX code for logical
296         operations, and move it here.
297         (ior<mode>3, 128-bit types): Likewise.
298         (xor<mode>3, 128-bit types): Likewise.
299         (one_cmpl<mode>3, 128-bit types): Likewise.
300         (nor<mode>3, 128-bit types): Likewise.
301         (andc<mode>3, 128-bit types): Likewise.
302         (eqv<mode>3, 128-bit types): Likewise.
303         (nand<mode>3, 128-bit types): Likewise.
304         (orc<mode>3, 128-bit types): Likewise.
305         (and<mode>3_internal): Likewise.
306         (bool<mode>3_internal): Likewise.
307         (boolc<mode>3_internal1): Likewise.
308         (boolc<mode>3_internal2): Likewise.
309         (boolcc<mode>3_internal1): Likewise.
310         (boolcc<mode>3_internal2): Likewise.
311         (eqv<mode>3_internal1): Likewise.
312         (eqv<mode>3_internal2): Likewise.
313         (one_cmpl1<mode>3_internal): Likewise.
315 2013-07-23  David Holsgrove <david.holsgrove@xilinx.com>
317         * config/microblaze/microblaze.c (microblaze_expand_prologue):
318         Rename flag_stack_usage to flag_stack_usage_info.
320 2013-07-23  David Holsgrove <david.holsgrove@xilinx.com>
322         * config/microblaze/sync.md: New file.
323         * config/microblaze/microblaze.md: Include sync.md
324         * config/microblaze/microblaze.c: Add print_operand 'y'.
325         * config/microblaze/constraints.md: Add memory_contraint
326         'Q' which is a single register.
328 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
330         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
332 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
334         * reload.c (find_reloads): Exit loop once we find this operand
335         cannot be reloaded somehow for this alternative.
337         * reload.c (find_reloads): Exit loop once we find a hard register.
339         * rtlanal.c (computed_jump_p): Exit loop once we find label
340         reference is used.
342         * i386.c (ix86_pad_returns): Exit loop after setting replace.
344         * cfgloopmanip.c (remove_path): Exit loop after setting
345         irred_invalidated.
347         * gensupport.c (subst_dup): Avoid loop if code is not
348         MATCH_DUP nor MATCH_OP_DUP.
350 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
352         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
354 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
356         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
357         true for SP_REGNUM if mode == ptr_mode.
358         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
359         with value R0_REGNUM + 31.
361 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
363         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
364         pad pointer-typed argument downward.
366 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
368         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
369         and __ILP32__ when the ILP32 model is in use.
371 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
373         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
374         (aarch64_load_symref_appropriately): In the case of
375         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
376         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
377         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
378         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
379         if 'mode' doesn't equal to 'ptr_mode'.
380         (aarch64_output_mi_thunk): Add an assertion on the alignment of
381         'vcall_offset'; change to call aarch64_emit_move differently depending
382         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
383         to calculate the upper bound of 'vcall_offset'.
384         (aarch64_cannot_force_const_mem): Change to also return true if
385         mode != ptr_mode.
386         (aarch64_legitimize_reload_address): In the case of large
387         displacements, add new local variable 'xmode' and an assertion
388         based on it; change to use 'xmode' to generate the new rtx and
389         reload.
390         (aarch64_asm_trampoline_template): Change to generate the template
391         differently depending on TARGET_ILP32 or not; change to use
392         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
393         (aarch64_trampoline_size): Removed.
394         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
395         and replace immediate literals with it.  Change to use 'ptr_mode'
396         instead of 'DImode' and call convert_memory_address if the mode
397         of 'fnaddr' doesn't equal to 'ptr_mode'.
398         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
399         to output symbol.
400         (aarch64_elf_asm_destructor): Likewise.
401         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
402         on TARGET_ILP32 instead of aarch64_trampoline_size.
403         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
404         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
405         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
406         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
407         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
408         (storewb_pair<GPI:mode>_<P:mode>): ... this.
409         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
410         depending on the value of 'mode'.
411         (add_losym_<mode>): New.
412         (ldr_got_small_<mode>): New, based on ldr_got_small.
413         (ldr_got_small): Remove.
414         (ldr_got_small_sidi): New.
415         * config/aarch64/iterators.md (P): New.
416         (PTR): Change to 'ptr_mode' in the condition.
418 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
420         * config.gcc (aarch64*-*-*): Support --with-abi.
421         (aarch64*-*-elf): Support --with-multilib-list.
422         (aarch64*-*-linux*): Likewise.
423         (supported_defaults): Add abi to aarch64*-*-*.
424         * configure.ac: Mention AArch64 for --with-multilib-list.
425         * configure: Re-generated.
426         * config/aarch64/biarchilp32.h: New file.
427         * config/aarch64/biarchlp64.h: New file.
428         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
429         (ABI_SPEC): Ditto.
430         (MULTILIB_DEFAULTS): Ditto.
431         (DRIVER_SELF_SPECS): Ditto.
432         (ASM_SPEC): Update to also substitute -mabi.
433         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
434         file whose name depends on -mabi= and -mbig-endian.
435         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
436         TARGET_ILP32.
437         (POINTER_SIZE): New define.
438         (POINTERS_EXTEND_UNSIGNED): Ditto.
439         (enum aarch64_abi_type): New enumeration tag.
440         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
441         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
442         (TARGET_ILP32): New define.
443         * config/aarch64/aarch64.opt (mabi): New.
444         (aarch64_abi): New.
445         (ilp32, lp64): New values for -mabi.
446         * config/aarch64/t-aarch64 (comma): New define.
447         (MULTILIB_OPTIONS): Ditto.
448         (MULTILIB_DIRNAMES): Ditto.
449         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
450         * doc/invoke.texi: Document -mabi for AArch64.
452 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
454         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
456 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
457             Anton Blanchard <anton@au1.ibm.com>
459         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
460         endianness when selecting field to splat.
462 2013-07-22  Eric Christopher  <echristo@gmail.com>
464         * dwarf2out.c (die_odr_checksum): New function to use
465         CHECKSUM_ macros and ULEB128 for DIE tag.
466         (generate_type_signature): Use.
468 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
470         * config.gcc (sparc*-*-*): Accept leon3 processor.
471         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
472         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
473         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
474         * config/sparc/sparc.opt (enum processor_type): Add leon3.
475         (mfix-ut699): Adjust comment.
476         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
477         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
478         (CPP_CPU_SPEC): Likewise.
479         (ASM_CPU_SPEC): Likewise.
480         * config/sparc/sparc.c (leon3_cost): New constant.
481         (sparc_option_override): Add leon3 support.
482         (mem_ref): New function.
483         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
484         (sparc_do_work_around_errata): Look into the instruction in the delay
485         slot and adjust accordingly.  Add fix for the data cache nullify issues
486         of the UT699.  Change insertion position for the NOP.
487         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
488         (leon3_load): New reservation.
489         (leon_store): Bump latency to 2.
490         (grfpu): New automaton.
491         (grfpu_alu): New unit.
492         (grfpu_ds): Likewise.
493         (leon_fp_alu): Adjust.
494         (leon_fp_mult): Delete.
495         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
496         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
497         * config/sparc/sparc.md (cpu): Add leon3.
498         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
499         (swapsi): Likewise.
500         (atomic_test_and_set): Likewise.
501         (ldstub): Likewise.
503 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
505         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
506         default for R5900 targets.
507         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
508         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
509         * config/mips/mips.c (mips_option_override): Report an error for
510         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
511         for -march=r5900 -mhard-float.
513 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
515         * df-problems.c (can_move_insns_across): Exit loop once we
516         find a non-fixed, non-global register.
518         * ipa-pure-const.c (propagate_nothrow): Exit loop after
519         setting can_throw.
521         * omega.c (omega_eliminate_red): Break after setting red_found.
522         (omega_problem_has_red_equations): Similarly after setting found.
523         (omega_query_variable): Similarly after setting coupled.
525 2013-07-22  Marek Polacek  <polacek@redhat.com>
527         * gimplify.c: Don't include gimple.h twice.
529 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
531         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
532         instead of TARGET_THUMB1.
533         (Pz): New constraint.
534         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
535         encodings.
536         (compare_negsi_si): Likewise.
537         (compare_addsi2_op0): Likewise.
538         (compare_addsi2_op1): Likewise.
539         (addsi3_carryin_<optab>): Likewise.
540         (addsi3_carryin_alt2_<optab>): Likewise.
541         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
542         for arm_restrict_it.
543         (subsi3_carryin): Likewise.
544         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
545         (minmax_arithsi): Disable for arm_restrict_it.
546         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
547         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
548         (satsi_<SAT:code>_shift): Likewise.
549         (arm_shiftsi3): Add alternative for 16-bit encoding.
550         (arm32_movhf): Disable for arm_restrict_it.
551         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
552         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
554 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
556         * config/arm/arm.md (attribute "insn"): Delete.
557         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
558         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
559         (not_shiftsi): Update for attribute change.
560         (not_shiftsi_compare0): Likewise.
561         (not_shiftsi_compare0_scratch): Likewise.
562         (arm_one_cmplsi2): Likewise.
563         (thumb1_one_cmplsi2): Likewise.
564         (notsi_compare0): Likewise.
565         (notsi_compare0_scratch): Likewise.
566         (thumb1_movdi_insn): Likewise.
567         (arm_movsi_insn): Likewise.
568         (movhi_insn_arch4): Likewise.
569         (movhi_bytes): Likewise.
570         (arm_movqi_insn): Likewise.
571         (thumb1_movqi_insn): Likewise.
572         (arm32_movhf): Likewise.
573         (thumb1_movhf): Likewise.
574         (arm_movsf_soft_insn): Likewise.
575         (thumb1_movsf_insn): Likewise.
576         (thumb_movdf_insn): Likewise.
577         (movsicc_insn): Likewise.
578         (movsfcc_soft_insn): Likewise.
579         (and_scc): Likewise.
580         (cond_move): Likewise.
581         (if_move_not): Likewise.
582         (if_not_move): Likewise.
583         (if_shift_move): Likewise.
584         (if_move_shift): Likewise.
585         (if_shift_shift): Likewise.
586         (if_not_arith): Likewise.
587         (if_arith_not): Likewise.
588         (cond_move_not): Likewise.
589         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
590         (neon_mov<mode>): Likewise.
591         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
592         (thumb2_movsi_vfp): Likewise.
593         (movsf_vfp): Likewise.
594         (thumb2_movsf_vfp): Likewise.
595         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
596         change.
597         (cortexa7_older_only): Likewise.
598         (cortexa7_younger): Likewise.
599         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
600         (1020alu_shift_op): Likewise.
601         (1020alu_shift_reg_op): Likewise.
602         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
603         (alu_shift_op): Likewise.
604         (alu_shift_reg_op): Likewise.
605         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
606         (11_alu_shift_op): Likewise.
607         (11_alu_shift_reg_op): Likewise.
608         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
609         (9_alu_shift_reg_op): Likewise.
610         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
611         change.
612         (cortex_a15_alu_shift): Likewise.
613         (cortex_a15_alu_shift_reg): Likewise.
614         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
615         (cortex_a5_alu_shift): Likewise.
616         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
617         change.
618         (cortex_a53_alu_shift): Likewise.
619         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
620         change.
621         (cortex_a7_alu_reg): Likewise.
622         (cortex_a7_alu_shift): Likewise.
623         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
624         (cortex_a8_alu_shift): Likewise.
625         (cortex_a8_alu_shift_reg): Likewise.
626         (cortex_a8_mov): Likewise.
627         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
628         (cortex_a9_dp_shift): Likewise.
629         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
630         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
631         (cortex_r4_mov): Likewise.
632         (cortex_r4_alu_shift): Likewise.
633         (cortex_r4_alu_shift_reg): Likewise.
634         * config/arm/fa526.md (526_alu_op): Update for attribute change.
635         (526_alu_shift_op): Likewise.
636         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
637         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
638         (626te_alu_shift_op): Likewise.
639         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
640         (726te_alu_op): Likewise.
641         (726te_alu_shift_op): Likewise.
642         (726te_alu_shift_reg_op): Likewise.
643         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
644         (mp626_alu_shift_op): Likewise.
645         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
646         (pj4_alu_e1_conds): Likewise.
647         (pj4_alu): Likewise.
648         (pj4_alu_conds): Likewise.
649         (pj4_shift): Likewise.
650         (pj4_shift_conds): Likewise.
651         (pj4_alu_shift): Likewise.
652         (pj4_alu_shift_conds): Likewise.
654 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
656         * config/arm/predicates.md (shiftable_operator_strict_it):
657         New predicate.
658         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
659         Disable cond_exec version for arm_restrict_it.
660         (thumb2_smaxsi3): Convert to generate cond_exec.
661         (thumb2_sminsi3): Likewise.
662         (thumb32_umaxsi3): Likewise.
663         (thumb2_uminsi3): Likewise.
664         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
665         (thumb2_neg_abssi2): Likewise.
666         (thumb2_mov_scc): Add alternative for 16-bit encoding.
667         (thumb2_movsicc_insn): Adjust alternatives.
668         (thumb2_mov_negscc): Disable for arm_restrict_it.
669         (thumb2_mov_negscc_strict_it): New pattern.
670         (thumb2_mov_notscc_strict_it): New pattern.
671         (thumb2_mov_notscc): Disable for arm_restrict_it.
672         (thumb2_ior_scc): Likewise.
673         (thumb2_ior_scc_strict_it): New pattern.
674         (thumb2_cond_move): Adjust for arm_restrict_it.
675         (thumb2_cond_arith): Disable for arm_restrict_it.
676         (thumb2_cond_arith_strict_it): New pattern.
677         (thumb2_cond_sub): Adjust for arm_restrict_it.
678         (thumb2_movcond): Likewise.
679         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
680         (thumb2_zero_extendhisi2_v6): Likewise.
681         (thumb2_zero_extendqisi2_v6): Likewise.
682         (orsi_notsi_si): Likewise.
683         (orsi_not_shiftsi_si): Likewise.
685 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
687         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
688         instruction sequence is 1 byte shorter.
690 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
692         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
693         it is not needed after split.
695 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
697         PR target/51784
698         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
699         second label for nonlocal goto receivers. Don't output pic base labels
700         unless we're producing PIC; mark that action unreachable().
701         (ix86_save_reg): If the function contains a nonlocal label, save the
702         PIC base reg.
703         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
704         * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
705         (update_pic_label_number_if_needed): New.
706         (machopic_output_function_base_name): Adjust for nonlocal receiver
707         case.
708         (machopic_should_output_picbase_label): New.
709         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
710         (nonlocal_goto_receiver): New insn and split.
712 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
714         * config/aarch64/aarch64-builtins.c
715         (aarch64_fold_builtin): Fold abs in all modes.
716         * config/aarch64/aarch64-simd-builtins.def
717         (abs): Enable for all modes.
718         * config/aarch64/arm_neon.h
719         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
720         (vabs_f64): Add missing intrinsic.
722 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
724         * config/aarch64/arm_neon.h (vabs_s64): New function
726 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
728         PR target/57516
729         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
730         * config/avr/avr.md (adjust_len): Add `round'.
731         * config/avr/avr-protos.h (avr_out_round): New prototype.
732         (avr_out_plus): Add `out_label' argument.
733         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
734         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
735         Handle the case where `insn' is just a pattern.
736         (avr_out_bitop): Handle the case where `insn' is just a pattern.
737         (avr_out_round): New function.
738         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
740 2013-07-18  David Holsgrove <david.holsgrove@xilinx.com>
742         * config/microblaze/microblaze.c (microblaze_expand_prologue):
743         Add check for flag_stack_usage to handle -fstack-usage support
745 2013-07-18  Pat Haugen <pthaugen@us.ibm.com>
747         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
748         interaction for new Power8 flags and VSX.
750 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
752         PR middle-end/57698
753         * tree-inline.c (expand_call_inline): Emit errors during
754         early_inlining only if optimization is not turned on.
756 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
758         * passes.def: New.
760         * passes.c (init_optimization_passes): Move the construction of
761         the pass hierarchy into a new passes.def file.
763         * Makefile.in (passes.o): Add dependency on passes.def.
765 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
767         * passes.c (init_optimization_passes): Introduce macros for
768         constructing the tree of passes (INSERT_PASSES_AFTER,
769         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
770         TERMINATE_PASS_LIST).
772 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
773             Wei Mi  <wmi@google.com>
775         PR rtl-optimization/57878
776         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
777         top.
778         (reload_pseudo_compare_func): Check nregs first for reload
779         pseudos.
781 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
783         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
785 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
787         * read-rtl.c (validate_const_int): Once an invalid character is
788         seen, quit the loop.
790         * gengtype.c (write_roots): Similarly once we find the "deletable"
791         or "if_marked" option.
793 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
795         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
796         "xtab" and "sat".  Move value "clz" from here to ...
797         (attriubte "type"): ... here.
798         (satsi_<SAT:code>): Delete "insn" attribute.
799         (satsi_<SAT:code>_shift): Likewise.
800         (arm_zero_extendqisi2addsi): Likewise.
801         (arm_extendqisi2addsi): Likewise.
802         (clzsi2): Update for attribute changes.
803         (rbitsi2): Likewise.
804         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
805         attribute.
806         (arm_usatsihi): Likewise.
807         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
809 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
811         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
812         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
813         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
814         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
815         in alphabetical order.
816         (attribute "core_cycles"): Update for attribute changes.
817         (arm_addsi3): Likewise.
818         (addsi3_compare0): Likewise.
819         (addsi3_compare0_scratch): Likewise.
820         (addsi3_compare_op1): Likewise.
821         (addsi3_compare_op2): Likewise.
822         (compare_addsi2_op0): Likewise.
823         (compare_addsi2_op1): Likewise.
824         (addsi3_carryin_shift_<optab>): Likewise.
825         (subsi3_carryin_shift): Likewise.
826         (rsbsi3_carryin_shift): Likewise.
827         (arm_subsi3_insn): Likewise.
828         (subsi3_compare0): Likewise.
829         (subsi3_compare): Likewise.
830         (arm_andsi3_insn): Likewise.
831         (thumb1_andsi3_insn): Likewise.
832         (andsi3_compare0): Likewise.
833         (andsi3_compare0_scratch): Likewise.
834         (zeroextractsi_compare0_scratch
835         (andsi_not_shiftsi_si): Likewise.
836         (iorsi3_insn): Likewise.
837         (iorsi3_compare0): Likewise.
838         (iorsi3_compare0_scratch): Likewise.
839         (arm_xorsi3): Likewise.
840         (thumb1_xorsi3_insn): Likewise.
841         (xorsi3_compare0): Likewise.
842         (xorsi3_compare0_scratch): Likewise.
843         (satsi_<SAT:code>_shift): Likewise.
844         (rrx): Likewise.
845         (arm_shiftsi3): Likewise.
846         (shiftsi3_compare0): Likewise.
847         (not_shiftsi): Likewise.
848         (not_shiftsi_compare0): Likewise.
849         (not_shiftsi_compare0_scratch): Likewise.
850         (arm_one_cmplsi2): Likewise.
851         (thumb_one_complsi2): Likewise.
852         (notsi_compare0): Likewise.
853         (notsi_compare0_scratch): Likewise.
854         (thumb1_zero_extendhisi2): Likewise.
855         (arm_zero_extendhisi2): Likewise.
856         (arm_zero_extendhisi2_v6): Likewise.
857         (arm_zero_extendhisi2addsi): Likewise.
858         (thumb1_zero_extendqisi2): Likewise.
859         (thumb1_zero_extendqisi2_v6): Likewise.
860         (arm_zero_extendqisi2): Likewise.
861         (arm_zero_extendqisi2_v6): Likewise.
862         (arm_zero_extendqisi2addsi): Likewise.
863         (thumb1_extendhisi2): Likewise.
864         (arm_extendhisi2): Likewise.
865         (arm_extendhisi2_v6): Likewise.
866         (arm_extendqisi): Likewise.
867         (arm_extendqisi_v6): Likewise.
868         (arm_extendqisi2addsi): Likewise.
869         (thumb1_extendqisi2): Likewise.
870         (thumb1_movdi_insn): Likewise.
871         (arm_movsi_insn): Likewise.
872         (movsi_compare0): Likewise.
873         (movhi_insn_arch4): Likewise.
874         (movhi_bytes): Likewise.
875         (arm_movqi_insn): Likewise.
876         (thumb1_movqi_insn): Likewise.
877         (arm32_movhf): Likewise.
878         (thumb1_movhf): Likewise.
879         (arm_movsf_soft_insn): Likewise.
880         (thumb1_movsf_insn): Likewise.
881         (movdf_soft_insn): Likewise.
882         (thumb_movdf_insn): Likewise.
883         (arm_cmpsi_insn): Likewise.
884         (cmpsi_shiftsi): Likewise.
885         (cmpsi_shiftsi_swp): Likewise.
886         (arm_cmpsi_negshiftsi_si): Likewise.
887         (movsicc_insn): Likewise.
888         (movsfcc_soft_insn): Likewise.
889         (arith_shiftsi): Likewise.
890         (arith_shiftsi_compare0
891         (arith_shiftsi_compare0_scratch
892         (sub_shiftsi): Likewise.
893         (sub_shiftsi_compare0
894         (sub_shiftsi_compare0_scratch
895         (and_scc): Likewise.
896         (cond_move): Likewise.
897         (if_plus_move): Likewise.
898         (if_move_plus): Likewise.
899         (if_move_not): Likewise.
900         (if_not_move): Likewise.
901         (if_shift_move): Likewise.
902         (if_move_shift): Likewise.
903         (if_shift_shift): Likewise.
904         (if_not_arith): Likewise.
905         (if_arith_not): Likewise.
906         (cond_move_not): Likewise.
907         (thumb1_ashlsi3): Set type attribute.
908         (thumb1_ashrsi3): Likewise.
909         (thumb1_lshrsi3): Likewise.
910         (thumb1_rotrsi3): Likewise.
911         (shiftsi3_compare0_scratch): Likewise.
912         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
913         (neon_mov<mode>): Likewise.
914         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
915         attribute changes.
916         (thumb2_movsi_insn): Likewise.
917         (thumb2_cmpsi_neg_shiftsi): Likewise.
918         (thumb2_extendqisi_v6): Likewise.
919         (thumb2_zero_extendhisi2_v6): Likewise.
920         (thumb2_zero_extendqisi2_v6): Likewise.
921         (thumb2_shiftsi3_short): Likewise.
922         (thumb2_addsi3_compare0_scratch): Likewise.
923         (orsi_not_shiftsi_si): Likewise.
924         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
925         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
926         changes.
927         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
928         (1020alu_shift_op): Likewise.
929         (1020alu_shift_reg_op): Likewise.
930         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
931         (alu_shift_op): Likewise.
932         (alu_shift_reg_op): Likewise.
933         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
934         (11_alu_shift_op): Likewise.
935         (11_alu_shift_reg_op): Likewise.
936         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
937         (9_alu_shift_reg_op): Likewise.
938         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
939         changes.
940         (cortex_a15_alu_shift): Likewise.
941         (cortex_a15_alu_shift_reg): Likewise.
942         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
943         changes.
944         (cortex_a5_alu_shift): Likewise.
945         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
946         changes.
947         (cortex_a53_alu_shift): Likewise.
948         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
949         changes.
950         (cortex_a7_alu_reg): Likewise.
951         (cortex_a7_alu_shift): Likewise.
952         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
953         changes.
954         (cortex_a8_alu_shift): Likewise.
955         (cortex_a8_alu_shift_reg): Likewise.
956         (cortex_a8_mov): Likewise.
957         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
958         (cortex_a9_dp_shift): Likewise.
959         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
960         changes.
961         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
962         changes.
963         (cortex_r4_mov): Likewise.
964         (cortex_r4_alu_shift): Likewise.
965         (cortex_r4_alu_shift_reg): Likewise.
966         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
967         (526_alu_shift_op): Likewise.
968         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
969         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
970         (626te_alu_shift_op): Likewise.
971         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
972         (726te_alu_op): Likewise.
973         (726te_alu_shift_op): Likewise.
974         (726te_alu_shift_reg_op): Likewise.
975         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
976         (mp626_alu_shift_op): Likewise.
977         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
978         (pj4_alu_e1_conds): Likewise.
979         (pj4_alu): Likewise.
980         (pj4_alu_conds): Likewise.
981         (pj4_shift): Likewise.
982         (pj4_shift_conds): Likewise.
983         (pj4_alu_shift): Likewise.
984         (pj4_alu_shift_conds): Likewise.
985         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
986         changes.
987         (cortexa7_older_only): Likewise.
988         (cortexa7_younger): Likewise.
990 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
992         * ipa-pure-const.c (generate_summary): Rename to...
993         (pure_const_generate_summary): ... this.
995 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
997         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
999 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
1001         PR target/57909
1002         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
1003         usage in HI mode.
1005 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1007         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1008         enabled without -march=zEC12.
1009         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1010         flags to be set.
1012 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
1014         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
1015         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
1016         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
1017         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
1018         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
1019         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
1020         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
1021         ISA_HAS_FP4.
1022         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
1023         and ISA_HAS_NMADD3_NMSUB3.
1024         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
1025         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
1026         (nmsub4<mode>, nmsub3<mode>): Likewise.
1027         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
1029 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
1031         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
1032         TARGET_MIPS5400 checking.
1034 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
1035             Peter Bergner  <bergner@vnet.ibm.com>
1037         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
1038         registers in the comment.
1039         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
1040         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
1041         rather than FIRST_PSEUDO_REGISTERS.
1043 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
1045         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1046         enable extra ISA flags with TARGET_HTM.
1048 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
1050         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
1051         Fix comment typos.
1053 2013-07-15  Cong Hou  <congh@google.com>
1055         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
1056         in compare function for sorting.
1058 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
1060         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
1061         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
1062         * config/rs6000/rs6000.opt: Add -mhtm option.
1063         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
1064         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
1065         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1066         __HTM__ if the HTM instructions are available.
1067         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
1068         htm_spr_reg_operand): New define_predicates.
1069         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
1070         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
1071         Include htm.md.
1072         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
1073         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
1074         HTM builtin functions.
1075         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
1076         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
1077         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
1078         (rs6000_builtin_mask_calculate): Likewise.
1079         (rs6000_option_override_internal): Likewise.
1080         (bdesc_htm): Add new HTM builtin support.
1081         (htm_spr_num): New function.
1082         (htm_spr_regno): Likewise.
1083         (rs6000_htm_spr_icode): Likewise.
1084         (htm_expand_builtin): Likewise.
1085         (htm_init_builtins): Likewise.
1086         (rs6000_expand_builtin): Add support for HTM builtin functions.
1087         (rs6000_init_builtins): Likewise.
1088         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
1089         option.
1090         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
1091         (TARGET_HTM, MASK_HTM): Define macros.
1092         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
1093         (FIXED_REGISTERS): Likewise.
1094         (CALL_USED_REGISTERS): Likewise.
1095         (CALL_REALLY_USED_REGISTERS): Likewise.
1096         (REG_ALLOC_ORDER): Likewise.
1097         (enum reg_class): Likewise.
1098         (REG_CLASS_NAMES): Likewise.
1099         (REG_CLASS_CONTENTS): Likewise.
1100         (REGISTER_NAMES): Likewise.
1101         (ADDITIONAL_REGISTER_NAMES): Likewise.
1102         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
1103         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
1104         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
1105         * config/rs6000/htm.md: New file.
1106         * config/rs6000/htmintrin.h: New file.
1107         * config/rs6000/htmxlintrin.h: New file.
1109 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1111         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1112         Define SYMBOL_TINY_GOT, update comment.
1113         * config/aarch64/aarch64.c
1114         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
1115         (aarch64_expand_mov_immediate): Likewise.
1116         (aarch64_print_operand): Likewise.
1117         (aarch64_classify_symbol): Likewise.
1118         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
1119         (ldr_got_tiny): Define.
1121 2013-07-13  Tobias Grosser  <tobias@grosser.es>
1123         PR tree-optimization/54094
1124         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
1125           scheduling dimension for the parallelism check from the polyhedral
1126           information in the AST.
1127         * graphite-dependences.c (carries_deps): Do not assume the schedule is
1128           in 2D + 1 form.
1130 2013-07-13  Jason Merrill  <jason@redhat.com>
1132         * print-tree.c (debug_vec_tree): Use debug_raw.
1133         (debug_raw (vec<tree, va_gc> &)): New.
1134         (debug_raw (vec<tree, va_gc> *)): New.
1135         * tree.h: Declare them.
1137 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
1139         * ifcvt.c (ifcvt_after_combine): New static variable.
1140         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1141         for size.
1142         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
1143         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1144         rest_of_handle_if_after_reload): Pass new argument for if_convert.
1146 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
1148         * config/mips/mips.c (mips_expand_call): Remove empty statement.
1150 2013-07-12  Michael Matz  <matz@suse.de>
1152         PR middle-end/55771
1153         * convert.c (convert_to_real): Reject non-float inner types.
1155 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
1157         * config/aarch64/aarch64-protos.h
1158         (aarch64_simd_immediate_valid_for_move): Remove.
1159         * config/aarch64/aarch64.c (simd_immediate_info): New member.
1160         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1161         cases.
1162         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1164 2013-07-11  Steve Ellcey  <sellcey@mips.com>
1166         * config/mips/mips.c (mips_conditional_register_usage): Do not
1167         use t[0-7] registers in MIPS16 mode when optimizing for size.
1169 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
1171         * config/i386/i386.c (dispatch_function_versions): Fix array
1172         indexing of function_version_info to match actual_versions.
1174 2013-07-11  Teresa Johnson  <tejohnson@google.com>
1176         * vec.h (struct va_gc): Move release out-of-line.
1177         (va_gc::release): Call ggc_free on released vec.
1179 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1181         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1182         Require GOT register as additional operand in UNSPEC.
1183         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1184         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1185         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1186         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1187         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1188         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1189         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1191 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
1193         PR target/57631
1194         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1195         name seen by assembler/linker rather if available.
1197 2013-07-11  Andreas Schwab  <schwab@suse.de>
1199         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1201 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
1203         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
1205 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
1207         * doc/tm.texi.in: Move hook documentation to ....
1208         * target.def: ... here.
1210         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1211         text on @hook line.
1212         * doc/tm.texi: Regenerate.
1214 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
1216         PR c++/57869
1217         * doc/invoke.texi: Document -Wconditionally-supported.
1219 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
1221         PR target/57844
1222         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1223         of my_fp.
1225 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
1227         PR target/57506
1228         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1229         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1230         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1231         Remove duplicate devices.
1232         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1233         * config/avr/t-multilib: Regenerate.
1234         * config/avr/avr-tables.opt: Regenerate.
1235         * doc/avr-mmcu.texi: Regenerate.
1237 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
1239         PR target/56987
1240         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1242 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
1244         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1245         the cost of MULT when optimizing for size.
1247 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1249         * config/cr16/cr16-protos.h: Don't include target.h.
1251 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
1253         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1254         adjust register size for TDmode and TFmode for VSX registers.
1256 2013-07-08  Kai Tietz  <ktietz@redhat.com>
1258         PR target/56892
1259         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1260         hook_bool_const_tree_true.
1262 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1264         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1265         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1266         * config/s390/s390.md: Define FPR*_REGNUM constants.
1267         Fix FPR2_REGNUM constant (18 -> 17).
1268         ("*trunc<BFP:mode><DFP_ALL:mode>2")
1269         ("*trunc<DFP_ALL:mode><BFP:mode>2")
1270         ("trunc<BFP:mode><DFP_ALL:mode>2")
1271         ("trunc<DFP_ALL:mode><BFP:mode>2")
1272         ("*extend<BFP:mode><DFP_ALL:mode>2")
1273         ("*extend<DFP_ALL:mode><BFP:mode>2")
1274         ("extend<BFP:mode><DFP_ALL:mode>2")
1275         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1276         FPR4_REGNUM.
1278 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
1280         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1282 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1284         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1285         and cfun_fpr_bit_p to cfun_fpr_save_p.
1286         (s390_frame_area, s390_register_info, s390_frame_info)
1287         (s390_emit_prologue, s390_emit_epilogue)
1288         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1289         register numbers.
1290         * config/s390/s390.h: Define *_REGNUM macros for floating point
1291         register numbers.
1293 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1295         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1297 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
1299         PR rtl-optimization/57786
1300         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1301         and break out of the loop when it is set to false.
1303 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
1305         PR target/57819
1306         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1307         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1308         (const_int 63)) 0)).
1309         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1310         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1311         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1313         PR rtl-optimization/57829
1314         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1315         mask bits outside of mode are just sign-extension from mode to HWI.
1317 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
1319         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1320         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1321         adjust_address instead of change_address to keep info about alignment.
1322         (emit_strmov): Remove.
1323         (emit_memmov): New function.
1324         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1325         (expand_movmem_epilogue): Likewise and return updated rtx for
1326         destination.
1327         (expand_constant_movmem_prologue): Likewise and return updated rtx for
1328         destination and source.
1329         (decide_alignment): Refactor, handle vector_loop.
1330         (ix86_expand_movmem): Likewise.
1331         (ix86_expand_setmem): Likewise.
1332         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1334 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
1336         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1337         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1339 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
1341         * config/i386/sse.md (sse_movlhps): Change alternative 3
1342         of operand 2 to "m".
1344 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
1346         PR target/57807
1347         * config/i386/sse.md (iptr): New mode attribute.
1348         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1349         (<sse>_vm<plusminus_insn><mode>3): Ditto.
1350         (<sse>_vmmul<mode>3): Ditto.
1351         (<sse>_vmdiv<mode>3): Ditto.
1352         (sse_vmrcpv4sf2): Ditto.
1353         (<sse>_vmsqrt<mode>2): Ditto.
1354         (sse_vmrsqrtv4sf2): Ditto.
1355         (<sse>_vm<code><mode>3): Ditto.
1356         (avx_vmcmp<mode>3): Ditto.
1357         (<sse>_vmmaskcmp<mode>3): Ditto.
1358         (<sse>_comi): Ditto.
1359         (<sse>_ucomi): Ditto.
1360         (*xop_vmfrcz_<mode>): Ditto.
1361         (*fmai_fmadd_<mode>): Ditto.
1362         (*fmai_fmsub_<mode>): Ditto.
1363         (*fmai_fnmadd_<mode>): Ditto.
1364         (*fmai_fnmsub_<mode>): Ditto.
1365         (*fma4i_vmfmadd_<mode>): Ditto.
1366         (*fma4i_vmfmsub_<mode>): Ditto.
1367         (*fma4i_vmfnmadd_<mode>): Ditto.
1368         (*fma4i_vmfnmsub_<mode>): Ditto.
1369         (*xop_vmfrcz_<mode>): Ditto.
1370         (sse_cvtps2pi): Ditto.
1371         (sse_cvttps2pi): Ditto.
1372         (sse_cvtss2si): Ditto.
1373         (sse_cvtss2si_2): Ditto.
1374         (sse_cvtss2siq_2): Ditto.
1375         (sse_cvttss2si): Ditto.
1376         (sse_cvttss2siq): Ditto.
1377         (sse_cvtsd2si): Ditto.
1378         (sse_cvtsd2si_2): Ditto.
1379         (sse_cvtsd2siq_2): Ditto.
1380         (sse_cvttsd2si): Ditto.
1381         (sse_cvttsd2siq): Ditto.
1382         (sse_cvtsd2ss): Ditto.
1383         (sse_cvtss2sd): Ditto.
1384         (avx2_pbroadcast<mode>): Ditto.
1385         (avx2_pbroadcast<mode>_1): Ditto.
1386         (*avx_vperm_broadcast_v4sf): Ditto.
1388         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1389         (sse_movlhps): Ditto.
1390         (sse_storehps): Ditto.
1391         (sse_loadhps): Ditto.
1392         (sse_storelps): Ditto.
1393         (sse_loadlps): Ditto.
1394         (*vec_concatv4sf): Ditto.
1395         (*vec_interleave_highv2df): Ditto.
1396         (*vec_interleave_lowv2df): Ditto.
1397         (*vec_extractv2df_1_sse): Ditto.
1398         (*vec_extractv2df_0_sse): Ditto.
1399         (sse2_storelpd): Ditto.
1400         (sse2_loadlpd): Ditto.
1401         (sse2_movsd): Ditto.
1402         (*vec_concatv4si): Ditto.
1403         (vec_concatv2di): Ditto.
1405         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1406         for Intel asm dialect.
1407         (mmx_punpcklwd): Ditto.
1408         (mmx_punpckldq): Ditto.
1410         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1411         for intel assembler dialect.
1413 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
1415         PR target/29776
1416         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1417         for BUILT_IN_C{LZ,LRSB}*.
1418         * tree.h (CASE_INT_FN): Add FN##IMAX case.
1419         * tree-vrp.c (extract_range_basic): Handle
1420         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
1421         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1422         fall thru to code calling set_value*.
1423         * builtins.c (expand_builtin): Remove *IMAX cases.
1424         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1425         if width is bigger than 2*HWI.
1427 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
1429         PR rtl-optimization/55342
1430         * lra-int.h (lra_subreg_reload_pseudos): New.
1431         * lra.c: Add undoing optional reloads to the block diagram.
1432         (lra_subreg_reload_pseudos): New.
1433         (lra_optional_reload_pseudos): Change comments.
1434         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
1435         lra_optional_reload_pseudos after undo transformations.
1436         * lra-assigns.c (pseudo_prefix_title): New.
1437         (lra_setup_reg_renumber): Use it.
1438         (spill_for): Ditto.  Check subreg reload pseudos too.
1439         (assign_by_spills): Consider subreg reload pseudos too.
1440         * lra-constraints.c (simplify_operand_subreg): Use
1441         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1442         (curr_insn_transform): Recognize and do optional reloads.
1443         (undo_optional_reloads): New.
1444         (lra_undo_inheritance): Call undo_optional_reloads.
1446 2013-07-05  Thomas Quinot  <quinot@adacore.com>
1448         * tree-complex.c (expand_complex_operations_1): Fix typo.
1450 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
1452         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1453         (tune_params): New member 'const vec_costs'.
1454         * config/aarch64/aarch64.c (generic_vector_cost): New.
1455         (generic_tunings): New member 'generic_vector_cost'.
1456         (aarch64_builtin_vectorization_cost): New.
1457         (aarch64_add_stmt_cost): New.
1458         (TARGET_VECTORIZE_ADD_STMT_COST): New.
1459         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1461 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
1463         PR target/57777
1464         * config/i386/predicates.md (vsib_address_operand): Disallow
1465         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1467 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
1469         PR middle-end/55030
1470         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1471         expand_builtin_setjmp_receiver.
1472         (expand_label): Adjust, call expand_builtin_setjmp_receiver
1473         with NULL for the label parameter.
1474         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1475         the frame-pointer.  Adjust comments.
1476         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1477         only if LABEL is non-NULL.
1479 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
1481         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1482         (ARM_ABI_AAPCS64): Ditto.
1483         (arm_abi): Ditto.
1484         (ARM_DEFAULT_ABI): Ditto.
1486 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
1488         * config/aarch64/aarch64-builtins.c
1489         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1490         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1491         (st1): Likewise.
1492         * config/aarch64/aarch64-simd.md
1493         (aarch64_ld1<VALL:mode>): New.
1494         (aarch64_st1<VALL:mode>): Likewise.
1495         * config/aarch64/arm_neon.h
1496         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1498 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
1500         * config/i386/i386.c (gate_insert_vzeroupper): Check if
1501         target ISA is AVX.
1502         (ix86_option_override_internal):Turn on all -mavx target flags by
1503         default as they are dependent on AVX anyway.
1505 2013-07-02  Cary Coutant  <ccoutant@google.com>
1507         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1508         deterministic hash.
1509         (loc_checksum_ordered): Likewise.
1510         (hash_loc_operands): Remove inline keyword.
1512 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
1514         PR tree-optimization/57741
1515         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1516         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1517         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1518         Allow REAL_CST step_exprs if flag_associative_math.
1519         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1521 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1523         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1525 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
1527         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1529 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1531         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1532         encoding.
1533         (iorsi3_insn): Likewise.
1534         (arm_xorsi3): Likewise.
1536 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
1538         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
1539         to ...
1540         (attribute "type"): ... here, and prefix with "wmmx_".
1541         (attribute "core_cycles"): Update for attribute changes.
1542         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1543         (tbcstv4hi): Likewise.
1544         (tbcstv2si): Likewise.
1545         (iwmmxt_iordi3): Likewise.
1546         (iwmmxt_xordi3): Likewise.
1547         (iwmmxt_anddi3): Likewise.
1548         (iwmmxt_nanddi3): Likewise.
1549         (iwmmxt_arm_movdi): Likewise.
1550         (iwmmxt_movsi_insn): Likewise.
1551         (mov<mode>_internal): Likewise.
1552         (and<mode>3_iwmmxt): Likewise.
1553         (ior<mode>3_iwmmxt): Likewise.
1554         (xor<mode>3_iwmmxt): Likewise.
1555         (add<mode>3_iwmmxt): Likewise.
1556         (ssaddv8qi3): Likewise.
1557         (ssaddv4hi3): Likewise.
1558         (ssaddv2si3): Likewise.
1559         (usaddv8qi3): Likewise.
1560         (usaddv4hi3): Likewise.
1561         (usaddv2si3): Likewise.
1562         (sub<mode>3_iwmmxt): Likewise.
1563         (sssubv8qi3): Likewise.
1564         (sssubv4hi3): Likewise.
1565         (sssubv2si3): Likewise.
1566         (ussubv8qi3): Likewise.
1567         (ussubv4hi3): Likewise.
1568         (ussubv2si3): Likewise.
1569         (mulv4hi3_iwmmxt): Likewise.
1570         (smulv4hi3_highpart): Likewise.
1571         (umulv4hi3_highpart): Likewise.
1572         (iwmmxt_wmacs): Likewise.
1573         (iwmmxt_wmacsz): Likewise.
1574         (iwmmxt_wmacu): Likewise.
1575         (iwmmxt_wmacuz): Likewise.
1576         (iwmmxt_clrdi): Likewise.
1577         (iwmmxt_clrv8qi): Likewise.
1578         (iwmmxt_clr4hi): Likewise.
1579         (iwmmxt_clr2si): Likewise.
1580         (iwmmxt_uavgrndv8qi3): Likewise.
1581         (iwmmxt_uavgrndv4hi3): Likewise.
1582         (iwmmxt_uavgv8qi3): Likewise.
1583         (iwmmxt_uavgv4hi3): Likewise.
1584         (iwmmxt_tinsrb): Likewise.
1585         (iwmmxt_tinsrh): Likewise.
1586         (iwmmxt_tinsrw): Likewise.
1587         (iwmmxt_textrmub): Likewise.
1588         (iwmmxt_textrmsb): Likewise.
1589         (iwmmxt_textrmuh): Likewise.
1590         (iwmmxt_textrmsh): Likewise.
1591         (iwmmxt_textrmw): Likewise.
1592         (iwmxxt_wshufh): Likewise.
1593         (eqv8qi3): Likewise.
1594         (eqv4hi3): Likewise.
1595         (eqv2si3): Likewise.
1596         (gtuv8qi3): Likewise.
1597         (gtuv4hi3): Likewise.
1598         (gtuv2si3): Likewise.
1599         (gtv8qi3): Likewise.
1600         (gtv4hi3): Likewise.
1601         (gtv2si3): Likewise.
1602         (smax<mode>3_iwmmxt): Likewise.
1603         (umax<mode>3_iwmmxt): Likewise.
1604         (smin<mode>3_iwmmxt): Likewise.
1605         (umin<mode>3_iwmmxt): Likewise.
1606         (iwmmxt_wpackhss): Likewise.
1607         (iwmmxt_wpackwss): Likewise.
1608         (iwmmxt_wpackdss): Likewise.
1609         (iwmmxt_wpackhus): Likewise.
1610         (iwmmxt_wpackwus): Likewise.
1611         (iwmmxt_wpackdus): Likewise.
1612         (iwmmxt_wunpckihb): Likewise.
1613         (iwmmxt_wunpckihh): Likewise.
1614         (iwmmxt_wunpckihw): Likewise.
1615         (iwmmxt_wunpckilb): Likewise.
1616         (iwmmxt_wunpckilh): Likewise.
1617         (iwmmxt_wunpckilw): Likewise.
1618         (iwmmxt_wunpckehub): Likewise.
1619         (iwmmxt_wunpckehuh): Likewise.
1620         (iwmmxt_wunpckehuw): Likewise.
1621         (iwmmxt_wunpckehsb): Likewise.
1622         (iwmmxt_wunpckehsh): Likewise.
1623         (iwmmxt_wunpckehsw): Likewise.
1624         (iwmmxt_wunpckelub): Likewise.
1625         (iwmmxt_wunpckeluh): Likewise.
1626         (iwmmxt_wunpckeluw): Likewise.
1627         (iwmmxt_wunpckelsb): Likewise.
1628         (iwmmxt_wunpckelsh): Likewise.
1629         (iwmmxt_wunpckelsw): Likewise.
1630         (ror<mode>3): Likewise.
1631         (ashr<mode>3_iwmmxt): Likewise.
1632         (lshr<mode>3_iwmmxt): Likewise.
1633         (ashl<mode>3_iwmmxt): Likewise.
1634         (ror<mode>3_di): Likewise.
1635         (ashr<mode>3_di): Likewise.
1636         (lshr<mode>3_di): Likewise.
1637         (ashl<mode>3_di): Likewise.
1638         (iwmmxt_wmadds): Likewise.
1639         (iwmmxt_wmaddu): Likewise.
1640         (iwmmxt_tmia): Likewise.
1641         (iwmmxt_tmiaph): Likewise.
1642         (iwmmxt_tmiabb): Likewise.
1643         (iwmmxt_tmiatb): Likewise.
1644         (iwmmxt_tmiabt): Likewise.
1645         (iwmmxt_tmiatt): Likewise.
1646         (iwmmxt_tmovmskb): Likewise.
1647         (iwmmxt_tmovmskh): Likewise.
1648         (iwmmxt_tmovmskw): Likewise.
1649         (iwmmxt_waccb): Likewise.
1650         (iwmmxt_wacch): Likewise.
1651         (iwmmxt_waccw): Likewise.
1652         (iwmmxt_waligni): Likewise.
1653         (iwmmxt_walignr): Likewise.
1654         (iwmmxt_walignr0): Likewise.
1655         (iwmmxt_walignr1): Likewise.
1656         (iwmmxt_walignr2): Likewise.
1657         (iwmmxt_walignr3): Likewise.
1658         (iwmmxt_wsadb): Likewise.
1659         (iwmmxt_wsadh): Likewise.
1660         (iwmmxt_wsadbz): Likewise.
1661         (iwmmxt_wsadhz): Likewise.
1662         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1663         (iwmmxt_wabsdiffb): Likewise.
1664         (iwmmxt_wabsdiffh): Likewise.
1665         (iwmmxt_wabsdiffw): Likewise.
1666         (iwmmxt_waddsubhx): Likewise
1667         (iwmmxt_wsubaddhx): Likewise.
1668         (addc<mode>3): Likewise.
1669         (iwmmxt_avg4): Likewise.
1670         (iwmmxt_avg4r): Likewise.
1671         (iwmmxt_wmaddsx): Likewise.
1672         (iwmmxt_wmaddux): Likewise.
1673         (iwmmxt_wmaddsn): Likewise.
1674         (iwmmxt_wmaddun): Likewise.
1675         (iwmmxt_wmulwsm): Likewise.
1676         (iwmmxt_wmulwum): Likewise.
1677         (iwmmxt_wmulsmr): Likewise.
1678         (iwmmxt_wmulumr): Likewise.
1679         (iwmmxt_wmulwsmr): Likewise.
1680         (iwmmxt_wmulwumr): Likewise.
1681         (iwmmxt_wmulwl): Likewise.
1682         (iwmmxt_wqmulm): Likewise.
1683         (iwmmxt_wqmulwm): Likewise.
1684         (iwmmxt_wqmulmr): Likewise.
1685         (iwmmxt_wqmulwmr): Likewise.
1686         (iwmmxt_waddbhusm): Likewise.
1687         (iwmmxt_waddbhusl): Likewise.
1688         (iwmmxt_wqmiabb): Likewise.
1689         (iwmmxt_wqmiabt): Likewise.
1690         (iwmmxt_wqmiatb): Likewise.
1691         (iwmmxt_wqmiatt): Likewise.
1692         (iwmmxt_wqmiabbn): Likewise.
1693         (iwmmxt_wqmiabtn): Likewise.
1694         (iwmmxt_wqmiatbn): Likewise.
1695         (iwmmxt_wqmiattn): Likewise.
1696         (iwmmxt_wmiabb): Likewise.
1697         (iwmmxt_wmiabt): Likewise.
1698         (iwmmxt_wmiatb): Likewise.
1699         (iwmmxt_wmiatt): Likewise.
1700         (iwmmxt_wmiabbn): Likewise.
1701         (iwmmxt_wmiabtn): Likewise.
1702         (iwmmxt_wmiatbn): Likewise.
1703         (iwmmxt_wmiattn): Likewise.
1704         (iwmmxt_wmiawbb): Likewise.
1705         (iwmmxt_wmiawbt): Likewise.
1706         (iwmmxt_wmiawtb): Likewise.
1707         (iwmmxt_wmiawtt): Likewise.
1708         (iwmmxt_wmiawbbn): Likewise.
1709         (iwmmxt_wmiawbtn): Likewise.
1710         (iwmmxt_wmiawtbn): Likewise.
1711         (iwmmxt_wmiawttn): Likewise.
1712         (iwmmxt_wmerge): Likewise.
1713         (iwmmxt_tandc<mode>3): Likewise.
1714         (iwmmxt_torc<mode>3): Likewise.
1715         (iwmmxt_torvsc<mode>3): Likewise.
1716         (iwmmxt_textrc<mode>3): Likewise.
1717         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1718         (wmmxt_pack): Likewise.
1719         (wmmxt_mult_c1): Likewise.
1720         (wmmxt_mult_c2): Likewise.
1721         (wmmxt_alu_c1): Likewise.
1722         (wmmxt_alu_c2): Likewise.
1723         (wmmxt_alu_c3): Likewise.
1724         (wmmxt_transfer_c1): Likewise.
1725         (wmmxt_transfer_c2): Likewise.
1726         (wmmxt_transfer_c3): Likewise.
1727         (marvell_f_iwmmxt_wstr): Likewise.
1728         (marvell_f_iwmmxt_wldr): Likewise.
1730 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
1732         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1734 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1736         Revert:
1737         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1738         * lra-constraints.c (need_for_split_p): Check call used hard regs
1739         living through calls.
1741         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1742         call used regs for call insn.
1744 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
1746         PR target/57736
1747         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1748         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1750 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
1752         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1754 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
1756         * lra-constraints.c (need_for_split_p): Check call used hard regs
1757         living through calls.
1759 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1761         PR target/57744
1762         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1763         to tie with any other modes.  Eliminate Altivec vector mode tests,
1764         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
1765         code, to return 0 if testing MODE2 for a condition, if we've
1766         already tested MODE1 for the same condition.
1768 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1770         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1771         layout.
1773 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1775         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1776         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1778 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1780         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1781         Define.
1782         (aarch64_symbolic_constant_p): Remove.
1783         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1784         static.  Fix line length and white space.
1785         (aarch64_symbolic_constant_p): Remove.
1786         * config/aarch64/predicates.md (aarch64_valid_symref):
1787         Use aarch64_classify_symbol_expression.
1789 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1791         * config/arm/constraints.md (Ts): New constraint.
1792         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1793         16-bit encodings.
1794         (compare_scc): Use "Ts" constraint for operand 0.
1795         (ior_scc_scc): Likewise.
1796         (and_scc_scc): Likewise.
1797         (and_scc_scc_nodom): Likewise.
1798         (ior_scc_scc_cmp): Likewise for operand 7.
1799         (and_scc_scc_cmp): Likewise.
1800         * config/arm/thumb2.md (thumb2_movsi_insn):
1801         Add alternatives for 16-bit encodings.
1802         (thumb2_movhi_insn): Likewise.
1803         (thumb2_movsicc_insn): Likewise.
1804         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
1805         (thumb2_negscc): Use "Ts" constraint.
1806         Move mvn instruction outside cond_exec block.
1807         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1808         for 16-bit encodings.
1810 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1812         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1813         encoding.
1814         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1815         (mulsi3subsi): Likewise.
1816         (mulsidi3adddi): Likewise.
1817         (mulsidi3_v6): Likewise.
1818         (umulsidi3_v6): Likewise.
1819         (umulsidi3adddi_v6): Likewise.
1820         (smulsi3_highpart_v6): Likewise.
1821         (umulsi3_highpart_v6): Likewise.
1822         (mulhisi3tb): Likewise.
1823         (mulhisi3bt): Likewise.
1824         (mulhisi3tt): Likewise.
1825         (maddhisi4): Likewise.
1826         (maddhisi4tb): Likewise.
1827         (maddhisi4tt): Likewise.
1828         (maddhidi4): Likewise.
1829         (maddhidi4tb): Likewise.
1830         (maddhidi4tt): Likewise.
1831         (zeroextractsi_compare0_scratch): Likewise.
1832         (insv_zero): Likewise.
1833         (insv_t2): Likewise.
1834         (anddi_notzesidi_di): Likewise.
1835         (anddi_notsesidi_di): Likewise.
1836         (andsi_notsi_si): Likewise.
1837         (iordi_zesidi_di): Likewise.
1838         (xordi_zesidi_di): Likewise.
1839         (andsi_iorsi3_notsi): Likewise.
1840         (smax_0): Likewise.
1841         (smax_m1): Likewise.
1842         (smin_0): Likewise.
1843         (not_shiftsi): Likewise.
1844         (unaligned_loadsi): Likewise.
1845         (unaligned_loadhis): Likewise.
1846         (unaligned_loadhiu): Likewise.
1847         (unaligned_storesi): Likewise.
1848         (unaligned_storehi): Likewise.
1849         (extv_reg): Likewise.
1850         (extzv_t2): Likewise.
1851         (divsi3): Likewise.
1852         (udivsi3): Likewise.
1853         (arm_zero_extendhisi2addsi): Likewise.
1854         (arm_zero_extendqisi2addsi): Likewise.
1855         (compareqi_eq0): Likewise.
1856         (arm_extendhisi2_v6): Likewise.
1857         (arm_extendqisi2addsi): Likewise.
1858         (arm_movt): Likewise.
1859         (thumb2_ldrd): Likewise.
1860         (thumb2_ldrd_base): Likewise.
1861         (thumb2_ldrd_base_neg): Likewise.
1862         (thumb2_strd): Likewise.
1863         (thumb2_strd_base): Likewise.
1864         (thumb2_strd_base_neg): Likewise.
1865         (arm_negsi2): Add alternative for 16-bit encoding.
1866         (arm_one_cmplsi2): Likewise.
1868 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1870         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1871         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1872         (movdfcc): Likewise.
1873         * config/arm/vfp.md (*thumb2_movsf_vfp):
1874         Disable predication for arm_restrict_it.
1875         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1876         (*thumb2_movdfcc_vfp): Likewise.
1877         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1878         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1879         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1880         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1881         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1882         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1883         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1884         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1885         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1886         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1887         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1888         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1889         Disable predication for arm_restrict_it.
1891 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
1893         * config/i386/bmiintrin.h (_bextr_u32): New.
1894         (_bextr_u64): Ditto.
1896 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1898         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1899         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1900         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1901         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1902         * config/mips/n32-elf.h: ...this new file.
1904 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
1906         PR target/57224
1907         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1908         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1910 2013-06-27  Catherine Moore <clm@codesourcery.com>
1912         * config/mips/mips-tables.opt: Regenerate.
1913         * config/mips/mips-cpus.def: Add m14ke and m14kec.
1914         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1915         * doc/invoke.texi: Add -m14kc.
1917 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1919         PR target/57623
1920         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1921         constraints of operand 1 and 2.
1923         PR target/57623
1924         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1925         to match RTL canonicalization.  Swap predicates and
1926         constraints of operand 1 and 2.
1928 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
1930         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1931         Process OP_INOUT regs for splitting too.
1933 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
1935         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1936         decl before the loop, initialize to NULL.
1937         (vectorizable_load): Initialize ptr_incr to NULL.
1939 2013-06-27  Martin Jambor  <mjambor@suse.cz>
1941         PR lto/57208
1942         * ipa-ref.h (ipa_maybe_record_reference): Declare.
1943         * ipa-ref.c (ipa_maybe_record_reference): New function.
1944         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1945         * ipa-cp.c (create_specialized_node): Record potential references from
1946         aggvals.
1947         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1949 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1951         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1952         parameter 'mode' of type 'enum machine_mode mode'; change to pass
1953         'mode' to force_reg.
1954         (aarch64_add_offset): Update calls to aarch64_force_temporary.
1955         (aarch64_expand_mov_immediate): Likewise.
1957 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
1959         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1960         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1962 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1964         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1965         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1966         (struct machine_function): Add tbegin_p.
1967         (s390_canonicalize_comparison): Fold CC mode compares to
1968         conditional jump if possible.
1969         (s390_emit_jump): Return the emitted jump.
1970         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1971         Handle CCRAWmode compares.
1972         (s390_option_override): Default to -mhtm if available.
1973         (s390_reg_clobbered_rtx): Handle floating point regs as well.
1974         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1975         FPRs instead of df_regs_ever_live_p.
1976         (s390_optimize_nonescaping_tx): New function.
1977         (s390_init_frame_layout): Extend clobbered_regs array to cover
1978         FPRs as well.
1979         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1980         (s390_expand_tbegin): New function.
1981         (enum s390_builtin): New enum definition.
1982         (code_for_builtin): New array definition.
1983         (s390_init_builtins): New function.
1984         (s390_expand_builtin): New function.
1985         (TARGET_INIT_BUILTINS): Define.
1986         (TARGET_EXPAND_BUILTIN): Define.
1987         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1988         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1989         (s390_alc_comparison): Likewise.
1990         * config/s390/s390-modes.def: Add CCRAWmode.
1991         * config/s390/s390.h (processor_flags): Add PF_TX.
1992         (TARGET_CPU_HTM): Define macro.
1993         (TARGET_HTM): Define macro.
1994         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1995         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1996         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1997         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1998         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1999         (TBEGIN_MASK, TBEGINC_MASK): New constants.
2000         ("*cc_to_int"): Move up.
2001         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
2002         constants other than 0.
2003         ("*ccraw_to_int"): New insn and splitter definition.
2004         ("tbegin", "tbegin_nofloat", "tbegin_retry")
2005         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
2006         ("tx_assist"): New expander.
2007         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
2008         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
2009         * config/s390/s390.opt: Add -mhtm option.
2010         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
2011         * config/s390/htmxlintrin.h: New file.
2012         * config/s390/htmintrin.h: New file.
2013         * config/s390/s390intrin.h: New file.
2014         * doc/extend.texi: Document htm builtins.
2015         * config.gcc: Add the new header files to extra_headers.
2017 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
2019         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
2020         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
2022 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2023             Pat Haugen <pthaugen@us.ibm.com>
2024             Peter Bergner <bergner@vnet.ibm.com>
2026         * config/rs6000/power8.md: New.
2027         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
2028         setting for power8 entry.
2029         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
2030         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
2031         test for Power4/Power5 only.
2032         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
2033         support.
2034         (force_new_group): Adjust comment.
2035         * config/rs6000/rs6000.md: Include power8.md.
2037 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
2039         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
2040         * config/arm/arm-protos.h (arm_max_conditional_execute): New
2041         declaration.
2042         (tune_params): Update comment.
2043         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
2044         (arm_max_conditional_execute): New function.
2045         (thumb2_final_prescan_insn): Use max_insn_skipped and
2046         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
2048 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
2050         PR tree-optimization/57705
2051         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
2052         SSA_NAME step, provided that it is not defined inside the loop.
2053         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
2054         (get_initial_def_for_induction): Handle SSA_NAME IV step.
2056 2013-06-25  Martin Jambor  <mjambor@suse.cz>
2058         PR middle-end/57670
2059         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
2060         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
2061         calls in the dump.
2062         (ipa_note_param_call): Initialize member_ptr flag.
2063         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
2064         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
2065         (ipa_write_indirect_edge_info): Stream member_ptr flag.
2066         (ipa_read_indirect_edge_info): Likewise.
2068 2013-06-25  Richard Biener  <rguenther@suse.de>
2070         PR middle-end/56977
2071         * passes.c (init_optimization_passes): Move pass_fold_builtins
2072         and pass_dce earlier with -Og.
2074 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2076         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
2077         <BIT_FIELD_REF>: Remove trailing TAB.
2078         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
2079         remove blank line.
2081 2013-06-24  Martin Jambor  <mjambor@suse.cz>
2083         PR tree-optimization/57358
2084         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
2085         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
2086         (ipa_analyze_params_uses): Generate pessimistic info when true.
2088 2013-06-24  Martin Jambor  <mjambor@suse.cz>
2090         PR tree-optimization/57539
2091         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
2092         global.inlined_to of the new node to it.  All callers changed.
2093         * ipa-inline-transform.c (clone_inlined_nodes): New variable
2094         inlining_into, pass it to cgraph_clone_node.
2095         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
2096         ipa_free_edge_args_substructures.
2097         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
2098         rdesc linked list.  Do not assert rdesc edges have inlined caller.
2099         Assert we have found an rdesc in the rdesc list.
2101 2013-06-24  Richard Biener  <rguenther@suse.de>
2103         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
2104         (pointer_set_lookup): Declare.
2105         (class pointer_map): New template class implementing a
2106         generic pointer to T map.
2107         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
2108         pointer_map<T>::contains, pointer_map<T>::insert,
2109         pointer_map<T>::traverse): New functions.
2110         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
2111         (pointer_set_lookup): New function.
2112         (pointer_set_contains): Use pointer_set_lookup.
2113         (pointer_set_insert): Likewise.
2114         (insert_aux): Remove.
2115         (struct pointer_map_t): Embed a pointer_set_t.
2116         (pointer_map_create): Adjust.
2117         (pointer_map_destroy): Likewise.
2118         (pointer_map_contains): Likewise.
2119         (pointer_map_insert): Likewise.
2120         (pointer_map_traverse): Likewise.
2121         * tree-streamer.h (struct streamer_tree_cache_d): Use a
2122         pointer_map<unsigned> instead of a pointer_map_t.
2123         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
2124         (streamer_tree_cache_lookup): Likewise.
2125         (streamer_tree_cache_create): Likewise.
2126         (streamer_tree_cache_delete): Likewise.
2127         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
2128         pointer_map<unsigned> instead of a pointer_map_t.
2129         (lto_init_tree_ref_encoder): Adjust.
2130         (lto_destroy_tree_ref_encoder): Likewise.
2131         * lto-section-out.c (lto_output_decl_index): Likewise.
2132         (lto_record_function_out_decl_state): Likewise.
2133         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2135 2013-06-24  Richard Biener  <rguenther@suse.de>
2137         PR tree-optimization/57488
2138         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2140 2013-06-24  Alan Modra  <amodra@gmail.com>
2142         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2143         (gen_easy_altivec_constant): Likewise.
2144         * config/rs6000/predicates.md (easy_vector_constant_add_self,
2145         easy_vector_constant_msb): Likewise.
2147 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
2149         PR target/57688
2150         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2151         add missing return true.
2153 2013-06-23  Oleg Endo <olegendo@gcc.gnu.org>
2155         PR target/52483
2156         * config/sh/predicates.md (general_extend_operand): Invoke
2157         general_movsrc_operand for memory operands.
2158         (general_movsrc_operand): Allow reg+reg addressing, do not use
2159         general_operand for memory operands.
2161 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
2163         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
2164         when current target options does not apply.
2165         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2166         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
2167         * config/i386/bmiintrin.h: Pass appropriate target
2168         attributes to header.
2169         * config/i386/mmintrin.h: Ditto.
2170         * config/i386/nmmintrin.h: Ditto.
2171         * config/i386/avx2intrin.h: Ditto.
2172         * config/i386/fxsrintrin.h: Ditto.
2173         * config/i386/tbmintrin.h: Ditto.
2174         * config/i386/xsaveintrin.h: Ditto.
2175         * config/i386/f16cintrin.h: Ditto.
2176         * config/i386/xtestintrin.h: Ditto.
2177         * config/i386/xsaveoptintrin.h: Ditto.
2178         * config/i386/bmi2intrin.h: Ditto.
2179         * config/i386/lzcntintrin.h: Ditto.
2180         * config/i386/smmintrin.h: Ditto.
2181         * config/i386/wmmintrin.h: Ditto.
2182         * config/i386/x86intrin.h: Remove all header include guards.
2183         * config/i386/prfchwintrin.h: Ditto.
2184         * config/i386/pmmintrin.h: Ditto.
2185         * config/i386/tmmintrin.h: Ditto.
2186         * config/i386/xmmintrin.h: Ditto.
2187         * config/i386/popcntintrin.h: Ditto.
2188         * config/i386/rdseedintrin.h: Ditto.
2189         * config/i386/ammintrin.h: Ditto.
2190         * config/i386/emmintrin.h: Ditto.
2191         * config/i386/immintrin.h: Remove all header include guards.
2192         * config/i386/fma4intrin.h: Ditto.
2193         * config/i386/lwpintrin.h: Ditto.
2194         * config/i386/xopintrin.h: Ditto.
2195         * config/i386/ia32intrin.h: Ditto.
2196         * config/i386/avxintrin.h: Ditto.
2197         * config/i386/rtmintrin.h: Ditto.
2198         * config/i386/fmaintrin.h: Ditto.
2199         * config/i386/mm3dnow.h: Ditto.
2201 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
2203         * common/config/i386/i386-common.c: Handle LZCNT.
2205 2013-06-22  Andi Kleen  <ak@linux.intel.com>
2207         * doc/extend.texi: Use __atomic_store_n instead of
2208         __atomic_store in HLE example.
2210 2013-06-22  Oleg Endo <olegendo@gcc.gnu.org>
2212         * config/sh/sh.c: Remove <cstdlib> workaround.
2214 2013-06-21  Andi Kleen  <ak@linux.intel.com>
2216         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
2218 2013-06-21  Andi Kleen  <ak@linux.intel.com>
2220         * doc/extend.texi: Document that __atomic_clear and
2221           __atomic_test_and_set should only be used with bool.
2223 2013-06-20  Jan Hubicka  <jh@suse.cz>
2225         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2226         types_same_for_odr.
2227         * tree.c (decls_same_for_odr): New function.
2228         (same_for_edr): New function.
2229         (types_same_for_odr): New function.
2230         (get_binfo_at_offset): Use it.
2231         * tree.h (types_same_for_odr): Declare.
2233 2013-06-20  Oleg Endo <olegendo@gcc.gnu.org>
2234             Jason Merrill  <jason@redhat.com>
2236         * system.h: Include <cstdlib> as well as <stdlib.h>.
2238 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
2240         PR target/57655
2241         * config/i386/i386.c (construct_container): Report error if
2242         long double is used with disabled x87 float returns.
2244 2013-06-20  Jan Hubicka  <jh@suse.cz>
2246         * lto-cgraph.c (input_symtab): Do not set cgraph state.
2248 2013-06-20  Joern Rennecke <joern.rennecke@embecosm.com>
2250         PR rtl-optimization/57425
2251         PR rtl-optimization/57569
2252         * alias.c (write_dependence_p): Remove parameters mem_mode and
2253         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
2254         Changed all callers.
2255         (canon_anti_dependence): Get comments and semantics in sync.
2256         Add parameter mem_canonicalized.  Changed all callers.
2257         * rtl.h (canon_anti_dependence): Update prototype.
2259 2013-06-20  Richard Biener  <rguenther@suse.de>
2261         * data-streamer-in.c (streamer_read_uhwi): Optimize single
2262         byte case, inline streamer_read_uchar and defer section
2263         overrun check.
2265 2013-06-20  Richard Biener  <rguenther@suse.de>
2267         PR tree-optimization/57584
2268         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2269         SSA names into the expanded expression that take part in
2270         abnormal coalescing.
2272 2013-06-19  Sharad Singhai  <singhai@google.com>
2274         * gcov.c (print_usage): Handle new option.
2275         (process_args): Ditto.
2276         (get_gcov_intermediate_filename): New function.
2277         (output_intermediate_file): New function.
2278         (output_gcov_file): New function
2279         (generate_results): Handle new option.
2280         (release_function): Relase demangled name.
2281         (read_graph_file): Handle demangled name.
2282         (output_lines): Ditto.
2283         * doc/gcov.texi: Document gcov intermediate format.
2285 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
2287         PR bootstrap/57604
2288         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2289         (lra_emit_add): Use the functions.  Add comment about Y as an
2290         address segment.
2292 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
2294         PR driver/57652
2295         * collect2.c (collect_atexit): New.
2296         (collect_exit): Delete.
2297         (main): Register collect_atexit with atexit.
2298         (collect_wait): Change collect_exit to exit.
2299         (do_wait): Same.
2300         * collect2.h (collect_exit): Delete.
2301         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2303 2013-06-19  Wei Mi  <wmi@google.com>
2305         PR rtl-optimization/57518
2306         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2307         if regno is used in paradoxical subreg.
2308         (update_equiv_regs): Check pdx_subregs[regno] before
2309         set a reg to be equivalent with a mem.
2311 2013-06-19  Matthias Klose  <doko@ubuntu.com>
2313         PR driver/57651
2314         * file-find.h (find_a_file): Add a mode parameter.
2315         * file-find.c (find_a_file): Likewise.
2316         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2317         with X_OK for the executables.
2318         * collect2.c (main): Call find_a_file with X_OK.
2320 2013-06-19  Steve Ellcey  <sellcey@mips.com>
2322         PR target/56942
2323         * config/mips/mips.md (casesi_internal_mips16_<mode>):
2324         Use NEXT_INSN instead of next_real_insn.
2326 2013-06-19  Jan Hubicka  <jh@suse.cz>
2328         * cgraph.h (const_value_known_p): Replace by ...
2329         (ctor_for_folding): .. this one.
2330         * cgraphunit.c (process_function_and_variable_attributes): Use it.
2331         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2332         * expr.c (expand_expr_real_1): Likewise.
2333         (string_constant): Likewise.
2334         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2335         * ipa.c (process_references): Likewise.
2336         (symtab_remove_unreachable_nodes): Likewise.
2337         * ipa-inline-analysis.c (param_change_prob): Likewise.
2338         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2339         (get_base_constructor): Likwise.
2340         * varpool.c (varpool_remove_node): Likewise.
2341         (varpool_remove_initializer): LIkewise.
2342         (dump_varpool_node): LIkwise.
2343         (const_value_known_p): Rewrite to ...
2344         (ctor_for_folding): ... this one.
2346 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
2348         PR driver/57651
2349         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2350         PERSONALITY in $PATH derived prefixes.
2352 2013-06-19  Jeff Law  <law@redhat.com>
2354         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2355         in comment.
2357         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2358         (simplify_bitwise_binary): Use it to simpify certain binary ops on
2359         booleans.
2361 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
2363         * config/arm/vfp.md: Move VFP instruction classification documentation
2364         to ...
2365         * config/arm/arm.md: ... here.  Update instruction classification
2366         documentation.
2368 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
2370         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2371         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2372         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
2374 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
2376         PR target/57609
2377         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2378         with NEXT_INSN.  Use tablejump_p to check for jump table data
2379         insns.
2381 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
2383         PR c++/56544
2384         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2385         that now in C++ the value is correct per the C++ standards.
2387 2013-06-19  Richard Biener  <rguenther@suse.de>
2389         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2390         for global context.
2392 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2394         Revert:
2395         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2397         PR target/57609
2398         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2399         with next_active_insn.
2401 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
2403         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2404         functions are inlined during failures to flag an error.
2405         * tree-inline.c (expand_call_inline): Allow the error to be flagged
2406         in early inline pass.
2408 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2410         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2411         in comments.
2413 2013-06-18  Julian Brown  <julian@codesourcery.com>
2415         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2416         Permit virtual register pre-reload if !strict.
2417         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2418         change.
2419         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2420         prototype.
2421         * config/arm/neon.md (movmisalign<mode>): Use
2422         neon_perm_struct_or_reg_operand instead of
2423         neon_struct_or_register_operand.
2424         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2425         neon_permissive_struct_operand instead of neon_struct_operand.
2426         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2427         neon_vector_mem_operand.
2428         * config/arm/predicates.md (neon_struct_operand): Adjust call to
2429         neon_vector_mem_operand.
2430         (neon_permissive_struct_operand): New.
2431         (neon_struct_or_register_operand): Rename to...
2432         (neon_perm_struct_or_reg_operand): This. Adjust call to
2433         neon_vector_mem_operand.
2435 2013-06-18  Richard Biener  <rguenther@suse.de>
2437         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2438         * lto-streamer.h: Include pointer-set.h.
2439         (struct lto_decl_slot): Remove.
2440         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2441         Remove next_index entry.
2442         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2443         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2444         (lto_init_tree_ref_encoder): Adjust.
2445         (lto_destroy_tree_ref_encoder): Likewise.
2446         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2447         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2448         (lto_output_decl_index): Adjust.
2449         (lto_new_out_decl_state): Likewise.
2450         (lto_record_function_out_decl_state): Likewise.
2451         * lto-streamer-out.c (copy_function): Likewise.
2453 2013-06-18  Richard Biener  <rguenther@suse.de>
2455         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2456         * cgraphunit.c: Include cfgloop.h.
2457         (init_lowered_empty_function): Initialize the loop tree.
2458         (assemble_thunk): Insert new BBs into loops.
2460 2013-06-18  Richard Biener  <rguenther@suse.de>
2462         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2463         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2464         the map from cache entry to cache index optional.
2465         (streamer_tree_cache_replace_tree): Adjust accordingly.
2466         (streamer_tree_cache_append): Likewise.
2467         (streamer_tree_cache_delete): Likewise.
2468         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2469         streamer cache map from cache entry to cache index.
2470         * lto-streamer-out.c (create_output_block): Adjust.
2472 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
2474         * config/arm/arm.md (attribute "insn"): Move multiplication and
2475         division attributes to...
2476         (attribute "type"): ... here.  Remove mult.
2477         (attribute "mul32"): New attribute.
2478         (attribute "mul64"): Add umaal.
2479         (*arm_mulsi3): Update attributes.
2480         (*arm_mulsi3_v6): Likewise.
2481         (*thumb_mulsi3): Likewise.
2482         (*thumb_mulsi3_v6): Likewise.
2483         (*mulsi3_compare0): Likewise.
2484         (*mulsi3_compare0_v6): Likewise.
2485         (*mulsi_compare0_scratch): Likewise.
2486         (*mulsi_compare0_scratch_v6): Likewise.
2487         (*mulsi3addsi): Likewise.
2488         (*mulsi3addsi_v6): Likewise.
2489         (*mulsi3addsi_compare0): Likewise.
2490         (*mulsi3addsi_compare0_v6): Likewise.
2491         (*mulsi3addsi_compare0_scratch): Likewise.
2492         (*mulsi3addsi_compare0_scratch_v6): Likewise.
2493         (*mulsi3subsi): Likewise.
2494         (*mulsidi3adddi): Likewise.
2495         (*mulsi3addsi_v6): Likewise.
2496         (*mulsidi3adddi_v6): Likewise.
2497         (*mulsidi3_nov6): Likewise.
2498         (*mulsidi3_v6): Likewise.
2499         (*umulsidi3_nov6): Likewise.
2500         (*umulsidi3_v6): Likewise.
2501         (*umulsidi3adddi): Likewise.
2502         (*umulsidi3adddi_v6): Likewise.
2503         (*smulsi3_highpart_nov6): Likewise.
2504         (*smulsi3_highpart_v6): Likewise.
2505         (*umulsi3_highpart_nov6): Likewise.
2506         (*umulsi3_highpart_v6): Likewise.
2507         (mulhisi3): Likewise.
2508         (*mulhisi3tb): Likewise.
2509         (*mulhisi3bt): Likewise.
2510         (*mulhisi3tt): Likewise.
2511         (maddhisi4): Likewise.
2512         (*maddhisi4tb): Likewise.
2513         (*maddhisi4tt): Likewise.
2514         (maddhidi4): Likewise.
2515         (*maddhidi4tb): Likewise.
2516         (*maddhidi4tt): Likewise.
2517         (divsi3): Likewise.
2518         (udivsi3): Likewise.
2519         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2520         (thumb2_mulsi_short_compare0): Likewise.
2521         (thumb2_mulsi_short_compare0_scratch): Likewise.
2522         * config/arm/arm1020e.md (1020mult1): Update attribute change.
2523         (1020mult2): Likewise.
2524         (1020mult3): Likewise.
2525         (1020mult4): Likewise.
2526         (1020mult5): Likewise.
2527         (1020mult6): Likewise.
2528         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2529         change.
2530         (cortex_a15_mult64): Likewise.
2531         (cortex_a15_sdiv): Likewise.
2532         (cortex_a15_udiv): Likewise.
2533         * config/arm/arm1026ejs.md (mult1): Update attribute change.
2534         (mult2): Likewise.
2535         (mult3): Likewise.
2536         (mult4): Likewise.
2537         (mult5): Likewise.
2538         (mult6): Likewise.
2539         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2540         (pj4_ir_div): Likewise.
2541         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2542         (11_mult2): Likewise.
2543         (11_mult3): Likewise.
2544         (11_mult4): Likewise.
2545         (11_mult5): Likewise.
2546         (11_mult6): Likewise.
2547         (11_mult7): Likewise.
2548         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2549         (cortex_a8_mla): Likewise.
2550         (cortex_a8_mull): Likewise.
2551         (cortex_a8_smulwy): Likewise.
2552         (cortex_a8_smlald): Likewise.
2553         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2554         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2555         (cortex_r4_mul_3): Likewise.
2556         (cortex_r4_mla_4): Likewise.
2557         (cortex_r4_mla_3): Likewise.
2558         (cortex_r4_smlald): Likewise.
2559         (cortex_r4_mull): Likewise.
2560         (cortex_r4_sdiv): Likewise.
2561         (cortex_r4_udiv): Likewise.
2562         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2563         (cortex_a7_idiv): Likewise.
2564         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2565         (9_mult2): Likewise.
2566         (9_mult3): Likewise.
2567         (9_mult4): Likewise.
2568         (9_mult5): Likewise.
2569         (9_mult6): Likewise.
2570         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2571         (cortex_a53_sdiv): Likewise.
2572         (cortex_a53_udiv): Likewise.
2573         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2574         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2575         (mp626_mult2): Likewise.
2576         (mp626_mult3): Likewise.
2577         (mp626_mult4): Likewise.
2578         * config/arm/fa526.md (526_mult1): Update attribute change.
2579         (526_mult2): Likewise.
2580         * config/arm/arm-generic.md (mult): Update attribute change.
2581         (mult_ldsched_strongarm): Likewise.
2582         (mult_ldsched): Likewise.
2583         (multi_cycle): Likewise.
2584         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2585         * config/arm/fa606te.md (606te_mult1): Update attribute change.
2586         (606te_mult2): Likewise.
2587         (606te_mult3): Likewise.
2588         (606te_mult4): Likewise.
2589         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2590         (cortex_a9_mac16): Likewise.
2591         (cortex_a9_multiply): Likewise.
2592         (cortex_a9_mac): Likewise.
2593         (cortex_a9_multiply_long): Likewise.
2594         * config/arm/fa626te.md (626te_mult1): Update attribute change.
2595         (626te_mult2): Likewise.
2596         (626te_mult3): Likewise.
2597         (626te_mult4): Likewise.
2599 2013-06-18  Richard Biener  <rguenther@suse.de>
2601         PR lto/57334
2602         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2604 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2606         PR target/57609
2607         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2608         with next_active_insn.
2610 2013-06-18  Alan Modra  <amodra@gmail.com>
2612         * config/rs6000/rs6000.h (enum data_align): New.
2613         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2614         (DATA_ABI_ALIGNMENT): Define.
2615         (CONSTANT_ALIGNMENT): Correct comment.
2616         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2617         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2619 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
2621         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2622         ATTRIBUTE_UNUSED marking.
2624 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
2626         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2627         alternative and update.
2628         (aarch64_dup_lanedi): Delete.
2629         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2630         * config/aarch64/aarch64-simd-builtins.def: Update.
2632 2013-06-17  Richard Biener  <rguenther@suse.de>
2634         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2635         (lto_input_scc): Declare.
2636         (lto_input_tree_1): Likewise.
2637         (struct lto_stats_d): Add num_tree_bodies_output and
2638         num_pickle_refs_output.
2639         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2640         (lto_read_tree_1): Split out from ...
2641         (lto_read_tree): ... this.
2642         (lto_input_scc): New function.
2643         (lto_input_tree_1): Split out from ...
2644         (lto_input_tree): ... this.  Handle LTO_tree_scc.
2645         (lto_data_in_create): Create the streamer cache without hashes.
2646         * lto-streamer-out.c (create_output_block): Create the streamer
2647         cache with hashes when not doing WPA.
2648         (lto_write_tree_1): Split out from ...
2649         (lto_write_tree): ... this.
2650         (get_symbol_initial_value): New function.
2651         (lto_output_tree_1): Split out from ...
2652         (lto_output_tree): ... this.  Write trees as series of SCCs
2653         using a DFS walk via DFS_write_tree.
2654         (struct sccs, struct scc_entry): New types.
2655         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2656         (DFS_write_tree_body): New function.
2657         (DFS_write_tree): Likewise.
2658         (hash_tree): Likewise.
2659         (scc_entry_compare): Likewise.
2660         (hash_scc): Likewise.
2661         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2662         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2663         TREE_CHAIN as regular reference.
2664         (streamer_read_integer_cst): Remove.
2665         (streamer_get_pickled_tree): Adjust.
2666         * tree-streamer-out.c (streamer_write_chain): Disable streaming
2667         of DECL_EXTERNALs in BLOCK_VARS for now.
2668         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2669         reference.
2670         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2671         Add hash value argument and record that if hashes are recorded
2672         in the cache.
2673         (streamer_tree_cache_insert_1): Adjust.
2674         (streamer_tree_cache_insert): Likewise.
2675         (streamer_tree_cache_insert_at): Rename to ...
2676         (streamer_tree_cache_replace_tree): ... this and adjust.
2677         (streamer_tree_cache_append): Adjust.
2678         (record_common_node): Likewise.
2679         (streamer_tree_cache_create): Add argument whether to
2680         record hash values together with trees.
2681         (streamer_tree_cache_delete): Adjust.
2682         * tree-streamer.h (struct streamer_tree_cache_d): Add
2683         vector of hashes.
2684         (streamer_read_integer_cst): Remove.
2685         (streamer_tree_cache_insert): Adjust.
2686         (streamer_tree_cache_append): Likewise.
2687         (streamer_tree_cache_insert_at): Rename to ...
2688         (streamer_tree_cache_replace_tree): ... this and adjust.
2689         (streamer_tree_cache_create): Add argument whether to record hashes.
2690         (streamer_tree_cache_get): Rename to ...
2691         (streamer_tree_cache_get_tree): ... this.
2692         (streamer_tree_cache_get_hash): New function.
2693         * tree.c (cache_integer_cst): New function.
2694         * tree.h (cache_integer_cst): Declare.
2695         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2696         * lto-symtab.c (lto_varpool_replace_node): Only release
2697         DECL_INITIAL of non-prevailing decls.
2698         * varpool.c (varpool_remove_initializer): Do not release
2699         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2701 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2703         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2704         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2705         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2706         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2707         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2708         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2709         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2710         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2711         instead of TARGET_64BIT.
2712         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2713         Require ISA_HAS_<D>DIV.
2715 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
2717         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2718         (mips*-*-linux*): Move default with_llsc setting to where other
2719         defaults are set.
2720         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2721         with_arch block.
2722         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2723         Likewise.  Remove default with_tune setting.  Move default float
2724         setting to its own block.  Handle with_llsc in the same block as above.
2726 2013-06-16  Joern Rennecke <joern.rennecke@embecosm.com>
2728         PR rtl-optimization/57425
2729         PR rtl-optimization/57569
2730         * alias.c (write_dependence_p): Add new parameters mem_mode,
2731         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
2732         Changed all callers.
2733         (canon_anti_dependence): New function.
2734         * cse.c (check_dependence): Use canon_anti_dependence.
2735         * cselib.c (cselib_invalidate_mem): Likewise.
2736         * rtl.h (canon_anti_dependence): Declare.
2738 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
2740         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2741         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2742         ".set mips3" for 64-bit targets.
2744 2013-06-15  Dehao Chen  <dehao@google.com>
2746         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2747         * gimple-low.c (gimple_check_call_matching_types): Likewise.
2748         (gimple_check_call_args): Likewise.
2749         * value-prof.c (check_ic_target): Likewise.
2750         * ipa-inline.c (early_inliner): Likewise.
2751         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2752         * cgraph.c (cgraph_create_edge_1): Likewise.
2753         (cgraph_make_edge_direct): Likewise.
2755 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2757         PR target/57615
2758         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2759         rs6000_output_move_128bit to handle emitting quad memory
2760         operations.  Set attribute length to 8 bytes.
2762 2013-06-14  Vidya Praveen <vidyapraveen@arm.com>
2764         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2765         New pattern.
2766         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2767         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2768         (aarch64_<su>mlsl<mode>): Likewise.
2770 2013-06-14  Mike Stump  <mikestump@comcast.net>
2772         * Makefile.in (TARGET_H): Add insn-codes.h.
2774 2013-06-14  Alan Modra  <amodra@gmail.com>
2776         PR middle-end/57134
2777         PR middle-end/57586
2778         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2779         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
2780         bitfield expansion when EXPAND_MEMORY.
2781         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2783 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
2785         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2786         test for clearing quad memory on 32-bit later.
2788 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2790         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2791         (fold_negate_expr): Likewise.
2792         (fold_real_zero_addition_p): Handle vectors.
2793         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2795 2013-06-14  Alan Modra  <amodra@gmail.com>
2797         * varasm.c (force_const_mem): Revert 2013-06-07 change.
2799 2013-06-13  Jan Hubicka  <jh@suse.cz>
2801         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2802         Local comdats are not externally visible.
2803         * symtab.c (dump_symtab_base): Dump externally visible.
2804         (verify_symtab_base): Verify back links in the symtab hash.
2806 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2808         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2809         CONVERT_EXPR as equal nodes.
2811 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
2813         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2815 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
2817         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2818         Generalize to complex and vector.
2819         * tree.c (build_all_ones_cst): New function.
2820         * tree.h (build_all_ones_cst): Declare it.
2822 2013-06-13  Alan Modra  <amodra@gmail.com>
2824         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2825         * config/rs6000/rs6000.md (signbittf2): New insn.
2826         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2827         (abstf2_internal, cmptf_internal2): Likewise.
2828         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2830 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2831             Pat Haugen <pthaugen@us.ibm.com>
2832             Peter Bergner <bergner@vnet.ibm.com>
2834         * config/rs6000/rs6000.c (emit_load_locked): Add support for
2835         power8 byte, half-word, and quad-word atomic instructions.
2836         (emit_store_conditional): Likewise.
2837         (rs6000_expand_atomic_compare_and_swap): Likewise.
2838         (rs6000_expand_atomic_op): Likewise.
2840         * config/rs6000/sync.md (larx): Add new modes for power8.
2841         (stcx): Likewise.
2842         (AINT): New mode iterator to include TImode as well as normal
2843         integer modes on power8.
2844         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2845         that VSX registers are not considered.  Use AINT mode iterator
2846         instead of INT1 to allow inclusion of quad word atomic operations
2847         on power8.
2848         (load_locked<mode>): Likewise.
2849         (store_conditional<mode>): Likewise.
2850         (atomic_compare_and_swap<mode>): Likewise.
2851         (atomic_exchange<mode>): Likewise.
2852         (atomic_nand<mode>): Likewise.
2853         (atomic_fetch_<fetchop_name><mode>): Likewise.
2854         (atomic_nand_fetch<mode>): Likewise.
2855         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2856         each type.
2857         (ATOMIC): On power8, add QImode, HImode modes.
2858         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2859         modes that promote to SImode.
2860         (load_lockedti): Convert TImode arguments to PTImode, so that we
2861         get a guaranteed even/odd register pair.
2862         (load_lockedpti): Likewise.
2863         (store_conditionalti): Likewise.
2864         (store_conditionalpti): Likewise.
2866         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2867         atomic load/store instructions.
2868         (HSI): Likewise.
2870 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
2872         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2873         loads.
2874         (insn_count): New attribute, with most cases extracted from...
2875         (length): ...here.  Redefine most cases in terms of insn_count.
2876         (single_insn): Delete.
2877         (can_delay): Use insn_count to check for single instructions.
2878         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2879         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2880         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2881         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2882         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2883         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2884         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2885         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2886         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2887         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2888         rather than "length".
2889         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
2890         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2891         Use "insn_count" rather than "length".
2892         * config/mips/mips-dsp.md
2893         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2894         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2895         length attributes.
2897 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
2899         PR tree-optimization/57361
2900         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2902 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
2904         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2905         to split.
2906         (aarch64_simd_combine<mode>): New instruction expansion.
2907         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2908         function prototype.
2909         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2910         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2912 2013-06-12  Jan Hubicka  <jh@suse.cz>
2914         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2915         decl has when in streaming stage.
2916         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2917         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2919 2013-06-12  Roland Stigge <stigge@antcom.de>
2921         PR target/57578
2922         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2924 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2926         PR tree-optimization/57537
2927         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2928         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2930 2013-06-12  Richard Biener  <rguenther@suse.de>
2932         * data-streamer.h (streamer_write_char_stream): CSE
2933         obs->current_pointer.
2934         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2935         streamer_write_char_stream manually and optimize the resulting loop.
2936         (streamer_write_hwi_stream): Likewise.
2938 2013-06-12  Jan Hubicka  <jh@suse.cz>
2940         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2941         * cgraph.h (varpool_create_empty_node): Declare.
2942         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2943         duplicated nodes.
2944         * symtab.c (symtab_unregister_node): Be lax about missin entries
2945         in node hash.
2946         (symtab_get_node): Update comment.
2947         * varpool.c (varpool_create_empty_node): Break out from ...
2948         (varpool_node_for_decl): ... here.
2949         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2951 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2953         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2954         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2955         part.  Use straight-line flow at the end.
2956         <COMPONENT_REF>: Remove superfluous else.
2957         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2959 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
2961         PR target/56564
2962         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2963         target hook even for !TREE_PUBLIC decls.  If no resolution info
2964         is available, return false for common and external decls.
2966 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2968         * config/rl78/constraints.md (U): New constraint.
2969         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2970         valloc attribute.
2972 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2974         PR target/57589
2975         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2976         to allow returning address to AT_PLATFORM name.
2978 2013-06-11  Jan Hubicka  <jh@suse.cz>
2980         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2981         * cgraph.h (symtab_node_base): Add weakref flag.
2982         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2983         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2984         (output_weakrefs): Use weakref flag.
2985         * fold-const.c (simple_operand_p): Handle WEAK.
2986         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2987         * ipa.c (varpool_externally_visible_p): Drop weakref.
2988         (function_and_variable_visibility): Update comment; fix weakref
2989         sanity checks; do not clear DECL_WEAK on them.
2990         * lto-cgraph.c (lto_output_node): update.
2991         (lto_output_varpool_node): Update.
2992         (input_overwrite_node): Update.
2993         (input_node): Update.
2994         (input_varpool_node): Update.
2995         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2996         (lto_symtab_merge_symbols): Add sanity check.
2997         (lto_symtab_prevailing_decl): Do not special case weakrefs.
2998         * passes.c (rest_of_decl_compilation): Set static flag, too.
2999         * symtab.c (dump_symtab_base): Dump weakref.
3000         (verify_symtab_base): Sanity check weakrefs.
3001         (symtab_make_decl_local): Remove duplicated code.
3002         (symtab_alias_ultimate_target): Simplify.
3003         * varpool.c (varpool_create_variable_alias): Set weakref flag.
3005 2013-06-11  DJ Delorie  <dj@redhat.com>
3007         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
3008         (rl78_unwind_word_mode): New.
3010 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
3012         * final.c (debug_prefix_maps): Make static.
3014 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
3016         * function.c (initial_trampoline): Remove stray copy.
3018 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
3020         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
3022 2013-06-11  Martin Jambor  <mjambor@suse.cz>
3024         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
3025         within bounds at the beginning of the function.
3027 2013-06-11  Alan Modra  <amodra@gmail.com>
3029         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
3030         reporting.
3031         (get_named_section): Don't NULL !DECL_P decl.
3033 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
3035         * doc/invoke.texi (core-avx2): Document.
3036         (slm): Likewise.
3037         (atom): Updated with MOVBE.
3039 2013-06-11  Richard Biener  <rguenther@suse.de>
3041         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
3043 2013-06-11  Anton Blanchard  <anton@samba.org>
3045         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
3046         correct shift value in little-endian mode.
3048 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
3050         PR target/56564
3051         * varasm.c (get_variable_align): Move #endif to the right place.
3053 2013-06-10  Cary Coutant  <ccoutant@google.com>
3055         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
3056         for hash so that hash table traversal order is deterministic.
3058 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3059             Pat Haugen <pthaugen@us.ibm.com>
3060             Peter Bergner <bergner@vnet.ibm.com>
3062         * config/rs6000/vector.md (GPR move splitter): Do not split moves
3063         of vectors in GPRS if they are direct moves or quad word load or
3064         store moves.
3066         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
3067         declaration.
3068         (direct_move_p): Likewise.
3069         (quad_load_store_p): Likewise.
3071         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
3072         classes into bins based on the physical register type.
3073         (reg_class_to_reg_type): Likewise.
3074         (IS_STD_REG_TYPE): Likewise.
3075         (IS_FP_VECT_REG_TYPE): Likewise.
3076         (reload_fpr_gpr): Arrays to determine what insn to use if we can
3077         use direct move instructions.
3078         (reload_gpr_vsx): Likewise.
3079         (reload_vsx_gpr): Likewise.
3080         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
3081         information that is a simplification of register classes.  Also
3082         precalculate direct move reload helpers.
3083         (direct_move_p): New function to return true if the operation can
3084         be done as a direct move instruciton.
3085         (quad_load_store_p): New function to return true if the operation
3086         is a quad memory operation.
3087         (rs6000_legitimize_address): If quad memory, only allow register
3088         indirect for TImode addresses.
3089         (rs6000_legitimate_address_p): Likewise.
3090         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
3091         (rs6000_reload_register_type): Likewise.
3092         (register_to_reg_type): Return register type.
3093         (rs6000_secondary_reload_simple_move): New helper function for
3094         secondary reload and secondary memory needed to identify anything
3095         that is a simple move, and does not need reloading.
3096         (rs6000_secondary_reload_direct_move): New helper function for
3097         secondary reload to identify cases that can be done with several
3098         instructions via the direct move instructions.
3099         (rs6000_secondary_reload_move): New helper function for secondary
3100         reload to identify moves between register types that can be done.
3101         (rs6000_secondary_reload): Add support for quad memory operations
3102         and for direct move.
3103         (rs6000_secondary_memory_needed): Likewise.
3104         (rs6000_debug_secondary_memory_needed): Change argument names.
3105         (rs6000_output_move_128bit): New function to return the move to
3106         use for 128-bit moves, including knowing about the various
3107         limitations of quad memory operations.
3109         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
3110         memory operations.  call rs6000_output_move_128bit for the actual
3111         instruciton(s) to generate.
3112         (vsx_movti_64bit): Likewise.
3114         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
3115         (UNSPEC_P8V_MTVSRWZ): Likewise.
3116         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
3117         (UNSPEC_P8V_MTVSRD): Likewise.
3118         (UNSPEC_P8V_XXPERMDI): Likewise.
3119         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
3120         (UNSPEC_FUSION_GPR): Likewise.
3121         (FMOVE128_GPR): New iterator for direct move.
3122         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
3123         (f32_sv): Likewise.
3124         (f32_dm): Likewise.
3125         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
3126         loads and direct move instructions.
3127         (zero_extendsidi2_lfiwzx): Likewise.
3128         (extendsidi2_lfiwax): Likewise.
3129         (extendsidi2_nocell): Likewise.
3130         (floatsi<mode>2_lfiwax): Likewise.
3131         (lfiwax): Likewise.
3132         (floatunssi<mode>2_lfiwzx): Likewise.
3133         (lfiwzx): Likewise.
3134         (fix_trunc<mode>_stfiwx): Likewise.
3135         (fixuns_trunc<mode>_stfiwx): Likewise.
3136         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3137         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3138         (parity<mode>2_cmpb): Set length/type attr.
3139         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3140         for 'mr.' to fast_compare.
3141         (bpermd_<mode>): Change type attr to popcnt.
3142         (p8_fmrgow_<mode>): New insns for power8 direct move support.
3143         (p8_mtvsrwz_1): Likewise.
3144         (p8_mtvsrwz_2): Likewise.
3145         (reload_fpr_from_gpr<mode>): Likewise.
3146         (p8_mtvsrd_1): Likewise.
3147         (p8_mtvsrd_2): Likewise.
3148         (p8_xxpermdi_<mode>): Likewise.
3149         (reload_vsx_from_gpr<mode>): Likewise.
3150         (reload_vsx_from_gprsf): Likewise.
3151         (p8_mfvsrd_3_<mode>): LIkewise.
3152         (reload_gpr_from_vsx<mode>): Likewise.
3153         (reload_gpr_from_vsxsf): Likewise.
3154         (p8_mfvsrd_4_disf): Likewise.
3155         (multi-word GPR splits): Do not split direct moves or quad memory
3156         operations.
3158 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
3160         * tree-into-ssa.c (interesting_blocks): Make static.
3162 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
3164         PR target/56564
3165         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3166         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3167         Use DATA_ABI_ALIGNMENT for that case instead if defined.
3168         (get_variable_align): New function.
3169         (get_variable_section, emit_bss, emit_common,
3170         assemble_variable_contents, place_block_symbol): Use
3171         get_variable_align instead of DECL_ALIGN.
3172         (assemble_noswitch_variable): Add align argument, use it
3173         instead of DECL_ALIGN.
3174         (assemble_variable): Adjust caller.  Use get_variable_align
3175         instead of DECL_ALIGN.
3176         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3177         caller.
3178         (DATA_ABI_ALIGNMENT): Define.
3179         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3180         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
3181         opt is false, only return the psABI mandated alignment increase.
3182         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3183         (DATA_ABI_ALIGNMENT): ... this.
3184         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3185         (DATA_ABI_ALIGNMENT): ... this.
3186         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3187         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3188         (DATA_ABI_ALIGNMENT): ... this.
3189         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3190         * doc/tm.texi: Regenerated.
3192 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
3194         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3195         cmp_code to construct REG_EQUAL note.
3197 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
3199         PR target/57568
3200         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3201         that operands[2] doesn't overlap with operands[0].
3203 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
3204             Jan Hubicka  <jh@suse.cz>
3206         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3207         hack to mark symbols as used.
3209 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
3211         PR rtl-optimization/57559
3212         * lra-constraints.c (process_alt_operands): Don't discourage
3213         memory with known offset for offsetable memory constraint.
3214         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3216 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
3218         * varasm.c (struct oc_local_state): Reorder fields.
3219         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3220         and adjust accordingly.
3221         (output_constructor): Reorder initialization code and adjust call to
3222         output_constructor_bitfield.
3224 2013-06-07  Jan Hubicka  <jh@suse.cz>
3226         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3228 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
3230         * tree-object-size.c (unknown): Make const.
3232 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3234         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3235         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3236         for last alternative in the cpu_facility attribute.
3238 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3240         PR target/56315
3241         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3242         (xordi3): Change operand 2 constraint to arm_xordi_operand.
3243         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3244         * config/arm/constraints.md (Dg): New constraint.
3245         * config/arm/neon.md (xordi3_neon): Remove.
3246         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3247         * config/arm/predicates.md (arm_xordi_operand): New predicate.
3249 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3251         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3252         Clean up alternatives.
3254 2013-06-07  Alan Modra  <amodra@gmail.com>
3256         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3257         va_list_gpr_size.
3259 2013-06-07  Alan Modra  <amodra@gmail.com>
3261         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3263 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3265         * config/arm/constraints.md (Df): New constraint.
3266         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3267         Correct length attribute for last two alternatives.
3269 2013-06-07  Alan Modra  <amodra@gmail.com>
3271         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3272         override user -mfp-in-toc.
3273         (offsettable_ok_by_alignment): Consider just the current access
3274         rather than the whole object, unless BLKmode.  Handle
3275         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3276         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3277         for -mcmodel=medium.
3278         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3279         override user -mfp-in-toc or -msum-in-toc.  Default to
3280         -mno-fp-in-toc for -mcmodel=medium.
3282 2013-06-06  DJ Delorie  <dj@redhat.com>
3284         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3285         TARGET_VALID_POINTER_MODE.
3287 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3288             Pat Haugen <pthaugen@us.ibm.com>
3289             Peter Bergner <bergner@vnet.ibm.com>
3291         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3292         Document new power8 builtins.
3294         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3295         condition code register, to allow 128-bit logical operations to be
3296         done in the VSX or GPR registers.
3297         (nor<mode>3): Use the canonical form for nor.
3298         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3299         vclz*, and vpopcnt* vector instructions.
3300         (nand<mode>3): Likewise.
3301         (orc<mode>3): Likewise.
3302         (clz<mode>2): LIkewise.
3303         (popcount<mode>2): Likewise.
3305         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3306         that only the GPRs are recognized.
3308         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3309         support for new power8 builtins.
3311         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3312         builtin functions.
3313         (xscvdpspn): Likewise.
3314         (vclz): Likewise.
3315         (vclzb): Likewise.
3316         (vclzh): Likewise.
3317         (vclzw): Likewise.
3318         (vclzd): Likewise.
3319         (vpopcnt): Likewise.
3320         (vpopcntb): Likewise.
3321         (vpopcnth): Likewise.
3322         (vpopcntw): Likewise.
3323         (vpopcntd): Likewise.
3324         (vgbbd): Likewise.
3325         (vmrgew): Likewise.
3326         (vmrgow): Likewise.
3327         (eqv): Likewise.
3328         (eqv_v16qi3): Likewise.
3329         (eqv_v8hi3): Likewise.
3330         (eqv_v4si3): Likewise.
3331         (eqv_v2di3): Likewise.
3332         (eqv_v4sf3): Likewise.
3333         (eqv_v2df3): Likewise.
3334         (nand): Likewise.
3335         (nand_v16qi3): Likewise.
3336         (nand_v8hi3): Likewise.
3337         (nand_v4si3): Likewise.
3338         (nand_v2di3): Likewise.
3339         (nand_v4sf3): Likewise.
3340         (nand_v2df3): Likewise.
3341         (orc): Likewise.
3342         (orc_v16qi3): Likewise.
3343         (orc_v8hi3): Likewise.
3344         (orc_v4si3): Likewise.
3345         (orc_v2di3): Likewise.
3346         (orc_v4sf3): Likewise.
3347         (orc_v2df3): Likewise.
3349         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3350         allow power8 quad mode in 64-bit.
3351         (rs6000_builtin_vectorized_function): Add support to vectorize
3352         ISA 2.07 count leading zeros, population count builtins.
3353         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3354         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3355         (builtin_function_type): Add vgbbd builtin function which takes an
3356         unsigned argument.
3357         (altivec_expand_vec_perm_const): Add support for new power8 merge
3358         instructions.
3360         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3361         that does not include TImdoe for use with 32-bit.
3362         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3363         instructions.
3364         (UNSPEC_VSX_CVDPSPN): Likewise.
3365         (vsx_xscvdpspn): Likewise.
3366         (vsx_xscvspdpn): Likewise.
3367         (vsx_xscvdpspn_scalar): Likewise.
3368         (vsx_xscvspdpn_directmove): Likewise.
3369         (vsx_and<mode>3): Split logical operations into 32-bit and
3370         64-bit. Add support to do logical operations on TImode as well as
3371         VSX vector types.  Allow logical operations to be done in either
3372         VSX registers or in general purpose registers in 64-bit mode.  Add
3373         splitters if GPRs were used. For AND, add clobber of CCmode to
3374         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
3375         encoding.
3376         (vsx_and<mode>3_32bit): Likewise.
3377         (vsx_and<mode>3_64bit): Likewise.
3378         (vsx_ior<mode>3): Likewise.
3379         (vsx_ior<mode>3_32bit): Likewise.
3380         (vsx_ior<mode>3_64bit): Likewise.
3381         (vsx_xor<mode>3): Likewise.
3382         (vsx_xor<mode>3_32bit): Likewise.
3383         (vsx_xor<mode>3_64bit): Likewise.
3384         (vsx_one_cmpl<mode>2): Likewise.
3385         (vsx_one_cmpl<mode>2_32bit): Likewise.
3386         (vsx_one_cmpl<mode>2_64bit): Likewise.
3387         (vsx_nor<mode>3): Likewise.
3388         (vsx_nor<mode>3_32bit): Likewise.
3389         (vsx_nor<mode>3_64bit): Likewise.
3390         (vsx_andc<mode>3): Likewise.
3391         (vsx_andc<mode>3_32bit): Likewise.
3392         (vsx_andc<mode>3_64bit): Likewise.
3393         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3394         and xxlorc instructions.
3395         (vsx_eqv<mode>3_64bit): Likewise.
3396         (vsx_nand<mode>3_32bit): Likewise.
3397         (vsx_nand<mode>3_64bit): Likewise.
3398         (vsx_orc<mode>3_32bit): Likewise.
3399         (vsx_orc<mode>3_64bit): Likewise.
3401         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3403         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3404         instruction.
3405         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3406         (p8_vmrgow): Likewise.
3407         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3408         GPRs to be split under VSX.
3409         (p8v_clz<mode>2): Add power8 count leading zero support.
3410         (p8v_popcount<mode>2): Add power8 population count support.
3411         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3412         support.
3414         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3415         instruction.
3417         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3418         builtin functions.
3419         (vec_nand): Likewise.
3420         (vec_vclz): Likewise.
3421         (vec_vclzb): Likewise.
3422         (vec_vclzd): Likewise.
3423         (vec_vclzh): Likewise.
3424         (vec_vclzw): Likewise.
3425         (vec_vgbbd): Likewise.
3426         (vec_vmrgew): Likewise.
3427         (vec_vmrgow): Likewise.
3428         (vec_vpopcnt): Likewise.
3429         (vec_vpopcntb): Likewise.
3430         (vec_vpopcntd): Likewise.
3431         (vec_vpopcnth): Likewise.
3432         (vec_vpopcntw): Likewise.
3434 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3436         PR rtl-optimization/57468
3437         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3438         spilled pseudos.
3440 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3442         PR rtl-optimization/57459
3443         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3444         type when setting live regs.
3446 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
3448         * config/s390/s390.opt (mlra): New option.
3449         * config/s390/s390.c (s390_decompose_address): Check displacement
3450         for all registers for LRA.
3451         (s390_secondary_reload): Don't used secondary reloads for LRA.
3452         (s390_lra_p): New function.
3453         (TARGET_LRA_P): Define.
3454         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3455         of attribute cpu_facility to zarch for the last alternative.
3456         (*cmpmem_short): Ditto.
3458 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
3460         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3461         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
3462         (arm_expand_prologue): Likewise.
3464 2013-06-06  Teresa Johnson  <tejohnson@google.com>
3466         PR c++/53743
3467         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3468         as this is now done by redirect_edge_and_branch_force.
3469         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3470         barriers, and fix interaction with splitting.
3471         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3472         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3473         reflect changes made in the routine.
3474         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3475         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3476         since this is called in cfglayout mode, and replace partition fixup
3477         with assert as that is now done by force_nonfallthru_and_redirect.
3478         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3479         already be marked with region crossing note.
3480         (insert_section_boundary_note): Make non-static, gate on flag
3481         has_bb_partition, rewrite to also check for multiple partitions.
3482         (rest_of_handle_reorder_blocks): Remove call to
3483         insert_section_boundary_note, now done later during free_cfg.
3484         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3485         * bb-reorder.h (insert_section_boundary_note): Declare.
3486         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3487         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3488         invoke insert_section_boundary_note.
3489         (try_redirect_by_replacing_jump): Remove unnecessary
3490         check for region crossing note.
3491         (fixup_partition_crossing): New function.
3492         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3493         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3494         in non-cfglayout mode.
3495         (force_nonfallthru_and_redirect): Fixup partition boundaries,
3496         remove old code that tried to do this. Emit barrier correctly
3497         when we are in cfglayout mode.
3498         (last_bb_in_partition): New function.
3499         (rtl_split_edge): Correctly fixup partition boundaries.
3500         (commit_one_edge_insertion): Remove old code that tried to
3501         fixup region crossing edge since this is now handled in
3502         split_block, and set up insertion point correctly since
3503         block may now end in a jump.
3504         (verify_hot_cold_block_grouping): Guard against checking when not in
3505         linearized RTL mode.
3506         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3507         notes.
3508         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3509         rtl_verify_flow_info, so not called in cfglayout mode.
3510         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3511         (fixup_reorder_chain): Remove old code that attempted to fixup region
3512         crossing note as this is now handled in force_nonfallthru_and_redirect.
3513         (duplicate_insn_chain): Don't duplicate switch section notes.
3514         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3515         note.
3516         * basic-block.h (emit_barrier_after_bb): Declare.
3518 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3520         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3521         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3522         arm_usatsihi): Adjust alternatives for arm_restrict_it.
3524 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3526         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3527         where appropriate.
3528         * config/arm/ldmstm.md: Regenerate.
3530 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3532         * config/arm/sync.md (atomic_loaddi_1):
3533         Disable predication for arm_restrict_it.
3534         (arm_load_exclusive<mode>): Likewise.
3535         (arm_load_exclusivesi): Likewise.
3536         (arm_load_exclusivedi): Likewise.
3537         (arm_load_acquire_exclusive<mode>): Likewise.
3538         (arm_load_acquire_exclusivesi): Likewise.
3539         (arm_load_acquire_exclusivedi): Likewise.
3540         (arm_store_exclusive<mode>): Likewise.
3541         (arm_store_exclusive<mode>): Likewise.
3542         (arm_store_release_exclusivedi): Likewise.
3543         (arm_store_release_exclusive<mode>): Likewise.
3545 2013-06-06  Richard Biener  <rguenther@suse.de>
3547         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3548         after LTO_null.
3549         (lto_tag_is_tree_code_p): Adjust.
3550         (lto_tag_is_gimple_code_p): Likewise.
3551         (lto_gimple_code_to_tag): Likewise.
3552         (lto_tag_to_gimple_code): Likewise.
3553         (lto_tree_code_to_tag): Likewise.
3554         (lto_tag_to_tree_code): Likewise.
3555         * data-streamer.h (streamer_write_hwi_in_range): Use
3556         uhwi streaming to stream the normalized range.
3557         (streamer_read_hwi_in_range): Likewise.
3559 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3561         * config/arm/arm.md (enabled_for_depr_it): New attribute.
3562         (predicable_short_it): Likewise.
3563         (predicated): Likewise.
3564         (enabled): Handle above.
3565         (define_cond_exec): Set predicated attribute to yes.
3567 2013-06-05  Mike Stump  <mikestump@comcast.net>
3569         * gdbinit.in (__FUNCTION__): Add.
3571 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
3573         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3574         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3576 2013-06-05  Jan Hubicka  <jh@suse.cz>
3578         * varasm.c (mark_decl_referenced): Revert the removal until targets
3579         are fixed.
3581 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
3583         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3584         instead of mark_decl_referenced.
3586 2013-06-05  Jan Hubicka  <jh@suse.cz>
3588         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3589         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3590         and symtab_used_from_object_file_p.
3591         (cgraph_make_node_local_1): Clear forced_by_abi.
3592         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3593         * cgraph.h (symtab_node_base): Add forced_by_abi.
3594         (decide_is_variable_needed): Remove.
3595         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3596         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3597         (decide_is_symbol_needed): ... this one; handle symbols in general;
3598         always analyze virtuals; honnor forced_by_abi.
3599         (cgraph_finalize_function): Update.
3600         (varpool_finalize_decl): Update.
3601         (symbol_defined_and_needed): Remove.
3602         (analyze_functions): Update.
3603         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3604         output_refs, input_overwrite_node): Handle forced_by_abi.
3605         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3606         (address_taken_from_non_vtable_p): ... this one.
3607         (comdat_can_be_unshared_p_1): New function.
3608         (cgraph_comdat_can_be_unshared_p): Rename to ...
3609         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3610         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3611         (function_and_variable_visibility): Clear forced_by_abi as needed.
3612         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3613         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3614         * symtab.c (dump_symtab_base): Dump forced_by_abi.
3615         * varpool.c (decide_is_variable_needed): Remove.
3617 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3619         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3620         (arm_option_override): Override arm_restrict_it where appropriate.
3621         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3622         * config/arm/arm.opt (mrestrict-it): New command-line option.
3623         * doc/invoke.texi: Document -mrestrict-it.
3625 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3627         * tsan.c (tsan_atomic_table): Make const.
3629 2013-06-05  Richard Biener  <rguenther@suse.de>
3631         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3632         index associated with the tree we are supposed to replace.
3633         * tree-streamer-out.c (pack_ts_base_value_fields): Output
3634         TREE_ASM_WRITTEN as zero for everything but SSA names.
3636 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
3638         * tree-ssa-structalias.c (call_stmt_vars): Make static.
3640 2013-06-04  Jan Hubicka  <jh@suse.cz>
3642         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3643         (input_node, input_varpool_node): Handle correctly external same
3644         body aliases.
3645         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3646         nodes at ltrans stage.
3648 2013-06-04  Jan Hubicka  <jh@suse.cz>
3650         * ipa-inline.c (update_caller_keys): Fix availability test.
3651         (update_callee_keys): Likewise.
3652         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3653         to follow ELF standard.
3655 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
3657         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3658         (mips64r5900el-*-elf*): New configurations.
3659         * config/mips/mips-cpus.def (r5900): New processor.
3660         * config/mips/mips-tables.opt: Regenerate.
3661         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3662         (mips_issue_rate): Handle PROCESSOR_R5900.
3663         (mips_reorg_process_insns): Force reorder mode for the R5900.
3664         * config/mips/mips.h (TARGET_MIPS5900): Define.
3665         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3666         TARGET_MIPS5900.
3667         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3668         TARGET_MIPS5900.
3669         * config/mips/mips.md (processor): Add r5900.
3670         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3672 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3674         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3675         into function to generate MOVI instruction.
3676         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3677         (aarch64_preferred_simd_mode): Turn into wrapper.
3678         (aarch64_output_scalar_simd_mov_immediate): New function.
3679         * config/aarch64/aarch64-protos.h: Add prototype for above.
3681 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3683         * config/aarch64/aarch64.c (simd_immediate_info): Remove
3684         element_char member.
3685         (sizetochar): Return signed char.
3686         (aarch64_simd_valid_immediate): Remove elchar and other
3687         unnecessary variables.
3688         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3689         Calculate element_char as required.
3690         * config/aarch64/aarch64-protos.h: Update and move prototype
3691         for aarch64_output_simd_mov_immediate.
3692         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3693         Update arguments.
3695 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3697         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3698         information completed by aarch64_simd_valid_immediate.
3699         (aarch64_legitimate_constant_p): Update arguments.
3700         (aarch64_simd_valid_immediate): Work with struct rather than many
3701         pointers.
3702         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3703         (aarch64_simd_make_constant): Update arguments.
3704         (aarch64_output_simd_mov_immediate): Work with struct rather than
3705         many pointers.  Output immediate directly rather than as operand.
3706         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3707         Update prototype.
3708         * config/aarch64/constraints.md (Dn): Update arguments.
3710 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3712         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3713         longer static.
3714         (aarch64_simd_immediate_valid_for_move): Remove.
3715         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3716         (aarch64_simd_make_constant): Update call.
3717         (aarch64_output_simd_mov_immediate): Update call.
3718         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3719         Add prototype.
3720         * config/aarch64/constraints.md (Dn): Update call.
3722 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
3724         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3725         return type to bool for prototype.
3726         (aarch64_legitimate_constant_p): Check for true instead of not -1.
3727         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3728         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3730 2013-06-04  Catherine Moore  <clm@codesourcery.com>
3732         * config/mips/mips.opt (meva): New.
3733         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3734         (ASM_SPEC): Handle -meva.
3735         * doc/invoke.texi (meva):  Document.
3737 2013-06-04  Alan Modra  <amodra@gmail.com>
3739         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3740         constant output.
3742 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3744         * rtl.def: Add extra fourth optional field to define_cond_exec.
3745         * gensupport.c (process_one_cond_exec): Process attributes from
3746         define_cond_exec.
3747         * doc/md.texi: Document fourth field in define_cond_exec.
3749 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
3751         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3752         out the processing order as in store_bit_field_1.
3754 2013-06-04  Jan Hubicka  <jh@suse.cz>
3756         PR middle-end/57500
3757         * cgraphunit.c (cgraph_process_same_body_aliases): Create
3758         non-VAR_DECL node if it does not exist yet.
3760 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
3762         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3763         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3764         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3765         target_cpu_default setting.
3767 2013-06-03  Teresa Johnson  <tejohnson@google.com>
3769         * dumpfile.c (opt_info_switch_p): Change -fopt-info
3770         default to -fopt-info=optimized instead of all.
3771         * doc/invoke.texi: Ditto.
3772         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3773         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3774         (execute_vect_slp): Emit BB vectorization success under
3775         MSG_OPTIMIZED_LOCATIONS.
3776         * tree-vect-slp.c (vect_slp_transform_bb): Change
3777         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3778         * tree-vect-loop.c (vect_transform_loop): Ditto.
3780 2013-06-03  Jason Merrill  <jason@redhat.com>
3782         PR c++/57415
3783         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3784         Use TARGET_EXPR for C++.
3786 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
3788         PR rtl-optimization/57268
3789         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3790         if DEBUG_INSN_P (insn).
3792         Reapply
3793         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3795         PR rtl-optimization/57268
3796         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3797         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3799 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3801         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3802         (ix86_avoid_lea_for_addr): Likewise.
3803         (exact_dependency_1): Likewise.
3804         (ix86_adjust_cost): Likewise.
3805         (swap_top_of_ready_list): Fix formatting and !reload_completed check
3806         removed.
3807         (do_reorder_for_imul): Fix typo, formatting and
3808         !reload_completed check removed.
3809         (ix86_sched_reorder): Fix typo and formatting.
3810         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3811         list.
3813 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
3815         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3817 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3819         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3820         <STRING_CST>: Likewise.
3821         <VECTOR_CST>: Likewise.
3823 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
3824             Mikael Morin  <mikael@gcc.gnu.org>
3826         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3827         * config.in: Regenerated.
3828         * configure: Regenerated.
3830 2013-06-01  Jan Hubicka  <jh@suse.cz>
3832         PR middle-end/57366
3833         * cgraphunit.c (compile): When weakref is not supported,
3834         set up transparent aliases before final output pass.
3835         * varasm.c (assemble_alias): Do not try to do it here.
3837 2013-06-01  Jan Hubicka  <jh@suse.cz>
3839         PR middle-end/57467
3840         * passes.c (for_per_function): Skip unanalyzed functions.
3842 2013-06-01  Jan Hubicka  <jh@suse.cz>
3844         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3845         (lto_symtab_merge_symbols_1): ... this one.
3846         (lto_symtab_merge_cgraph_nodes): Rename to ...
3847         (lto_symtab_merge_symbols): ... this one; simplify.
3848         * cgraph.c (same_body_aliases_done): Rename to ...
3849         (cpp_implicit_aliases_done): ... this one.
3850         (cgraph_create_function_alias): Update.
3851         (cgraph_same_body_alias): Update.
3852         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3853         (verify_edge_corresponds_to_fndecl): Simplify.
3854         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3855         (cgraph_node): Remove same_body_alias.
3856         (varpool_node): Remove alias_of and extra_name_alias.
3857         (same_body_aliases_done): Rename to ..
3858         (cpp_implicit_aliases_done): ... this one.
3859         (symtab_alias_ultimate_target): Add default parameter.
3860         (symtab_resolve_alias): New function.
3861         (fixup_same_cpp_alias_visibility): Declare.
3862         (cgraph_function_node): Add default parameter.
3863         (cgraph_node_asm_name): Likewise.
3864         (cgraph_function_or_thunk_node): Add default parameter; do
3865         not ICE when it is NULL.
3866         (varpool_variable_node): Likewise.
3867         * tree-emutls.c (create_emultls_var): Update.
3868         (ipa_lower_emutls): Update.
3869         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3870         (cgraph_reset_node): Reset alias info.
3871         (cgraph_finalize_function): Update.
3872         (fixup_same_cpp_alias_visibility): Move to symtab.c.
3873         (analyze_function): Simplify.
3874         (cgraph_process_same_body_aliases): Simplify.
3875         (analyze_functions): Fixup same body aliases.
3876         (handle_alias_pairs): Simplify.
3877         (assemble_thunk): Update.
3878         (assemble_thunks_and_aliases): Update.
3879         (output_weakrefs): Rewrite.
3880         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3881         (lto_output_varpool_node): Likewise.
3882         (compute_ltrans_boundary): Remve assert.
3883         (get_alias_symbol): New functoin.
3884         (input_node): Rewrite alias handling.
3885         (input_varpool_node): Likewise.
3886         * ipa-pure-const.c (propagate_pure_const): Fix formating.
3887         * ipa.c (process_references): Handle weakrefs correctly.
3888         (symtab_remove_unreachable_nodes): Likewise.
3889         * trans-mem.c (get_cg_data): Update.
3890         (ipa_tm_create_version_alias): Update.
3891         (ipa_tm_execute): Update.
3892         * symtab.c (dump_symtab_base): Dump aliases.
3893         (verify_symtab_base): Verify aliases.
3894         (symtab_node_availability): New function.
3895         (symtab_alias_ultimate_target): Simplify.
3896         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3897         handle all the fixup cases.
3898         (symtab_resolve_alias): New function.
3899         * passes.c (ipa_write_summaries): Handle weakrefs.
3900         * varpool.c (varpool_analyze_node): Simplify.
3901         (assemble_aliases): Update.
3902         (varpool_create_variable_alias): Simplify.
3903         (varpool_extra_name_alias): Simplify.
3904         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3905         (lto_symtab_merge_symbols): ... this one.
3907 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
3909         Revert
3910         PR rtl-optimization/57268
3911         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3912         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3914 2013-06-01  Tobias Burnus  <burnus@net-b.de>
3916         Partially reverted:
3917         2013-05-31  Tobias Burnus  <burnus@net-b.de>
3919         PR middle-end/57073
3920         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3921         further up.
3923 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
3925         PR rtl-optimization/57268
3926         * sched-deps.c (sched_analyze_2): Flush dependence lists if
3927         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3929 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3931         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3932         unordered comparison operators when -fno-trapping-math is in effect
3933         on the e500.
3934         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3935         and implement unordered comparison operators properly on the e500.
3937 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
3939         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3940         for constant scalar integers.
3941         (simplify_relational_operation_1): Likewise.
3943 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
3945         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3946         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
3947         Fix comment.
3949 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
3950             Igor Zamyatin  <igor.zamyatin@intel.com>
3952         Silvermont (SLM) architecture performance tuning.
3953         * config/i386/i386.h (enum ix86_tune_indices): Add
3954         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3955         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3957         * config/i386/i386.c (initial_ix86_tune_features)
3958         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3959         (ix86_lea_outperforms): Handle Silvermont tuning.
3960         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3961         call.
3962         (ix86_use_lea_for_mov): Likewise.
3963         (ix86_avoid_lea_for_addr): Likewise.
3964         (ix86_lea_for_add_ok): Likewise.
3965         (exact_dependency_1): New function.
3966         (exact_store_load_dependency): Likewise.
3967         (ix86_adjust_cost): Handle Silvermont tuning.
3968         (do_reoder_for_imul): Likewise.
3969         (swap_top_of_ready_list): New function.
3970         (ix86_sched_reorder): Changed to handle Silvermont tuning.
3972         * config/i386/i386.md (peepholes that split memory operand in fp
3973         converts): New.
3975 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3977         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3978         Remove un-necessary braces.
3980 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3982         * config/aarch64/aarch64.c (aarch64_classify_symbol):
3983         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3985 2013-05-31  Tobias Burnus  <burnus@net-b.de>
3987         PR middle-end/57073
3988         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3990 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3992         PR target/56315
3993         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3994         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3995         * config/arm/neon.md (iordi3_neon): Remove.
3996         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3997         * config/arm/predicates.md (imm_for_neon_logic_operand):
3998         Move to earlier in the file.
3999         (neon_logic_op2): Likewise.
4000         (arm_iordi_operand_neon): New predicate.
4002 2013-05-31  Richard Biener  <rguenther@suse.de>
4004         PR tree-optimization/57478
4005         PR tree-optimization/57453
4006         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
4007         are life as well.
4009 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4011         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
4012         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
4014 2013-05-30  Tobias Burnus  <burnus@net-b.de>
4015             Thomas Koenig  <tkoenig@gcc.gnu.org>
4017         PR middle-end/57073
4018         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
4019         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
4021 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
4023         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4025 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
4027         * target.def (register_usage_leveling_p): New hook.
4028         * targhooks.c (default_register_usage_leveling_p): New.
4029         * targhooks.h (default_register_usage_leveling_p): New prototype.
4030         * lra-assigns.c (register_usage_leveling_p): Use the hook.
4031         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
4032         * doc/tm.texi: Update.
4033         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
4035 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
4037         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
4038         (*insv_reg<mode>): New define_insn.
4040 2013-05-30  Joern Rennecke <joern.rennecke@embecosm.com>
4042         PR rtl-optimization/57439
4043         * postreload.c (move2add_valid_value_p): Check that we have
4044         a zero subreg_regno_offset when accessing the register in
4045         the requested mode.
4047 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
4048             Igor Zamyatin  <igor.zamyatin@intel.com>
4050         Silvermont (SLM) architecture pipeline model, tuning and
4051         insn selection.
4052         * config.gcc: Add slm config options and target.
4054         * config/i386/slm.md: New.
4056         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
4058         * gcc/config/i386/i386-c.c (ix86_target_macros_internal):  New case
4059         PROCESSOR_SLM.
4060         (ix86_target_macros_internal): Likewise.
4062         * gcc/config/i386/i386.c (slm_cost): New cost.
4063         (m_SLM): New macro flag.
4064         (initial_ix86_tune_features): Set m_SLM.
4065         (x86_accumulate_outgoing_args): Likewise.
4066         (x86_arch_always_fancy_math_387): Likewise.
4067         (processor_target_table): Add slm cost.
4068         (cpu_names): Add slm cpu name.
4069         (x86_option_override_internal): Set SLM ISA.
4070         (ix86_issue_rate): New case PROCESSOR_SLM.
4071         (ia32_multipass_dfa_lookahead): Likewise.
4072         (fold_builtin_cpu): Add slm.
4074         * config/i386/i386.h (TARGET_SLM): New target macro.
4075         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
4076         (processor_type): Add PROCESSOR_SLM.
4078         * config/i386/i386.md (cpu): Add new value "slm".
4079         (slm.md): Include slm.md.
4081 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
4082             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4084         * config/arm/arm-protos.h: Add and update function protos.
4085         * config/arm/arm.c (use_simple_return_p): New added.
4086         (thumb2_expand_return): Check simple_return flag.
4087         * config/arm/arm.md: Add simple_return and conditional simple_return.
4088         * config/arm/iterators.md: Add iterator for return and simple_return.
4090 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
4092         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
4093         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
4094         (arm_emit_vfp_multi_reg_pop): Likewise.
4095         (thumb2_emit_ldrd_pop): Likewise.
4096         (arm_expand_epilogue): Add misc REG_CFA notes.
4097         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
4099 2013-05-29  Lawrence Crowl  <crowl@google.com>
4101         * config/arm/t-arm: Update for below.
4103         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
4104         Change type to hash_table.  Update dependent calls and types.
4106         * config/i386/t-cygming: Update for below.
4108         * config/i386/t-interix: Update for below.
4110         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
4111         Change type to hash_table.  Update dependent calls and types.
4112         (i386_find_on_wrapper_list::wrappers): Likewise.
4114         * config/ia64/t-ia64: Update for below.
4116         * config/ia64/ia64.c (bundle_state_table):
4117         Change type to hash_table.  Update dependent calls and types.
4119         * config/mips/mips.c (mips_reorg_process_insns::htab):
4120         Change type to hash_table.  Update dependent calls and types.
4122         * config/sol2.c (solaris_comdat_htab):
4123         Change type to hash_table.  Update dependent calls and types.
4125         * config/t-sol2: Update for above.
4127 2013-05-29  Teresa Johnson  <tejohnson@google.com>
4129         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
4130         functions are not yet marked as defined.
4132 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
4133             Pat Haugen <pthaugen@us.ibm.com>
4134             Peter Bergner <bergner@vnet.ibm.com>
4136         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4137         instructions.
4138         (VEC_A): Likewise.
4139         (VEC_C): Likewise.
4140         (vrotl<mode>3): Likewise.
4141         (vashl<mode>3): Likewise.
4142         (vlshr<mode>3): Likewise.
4143         (vashr<mode>3): Likewise.
4145         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4146         support for power8 V2DI builtins.
4148         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4149         power8 V2DI builtins.
4150         (vupkhsw): Likewise.
4151         (vupklsw): Likewise.
4152         (vaddudm): Likewise.
4153         (vminsd): Likewise.
4154         (vmaxsd): Likewise.
4155         (vminud): Likewise.
4156         (vmaxud): Likewise.
4157         (vpkudum): Likewise.
4158         (vpksdss): Likewise.
4159         (vpkudus): Likewise.
4160         (vpksdus): Likewise.
4161         (vrld): Likewise.
4162         (vsld): Likewise.
4163         (vsrd): Likewise.
4164         (vsrad): Likewise.
4165         (vsubudm): Likewise.
4166         (vcmpequd): Likewise.
4167         (vcmpgtsd): Likewise.
4168         (vcmpgtud): Likewise.
4169         (vcmpequd_p): Likewise.
4170         (vcmpgtsd_p): Likewise.
4171         (vcmpgtud_p): Likewise.
4172         (vupkhsw): Likewise.
4173         (vupklsw): Likewise.
4174         (vaddudm): Likewise.
4175         (vmaxsd): Likewise.
4176         (vmaxud): Likewise.
4177         (vminsd): Likewise.
4178         (vminud): Likewise.
4179         (vpksdss): Likewise.
4180         (vpksdus): Likewise.
4181         (vpkudum): Likewise.
4182         (vpkudus): Likewise.
4183         (vrld): Likewise.
4184         (vsld): Likewise.
4185         (vsrad): Likewise.
4186         (vsrd): Likewise.
4187         (vsubudm): Likewise.
4189         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4190         support for power8 V2DI instructions.
4192         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4193         power8 V2DI instructions.  Combine pack and unpack insns to use an
4194         iterator for each mode.  Check whether a particular mode supports
4195         Altivec instructions instead of just checking TARGET_ALTIVEC.
4196         (UNSPEC_VPKUWUM): Likewise.
4197         (UNSPEC_VPKSHSS): Likewise.
4198         (UNSPEC_VPKSWSS): Likewise.
4199         (UNSPEC_VPKUHUS): Likewise.
4200         (UNSPEC_VPKSHUS): Likewise.
4201         (UNSPEC_VPKUWUS): Likewise.
4202         (UNSPEC_VPKSWUS): Likewise.
4203         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4204         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4205         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4206         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4207         (UNSPEC_VUPKHSB): Likewise.
4208         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4209         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4210         (UNSPEC_VUPKHSH): Likewise.
4211         (UNSPEC_VUPKLSB): Likewise.
4212         (UNSPEC_VUPKLSH): Likewise.
4213         (VI2): Likewise.
4214         (VI_char): Likewise.
4215         (VI_scalar): Likewise.
4216         (VI_unit): Likewise.
4217         (VP): Likewise.
4218         (VP_small): Likewise.
4219         (VP_small_lc): Likewise.
4220         (VU_char): Likewise.
4221         (add<mode>3): Likewise.
4222         (altivec_vaddcuw): Likewise.
4223         (altivec_vaddu<VI_char>s): Likewise.
4224         (altivec_vadds<VI_char>s): Likewise.
4225         (sub<mode>3): Likewise.
4226         (altivec_vsubcuw): Likewise.
4227         (altivec_vsubu<VI_char>s): Likewise.
4228         (altivec_vsubs<VI_char>s): Likewise.
4229         (altivec_vavgs<VI_char>): Likewise.
4230         (altivec_vcmpbfp): Likewise.
4231         (altivec_eq<mode>): Likewise.
4232         (altivec_gt<mode>): Likewise.
4233         (altivec_gtu<mode>): Likewise.
4234         (umax<mode>3): Likewise.
4235         (smax<mode>3): Likewise.
4236         (umin<mode>3): Likewise.
4237         (smin<mode>3): Likewise.
4238         (altivec_vpkuhum): Likewise.
4239         (altivec_vpkuwum): Likewise.
4240         (altivec_vpkshss): Likewise.
4241         (altivec_vpkswss): Likewise.
4242         (altivec_vpkuhus): Likewise.
4243         (altivec_vpkshus): Likewise.
4244         (altivec_vpkuwus): Likewise.
4245         (altivec_vpkswus): Likewise.
4246         (altivec_vpks<VI_char>ss): Likewise.
4247         (altivec_vpks<VI_char>us): Likewise.
4248         (altivec_vpku<VI_char>us): Likewise.
4249         (altivec_vpku<VI_char>um): Likewise.
4250         (altivec_vrl<VI_char>): Likewise.
4251         (altivec_vsl<VI_char>): Likewise.
4252         (altivec_vsr<VI_char>): Likewise.
4253         (altivec_vsra<VI_char>): Likewise.
4254         (altivec_vsldoi_<mode>): Likewise.
4255         (altivec_vupkhsb): Likewise.
4256         (altivec_vupkhs<VU_char>): Likewise.
4257         (altivec_vupkls<VU_char>): Likewise.
4258         (altivec_vupkhsh): Likewise.
4259         (altivec_vupklsb): Likewise.
4260         (altivec_vupklsh): Likewise.
4261         (altivec_vcmpequ<VI_char>_p): Likewise.
4262         (altivec_vcmpgts<VI_char>_p): Likewise.
4263         (altivec_vcmpgtu<VI_char>_p): Likewise.
4264         (abs<mode>2): Likewise.
4265         (vec_unpacks_hi_v16qi): Likewise.
4266         (vec_unpacks_hi_v8hi): Likewise.
4267         (vec_unpacks_lo_v16qi): Likewise.
4268         (vec_unpacks_hi_<VP_small_lc>): Likewise.
4269         (vec_unpacks_lo_v8hi): Likewise.
4270         (vec_unpacks_lo_<VP_small_lc>): Likewise.
4271         (vec_pack_trunc_v8h): Likewise.
4272         (vec_pack_trunc_v4si): Likewise.
4273         (vec_pack_trunc_<mode>): Likewise.
4275         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4276         V2DI builtins.
4277         (vec_vmaxsd): Likewise.
4278         (vec_vmaxud): Likewise.
4279         (vec_vminsd): Likewise.
4280         (vec_vminud): Likewise.
4281         (vec_vpksdss): Likewise.
4282         (vec_vpksdus): Likewise.
4283         (vec_vpkudum): Likewise.
4284         (vec_vpkudus): Likewise.
4285         (vec_vrld): Likewise.
4286         (vec_vsld): Likewise.
4287         (vec_vsrad): Likewise.
4288         (vec_vsrd): Likewise.
4289         (vec_vsubudm): Likewise.
4290         (vec_vupkhsw): Likewise.
4291         (vec_vupklsw): Likewise.
4293 2013-05-29  Jan Hubicka  <jh@suse.cz>
4295         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4296         flags; reorder rest of fields in more consistent way.
4297         (varpool_node): Remove analyzed, finalized and alias.
4298         (cgraph_ndoe): Likewise.
4299         (symtab_alias_ultimate_target): New function.
4300         (cgraph_function_node): Move offline.
4301         (cgraph_reset_node): Declare.
4302         (cgraph_comdat_can_be_unshared_p): Remove.
4303         (varpool_remove_initializer): Declare.
4304         (varpool_first_defined_variable, varpool_next_defined_variable
4305         cgraph_first_defined_function, cgraph_next_defined_function): Update.
4306         (cgraph_function_with_gimple_body_p): Update.
4307         (varpool_all_refs_explicit_p): Update.
4308         (symtab_alias_target): New function.
4309         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4310         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4311         (cgraph_function_or_thunk_node): Simplify using
4312         symtab_alias_ultimate_target.
4313         (varpool_variable_node): Likewise.
4314         * cgraph.c (cgraph_create_function_alias): Update.
4315         (cgraph_add_thunk): Update.
4316         (cgraph_remove_node): Update.
4317         (dump_cgraph_node): Do not dump removed flags.
4318         (cgraph_function_body_availability): Update.
4319         (cgraph_propagate_frequency): Update.
4320         (verify_cgraph_node): Check sanity of local flag.
4321         (cgraph_function_node): Move here from cgraph.h; revamp for
4322         cgraph_function_or_thunk_node.
4323         * lto-symtab.c (lto_varpool_replace_node): Update.
4324         (lto_symtab_resolve_can_prevail_p): Update.
4325         (lto_symtab_merge_cgraph_nodes): Update.
4326         * ipa-cp.c (determine_versionability, initialize_node_lattices,
4327         propagate_constants_accross_call, devirtualization_time_bonus,
4328         ipcp_propagate_stage): Update.
4329         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4330         * ipa-inline-transform.c (clone_inlined_nodes,
4331         preserve_function_body_p): Update.
4332         * ipa-reference.c (propagate): Update.
4333         (write_node_summary_p): Update.
4334         * toplev.c (wrapup_global_declaration_2): Update.
4335         * cgraphunit.c (cgraph_analyze_function): Rename to ...
4336         (analyze_function) ... this one.
4337         (cgraph_process_new_functions): Update.
4338         (cgraph_reset_node): Export.
4339         (cgraph_finalize_function): Update.
4340         (cgraph_add_new_function): Update.
4341         (process_function_and_variable_attributes): Update.
4342         (varpool_finalize_decl): Update.
4343         (symbol_finalized): Remove.
4344         (symbol_finalized_and_needed): Rename to ...
4345         (symbol_defined_and_needed): ... update.
4346         (cgraph_analyze_functions): Update.
4347         (handle_alias_pairs): Update.
4348         (mark_functions_to_output): Update.
4349         (assemble_thunk): Update.
4350         (output_in_order): Update.
4351         (output_weakrefs): Update.
4352         (finalize_compilation_unit): Update.
4353         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4354         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4355         input_node, input_varpool_node): Update.
4356         * dbxout.c (dbxout_expand_expr): Update.
4357         * cgraphclones.c (cgraph_clone_node): Update.
4358         (cgraph_copy_node_for_versioning): Update.
4359         (cgraph_materialize_clone): Update.
4360         (cgraph_materialize_all_clones): Update.
4361         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4362         propagate_pure_const, propagate_nothrow): Update.
4363         * lto-streamer-out.c (lto_output, write_symbol): Update.
4364         * ipa-utils.c (ipa_reverse_postorder): Update.
4365         * ipa-inline.c (can_inline_edge_p): Update.
4366         (update_caller_keys, ipa_inline): Update.
4367         * dwarf2out.c (reference_to_unused,
4368         premark_types_used_by_global_vars_helper): Update.
4369         * tree-eh.c (tree_could_trap_p): Update.
4370         * ipa-split.c (consider_split, execute_split_functions): Update.
4371         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4372         has_addr_references_p): Update; move ahead in file for better
4373         readability.
4374         (process_references): Simplify.
4375         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4376         bodies are removed.
4377         (cgraph_comdat_can_be_unshared_p): Make static.
4378         (cgraph_externally_visible_p): Update.
4379         (varpool_externally_visible_p): Update.
4380         (function_and_variable_visibility): Update.
4381         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4382         ipa_tm_mark_force_output_node): Update.
4383         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4384         estimate_edge_devirt_benefit, inline_generate_summary,
4385         inline_write_summary): Update.
4386         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4387         * ipa-prop.c (ipa_compute_jump_functions): Update.
4388         (ipa_print_node_params, ipa_prop_read_section,
4389         ipa_update_after_lto_read, read_replacements_section): Update.
4390         * varasm.c (mark_decl_referenced): Update.
4391         (assemble_alias, dump_tm_clone_pairs): Update.
4392         * tree-inline.c (copy_bb): Update.
4393         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4394         Update.
4395         * symtab.c (dump_symtab_base): Print new flags.
4396         (verify_symtab_base): Verify new flags.
4397         (symtab_alias_ultimate_target): New function.
4398         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4399         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4400         Update.
4401         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4402         Update.
4403         * i386.c (ix86_get_function_versions_dispatcher,
4404         ix86_generate_version_dispatcher_body): Update.
4405         (fold_builtin_cpu): Use varpool_add_new_variable.
4406         * varpool.c (varpool_remove_initializer): Break out from ...
4407         (varpool_remove_node): ... this one.
4408         (dump_varpool_node, varpool_node_for_asm,
4409         cgraph_variable_initializer_availability, varpool_analyze_node,
4410         varpool_assemble_decl, varpool_remove_unreferenced_decls,
4411         varpool_finalize_named_section_flags, varpool_create_variable_alias):
4412         Update.
4414 2013-05-29  Jan Hubicka  <jh@suse.cz>
4416         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4418 2013-05-29  Easwaran Raman  <eraman@google.com>
4420         PR tree-optimization/57442
4421         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4422         when control exits the main loop.
4424 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
4426         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4427         and RX600.
4428         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4429         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4430         * rx/t-rx: Add rx100 under multi library matches option for nofpu
4431         option.
4433 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4435         PR tree-optimization/57441
4436         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4437         Don't limit size of incr_vec to number of candidates.
4439 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
4441         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4442         and mips16 directories.
4443         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4444         (MULTILIB_DIRNAMES): Ditto.
4445         (MULTILIB_EXCEPTIONS): Add new exceptions.
4446         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4447         (MULTILIB_DIRNAMES): Ditto.
4448         (MULTILIB_EXCEPTIONS): Add new exceptions.
4450 2012-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4451             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4453         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4454         SYMBOL_TINY_ABSOLUTE.
4455         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4456         SYMBOL_TINY_ABSOLUTE.
4457         (aarch64_expand_mov_immediate): Likewise.
4458         (aarch64_classify_symbol): Likewise.
4459         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4460         Permit SYMBOL_TINY_ABSOLUTE.
4461         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4463 2013-05-29  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4464             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4466         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4467         Refactor if/switch.  Replace gcc_assert with if.
4469 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4471         * config/i386/i386.c (initial_ix86_tune_features): Enable
4472         FP Reassociation for AMD bdver1 and bdver2.
4474 2013-05-29  Martin Jambor  <mjambor@suse.cz>
4476         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4477         and IMAGPART_EXPR do not occur within other handled_components.
4479 2013-05-29  Richard Biener  <rguenther@suse.de>
4481         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4482         access on whether the use is in the BB we currently try to
4483         vectorize.
4484         (vect_bb_vectorization_profitable_p): Pass the BB we currently
4485         vectorize to vect_bb_slp_scalar_cost.
4487 2013-05-29  Richard Biener  <rguenther@suse.de>
4489         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4490         computing scalar cost offsetted by stmts that are kept live
4491         by scalar uses.
4492         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4493         for computation of scalar cost.
4495 2013-05-28  Steve Ellcey  <sellcey@mips.com>
4497         * config/mips/mips-cpus.def (mips32r2): Change processor type.
4499 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
4501         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4502         array notation built-in reduction functions.
4503         * doc/passes.texi (Passes): Added documentation about changes done
4504         for Cilk Plus.
4505         * doc/invoke.texi (C Dialect Options): Added documentation about
4506         the -fcilkplus flag.
4507         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4508         (BUILTINS_DEF): Depend on cilkplus.def.
4509         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
4510         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4511         * cilkplus.def: New file.
4513 2013-05-28  Joern Rennecke <joern.rennecke@embecosm.com>
4515         PR rtl-optimization/57439
4516         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4518 2013-05-28  Easwaran Raman  <eraman@google.com>
4520         PR tree-optimization/57337
4521         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4522         (find_insert_point): Correctly identify the insertion point
4523         when two statements with the same UID is compared.
4525 2013-05-28  Richard Biener  <rguenther@suse.de>
4527         PR tree-optimization/56787
4528         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4529         from the list of data references.
4530         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4531         clobbers.
4532         (vect_analyze_loop_operations): Likewise.
4533         (vect_transform_loop): Remove clobbers.
4535 2013-05-28  Martin Jambor  <mjambor@suse.cz>
4537         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4538         and REALPART_EXPRs have scalar type.
4540 2013-05-28  Richard Biener  <rguenther@suse.de>
4542         PR tree-optimization/57411
4543         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4544         virtual operands.
4545         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4546         virtual operand propagation.
4548 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4550         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4551         destination register for bmasksi_vis.
4552         (vector_init_bshuffle): Likewise.
4553         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4555 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
4557         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4558         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4559         mode if the instruction isn't available in the original mode.
4560         * config/sparc/sparc.opt (mfix-ut699): New option.
4561         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4562         (divdf3): Turn into expander.
4563         (divdf3_nofix): New insn.
4564         (divdf3_fix): Likewise.
4565         (divsf3): Disable if -mfix-ut699.
4566         (sqrtdf2): Turn into expander.
4567         (sqrtdf2_nofix): New insn.
4568         (sqrtdf2_fix): Likewise.
4569         (sqrtsf2): Disable if -mfix-ut699.
4571 2013-05-27  Richard Biener  <rguenther@suse.de>
4573         PR middle-end/57412
4574         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4575         block for the new loop.
4577 2013-05-27  Richard Biener  <rguenther@suse.de>
4579         PR tree-optimization/57343
4580         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4581         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4582         (number_of_iterations_cond): Do not build the folded tree.
4584 2013-05-27  Richard Biener  <rguenther@suse.de>
4586         Revert
4587         PR middle-end/57381
4588         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4589         OEP_CONSTANT_ADDRESS_OF retained.
4591         PR tree-optimization/57417
4592         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4593         for unchanged base.
4594         (set_ssa_val_to): Compare addresses using
4595         get_addr_base_and_unit_offset.
4597 2013-05-27  Joern Rennecke <joern.rennecke@embecosm.com>
4599         PR rtl-optimization/56833
4600         * postreload.c (move2add_record_mode): New function.
4601         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4602         (move2add_use_add2_insn): Use move2add_record_sym_value.
4603         (move2add_use_add3_insn): Likewise.
4604         (reload_cse_move2add): Use move2add_valid_value_p and
4605         move2add_record_mode.  Invalidate call-clobbered and REG_INC
4606         affected regs by setting reg_mode to VOIDmode.
4607         (move2add_note_store): Don't pretend the inside of a SUBREG is
4608         the actual destination.  Invalidate single/leading registers by
4609         setting reg_mode to VOIDmode.
4610         Use move2add_record_sym_value, move2add_valid_value_p and
4611         move2add_record_mode.
4613 2013-05-27  Richard Biener  <rguenther@suse.de>
4615         PR tree-optimization/57396
4616         * tree-affine.c (double_int_constant_multiple_p): Properly
4617         return false for val == 0 and div != 0.
4619 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4621         * config/mips/mips.h: Use #elif in preprocessor conditions.
4623 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4625         PR target/53916
4626         * config/mips/constraints.md (kl): New constraint.
4627         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4628         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
4629         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
4630         from LO for MIPS16.
4631         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4633 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
4635         PR target/55777
4636         * config/mips/mips.c (mips_can_inline_p): New function.
4637         (TARGET_CAN_INLINE_P): Define.
4639 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
4641         * sched-int.h (ds_t, dw_t): Make unsigned int.
4642         Fix documentation that describes how all the ds_t bits are used.
4643         Reserve the last bit for delayed-branch scheduling.
4644         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4645         (BITS_PER_DEP_WEAK): Fix definition and documentation.
4646         (gen_dep_weak_1): Remove prototype.
4647         * sched-deps.c (get_dep_weak_1): Make static.
4648         * target.def (speculate_insn, needs_block_p, gen_spec_check,
4649         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4650         * doc/tm.texi: Regenerate.
4651         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4653 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
4655         PR debug/56950
4656         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4658 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
4659             Sandra Loosemore  <sandra@codesourcery.com>
4661         * config.gcc (powerpc-*): Allow native for with-cpu.
4663 2013-05-24  Jeff Law  <law@redhat.com>
4665         PR tree-optimization/57124
4666         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4667         conversion feeding a condition if the range has an overflow
4668         if -fstrict-overflow.  Add warnings for when we do make the
4669         transformation.
4671 2013-05-24  Dehao Chen  <dehao@google.com>
4673         * tree-cfg.c (locus_discrim_map): Fix the typo.
4674         (locus_discrim_hasher): Likewise.
4675         (locus_discrim_hasher::hash): Likewise.
4676         (locus_discrim_hasher::equal): Likewise.
4678 2013-05-24  Martin Jambor  <mjambor@suse.cz>
4680         PR tree-optimization/57294
4681         * cgraph.h (ipa_record_stmt_references): Declare.
4682         * cgraphbuild.c (ipa_record_stmt_references): New function.
4683         (build_cgraph_edges): Use ipa_record_stmt_references.
4684         (rebuild_cgraph_edges): Likewise.
4685         (cgraph_rebuild_references): Likewise.
4686         * ipa-prop.c (ipa_modify_call_arguments): Discard references
4687         associated with the old statement and build references from the
4688         newly built statements.
4689         * ipa-ref.c (ipa_remove_stmt_references): New function.
4690         * ipa-ref.h (ipa_remove_stmt_references): Declare.
4692 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4694         * lra-constraints.c (emit_spill_move): Use smaller mode for
4695         mem-mem moves.
4696         (check_and_process_move): Consider mem-reg moves for secondary
4697         too.
4698         (curr_insn_transform): Don't lose insns emitted before for
4699         secondary memory moves.
4700         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
4701         reg set up in the current insn.
4703 2013-05-24  Dehao Chen  <dehao@google.com>
4705         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4706         hash function.
4707         (locus_descrim_hasher::equal): Likewise.
4708         (build_gimple_cfg): New discriminator assignment algorithm.
4709         (make_edges): Likewise.
4710         (next_discriminator_for_locus): Likewise.
4711         (same_line_p): Likewise.
4712         (assign_discriminators): Likewise.
4713         (make_cond_expr_edges): Likewise.
4714         (make_gimple_switch_edges): Likewise.
4715         (make_goto_expr_edges): Likewise.
4716         (make_gimple_asm_edges): Likewise.
4718 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
4720         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4721         X format specifier to only display bottom 16 bits.
4722         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4723         immediate to match for operand 2, since it will be masked.
4725 2013-05-24  Richard Biener  <rguenther@suse.de>
4727         PR tree-optimization/57287
4728         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4729         all SSA names that occur in abnormal PHIs.
4731 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4733         PR tree-ssa/57385
4734         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4735         that index is not negative.
4737 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4739         PR rtl-optimization/55177
4740         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4741         (simplify_byte_swapping_operation): New.
4742         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4743         (simplify_relational_operation_1): Deal with BSWAP.
4745 2013-05-23  Richard Henderson  <rth@redhat.com>
4747         PR target/56742
4748         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4749         (ix86_reorg): Call it.
4751 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
4753         PR target/57379
4754         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4755         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4756         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4758 2013-05-23  Christian Bruel  <christian.bruel@st.com>
4760         PR debug/57351
4761         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4763 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4764             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4766         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4767         * config/aarch64/constraints.md (Usa): Remove.
4768         * doc/md.texi (AArch64 Usa): Remove.
4770 2013-05-23  Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4771             Marcus Shawcroft  <marcus.shawcroft@arm.com>
4773         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4774         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4775         * config/aarch64/predicates.md (aarch64_const_address): Remove.
4776         (aarch64_mov_operand): Use aarch64_mov_operand_p.
4778 2013-05-23  Vidya Praveen <vidyapraveen@arm.com>
4780         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4781         instruction (AdvSIMD).
4782         * config/aarch64/aarch64-builtins.c
4783         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4784         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4786 2013-05-23  Martin Jambor  <mjambor@suse.cz>
4788         PR middle-end/57347
4789         * tree.h (contains_bitfld_component_ref_p): Declare.
4790         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4791         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
4792         caller.
4793         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4794         not access a bit-field.  Assert all final offsets are byte-aligned.
4796 2013-05-23  Richard Biener  <rguenther@suse.de>
4798         PR tree-optimization/57380
4799         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4800         least one invariant or re-used load.
4801         * passes.c (init_optimization_passes): Move pass_phiprop before
4802         pass_forwprop.
4804 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
4806         * config/aarch64/aarch64-simd.md
4807         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4809 2013-05-23  Richard Biener  <rguenther@suse.de>
4811         PR middle-end/57381
4812         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4813         OEP_CONSTANT_ADDRESS_OF retained.
4815 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
4817         PR middle-end/57344
4818         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4819         don't lower unit.  Handle unit not being always BITS_PER_WORD.
4821 2013-05-23  Richard Biener  <rguenther@suse.de>
4823         PR rtl-optimization/57341
4824         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4825         instead of true_dependence.
4827 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
4829         * bb-reorder.c (branch_threshold): Make const.
4830         (exec_threshold): Ditto.
4832 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4833             Pat Haugen <pthaugen@us.ibm.com>
4834             Peter Bergner <bergner@vnet.ibm.com>
4836         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4837         documentation for the power8 crypto builtins.
4839         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4841         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4842         macros for defining power8 builtin functions.
4843         (BU_P8V_AV_2): Likewise.
4844         (BU_P8V_AV_P): Likewise.
4845         (BU_P8V_VSX_1): Likewise.
4846         (BU_P8V_OVERLOAD_1): Likewise.
4847         (BU_P8V_OVERLOAD_2): Likewise.
4848         (BU_CRYPTO_1): Likewise.
4849         (BU_CRYPTO_2): Likewise.
4850         (BU_CRYPTO_3): Likewise.
4851         (BU_CRYPTO_OVERLOAD_1): Likewise.
4852         (BU_CRYPTO_OVERLOAD_2): Likewise.
4853         (XSCVSPDP): Fix typo, point to the correct instruction.
4854         (VCIPHER): Add power8 crypto builtins.
4855         (VCIPHERLAST): Likewise.
4856         (VNCIPHER): Likewise.
4857         (VNCIPHERLAST): Likewise.
4858         (VPMSUMB): Likewise.
4859         (VPMSUMH): Likewise.
4860         (VPMSUMW): Likewise.
4861         (VPERMXOR_V2DI): Likewise.
4862         (VPERMXOR_V4SI: Likewise.
4863         (VPERMXOR_V8HI: Likewise.
4864         (VPERMXOR_V16QI: Likewise.
4865         (VSHASIGMAW): Likewise.
4866         (VSHASIGMAD): Likewise.
4867         (VPMSUM): Likewise.
4868         (VPERMXOR): Likewise.
4869         (VSHASIGMA): Likewise.
4871         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4872         __CRYPTO__ if the crypto instructions are available.
4873         (altivec_overloaded_builtins): Add support for overloaded power8
4874         builtins.
4876         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4877         support for power8 crypto builtins.
4878         (builtin_function_type): Likewise.
4879         (altivec_init_builtins): Add support for builtins that take vector
4880         long long (V2DI) arguments.
4882         * config/rs6000/crypto.md: New file, define power8 crypto
4883         instructions.
4885 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4886             Pat Haugen <pthaugen@us.ibm.com>
4887             Peter Bergner <bergner@vnet.ibm.com>
4889         * doc/invoke.texi (Option Summary): Add power8 options.
4890         (RS/6000 and PowerPC Options): Likewise.
4892         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4893         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
4894         wm, wn, wr documentation.
4896         * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4897         registers if direct move instructions are enabled.
4898         (wn): New constraint for no registers.
4899         (wq): New constraint for quad word even GPR registers.
4900         (wr): New constraint if 64-bit instructions are enabled.
4901         (wv): New constraint if power8 vector instructions are enabled.
4902         (wQ): New constraint for quad word memory locations.
4904         * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4905         constraint for 0..15 for crypto instructions.
4906         (gpc_reg_operand): If VSX allow registers in VSX registers as well
4907         as GPR and floating point registers.
4908         (int_reg_operand): New predicate to match only GPR registers.
4909         (base_reg_operand): New predicate to match base registers.
4910         (quad_int_reg_operand): New predicate to match even GPR registers
4911         for quad memory operations.
4912         (vsx_reg_or_cint_operand): New predicate to allow vector logical
4913         operations in both GPR and VSX registers.
4914         (quad_memory_operand): New predicate for quad memory operations.
4915         (reg_or_indexed_operand): New predicate for direct move support.
4917         * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4918         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4919         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4920         (POWERPC_MASKS): Add power8 options.
4921         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4922         various options.
4924         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4925         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4927         * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4928         (-mpower8-fusion): New power8 options.
4929         (-mpower8-fusion-sign): Likewise.
4930         (-mpower8-vector): Likewise.
4931         (-mcrypto): Likewise.
4932         (-mdirect-move): Likewise.
4933         (-mquad-memory): Likewise.
4935         * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4936         power8.
4937         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4938         registers.
4939         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4940         (rs6000_debug_vector_unit): Add p8_vector.
4941         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4942         definitions.  Also print fusion state.
4943         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4944         (rs6000_builtin_mask_calculate): Add power8 builtin support.
4945         (rs6000_option_override_internal): Add support for power8.
4946         (rs6000_common_init_builtins): Add debugging for skipped builtins
4947         if -mdebug=builtin.
4948         (rs6000_adjust_cost): Add power8 support.
4949         (rs6000_issue_rate): Likewise.
4950         (insn_must_be_first_in_group): Likewise.
4951         (insn_must_be_last_in_group): Likewise.
4952         (force_new_group): Likewise.
4953         (rs6000_register_move_cost): Likewise.
4954         (rs6000_opt_masks): Likewise.
4956         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4957         power8 capable assembler, default to power7 options.
4958         (TARGET_DIRECT_MOVE): Likewise.
4959         (TARGET_CRYPTO): Likewise.
4960         (TARGET_P8_VECTOR): Likewise.
4961         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4962         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4963         (VECTOR_MEM_P8_VECTOR_P): Likewise.
4964         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4965         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4966         (TARGET_XSCVDPSPN): Likewise.
4967         (TARGET_XSCVSPDPN): Likewsie.
4968         (TARGET_SYNC_HI_QI): Likewise.
4969         (TARGET_SYNC_TI): Likewise.
4970         (MASK_CRYPTO): Likewise.
4971         (MASK_DIRECT_MOVE): Likewise.
4972         (MASK_P8_FUSION): Likewise.
4973         (MASK_P8_VECTOR): Likewise.
4974         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4975         temporary used by some of the direct move instructions to get two FP
4976         temporary registers does not force creation of a stack frame.
4977         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4978         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4979         that any VSX registers are tieable, even if they are also an
4980         Altivec vector mode.
4981         (r6000_reg_class_enum): Add wm, wr, wv constraints.
4982         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4983         (RS6000_BTM_CRYPTO): Likewise.
4984         (RS6000_BTM_COMMON): Likewise.
4986         * config/rs6000/rs6000.md (cpu attribute): Add power8.
4987         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4988         (enum rs6000_vector): Add power8 vector support.
4990 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4992         PR target/19599
4993         PR target/57340
4994         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4995         (any_sibcall_could_use_r3): this and handle indirect calls.
4996         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4998 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5000         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
5002 2013-05-22  Richard Biener  <rguenther@suse.de>
5004         PR middle-end/57349
5005         * profile.c (branch_prob): Do not split blocks that are
5006         abnormally receiving from ECF_RETURNS_TWICE functions.
5008 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
5010         * recog.c (offsettable_address_addr_space_p): Fix calculation of
5011         address mode.  Move pointer mode initialization to the same place.
5013 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5015         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
5016         while it has any effect.
5018 2013-05-21  Easwaran Raman  <eraman@google.com>
5020         PR tree-optimization/57322
5021         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
5022         UID of the statement added to the BB to be 1.
5024 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
5026         PR tree-optimization/57331
5027         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
5028         of conversion from pointer type to integral type with integer.
5030 2013-05-21  Martin Jambor  <mjambor@suse.cz>
5032         PR lto/57289
5033         * ipa-prop.c (ipa_read_node_info): Process param_used and
5034         controlled_uses in the same order as when writing.
5036 2013-05-21  Magnus Granberg  <baldrick@free.fr>
5038         PR plugins/56754
5039         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
5041 2013-05-21  Richard Biener  <rguenther@suse.de>
5043         PR tree-optimization/57318
5044         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
5045         estimate stmts with side-effects as likely eliminated.
5047 2013-05-21  Richard Biener  <rguenther@suse.de>
5049         PR tree-optimization/57330
5050         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
5051         preserve the call stmts fntype.
5053 2013-05-21  Richard Biener  <rguenther@suse.de>
5055         PR tree-optimization/57303
5056         * tree-ssa-sink.c (statement_sink_location): Improve killing
5057         stmt detection and properly handle self-assignments.
5059 2013-05-21  Christian Bruel  <christian.bruel@st.com>
5061         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
5062         spanning registers. LEAF_REG_REMAP is supported only for contiguous
5063         registers. Set register size out of the PARALLEL loop.
5065 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
5067         PR target/56547
5068         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
5069         (*fmasf4, *fmasf4_media): New insns.
5071 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
5073         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
5074         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
5075         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
5076         (mips_idiv_insns): Update the comments to say that the returned
5077         instruction counts are in units of BASE_INSN_LENGTH.
5078         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
5079         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
5080         using 2 rather than 4 as the length of indirect MIPS16 and
5081         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
5082         length of a NOP.  Don't divide MIPS16 lengths by 2.
5083         (mips16_split_long_branches): Assume a branch is long if the
5084         length is greater than 4 rather than 8.
5085         * config/mips/mips.md (length): Give MIPS16 lengths directly,
5086         rather than multiplying them by 2.  Multiply instruction counts
5087         by BASE_INSN_LENGTH rather than 4.
5088         (*jump_mips16, tls_get_tp_mips16_<mode>)
5089         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
5091 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
5093         * config/mips/mips.md (extended_mips16): Remove branch case.
5094         (length): Remove duplicated extended_mips16 test.
5096 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
5098         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
5100 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
5102         * recog.h (Recog_data): Rename to...
5103         (recog_data_d): ...this.
5104         (recog_data): Update accordingly.
5105         * recog.c (recog_data): Likewise.
5106         * reload.c (save_recog_data): Likewise.
5107         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
5108         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
5110 2013-05-17  Julian Brown  <julian@codesourcery.com>
5112         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
5113         found in a REG_EQUAL note, invalidate it.
5115 2013-05-17  Easwaran Raman  <eraman@google.com>
5117         * tree-ssa-reassoc.c (find_insert_point): New function.
5118         (insert_stmt_after): Likewise.
5119         (get_def_stmt): Likewise.
5120         (ensure_ops_are_available): Likewise.
5121         (not_dominated_by): Likewise.
5122         (rewrite_expr_tree): Do not move statements beyond what is
5123         necessary. Remove call to swap_ops_for_binary_stmt...
5124         (reassociate_bb): ... and move it here.
5125         (build_and_add_sum): Assign UIDs for new statements.
5126         (linearize_expr): Likewise.
5127         (do_reassoc): Renumber gimple statement UIDs.
5129 2013-05-17  Jan Hubicka  <jh@suse.cz>
5131         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5132         weakrefs.
5133         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
5134         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5135         weakrefs.
5136         (output_weakrefs): Update.
5138 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
5139             Martin Jambor  <mjambor@suse.cz>
5141         PR middle-end/57276
5142         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5143         value that corresponds to the given aggval is found in values vector.
5145 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
5147         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5148         sse, sse2, sse3, ssse3 and sse4a flags to options.
5150 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
5152         * gengtype-state.c: (s_expr_writer): New class, to handle
5153         prettifying of output layout of s-expressions.
5154         (state_writer): New class, to write out gtype.state.
5155         (state_written_type_count): Move this variable into member data of
5156         state_writer.
5157         (s_expr_writer::s_expr_writer): New code: constructor for new class
5158         (state_writer::state_writer(): ditto
5159         (s_expr_writer::write_new_line): New function
5160         (s_expr_writer::write_any_indent): ditto
5161         (s_expr_writer::begin_s_expr): ditto
5162         (s_expr_writer::end_s_expr): ditto
5163         (write_state_fileloc): convert to method of state_writer...
5164         (state_writer:: write_state_fileloc): ...and use methods of
5165         s_expr_writer to write indentation into the gtype.state output file
5166         to visually represent the hierarchical structure of the list
5167         structures
5168         (write_state_fields): ditto, renaming to...
5169         (state_writer::write_state_fields)
5170         (write_state_a_string): ditto, renaming to...
5171         (state_writer::write_state_a_string)
5172         (write_state_string_option): ditto, renaming to...
5173         (state_writer::write_state_string_option)
5174         (write_state_type_option): ditto, renaming to...
5175         (state_writer::write_state_type_option)
5176         (write_state_nested_option): ditto, renaming to...
5177         (state_writer::write_state_nested_option)
5178         (write_state_option): ditto, renaming to...
5179         (state_writer::write_state_option)
5180         (write_state_options): ditto, renaming to...
5181         (state_writer::write_state_options)
5182         (write_state_lang_bitmap): ditto, renaming to...
5183         (state_writer::write_state_lang_bitmap)
5184         (write_state_version): ditto, renaming to...
5185         (state_writer::write_state_version)
5186         (write_state_scalar_type): ditto, renaming to...
5187         (state_writer::write_state_scalar_type)
5188         (write_state_string_type): ditto, renaming to...
5189         (state_writer::write_state_string_type)
5190         (write_state_undefined_type): ditto, renaming to...
5191         (state_writer::write_state_undefined_type)
5192         (write_state_struct_union_type): ditto, renaming to...
5193         (state_writer::write_state_struct_union_type)
5194         (write_state_struct_type): ditto, renaming to...
5195         (state_writer::write_state_struct_type)
5196         (write_state_user_struct_type): ditto, renaming to...
5197         (state_writer::write_state_user_struct_type)
5198         (write_state_lang_struct_type): ditto, renaming to...
5199         (state_writer::write_state_lang_struct_type)
5200         (write_state_param_struct_type): ditto, renaming to...
5201         (state_writer::write_state_param_struct_type)
5202         (write_state_pointer_type): ditto, renaming to...
5203         (state_writer::write_state_pointer_type)
5204         (write_state_array_type): ditto, renaming to...
5205         (state_writer::write_state_array_type)
5206         (write_state_gc_used): ditto, renaming to...
5207         (state_writer::write_state_gc_used)
5208         (write_state_common_type_content): ditto, renaming to...
5209         (state_writer::write_state_common_type_content)
5210         (write_state_type): ditto, renaming to...
5211         (state_writer::write_state_type)
5212         (write_state_pair_list): ditto, renaming to...
5213         (state_writer::write_state_pair_list)
5214         (write_state_pair): ditto, renaming to...
5215         (state_writer::write_state_pair)
5216         (write_state_typedefs): ditto, renaming to...
5217         (state_writer::write_state_typedefs)
5218         (write_state_structures): ditto, renaming to...
5219         (state_writer::write_state_structures)
5220         (write_state_param_structs): ditto, renaming to...
5221         (state_writer::write_state_param_structs)
5222         (write_state_variables): ditto, renaming to...
5223         (state_writer::write_state_variables)
5224         (write_state_srcdir): ditto, renaming to...
5225         (state_writer::write_state_srcdir)
5226         (write_state_files_list): ditto, renaming to...
5227         (state_writer::write_state_files_list)
5228         (write_state_languages): ditto, renaming to...
5229         (state_writer::write_state_languages)
5230         (write_state): create a state_writer instance and use it when
5231         writing out the state file
5233 2013-05-17  Mike Stump  <mikestump@comcast.net>
5235         PR rtl-optimization/57304
5236         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5237         accessing DF_REF_REAL_LOC.
5239 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
5241         PR rtl-optimization/57281
5242         PR rtl-optimization/57300
5243         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5244         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5245         what the other splitter did if the registers are dead.
5247 2013-05-17  Richard Biener  <rguenther@suse.de>
5249         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5250         MEM_REF offsets.
5252 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
5254         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5255         linking.
5257 2013-05-17  Marek Polacek  <polacek@redhat.com>
5259         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5260         length when doing non-zero store of storing '\0' to '\0'.
5262 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
5264         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5265         vect_external_def oprnd1 with loop_vinfo, try to emit
5266         optional cast, negation and and stmts on the loop preheader
5267         edge instead of into the pattern def seq.
5269         PR tree-optimization/57051
5270         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5271         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5273 2013-05-16  Nick Clifton  <nickc@redhat.com>
5275         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5276         (rl78_is_naked_func): New function.
5277         (rl78_expand_prologue): Skip prologue generation for naked functions.
5278         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5279         * doc/extend.texi (naked): Add RL78 to the list of processors
5280         that supports this attribute.
5282 2013-05-16  Jeff Law  <law@redhat.com>
5284         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5286 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
5288         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5289         cache parameters using detect_caches_amd also for CYRIX,
5290         NSC and TM2 signatures.
5292 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
5293             Dzianis Kahanovich  <mahatma@eu.by>
5295         PR target/45359
5296         PR target/46396
5297         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5298         VIA/Centaur processors and determine their cache parameters
5299         using detect_caches_amd.
5301 2013-05-16  Teresa Johnson  <tejohnson@google.com>
5303         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5304         (rtl_verify_edges): New function.
5305         (rtl_verify_bb_insns): Ditto.
5306         (rtl_verify_bb_pointers): Ditto.
5307         (rtl_verify_bb_insn_chain): Ditto.
5308         (rtl_verify_fallthru): Ditto.
5309         (rtl_verify_bb_layout): Ditto.
5310         (rtl_verify_flow_info_1): Outline checks into new functions.
5311         (rtl_verify_flow_info): Ditto.
5313 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
5315         * cfghooks.c (copy_bbs): Add update_dominance argument.
5316         * cfghooks.h (copy_bbs): Update prototype.
5317         * tree-cfg.c (gimple_duplicate_sese_region):
5318         Add update_dominance argument.
5319         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5320         * tree-ssa-loop-ch.c (copy_loop_headers): Update
5321         gimple_duplicate_sese_region call.
5322         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5323         Update copy_bbs call.
5324         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5325         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5327 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
5329         * tree-vectorizer.h (NUM_PATTERNS): Increment.
5330         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5331         vect_recog_rotate_pattern.
5332         (vect_recog_rotate_pattern): New function.
5334 2013-05-16  Jason Merrill  <jason@redhat.com>
5336         * Makefile.in (LLINKER): New variable.
5337         (mostlyclean): Remove link mutex.
5338         * configure.ac: Handle --enable-link-mutex.
5339         * lock-and-run.sh: New script.
5341 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5343         PR target/19599
5344         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5345         for NULL decl.
5347 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5349         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5351 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
5353         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5354         * config/arm/arm.c (next_consecutive_mem): New function.
5355         (gen_movmem_ldrd_strd): Likewise.
5356         * config/arm/arm.md (movmemqi): Update condition and code.
5357         (unaligned_loaddi, unaligned_storedi): New patterns.
5359 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5361         * config.gcc: Obsolete *-*-solaris2.9*.
5362         * doc/install.texi (Specific, *-*-solaris2*): Document it.
5364 2013-05-16  Richard Biener  <rguenther@suse.de>
5366         * passes.c (init_optimization_passes): Move pass_parallelize_loops
5367         earlier, after GRAPHITE transforms and IV canonicalization.
5369 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
5371         * omp-low.c (extract_omp_for_data): For collapsed loops,
5372         if at least one of the loops is known at compile time to
5373         iterate zero times, set count to 0.
5374         (expand_omp_regimplify_p): New function.
5375         (expand_omp_for_generic): For collapsed loops, if at least
5376         one of the loops isn't known to iterate at least once,
5377         add runtime check with setting count to 0.
5378         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5379         For unsigned types if it isn't known at compile time that
5380         the loop will iterate at least once, add runtime check to bypass
5381         the whole loop if initial condition isn't true.
5383 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
5385         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5387 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
5389         PR middle-end/57286
5390         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5391         transformations to avoid an infinite loop.
5393 2013-05-16  Marek Polacek  <polacek@redhat.com>
5395         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5397 2013-05-15  Leif Ekblad  <leif@rdos.net>
5399         * config/i386/i386.c (ix86_decompose_address): Use
5400         DEFAULT_TLS_SEG_REG to access TLS segment register.
5401         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5402         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5403         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5405 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
5407         PR target/57260
5408         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5409         sibling calls to functions that would normally be lazily bound,
5410         unless $gp is call-clobbered.
5412 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
5414         * config/i386/i386.c (ix86_option_override_internal): Update
5415         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
5416         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5417         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5418         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5419         of TARGET_3DNOW.
5420         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5422 2013-05-15  Andreas Schwab  <schwab@suse.de>
5424         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5425         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
5426         third operand.
5428 2013-05-15  Teresa Johnson  <tejohnson@google.com>
5430         * loop-unroll.c (report_unroll_peel): Check decision before
5431         emitting unroll/peel message.
5433 2013-05-15  Teresa Johnson  <tejohnson@google.com>
5435         * function.h (has_bb_partition): New rtl_data flag.
5436         (bb_reorder_complete): Ditto.
5437         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5438         instead of flag_reorder_blocks_and_partition.
5439         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5440         with some enhancements.
5441         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5442         * bb-reorder.c (connect_traces): Check for has_bb_partition
5443         instead of flag_reorder_blocks_and_partition.
5444         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5445         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5446         verify_hot_cold_block_grouping.
5447         (partition_hot_cold_basic_blocks): Set has_bb_partition.
5449 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5451         PR target/19599
5452         * config/arm/predicates.md (call_insn_operand): New predicate.
5453         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
5454         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5455         if insn is not a tail call.
5456         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5457         registers.
5458         * config/arm/arm.h (enum reg_class): New caller save register class.
5459         (REG_CLASS_NAMES): Likewise.
5460         (REG_CLASS_CONTENTS): Likewise.
5461         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5462         without decls.
5464 2013-05-15  Richard Biener  <rguenther@suse.de>
5466         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5467         of MSG_OPTIMIZED_LOCATIONS.
5468         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5469         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5470         message.
5471         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5472         of MSG_OPTIMIZED_LOCATIONS.
5473         (execute_vect_slp): Likewise.
5474         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5475         (vect_create_cond_for_alias_checks): Likewise.
5476         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5477         (vect_recog_widen_mult_pattern): Likewise.
5478         (vect_recog_widen_sum_pattern): Likewise.
5479         (vect_recog_over_widening_pattern): Likewise.
5480         (vect_recog_widen_shift_pattern): Likewise.
5481         (vect_recog_vector_vector_shift_pattern): Likewise.
5482         (vect_recog_divmod_pattern): Likewise.
5483         (vect_recog_mixed_size_cond_pattern): Likewise.
5484         (vect_recog_bool_pattern): Likewise.
5485         (vect_pattern_recog_1): Likewise.
5487 2013-05-15  Martin Jambor  <mjambor@suse.cz>
5489         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5490         non-functions to builtin_unreachable.
5491         * ipa-inline-transform.c (inline_call): Do not assert estimates were
5492         correct when new direct edges were discovered.
5494 2013-05-15  Martin Jambor  <mjambor@suse.cz>
5496         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5497         header, print symbol order instead of node uid, print more information
5498         about indirect edge targets.
5499         (ipa_make_edge_direct_to_target): Print symbol order instead of node
5500         uids.
5501         (ipa_make_edge_direct_to_target): Likewise.
5502         (remove_described_reference): Likewise.
5503         (propagate_controlled_uses): Likewise.
5504         (ipa_print_node_params): Also print symbol order.
5505         (ipcp_transform_function): Print symbol order instead of node uids.
5506         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5507         (cgraph_get_create_real_symbol_node): Likewise.
5508         * ipa-cp.c (print_lattice): Likewise.
5509         (print_all_lattices): Likewise.
5510         (determine_versionability): Likewise.
5511         (initialize_node_lattices): Likewise.
5512         (estimate_local_effects): Likewise.
5513         (update_profiling_info): Likewise.
5514         (create_specialized_node): Likewise.
5515         (perhaps_add_new_callers): Likewise.
5516         (decide_about_value): Likewise.
5517         (decide_whether_version_node): Likewise.
5518         (identify_dead_nodes): Likewise.
5519         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5520         (dump_inline_summary): Likewise.
5521         (estimate_node_size_and_time): Likewise.
5522         (inline_analyze_function): Likewise.
5523         * ipa-inline.c (report_inline_failed_reason): Likewise.
5524         (want_early_inline_function_p): Likewise.
5525         (edge_badness): Likewise.
5526         (update_edge_key): Likewise.
5527         (inline_small_functions): Likewise.  Add dumping of order to two other
5528         dumps.
5529         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5530         instead of node uids.
5531         (propagate_pure_const): Likewise.
5532         (propagate_pure_const): Likewise.
5533         * ipa-utils.c (dump_cgraph_node_set): Likewise.
5534         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5535         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5536         of node uids.
5537         * tree-pretty-print.c (dump_function_header): Likewise.
5538         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5539         Print symbol order instead of node uids.
5541 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5543         * config/s390/s390.c (s390_register_move_cost): Don't impose the
5544         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5546 2013-05-15  Richard Biener  <rguenther@suse.de>
5548         PR tree-optimization/57275
5549         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5550         return value for fail to do runtime alias checks for gather loads.
5552 2013-05-15  Jan Hubicka  <jh@suse.cz>
5554         PR lto/57038
5555         PR lto/47375
5556         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5557         weakrefs are not external.
5558         (lto_symtab_merge_decls): Fix thinko when dealing with
5559         non-lto_symtab decls.
5560         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5561         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5562         * varpool.c (dump_varpool_node): Dump more flags.
5564 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5566         * config/i386/i386.c (processor_alias_table): Add instruction
5567         FSGSBASE for AMD bdver3 architecture.
5569 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5571         * tree.c (warn_deprecated_use): Print file:line using locus color.
5572         * diagnostic.c (diagnostic_report_current_module): Print file:line
5573         and file:line:column using locus color.
5575 2013-05-14  Mike Stump  <mikestump@comcast.net>
5577         * gdbinit.in: Add __null.
5579 2013-05-14  Mike Stump  <mikestump@comcast.net>
5581         * recog.h: Rename struct recog_data to Recog_data.
5582         * recog.c: Likewise.
5583         * reload.c (can_reload_into): Likewise.
5584         * config/picochip/picochip.c: Likewise.
5586 2013-05-14  Mike Stump  <mikestump@comcast.net>
5588         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5590 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
5592         * resource.h (struct resources): Remove unch_memory member.
5593         (CLEAR_RESOURCE): Don't clear unch_memory.
5594         * resource.c (mark_referenced_resources): Don't set it.
5595         (mark_set_resources): Likewise.
5596         (mark_target_live_regs): Don't clear it.
5597         (init_resource_info): Likewise.
5598         * reorg.c (resource_conflicts_p): Don't compare it.
5599         (redundant_insn): Don't set it.
5601         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5602         Remove prototypes.
5603         * emit-rtl.c (next_label): Remove unused function.
5604         (skip_consecutive_labels, link_cc0_insns): Move to ...
5605         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5606         only place where these functions are used, and make them static.
5608 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5610         * fold-const.c (fold_negate_expr): Handle vectors.
5611         (fold_truth_not_expr): Make it static.
5612         (fold_invert_truthvalue): New static function.
5613         (invert_truthvalue_loc): Handle vectors. Do not call
5614         fold_truth_not_expr directly.
5615         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5616         <TRUTH_NOT_EXPR>: Do not cast to boolean.
5617         (fold_comparison): Handle vector constants.
5618         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5619         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5620         * tree.h (fold_truth_not_expr): Remove declaration.
5622 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
5624         * config/aarch64/aarch64-simd.md
5625         (aarch64_vcond_internal<mode>): Rename to...
5626         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5627         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5628         float modes. Clarify all iterator modes.
5629         (vcond<mode><mode>): Use new name for vcond expanders.
5630         (vcond<v_cmp_result><mode>): Likewise.
5631         (vcondu<mode><mode>: Likewise.
5632         * config/aarch64/iterators.md (VDQF_COND): New.
5634 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
5636         PR bootstrap/57266
5637         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5638         variable for the shift amount. Check that we shift by non-negative
5639         amounts.
5641 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
5643         PR target/42017
5644         * config/arm/arm.h (EPILOGUE_USES): Only return true
5645         for LR_REGNUM after epilogue_completed.
5647 2013-05-14  Joern Rennecke <joern.rennecke@embecosm.com>
5649         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5650         is error_mark_node.
5652 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5654         PR target/57261
5655         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5656         and Solaris 11+/x86 with gld.
5657         * configure: Regenerate.
5659 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5661         * expmed.c (expand_shift_1): Canonicalize rotates by
5662         constant bitsize / 2 to bitsize - 1.
5663         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5664         case ROTATERT>: Likewise.
5666         Revert:
5667         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5669         * config/i386/i386.md (rotateinv): New code attr.
5670         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5671         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5672         roll $31, %eax, etc.
5674 2013-05-14  Richard Biener  <rguenther@suse.de>
5676         PR middle-end/57235
5677         * tree-eh.c (sink_clobbers): Give up for successors with
5678         multiple predecessors and no virtual uses.
5680 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5682         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5683         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5685 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
5687         PR middle-end/57251
5688         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5689         the case when both op0 and op1 have VOIDmode.
5691 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5693         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5694         in multiply-accumulate mode.
5696 2013-05-13  Guozhi Wei  <carrot@google.com>
5698         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5700 2013-05-13  Kai Tietz  <ktietz@redhat.com>
5702         PR target/56975
5703         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5704         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5705         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5706         * config/i386/i386.c (ix86_option_override_internal): Likewise.
5707         (ix86_expand_prologue): Likewise.
5708         (ix86_expand_split_stack_prologue): Likewise.
5709         (legitimate_pic_address_disp_p): Likewise.
5710         (legitimize_pic_address): Likewise.
5711         (legitimize_tls_address): Likewise.
5712         (legitimize_pe_coff_symbol): Likewise.
5713         (output_pic_addr_const): Likewise.
5714         (construct_plt_address): Likewise.
5715         (ix86_expand_call): Likewise.
5716         (x86_output_mi_thunk): Likewise.
5717         (x86_function_profiler): Likewise.
5719 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
5721         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5722         similar switch cases.
5723         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5724         (aarch64_simd_mov_to_<mode>low): Delete.
5725         (aarch64_simd_mov_to_<mode>high): Delete.
5726         (move_lo_quad_<mode>): Add w<-r alternative.
5727         (aarch64_simd_move_hi_quad_<mode>): Likewise.
5728         (aarch64_simd_mov_from_*): Update type attribute.
5729         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5730         statement.
5732 2013-05-13  Jan Hubicka  <jh@suse.cz>
5734         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5735         * config/i386/i386.c (ix86_compute_frame_layout,
5736         ix86_expand_epilogue, emit_i387_cw_initialization,
5737         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5738         ix86_local_alignment): Fix use of size/speed predicates.
5740 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5742         PR tree-optimization/45216
5743         PR tree-optimization/57157
5744         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5745         the (-Y) & (B - 1) variant if OP is |.
5746         * expmed.c (expand_shift_1): For rotations by const0_rtx just
5747         return shifted.  Use (-op1) & (prec - 1) as other_amount
5748         instead of prec - op1.
5750 2013-05-13  Martin Jambor  <mjambor@suse.cz>
5752         PR middle-end/42371
5753         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5754         (ipa_constant_data): New type.
5755         (ipa_jump_func): Use ipa_constant_data to hold information about
5756         constant jump functions.
5757         (ipa_get_jf_constant): Adjust to jump function type changes.
5758         (ipa_get_jf_constant_rdesc): New function.
5759         (ipa_param_descriptor): New field controlled_uses.
5760         (ipa_get_controlled_uses): New function.
5761         (ipa_set_controlled_uses): Likewise.
5762         * ipa-ref.h (ipa_find_reference): Declare.
5763         * ipa-prop.c (ipa_cst_ref_desc): New type.
5764         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5765         changes.
5766         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
5767         New parameter cs.  Adjust all callers.
5768         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5769         (remove_described_reference): New function.
5770         (jfunc_rdesc_usable): Likewise.
5771         (try_make_edge_direct_simple_call): Decrement controlled use count,
5772         attempt to remove reference if it hits zero.
5773         (combine_controlled_uses_counters): New function.
5774         (propagate_controlled_uses): Likewise.
5775         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5776         (ipa_edge_duplication_hook): Duplicate reference descriptions.
5777         (ipa_print_node_params): Print described use counter.
5778         (ipa_write_jump_function): Adjust to jump function type changes.
5779         (ipa_read_jump_function): New parameter CS, pass it to
5780         ipa_set_jf_constant.  Adjust caller.
5781         (ipa_write_node_info): Stream controlled use count
5782         (ipa_read_node_info): Likewise.
5783         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5784         asserting.
5785         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5786         count.  Remove cloning-added reference if it reaches zero.
5787         * ipa-ref.c (ipa_find_reference): New function.
5789 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
5791         * config/i386/i386.c (processor_target_table): Modified default
5792         alignment values for AMD BD and BT architectures.
5794 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
5796         * tree-vect-generic.c (uniform_vector_p): Move ...
5797         * tree.c (uniform_vector_p): ... here.
5798         * tree.h (uniform_vector_p): Declare it.
5799         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5800         into a scalar.
5802 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
5804         PR tree-optimization/57230
5805         * tree-ssa-strlen.c (handle_char_store): Record length for
5806         array store from STRING_CST.
5808         PR tree-optimization/57230
5809         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5810         check.
5812 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5814         * config/epiphany/epiphany.c (epiphany_init): Check size of
5815         NUM_MODES_FOR_MODE_SWITCHING.
5816         (epiphany_expand_prologue):
5817         Remove CONFIG_REGNUM initial value handling code.
5818         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5819         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5820         (emit_set_fp_mode, epiphany_mode_after): Likewise.
5821         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5822         Don't return 1 for FP_MODE_NONE.
5823         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5824         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5825         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5826         * config/epiphany/epiphany.md (save_config): New pattern.
5828 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
5830         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5832 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
5834         * config/i386/i386.md (memory): Handle sseishft1.
5835         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5836         (*vec_extractv2di_1): Ditto.
5838 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
5840         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5841         saved registers.
5843 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5845         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5846         Add mthumb/march=armv7-a multilib.
5847         Add mthumb/march=armv7-r multilib.
5848         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5850 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
5852         * config/v850/t-rtems: Add more multilibs.
5854 2013-05-10  Richard Biener  <rguenther@suse.de>
5856         PR tree-optimization/57214
5857         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5858         not propagate from SSA names that occur in abnormal PHI nodes.
5860 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
5862         * stor-layout.c (element_precision): New function.
5863         * machmode.h (element_precision): Declare it.
5864         * tree.c (build_minus_one_cst): New function.
5865         (element_precision): Likewise.
5866         * tree.h (build_minus_one_cst): Declare new function.
5867         (element_precision): Likewise.
5868         * fold-const.c (operand_equal_p): Use element_precision.
5869         (fold_binary_loc): Handle vector types.
5870         * convert.c (convert_to_integer): Use element_precision.
5871         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5872         separately.
5874 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5876         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5877         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5878         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5879         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5880         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5881         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5882         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5883         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5884         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5885         (Uuw8): New constraints.
5886         (Usb4): Move into alphabetical order.
5887         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5888         (sd8_operand, ub8_operand, uw8_operand): New predicates.
5889         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5890         previously unnamed patterns.
5891         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5892         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5893         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5894         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5895         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
5896         of specific lengths.
5898 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
5900         * config/i386/i386.md (rotateinv): New code attr.
5901         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5902         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5903         roll $31, %eax, etc.
5905         PR tree-optimization/45216
5906         PR tree-optimization/57157
5907         * tree-ssa-forwprop.c (simplify_rotate): New function.
5908         (ssa_forward_propagate_and_combine): Call it.
5910 2013-05-10  Richard Biener  <rguenther@suse.de>
5912         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5913         disable peeling when we version for aliasing.
5914         (vector_alignment_reachable_p): Honor explicit user alignment.
5915         (vect_supportable_dr_alignment): Likewise.
5916         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5917         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5918         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5919         then peeling to arrange for the cost-model check to come first.
5921 2013-05-10  Alan Modra  <amodra@gmail.com>
5923         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5924         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5925         * configure: Regenerate.
5927 2013-05-10  Alan Modra  <amodra@gmail.com>
5929         PR target/55033
5930         * varasm.c (default_elf_select_section): Move !DECL_P check..
5931         (get_named_section): ..to here before calling get_section_name.
5932         Adjust assertion.
5933         (default_section_type_flags): Add DECL_P check.
5934         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5935         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5937 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5939         * config/epiphany/epiphany.c (epiphany_expand_prologue):
5940         When using gen_stack_adjust_str with a register offset, add a
5941         REG_FRAME_RELATED_EXPR note.
5943 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
5945         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5946         (*vec_extractv4si_zext_mem): Ditto.
5947         (*vec_extractv2di): Add 0->x and x->x alternatives.
5948         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5949         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5951 2013-05-09  Jason Merrill  <jason@redhat.com>
5953         N3639 C++1y VLA support
5954         * gimplify.c (gimplify_vla_decl): Don't touch an existing
5955         DECL_VALUE_EXPR.
5957         * tree.c (build_constructor_va): New.
5958         * tree.h: Declare it.
5960 2013-05-09  Martin Jambor  <mjambor@suse.cz>
5962         PR lto/57084
5963         * gimple-fold.c (canonicalize_constructor_val): Call
5964         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5966 2013-05-09  Jan Hubicka  <jh@suse.cz>
5967             Richard Biener  <rguenther@suse.de>
5969         PR lto/54095
5970         * symtab.c (symtab_make_decl_local): Do not add private names.
5972 2013-05-09  Jan Hubicka  <jh@suse.cz>
5974         PR lto/54095
5975         * symtab.c (insert_to_assembler_name_hash): Handle clones.
5976         (unlink_from_assembler_name_hash): Likewise.
5977         (symtab_prevail_in_asm_name_hash, symtab_register_node,
5978         symtab_unregister_node, symtab_initialize_asm_name_hash,
5979         change_decl_assembler_name): Update.
5981 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
5983         * config/aarch64/aarch64.md: New movtf split.
5984         (*movtf_aarch64): Update.
5985         (aarch64_movdi_tilow): Handle TF modes and rename to
5986         aarch64_movdi_<mode>low.
5987         (aarch64_movdi_tihigh): Handle TF modes and rename to
5988         aarch64_movdi_<mode>high
5989         (aarch64_movtihigh_di): Handle TF modes and rename to
5990         aarch64_mov<mode>high_di
5991         (aarch64_movtilow_di): Handle TF modes and rename to
5992         aarch64_mov<mode>low_di
5993         (aarch64_movtilow_tilow): Remove spurious whitespace.
5994         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5995         splits.
5996         (aarch64_print_operand): Update.
5998 2013-05-09  Alan Modra  <amodra@gmail.com>
6000         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
6001         powerpc64le.
6002         * configure: Regenerate.
6004 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
6006         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
6007         splitter preparation statements.
6008         * config/i386/sse.md (*vec_extract* splitters): Ditto.
6009         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
6010         adjust_address_nv.
6012 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6014         * gimple-ssa-strength-reduction.c (count_candidates): Change
6015         return value to int.
6016         (analyze_candidates_and_replace): Change type of length to int.
6018 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
6020         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
6021         (*vec_extract<mode>): Use VI12_128 mode iterator.
6022         (*vec_extract<mode>_mem): Ditto.
6023         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
6024         attribute.
6026 2013-05-08  Diego Novillo  <dnovillo@google.com>
6028         PR bootstrap/54659
6030         Revert:
6031         2012-08-17  Diego Novillo  <dnovillo@google.com>
6033         PR bootstrap/54281
6034         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
6035         * config.in: Regenerate.
6036         * configure: Regenerate.
6037         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
6039 2013-05-08  Jan Hubicka  <jh@suse.cz>
6041         PR lto/54095
6042         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
6043         * cgraph.h (symtab_node_base): Add unique_name.
6044         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6045         input_overwrite_node, input_varpool_node): Stream unique_name.
6046         * cgraphclones.c (cgraph_create_virtual_clone,
6047         cgraph_function_versioning): Set unique_name.
6048         * ipa.c (function_and_variable_visibility): Set unique_name.
6050 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6052         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
6053         (alloc_cand_and_find_basis): Restrict conditional candidate
6054         processing to CAND_MULTs.
6056 2013-05-08  Jan Hubicka  <jh@suse.cz>
6058         PR lto/54095
6059         lto-symtab.c (lto_symtab_symbol_p): New function.
6060         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
6061         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
6062         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
6063         Skip static symbols.
6065 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
6067         PR tree-optimization/57200
6068         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6069         Only call inform if the preceding warning_at returns true.
6071 2013-05-07  Han Shen  <shenhan@google.com>
6073         * cfgexpand.c (record_or_union_type_has_array_p): New function.
6074         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
6075         * common.opt (fstack-protector-strong): New option.
6076         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
6077         * doc/invoke.texi (Optimization Options): Document
6078         "-fstack-protector-strong".
6079         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
6081 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
6083         * config/mips/mips.c (mips_machine_reorg2): Return 0.
6085 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
6087         * ira.c (update_equiv_regs): Add insn having equiv memory even if
6088         it is not lhs of the insn.
6089         (setup_reg_equiv): Remove insn having equiv memory which it is not
6090         lhs of the insn.
6091         * lra-constraints.c (process_address): Try to improve generation
6092         code for address base + disp.
6093         (lra_constraints): Make correct the code for checking insn setting
6094         up backward equivalence.  Remove insn only if it is in the init
6095         insn list.
6096         * lra-eliminations.c (update_reg_eliminate): Change return value.
6097         (lra_eliminate): Use the result.
6099 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
6101         * config/i386/sse.md (ssescalarnummask): New mode attribute.
6102         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
6103         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
6104         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
6105         register target operands.
6106         (*vec_extractv8hi_sse2): New pattern.
6107         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
6108         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
6109         (*vec_extract<mode>_mem): New insn and split pattern.
6111 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
6113         * config/arm/arm.c (arm_asan_shadow_offset): New function.
6114         (TARGET_ASAN_SHADOW_OFFSET): Define.
6115         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6116         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
6118 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6120         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
6121         (incr_vec_index): Return -1 if increment not found.
6122         (create_add_on_incoming_edge): Assert if increment not found.
6123         (record_increment): Limit number of increments recorded.
6124         (all_phi_incrs_profitable): Return false if an increment not found.
6125         (replace_profitable_candidates): Don't process increments that were
6126         not recorded.
6127         (analyze_candidates_and_replace): Limit size of incr_vec.
6129 2013-05-07  Richard Biener  <rguenther@suse.de>
6131         * calls.c (special_function_p): setjmp-like functions are leaf.
6132         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6133         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6135 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
6137         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6138         (aarch64_simd_mov<mode>): New expander.
6139         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6140         (aarch64_simd_mov_to_<mode>high): Likewise.
6141         (aarch64_simd_mov_from_<mode>low): Likewise.
6142         (aarch64_simd_mov_from_<mode>high): Likewise.
6143         (aarch64_dup_lane<mode>): Update.
6144         (aarch64_dup_lanedi): New instruction pattern.
6145         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6146         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6148 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6150         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6151         (replace_mult_candidate): Remove unnecessary argument; remove
6152         unnecessary parameter from call to introduce_cast_before_cand.
6153         (replace_unconditional_candidate): Remove unnecessary parameter
6154         from call to replace_mult_candidate.
6155         (replace_conditional_candidate): Likewise.
6156         (insert_initializers): Use make_temp_ssa_name.
6157         (introduce_cast_before_cand): Remove unnecessary argument; use
6158         make_temp_ssa_name.
6159         (replace_one_candidate): Remove unnecessary argument; remove
6160         unnecessary parameter from calls to introduce_cast_before_cand.
6161         (replace_profitable_candidates): Remove unnecessary parameters
6162         from calls to replace_one_candidate.
6164 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6166         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6167         phi def as possibly hiding a basis for a CAND_ADD whose operands
6168         have been commuted in the analysis.
6169         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6171 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6173         * config/aarch64/aarch64.md
6174         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6175         shift value between 0-4.
6177 2013-05-07  Richard Biener  <rguenther@suse.de>
6179         * double-int.h (rshift): New overload.
6180         * double-int.c (rshift): New function.
6181         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6182         (create_reference_ops_from_ref): Remove.
6183         (vn_reference_insert): Use shared ops for constructing the
6184         reference and copy it.
6186 2013-05-07  Richard Biener  <rguenther@suse.de>
6188         PR middle-end/57190
6189         * tree-eh.c (sink_clobbers): Properly propagate
6190         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6192 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
6194         PR tree-optimization/57149
6195         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6196         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6197         collect_phi_def_edges, execute_late_warn_uninitialized): Use
6198         uninit_undefined_value_p instead of ssa_undefined_value_p.
6200         PR debug/57184
6201         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6202         for modifier == EXPAND_INITIALIZER.
6204 2013-05-07  Anton Blanchard  <anton@samba.org>
6206         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6207         for powerpc64 little endian.
6208         * configure: Regenerate.
6210 2013-05-06  Graham Stott  <grahams@btinternet.com>
6212         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6213         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6214         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6215         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6217 2013-05-06  Graham Stott  <grahams@btinternet.com>
6219         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6220         codes which allow non-lvalues.
6222 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
6224         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6225         components are all 1s.
6226         (integer_minus_onep): New function.
6227         * tree.h (integer_minus_onep): Declare it.
6228         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6229         integer_minus_onep instead of integer_all_onesp.
6231 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6233         PR target/52933
6234         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6235         variations of these patterns.
6237 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
6239         * config/i386/i386.md (isa): Add x64_sse4 member.
6240         (enabled): Handle x64_sse4.
6241         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6242         instruction for 64bit SSE4_1 targets.  Update insn attributes.
6243         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6244         instruction for SSE4_1 targets.  Update insn attributes.
6245         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6246         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6247         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6248         const_1 selector.
6249         (*vec_extractv4si): Rename from *sse4_1_pextrd.
6250         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6251         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6253 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6255         PR target/57108
6256         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6258 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
6260         * final.c (do_assembler_dialects): Don't handle curly braces and
6261         vertical bar escaped by % as dialect delimiters.
6262         (output_asm_insn): Print curly braces and vertical bar if escaped
6263         by % and ASSEMBLER_DIALECT defined.
6264         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6265         * doc/tm.texi: Regenerated.
6267 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
6269         * config/mips/mips.c: Include tree-pass.h.
6270         (mips_reorg): Split in pre- and post-dbr_schedule parts.
6271         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6272         (pass_mips_machine_reorg2): New machine specific pass.
6273         (insert_pass_mips_machine_reorg2): New pass plugin definition.
6274         (mips_option_override): Register the new pass.
6275         * rtl.h (cleanup_barriers): Remove prototype.
6276         (dbr_schedule): Likewise.
6277         * jump.c (cleanup_barriers): Make static.
6278         * reorg.c (dbr_schedule): Likewise.
6280 2013-05-06  Richard Biener  <rguenther@suse.de>
6282         PR tree-optimization/57185
6283         * tree-parloops.c (add_field_for_reduction): Handle anonymous
6284         SSA names properly.
6286 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
6288         PR target/57106
6289         * config/i386/i386.c (add_parameter_dependencies): Add dependence
6290         between "first_arg" and "insn", not "last" and "insn".
6292 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6294         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6295         (find_candidates_in_block): Re-enable slsr_process_phi.
6296         (create_phi_basis): Fix double counting of candidate adjustment.
6298 2013-05-06  Richard Biener  <rguenther@suse.de>
6300         PR middle-end/57147
6301         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6302         the edge is also fallthru, preserve it and just clear the
6303         abnormal flag.
6304         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6305         also complex, preserve that and just clear the fallthru flag.
6306         * tree-inline.c (update_ssa_across_abnormal_edges): Also
6307         update virtual operands.
6309 2013-05-06  Alan Modra  <amodra@gmail.com>
6311         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6312         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6313         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6314         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6315         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6316         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6318 2013-05-06  Alan Modra  <amodra@gmail.com>
6320         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6321         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
6322         (DEFAULT_ASM_ENDIAN): Define.
6323         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6324         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6325         Update -K PIC clause from sysv4.h.
6326         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6327         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6329 2013-05-06  Alan Modra  <amodra@gmail.com>
6331         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6332         twice for little-endian.
6333         (ashrdi3_no_power, ashrdi3): Support little-endian.
6335 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
6337         PR target/55303
6338         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6339         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6340         related expanders.
6341         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6342         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6343         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6344         New predicates.
6346 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
6347             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6349         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6350         * config/pa/pa.opt: Make mbig-switch a no-op.
6351         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6352         (CASE_VECTOR_MODE): Always return SImode.
6353         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6354         for the !TARGET_BIG_SWITCH case.
6355         * config/pa/pa-linux.h: Likewise.
6356         * config/pa/pa-openbsd.h: Likewise.
6357         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6358         * config/pa/pa.md (short_jump): Remove define_insn.
6359         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6360         (casesi0): Remove define_insn.
6361         (type): Remove btable_branch.
6362         (pa_combine_type): Likewise.
6363         (in_nullified_branch_delay): Likewise.
6364         (in_call_delay): Likewise.
6365         (define_delay): Likewise.
6366         (define_insn_reservation "Z3"): Likewise.
6367         (define_insn_reservation "Z4"): Likewise.
6368         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6369         (pa_adjust_insn_length): Remove adjustment for btable branches.
6370         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6371         and mno-big-switch
6373 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
6375         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6376         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6377         Add m->r,x alternatives.
6378         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6379         splitters using SWI48x mode iterator.
6380         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
6381         TARGET_64BIT.  Add m->x alternative.
6382         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6383         Add o->x alternative.  Enable for TARGET_SSE.
6384         (sse_storeq): Remove expander.
6385         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6386         with memory input operand.
6387         (*vec_extractv2di_1 splitter): New.
6388         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6389         * config/i386/i386.md (ssevecmodelower): New mode attribute.
6391 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6393         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
6394         (INT_LOWPART): Delete.
6395         (extract_MB): Adjust.
6396         (extract_ME): Adjust.
6397         (print_operand): Adjust.
6399 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
6401         * config/rs6000/predicates.md (reg_or_add_cint_operand,
6402         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6403         (reg_or_logical_cint_operand, easy_fp_constant,
6404         logical_const_operand): Delete "CONST_DOUBLE" case.
6405         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6406         "HOST_BITS_PER_WIDE_INT == 64" test.
6407         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
6408         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6409         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6410         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6411         test.
6412         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6413         CONST_DOUBLE DImode/VOIDmode case.
6414         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6415         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
6416         CONST_DOUBLE VOIDmode case.
6417         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6418         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6419         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6420         Delete CONST_DOUBLE case.
6421         (splitters for mov FMOVE64 const_double): Delete
6422         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
6423         "HOST_BITS_PER_WIDE_INT >= 64" test.
6424         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6425         case.
6426         (mov DI const_double): Delete.
6428 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
6430         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6431         on op shows all bits zero in mode of a lowpart subreg, return zero.
6433 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6435         PR target/57150
6436         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6437         to save TFmode registers and DImode to save TImode registers for
6438         caller save operations.
6439         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6440         mark being partially clobbered since they only use the first
6441         double word.
6443         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6444         and TDmode only use the upper 64-bits of each VSX register.
6446 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6448         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6449         (find_candidates_in_block): Disable slsr_process_phi.
6451 2013-05-03  Guozhi Wei  <carrot@google.com>
6453         * coverage.c (coverage_obj_init): Move the construction of gcov
6454         constructor to ...
6455         (build_init_ctor): ... here.
6457 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6459         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6460         (slsr_cand_d): Redefine def_phi.
6461         (stride_status, phi_adjust_status, count_phis_status): New enums.
6462         (find_phi_def): New.
6463         (find_basis_for_base_expr): New.
6464         (find_basis_for_candidate): Handle hidden bases.
6465         (alloc_cand_and_find_basis): Handle phi candidates.
6466         (slsr_process_phi): New.
6467         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6468         (create_mul_imm_cand): Likewise.
6469         (create_add_ssa_cand): Exclude phi base candidates.
6470         (create_add_imm_cand): Likewise.
6471         (slsr_process_cast): Likewise.
6472         (slsr_process_copy): Likewise.
6473         (find_candidates_in_block): Handle phi candidates.
6474         (dump_candidate): Likewise.
6475         (unconditional_cands): Delete.
6476         (unconditional_cands_with_known_stride_p): Delete.
6477         (phi_dependent_cand_p): New.
6478         (cand_increment): Handle phi-dependent candidates.
6479         (replace_dependent): Delete.
6480         (replace_mult_candidate): New.
6481         (replace_unconditional_candidate): New.
6482         (incr_vec_index): Move to avoid forward reference.
6483         (create_add_on_incoming_edge): New.
6484         (create_phi_basis): New.
6485         (replace_dependents): Delete.
6486         (replace_conditional_candidate): New.
6487         (phi_add_costs): New.
6488         (replace_uncond_cands_and_profitable_phis): New.
6489         (record_increment): Handle phi adjustments.
6490         (record_phi_increments): New.
6491         (record_increments): Handle phi adjustments.
6492         (phi_incr_cost): New.
6493         (lowest_cost_path): Handle phis.
6494         (total_savings): Likewise.
6495         (analyze_increments): Likewise.
6496         (ncd_with_phi): New.
6497         (ncd_of_cand_and_phis): New.
6498         (nearest_common_dominator_for_cands): Handle phi increments.
6499         (all_phi_incrs_profitable): New.
6500         (replace_profitable_candidates): Handle phi-dependent candidates.
6501         (analyze_candidates_and_replace): Likewise.
6503 2013-05-03  Teresa Johnson  <tejohnson@google.com>
6505         PR bootstrap/57154
6506         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6507         do not exceed REG_BR_PROB_BASE.
6509 2013-05-03  Jeff Law  <law@redhat.com>
6511         PR tree-optimization/57144
6512         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6513         operand of the condition will bit into the new type when eliminating
6514         a cast feeding a condition.
6516 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
6518         PR rtl-optimization/57130
6519         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6520         of COMPARE as in_code to the recursive call if needed.
6522 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
6524         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6525         (enabled): Handle new members.
6526         * config/i386/sse.md (*vec_concatv2si): Merge from
6527         *vec_concatv2si_sse2 and vec_concatv2si_sse.
6528         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6530 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
6532         PR tree-optimization/57027
6533         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6534         for fnms opportunity, check we got the prerequisite kind
6535         of tree / gimple before using accessor functions.
6537 2013-05-03  Richard Biener  <rguenther@suse.de>
6539         * double-int.h (lshift): New overload without precision
6540         and arith argument.
6541         (operator *=, operator +=, operator -=): Move ...
6542         * double-int.c (operator *=, operator +=, operator -=): ... here
6543         and implement more efficiently.
6544         (mul_double_with_sign): Remove.
6545         (lshift_double): Adjust to take unsinged shift argument, push
6546         dispatching code to callers.
6547         (mul_double_wide_with_sign): Add early out for callers that
6548         are not interested in high parts or overflow.
6549         (lshift): New function.
6550         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6551         dispatch code here.
6552         (lrotate, rrotate): Use logical shifts.
6553         * expr.c (get_inner_reference): Use lshift.
6554         * fixed-value.c (do_fixed_divide): Likewise.
6555         * tree-dfa.c (get_ref_base_and_extent): Likewise.
6556         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6557         (indirect_refs_may_alias_p): Likewise.
6558         (stmt_kills_ref_p_1): Likewise.
6560 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6562         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6564 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
6566         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6567         scalar form of FABD instruction.
6569 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
6571         * lra-constraints.c (process_alt_operands): Add checking alt
6572         number to choose the best alternative.
6574 2013-05-02  Richard Biener  <rguenther@suse.de>
6576         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6577         bitmap and its handling.
6578         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6580 2013-05-02  Richard Biener  <rguenther@suse.de>
6582         PR middle-end/57140
6583         * tree-inline.c (copy_loops): Properly handle removed loops.
6584         (copy_cfg_body): Mark destination loops for fixup if source
6585         loops needed fixup.
6587 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
6589         PR target/56732
6590         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6591         generating simple_return for naked functions.
6593 2013-05-02  Martin Jambor  <mjambor@suse.cz>
6595         PR middle-end/56988
6596         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6597         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6598         flags match.
6599         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6600         ipa_agg_replacement_value structures.
6601         (known_aggs_to_agg_replacement_list): Likewise.
6602         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6603         (read_agg_replacement_chain): Likewise.
6604         (ipcp_transform_function): Also check that by_ref flags match.
6606 2013-05-02  Richard Biener  <rguenther@suse.de>
6608         * graphds.h (struct graph): Add obstack member.
6609         * graphds.c (new_graph): Initialize obstack and allocate
6610         vertices from it.
6611         (add_edge): Allocate edge from the obstack.
6612         (free_graph): Free the obstack instead of all edges and vertices.
6614 2013-05-02  Teresa Johnson  <tejohnson@google.com>
6616         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6617         divides.
6618         * cfg.c (update_bb_profile_for_threading): Ditto.
6619         * tree-inline.c (copy_bb): Ditto.
6620         (copy_edges_for_bb): Ditto.
6621         (initialize_cfun): Ditto.
6622         (copy_cfg_body): Ditto.
6623         (expand_call_inline): Ditto.
6624         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6625         (estimate_node_size_and_time): Ditto.
6626         (inline_merge_summary): Ditto.
6627         * cgraphclones.c (cgraph_clone_edge): Ditto.
6628         (cgraph_clone_node): Ditto.
6629         * sched-rgn.c (compute_dom_prob_ps): Ditto.
6630         (compute_trg_info): Ditto.
6632 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6634         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6635         S reg when fp attribute set.
6636         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6638 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
6640         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6641         New pattern.
6642         (*and_one_cmplsi3_compare0_uxtw): Likewise.
6643         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6644         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6646 2013-05-02  Richard Biener  <rguenther@suse.de>
6648         * tree-scalar-evolution.c (scev_info_hasher): Remove.
6649         (struct instantiate_cache_entry): New type.
6650         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6651         (struct instantiate_cache_type): New type.
6652         (set_instantiated_value, get_instantiated_value): Remove.
6653         (get_instantiated_value_entry): New function.
6654         (instantiate_scev_name): Use the new cache and adjust.
6655         (instantiate_scev_poly): Adjust.
6656         (instantiate_scev_binary): Likewise.
6657         (instantiate_array_ref): Likewise.
6658         (instantiate_scev_convert): Likewise.
6659         (instantiate_scev_not): Likewise.
6660         (instantiate_scev_3): Likewise.
6661         (instantiate_scev_2): Likewise.
6662         (instantiate_scev_r): Likewise.
6663         (instantiate_scev): Likewise.
6664         (resolve_mixers): Likewise.
6666 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
6668         PR target/57091
6669         * lra-constraints.c (best_small_class_operands_num): Remove.
6670         (process_alt_operands): Remove small_class_operands_num.  Take
6671         small classes operands into losers and only if the operand is not
6672         matched.  Modify debugging output.
6673         (curr_insn_transform): Remove best_small_class_operands_num.
6674         Print insn name.
6676 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6678         * config/aarch64/aarch64-builtins.c
6679         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6680         * config/aarch64/aarch64-simd-builtins.def
6681         (reduc_splus_): Add new modes.
6682         (reduc_uplus_): New.
6683         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6684         (reduc_uplus_v4sf): Likewise.
6685         (reduc_splus_v4sf): Likewise.
6686         (aarch64_addv<mode>): Likewise.
6687         (reduc_uplus_<mode>): Likewise.
6688         (reduc_splus_<mode>): Likewise.
6689         (aarch64_addvv2di): Likewise.
6690         (reduc_uplus_v2di): Likewise.
6691         (reduc_splus_v2di): Likewise.
6692         (aarch64_addvv2si): Likewise.
6693         (reduc_uplus_v2si): Likewise.
6694         (reduc_splus_v2si): Likewise.
6695         (reduc_<sur>plus_<mode>): New.
6696         (reduc_<sur>plus_v2di): Likewise.
6697         (reduc_<sur>plus_v2si): Likewise.
6698         (reduc_<sur>plus_v4sf): Likewise.
6699         (aarch64_addpv4sf): Likewise.
6700         * config/aarch64/arm_neon.h
6701         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6702         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6703         add UNSPEC_SADDV, UNSPEC_UADDV.
6704         (SUADDV): New.
6705         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6707 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6709         * config/aarch64/arm_neon.h
6710         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6712 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6714         * config/aarch64/aarch64-builtins
6715         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6717 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6719         * config/aarch64/aarch64-simd-builtins.def
6720         (reduc_smax_): New.
6721         (reduc_smin_): Likewise.
6722         (reduc_umax_): Likewise.
6723         (reduc_umin_): Likewise.
6724         (reduc_smax_nan_): Likewise.
6725         (reduc_smin_nan_): Likewise.
6726         (fmax): Remove.
6727         (fmin): Likewise.
6728         (smax): Update for V2SF, V4SF and V2DF modes.
6729         (smin): Likewise.
6730         (smax_nan): New.
6731         (smin_nan): Likewise.
6732         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6733         (<su><maxmin><mode>3): ...This, refactor.
6734         (s<maxmin><mode>3): New.
6735         (<maxmin_uns><mode>3): Likewise.
6736         (reduc_<maxmin_uns>_<mode>): Refactor.
6737         (reduc_<maxmin_uns>_v4sf): Likewise.
6738         (reduc_<maxmin_uns>_v2si): Likewise.
6739         (aarch64_<fmaxmin><mode>: Remove.
6740         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6741         new builtin names.
6742         (vmin<q>_f<32,64>): Likewise.
6743         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6744         (FMAXMIN): New.
6745         (su): Add mappings for smax, smin, umax, umin.
6746         (maxmin): New.
6747         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6748         (FMAXMIN): Rename as...
6749         (FMAXMIN_UNS): ...This.
6750         (maxminv): Remove.
6751         (fmaxminv): Likewise.
6752         (fmaxmin): Likewise.
6753         (maxmin_uns): New.
6754         (maxmin_uns_op): Likewise.
6756 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6758         * config/aarch64/arm_neon.h
6759         (vac<ge, gt><sd>_f<32, 64>): Rename to...
6760         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6761         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6763 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6765         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6766         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6768 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6770         * config/aarch64/aarch64-simd.md
6771         (vcond<mode>_internal): Handle special cases for constant masks.
6772         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6773         (vcondu<mode><mode>): Likewise.
6774         (vcond<v_cmp_result><mode>): New.
6776 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6778         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6779         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6780         * config/aarch64/aarch64-simd-builtins.def
6781         (cmeq): Update to BUILTIN_VALLDI.
6782         (cmgt): Likewise.
6783         (cmge): Likewise.
6784         (cmle): Likewise.
6785         (cmlt): Likewise.
6786         * config/aarch64/arm_neon.h
6787         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6788         to builtins or C as appropriate.
6790 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
6792         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6793         (cmgeu): ...This.
6794         (cmhi): Rename to...
6795         (cmgtu): ...This.
6796         * config/aarch64/aarch64-simd.md
6797         (simd_mode): Add SF.
6798         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6799         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6800         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6801         (cstore<mode>_neg): ...This.
6802         * config/aarch64/iterators.md
6803         (VALLF): new.
6804         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6805         (COMPARISONS): New.
6806         (UCOMPARISONS): Likewise.
6807         (optab): Add missing comparisons.
6808         (n_optab): New.
6809         (cmp_1): Likewise.
6810         (cmp_2): Likewise.
6811         (CMP): Likewise.
6812         (cmp): Remove.
6813         (VCMP_S): Likewise.
6814         (VCMP_U): Likewise.
6815         (V_cmp_result): Add DF, SF modes.
6816         (v_cmp_result): Likewise.
6817         (v): Likewise.
6818         (vmtype): Likewise.
6819         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6821 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
6823         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6824         define_insn to define_insn_and_split.
6825         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6826         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6827         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6828         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6829         (thumb2_negscc): Likewise.
6831 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6833         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6835 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
6837         * config/arm/thumb2.md: Remove trailing whitespaces.
6839 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6841         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6842         Use gen_int_mode rather than GEN_INT.
6844 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
6846         * value-prof.c (stream_in_histogram_value): Remove the strayed
6847         debug_gimple_stmt.
6849 2013-04-30  Richard Biener  <rguenther@suse.de>
6851         PR middle-end/57122
6852         * cfghooks.c (split_edge): Properly check for the loop latch edge.
6854 2013-04-30  Richard Biener  <rguenther@suse.de>
6856         PR middle-end/57107
6857         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6859 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
6861         PR rtl-optimization/56957
6862         PR rtl-optimization/57105
6863         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6864         variable.  Use just INSN_UID for determining whether an insn
6865         should be only disconnected from the insn stream.
6866         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6868 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
6870         PR tree-optimization/57104
6871         * tsan.c (instrument_expr): Don't instrument accesses to
6872         DECL_HARD_REGISTER VAR_DECLs.
6874 2013-04-30  Richard Biener  <rguenther@suse.de>
6876         * function.h (loops_for_fn): New inline function.
6877         (set_loops_for_fn): Likewise.
6878         * cfgloop.h (place_new_loop): Add struct function parameter.
6879         (get_loop): Likewise.
6880         (get_loops): Likewise.
6881         (number_of_loops): Likewise.
6882         (fel_next): Adjust.
6883         (fel_init): Likewise.
6884         * cfg.c (get_loop_copy): Adjust.
6885         * cfgloop.c (flow_loops_dump): Likewise.
6886         (record_loop_exits): Likewise.
6887         (verify_loop_structure): Likewise.
6888         * cfgloopanal.c (mark_irreducible_loops): Likewise.
6889         (estimate_reg_pressure_cost): Likewise.
6890         (mark_loop_exit_edges): Likewise.
6891         * cfgloopmanip.c (place_new_loop): Likewise.
6892         (add_loop): Likewise.
6893         (duplicate_loop): Likewise.
6894         * graph.c (draw_cfg_nodes): Likewise.
6895         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6896         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6897         (extract_affine_chrec): Likewise.
6898         (build_scop_iteration_domain): Likewise.
6899         * graphite.c (graphite_initialize): Likewise.
6900         * ira-build.c (create_loop_tree_nodes): Likewise.
6901         (more_one_region_p): Likewise.
6902         (rebuild_regno_allocno_maps): Likewise.
6903         (mark_loops_for_removal): Likewise.
6904         (mark_all_loops_for_removal): Likewise.
6905         (remove_unnecessary_regions): Likewise.
6906         (ira_build): Likewise.
6907         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6908         * loop-init.c (fix_loop_structure): Likewise.
6909         (gate_rtl_move_loop_invariants): Likewise.
6910         (gate_rtl_unswitch): Likewise.
6911         (gate_rtl_unroll_and_peel_loops): Likewise.
6912         (rtl_doloop): Likewise.
6913         * lto-streamer-in.c (input_cfg): Likewise.
6914         * lto-streamer-out.c (output_cfg): Likewise.
6915         * modulo-sched.c (sms_schedule): Likewise.
6916         * predict.c (tree_estimate_probability): Likewise.
6917         (tree_estimate_probability_driver): Likewise.
6918         (estimate_loops): Likewise.
6919         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6920         (move_sese_region_to_fn): Likewise.
6921         (debug_loop_num): Likewise.
6922         * tree-chrec.c (chrec_evaluate): Likewise.
6923         (hide_evolution_in_other_loops_than_loop): Likewise.
6924         (chrec_component_in_loop_num): Likewise.
6925         (reset_evolution_in_loop): Likewise.
6926         (evolution_function_is_invariant_rec_p): Likewise.
6927         * tree-if-conv.c (main_tree_if_conversion): Likewise.
6928         * tree-inline.c (copy_loops): Likewise.
6929         (copy_cfg_body): Likewise.
6930         (tree_function_versioning): Likewise.
6931         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6932         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6933         Likewise.
6934         (add_to_evolution_1): Likewise.
6935         (scev_const_prop): Likewise.
6936         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6937         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6938         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6939         (tree_ssa_lim_initialize): Likewise.
6940         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6941         (verify_loop_closed_ssa): Likewise.
6942         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
6943         (tree_ssa_loop_im): Likewise.
6944         (tree_ssa_loop_unswitch): Likewise.
6945         (tree_vectorize): Likewise.
6946         (check_data_deps): Likewise.
6947         (tree_ssa_loop_ivcanon): Likewise.
6948         (tree_ssa_loop_bounds): Likewise.
6949         (tree_complete_unroll): Likewise.
6950         (tree_complete_unroll_inner): Likewise.
6951         (tree_parallelize_loops): Likewise.
6952         (tree_ssa_loop_prefetch): Likewise.
6953         (tree_ssa_loop_ivopts): Likewise.
6954         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6955         * tree-vectorizer.c (vectorize_loops): Likewise.
6957 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
6959         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6960         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6961         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6962         with EABI_LINK_SPEC.
6964 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6966         PR target/44578
6967         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6968         alternative.
6970 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
6972         PR target/57097
6973         * lra-constraints.c (process_alt_operands): Discourage a bit more
6974         using memory for pseudos.  Print cost dump for alternatives.
6975         Modify cost values for conflicts with early clobbers.
6976         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6978 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
6980         PR target/57098
6981         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6983 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6985         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6986         from/to S register.
6987         (movdi_aarch64): Support LDR/STR from/to D register.
6989 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
6991         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6992         or higher by default.
6994 2013-04-29  Richard Biener  <rguenther@suse.de>
6996         PR middle-end/57075
6997         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6998         even if not adding abnormal edges for calls that can make
6999         abnormal gotos.
7001 2013-04-29  Richard Biener  <rguenther@suse.de>
7003         PR middle-end/57103
7004         * tree-cfg.c (move_stmt_op): Fix condition under which to update
7005         TREE_BLOCK.
7006         (move_stmt_r): Remove redundant checking.
7008 2013-04-29  Teresa Johnson  <tejohnson@google.com>
7010         PR bootstrap/57077
7011         * basic-block.h (apply_scale): New function.
7012         (apply_probability): Use apply_scale.
7013         * gimple-streamer-in.c (input_bb): Ditto.
7014         * lto-streamer-in.c (input_cfg): Ditto.
7015         * lto-cgraph.c (merge_profile_summaries): Ditto.
7016         * tree-optimize.c (execute_fixup_cfg): Ditto.
7017         * tree-inline.c (copy_bb): Update comment to use apply_scale.
7018         (copy_edges_for_bb): Ditto.
7019         (copy_cfg_body): Ditto.
7021 2013-04-29  Tom de Vries  <tom@codesourcery.com>
7023         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
7024         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
7025         (tail_merge_optimize): Handle current_loops == NULL.
7027 2013-04-26  Jeff Law  <law@redhat.com>
7029         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
7030         (simplify_cond_using_ranges): Generalize code to simplify
7031         COND_EXPRs where one argument is a constant and the other
7032         is an SSA_NAME created by an integral type conversion.
7034 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7036         * config/arm/arm.md (store_minmaxsi): Use only when
7037         optimize_insn_for_size_p.
7039 2013-04-29  Christian Bruel  <christian.bruel@st.com>
7041         PR target/57108
7042         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
7044 2013-04-29  Richard Biener  <rguenther@suse.de>
7046         PR middle-end/57089
7047         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
7048         loop tree make sure to schedule a fixup for the child as well.
7049         (expand_omp_for_generic): Properly add loops.
7050         (expand_omp_for_static_nochunk): Likewise.
7051         (expand_omp_for_static_chunk): Likewise.
7052         (expand_omp_for): For the degenerate case fixup loops.
7053         (expand_omp_sections): Fix default bb placement in loops.
7054         (expand_omp_atomic_pipeline): Properly add loops.
7056 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7058         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
7060 2013-04-29  Tom de Vries  <tom@codesourcery.com>
7062         * tree-ssa-tail-merge.c: Update header comment.
7064 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7066         * config/aarch64/arm_neon.h
7067         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
7068         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
7069         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7070         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
7071         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
7072         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
7073         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
7074         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
7076 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7078         * config/aarch64/aarch64-simd.md
7079         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
7080         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
7081         fix_trunc, fixuns_trunc.
7082         (ftrunc<VDQF:mode>2): New.
7083         * config/aarch64/iterators.md (optab): Add fix, fixuns.
7084         (fix_trunc_optab): New.
7086 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7088         * config/aarch64/aarch64-builtins.c
7089         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
7090         iceilf, lround, iroundf.
7092 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
7094         PR target/54349
7095         * config/i386/i386.h (enum ix86_tune_indices)
7096         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
7097         New, split from X86_TUNE_INTER_UNIT_MOVES.
7098         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
7099         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
7100         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
7101         (TARGET_INTER_UNIT_MOVES): Remove.
7102         * config/i386/i386.c (initial_ix86_tune_features): Update.
7103         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
7104         (ix86_expand_convert_uns_didf_sse): Use
7105         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7106         (ix86_expand_vector_init_one_nonzero): Ditto.
7107         (ix86_expand_vector_init_interleave): Ditto.
7108         (inline_secondary_memory_needed): Return true for moves from SSE class
7109         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
7110         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7111         * config/i386/constraints.md (Yi, Ym): Depend on
7112         TARGET_INTER_UNIT_MOVES_TO_VEC.
7113         (Yj, Yn): New constraints.
7114         * config/i386/i386.md (*movdi_internal): Change constraints of
7115         operand 1 from Yi to Yj and from Ym to Yn.
7116         (*movsi_internal): Ditto.
7117         (*movdf_internal): Ditto.
7118         (*movsf_internal): Ditto.
7119         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
7120         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7121         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
7122         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
7123         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
7124         * config/i386/sse.md (movdi_to_sse): Ditto.
7125         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
7126         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
7127         TARGET_INTER_UNIT_MOVES.
7128         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
7129         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
7130         instead of TARGET_INTER_UNIT_MOVES.
7131         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
7132         operand 1 from Yi to Yj and from Ym to Yn.
7134 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7136         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7137         (float_truncate_hi_): Likewise.
7138         (float_extend_lo_): Likewise.
7139         (float_truncate_lo_): Likewise.
7140         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7141         (aarch64_float_extend_lo_v2df): Likewise.
7142         (vec_unpacks_hi_v4sf): Likewise.
7143         (aarch64_float_truncate_lo_v2sf): Likewise.
7144         (aarch64_float_truncate_hi_v4sf): Likewise.
7145         (vec_pack_trunc_v2df): Likewise.
7146         (vec_pack_trunc_df): Likewise.
7148 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7150         * config/aarch64/aarch64-builtins.c
7151         (aarch64_fold_builtin): Fold float conversions.
7152         * config/aarch64/aarch64-simd-builtins.def
7153         (floatv2si, floatv4si, floatv2di): New.
7154         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7155         * config/aarch64/aarch64-simd.md
7156         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7157         * config/aarch64/iterators.md (FLOATUORS): New.
7158         (optab): Add float, floatuns.
7159         (su_optab): Likewise.
7161 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7163         * config/aarch64/aarch64-builtins.c
7164         (aarch64_builtin_vectorized_function): Use new names for
7165         fcvt builtins.
7166         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7167         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7168         (fcvtzu): Split as...
7169         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7170         (fcvtas): Split as...
7171         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7172         (fcvtau): Split as...
7173         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7174         (fcvtps): Split as...
7175         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7176         (fcvtpu): Split as...
7177         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7178         (fcvtms): Split as...
7179         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7180         (fcvtmu): Split as...
7181         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7182         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7183         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7184         (lfrintnusf, lfrintnudf): Likewise.
7185         * config/aarch64/aarch64-simd.md
7186         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7187         define_insn.
7188         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7189         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7190         (fcvt_pattern): Likewise.
7192 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7194         * config/aarch64/aarch64-simd.md
7195         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7196         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7198 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7200         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7201         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7202         (vrnd<a,m,n,p>_f32): Implement using builtins.
7203         (vrnd<i,x><q>_f<32, 64>): New.
7205 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
7207         * config/aarch64/aarch64-builtins.c
7208         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7209         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7210         (frintz): Rename to...
7211         (btrunc): ...this.
7212         (frintp): Rename to...
7213         (ceil): ...this.
7214         (frintm): Rename to...
7215         (floor): ...this.
7216         (frinti): Rename to...
7217         (nearbyint): ...this.
7218         (frintx): Rename to...
7219         (rint): ...this.
7220         (frinta): Rename to...
7221         (round): ...this.
7222         * config/aarch64/aarch64-simd.md
7223         (aarch64_frint<frint_suffix><mode>): Delete.
7224         (<frint_pattern><mode>2): Convert to insn.
7225         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7226         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7227         (frint_pattern): Likewise.
7228         (frint_suffix): Likewise.
7230 2013-04-29  Richard Biener  <rguenther@suse.de>
7232         PR tree-optimization/57081
7233         * loop-init.c: Include tree-flow.h.
7234         (loop_optimizer_finalize): Free number of iteration estimates.
7235         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7237 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
7239         PR tree-optimization/57083
7240         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7241         non-singleton shift count range, zero extend low_bound for uns case.
7243         * config/i386/predicates.md (general_vector_operand): New predicate.
7244         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7245         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7246         if they aren't nonimmediate operands.  If their original values
7247         satisfy const_vector_equal_evenodd_p, don't shift them.
7248         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7249         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
7250         if not nonimmediate_operand.
7251         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7252         instead of register_operand.
7253         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7255 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
7257         * stor-layout.c (finalize_size_functions): Allocate a structure and
7258         reset cfun before dumping the functions.
7260 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
7262         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7264         PR target/56866
7265         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7266         use xop_pmacsdqh if uns_p.
7267         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7268         the immediate rotate count.
7270 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
7272         * rtl.h (struct rtx_def): Add comment for field jump.
7273         (LRA_SUBREG_P): New macro.
7274         * recog.c (register_operand): Check LRA_SUBREG_P.
7275         * lra.c (lra): Add note at the end of RTL code. Align non-empty
7276         stack frame.
7277         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7278         (lra_final_code_change): Skip subreg change for operators.
7279         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7280         if there are no operand changes.
7281         * lra-constraints.c (curr_insn_set): New.
7282         (match_reload): Set LRA_SUBREG_P.
7283         (emit_spill_move): Ditto.
7284         (check_and_process_move): Use curr_insn_set. Process only single
7285         set insns.  Don't initialize sec_mem_p and change_p.
7286         (simplify_operand_subreg): Use LRA_SUBREG_P.
7287         (reg_in_class_p): New function.
7288         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
7289         of #ifdef.  Add code to remove cycling.
7290         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7291         non-null disp.  Reload inner instead of disp when base and index
7292         are null.  Try to put lo_sum into register.
7293         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7294         (check_and_process_move): Move code for move cost check to
7295         simple_move_p.  Remove equiv_substitution.
7296         (simple_move_p): New function.
7297         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
7298         curr_insn_set.  Call check_and_process_move only for single set
7299         insns.  Use the new function.  Move call of check_and_process_move
7300         after operand equiv substitution and address process.
7302 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
7304         PR go/57045
7305         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7306         with nonlocal goto receivers or returns twice calls, ignore
7307         unininitialized values from abnormal edges to nl goto receiver
7308         or returns twice call.
7310 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
7312         PR tree-optimization/57051
7313         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7314         and VEC_RSHIFT_EXPR if shift count is a multiple of element
7315         bitsize.
7317 2013-04-26  Richard Biener  <rguenther@suse.de>
7319         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7320         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
7321         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7322         (fixup_loop_arrays_after_move): New function.
7323         (move_sese_region_to_fn): Properly outline the loop tree parts
7324         of the SESE region.
7326 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
7328         * config/i386/i386.md (type, unit): Fix long lines.
7330 2013-04-26  Richard Biener  <rguenther@suse.de>
7332         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7333         (lto-streamer-out.o): Likewise.
7334         * cfgloop.c (init_loops_structure): Export, add struct function
7335         argument and adjust.
7336         (flow_loops_find): Adjust.
7337         * cfgloop.h (enum loop_estimation): Add EST_LAST.
7338         (init_loops_structure): Declare.
7339         * lto-streamer-in.c: Include cfgloop.h.
7340         (input_cfg): Input the loop tree.
7341         * lto-streamer-out.c: Include cfgloop.h.
7342         (output_cfg): Output the loop tree.
7343         (output_struct_function_base): Do not drop PROP_loops.
7345 2013-03-26  Richard Biener  <rguenther@suse.de>
7347         * tree-cfg.c (execute_build_cfg): Build the loop tree.
7348         (pass_build_cfg): Provide PROP_loops.
7349         (move_sese_region_to_fn): Remove loops that are outlined into fn
7350         for now.
7351         * tree-inline.c: Include cfgloop.h.
7352         (initialize_cfun): Do not drop PROP_loops.
7353         (copy_loops): New function.
7354         (copy_cfg_body): Copy loop structure.
7355         (tree_function_versioning): Initialize destination loop tree.
7356         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7357         (pass_parallelize_loops): Do IL verification.
7358         * loop-init.c (loop_optimizer_init): Fixup loops if required.
7359         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7360         the CFG make sure we fixup loops as well.
7361         * tree-ssa-tail-merge.c: Include cfgloop.h.
7362         (replace_block_by): When merging loop latches mark loops for fixup.
7363         * lto-streamer-out.c (output_struct_function_base): Drop
7364         PROP_loops for now.
7365         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7366         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7367         * ipa-split.c: Include cfgloop.h.
7368         (split_function): Add the new return block to the loop tree root.
7369         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7370         whether we have removed the forwarder block.
7371         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7372         * cfgloop.h (place_new_loop): Declare.
7373         * cfgloopmanip.c (place_new_loop): Export.
7374         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7375         (tree-switch-conversion.o): Likewise.
7376         (tree-complex.o): Likewise.
7377         (tree-inline.o): Likewise.
7378         (tree-ssa-tailmerge.o): Likewise.
7379         (ipa-split.o): Likewise.
7380         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7381         (tree-ssa-copy.o): Likewise.
7382         * tree-switch-conversion.c: Include cfgloop.h
7383         (process_switch): If we emit a bit-test cascade, schedule loops
7384         for fixup.
7385         * tree-complex.c: Include cfgloop.h.
7386         (expand_complex_div_wide): Properly add new basic-blocks to loops.
7387         * asan.c: Include cfgloop.h.
7388         (create_cond_insert_point): Properly add new basic-blocks to
7389         loops, schedule loop fixup.
7390         * cfgloop.c (verify_loop_structure): Check that looks are not
7391         marked for fixup.
7392         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7393         to loops.
7394         (expand_omp_for_generic): Likewise.
7395         (expand_omp_sections): Likewise.
7396         (expand_omp_atomic_pipeline): Schedule loops for fixup.
7397         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7398         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7399         is initialized, not when loops are present.
7400         * tree-parloops.c (parallelize_loops): Remove checking here.
7401         * passes.c (init_optimization_passes): Schedule a copy-propagation
7402         pass before complete unrolling of inner loops.
7404 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
7406         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7407         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7408         (colorize_init): Add argument to _WIN32 version.
7409         * toplev.c: Include diagnostic-color.h.
7410         (process_options): Default to -fdiagnostics-color=auto if
7411         GCC_COLORS env var is in the environment.
7412         * common.opt (fdiagnostics-color=): Add Var and Init.
7413         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7414         env var is in the environment, the default is auto rather than never.
7416         * diagnostic.h (file_name_as_prefix): Add context argument.
7417         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
7418         the string as locus.
7419         * langhooks.c (lhd_print_error_function): Adjust caller.
7421 2013-04-25  Lawrence Crowl  <crowl@google.com>
7423         * var-tracking.c (shared_hash_def::htab):
7424         Change type to hash_table.  Update dependent calls and types.
7426 2013-04-25  Lawrence Crowl  <crowl@google.com>
7428         * Makefile.in: Update as needed below.
7430         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7431         Move declaration to after the type's method definitons.
7433         * attribs.c (htab_t scoped_attributes::attribute_hash):
7434         Change type to hash_table.  Update dependent calls and types.
7436         * bitmap.c (htab_t bitmap_desc_hash):
7437         Change type to hash_table.  Update dependent calls and types.
7439         * cselib.c (htab_t cselib_hash_table):
7440         Change type to hash_table.  Update dependent calls and types.
7442         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7443         (hash_string_slot_node): Move implementation into lto-streamer.h
7444         struct string_slot_hasher.
7445         (eq_string_slot_node): Likewise.
7447         * data-streamer-out.c: Update output_block::string_hash_table
7448         dependent calls and types.
7450         * dwarf2cfi.c (htab_t trace_index):
7451         Change type to hash_table.  Update dependent calls and types.
7453         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7454         Change type to hash_table.  Update dependent calls and types.
7455         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7456         (htab_t optimize_external_refs::map): Likewise.
7457         (htab_t output_comp_unit::extern_map): Likewise.
7458         (htab_t output_comdat_type_unit::extern_map): Likewise.
7459         (htab_t output_macinfo::macinfo_htab): Likewise.
7460         (htab_t optimize_location_lists::htab): Likewise.
7461         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7463         * except.c (htab_t ehspec_hash_type):
7464         Change type to hash_table.  Update dependent calls and types.
7465         (assign_filter_values::ttypes): Likewise.
7466         (assign_filter_values::ehspec): Likewise.
7467         (sjlj_assign_call_site_values::ar_hash): Likewise.
7468         (convert_to_eh_region_ranges::ar_hash): Likewise.
7470         * gcse.c (htab_t pre_ldst_table):
7471         Change type to hash_table.  Update dependent calls and types.
7473         * ggc-common.c (htab_t saving_htab):
7474         Change type to hash_table.  Update dependent calls and types.
7475         (htab_t loc_hash): Likewise.
7476         (htab_t ptr_hash): Likewise.
7477         (call_count): Rename ggc_call_count.
7478         (call_alloc): Rename ggc_call_alloc.
7479         (loc_descriptor): Rename make_loc_descriptor.
7480         (add_statistics): Rename ggc_add_statistics.
7482         * ggc-common.c (saving_htab):
7483         Change type to hash_table.  Update dependent calls and types.
7485         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7486         (push_gimplify_context): Likewise.
7487         (pop_gimplify_context): Likewise.
7488         (struct gimple_temp_hash_elt): Added.
7489         (struct gimplify_hasher): Likewise.
7490         (struct gimplify_ctx.temp_htab):
7491         Change type to hash_table.  Update dependent calls and types.
7493         * gimple-fold.c: Include gimplify-ctx.h.
7495         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7496         Change type to hash_table.  Update dependent calls and types.
7497         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7498         avoid potential global name collision.
7500         * gimplify.c: Include gimplify-ctx.h.
7501         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7502         (htab_t gimplify_ctx::temp_htab):
7503         Update dependent calls and types for new type hash_table.
7504         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7505         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7507         * gimplify-ctx.h: New.
7508         (struct gimple_temp_hash_elt): Move from gimplify.c.
7509         (class gimplify_hasher): New.
7510         (struct gimplify_ctx): Move from gimple.h.
7511         (htab_t gimplify_ctx::temp_htab):
7512         Change type to hash_table.  Update dependent calls and types.
7514         * graphite-clast-to-gimple.c: Include graphite-htab.h.
7515         (htab_t ivs_params::newivs_index):
7516         Change type to hash_table.  Update dependent calls and types.
7517         (htab_t ivs_params::params_index): Likewise.
7518         (htab_t print_generated_program::params_index): Likewise.
7519         (htab_t gloog::newivs_index): Likewise.
7520         (htab_t gloog::params_index): Likewise.
7522         * graphite.c: Include graphite-htab.h.
7523         4htab_t graphite_transform_loops::bb_pbb_mapping):
7524         Change type to hash_table.  Update dependent calls and types.
7526         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7527         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7528         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7530         * graphite-dependences.c: Include graphite-htab.h.
7531         (loop_is_parallel_p): Change hash table type of parameter.
7533         * graphite-htab.h: New.
7534         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7535         (extern find_pbb_via_hash): Move from graphite-poly.h.
7536         (extern loop_is_parallel_p): Move from graphite-poly.h.
7537         (extern get_loop_body_pbbs): Move from graphite-poly.h.
7539         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7540         (extern loop_is_parallel_p): Move to graphite-htab.h.
7541         (extern get_loop_body_pbbs): Move to graphite-htab.h.
7543         * haifa-sched.c (htab_t delay_htab):
7544         Change type to hash_table.  Update dependent calls and types.
7545         (htab_t delay_htab_i2): Likewise.
7547         * ira-color.c (htab_t allocno_hard_regs_htab):
7548         Change type to hash_table.  Update dependent calls and types.
7550         * ira-costs.c (htab_t cost_classes_htab):
7551         Change type to hash_table.  Update dependent calls and types.
7553         * loop-invariant.c (htab_t merge_identical_invariants::eq):
7554         Change type to hash_table.  Update dependent calls and types.
7556         * loop-iv.c (htab_t bivs):
7557         Change type to hash_table.  Update dependent calls and types.
7559         * loop-unroll.c (htab_t opt_info::insns_to_split):
7560         Change type to hash_table.  Update dependent calls and types.
7561         (htab_t opt_info::insns_with_var_to_expand): Likewise.
7563         * lto-streamer.h (struct string_slot): Move from data-streamer.h
7564         (struct string_slot_hasher): New.
7565         (htab_t output_block::string_hash_table):
7566         Change type to hash_table.  Update dependent calls and types.
7568         * lto-streamer-in.c (freeing_string_slot_hasher): New.
7569         (htab_t file_name_hash_table):
7570         Change type to hash_table.  Update dependent calls and types.
7572         * lto-streamer-out.c: Update output_block::string_hash_table dependent
7573         calls and types.
7575         * lto-streamer.c (htab_t tree_htab):
7576         Change type to hash_table.  Update dependent calls and types.
7578         * omp-low.c: Include gimplify-ctx.h.
7580         * passes.c (htab_t name_to_pass_map):
7581         Change type to hash_table.  Update dependent calls and types.
7582         (pass_traverse): Rename to passes_pass_traverse.
7584         * plugin.c (htab_t event_tab):
7585         Change type to hash_table.  Update dependent calls and types.
7587         * postreload-gcse.c (htab_t expr_table):
7588         Change type to hash_table.  Update dependent calls and types.
7589         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7591         * sese.c (debug_rename_map_1): Make extern.
7592         (htab_t copy_bb_and_scalar_dependences::rename_map):
7593         Change type to hash_table.  Update dependent calls and types.
7595         * sese.h (extern debug_rename_map): Move to .c file.
7597         * store-motion.c (htab_t store_motion_mems_table):
7598         Change type to hash_table.  Update dependent calls and types.
7600         * trans-mem.c (htab_t tm_new_mem_hash):
7601         Change type to hash_table.  Update dependent calls and types.
7603         * tree-browser.c (htab_t TB_up_ht):
7604         Change type to hash_table.  Update dependent calls and types.
7606         * tree-cfg.c (htab_t discriminator_per_locus):
7607         Change type to hash_table.  Update dependent calls and types.
7609         * tree-complex.c: Include tree-hasher.h
7610         (htab_t complex_variable_components):
7611         Change type to hash_table.  Update dependent calls and types.
7613         * tree-eh.c (htab_t finally_tree):
7614         Change type to hash_table.  Update dependent calls and types.
7616         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7617         struct int_tree_hasher.
7618         (extern int_tree_map_eq): Likewise.
7619         (uid_decl_map_hash): Removed.
7620         (extern decl_tree_map_eq): Likewise.
7622         * tree-hasher.h: New.
7623         (struct int_tree_hasher): New.
7624         (typedef int_tree_htab_type): New.
7626         * tree-inline.c: Include gimplify-ctx.h.
7628         * tree-mudflap.c: Include gimplify-ctx.h.
7630         * tree-parloops.c: Include tree-hasher.h.
7631         (htab_t eliminate_local_variables_stmt::decl_address):
7632         Change type to hash_table.  Update dependent calls and types.
7633         (htab_t separate_decls_in_region::decl_copies): Likewise.
7635         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7636         Change type to hash_table.  Update dependent calls and types.
7638         * tree-sra.c (candidates):
7639         Change type to hash_table.  Update dependent calls and types.
7641         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7642         in tree-flow.h.
7643         (int_tree_map_hash): Likewise.
7645         * tree-ssa-dom.c (htab_t avail_exprs):
7646         Change type to hash_table.  Update dependent calls and types.
7648         * tree-ssa-live.c (var_map_base_init::tree_to_index):
7649         Change type to hash_table.  Update dependent calls and types.
7651         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7652         Change type to hash_table.  Update dependent calls and types.
7654         * tree-ssa-phiopt.c (seen_ssa_names):
7655         Change type to hash_table.  Update dependent calls and types.
7657         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7658         Change type to hash_table.  Update dependent calls and types.
7660         * tree-ssa-uncprop.c (equiv):
7661         Change type to hash_table.  Update dependent calls and types.
7663 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
7665         PR rtl-optimization/57003
7666         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7667         call note_stores with kill_clobbered_value callback again after
7668         killing regs_invalidated_by_call.
7670 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7672         * config/aarch64/aarch64-simd.md
7673         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7674         (aarch64_simd_bsl<mode>): Likewise.
7675         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7677 2013-04-25  Marek Polacek  <polacek@redhat.com>
7679         PR tree-optimization/57066
7680         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7682 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
7684         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7686 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7688         * config/aarch64/aarch64-builtins.c
7689         (aarch64_fold_builtin): New.
7690         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7691         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7692         * config/aarch64/aarch64-simd-builtins.def (abs): New.
7693         * config/aarch64/arm_neon.h
7694         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7696 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7697             Tejas Belagod  <tejas.belagod@arm.com>
7699         * config/aarch64/aarch64-builtins.c
7700         (aarch64_gimple_fold_builtin): New.
7701         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7702         * config/aarch64/aarch64-simd-builtins.def (addv): New.
7703         * config/aarch64/aarch64-simd.md (addpv4sf): New.
7704         (addvv4sf): Update.
7705         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7707 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7709         * config/aarch64/aarch64.md
7710         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7712 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7714         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7715         (*ngcsi_uxtw): New pattern.
7717 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7718             Julian Brown  <julian@codesourcery.com>
7720         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7721         (TB_DREG): Add T_V4HF.
7722         (v4hf_UP): New macro.
7723         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7724         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7725         Handle initialisation of V4HF. Adjust initialisation of reinterpret
7726         built-ins.
7727         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7728         (arm_vector_mode_supported_p): Handle V4HF.
7729         (arm_mangle_map): Handle V4HFmode.
7730         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7731         * config/arm/arm_neon_builtins.def: Add entries for
7732         vcvtv4hfv4sf, vcvtv4sfv4hf.
7733         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7734         (neon_vcvtv4hfv4sf): Likewise.
7735         * config/arm/neon-gen.ml: Handle half-precision floating point
7736         features.
7737         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7738         * config/arm/arm_neon.h: Regenerate.
7739         * config/arm/neon.ml (type elts): Add F16.
7740         (type vectype): Add T_float16x4, T_floatHF.
7741         (type vecmode): Add V4HF.
7742         (type features): Add Requires_FP_bit feature.
7743         (elt_width): Handle F16.
7744         (elt_class): Likewise.
7745         (elt_of_class_width): Likewise.
7746         (mode_of_elt): Refactor.
7747         (type_for_elt): Handle F16, fix error messages.
7748         (vectype_size): Handle T_float16x4.
7749         (vcvt_sh): New function.
7750         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7751         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7752         (string_of_mode): Handle V4HF.
7753         * doc/arm-neon-intrinsics.texi: Regenerate.
7755 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
7757         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7758         format specifier in 'X' case.
7760 2013-04-25  Alan Modra  <amodra@gmail.com>
7762         PR target/57052
7763         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7764         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7765         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7766         Repeat for many other rotate/shift and mask patterns using subregs.
7767         Name lshiftrt insns.
7768         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7769         on WORDS_BIG_ENDIAN.
7771 2013-04-25  Alan Modra  <amodra@gmail.com>
7773         * config.gcc: Support little-endian powerpc-linux targets.
7774         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7775         (LINK_OS_LINUX_SPEC): Define.
7776         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7777         Preserve MASK_LITTLE_ENDIAN.
7778         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7779         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7780         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7781         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7782         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7783         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7784         Correct fp word order for little-endian.  Don't shift toc entries
7785         smaller than a word for little-endian.
7786         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7787         (bswapdi2 splits): Correct low-part subreg for little-endian.
7788         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7789         low/high where such is correct only for be.
7790         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7791         little-endian for -mcall-aixdesc.
7793 2013-04-25  Alan Modra  <amodra@gmail.com>
7795         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7796         replace_equiv_address_nv.
7798 2013-04-25  Alan Modra  <amodra@gmail.com>
7800         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7802 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7804         Revert:
7805         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7806         * rtl.h (struct rtx_def): ...
7808 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7810         PR rtl-optimizations/57046
7811         * lra-constraints (split_reg): Set up lra_risky_transformations_p
7812         for multi-reg splits.
7814 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7816         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7818 2013-04-24  Sterling Augustine  <saugustine@google.com>
7820         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7821         (comp_dir_string, debug_str_dwo_section): New.
7822         (DEBUG_STR_DWO_SECTION): Rename to ...
7823         (DEBUG_DWO_STR_SECTION): ... this.
7824         (DEBUG_NORM_STR_SECTION): Delete.
7825         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7826         (DEBUG_STR_DWO_SECTION_FLAGS): New.
7827         (find_AT_string): Move most logic to ...
7828         (find_AT_string_in_table): ... here.  New.
7829         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7830         add_skeleton_AT_string.  Delete logic.
7831         (output_skeleton_debug_sections): Remove call to
7832         add_top_level_skeleton_die_attrs.
7833         (add_comp_dir_attribute): Move logic to comp_dir_string.
7834         (dwarf2out_init): Initialize debug_str_dwo_section.
7835         (output_indirect_string): Call find_string_form.
7836         (output_indirect_strings): Rewrite.
7837         (prune_unused_types): Empty skeleton_debug_str_hash.
7838         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7839         (dwarf2out_finish):  Call output_indirect_strings.
7841 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7843         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7845 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7847         * rtl.h (struct rtx_def): Add comment for field jump.
7848         (LRA_SUBREG_P): New macro.
7849         * recog.c (register_operand): Check LRA_SUBREG_P.
7850         * lra.c (lra): Add note at the end of RTL code. Align non-empty
7851         stack frame.
7852         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7853         (lra_final_code_change): Skip subreg change for operators.
7854         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7855         if there are no operand changes.
7856         * lra-constraints.c (curr_insn_set): New.
7857         (match_reload): Set LRA_SUBREG_P.
7858         (emit_spill_move): Ditto.
7859         (check_and_process_move): Use curr_insn_set. Process only single
7860         set insns.  Don't initialize sec_mem_p and change_p.
7861         (simplify_operand_subreg): Use LRA_SUBREG_P.
7862         (reg_in_class_p): New function.
7863         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
7864         of #ifdef.  Add code to remove cycling.
7865         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7866         non-null disp.  Reload inner instead of disp when base and index
7867         are null.  Try to put lo_sum into register.
7868         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7869         (check_and_process_move): Move code for move cost check to
7870         simple_move_p.  Remove equiv_substitution.
7871         (simple_move_p): New function.
7872         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
7873         curr_insn_set.  Call check_and_process_move only for single set
7874         insns.  Use the new function.  Move call of check_and_process_move
7875         after operand equiv substitution and address process.
7877 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
7879         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7880         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7881         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7883 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
7885         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7887 2013-04-24  Marek Polacek  <polacek@redhat.com>
7889         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7890         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7891         (select_loops_exit_conditions): Likewise.
7892         (number_of_iterations_for_all_loops): Likewise.
7893         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7894         (scev_analysis): Likewise.
7896 2013-04-02  Catherine Moore  <clm@codesourcery.com>
7897             Chao-ying Fu <fu@mips.com>
7899         * config/mips/micromips.md (jraddiusp): New pattern.
7900         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7901         instruction if possible.
7903 2013-04-24  Alan Modra  <amodra@gmail.com>
7905         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7907 2013-04-24  Julian Brown  <julian@codesourcery.com>
7908             Chung-Lin Tang  <cltang@codesourcery.com>
7910         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7911         dependency behavior in enumeration type DIE generation. Add TODO note
7912         to comments about future DW_FORM_sdata/udata re-work of related code.
7914 2013-04-23  Lawrence Crowl  <crowl@google.com>
7916         * Makefile.in: Update as needed below.
7918         * hash-table.h (class hash_table):
7919         Correct many methods with parameter types compare_type to the correct
7920         value_type.  (Correct code was unlikely to notice the change.)
7921         (hash_table::elements_with_deleted) New.
7922         (class hashtable::iterator): New.
7923         (hashtable::begin()): New.
7924         (hashtable::end()): New.
7925         (FOR_EACH_HASH_TABLE_ELEMENT): New.
7927         * statistics.c (statistics_hashes):
7928         Change type to hash_table.  Update dependent calls and types.
7930         * tree-into-ssa.c (var_infos):
7931         Change type to hash_table.  Update dependent calls and types.
7933         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7934         Change type to hash_table.  Update dependent calls and types.
7936         * tree-ssa-loop-im.c (struct mem_ref.refs):
7937         Change type to hash_table.  Update dependent calls and types.
7939         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7940         Change type to hash_table.  Update dependent calls and types.
7942         * tree-ssa-sccvn.c (vn_tables_s::nary):
7943         Change type to hash_table.  Update dependent calls and types.
7944         (vn_tables_s::phis): Likewise.
7945         (vn_tables_s::references): Likewise.
7947         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7948         (vn_reference_eq): Update parameter and return types.
7950         * tree-ssa-structalias.c (pointer_equiv_class_table):
7951         Change type to hash_table.  Update dependent calls and types.
7952         (location_equiv_class_table): Likewise.
7954         * tree-vect-data-refs.c: Consequential changes for making
7955         peeling a hash_table.
7957         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7958         (destroy_loop_vec_info): Dependent hash_table update.
7960         * tree-vectorizer.h (peeling_htab):
7961         Change type to hash_table.  Update dependent calls and types.
7963 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
7965         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7966         to check the register content is equal or not.
7967         * lra-constraints.c (match_reload): Use lra_assign_reg_val
7968         to assign register content record.
7969         * lra-eliminations.c (update_reg_eliminate): Use
7970         lra_update_reg_val_offset to update register content offset.
7971         * lra-int.h (struct lra_reg): Add offset member.
7972         (lra_reg_val_equal_p): New static inline function.
7973         (lra_update_reg_val_offset): New static inline function.
7974         (lra_assign_reg_val): New static inline function.
7975         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7976         to assign register content record.
7977         (initialize_lra_reg_info_element): Initial offset to zero.
7979 2013-04-23  Catherine Moore  <clm@codesourcery.com>
7981         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7982         operands.  Record compression.
7984 2013-04-23  Xinliang David Li  <davidxl@google.com>
7986         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7988 2013-04-23  Richard Biener  <rguenther@suse.de>
7990         PR middle-end/57036
7991         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7992         parameter, only add abnormal goto edges from the copied body
7993         if the call could perform abnormal gotos.
7994         (copy_cfg_body): Adjust.
7996 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
7998         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
8000 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
8002         * coretypes.h (gimple_stmt_iterator): Add struct to make
8003         compatible with C.
8005 2013-04-23  Richard Biener  <rguenther@suse.de>
8007         PR tree-optimization/57026
8008         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
8009         from SSA names occuring in abnormal PHI nodes.
8011 2013-04-22  Andi Kleen  <ak@linux.intel.com>
8013         * lto/lto.c (print_lto_report_1): Fix LTO report names.
8015 2013-04-22  Andi Kleen  <ak@linux.intel.com>
8017         * lto/lto.c (print_lto_report_1): Declare early.
8018         (read_cgraph_and_symbols): Call print_lto_report_1 early.
8020 2013-04-22  Andi Kleen  <ak@linux.intel.com>
8022         * common.opt (-flto-report-wpa): Add.
8023         * doc/invoke.texi (-flto-report-wpa): Add.
8024         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
8025         (lto_main): dito.
8027 2013-04-22  Xinliang David Li  <davidxl@google.com>
8029         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
8030         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
8031         * Makefile.in: New dependency
8033             David Daney <ddaney.cavm@gmail.com>
8035         * configure.ac (gcc_cv_as_micromips_support):  Use the
8036         --fatal-warnings option.
8037         * configure: Regenerate.
8039 2013-04-22  Marek Polacek  <polacek@redhat.com>
8041         PR sanitizer/56990
8042         * tsan.c (instrument_expr): Don't instrument expression
8043         in case its size is zero.
8045 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
8047         PR target/57032
8048         Revert:
8049         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
8051         * config/alpha/alpha.c (TARGET_LRA_P): New define.
8053 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
8055         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
8056         (gimple_stmt_iterator): New typedef.
8057         * gimple.h (gimple_stmt_iterator): Rename to...
8058         (gimple_stmt_iterator_d): ... This.
8059         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
8060         trees be valid for GIMPLE and GENERIC.
8061         (TARGET_GIMPLE_FOLD_BUILTIN): New.
8062         * gimple-fold.c (gimple_fold_call): Call target hook
8063         gimple_fold_builtin.
8064         * hooks.c (hook_bool_gsiptr_false): New.
8065         * hooks.h (hook_bool_gsiptr_false): New.
8066         * target.def (fold_stmt): New.
8067         * doc/tm.texi: Regenerate.
8069 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
8071         PR target/57018
8072         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
8073         a set sp if no stack realignment.
8075 2013-04-22  Nick Clifton  <nickc@redhat.com>
8077         * config.gcc (tilegx-linux): Extend extra_objs rather than
8078         overwriting it.
8079         (tilepro-linux): Likewise.
8081 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
8083         * config/aarch64/aarch64-builtins.c
8084         (CF): Remove.
8085         (CF0, CF1, CF2, CF3, CF4, CF10): New.
8086         (VAR<1-12>): Add MAP parameter.
8087         (BUILTIN_*): Likewise.
8088         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
8089         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
8090         (aarch64_ushl_n<mode>): Likewise.
8091         (aarch64_sshr_n<mode>): Likewise.
8092         (aarch64_ushr_n<mode>): Likewise.
8093         (aarch64_<maxmin><mode>): Likewise.
8094         (aarch64_sqrt<mode>): Likewise.
8095         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
8096         (vshr<q>_n_*): Likewise.
8098 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
8100         * config/aarch64/aarch64-builtins.c
8101         (aarch64_simd_builtin_type_mode): Handle SF types.
8102         (sf_UP): Define.
8103         (BUILTIN_GPF): Define.
8104         (aarch64_init_simd_builtins): Handle SF types.
8105         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
8106         (frecps): Likewise.
8107         (frecpx): Likewise.
8108         * config/aarch64/aarch64-simd.md
8109         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
8110         (aarch64_frecpe<mode>): New.
8111         (aarch64_frecps<mode>): Likewise.
8112         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
8113         (v8type): Add frecp<esx>.
8114         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
8115         (aarch64_frecps<mode>): Likewise.
8116         * config/aarch64/iterators.md (FRECP): New.
8117         (frecp_suffix): Likewise.
8118         * config/aarch64/arm_neon.h
8119         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
8121 2013-04-22  Christian Bruel  <christian.bruel@st.com>
8123         PR target/56995
8124         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
8125         (REG_CLASS_NAMES): Idem.
8126         (REG_CLASS_CONTENTS): Idem.
8127         (REGCLASS_HAS_FP_REG): Idem.
8128         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
8129         (sh_conditional_register_usage): Idem.
8131 2013-04-21  Jeff Law  <law@redhat.com>
8133         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8134         (ssa_forward_propagate_and_combine): Use it.
8136 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
8138         * lra.c: Update the flow chart diagram.
8140 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
8142         PR rtl-optimization/56847
8143         * lra-constraints.c (process_alt_operands): Discourage alternative
8144         with non-matche doffsettable memory constraint fro memory with
8145         known offset.
8147 2013-04-19  Richard Biener  <rguenther@suse.de>
8149         PR tree-optimization/56982
8150         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8151         function.
8152         * gimplify.c (gimplify_call_expr): Notice special calls.
8153         (gimplify_modify_expr): Likewise.
8154         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8155         abnormal control flow receivers.
8156         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8157         in the same way as cfun->has_nonlocal_labels.
8158         (gimple_purge_dead_abnormal_call_edges): Likewise.
8159         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8160         receivers start a basic-block.
8162 2013-04-19  Richard Biener  <rguenther@suse.de>
8164         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8165         member ...
8166         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
8167         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8168         (SLP_TREE_LOAD_PERMUTATION): Add.
8169         (vect_transform_slp_perm_load): Adjust prototype.
8170         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8171         (vect_free_slp_instance): Likewise.
8172         (vect_create_new_slp_node): Likewise.
8173         (vect_supported_slp_permutation_p): Remove.
8174         (vect_slp_rearrange_stmts): Adjust.
8175         (vect_supported_load_permutation_p): Likewise.  Inline
8176         vect_supported_slp_permutation_p here.
8177         (vect_analyze_slp_instance): Compute load permutations per
8178         slp node instead of per instance.
8179         (vect_get_slp_defs): Adjust.
8180         (vect_transform_slp_perm_load): Likewise.
8181         (vect_schedule_slp_instance): Remove redundant code.
8182         (vect_schedule_slp): Remove hack for PR56270, add it ...
8183         * tree-vect-stmts.c (vectorizable_load): ... here, do not
8184         CSE loads for SLP.  Adjust.
8186 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
8188         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8189         spelling in two comments.
8191 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
8193         PR target/56797
8194         * config/arm/arm.c (load_multiple_sequence): Require SP
8195         as base register for loads if SP is in the register list.
8197 2013-04-19  Martin Jambor  <mjambor@suse.cz>
8199         PR tree-optimization/56718
8200         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8201         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8202         and made public.  Adjusted all callers.
8203         (ipa_intraprocedural_devirtualization): New function.
8204         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8205         (ipa_intraprocedural_devirtualization): Likewise.
8206         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8208 2013-04-19  Richard Biener  <rguenther@suse.de>
8210         PR tree-optimization/57000
8211         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8213 2013-04-19  Terry Guo  <terry.guo@arm.com>
8215         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8216         Replace with ...
8217         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
8218         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8219         (cortex_m4_fmacs): Use new reservations.
8220         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8222 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
8224         PR rtl-optimization/56999
8225         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8226         related code.
8227         (lra_coalesce): Remove split_origin_bitmap and related code.
8228         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
8229         ranges if necessary.
8231 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
8233         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8234         New array.
8235         (ix86_expand_call): Remove clobbered_registers array and use
8236         x86_64_ms_sysv_extra_clobbered_registers instead.
8237         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8238         Declare here.
8239         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8240         predicate.
8241         * config/i386/i386.md (*call_rex64_ms_sysv): Use
8242         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
8243         (*call_value_rex64_ms_sysv): Ditto.
8245 2013-04-18  Cary Coutant  <ccoutant@google.com>
8247         * dwarf2out.c (output_pubnames): Check die_perennial_p of
8248         parent instead of die_mark.
8250 2013-04-18  Diego Novillo  <dnovillo@google.com>
8252         * gimple.c (create_gimple_tmp): New.
8253         (get_expr_type): New.
8254         (build_assign): New.
8255         (build_type_cast): New.
8256         * gimple.h (enum ssa_mode): Define.
8257         (gimple_seq_set_location): New.
8258         * asan.c (build_check_stmt): Change some gimple_build_* calls
8259         to use build_assign and build_type_cast.
8261 2013-04-18  Richard Biener  <rguenther@suse.de>
8263         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8264         handle negative step.  Remove redundant checks.
8265         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8266         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8267         for negative step and grouped loads fail to vectorize.
8269 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
8271         * emit-rtl.c (reset_insn_used_flags): New function.
8272         (reset_all_used_flags): Use it.
8273         (verify_insn_sharing): New function.
8274         (verify_rtl_sharing): Fix verification for SEQUENCEs.
8276 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
8278         PR tree-optimization/56984
8279         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8280         and (x >> M) >= N don't register any assertion if N << M is the
8281         minimum value.
8283 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
8285         * lower-subreg.c (resolve_simple_move): If called self-recursive,
8286         do not delete_insn insns that have not yet been emitted, only
8287         unlink them with remove_insn.
8288         * df-scan.c (df_insn_delete): Revert r197492.
8290 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
8292         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8293         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8295 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
8297         * config/arm/arm.md (movsicc_insn): Convert define_insn into
8298         define_insn_and_split.
8299         (and_scc,ior_scc,negscc): Likewise.
8300         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8302 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
8304         * config/arm/arm.c (use_return_insn): Return 0 for targets that
8305         can benefit from using a sequence of LDRD instructions in epilogue
8306         instead of a single LDM instruction.
8308 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8310         PR 45688
8311         * doc/extend.texi: Fix typo.
8313 2013-04-17  Richard Biener  <rguenther@suse.de>
8315         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8316         (vect_build_slp_tree): ... here.
8317         (vect_build_slp_tree_1): Compute which stmts of the SLP group
8318         match.  Remove special-casing of mismatched complex loads.
8319         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8320         re-try the match with swapped commutative operands.
8321         (vect_supported_load_permutation_p): Remove special-casing of
8322         mismatched complex loads.
8323         (vect_analyze_slp_instance): Adjust.
8325 2013-04-17  Richard Biener  <rguenther@suse.de>
8327         PR rtl-optimization/56921
8328         * cfgloop.h (struct loop): Add simple_loop_desc member.
8329         (struct niter_desc): Mark with GTY(()).
8330         (simple_loop_desc): Do not use aux field but simple_loop_desc.
8331         * loop-iv.c (get_simple_loop_desc): Likewise.
8332         (free_simple_loop_desc): Likewise.
8334         Revert
8335         2013-04-16  Richard Biener  <rguenther@suse.de>
8337         PR rtl-optimization/56921
8338         * loop-init.c (pass_rtl_move_loop_invariants): Add
8339         TODO_do_not_ggc_collect to todo_flags_finish.
8340         (pass_rtl_unswitch): Same.
8341         (pass_rtl_unroll_and_peel_loops): Same.
8342         (pass_rtl_doloop): Same.
8344 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8346         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8347         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8348         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8349         references.
8350         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8351         * tree-streamer.c (record_common_node): Adjust reference in comment.
8353 2013-04-17  Terry Guo  <terry.guo@arm.com>
8355         * config/arm/cortex-m4.md: Add a new bypass.
8357 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8359         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8360         New pattern.
8361         (*subs_<optab><mode>_multp2): New pattern.
8362         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8363         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8365 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8367         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8368         (*subs_mul_imm_<mode>): New pattern.
8370 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
8372         PR target/56948
8373         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8374         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
8375         (vsx_movti_32bit): Change j->wa to O->wa.
8377 2013-04-16  Richard Biener  <rguenther@suse.de>
8379         PR rtl-optimization/56921
8380         * loop-init.c (pass_rtl_move_loop_invariants): Add
8381         TODO_do_not_ggc_collect to todo_flags_finish.
8382         (pass_rtl_unswitch): Same.
8383         (pass_rtl_unroll_and_peel_loops): Same.
8384         (pass_rtl_doloop): Same.
8386 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
8388         * config/arm/arm.c (emit_multi_reg_push): New declaration
8389         for an existing function.
8390         (arm_emit_strd_push): New function.
8391         (arm_expand_prologue): Used here.
8392         (arm_emit_ldrd_pop): New function.
8393         (arm_expand_epilogue): Used here.
8394         (arm_get_frame_offsets): Update condition.
8395         (arm_emit_multi_reg_pop): Add a special case for load of a single
8396         register with writeback.
8398 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
8400         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8401         description.
8403 2013-04-16  Richard Biener  <rguenther@suse.de>
8405         PR tree-optimization/56756
8406         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8407         (first_mem_ref_loc): New.
8408         (execute_sm): Place the load temporarily before a previous
8409         access instead of in the latch edge to ensure its SSA dependencies
8410         are defined at points dominating the load.
8412 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
8414         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8415         correct fix by moving header and footer insn to the footer of
8416         the merged basic block.  Clear BB_END of the merged-away block.
8418         PR middle-end/43631
8419         * emit-rtl.c (make_note_raw): New function.
8420         (link_insn_into_chain): New static inline function.
8421         (add_insn): Use it.
8422         (add_insn_before, add_insn_after): Factor insn chain linking code...
8423         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8424         using link_insn_into_chain.
8425         (note_outside_basic_block_p): New helper function for emit_note_after
8426         and emit_note_before.
8427         (emit_note_after): Use nobb variant of add_insn_after if the note
8428         should not be contained in a basic block.
8429         (emit_note_before): Use nobb variant of add_insn_before if the note
8430         should not be contained in a basic block.
8431         (emit_note_copy): Use make_note_raw.
8432         (emit_note): Likewise.
8433         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8434         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8435         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8436         the moved barrier the tail of the basic block it follows.
8437         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8439 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
8441         PR tree-optimization/56962
8442         * gimple-ssa-strength-reduction.c (record_increment): Only set
8443         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8444         either rhs1 or rhs2 is equal to c->base_expr.
8446 2013-04-15  Richard Biener  <rguenther@suse.de>
8448         PR tree-optimization/56933
8449         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8450         member.
8451         (GROUP_READ_WRITE_DEPENDENCE): Remove.
8452         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8453         * tree-vect-data-refs.c (vect_analyze_group_access): Move
8454         dependence check ...
8455         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8456         ... here.
8457         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8458         GROUP_READ_WRITE_DEPENDENCE.
8460 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8462         * emit-rtl.c (reset_all_used_flags): New function.
8463         (verify_rtl_sharing): Call reset_all_used_flags before and after
8464         performing the checks.
8466 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8468         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8469         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8470         * config/arm/constraints.md (De): New constraint.
8471         * config/arm/neon.md (anddi3_neon): Delete.
8472         (neon_vand<mode>): Expand to standard anddi3 pattern.
8473         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8474         Move earlier in the file.
8475         (neon_inv_logic_op2): Likewise.
8476         (arm_anddi_operand_neon): New predicate.
8478 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8480         * configure.ac (gcc_cv_ld_as_needed): Set
8481         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8482         Use -z ignore, -z record on *-*-solaris2*.
8483         (HAVE_LD_AS_NEEDED): Update comment.
8484         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8485         * configure: Regenerate.
8486         * config.in: Regenerate.
8487         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8488         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8489         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8490         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8491         equivalents.  Fix markup.
8492         * doc/tm.texi: Regenerate.
8494 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
8496         * config/i386/i386.opt: New option mstack-protector-guard=.
8497         * config/i386/i386-opts.h: Add enum stack_protector_guard.
8498         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8499         TARGET_SSP_TLS_GUARD.
8500         * config/i386/i386.c (ix86_option_override_internal): Set
8501         ix86_stack_protector_guard.
8502         * config/i386/i386.md (stack_protect_set): Enable for
8503         TARGET_SSP_TLS_GUARD only.
8504         (stack_protect_set_<mode>): Ditto.
8505         (stack_protect_test): Ditto.
8506         (stack_protect_test_<mode>): Ditto.
8507         * doc/invoke.texi (i386 Option): Document.
8509 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8511         PR target/56890
8512         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8513         (S_MODES): Set H_MODE bit.
8514         (SF_MODES): Set only S_MODE and SF_MODE bits.
8515         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8516         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8517         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8518         <MODE_FLOAT>: Likewise.
8520 2013-04-15  Joey Ye  <joey.ye@arm.com>
8522         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8524 2013-04-15  Joey Ye  <joey.ye@arm.com>
8526         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8527         for real far jump.
8528         (thumb_far_jump_used_p): Count instruction size and set
8529         far_jump_used.
8531 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
8533         * reorg.c (fill_simple_delay_slots): Reindent block of code.
8534         * resource.c (mark_target_live_regs): Reformat conditional block.
8536 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8538         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8539         notes, they are emitted only just before final.
8540         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8542 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
8544         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8545         * cfgrtl.c (delete_insn): Call it here instead.
8546         * lra-spills.c (lra_final_code_change): Use delete_insn.
8547         * haifa-sched.c (sched_remove_insn): Likewise.
8548         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8549         returning to the nop pool.
8550         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8551         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
8553 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8555         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8556         * doc/tm.texi: Regenerated.
8558 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
8560         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8561         QImode checks.
8563 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
8565         * df-core.c (df_find_def): Compare register numbers.
8566         (df_find_use): Likewise.
8568 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
8570         PR target/56903
8571         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8572         lra_in_progress for return.
8574 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8576         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8577         define_insn into define_insn_and_split and emit movsicc patterns.
8579 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
8581         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8583 2013-04-12  Richard Biener  <rguenther@suse.de>
8585         * tree-pass.h (TODO_do_not_ggc_collect): New.
8586         * passes.c (execute_one_ipa_transform_pass): Honor
8587         TODO_do_not_ggc_collect.
8588         (execute_one_pass): Likewise.
8590         Revert
8591         2013-04-10  Richard Biener  <rguenther@suse.de>
8593         * passes.c (init_optimization_passes): Remove reload pass.
8594         * ira.c (do_reload): Merge into ...
8595         (ira): ... this.
8596         (rest_of_handle_reload): Remove.
8597         (pass_reload): Likewise.
8598         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8599         of reload for vzeroupper pass placement.
8601 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
8603         PR tree-optimization/56918
8604         PR tree-optimization/56920
8605         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8606         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
8607         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
8608         use wide_mul_with_sign method.
8610 2013-04-12  Richard Biener  <rguenther@suse.de>
8612         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8613         not be considered a gimple constant.
8615 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
8617         * fold-const.c (const_binop): Handle vector shifts by a scalar.
8618         (fold_binary_loc): Call const_binop also for mixed vector-scalar
8619         operations.
8621 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8622             Jakub Jelinek  <jakub@redhat.com>
8624         * opts.c: Include diagnostic-color.h.
8625         (common_handle_option): Handle OPT_fdiagnostics_color_.
8626         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8627         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8628         (diagnostic-color.o): New.
8629         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8630         (diagnostic_color_rule): New enum.
8631         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8632         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8633         the location string.
8634         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8635         either NULL, or color kind.
8636         * diagnostic-color.c: New file.
8637         * diagnostic-color.h: New file.
8638         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8639         arguments.
8640         * doc/invoke.texi (-fdiagnostics-color): Document.
8641         * pretty-print.h (pp_show_color): Define.
8642         (struct pretty_print_info): Add show_color field.
8643         * diagnostic.c: Include diagnostic-color.h.
8644         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8645         macros.  Colorize error:, warning: etc. strings and also the location
8646         string.
8647         (diagnostic_show_locus): Colorize the caret line.
8648         * pretty-print.c: Include diagnostic-color.h.
8649         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
8650         inside of %< %> quotes or quoted through q format modifier.
8652 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8654         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8656 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8658         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8659         code in CC_NZ mode.
8660         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8661         pattern.
8663 2013-04-11  Marek Polacek  <polacek@redhat.com>
8665         PR tree-optimization/48184
8666         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8668 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
8670         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8671         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8672         (skip_simple_arithmetic): Tidy up.
8673         * tree.h (skip_simple_constant_arithmetic): Declare.
8675 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8677         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8679 2013-04-11  Richard Biener  <rguenther@suse.de>
8681         * tree-vect-loop.c (get_initial_def_for_induction): Properly
8682         generate vector constants.
8684 2013-04-11  Richard Biener  <rguenther@suse.de>
8686         PR tree-optimization/56878
8687         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8688         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8689         New function.
8690         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8691         Prefer to align the DR with the most invariant base address.
8693 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8695         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8696         comment.
8698 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
8700         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8701         floating-point vector comparisons against 0.
8703 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
8705         PR tree-optimization/56899
8706         * fold-const.c (extract_muldiv_1): Apply distributive law
8707         only if TYPE_OVERFLOW_WRAPS (ctype).
8709 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
8711         PR target/56124
8712         * ira-costs.c (scan_one_insn): Check whether the source rtx of
8713         loading has side effect.
8715 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
8717         * config/sparc/sparc.c: Include tree-pass.h.
8718         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8719         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
8720         head of file.  Change return type.  Split off gate function.
8721         (sparc_gate_work_around_errata): New function.
8722         (pass_work_around_errata): New pass definition.
8723         (insert_pass_work_around_errata) New pass insert definition to
8724         insert pass_work_around_errata just after delayed-branch scheduling.
8725         (sparc_option_override): Insert the pass.
8726         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8728 2013-04-10  David S. Miller  <davem@davemloft.net>
8730         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8731         or -mcpu=hypersparc.
8733         * target.def (cstore_mode): New hook.
8734         * target.h: Include insn-codes.h
8735         * targhooks.c: Likewise.
8736         (default_cstore_mode): New function.
8737         * targhooks.h: Declare it.
8738         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8739         * doc/tm.texi: Rebuild.
8740         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8741         target hook, rather than inspecting the insn_data.
8742         * config/sparc/sparc.c (sparc_cstore_mode): New function.
8743         (TARGET_CSTORE_MODE): Redefine.
8744         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8745         result patterns.
8746         * config/sparc/predicates.md (cstore_result_operand): New special
8747         predicate.
8748         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8749         Use it for operand 0.
8750         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8751         (*snesi_special): Likewise.
8752         (*snesi_zero): Likewise.
8753         (*seqsi_zero): Likewise.
8754         (*sltu_insn): Likewise.
8755         (*sgeu_insn): Likewise.
8756         (*seqdi_special): Make operand 0 and comparison operation be of
8757         DImode.
8758         (*snedi_special): Likewise.
8759         (*snedi_special_vis3): Likewise.
8760         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8761         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8762         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8763         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8764         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8765         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8766         (*sltu_extend_sp64): Likewise.
8767         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8768         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8769         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8770         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8771         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8773 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
8775         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8776         (aarch64_start_file): Use the new function.
8778 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8779             Jason Merrill  <jason@redhat.com>
8781         * common.opt: Add -gdwarf.
8782         * opts.c (common_handle_option): Handle it.
8783         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8785 2013-04-10  Richard Biener  <rguenther@suse.de>
8787         * passes.c (execute_todo): Do not call ggc_collect conditional here.
8788         (execute_one_ipa_transform_pass): But unconditionally here.
8789         (execute_one_pass): And here.
8790         (init_optimization_passes): Remove reload pass.
8791         * tree-pass.h (TODO_ggc_collect): Remove.
8792         (pass_reload): Likewise.
8793         * ira.c (do_reload): Merge into ...
8794         (ira): ... this.
8795         (rest_of_handle_reload): Remove.
8796         (pass_reload): Likewise.
8797         * config/i386/i386.c (ix86_option_override): Refer to ira instead
8798         of reload for vzeroupper pass placement.
8799         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8800         and todo_flags_finish of all passes.
8802 2013-04-10  Richard Biener  <rguenther@suse.de>
8804         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8805         first_const_oprnd field, rename first_def_type to first_op_type.
8806         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8807         (vect_get_and_check_slp_defs): Always use the type of the
8808         operand.  Allow mixed vect_external_def, vect_constant_def types.
8809         (vect_get_constant_vectors): Handle mixed vect_external_def,
8810         vect_constant_def types.
8812 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
8814         PR tree-optimization/55524
8815         * tree-ssa-math-opts.c
8816         (convert_mult_to_fma): Don't use an fms construct
8817         when we don't have an fms operation, but fnma, and it looks
8818         likely that we'll be able to use the latter.
8820 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8822         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8823         function.
8824         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8825         inline fail caused by overwritable functions.
8827 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
8829         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8830         unnecessary bits in the constant power of two case.
8832 2013-04-10  Richard Biener  <rguenther@suse.de>
8834         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8835         broken code swapping operands.
8836         (vect_build_slp_tree): Do not compute load permutations here.
8837         (vect_analyze_slp_instance): Compute load permutations here,
8838         after building the SLP tree.
8840 2013-04-09  Christian Bruel  <christian.bruel@st.com>
8842         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8843         of next/prev_real_insn.
8845 2013-04-09  Jan Hubicka  <jh@suse.cz>
8847         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8848         Drop aliased parameter.
8849         (function_and_variable_visibility): Do not handle alias pairs.
8850         * cgraph.c (varpool_externally_visible_p): Update prototype.
8851         * varpool.c (varpool_add_new_variable): Update.
8853 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8855         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8857 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
8859         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8861         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8863 2013-04-09  Marek Polacek  <polacek@redhat.com>
8865         PR tree-optimization/48762
8866         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8868 2013-04-09  Richard Biener  <rguenther@suse.de>
8870         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8871         dealing with cost.
8872         (vect_build_slp_tree): Likewise.
8873         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8874         calculating the cost of a SLP instance.
8875         (vect_analyze_slp_instance): Use it from here, after building
8876         the SLP tree.
8878 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8880         PR middle-end/56883
8881         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8882         expand_omp_for_static_chunk): Use simple_p = true in
8883         force_gimple_operand_gsi calls when assigning to addressable decls.
8885 2013-04-09  Jeff Law  <law@redhat.com>
8887         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8888         when the boolean was created by converting a wider object which
8889         had a boolean range.
8891 2013-04-09  Richard Biener  <rguenther@suse.de>
8893         * tree-vectorizer.h (slp_void_p): Remove.
8894         (slp_tree): Typedef before _slp_tree declaration.
8895         (struct _slp_tree): Use a vector of slp_tree as children.
8896         (vect_get_place_in_interleaving_chain): Remove.
8897         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8898         Move ...
8899         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8900         and make static.
8901         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8902         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8903         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8904         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8905         Use slp_node instead of slp_void_p and adjust.
8907 2013-04-09  Richard Biener  <rguenther@suse.de>
8909         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8910         work that is not necessary.
8912 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
8914         PR tree-optimization/56854
8915         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8916         forward into clobber stmts if it would change MEM_REF lhs into
8917         non-MEM_REF.
8919 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
8921         * tree.c (type_hash_lookup, type_hash_add): Make static.
8922         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8924 2013-04-09  Richard Biener  <rguenther@suse.de>
8926         * tree.h (unsave_expr_now): Remove.
8927         * tree-inline.c (mark_local_for_remap_r): Remove.
8928         (unsave_expr_1): Likewise.
8929         (unsave_r): Likewise.
8930         (unsave_expr_now): Likewise.
8931         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8932         (propagate_tree_value): Likewise.
8934 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
8936         * doc/rtl.texi (sequence): Rewrite documentation to match the
8937         current use of SEQUENCE rtl objects.
8938         * rtl.def (SEQUENCE): Likewise.
8940         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8941         Update documentation.
8942         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8943         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8945         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8947 2013-04-08  Teresa Johnson  <tejohnson@google.com>
8949         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8950         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8951         methods.
8952         (estimate_edge_size_and_time): Add comment to suggest using rounding
8953         methods.
8954         (estimate_node_size_and_time): Ditto.
8955         (remap_edge_change_prob): Use helper rounding divide methods.
8956         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8957         (gimple_mod_pow2_value_transform): Ditto.
8958         (gimple_mod_subtract_transform): Ditto.
8959         (gimple_ic_transform): Ditto.
8960         (gimple_stringops_transform): Ditto.
8961         * stmt.c (conditional_probability): Ditto.
8962         (emit_case_dispatch_table): Ditto.
8963         * lto-cgraph.c (merge_profile_summaries): Ditto.
8964         * tree-optimize.c (execute_fixup_cfg): Ditto.
8965         * cfgcleanup.c (try_forward_edges): Ditto.
8966         * cfgloopmanip.c (scale_loop_profile): Ditto.
8967         (loopify): Ditto.
8968         (duplicate_loop_to_header_edge): Ditto.
8969         (lv_adjust_loop_entry_edge): Ditto.
8970         * tree-vect-loop.c (vect_transform_loop): Ditto.
8971         * profile.c (compute_branch_probabilities): Ditto.
8972         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8973         * lto-streamer-in.c (input_cfg): Ditto.
8974         * gimple-streamer-in.c (input_bb): Ditto.
8975         * ipa-cp.c (update_profiling_info): Ditto.
8976         (update_specialized_profile): Ditto.
8977         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8978         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8979         rounding methods.
8980         * sched-rgn.c (compute_dom_prob_ps): Ditto.
8981         (compute_trg_info): Ditto.
8982         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8983         (purge_dead_edges): Ditto.
8984         * loop-unswitch.c (unswitch_loop): Ditto.
8985         * cgraphclones.c (cgraph_clone_edge): Ditto.
8986         (cgraph_clone_node): Ditto.
8987         * tree-inline.c (copy_bb): Ditto.
8988         (copy_edges_for_bb): Ditto.
8989         (initialize_cfun): Ditto.
8990         (copy_cfg_body): Ditto.
8991         (expand_call_inline): Ditto.
8993 2013-04-08  Kai Tietz  <ktietz@redhat.com>
8995         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8996         TARGET_CYGWIN64 by TARGET_64BIT.
8998 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9000         * config/epiphany/epiphany.md (GPR_1): New constant.
9001         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
9002         * config/epiphany/epiphany.c (gen_compare_reg):
9003         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
9004         is already in place.
9005         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
9006         Don't require being called during rtl expansion; If y operlaps r0,
9007         return 0.
9008         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
9009         (epiphany_expand_epilogue): Likewise.
9011         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
9012         Don't use CC_FPmode for ORDERED / UNORDERED.
9013         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
9015         * config/epiphany/constraints.md (CnL): New constraint.
9016         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
9017         * config/epiphany/predicates.md (add_operand): Allow 1024.
9019         * config/epiphany/epiphany.md (logical_op): New code iterator.
9020         (op_mnc): New code attribute.
9021         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
9022         (mov_f+1, mov_f+2): New peephole2 patterns.
9024         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
9025         (cstoresi4): Also allow re-use of zero result when doing a NE
9026         comparison to a non-zero operand.
9027         Use (clobber (scratch)) for first insn if the gpr output is not needed.
9029         * config/epiphany/epiphany.md (<insn_opname>v2si3):
9030         Use gen_addsi3_i / gen_subsi3_i.
9032 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
9034         PR c++/34949
9035         PR c++/50243
9036         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
9037         contain anything but clobbers, at most one __builtin_stack_restore,
9038         optionally debug stmts and final resx, and if it has at least one
9039         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
9040         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
9041         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
9042         which isn't defaut definition, remove them.
9043         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
9044         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
9045         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
9046         with MEM_REF LHS with SSA_NAME address.
9048 2013-04-08  Jeff Law  <law@redhat.com>
9050         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
9052 2013-04-08  Richard Biener  <rguenther@suse.de>
9054         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
9055         extra newline.
9056         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
9057         determined vector type.
9058         (vect_analyze_data_refs): Likewise.
9059         (vect_get_new_vect_var): Adjust.
9060         (vect_create_destination_var): Preserve SSA name versions.
9061         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
9062         not dump anything here.
9064 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
9066         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
9067         Add member lr_slot_known.
9068         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
9069         if necessary.
9070         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9071         Remove code that sets lr_slot_offset according to what a previous
9072         version of epiphany_emit_save_restore used to do.
9073         (epiphany_emit_save_restore): When doing an lr save or restore,
9074         set/verify lr_slot_known and lr_slot_offset.
9076 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
9078         PR target/54338
9079         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
9080         in ALL_REGS.
9082 2013-04-08  Richard Biener  <rguenther@suse.de>
9084         * alias.c (find_base_term): Fix thinko in previous change.
9086 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
9088         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
9089         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
9090         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
9091         if possible to compute val.
9092         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
9093         For QImode integers don't require anything about precision.  Use
9094         const_with_all_bytes_same to find out if the constant doesn't have
9095         repeated bytes in it.
9097 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9099         * config/s390/s390.c (s390_expand_insv): Only accept insertions
9100         within mode size.
9102 2013-04-08  Marek Polacek  <polacek@redhat.com>
9104         PR rtl-optimization/48182
9105         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
9106         value to 1.
9108 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9110         PR target/55487
9111         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
9112         nuses, make sure we have a label.
9114 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9116         PR target/56843
9117         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
9118         (rs6000_emit_swdiv_low_precision): Remove.
9119         (rs6000_emit_swdiv): Rewrite to handle between one and four
9120         iterations of Newton-Raphson generally; modify required number of
9121         iterations for some cases.
9122         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
9124 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
9126         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
9127         set-but-unused variable.
9129         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
9130         basic blocks of released function bodies garbage-collectable.
9132         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9133         (struct rtl_opt_pass): Add TODO_df_finish.
9135         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9137 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9139         * config/arm/constraints.md (q): New constraint.
9140         * config/arm/ldrdstrd.md: New file.
9141         * config/arm/arm.md (ldrdstrd.md) New include.
9142         (arm_movdi): Use "q" instead of "r" constraint
9143         for double-word memory access.
9144         (movdf_soft_insn): Likewise.
9145         * config/arm/vfp.md (movdi_vfp): Likewise.
9146         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
9147         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
9148         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9149         (mem_ok_for_ldrd_strd): Likewise.
9150         (output_move_double): Update assertion.
9152 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9154         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9156 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9158         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9159         define_insn_and_split.
9160         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9162 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9164         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9165         define_insn_and_split.
9166         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9167         (shiftsi3_compare): New pattern.
9168         (rrx): New pattern.
9169         * config/arm/unspecs.md (UNSPEC_RRX): New.
9171 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9173         * config/arm/arm.md (negdi_extendsidi): New pattern.
9174         (negdi_zero_extendsidi): Likewise.
9176 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9178         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9179         define_insn_and_split.
9180         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9181         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9183 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9185         * config/arm/arm.md (arm_subdi3): Convert define_insn into
9186         define_insn_and_split.
9187         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9188         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9190 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9192         * config/arm/arm.md (subsi3_carryin): New pattern.
9193         (subsi3_carryin_const): Likewise.
9194         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9195         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9197 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9199         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9201 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
9203         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9204         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
9206 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9208         * config/arm/arm.c (arm_expand_builtin): Change fcode
9209         type to unsigned int.
9211 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9213         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9215 2013-04-04  Ian Lance Taylor  <iant@google.com>
9217         * doc/standards.texi (Standards): The Go frontend supports the Go 1
9218         language standard.
9220 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
9222         PR middle-end/56729
9223         * df-scan.c (df_insn_delete): Disable failing assert.
9225 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9227         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9228         New function prototype.
9229         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9230         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9231         (arm_builtin_vectorized_function): New function.
9233 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9235         * config/arm/arm_neon_builtins.def: New file.
9236         * config/arm/arm.c (neon_builtin_data): Move contents to
9237         arm_neon_builtins.def.
9238         (enum arm_builtins): Include neon builtin definitions.
9239         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9240         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9242 2013-04-04  Marek Polacek  <polacek@redhat.com>
9244         PR tree-optimization/48186
9245         * predict.c (maybe_hot_frequency_p): Return false if
9246         HOT_BB_FREQUENCY_FRACTION is 0.
9247         (cgraph_maybe_hot_edge_p): Likewise.
9249 2013-04-04  Richard Biener  <rguenther@suse.de>
9251         PR tree-optimization/56826
9252         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9253         more accurately.
9255 2013-04-04  Richard Biener  <rguenther@suse.de>
9257         PR tree-optimization/56213
9258         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9259         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9261 2013-04-04  Richard Biener  <rguenther@suse.de>
9263         PR tree-optimization/56837
9264         * tree-loop-distribution.c (classify_partition): For non-zero
9265         values require that the value has the same precision as its
9266         mode to be useful as memset value.
9268 2013-04-03  Nick Clifton  <nickc@redhat.com>
9270         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9271         (fmssf4): Use fmsf.s on E3V5 architectures.
9272         (fnmasf4): Use fnmaf.s on E3V5 architectures.
9273         (fnmssf4): Use fnmsf.s on E3V5 architectures.
9275 2013-04-03  Jeff Law  <law@redhat.com>
9277         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9278         (lra-eliminations.o): Likewise.
9280 2013-04-03  Teresa Johnson  <tejohnson@google.com>
9282         * gcov-io.c (compute_working_sets): Moved most of body of old
9283         compute_working_sets here from profile.c.
9284         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9285         (gcov_working_set_t): Moved typedef here from basic-block.h
9286         (compute_working_set): Declare.
9287         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9288         (get_working_sets): Renamed from compute_working_set,
9289         replace most of body with call to new compute_working_sets.
9290         (get_exec_counts): Replace call to compute_working_sets
9291         to get_working_sets.
9292         * profile.h (get_working_sets): Renamed from compute_working_set.
9293         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9294         to get_working_sets.
9295         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9296         * gcov-dump.c (dump_working_sets): New function.
9298 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
9300         * hwint.c (sext_hwi, zext_hwi): New functions.
9301         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9302         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9303         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9304         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9305         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9306         (sext_hwi, zext_hwi): New functions.
9308 2013-04-03  Jeff Law  <law@redhat.com>
9310         PR tree-optimization/56799
9311         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9312         back test for widening conversion erroneously dropped in prior change.
9314 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9316         PR target/56809
9317         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9318         instead of next_real_insn.
9320 2013-04-03  Marek Polacek  <polacek@redhat.com>
9322         PR sanitizer/55702
9323         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9325 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9327         PR target/56809
9328         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9329         next_real_insn.
9330         (thumb1_output_casesi): Likewise.
9331         (thumb2_output_casesi): Likewise.
9333 2013-04-03  Richard Biener  <rguenther@suse.de>
9335         PR tree-optimization/56817
9336         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9337         Split out ...
9338         (tree_unroll_loops_completely_1): ... new function to manually
9339         walk the loop tree, properly defering outer loops of unrolled
9340         loops to later iterations.
9342 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9344         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9345         (vectorizable_load): Likewise.
9346         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9347         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9349 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9351         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9352         BIT_FIELD_REF.
9354 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9356         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9358 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
9360         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9362 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9364         PR tree-optimization/56790
9365         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9366         folding.
9368 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
9370         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9371         Handle VEC_MERGE.
9372         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9373         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9374         equal arguments.
9376 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
9378         PR c/19449
9379         * tree.h (force_folding_builtin_constant_p): New decl.
9380         * builtins.c (force_folding_builtin_constant_p): New variable.
9381         (fold_builtin_constant_p): Fold immediately also if
9382         force_folding_builtin_constant_p.
9384 2013-04-03  Richard Biener  <rguenther@suse.de>
9386         PR tree-optimization/56812
9387         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9388         DRs of the same interleaving chain are independent.
9390 2013-04-02  Jason Merrill  <jason@redhat.com>
9392         * gdbinit.in (pbb): Use debug fn.
9394 2013-04-02  Lawrence Crowl  <crowl@google.com>
9396         * sese.h (struct ivtype_map_elt_s): Remove unused.
9397         (extern debug_ivtype_map): Remove unused.
9398         (extern eq_ivtype_map_elts): Remove unused.
9399         * sese.c (debug_ivtype_map): Removed unused.
9400         (debug_ivtype_map_1): Removed unused.
9401         (debug_ivtype_elt): Remove unused.
9402         (eq_ivtype_map_elts): Remove unused.
9405 2013-04-02  Kai Tietz  <ktietz@redhat.com>
9407         PR target/52790
9408         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9409         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9410         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9411         function.
9412         (legitimize_pe_coff_symbol): Likewise.
9413         (is_imported_p): New helper-function.
9414         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9415         for Windows x64 targets.
9416         (ix86_expand_prologue): Optimize for pe-coff targets.
9417         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9418         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9419         medium/large code-model.
9420         (legitimize_pic_address): Likewise.
9421         (legitimize_tls_address): Likewise.
9422         (ix86_expand_call): Likewise.
9423         (x86_output_mi_thunk): Likewise.
9424         (get_dllimport_decl): Add new beimport argument.
9425         (construct_plt_address): Don't assert for x64 pe-coff targets.
9426         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9427         targets.
9428         (SYMBOL_FLAG_STUBVAR): New macro.
9429         (SYMBOL_REF_STUBVAR_P): Likewise.
9430         * config/i386/winnt.c (stub_list): New structure.
9431         (stub_head): New local variable.
9432         (i386_pe_record_stub): New function.
9433         (i386_pe_file_end): Emit refptr-stubs.
9435 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
9437         PR rtl-optimization/56745
9438         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9439         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9441         PR c++/34949
9442         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9443         and both of them are MEM_REFs, just compare first argument for
9444         equality and attempt to deal even with differing offsets.
9446         PR c++/34949
9447         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9448         of gimple_clobber_p to be MEM_REF.
9449         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9450         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
9451         after gimplification.
9452         * asan.c (get_mem_ref_of_assignment): Don't instrument
9453         gimple_clobber_p stmts.
9454         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9455         gimple_clobber_p stmt if they have MEM_REF lhs and
9456         are dead because of another gimple_clobber_p stmt.
9457         * tree-ssa-live.c (clear_unused_block_pointer): Treat
9458         gimple_clobber_p stmts like debug stmts.
9459         (remove_unused_locals): Remove clobbers with MEM_REF lhs
9460         that refer to unused VAR_DECLs or uninitialized values.
9461         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9462         gimple_clobber_p stmts if they refer to removed parameters.
9463         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9464         formatting.
9466 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
9468         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9469         using SWI48 mode attribute.
9471 2013-04-02  Wei Mi  <wmi@google.com>
9473         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9474         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9475         *<rotate_insn><mode>3_mask in i386.md.
9477 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9479         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9481 2013-04-02  Richard Biener  <rguenther@suse.de>
9483         PR tree-optimization/56778
9484         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9485         Runtime alias tests are not supported for gather loads.
9486         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9487         stmts referenced from SSA operands before updating SSA form.
9489 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
9490             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9492         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9493         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9494         * config/arm/cortex-a53.md: New file.
9495         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9496         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9497         * config/arm/arm.c (arm_issue_rate): Likewise.
9498         * config/arm/arm-tune.md: Regenerate
9499         * config/arm/arm-tables.opt: Regenerate.
9500         * config/arm/arm-cores.def: Add cortex-a53.
9502 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9504         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9505         non-static link.
9507 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
9509         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9510         scalar load/store operations using B/H registers.
9511         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9513 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
9515         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9516         scalar move.
9517         * config/aarch64/aarch64.c
9518         (aarch64_simd_scalar_immediate_valid_for_move): New.
9519         * config/aarch64/aarch64-protos.h
9520         (aarch64_simd_scalar_immediate_valid_for_move): New.
9521         * config/aarch64/constraints.md (Dh, Dq): New.
9522         * config/aarch64/iterators.md (hq): New.
9524 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
9526         * reorg.c (get_branch_condition): Deal with conditional returns.
9527         (fill_simple_delay_slots): Remove dead code dealing with jumps.
9529 2013-04-01  Wei Mi  <wmi@google.com>
9531         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9532         Truncate operand 2 using %b asm operand modifier.
9533         (*<shift_insn><mode>3_mask): Ditto.
9534         (*<rotate_insn><mode>3_mask): Ditto.
9536 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
9538         PR middle-end/56798
9539         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9541 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
9543         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9544         of next_real_insn.
9545         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9547 2013-03-30  Lawrence Crowl  <crowl@google.com>
9549         * dse.c (clear_alias_sets): Remove never set.
9550         (disqualified_clear_alias_sets): Remove never set.
9551         (clear_alias_mode_pool): Remove never set.
9552         (dse_step0): Remove condition that is never true.
9553         (canon_address): Remove condition that is never true.
9554         (dse_step7): Remove condition that is never true.
9555         (rest_of_handle_dse): Remove condition that is never true.
9556         (rest_of_handle_dse::did_global): Remove never read from above.
9557         (dse_step2_spill): Remove never called from above.
9558         (dse_step5_spill): Remove never called from above.
9560 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
9562         * doc/md.texi (Standard Names) <casesi>: Update documentation for
9563         JUMP_TABLE_DATA changes.
9564         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9565         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9566         (Insns) <jump_table_data>: New entry.
9567         * doc/tm.texi: Regenerate.
9569         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9571         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9572         for table jump at the end of a basic block using tablejump_p.
9573         * targhooks.c (default_invalid_within_doloop): Likewise.
9574         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9575         target hook implementation that is identical to the default hook.
9576         (rs6000_invalid_within_doloop): Remove.
9578         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9579         unused variable from tablejump_p call.
9581         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9582         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9583         (INSN_DELETED_P): Likewise.
9584         (emit_jump_table_data): New prototype.
9585         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9586         after 4th as unused.
9587         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9588         * sched-vis.c (print_insn): Likewise.
9589         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9590         insn for compatibility with back ends that use next_active_insn to
9591         identify jump table data.
9592         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9593         (remove_insn): Likewise.
9594         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9595         to be emitted.
9596         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9597         (emit_jump_table_data): New function.
9599         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9600         basic block, a JUMP_TABLE_DATA never is.
9601         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9602         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9603         off from code handling real insns.
9604         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9605         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9606         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9607         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9608         is not a NONDEBUG_INSN_P.
9609         * ira-costs.c (scan_one_insn): Likewise.
9610         * jump.c (mark_all_labels): Likewise.
9611         (mark_jump_label_1): Likewise.
9612         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9613         * lra.c (get_insn_freq): Expect all insns reaching here to be in
9614         a basic block.
9615         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9616         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9617         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9618         JUMP_TABLE_DATA_P insns.
9619         (calculate_elim_costs_all_insns): Likewise.
9620         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9621         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9622         (delete_output_reload): Code style fixups.
9623         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9624         insn flags on this non-insn.
9625         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9626         as scheduling barriers, for pre-change compatibility.
9627         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9628         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9630         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9631         redundant JUMP_TABLE_DATA_P test.
9632         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9633         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9634         (frv_for_each_packet): Likewise.
9635         * config/i386/i386.c (min_insn_size): Likewise.
9636         (ix86_avoid_jump_mispredicts): Likewise.
9637         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9638         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9639         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9640         (mips16_insn_length): Robustify.
9641         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9642         (mips16_split_long_branches): Likewise.
9643         * config/pa/pa.c (pa_combine_instructions): Likewise.
9644         * config/rs6000/rs6000.c (get_next_active_insn): Treat
9645         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9646         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9647         as contributing to pool range lengths.
9648         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9649         Remove redundant JUMP_TABLE_DATA_P test.
9650         (sh_loop_align): Likewise.
9651         (split_branches): Likewise.
9652         (sh_insn_length_adjustment): Likewise.
9653         * config/spu/spu.c (get_branch_target): Likewise.
9655 2013-03-29  Jan Hubicka  <jh@suse.cz>
9657         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9658         gcov streaming; stream hot bb threshold to ltrans.
9659         * predict.c (get_hot_bb_threshold): Break out from ....
9660         (maybe_hot_count_p): ... here.
9661         (set_hot_bb_threshold): New function.
9662         * lto-section-in.c (lto_section_name): Add profile.
9663         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9664         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9665         and data-streamer.h
9666         (histogram_entry): New structure.
9667         (histogram, histogram_pool): New global vars.
9668         (histogram_hash): New structure.
9669         (histogram_hash::hash): New method.
9670         (histogram_hash::equal): Likewise.
9671         (account_time_size): New function.
9672         (cmp_counts): New function.
9673         (dump_histogram): New function.
9674         (ipa_profile_generate_summary): New function.
9675         (ipa_profile_write_summary): New function.
9676         (ipa_profile_read_summary): New function.
9677         (ipa_profile): Decide on threshold.
9678         (pass_ipa_profile): Add ipa_profile_write_summary and
9679         ipa_profile_read_summary.
9680         * Makefile.in (ipa.o): Update dependencies.
9681         * lto-streamer.h (LTO_section_ipa_profile): New section.
9683 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9685         * tree.h (VAR_P): New.
9687 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
9689         PR lto/56777
9690         * doc/invoke.texi ([-fwhole-program]): Fix typo.
9692 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
9694         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9695         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9696         (control_flow_insn_p): Likewise.
9697         * cfgrtl.c (duplicate_insn_chain): Likewise.
9698         * final.c (get_attr_length_1): Likewise.
9699         (shorten_branches): Likewise.
9700         (final_scan_insn): Likewise.
9701         * function.c (instantiate_virtual_regs): Likewise.
9702         * gcse.c (insert_insn_end_basic_block): Likewise.
9703         * ira-costs.c (scan_one_insn): Likewise.
9704         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9705         * lra.c (check_rtl): Likewise.
9706         * reload1.c (elimination_costs_in_insn): Likewise.
9707         * reorg.c (follow_jumps): Likewise.
9709         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9710         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9711         (thumb_far_jump_used_p): Likewise.
9712         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9713         (workaround_speculation): Likewise.
9714         (add_sched_insns_for_speculation): Likewise.
9715         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9716         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9717         (frv_for_each_packet): Likewise.
9718         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9719         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9720         (final_emit_insn_group_barriers): Likewise.
9721         * config/m32r/m32r.c (m32r_is_insn): Likewise.
9722         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9723         (mips16_insn_length): Likewise.
9724         * config/pa/pa.c (pa_reorg): Likewise.
9725         (pa_combine_instructions): Likewise.
9726         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9727         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9728         (sh_reorg): Likewise.
9729         (split_branches): Likewise.
9730         * config/spu/spu.c (get_branch_target): Likewise.
9732         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9733         JUMP_TABLE_DATA_P.
9735 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
9737         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9738         Fix declaration name.
9740 2013-03-28  Lawrence Crowl  <crowl@google.com>
9742         * graphds.h (struct graph.indicies): Remove unused.
9743         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9744         (SCOP_ORIGINAL_PDDRS): Remove unused.
9745         * sese.h (extern insert_loop_close_phis): Removed unused.
9746         (extern insert_guard_phis): Removed unused.
9747         (extern ivtype_map_elt_info): Removed unused.
9748         (new_ivtype_map_elt): Removed unused.
9749         * sese.c (ivtype_map_elt_info): Removed unused.
9751 2013-03-28  Lawrence Crowl  <crowl@google.com>
9753         * Makefile.in: Add several missing include dependences.
9754         (DUMPFILE_H): New.
9755         (test-dump.o): New.  This object is not added to any executable,
9756         but is present for ad-hoc testing.
9757         * bitmap.c
9758         (debug (const bitmap_head_def &)): New.
9759         (debug (const bitmap_head_def *)): New.
9760         * bitmap.h
9761         (extern debug (const bitmap_head_def &)): New.
9762         (extern debug (const bitmap_head_def *)): New.
9763         * cfg.c
9764         (debug (edge_def &)): New.
9765         (debug (edge_def *)): New.
9766         * cfghooks.c
9767         (debug (basic_block_def &)): New.
9768         (debug (basic_block_def *)): New.
9769         * dumpfile.h
9770         (dump_node (const_tree, int, FILE *)): Correct source file.
9771         * dwarf2out.c
9772         (debug (die_struct &)): New.
9773         (debug (die_struct *)): New.
9774         * dwarf2out.h
9775         (extern debug (die_struct &)): New.
9776         (extern debug (die_struct *)): New.
9777         * gimple-pretty-print.c
9778         (debug (gimple_statement_d &)): New.
9779         (debug (gimple_statement_d *)): New.
9780         * gimple-pretty-print.h
9781         (extern debug (gimple_statement_d &)): New.
9782         (extern debug (gimple_statement_d *)): New.
9783         * ira-build.c
9784         (debug (ira_allocno_copy &)): New.
9785         (debug (ira_allocno_copy *)): New.
9786         (debug (ira_allocno &)): New.
9787         (debug (ira_allocno *)): New.
9788         * ira-int.h
9789         (extern debug (ira_allocno_copy &)): New.
9790         (extern debug (ira_allocno_copy *)): New.
9791         (extern debug (ira_allocno &)): New.
9792         (extern debug (ira_allocno *)): New.
9793         * ira-lives.c
9794         (debug (live_range &)): New.
9795         (debug (live_range *)): New.
9796         * lra-int.h
9797         (debug (lra_live_range &)): New.
9798         (debug (lra_live_range *)): New.
9799         * lra-lives.c
9800         (debug (lra_live_range &)): New.
9801         (debug (lra_live_range *)): New.
9802         * omega.c
9803         (debug (omega_pb_d &)): New.
9804         (debug (omega_pb_d *)): New.
9805         * omega.h
9806         (extern debug (omega_pb_d &)): New.
9807         (extern debug (omega_pb_d *)): New.
9808         * print-rtl.c
9809         (debug (const rtx_def &)): New.
9810         (debug (const rtx_def *)): New.
9811         * print-tree.c
9812         (debug_tree (tree): Move within file.
9813         (debug_raw (const tree_node &)): New.
9814         (debug_raw (const tree_node *)): New.
9815         (dump_tree_via_hooks (const tree_node *, int)): New.
9816         (debug (const tree_node &)): New.
9817         (debug (const tree_node *)): New.
9818         (debug_verbose (const tree_node &)): New.
9819         (debug_verbose (const tree_node *)): New.
9820         (debug_head (const tree_node &)): New.
9821         (debug_head (const tree_node *)): New.
9822         (debug_body (const tree_node &)): New.
9823         (debug_body (const tree_node *)): New.
9824         (debug_vec_tree (tree): Move and reimplement in terms of dump.
9825         (debug (vec<tree, va_gc> &)): New.
9826         (debug (vec<tree, va_gc> *)): New.
9827         * rtl.h
9828         (extern debug (const rtx_def &)): New.
9829         (extern debug (const rtx_def *)): New.
9830         * sbitmap.c
9831         (debug_raw (simple_bitmap_def &)): New.
9832         (debug_raw (simple_bitmap_def *)): New.
9833         (debug (simple_bitmap_def &)): New.
9834         (debug (simple_bitmap_def *)): New.
9835         * sbitmap.h
9836         (extern debug (simple_bitmap_def &)): New.
9837         (extern debug (simple_bitmap_def *)): New.
9838         (extern debug_raw (simple_bitmap_def &)): New.
9839         (extern debug_raw (simple_bitmap_def *)): New.
9840         * sel-sched-dump.c
9841         (debug (vinsn_def &)): New.
9842         (debug (vinsn_def *)): New.
9843         (debug_verbose (vinsn_def &)): New.
9844         (debug_verbose (vinsn_def *)): New.
9845         (debug (expr_def &)): New.
9846         (debug (expr_def *)): New.
9847         (debug_verbose (expr_def &)): New.
9848         (debug_verbose (expr_def *)): New.
9849         (debug (vec<rtx> &)): New.
9850         (debug (vec<rtx> *)): New.
9851         * sel-sched-dump.h
9852         (extern debug (vinsn_def &)): New.
9853         (extern debug (vinsn_def *)): New.
9854         (extern debug_verbose (vinsn_def &)): New.
9855         (extern debug_verbose (vinsn_def *)): New.
9856         (extern debug (expr_def &)): New.
9857         (extern debug (expr_def *)): New.
9858         (extern debug_verbose (expr_def &)): New.
9859         (extern debug_verbose (expr_def *)): New.
9860         (extern debug (vec<rtx> &)): New.
9861         (extern debug (vec<rtx> *)): New.
9862         * sel-sched-ir.h
9863         (_list_iter_cond_expr): Make inline instead of static.
9864         * sreal.c
9865         (debug (sreal &)): New.
9866         (debug (sreal *)): New.
9867         * sreal.h
9868         (extern debug (sreal &)): New.
9869         (extern debug (sreal *)): New.
9870         * tree.h
9871         (extern debug_raw (const tree_node &)): New.
9872         (extern debug_raw (const tree_node *)): New.
9873         (extern debug (const tree_node &)): New.
9874         (extern debug (const tree_node *)): New.
9875         (extern debug_verbose (const tree_node &)): New.
9876         (extern debug_verbose (const tree_node *)): New.
9877         (extern debug_head (const tree_node &)): New.
9878         (extern debug_head (const tree_node *)): New.
9879         (extern debug_body (const tree_node &)): New.
9880         (extern debug_body (const tree_node *)): New.
9881         (extern debug (vec<tree, va_gc> &)): New.
9882         (extern debug (vec<tree, va_gc> *)): New.
9883         * tree-cfg.c
9884         (debug (struct loop &)): New.
9885         (debug (struct loop *)): New.
9886         (debug_verbose (struct loop &)): New.
9887         (debug_verbose (struct loop *)): New.
9888         * tree-dump.c: Add header dependence.
9889         * tree-flow.h
9890         (extern debug (struct loop &)): New.
9891         (extern debug (struct loop *)): New.
9892         (extern debug_verbose (struct loop &)): New.
9893         (extern debug_verbose (struct loop *)): New.
9894         * tree-data-ref.c
9895         (debug (data_reference &)): New.
9896         (debug (data_reference *)): New.
9897         (debug (vec<data_reference_p> &)): New.
9898         (debug (vec<data_reference_p> *)): New.
9899         (debug (vec<ddr_p> &)): New.
9900         (debug (vec<ddr_p> *)): New.
9901         * tree-data-ref.h
9902         (extern debug (data_reference &)): New.
9903         (extern debug (data_reference *)): New.
9904         (extern debug (vec<data_reference_p> &)): New.
9905         (extern debug (vec<data_reference_p> *)): New.
9906         (extern debug (vec<ddr_p> &)): New.
9907         (extern debug (vec<ddr_p> *)): New.
9908         * tree-ssa-alias.c
9909         (debug (pt_solution &)): New.
9910         (debug (pt_solution *)): New.
9911         * tree-ssa-alias.h
9912         (extern debug (pt_solution &)): New.
9913         (extern debug (pt_solution *)): New.
9914         * tree-ssa-alias.c
9915         (debug (_var_map &)): New.
9916         (debug (_var_map *)): New.
9917         (debug (tree_live_info_d &)): New.
9918         (debug (tree_live_info_d *)): New.
9919         * tree-ssa-alias.h
9920         (extern debug (_var_map &)): New.
9921         (extern debug (_var_map *)): New.
9922         (extern debug (tree_live_info_d &)): New.
9923         (extern debug (tree_live_info_d *)): New.
9925 2013-03-28  Jan Hubicka  <jh@suse.cz>
9927         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9929 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
9931         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9932         record only when desired or required.
9934 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
9936         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9937         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
9939 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9941         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9942         (*andsi3_compare0_uxtw): New pattern.
9943         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9944         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9946 2013-03-28  Jan Hubicka  <jh@suse.cz>
9948         * data-streamer-in.c (streamer_read_gcov_count): New function.
9949         * gimple-streamer-out.c: Include value-prof.h.
9950         (output_gimple_stmt): Output histogram.
9951         (output_bb): Use streamer_write_gcov_count.
9952         * value-prof.c: Include data-streamer.h
9953         (dump_histogram_value): Add HIST_TYPE_MAX.
9954         (stream_out_histogram_value): New function.
9955         (stream_in_histogram_value): New function.
9956         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9957         (stream_out_histogram_value, stream_in_histogram_value): Declare.
9958         * data-streamer-out.c (streamer_write_gcov_count): New function.
9959         (streamer_write_gcov_count_stream): New function.
9960         * lto-cgraph.c (lto_output_edge): Update counter streaming.
9961         (lto_output_node): Likewise.
9962         (input_node, input_edge): Likewise.
9963         * lto-streamer-out.c (output_cfg): Update streaming.
9964         * lto-streamer-in.c (input_cfg): Likewise.
9965         * data-streamer.h (streamer_write_gcov_count,
9966         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9967         * gimple-streamer-in.c: Include value-prof.h
9968         (input_gimple_stmt): Input histograms.
9969         (input_bb): Update profile streaming.
9971 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9973         * genmodes.c (emit_max_int): New function.
9974         (emit_insn_modes_h): Added call to emit_max_function.
9975         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9976         Added doc.
9977         * machmode.def: Fixed comment.
9979 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
9981         * combine.c (try_combine): Removed useless assert.
9982         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9984 2013-03-28  Marek Polacek  <polacek@redhat.com>
9985             Richard Biener  <rguenther@suse.de>
9987         PR tree-optimization/56695
9988         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9989         build signed result of a vector comparison.
9990         * tree-cfg.c (verify_gimple_comparison): Check that a result
9991         of a vector comparison has signed type.
9993 2013-03-28  Richard Biener  <rguenther@suse.de>
9995         PR tree-optimization/37021
9996         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9997         do not restrict gaps between groups.
9998         * tree-vect-stmts.c (vectorizable_load): Properly account for
9999         a gap between groups.
10001 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10003         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
10004         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
10005         is not enabled.
10007 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
10009         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
10010         * doc/extend.texi (Named Address Spaces): Ditto.
10011         (Variable Attributes): Ditto.
10013 2013-03-27  Kai Tietz  <ktietz@redhat.com>
10015         * config.build: Add support for cygwin x64 target.
10016         * config.gcc: Likewise.
10017         * config.host: Likewise.
10018         * configure.ac: Likewise
10019         * configure: Regenerated.
10021 2013-03-27  Kai Tietz  <ktietz@redhat.com>
10023         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
10024         * config/i386/t-cygwin-w64: New file.
10025         * config/i386/cygwin-w64.h: New file.
10026         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
10027         and add support for x64-cygwin target.
10028         (CPP_SPEC): Likewise.
10029         (CXX_WRAP_SPEC_LIST): Undefine before define.
10030         (LIBGCJ_SONAME): Use 15 as version.
10032 2013-03-27  Richard Biener  <rguenther@suse.de>
10034         PR tree-optimization/56716
10035         * tree-ssa-structalias.c (perform_var_substitution): Adjust
10036         dumping for ref nodes.
10038 2013-03-27  Martin Jambor  <mjambor@suse.cz>
10040         PR tree-optimization/55334
10041         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
10042         restricted pointers to arrays.
10044 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10046         * Makefile.in (.SUFFIXES): Add .cc.
10047         (.c.o): Apply same recipe for implicit rule .cc.o.
10049 2013-03-27  Richard Biener  <rguenther@suse.de>
10051         PR tree-optimization/37021
10052         * tree-vect-data-refs.c (vect_check_strided_load): Allow
10053         REALPART/IMAGPART_EXPRs around the supported refs.
10054         * tree-ssa-structalias.c (find_func_aliases): Assume that
10055         floating-point values are not used to transfer pointers.
10057 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10059         * target.def (TARGET_HAS_IFUNC_P): New target hook.
10060         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
10061         * doc/tm.texi: Regenerate.
10062         * targhooks.h (default_has_ifunc_p): New.
10063         * targhooks.c (default_has_ifunc_p): Ditto.
10064         * config/linux-protos.h: New file.
10065         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
10066         this hook for linux which disables support of indirect functions in
10067         android.
10068         * config/linux-android.c: New file.
10069         * config/t-linux-android.c: Ditto.
10070         * config.gcc: Added new object file linux-android.o.
10071         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
10072         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
10073         * varasm.c (do_assemble_alias): Likewise.
10074         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
10075         doesn't support indirect functions.
10076         * configure: Regenerate.
10078 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
10080         PR target/56102
10081         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
10082         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
10083         mult-word mode.
10085 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10087         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
10089 2013-03-27  Terry Guo  <terry.guo@arm.com>
10091         * config/arm/arm-cores.def: Added core cortex-r7.
10092         * config/arm/arm-tune.md: Regenerated.
10093         * config/arm/arm-tables.opt: Regenerated.
10094         * doc/invoke.texi: Added entry for core cortex-r7.
10096 2013-03-27  Walter Lee  <walt@tilera.com>
10098         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
10099         double-decrement of next_scratch_regno.
10101 2013-03-27  Walter Lee  <walt@tilera.com>
10103         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
10104         input operands.
10105         (insn_v1mulus): Ditto.
10106         (insn_v2muls): Ditto.
10108 2013-03-27  Walter Lee  <walt@tilera.com>
10110         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
10111         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
10113 2013-03-27  Walter Lee  <walt@tilera.com>
10115         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
10116         (*sibcall_value): Ditto.
10118 2013-03-27  Walter Lee  <walt@tilera.com>
10120         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
10121         (insn_mnz_v8qi): ... this ...
10122         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
10123         vector equivalent.
10124         (insn_v<n>mnz): Replaced by ...
10125         (insn_v1mnz): ... this ...
10126         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
10127         equivalent.
10128         (insn_mz_<mode>): Replaced by ...
10129         (insn_mz_v8qi): ... this ...
10130         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
10131         vector equivalent.
10132         (insn_v<n>mz): Replaced by ...
10133         (insn_v1mz): ... this ...
10134         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
10135         equivalent.
10137 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10139         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10141 2013-03-26  Roland McGrath  <mcgrathr@google.com>
10143         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10144         than fprintf with a non-constant, non-format string.
10146 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
10148         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10149         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
10150         operand 0 predicate.
10151         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10152         attribute.  Use general_x64nomem_operand as operand 1 predicate.
10153         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10154         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
10155         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10156         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
10157         (mov<mode>_insv_1): Remove expander.  Merge insn with
10158         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10159         Use general_x64nomem_operand as operand 1 predicate.
10160         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10161         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10162         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
10163         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10164         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
10165         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10166         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
10167         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10168         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
10169         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10170         (general_x64nomem_operand): Ditto.
10172 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10174         * config/rtems.opt: Add -pthread option.
10176 2013-03-26  Richard Biener  <rguenther@suse.de>
10178         * alias.c (find_base_term): Avoid redundant and not used recursion.
10179         (base_alias_check): Get the initial base term from the caller.
10180         (true_dependence_1): Compute and pass base terms to base_alias_check.
10181         (write_dependence_p): Likewise.
10182         (may_alias_p): Likewise.
10184 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
10186         * config/aarch64/aarch64.c (aarch64_classify_address): Support
10187         PC-relative load in SI modes and above only.
10189 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
10191         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
10192         * config/arm/iwmmxt.md (WCGR0): Update.
10193         (WCGR1, WCGR2, WCGR3): Likewise.
10195 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
10197         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10198         Use x64 and nox64 isa attributes.
10200 2013-03-26  Richard Biener  <rguenther@suse.de>
10202         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10203         alignment computations and rely on get_object_alignment_1
10204         for the !TYPE_P case.
10205         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10207 2013-03-26  Walter Lee  <walt@tilera.com>
10209         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10210         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10212 2013-03-25  Jeff Law  <law@redhat.com>
10214         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10215         check for INTEGRAL_TYPE_P that was missing due to checking in
10216         wrong version of prior patch.
10218 2013-03-25  Walter Lee  <walt@tilera.com>
10220         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10221         TILEGX_INSN_SHUFFLEBYTES1.
10222         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10223         shufflebytes1.
10224         (tilegx_builtins): Ditto.
10225         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10227 2013-03-25  Walter Lee  <walt@tilera.com>
10229         * config/tilegx/tilegx.md (floatsisf2): New pattern.
10230         (floatunssisf2): New pattern.
10231         (floatsidf2): New pattern.
10232         (floatunssidf2): New pattern.
10234 2013-03-25  Walter Lee  <walt@tilera.com>
10236         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10237         tests for constraint J, K, N, P.
10239 2013-03-25  Walter Lee  <walt@tilera.com>
10241         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10242         Use indirect/pcrel encoding.
10243         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10244         Ditto.
10246 2013-03-25  Steve Ellcey  <sellcey@mips.com>
10248         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10249         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10250         * config/mips/mips.c (mips_option_override): Set IMADD default.
10251         * config/mips/mips.h (PTF_AVOID_IMADD): New.
10252         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10253         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10254         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10255         * doc/invoke.texi (-mimadd/-mno-imadd): New.
10257 2013-03-25  Jeff Law  <law@redhat.com>
10259         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10260         slightly to avoid creating and folding useless trees.  Simplify
10261         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10263 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
10265         * config/i386/i386.md (*zero_extendsidi2): Merge with
10266         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
10267         * config/i386/predicates.md (x86_64_zext_operand): Rename from
10268         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
10269         targets.  Clarify comment.
10271 2013-03-25  Martin Jambor  <mjambor@suse.cz>
10273         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10274         pass-through jump functions differently.
10275         (ipa_read_jump_function): Likewise.  Also use setter functions to set
10276         up jump functions.
10278 2013-03-25  Martin Jambor  <mjambor@suse.cz>
10280         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10281         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10282         process it.
10283         (ipa_get_indirect_edge_target): New function.
10284         (devirtualization_time_bonus): New parameter known_aggs, pass it to
10285         ipa_get_indirect_edge_target.  Update all callers.
10286         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
10287         ipa_get_indirect_edge_target_1 instead of calling
10288         ipa_get_indirect_edge_target.
10289         (create_specialized_node): Pass aggvlas to
10290         ipcp_discover_new_direct_edges.
10292 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10294         * config/arm/arm.md (f_sels, f_seld): New types.
10295         (*cmov<mode>): New pattern.
10296         * config/arm/predicates.md (arm_vsel_comparison_operator): New
10297         predicate.
10299 2013-03-25  Kai Tietz  <ktietz@redhat.com>
10301         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10302         POSIX-printf for mingw-hosted  builds.
10304 2013-03-25  Richard Biener  <rguenther@suse.de>
10306         PR middle-end/56694
10307         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10308         must-not-throw stmt location.
10310 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10312         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10313         Emit load-acquire versions when acq is true.
10314         (arm_emit_store_exclusive): Add rel parameter.
10315         Emit store-release versions when rel is true.
10316         (arm_split_compare_and_swap): Use acquire-release instructions
10317         instead.
10318         of barriers when appropriate.
10319         (arm_split_atomic_op): Likewise.
10320         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10321         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10322         (VUNSPEC_SLX): Likewise.
10323         (VUNSPEC_LDA): Likewise.
10324         (VUNSPEC_STL): Likewise.
10325         * config/arm/sync.md (atomic_load<mode>): New pattern.
10326         (atomic_store<mode>): Likewise.
10327         (arm_load_acquire_exclusive<mode>): Likewise.
10328         (arm_load_acquire_exclusivesi): Likewise.
10329         (arm_load_acquire_exclusivedi): Likewise.
10330         (arm_store_release_exclusive<mode>): Likewise.
10332 2013-03-25  Catherine Moore  <clm@codesourcery.com>
10334         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10335         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10336         * config/mip/predicates.md (lwsp_swsp_operand,
10337         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10338         sb16_operand, db4_operand, db7_operand, ib3_operand,
10339         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10340         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10341         andi16_operand): New predicates.
10342         * config/mips/mips.md (compression): New attribute.
10343         (enabled): New attribute.
10344         (length): Consider compression in computing length.
10345         (shift_compression): New code attribute.
10346         (*add<mode>3): New operands. Record compression.
10347         (sub<mode>3): Likewise.
10348         (one_cmpl<mode>2): Likewise.
10349         (*and<mode>3): Likewise.
10350         (*ior<mode>3): Likewise.
10351         (unnamed pattern for xor): Likewise.
10352         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10353         (*<optab><mode>3): Likewise.
10354         (*mov<mode>_internal: Likewise.
10355         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10356         (mips_unsigned_immediate_p): New.
10357         (umips_lwsp_swsp_address_p): New.
10358         (m16_based_address_p): New.
10359         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10360         (mips_unsigned_immediate_p): New prototype.
10361         (lwsp_swsp_address_p): New prototype.
10362         (m16_based_address_p): New prototype.
10363         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10364         (mips_signed_immediate_p): New function.
10365         (m16_based_address_p): New function.
10366         (lwsp_swsp_address_p): New function.
10367         (mips_print_operand_punctuation): Recognize short delay slot insns
10368         for microMIPS.add<mode>3"
10370 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10372         PR target/56720
10373         * config/arm/iterators.md (v_cmp_result): New mode attribute.
10374         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10376 2013-03-25  Richard Biener  <rguenther@suse.de>
10378         PR tree-optimization/56689
10379         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10380         any edge.
10382 2013-03-25  Richard Biener  <rguenther@suse.de>
10384         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10385         of bitmap.
10386         (memory_references): Likewise.
10387         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10388         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10389         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10390         (gather_mem_refs_in_loops): Fold into ...
10391         (analyze_memory_references): ... this.  Move initialization
10392         to tree_ssa_lim_initialize.
10393         (fill_always_executed_in): Rename to ...
10394         (fill_always_executed_in_1): ... this.
10395         (fill_always_executed_in): Move contains_call computation to
10396         this new function from ...
10397         (tree_ssa_lim_initialize): ... here.
10398         (tree_ssa_lim): Call fill_always_executed_in.
10400 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
10402         * postreload.c (reload_combine): Fix code detecting returns.
10404 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
10406         * function.c (emit_use_return_register_into_block): On cc0 targets,
10407         do not emit the sequence between cc0 setter and user.
10409 2013-03-25  Kai Tietz  <ktietz@redhat.com>
10411         * config/i386/predicates.md (local_symbolic_operand): Interpret
10412         dll-imported symbols as none-local.
10414 2013-03-25  Richard Biener  <rguenther@suse.de>
10416         * tree-ssa-loop-im.c (struct depend): Remove.
10417         (struct lim_aux_data): Make depends a vec of gimples.
10418         (free_lim_aux_data): Adjust.
10419         (add_dependency): Likewise.
10420         (set_level): Likewise.
10422 2013-03-25  Richard Biener  <rguenther@suse.de>
10424         PR middle-end/56434
10425         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10426         the pointer returned by calls with ECF_MALLOC set.
10428 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
10430         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10432 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
10434         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10435         using MMXMODE mode iterator.
10436         (*move<mode>_internal): Merge with *movv2sf_internal and
10437         *movv2sf_internal_rex64 using MMXMODE mode iterator.
10439 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
10441         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10442         (record_last_mem_set_info): Likewise.
10444         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10445         of XNEWVEC followed by memset.
10446         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10448 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
10450         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10451         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10452         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10453         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10454         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10455         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10456         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10457         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10458         BARRIER_P instead of GET_CODE.
10460 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10462         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10463         inaccuracy in the probing code.
10465         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10466         (ctrapdi4): Likewise.
10468 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10470         * calls.c (expand_call): Add missing guard to code handling return
10471         of non-BLKmode structures in MSB.
10472         * function.c (expand_function_end): Likewise.
10474 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
10476         * combine.c (try_combine): Adjust comment.  Do not add the set of
10477         insn #0 if the destination indirectly is set or dies in insn #2.
10478         Tidy up code to distribute a new note.
10480 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
10482         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10483         also for alternatives 16 and 17.
10485 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
10487         * config/i386/sse.md (*mov<mode>_internal): Merge with
10488         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
10489         Emit insn template depending on type attribute.  Use
10490         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10491         movd instead of movq mnemonic for interunit moves.  Rewrite mode
10492         attribute calculation.  Remove unit attribute calculation.
10493         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10494         Set prefix_data16 attribute for DImode ssemov types.
10495         Use Ym instead of y for SSE-MMX conversion alternatives.
10496         Reorder operand constraints.
10498 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
10500         * df.h (df_insn_delete): Adjust prototype.
10501         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10502         and let it decide whether mark the basic block dirty.
10503         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10504         * df-scan.c (df_insn_info_delete): New helper function, split
10505         off from df_insn_delete.
10506         (df_scan_free_bb_info): Use it.
10507         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10508         Likewise.
10509         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
10510         that the insn is actually an insn and it has a non-NULL basic block.
10511         Do not mark basic block dirty if only deleting a DEBUG_INSN.
10513 2013-03-22  Richard Biener  <rguenther@suse.de>
10515         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10516         dep_ref members.
10517         (mem_ref_alloc): Do not allocate them.
10518         (refs_independent_p): Do not query or maintain a cache.
10520 2013-03-22  Richard Biener  <rguenther@suse.de>
10522         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10523         (gather_mem_refs_in_loops): Do not compute it.
10524         (analyze_memory_references): Do not allocate it.
10525         (tree_ssa_lim_finalize): Do not free it.
10526         (for_all_locs_in_loop): Do not query all_refs_in_loop.
10528 2013-03-22  Richard Biener  <rguenther@suse.de>
10530         * is-a.h (as_a): Use gcc_checking_assert.
10532 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
10534         * config/aarch64/aarch64.c (aarch64_print_operand): New
10535         format specifier for printing a constant in hex.
10536         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10537         format specifier for printing second operand.
10539 2013-03-22  Richard Biener  <rguenther@suse.de>
10541         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10542         bitmaps.
10543         (gather_mem_refs_in_loops): Perform store accumulation here.
10544         (create_vop_ref_mapping_loop): Remove.
10545         (create_vop_ref_mapping): Likewise.
10546         (analyze_memory_references): Initialize refs_stored_in_loop.
10547         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10548         (record_indep_loop): Remove.
10549         (record_dep_loop): New function.
10550         (ref_indep_loop_p_1): Adjust to only walk over references
10551         in the loop, not its subloops.
10552         (ref_indep_loop_p): Rename to ...
10553         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10554         maintaining a more fine-grained cache.
10555         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10556         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10558 2013-03-22  Richard Biener  <rguenther@suse.de>
10560         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10561         (struct mem_ref): Make accesses_in_loop a vec of a vec of
10562         aggregate mem_ref_loc.
10563         (free_mem_ref_locs): Inline into ...
10564         (memref_free): ... this and adjust.
10565         (mem_ref_alloc): Adjust.
10566         (mem_ref_locs_alloc): Remove.
10567         (record_mem_ref_loc): Adjust.
10568         (get_all_locs_in_loop): Rewrite into ...
10569         (for_all_locs_in_loop): ... this iterator.
10570         (rewrite_mem_ref_loc): New functor.
10571         (rewrite_mem_refs): Use for_all_locs_in_loop.
10572         (sm_set_flag_if_changed): New functor.
10573         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10574         (ref_always_accessed): New functor.
10575         (ref_always_accessed_p): Use for_all_locs_in_loop.
10577 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10579         * tree-pass.h (PROP_gimple_lvec): New.
10580         * passes.c (dump_properties): Handle PROP_gimple_lvec.
10581         (init_optimization_passes): Move pass_lower_vector.
10582         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10583         PROP_gimple_lvec.
10584         (pass_lower_vector): Provide PROP_gimple_lvec.
10585         (pass_lower_vector_ssa): Likewise.
10586         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10588 2013-03-21  Mark Wielaard  <mjw@redhat.com>
10590         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10592 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10594         * config/i386/i386.md (*movdi_internal): Disparage slightly
10595         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
10596         conversion alternatives.
10598 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
10600         PR middle-end/48087
10601         * diagnostic.def (DK_WERROR): New kind.
10602         * diagnostic.h (werrorcount): Define.
10603         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10604         promoted to DK_ERROR, increment DK_WERROR counter instead of
10605         DK_ERROR counter.
10606         * toplev.c (toplev_main): Call print_ignored_options even if
10607         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
10608         even if just werrorcount is non-zero.
10610         PR debug/55608
10611         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10612         on failure.
10613         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10614         (string_cst_pool_decl): New function.
10615         (optimize_one_addr_into_implicit_ptr): New function.
10616         (resolve_addr_in_expr): Optimize DWARF location expression
10617         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10618         which doesn't live in memory, but has DW_AT_location or
10619         DW_AT_const_value, or refers to a string literal, into
10620         DW_OP_GNU_implicit_pointer.
10621         (optimize_location_into_implicit_ptr): New function.
10622         (resolve_addr): If removing DW_AT_location of a variable because
10623         it was DW_OP_addr of address of the variable, but the variable doesn't
10624         live in memory, try to emit const value attribute for the initializer.
10626 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10628         * tree.h (VECTOR_TYPE_P): New macro.
10629         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10630         TYPE_MODE): Use it.
10631         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10632         VEC_COND_EXPR cannot be lvalues.
10633         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10635 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
10637         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10638         Restrict the transformation to equal modes.
10640 2013-03-21  Richard Biener  <rguenther@suse.de>
10642         PR tree-optimization/39326
10643         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10644         (MEM_ANALYZABLE): Adjust.
10645         (record_mem_ref_loc): Move bitmap ops ...
10646         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
10647         unanalyzable refs, do not record locations for it.
10648         (analyze_memory_references): Allocate ref zero as shared
10649         unanalyzable ref.
10650         (refs_independent_p): Do not test for unanalyzed mems here.
10651         (ref_indep_loop_p_1): Special-case disambiguation against
10652         the unanalyzed ref.
10653         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10655 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
10657         * config/arm/arm-protos.h (tune_params): Add
10658         prefer_neon_for_64bits field.
10659         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10660         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10661         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10662         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10663         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10664         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10665         (arm_option_override): Handle -mneon-for-64bits new option.
10666         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10667         (prefer_neon_for_64bits): Declare new variable.
10668         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10669         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10670         (arch_enabled): Handle new arch types. Remove support for onlya8
10671         and nota8.
10672         (one_cmpldi2): Use new arch names.
10673         (zero_extend<mode>di2, extend<mode>di2): Ditto.
10674         * config/arm/arm.opt (mneon-for-64bits): Add option.
10675         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10676         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10677         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10678         of onlya8.
10679         * doc/invoke.texi (-mneon-for-64bits): Document.
10681 2013-03-21  Richard Biener  <rguenther@suse.de>
10683         PR tree-optimization/39326
10684         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10685         (sort_bbs_in_loop_postorder_cmp): New function.
10686         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10688 2013-03-21  Richard Biener  <rguenther@suse.de>
10690         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10691         (vect_insert_into_interleaving_chain): Likewise.
10692         (vect_drs_dependent_in_basic_block): Inline ...
10693         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
10694         split out from ...
10695         (vect_analyze_data_ref_dependence): ... here.  Simplify.
10696         (vect_check_interleaving): Simplify.
10697         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
10698         (vect_slp_analyze_data_ref_dependences): ... this new function.
10699         (dr_group_sort_cmp): New function.
10700         (vect_analyze_data_ref_accesses): Compute data-reference groups
10701         here instead of in vect_analyze_data_ref_dependence.  Use
10702         a more efficient algorithm.
10703         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10704         vect_slp_analyze_data_ref_dependences.  Call
10705         vect_analyze_data_ref_accesses earlier.
10706         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10707         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10708         (vect_slp_analyze_data_ref_dependences): New prototype.
10710 2013-03-21  Richard Biener  <rguenther@suse.de>
10712         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10713         ref is stored in the loop.
10714         (find_refs_for_sm): Walk only over all stores.
10715         (store_motion_loop): Allocate from lim_bitmap_obstack.
10716         (store_motion): Likewise.
10718 2013-03-21  Richard Biener  <rguenther@suse.de>
10720         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10721         Update virtual SSA form.
10723 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10725         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10726         * configure: Regenerate.
10727         * config.in: Regenerate.
10728         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10729         if !HAVE_LD_EH_FRAME_CIEV3.
10731 2013-03-21  Richard Biener  <rguenther@suse.de>
10733         * tree-cfg.c (verify_expr_no_block): New function.
10734         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10735         nor DECL_VALUE_EXPR have locations with associated blocks.
10736         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10737         (clear_unused_block_pointer): Remove code dealing with
10738         blocks in DECL_DEBUG_EXPR locations.
10740 2013-03-21  Richard Biener  <rguenther@suse.de>
10742         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10743         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
10744         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10745         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10746         instead of DECL_DEBUG_EXPR_IS_FROM.
10747         * gimplify.c (gimplify_modify_expr): Likewise.
10748         * tree-cfg.c (verify_expr_location_1): Likewise.
10749         * tree-complex.c (create_one_component_var): Likewise.
10750         * tree-sra.c (create_access_replacement): Likewise.
10751         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10752         (clear_unused_block_pointer): Likewise.
10753         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10754         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10755         * var-tracking.c (var_debug_decl): Likewise.
10756         (track_expr_p): Likewise.
10757         * tree-inline.c (add_local_variables): Likewise.  Set
10758         DECL_HAS_DEBUG_EXPR_P after copying it.
10759         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10760         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
10762 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
10764         PR bootstrap/56656
10765         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10766         * configure: Regenerate.
10767         * config.in: Regenerate.
10768         * config/i386/i386.md (*movdf_internal): Use
10769         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10770         movd instead of movq mnemonic for interunit moves.
10771         (*movdi_internal): Ditto.
10773 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10775         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10776         (abd<mode>_3): New pattern.
10777         (aba<mode>_3): New pattern.
10778         (fabd<mode>_3): New pattern.
10780 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10782         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10783         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10784         occurrence of REGISTER_PREFIX as its empty string.
10786 2013-03-20  Jeff Law  <law@redhat.com>
10788         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10789         addititional equivalences for equality comparisons between an SSA_NAME
10790         and a constant where the SSA_NAME was set from a widening conversion.
10792 2013-03-20  Walter Lee  <walt@tilera.com>
10794         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10796 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10798         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10799         depending on type attribute.
10800         (*movti_internal): Ditto.
10801         (*movtf_internal): Ditto.
10802         (*movxf_internal): Ditto.
10803         (*movdf_internal): Ditto.
10804         (*movsf_internal): Ditto.
10806 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
10808         * config/i386/i386.md (*movti_internal): Set prefix attribute to
10809         maybe_vex for sselog1 and ssemov types.
10810         (*movdi_internal): Reorder operand constraints.
10811         (*movsi_internal): Ditto.  Set prefix attribute to
10812         maybe_vex for sselog1 and ssemov types.
10813         (*movtf_internal): Set prefix attribute to maybe_vex
10814         for sselog1 and ssemov types.
10815         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
10816         DImode ssemov types.  Reorder operand constraints.
10817         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
10818         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
10819         attribute for SImode ssemov types.  Reorder operand constraints.
10821 2013-03-20  Martin Jambor  <mjambor@suse.cz>
10823         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10824         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10826 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
10828         * config/rs6000/predicates.md (indexed_address, update_address_mem
10829         update_indexed_address_mem): New predicates.
10830         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10831         attribute for load/store instructions.
10832         * config/rs6000/dfp.md (movsd_store): Likewise.
10833         (movsd_load): Likewise.
10834         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10835         (unnamed HI->DI extend define_insn): Likewise.
10836         (unnamed SI->DI extend define_insn): Likewise.
10837         (unnamed QI->SI extend define_insn): Likewise.
10838         (unnamed QI->HI extend define_insn): Likewise.
10839         (unnamed HI->SI extend define_insn): Likewise.
10840         (unnamed HI->SI extend define_insn): Likewise.
10841         (extendsfdf2_fpr): Likewise.
10842         (movsi_internal1): Likewise.
10843         (movsi_internal1_single): Likewise.
10844         (movhi_internal): Likewise.
10845         (movqi_internal): Likewise.
10846         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10847         attribute for load/store instructions.
10848         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10849         instructions.
10850         (mov<mode>_softfloat): Likewise.
10851         (mov<mode>_hardfloat32): Likewise.
10852         (mov<mode>_hardfloat64): Likewise.
10853         (mov<mode>_softfloat64): Likewise.
10854         (movdi_internal32): Likewise.
10855         (movdi_internal64): Likewise.
10856         (probe_stack_<mode>): Likewise.
10858 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
10860         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10861         floating point, and decimal floating point to reload iterator.
10863         * config/rs6000/constraints.md (wl constraint): New constraints to
10864         return FLOAT_REGS if certain options are used to reduce the number
10865         of separate patterns that exist in the file.
10866         (wx constraint): Likewise.
10867         (wz constraint): Likewise.
10869         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10870         -mdebug=reg, print wg, wl, wx, and wz constraints.
10871         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10872         Initialize the reload functions for 64-bit binary/decimal floating
10873         point types.
10874         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10875         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10876         create the buffer on the stack to overcome not having a 32-bit
10877         load and store.
10878         (rs6000_emit_move): Likewise.
10879         (rs6000_secondary_memory_needed_rtx): Likewise.
10880         (rs6000_alloc_sdmode_stack_slot): Likewise.
10881         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10882         via xxlxor, just like DFmode 0.0.
10884         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10885         define as 1 if we are running on a power7 or newer.
10886         (enum r6000_reg_class_enum): Add new constraints.
10888         * config/rs6000/dfp.md (movsd): Delete, combine with binary
10889         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10890         with other moves by using conditional constraits (wg).  Use LFIWZX
10891         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
10892         (movsd splitter): Likewise.
10893         (movsd_hardfloat): Likewise.
10894         (movsd_softfloat): Likewise.
10896         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10897         binary and decimal floating point moves.
10898         (fmove_ok): New attributes to combine binary and decimal floating
10899         point moves, and to combine power6x (mfpgpr) moves along normal
10900         floating moves.
10901         (real_value_to_target): Likewise.
10902         (f32_lr): Likewise.
10903         (f32_lm): Likewise.
10904         (f32_li): Likewise.
10905         (f32_sr): Likewise.
10906         (f32_sm): Likewise.
10907         (f32_si): Likewise.
10908         (movsf): Combine binary and decimal floating point moves.  Combine
10909         power6x (mfpgpr) moves with other moves by using conditional
10910         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
10911         (mov<mode> for SFmode/SDmode); Likewise.
10912         (SFmode/SDmode splitters): Likewise.
10913         (movsf_hardfloat): Likewise.
10914         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10915         (movsf_softfloat): Likewise.
10916         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10918         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10919         wx and wz constraints.
10921         * config/rs6000/constraints.md (wg constraint): New constraint to
10922         return FLOAT_REGS if -mmfpgpr (power6x) was used.
10924         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10925         constraint.
10927         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10928         -mdebug=reg, print wg, wl, wx, and wz constraints.
10929         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10930         Initialize the reload functions for 64-bit binary/decimal floating
10931         point types.
10932         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10933         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10934         create the buffer on the stack to overcome not having a 32-bit
10935         load and store.
10936         (rs6000_emit_move): Likewise.
10937         (rs6000_secondary_memory_needed_rtx): Likewise.
10938         (rs6000_alloc_sdmode_stack_slot): Likewise.
10939         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10940         via xxlxor, just like DFmode 0.0.
10942         * config/rs6000/dfp.md (movdd): Delete, combine with binary
10943         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
10944         with other moves by using conditional constraits (wg).  Use LFIWZX
10945         and STFIWX for loading SDmode on power7.
10946         (movdd splitters): Likewise.
10947         (movdd_hardfloat32): Likewise.
10948         (movdd_softfloat32): Likewise.
10949         (movdd_hardfloat64_mfpgpr): Likewise.
10950         (movdd_hardfloat64): Likewise.
10951         (movdd_softfloat64): Likewise.
10953         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10954         64-bit binary and decimal floating point moves.
10955         (FMOVE64X): Likewise.
10956         (movdf): Combine 64-bit binary and decimal floating point moves.
10957         Combine power6x (mfpgpr) moves with other moves by using
10958         conditional constraits (wg).
10959         (mov<mode> for DFmode/DDmode): Likewise.
10960         (DFmode/DDmode splitters): Likewise.
10961         (movdf_hardfloat32): Likewise.
10962         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10963         (movdf_softfloat32): Likewise.
10964         (movdf_hardfloat64_mfpgpr): Likewise.
10965         (movdf_hardfloat64): Likewise.
10966         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10967         (movdf_softfloat64): Likewise.
10968         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10969         (reload_<mode>_load): Move to later in the file so they aren't in
10970         the middle of the floating point move insns.
10971         (reload_<mode>_store): Likewise.
10973         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10974         constraint.
10976         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10977         constraint if -mdebug=reg.
10978         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10979         Enable using dd reload support if needed.
10981         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10982         binary and decimal floating point moves in rs6000.md.
10983         (movtd_internal): Likewise.
10985         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10986         decimal floating point moves.
10987         (movtf): Likewise.
10988         (movtf_internal): Likewise.
10989         (mov<mode>_internal, TDmode/TFmode): Likewise.
10990         (movtf_softfloat): Likewise.
10991         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10993         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10994         movdi_internal64, using wg constraint for move direct operations.
10995         (movdi_internal64): Likewise.
10997         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10998         MODES_TIEABLE_P for selected modes.  Print the numerical value of
10999         the various virtual registers. Use GPR/FPR first/last values,
11000         instead of hard coding the register numbers.  Print which modes
11001         have reload functions registered.
11002         (rs6000_option_override_internal): If -mdebug=reg, trace the options
11003         settings before/after setting cpu, target and subtarget settings.
11004         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
11005         and for secondary reload failures in rs6000_secondary_reload_inner.
11006         (rs6000_secondary_reload_fail): Likewise.
11007         (rs6000_secondary_reload_inner): Likewise.
11009         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
11010         macros for first/last GPR and FPR registers.
11011         (LAST_GPR_REGNO): Likewise.
11012         (FIRST_FPR_REGNO): Likewise.
11013         (LAST_FPR_REGNO): Likewise.
11015         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
11016         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
11017         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
11018         (vcond<mode><mode>): Likewise.
11019         (vcondu<mode><mode>): Likewise.
11020         (vector_gtu<mode>): Likewise.
11021         (vector_gte<mode>): Likewise.
11022         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
11023         to prevent the compiler from converting DImode operations to TImode.
11024         (ior<mode>3): Likewise.
11025         (and<mode>3): Likewise.
11026         (one_cmpl<mode>2): Likewise.
11027         (nor<mode>3): Likewise.
11028         (andc<mode>3): Likewise.
11030         * config/rs6000/constraints.md (wt constraint): New constraint
11031         that returns VSX_REGS if TImode is allowed in VSX registers.
11033         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
11034         constant under VSX.
11036         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
11037         similar to TImode, but it is restricted to being in the GPRs.
11039         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
11040         TImode to occupy a single VSX register.
11042         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
11043         -mvsx-timode for power7/power8.
11044         (power7 cpu): Likewise.
11045         (power8 cpu): Likewise.
11047         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
11048         sure that TFmode/TDmode take up two registers if they are ever
11049         allowed in the upper VSX registers.
11050         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
11051         registers.
11052         (rs6000_init_hard_regno_mode_ok): Likewise.
11053         (rs6000_debug_reg_global): Add debugging for PTImode and wt
11054         constraint.  Print if LRA is turned on.
11055         (rs6000_option_override_internal): Give an error if -mvsx-timode
11056         and VSX is not enabled.
11057         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
11058         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
11059         to reg+offset addressing.  Use PTImode when checking offset
11060         addresses for validity.
11061         (reg_offset_addressing_ok_p): Likewise.
11062         (rs6000_legitimate_offset_address_p): Likewise.
11063         (rs6000_legitimize_address): Likewise.
11064         (rs6000_legitimize_reload_address): Likewise.
11065         (rs6000_legitimate_address_p): Likewise.
11066         (rs6000_eliminate_indexed_memrefs): Likewise.
11067         (rs6000_emit_move): Likewise.
11068         (rs6000_secondary_reload): Likewise.
11069         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
11070         reloads to fpr registers to continue to use reg+offset addressing,
11071         but 64-bit reloads to altivec registers need reg+reg addressing.
11072         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
11073         it.  Treat LO_SUM like a PLUS operation.
11074         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
11075         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
11076         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
11077         registers to share a register with a smaller sized type, since VSX
11078         puts scalars in the upper 64-bits.
11079         (print_operand): Add support for PTImode.
11080         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
11081         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
11082         registers, but don't have arithmetic support.
11083         (rs6000_memory_move_cost): Add test for VSX.
11084         (rs6000_opt_masks): Add -mvsx-timode.
11086         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
11087         for TImode.
11088         (VSs): Likewise.
11089         (VSr): Use wt constraint for TImode.
11090         (VSv): Drop TImode support.
11091         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
11092         (vsx_movti_64bit): Likewise.
11093         (vsx_movti_32bit): Likewise.
11094         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
11095         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
11096         one '?' on the appropriate output constraint.  Do not allow TImode
11097         logical operations on 32-bit systems.
11098         (vsx_ior<mode>3): Likewise.
11099         (vsx_xor<mode>3): Likewise.
11100         (vsx_one_cmpl<mode>2): Likewise.
11101         (vsx_nor<mode>3): Likewise.
11102         (vsx_andc<mode>3): Likewise.
11103         (vsx_concat_<mode>): Likewise.
11104         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
11106         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
11107         OPTION_MASK_VSX_TIMODE.
11108         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
11109         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
11111         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
11112         (TI2 iterator): New iterator for TImode, PTImode.
11113         (wd mode attribute): Add values for vector types.
11114         (movti_string): Replace TI move operations with operations for TImode
11115         and PTImode.  Add support for TImode being allowed in VSX registers.
11116         (mov<mode>_string, TImode/PTImode): Likewise.
11117         (movti_ppc64): Likewise.
11118         (mov<mode>_ppc64, TImode/PTImode): Likewise.
11119         (TI mode splitters): Likewise.
11121         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
11122         constraint.
11124 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
11126         PR tree-optimization/56355
11127         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
11128         Also handle integers with undefined overflow.
11130 2013-03-20  Catherine Moore  <clm@codesourcery.com>
11131             Maciej W. Rozycki  <macro@codesourcery.com>
11132             Tom de Vries  <tom@codesourcery.com>
11133             Nathan Sidwell <nathan@codesourcery.com>
11134             Iain Sandoe  <iain@codesourcery.com>
11135             Nathan Froyd  <froydnj@codesourcery.com>
11136             Chao-ying Fu <fu@mips.com>
11138         * doc/extend.texi: (micromips, nomicromips, nocompression):
11139         Document new function attributes.
11140         * doc/invoke.texi (minterlink-compressed, mmicromips,
11141         m14k, m14ke, m14kec): Document new options.
11142         (minterlink-mips16): Update documentation.
11143         * doc/md.texi (ZC, ZD): Document new constraints.
11144         * configure.ac (gcc_cv_as_micromips): Check if linker
11145         supports the .set micromips directive.
11146         * configure: Regenerate.
11147         * config.in: Regenerate.
11148         * config/mips/mips-tables.opt: Regenerate.
11149         * config/mips/micromips.md: New file.
11150         * constraints.md (ZC, ZD): New constraints.
11151         * config/mips/predicates.md (movep_src_register): New predicate.
11152         (movep_src_operand): New predicate.
11153         (non_volatile_mem_operand): New predicate.
11154         * config/mips/mips.md (multimem): New type.
11155         (length): Differentiate between 17-bit and 18-bit branch offsets.
11156         (MOVEP1, MOVEP2): New mode iterator.
11157         (mov_<load>l): Use ZC constraint.
11158         (mov_<load>r): Likewise.
11159         (mov_<store>l): Likewise.
11160         (mov_<store>r): Likewise.
11161         (*branch_equality<mode>_inverted): Add microMIPS support.
11162         (*branch_equality<mode>): Likewise.
11163         (*jump_absolute): Likewise.
11164         (indirect_jump_<mode>): Likewise.
11165         (tablejump_<mode>): Likewise.
11166         (<optab>_internal): Likewise.
11167         (sibcall_internal): Likewise.
11168         (sibcall_value_internal): Likewise.
11169         (prefetch): Use constraint ZD.
11170         * config/mips/mips.opt (minterlink-compressed): New option.
11171         (minterlink-mips16): Now an alias for minterlink-compressed.
11172         (mmicromips): New option.
11173         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11174         (compare_and_swap_12): Likewise.
11175         (sync_add<mode>): Likewise.
11176         (sync_<optab>_12): Likewise.
11177         (sync_old_<optab>_12): Likewise.
11178         (sync_new_<optab>_12): Likewise.
11179         (sync_nand_12): Likewise.
11180         (sync_old_nand_12): Likewise.
11181         (sync_new_nand_12): Likewise.
11182         (sync_sub<mode>): Likewise.
11183         (sync_old_add<mode>): Likewise.
11184         (sync_old_sub<mode>): Likewise.
11185         (sync_new_add<mode>): Likewise.
11186         (sync_new_sub<mode>): Likewise.
11187         (sync_<optab><mode>): Likewise.
11188         (sync_old_<optab><mode>): Likewise.
11189         (sync_new_<optab><mode>): Likewise.
11190         (sync_nand<mode>): Likewise.
11191         (sync_old_nand<mode>): Likewise.
11192         (sync_new_nand<mode>): Likewise.
11193         (sync_lock_test_and_set<mode>): Likewise.
11194         (test_and_set_12): Likewise.
11195         (atomic_compare_and_swap<mode>): Likewise.
11196         (atomic_exchange<mode>_llsc): Likewise.
11197         (atomic_fetch_add<mode>_llsc): Likewise.
11198         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11199         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11200         (umips_save_restore_pattern_p): Likewise.
11201         (umips_load_store_pair_p): Likewise.
11202         (umips_output_load_store_pair): Likewise.
11203         (umips_movep_target_p): Likewise.
11204         (umips_12bit_offset_address_p): Likewise.
11205         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11206         (mips_base_mips16): Rename this...
11207         (mips_base_compression_flags): ...to this. Update all uses.
11208         (mips_attribute_table): Add micromips, nomicromips and nocompression.
11209         (mips_mips16_decl_p): Delete.
11210         (mips_nomips16_decl_p): Delete.
11211         (mips_get_compress_on_flags): New function.
11212         (mips_get_compress_off_flags): New function.
11213         (mips_get_compress_mode): New function.
11214         (mips_get_compress_on_name): New function.
11215         (mips_get_compress_off_name): New function.
11216         (mips_insert_attributes): Support multiple compression types.
11217         (mips_merge_decl_attributes): Likewise.
11218         (umips_12bit_offset_address_p): New function.
11219         (mips_start_function_definition): Emit .set micromips directive.
11220         (mips_call_may_need_jalx_p): New function.
11221         (mips_function_ok_for_sibcall): Add microMIPS support.
11222         (mips_print_operand_punctuation): Support short delay slots and
11223         compact jumps.
11224         (umips_swm_mask, umips_swm_encoding): New.
11225         (umips_build_save_restore): New function.
11226         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11227         (was_mips16_p): Remove.
11228         (old_compression_mode): New.
11229         (mips_set_compression_mode): New function.
11230         (mips_set_current_function): Add microMIPS support.
11231         (mips_option_override): Likewise.
11232         (umips_save_restore_pattern_p): New function.
11233         (umips_output_save_restore): New function.
11234         (umips_load_store_pair_p_1): New function.
11235         (umips_load_store_pair_p): New function.
11236         (umips_output_load_store_pair_1): New function.
11237         (umips_output_load_store_pair): New function.
11238         (umips_movep_target_p) New function.
11239         (mips_prepare_pch_save): Add microMIPS support.
11240         * config/mips/mips.h (TARGET_COMPRESSION): New.
11241         (TARGET_CPU_CPP_BUILTINS): Update macro
11242         to use new compression flags and to support microMIPS.
11243         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11244         (MIPS_ARCH_FLOAT_SPEC): Likewise.
11245         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11246         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11247         (ASM_SPEC): Support mmicromips and mno-micromips.
11248         (M16STORE_REG_P): New macro.
11249         (MIPS_CALL): Support TARGET_MICROMIPS.
11250         (MICROMIPS_J): New macro.
11251         (mips_base_mips16): Rename this...
11252         (mips_base_compression_flags): ...to this.
11253         (UMIPS_12BIT_OFFSET_P): New macro.
11254         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11255         (MULTILIB_DIRNAMES): Likewise.
11256 2013-03-20  Richard Biener  <rguenther@suse.de>
11258         PR tree-optimization/56661
11259         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11260         the result does not have to be distinct.
11262 2013-03-20  Richard Biener  <rguenther@suse.de>
11264         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11265         remap_gimple_op_r.
11267 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11268             Steven Bosscher <steven@gcc.gnu.org>
11270         PR rtl-optimization/56605
11271         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11273 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
11275         PR bootstrap/56656
11276         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11277         that require movd instead of movq.
11279 2013-03-20  Richard Biener  <rguenther@suse.de>
11281         * tree-ssa-structalias.c (struct variable_info): Add pointer
11282         to the first field of an aggregate with sub-vars.  Make
11283         this and the pointer to the next subfield its ID.
11284         (vi_next): New function.
11285         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11286         storedanything_id, integer_id): Increment by one.
11287         (new_var_info, get_call_vi, lookup_call_clobber_vi,
11288         get_call_clobber_vi): Adjust.
11289         (solution_set_expand): Simplify and speedup.
11290         (solution_set_add): Inline into ...
11291         (set_union_with_increment): ... this.  Adjust accordingly.
11292         (do_sd_constraint): Likewise.
11293         (do_ds_constraint): Likewise.
11294         (do_complex_constraint): Simplify.
11295         (build_pred_graph): Adjust.
11296         (solve_graph): Likewise.  Simplify and speedup.
11297         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11298         get_constraint_for_component_ref, get_constraint_for_1,
11299         first_vi_for_offset, first_or_preceding_vi_for_offset,
11300         create_function_info_for, create_variable_info_for_1,
11301         create_variable_info_for, intra_create_variable_infos): Adjust.
11302         (init_base_vars): Push NULL for ID zero.
11303         (compute_points_to_sets): Adjust.
11305 2013-03-20  Richard Biener  <rguenther@suse.de>
11307         * cfgloop.c (verify_loop_structure): Streamline and avoid
11308         ICEing on corrupt loop tree.
11309         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11310         loop tree.
11312 2013-03-20  Richard Biener  <rguenther@suse.de>
11314         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11315         check whether an SSA update is needed.
11317 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
11319         * config/mips/constraints.md (T): Rename to...
11320         (Yf): ...this.
11321         (U): Rename to...
11322         (Yd): ...this.
11323         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11324         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11326 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
11328         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11329         (*subsi3_carryin_uxtw): Likewise.
11331 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
11333         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11334         (*rorsi3_insn_uxtw): Likewise.
11336 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
11338         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11339         (*extrsi5_insn_uxtw): Likewise.
11341 2013-03-19  Richard Biener  <rguenther@suse.de>
11343         PR tree-optimization/56273
11344         * passes.c (init_optimization_passes): Move second VRP after DOM.
11346 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
11348         * config/i386/i386.md (*movti_internal): Merge from
11349         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
11350         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
11351         nox64 isa attributes.
11353 2013-03-18  Richard Biener  <rguenther@suse.de>
11355         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11356         (unite): Likewise.
11357         (merge_node_constraints): Likewise.
11358         (build_succ_graph): Likewise.
11359         (valid_graph_edge): Inline into single caller.
11360         (unify_nodes): Likewise.  Use bitmap_set_bit return value
11361         and cache varinfo.
11362         (scc_visit): Fix formatting and variable use.
11363         (do_sd_constraint): Use gcc_checking_assert.
11364         (do_ds_constraint): Likewise.
11365         (do_complex_constraint): Likewise.
11366         (condense_visit): Likewise.  Cleanup.
11367         (dump_pred_graph): New function.
11368         (perform_var_substitution): Dump the pred-graph before
11369         variable substitution.
11370         (find_equivalent_node): Use gcc_checking_assert.
11371         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11373 2013-03-18  Richard Biener  <rguenther@suse.de>
11375         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11376         Remove cond_expr_stmt_list argument and do not gimplify the
11377         built expression.
11378         (vect_loop_versioning): Adjust.
11379         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11380         Cleanup to use less temporaries.
11381         (vect_create_data_ref_ptr): Cleanup.
11383 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
11385         PR tree-optimization/56635
11386         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11387         require types_compatible_p types.
11389 2013-03-18  Nick Clifton  <nickc@redhat.com>
11391         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11392         spurious backslash.
11394         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11395         Add missing line to comment describing function.
11397 2013-03-18  Richard Biener  <rguenther@suse.de>
11399         PR tree-optimization/56210
11400         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11401         Handle string / character search functions.
11402         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11404 2013-03-18  Richard Biener  <rguenther@suse.de>
11406         PR middle-end/56483
11407         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11408         and implement properly.
11409         * gimple.h (gimple_cond_single_var_p): Remove.
11411 2013-03-18  Richard Biener  <rguenther@suse.de>
11413         * tree-data-ref.h (find_data_references_in_loop): Declare.
11414         * tree-data-ref.c (get_references_in_stmt): Use a stack
11415         vector pre-allocated in the callers.
11416         (find_data_references_in_stmt): Adjust.
11417         (graphite_find_data_references_in_stmt): Likewise.
11418         (create_rdg_vertices): Likewise.
11419         (find_data_references_in_loop): Export.
11420         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11421         Compute dependences here...
11422         (vect_analyze_data_refs): ...not here.  When we encounter
11423         a non-vectorizable data reference in basic-block vectorization
11424         truncate the data reference vector.  Do not bother to
11425         fixup data-dependence information for gather loads.
11426         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11427         of data references, as reported.
11429 2013-03-18  Richard Biener  <rguenther@suse.de>
11431         PR tree-optimization/3713
11432         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
11433         has_constants and expr.
11434         (stmt_has_constants): Properly valueize SSA names when deciding
11435         whether the stmt has constants.
11437 2013-03-18  Richard Biener  <rguenther@suse.de>
11439         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11440         whole function when there is nothing to do.
11441         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11442         * tree-vectorizer.c (vectorize_loops): Update virtual and
11443         loop-closed SSA once.
11444         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11446 2013-03-18  Richard Biener  <rguenther@suse.de>
11448         PR middle-end/56113
11449         * domwalk.c (bb_postorder): New global static.
11450         (cmp_bb_postorder): New function.
11451         (walk_dominator_tree): Replace scheme imposing an order for
11452         visiting dominator sons by one sorting them at the time they
11453         are pushed on the stack.
11455 2013-03-18  Richard Biener  <rguenther@suse.de>
11457         PR tree-optimization/39326
11458         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11459         (struct mem_ref): Replace mem member with ao_ref typed member.
11460         (MEM_ANALYZABLE): Adjust.
11461         (memref_eq): Likewise.
11462         (mem_ref_alloc): Likewise.
11463         (gather_mem_refs_stmt): Likewise.
11464         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11465         (execute_sm_if_changed_flag_set): Adjust.
11466         (execute_sm): Likewise.
11467         (ref_always_accessed_p): Likewise.
11468         (refs_independent_p): Likewise.
11469         (can_sm_ref_p): Likewise.
11471 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
11473         PR c/56566
11474         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11475         return 1 even for !unsignedp.
11477 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
11479         * config/i386/i386.md (isa): Add x64 and nox64.
11480         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11481         (*pushtf): Enable *roF alternative for x64 isa only.
11482         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
11483         mode attribute of integer alternatives to DImode for TARGET_64BIT.
11484         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
11485         (*movtf_internal): Merge from *movtf_internal_rex64 and
11486         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
11487         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
11488         nox64 isa attributes.
11489         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
11490         nox64 isa attributes.
11491         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11493 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
11495         * config/alpha/alpha.c (TARGET_LRA_P): New define.
11497 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
11499         PR target/56640
11500         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11501         class names.  Remove trailing comma after "ALL_REGS".
11503 2013-03-16  Jan Hubicka  <jh@suse.cz>
11505         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11506         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11507         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11508         of cgraph_get_create_node.
11509         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11511 2013-03-16  Jason Merrill  <jason@redhat.com>
11513         PR debug/49090
11514         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11515         with DW_AT_default_value.
11517 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
11519         * BASE-VER: Set to 4.9.0.
11521 2013-03-14  Andi Kleen  <ak@linux.intel.com>
11523         PR target/56619
11524         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11525         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11526         Document _x* TSX intrinsics.
11528 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
11529             David Holsgrove  <david.holsgrove@xilinx.com>
11531         * configure.ac: Add MicroBlaze TLS support detection.
11532         * configure: Regenerate.
11533         * config/microblaze/microblaze-protos.h
11534         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11535         symbol_mentioned_p, label_mentioned_p): Add prototypes.
11536         * config/microblaze/microblaze.c (microblaze_address_type): Add
11537         ADDRESS_TLS and tls_reloc address types.
11538         (microblaze_address_info): Add tls_reloc.
11539         (TARGET_HAVE_TLS): Define.
11540         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11541          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11542          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11543         load_tls_operand,  microblaze_call_tls_get_addr,
11544         microblaze_legitimize_tls_address): New functions.
11545         (microblaze_classify_unspec): Handle UNSPEC_TLS.
11546         (get_base_reg): Use microblaze_tls_symbol_p.
11547         (microblaze_classify_address): Handle TLS.
11548         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11549         label_mentioned_p and microblaze_tls_referenced_p.
11550         (microblaze_legitimize_address): Handle TLS.
11551         (microblaze_address_insns): Handle ADDRESS_TLS.
11552         (pic_address_needs_scratch): Handle TLS.
11553         (print_operand_address): Handle TLS.
11554         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11555         (microblaze_expand_move): Handle TLS.
11556         (microblaze_legitimate_constant_p): Check
11557         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11558         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11559         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11560         (PIC_OFFSET_TABLE_REGNUM): Set.
11561         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11562         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11563         (addsi3, movsi_internal2, movdf_internal): Update constraints
11564         * config/microblaze/predicates.md (arith_plus_operand): Define
11565         (move_operand): Redefine as move_src_operand,
11566         check microblaze_tls_referenced_p.
11568 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11570         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11571         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11573 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
11575         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11576         CC mode for AND.
11578 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
11580         PR tree-optimization/53265
11581         * common.opt (Waggressive-loop-optimizations): New option.
11582         * tree-ssa-loop-niter.c: Include tree-pass.h.
11583         (do_warn_aggressive_loop_optimizations): New function.
11584         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
11585         if number_of_latch_executions returned constant.
11586         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11587         early.  If number_of_latch_executions returned constant, set
11588         nb_iterations_upper_bound back to it.
11589         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11590         field.
11591         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11592         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11594         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11595         (MULTILIB_OSDIRNAMES): Set.
11596         * genmultilib: If defaultosdirname doesn't start with :: , set
11597         defaultosdirname2 instead, clear it and emit two . multilib_raw
11598         entries instead of just one.
11600 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
11602         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11603         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11604         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11605         (SUBTARGET_OVERRIDE_OPTIONS): New.
11607 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
11609         PR target/49880
11610         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11611         (musermode): Convert to Var(TARGET_USERMODE).
11612         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11613         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11614         * config/sh/sh.c (sh_option_override): Use
11615         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11616         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11617         condition.
11618         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11619         TARGET_SH4.
11620         (udivsi3_i4_single, divsi3_i4_single): Use
11621         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11623 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
11625         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11626         default setting.
11628 2013-03-13  Richard Biener  <rguenther@suse.de>
11630         PR tree-optimization/56608
11631         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11632         calls when vectorizing basic-blocks.
11634 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
11636         PR plugins/45078
11637         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11638         tm_file.
11640 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
11642         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11644 2013-03-11  Jan Hubicka  <jh@suse.cz>
11646         PR lto/56557
11647         * lto-streamer-out.c (output_symbol_p): Skip references from
11648         constructors of external variables.
11650 2013-03-11  Jan Hubicka  <jh@suse.cz>
11652         PR middle-end/56571
11653         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11654         from pseudos.
11655         * emit-rtl.c (verify_rtx_sharing): Likewise.
11656         (copy_insn_1): Likewise.
11657         * rtl.c (copy_rtx): Likewise.
11659 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
11661         PR target/56591
11662         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11663         output_operand_lossage message.
11665 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
11667         PR target/56470
11668         * arm.c (shift_op): Validate RTL pattern on the fly.
11669         (arm_print_operand, case 'S'): Don't use shift_operator to validate
11670         the RTL.
11672 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11674         PR target/56347
11675         * config/pa/pa.md (call_value): Check for calls to powf and direct to
11676         new call patterns that clobber %fr12.
11677         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11678         split and postreload patterns.
11679         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11680         registers %fr12 and %fr12R as call used.
11682 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
11684         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11685         (canon_address, record_store, replace_read, check_mem_read_rtx,
11686         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11687         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11688         rest_of_handle_dse): Likewise.
11690 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
11692         PR middle-end/56524
11693         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11694         Add base_optabs.
11695         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11696         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11697         (save_optabs_if_changed): Replace with...
11698         (init_tree_optimization_optabs): ...this.
11699         * optabs.c (save_optabs_if_changed): Rename to...
11700         (init_tree_optimization_optabs): ...this.  Take the optimization node
11701         as argument.  Do nothing if the base optabs are already correct.
11702         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11703         to recompute optabs.
11704         * function.h (function): Remove optabs field.
11705         * function.c (invoke_set_current_function_hook): Call
11706         init_tree_optimization_optabs.  Use the result to initialize
11707         this_fn_optabs.
11709 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
11711         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11712         if GTMA_HAS_NO_INSTRUMENTATION.
11713         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11714         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11715         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11716         * gimple-pretty-print.c (dump_gimple_transaction): Handle
11717         GTMA_HAS_NO_INSTRUMENTATION.
11719 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
11721         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11722         libasan_preinit.o.
11724 2013-03-08  Marek Polacek  <polacek@redhat.com>
11725             Jakub Jelinek  <jakub@redhat.com>
11727         PR tree-optimization/56478
11728         * predict.c (is_comparison_with_loop_invariant_p): Change the
11729         type of loop_step to tree.
11730         (predict_loops): Adjust.
11731         (predict_iv_comparison): Perform the computations on double_ints.
11733 2013-03-08  Richard Biener  <rguenther@suse.de>
11735         PR tree-optimization/56570
11736         * tree-cfg.c (verify_expr_location_1): Verify locations for
11737         DECL_DEBUG_EXPR.
11738         * tree-sra.c (create_access_replacement): Strip locations
11739         from DECL_DEBUG_EXPRs.
11741 2013-03-08  Richard Biener  <rguenther@suse.de>
11743         * tree-inline.c (expand_call_inline): Do not associate
11744         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11745         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11747 2013-03-08  Richard Biener  <rguenther@suse.de>
11749         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11750         or block changes with -Og.  Fix for location / block encoding
11751         changes and PHI arguments with locations.
11753 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
11755         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11756         for all counters.
11757         (struct output_info): Likewise.
11758         (register_overhead): Remove bad gcc_assert.
11759         (bitmap_find_bit): If there is only a single bitmap element, do not
11760         count a miss as a search.
11761         (print_statistics): Update for counter type changes.
11762         (dump_bitmap_statistics): Likewise.  Print headers such that they
11763         are properly lined up with the printed counters.
11765 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
11767         PR tree-optimization/56559
11768         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11769         check that it has only a single use.
11771 2013-03-07  Richard Biener  <rguenther@suse.de>
11773         * doc/invoke.texi (fwhole-program): Discourage use in combination
11774         with -flto.
11776 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
11778         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11780         PR tree-optimization/56539
11781         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11782         instead of GSI_CONTINUE_LINKING as last argument to
11783         force_gimple_operand_gsi.  Adjust function comment.
11785         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11786         aarch64-cores.def.
11788         PR middle-end/56548
11789         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11790         promoted mode, convert the result back to the original mode.
11792 2013-03-06  Richard Biener  <rguenther@suse.de>
11794         PR middle-end/56294
11795         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11796         (insert_updated_phi_nodes_compare_uids): New function.
11797         (update_ssa): Sort symbols_to_rename after UID before
11798         traversing it to insert PHI nodes.
11800 2013-03-06  Richard Biener  <rguenther@suse.de>
11802         PR middle-end/50494
11803         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11804         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11806         Revert
11807         2013-02-13  Richard Biener  <rguenther@suse.de>
11809         PR lto/50494
11810         * varasm.c (output_constant_def_1): Get the decl representing
11811         the constant as argument.
11812         (output_constant_def): Wrap output_constant_def_1.
11813         (make_decl_rtl): Use output_constant_def_1 with the decl
11814         representing the constant.
11815         (build_constant_desc): Optionally re-use a decl already
11816         representing the constant.
11817         (tree_output_constant_def): Adjust.
11819 2013-03-06  Joey Ye  <joey.ye@arm.com>
11821         PR lto/50293
11822         * gcc.c (convert_white_space): New function.
11823         (main): Handles white space in function name.
11825 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
11827         PR target/56529
11828         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11829         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
11830         to SH_DIV_CALL_TABLE for TARGET_SH2.
11831         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11832         list.
11833         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11834         call-table options.
11836 2013-03-05  Sterling Augustine  <saugustine@google.com>
11837             Cary Coutant  <ccoutant@google.com>
11839         PR debug/55364
11840         * dwarf2out.c (resolve_addr): Don't call
11841         remove_loc_list_addr_table_entries a second time for the same
11842         expression.
11844 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11846         PR debug/56510
11847         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11848         (avoid_complex_debug_insns): New function.
11849         (expand_debug_locations): Call it.
11851         PR rtl-optimization/56484
11852         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11853         lifetimes of hard registers on small register class machines.
11855 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11857         * config/microblaze/microblaze-protos.h: Rename
11858         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11859         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11860         fast_interrupt.
11861         (microblaze_fast_interrupt_function_p): New function.
11862         (microblaze_is_interrupt_handler): Rename to
11863         microblaze_is_interrupt_variant and add fast_interrupt check.
11864         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11865         (save_restore_insns): Likewise.
11866         (compute_frame_size): Likewise.
11867         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11868         (microblaze_globalize_label): Likewise.
11869         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11870         * config/microblaze/microblaze.md: Use wrapper
11871         microblaze_is_interrupt_variant.
11873 2013-03-05  Kai Tietz  <ktietz@redhat.com>
11875         * sdbout.c (sdbout_one_type): Switch to current function's section
11876         supporting cold/hot.
11878 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
11880         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11881         -mxl-reorder.
11883 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11885         PR middle-end/56461
11886         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11887         if VALGRIND_GET_VBITS is defined, temporarily make object
11888         memory all defined, and restore previous valgrind addressability
11889         and definability afterwards.  Free this_object at the end.
11891         PR middle-end/56461
11892         * lra.c (lra): Call lra_clear_live_ranges if live_p,
11893         right before calling lra_create_live_ranges, also call it
11894         when clearing live_p.  Only call lra_clear_live_ranges
11895         at the end if live_p.
11897         PR middle-end/56461
11898         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11900 2013-03-05  Richard Biener  <rguenther@suse.de>
11902         PR tree-optimization/56521
11903         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11904         value-id.
11906 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
11908         PR c++/55135
11909         * except.h (remove_unreachable_eh_regions): New prototype.
11910         * except.c (remove_eh_handler_splicer): New function, split out
11911         of remove_eh_handler.
11912         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
11913         warning about running it on many EH regions one at a time.
11914         (remove_unreachable_eh_regions_worker): New function, walk the
11915         EH tree in depth-first order and remove non-marked regions.
11916         (remove_unreachable_eh_regions): New function.
11917         * tree-eh.c (mark_reachable_handlers): New function, split out
11918         from remove_unreachable_handlers.
11919         (remove_unreachable_handlers): Use mark_reachable_handlers and
11920         remove_unreachable_eh_regions.
11921         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11922         and remove_unreachable_eh_regions.
11924 2013-03-05  Richard Biener  <rguenther@suse.de>
11926         PR middle-end/56525
11927         * loop-init.c (fix_loop_structure): Remove loops in two stages,
11928         not freeing them until the end.
11930 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11932         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11934 2013-03-05  Richard Biener  <rguenther@suse.de>
11936         PR tree-optimization/56270
11937         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11938         of loads after scheduling an SLP instance.
11940 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11942         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11943         tic6x.exp.
11944         (check_gcc_parallelize): Run guality.exp as a separate job from
11945         vect.exp with unsorted.exp and $(dg_target_exps) separately from
11946         struct-layout-1.exp with stackalign.exp.
11948         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11950         PR middle-end/56461
11951         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11952         load_index sbitmap even if some bit in it isn't set.
11954         PR middle-end/56461
11955         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11956         (discover_iteration_bound_by_body_walk): Change queues to
11957         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
11958         spelling in comment.  Call safe_push on queues[bound_index] directly.
11959         Release queues[queue_index] in every iteration unconditionally.
11960         Release bounds vector.
11962         PR middle-end/56461
11963         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11964         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11965         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11966         inner_phis vector.
11968 2013-03-05  Richard Biener  <rguenther@suse.de>
11970         PR lto/56515
11971         * tree-inline.c (remap_blocks_to_null): New function.
11972         (expand_call_inline): When expanding a call stmt without
11973         an associated block inline remap all callee blocks to NULL.
11975 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
11977         PR rtl-optimization/56494
11978         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11979         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11980         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11982         PR middle-end/56461
11983         * sel-sched-ir.c (free_sched_pools): Release
11984         succs_info_pool.stack[succs_info_pool.max_top] vectors too
11985         if succs_info_pool.max_top isn't -1.
11987         PR bootstrap/56509
11988         * opts.c (opts_obstack, opts_concat): Moved to...
11989         * opts-common.c (opts_obstack, opts_concat): ... here.
11991 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
11993         PR middle-end/56461
11994         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11996 2013-03-04  Martin Jambor  <mjambor@suse.cz>
11998         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11999         all appropriate places.
12001 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
12003         PR tree-optimization/56424
12004         * ipa-split.c (split_function): Do not set the RSO flag if result is
12005         not by reference and its type is a register type.
12007 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
12009         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
12010         (microblaze_legitimate_pic_operand): Likewise
12011         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
12012         new function microblaze_legitimate_pic_operand
12013         * config/microblaze/microblaze-protos.h
12014         (microblaze_legitimate_pic_operand): Declare.
12016 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12018         * config/microblaze/predicates.md (call_insn_simple_operand):
12019         New predicate for supported rtx code types.
12020         * config/microblaze/microblaze.md (call_internal1): Use
12021         call_insn_simple_operand predicate.
12023 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
12025         PR middle-end/56461
12026         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
12027         partitions.ordered_remove.
12029         PR middle-end/56461
12030         * tree-vect-stmts.c (vectorizable_conversion): Don't call
12031         vec_oprnds0.create (1) for modifier == NONE.
12033         PR middle-end/56461
12034         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
12035         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
12036         vec_oprnds1 right before pushing anything to it for
12037         scalar_shift_arg.
12039         PR middle-end/56461
12040         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
12041         set nbbs to 0 instead of having separate code path.
12042         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
12043         instead of false as last argument if returning NULL.
12045 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
12047         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
12048         the attribute is now called "target" instead of "option".
12049         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
12050         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
12051         attribute/pragma name for TARGET_OPTION_VALID_P and
12052         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
12053         * doc/tm.texi: Regenerated.
12055 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
12057         * config/microblaze/microblaze.c:
12058         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
12059         * config/microblaze/microblaze.h: Add -mxl-reorder to
12060         DRIVER_SELF_SPECS.
12061         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
12062         instructions emitted if TARGET_REORDER.
12063         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
12064         or 0 for -m/-mno case, but initialises as 2 to detect default use case
12065         separately.
12067 2013-03-01  Xinliang David Li  <davidxl@google.com>
12069         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
12070         walk length.
12072 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
12074         PR middle-end/56461
12075         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
12076         vector even when returning true.  Fix up function comment formatting.
12078         PR middle-end/56461
12079         * ira-build.c (ira_loop_nodes_count): New variable.
12080         (create_loop_tree_nodes): Initialize it.
12081         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
12083         PR middle-end/56461
12084         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
12085         method on dr_chain and result_chain.
12086         * tree-vect-stmts.c (vectorizable_store): Only call
12087         result_chain.create if j == 0.
12089         PR middle-end/56461
12090         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
12091         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
12092         before overwriting it.
12094 2013-03-01  Tobias Burnus  <burnus@net-b.de>
12096         * doc/extended.texi (C Extensions): Change order in @menu
12097         to match @node.
12098         (Other MIPS Built-in Functions): Move last MIPS entry before
12099         "picoChip Built-in Functions".
12100         (SH Built-in Functions): Move after RX Built-in Functions.
12101         * doc/gcc.texi (Introduction): Change order in @menu
12102         to match @node.
12103         * doc/md.texi (Constraints): Ditto.
12104         * gty.texi (Type Information): Ditto.
12105         (User-provided marking routines for template types): Make
12106         subsection.
12107         * doc/invoke.texi (AArch64 Options): Move before
12108         "Adapteva Epiphany Options".
12110 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
12111             Jakub Jelinek  <jakub@redhat.com>
12113         PR sanitizer/56454
12114         * asan.c (gate_asan): Lookup no_sanitize_address instead of
12115         no_address_safety_analysis attribute.
12116         * doc/extend.texi (no_address_safety_attribute): Rename to
12117         no_sanitize_address attribute, mention no_address_safety_analysis
12118         attribute as deprecated alias.
12120 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
12122         PR middle-end/56461
12123         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
12124         type to vec<vec<tree> > *.
12125         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
12126         to be vec<tree> instead of vec<tree> *, set vec_defs
12127         to vNULL and call vec_defs.create (number_of_vects), adjust other
12128         uses of vec_defs.
12129         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
12130         vectorizable_condition): Adjust vect_get_slp_defs callers.
12132 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
12134         * config/aarch64/aarch64.c
12135         (aarch64_float_const_representable): Remove unused variable.
12137 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
12139         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12141 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
12143         * config/aarch64/aarch64-builtins.c
12144         (aarch64_init_simd_builtins): Make static.
12146 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
12148         * config/aarch64/aarch64.c
12149         (aarch64_simd_make_constant): Make static.
12151 2013-02-28  Martin Jambor  <mjambor@suse.cz>
12153         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12154         with no initialization to the RHS of debug statements.
12156 2013-02-28  Martin Jambor  <mjambor@suse.cz>
12158         PR tree-optimization/56294
12159         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12160         Adjust dumping.
12161         (get_access_replacement): Do not call create_access_replacement.
12162         Assert a replacement exists.
12163         (get_repl_default_def_ssa_name): Create the replacement declaration
12164         itself.
12166 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12168         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12169         final_end_function.
12171 2013-02-28  Marek Polacek  <polacek@redhat.com>
12173         PR rtl-optimization/56466
12174         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12175         if we're changing a loop.
12176         (peel_loops_completely): Likewise.
12178 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
12180         PR c++/55813
12181         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12183 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
12185         PR target/56445
12186         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12187         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12188         INTX_FTYPE_FX, FX_FTYPE_INTX.
12189         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12191 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
12193         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12194         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12195         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12196         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12197         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12198         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12199         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12200         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12201         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12202         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12203         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12204         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12205         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12206         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12207         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12208         (avrxmega6): Increase max flash segments from 5 to 6.
12209         * config/avr/t-multilib: Regenerate.
12210         * config/avr/avr-tables.opt: Regenerate.
12211         * doc/avr-mmcu.texi: Regenerate.
12213 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
12215         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12216         (avr_device_to_arch): Rename to avr_device_to_ld.
12217         (avr_device_to_as): New prototype.
12218         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12219         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12220         * config/avr/driver-avr.c (avr_device_to_as): New.
12221         (avr_device_to_arch): Rename to avr_device_to_ld.
12223 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
12225         PR middle-end/56461
12226         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12227         method on dr_chain and result_chain.
12229         PR middle-end/56461
12230         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12231         pointer_set_destroy on not_executed_last_iteration.
12233         PR middle-end/56461
12234         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12236         PR middle-end/56461
12237         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12238         FOR_EACH_DEFINED_FUNCTION when freeing state.
12240         PR middle-end/56461
12241         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12242         pool_free.
12243         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12244         overwriting it.
12246         PR middle-end/56461
12247         * ipa-cp.c (decide_whether_version_node): Call vec_free on
12248         known_aggs[i].items and release known_aggs vector.
12250         PR middle-end/56461
12251         * ipa-reference.c (propagate): Free node_info even for alias nodes.
12253 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12255         * config/microblaze/microblaze.c (microblaze_emit_compare):
12256         Use xor for EQ/NE comparisions.
12257         * config/microblaze/microblaze.md (cstoresf4): Add constraints
12258         (cbranchsf4): Adjust operator to comparison_operator.
12260 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
12262         PR middle-end/56461
12263         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12264         vector.
12265         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12266         vec_safe_push, always update *slot.
12267         (redirect_edge_var_map_clear): Use vec_free.
12268         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12269         (free_var_map_entry): Use vec_free.
12270         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12271         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12273 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
12275         PR middle-end/45472
12276         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12277         when the may_trap_p bit of the exprs being merged differs.
12278         Reorder tests for speculativeness in the logical and operator.
12280 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
12282         * incpath.c (add_standard_paths): Use reconcat instead of concat
12283         where appropriate and avoid leaking memory.
12285         * opts.h: Include obstack.h.
12286         (opts_concat): New prototype.
12287         (opts_obstack): New declaration.
12288         * opts.c (opts_concat): New function.
12289         (opts_obstack): New variable.
12290         (init_options_struct): Call gcc_init_obstack on opts_obstack.
12291         (finish_options): Use opts_concat instead of concat
12292         and XOBNEWVEC instead of XNEWVEC.
12293         * opts-common.c (generate_canonical_option, decode_cmdline_option,
12294         generate_option): Likewise.
12295         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12296         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12298         PR target/56455
12299         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12300         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12302 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
12304         PR middle-end/56461
12305         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12307 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
12309         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12310         (arm_block_move_unaligned_straight): Likewise.
12311         (arm_adjust_block_mem): Likewise.
12313 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
12315         PR target/48901
12316         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12317         temp, cond and label.
12318         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12320         PR target/52500
12321         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12322         * config/c6x/c6x.h (dbx_register_map): Update declaration.
12324         PR target/52501
12325         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12326         of prologue/epilogue functions.
12328         PR target/52550
12329         * config/tilegx/tilegx.c (tilegx_expand_prologue):
12330         Remove unused variable cfa_offset.
12331         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12333         PR target/54639
12334         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12335         type promotion to unsigned.
12337         PR target/54640
12338         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12339         for HOST_WIDE_INT of 32 bit / same size as int.
12340         (arm_block_move_unaligned_straight): Likewise.
12341         (arm_adjust_block_mem): Likewise.
12343         PR target/54662
12344         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12345         ALL_CFLAGS.
12347 2013-02-26  Marek Polacek  <polacek@redhat.com>
12349         PR tree-optimization/56426
12350         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12352 2013-02-26  Richard Biener  <rguenther@suse.de>
12354         PR target/56444
12355         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12356         unused variable loops.
12358 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
12360         PR tree-optimization/56448
12361         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12362         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12363         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12364         later operands of the references, or even first operand for
12365         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12367         PR tree-optimization/56443
12368         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12369         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12370         to type_for_mode langhook.
12372 2013-02-25  Matt Turner  <mattst88@gmail.com>
12374         * doc/invoke.texi: Document r4700.
12376 2013-02-25  Richard Biener  <rguenther@suse.de>
12378         PR tree-optimization/56175
12379         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12380         split out from ...
12381         (simplify_bitwise_binary): ... here.  Also guard the conversion
12382         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12384 2013-02-25  Catherine Moore  <clm@codesourcery.com>
12386         Revert:
12387         2013-02-24  Catherine Moore  <clm@codesourcery.com>
12388             Maciej W. Rozycki  <macro@codesourcery.com>
12389             Tom de Vries  <tom@codesourcery.com>
12390             Nathan Sidwell  <nathan@codesourcery.com>
12391             Iain Sandoe  <iain@codesourcery.com>
12392             Nathan Froyd  <froydnj@codesourcery.com>
12393             Chao-ying Fu  <fu@mips.com>
12395         * doc/extend.texi: (micromips, nomicromips, nocompression):
12396         Document new function attributes.
12397         * doc/invoke.texi (minterlink-compressed, mmicromips,
12398         m14k, m14ke, m14kec): Document new options.
12399         (minterlink-mips16): Update documentation.
12400         * doc/md.texi (ZC, ZD): Document new constraints.
12401         * configure.ac (gcc_cv_as_micromips): Check if linker
12402         supports the .set micromips directive.
12403         * configure: Regenerate.
12404         * config.in: Regenerate.
12405         * config/mips/mips-tables.opt: Regenerate.
12406         * config/mips/micromips.md: New file.
12407         * constraints.md (ZC, AD): New constraints.
12408         * config/mips/predicates.md (movep_src_register): New predicate.
12409         (movep_src_operand): New predicate.
12410         (non_volatile_mem_operand): New predicate.
12411         * config/mips/mips.md (multimem): New type.
12412         (length): Differentiate between 17-bit and 18-bit branch offsets.
12413         (MOVEP1, MOVEP2): New mode iterator.
12414         (mov_<load>l): Use ZC constraint.
12415         (mov_<load>r): Likewise.
12416         (mov_<store>l): Likewise.
12417         (mov_<store>r): Likewise.
12418         (*branch_equality<mode>_inverted): Add microMIPS support.
12419         (*branch_equality<mode>): Likewise.
12420         (*jump_absolute): Likewise.
12421         (indirect_jump_<mode>): Likewise.
12422         (tablejump_<mode>): Likewise.
12423         (<optab>_internal): Likewise.
12424         (sibcall_internal): Likewise.
12425         (sibcall_value_internal): Likewise.
12426         (prefetch): Use constraint ZD.
12427         * config/mips/mips.opt (minterlink-compressed): New option.
12428         (minterlink-mips16): Now an alias for minterlink-compressed.
12429         (mmicromips): New option.
12430         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12431         (compare_and_swap_12): Likewise.
12432         (sync_add<mode>): Likewise.
12433         (sync_<optab>_12): Likewise.
12434         (sync_old_<optab>_12): Likewise.
12435         (sync_new_<optab>_12): Likewise.
12436         (sync_nand_12): Likewise.
12437         (sync_old_nand_12): Likewise.
12438         (sync_new_nand_12): Likewise.
12439         (sync_sub<mode>): Likewise.
12440         (sync_old_add<mode>): Likewise.
12441         (sync_old_sub<mode>): Likewise.
12442         (sync_new_add<mode>): Likewise.
12443         (sync_new_sub<mode>): Likewise.
12444         (sync_<optab><mode>): Likewise.
12445         (sync_old_<optab><mode>): Likewise.
12446         (sync_new_<optab><mode>): Likewise.
12447         (sync_nand<mode>): Likewise.
12448         (sync_old_nand<mode>): Likewise.
12449         (sync_new_nand<mode>): Likewise.
12450         (sync_lock_test_and_set<mode>): Likewise.
12451         (test_and_set_12): Likewise.
12452         (atomic_compare_and_swap<mode>): Likewise.
12453         (atomic_exchange<mode>_llsc): Likewise.
12454         (atomic_fetch_add<mode>_llsc): Likewise.
12455         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12456         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12457         (umips_save_restore_pattern_p): Likewise.
12458         (umips_load_store_pair_p): Likewise.
12459         (umips_output_load_store_pair): Likewise.
12460         (umips_movep_target_p): Likewise.
12461         (umips_12bit_offset_address_p): Likewise.
12462         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12463         (mips_base_mips16): Rename this...
12464         (mips_base_compression_flags): ...to this. Update all uses.
12465         (mips_attribute_table): Add micromips, nomicromips and nocompression.
12466         (mips_mips16_decl_p): Delete.
12467         (mips_nomips16_decl_p): Delete.
12468         (mips_get_compress_on_flags): New function.
12469         (mips_get_compress_off_flags): New function.
12470         (mips_get_compress_mode): New function.
12471         (mips_get_compress_on_name): New function.
12472         (mips_get_compress_off_name): New function.
12473         (mips_insert_attributes): Support multiple compression types.
12474         (mips_merge_decl_attributes): Likewise.
12475         (umips_12bit_offset_address_p): New function.
12476         (mips_start_function_definition): Emit .set micromips directive.
12477         (mips_call_may_need_jalx_p): New function.
12478         (mips_function_ok_for_sibcall): Add microMIPS support.
12479         (mips_print_operand_punctuation): Support short delay slots and
12480         compact jumps.
12481         (umips_swm_mask, umips_swm_encoding): New.
12482         (umips_build_save_restore): New function.
12483         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12484         (was_mips16_p): Remove.
12485         (old_compression_mode): New.
12486         (mips_set_compression_mode): New function.
12487         (mips_set_current_function): Add microMIPS support.
12488         (mips_option_override): Likewise.
12489         (umips_save_restore_pattern_p): New function.
12490         (umips_output_save_restore): New function.
12491         (umips_load_store_pair_p_1): New function.
12492         (umips_load_store_pair_p): New function.
12493         (umips_output_load_store_pair_1): New function.
12494         (umips_output_load_store_pair): New function.
12495         (umips_movep_target_p) New function.
12496         (mips_prepare_pch_save): Add microMIPS support.
12497         * config/mips/mips.h (TARGET_COMPRESSION): New.
12498         (TARGET_CPU_CPP_BUILTINS): Update macro
12499         to use new compression flags and to support microMIPS.
12500         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12501         (MIPS_ARCH_FLOAT_SPEC): Likewise.
12502         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12503         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12504         (ASM_SPEC): Support mmicromips and mno-micromips.
12505         (M16STORE_REG_P): New macro.
12506         (MIPS_CALL): Support TARGET_MICROMIPS.
12507         (MICROMIPS_J): New macro.
12508         (mips_base_mips16): Rename this...
12509         (mips_base_compression_flags): ...to this.
12510         (UMIPS_12BIT_OFFSET_P): New macro.
12511         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12512         (MULTILIB_DIRNAMES): Likewise.
12514 2013-02-25  Tom de Vries  <tom@codesourcery.com>
12516         PR rtl-optimization/56131
12517         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12518         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12519         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12521 2013-02-25  Tobias Burnus  <burnus@net-b.de>
12523         * doc/invoke.texi (-fsanitize=): Move from optimization
12524         to debugging options.
12526 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12528         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12530 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
12531             Alexander Monakov  <amonakov@ispras.ru>
12533         PR middle-end/56077
12534         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12535         flush pending lists also on non-jumps.  Adjust comment.
12537 2013-02-24  Catherine Moore  <clm@codesourcery.com>
12538             Maciej W. Rozycki  <macro@codesourcery.com>
12539             Tom de Vries  <tom@codesourcery.com>
12540             Nathan Sidwell  <nathan@codesourcery.com>
12541             Iain Sandoe  <iain@codesourcery.com>
12542             Nathan Froyd  <froydnj@codesourcery.com>
12543             Chao-ying Fu  <fu@mips.com>
12545         * doc/extend.texi: (micromips, nomicromips, nocompression):
12546         Document new function attributes.
12547         * doc/invoke.texi (minterlink-compressed, mmicromips,
12548         m14k, m14ke, m14kec): Document new options.
12549         (minterlink-mips16): Update documentation.
12550         * doc/md.texi (ZC, ZD): Document new constraints.
12551         * configure.ac (gcc_cv_as_micromips): Check if linker
12552         supports the .set micromips directive.
12553         * configure: Regenerate.
12554         * config.in: Regenerate.
12555         * config/mips/mips-tables.opt: Regenerate.
12556         * config/mips/micromips.md: New file.
12557         * constraints.md (ZC, AD): New constraints.
12558         * config/mips/predicates.md (movep_src_register): New predicate.
12559         (movep_src_operand): New predicate.
12560         (non_volatile_mem_operand): New predicate.
12561         * config/mips/mips.md (multimem): New type.
12562         (length): Differentiate between 17-bit and 18-bit branch offsets.
12563         (MOVEP1, MOVEP2): New mode iterator.
12564         (mov_<load>l): Use ZC constraint.
12565         (mov_<load>r): Likewise.
12566         (mov_<store>l): Likewise.
12567         (mov_<store>r): Likewise.
12568         (*branch_equality<mode>_inverted): Add microMIPS support.
12569         (*branch_equality<mode>): Likewise.
12570         (*jump_absolute): Likewise.
12571         (indirect_jump_<mode>): Likewise.
12572         (tablejump_<mode>): Likewise.
12573         (<optab>_internal): Likewise.
12574         (sibcall_internal): Likewise.
12575         (sibcall_value_internal): Likewise.
12576         (prefetch): Use constraint ZD.
12577         * config/mips/mips.opt (minterlink-compressed): New option.
12578         (minterlink-mips16): Now an alias for minterlink-compressed.
12579         (mmicromips): New option.
12580         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12581         (compare_and_swap_12): Likewise.
12582         (sync_add<mode>): Likewise.
12583         (sync_<optab>_12): Likewise.
12584         (sync_old_<optab>_12): Likewise.
12585         (sync_new_<optab>_12): Likewise.
12586         (sync_nand_12): Likewise.
12587         (sync_old_nand_12): Likewise.
12588         (sync_new_nand_12): Likewise.
12589         (sync_sub<mode>): Likewise.
12590         (sync_old_add<mode>): Likewise.
12591         (sync_old_sub<mode>): Likewise.
12592         (sync_new_add<mode>): Likewise.
12593         (sync_new_sub<mode>): Likewise.
12594         (sync_<optab><mode>): Likewise.
12595         (sync_old_<optab><mode>): Likewise.
12596         (sync_new_<optab><mode>): Likewise.
12597         (sync_nand<mode>): Likewise.
12598         (sync_old_nand<mode>): Likewise.
12599         (sync_new_nand<mode>): Likewise.
12600         (sync_lock_test_and_set<mode>): Likewise.
12601         (test_and_set_12): Likewise.
12602         (atomic_compare_and_swap<mode>): Likewise.
12603         (atomic_exchange<mode>_llsc): Likewise.
12604         (atomic_fetch_add<mode>_llsc): Likewise.
12605         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12606         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12607         (umips_save_restore_pattern_p): Likewise.
12608         (umips_load_store_pair_p): Likewise.
12609         (umips_output_load_store_pair): Likewise.
12610         (umips_movep_target_p): Likewise.
12611         (umips_12bit_offset_address_p): Likewise.
12612         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12613         (mips_base_mips16): Rename this...
12614         (mips_base_compression_flags): ...to this. Update all uses.
12615         (mips_attribute_table): Add micromips, nomicromips and nocompression.
12616         (mips_mips16_decl_p): Delete.
12617         (mips_nomips16_decl_p): Delete.
12618         (mips_get_compress_on_flags): New function.
12619         (mips_get_compress_off_flags): New function.
12620         (mips_get_compress_mode): New function.
12621         (mips_get_compress_on_name): New function.
12622         (mips_get_compress_off_name): New function.
12623         (mips_insert_attributes): Support multiple compression types.
12624         (mips_merge_decl_attributes): Likewise.
12625         (umips_12bit_offset_address_p): New function.
12626         (mips_start_function_definition): Emit .set micromips directive.
12627         (mips_call_may_need_jalx_p): New function.
12628         (mips_function_ok_for_sibcall): Add microMIPS support.
12629         (mips_print_operand_punctuation): Support short delay slots and
12630         compact jumps.
12631         (umips_swm_mask, umips_swm_encoding): New.
12632         (umips_build_save_restore): New function.
12633         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12634         (was_mips16_p): Remove.
12635         (old_compression_mode): New.
12636         (mips_set_compression_mode): New function.
12637         (mips_set_current_function): Add microMIPS support.
12638         (mips_option_override): Likewise.
12639         (umips_save_restore_pattern_p): New function.
12640         (umips_output_save_restore): New function.
12641         (umips_load_store_pair_p_1): New function.
12642         (umips_load_store_pair_p): New function.
12643         (umips_output_load_store_pair_1): New function.
12644         (umips_output_load_store_pair): New function.
12645         (umips_movep_target_p) New function.
12646         (mips_prepare_pch_save): Add microMIPS support.
12647         * config/mips/mips.h (TARGET_COMPRESSION): New.
12648         (TARGET_CPU_CPP_BUILTINS): Update macro
12649         to use new compression flags and to support microMIPS.
12650         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12651         (MIPS_ARCH_FLOAT_SPEC): Likewise.
12652         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12653         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12654         (ASM_SPEC): Support mmicromips and mno-micromips.
12655         (M16STORE_REG_P): New macro.
12656         (MIPS_CALL): Support TARGET_MICROMIPS.
12657         (MICROMIPS_J): New macro.
12658         (mips_base_mips16): Rename this...
12659         (mips_base_compression_flags): ...to this.
12660         (UMIPS_12BIT_OFFSET_P): New macro.
12661         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12662         (MULTILIB_DIRNAMES): Likewise.
12664 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
12666         PR target/52555
12667         * target-globals.c (save_target_globals): For init_reg_sets and
12668         target_reinit remporarily set this_fn_optabs to this_target_optabs.
12670 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
12672         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12673         * config/aarch64/t-aarch64
12674         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12676 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
12678         PR inline-asm/56148
12679         * lra-constraints.c (process_alt_operands): Reload operand
12680         conflicting with earlier clobber only if no more other conflicting
12681         operands.
12683 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
12685         PR sanitizer/56393
12686         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12687         if not linking a shared library.
12689 2013-02-22  Seth LaForge  <sethml@google.com>
12691         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12693 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
12695         * config/arm/arm.md (split for extendsidi): Update condition.
12696         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12697         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12698         (qhs_zextenddi_cstr): Likewise.
12700 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12702         PR middle-end/56420
12703         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12704         avoid signed wrapping.
12705         (expand_mult): Handle properly multiplication by
12706         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
12707         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
12708         in the compiler if coeff is HOST_WIDE_INT_MIN.
12709         (expand_divmod): Don't make ext_op1 static, change it's type to
12710         uhwi.  Avoid undefined behavior in -INTVAL (op1).
12712         PR rtl-optimization/50339
12713         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12714         field.
12715         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12716         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12717         into splitting_ashiftrt field.
12718         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12719         ASHIFTRT.
12720         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12721         choices.
12723 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
12725         PR middle-end/56108
12726         * trans-mem.c (execute_tm_mark): Do not expand transactions that
12727         are sure to go irrevocable.
12729 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
12731         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12732         scalars are valid operands.
12734 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12736         PR tree-optimization/56310
12737         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12738         only matching indices and non-negative final offsets.
12739         (intersect_aggregates_with_edge): Pass src_idx to
12740         agg_replacements_to_vector.  Pass src_idx insstead of index to
12741         intersect_with_agg_replacements.
12743 2013-02-21  Martin Jambor  <mjambor@suse.cz>
12745         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12746         instead of hard-wired defaults.
12748 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
12750         * doc/invoke.texi (MIPS Options): Update documentation of the
12751         floating-point multiply-accumulate instruction restrictions.
12753 2013-02-21  Kostya Serebryany  <kcc@google.com>
12755         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12756         asan_shadow_offset on x86_64 linux.
12758 2013-02-21  Richard Biener  <rguenther@suse.de>
12760         PR tree-optimization/56415
12761         Revert
12762         2013-02-11  Richard Biener  <rguenther@suse.de>
12764         PR tree-optimization/56273
12765         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12766         first VRP run.
12768 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
12770         PR bootstrap/56258
12771         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12772         instead of @itemx.
12774         PR inline-asm/56405
12775         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12776         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12778 2013-02-20  Jan Hubicka  <jh@suse.cz>
12780         PR tree-optimization/56265
12781         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12782         when target is referenced for first time.
12784 2013-02-20  Richard Biener  <rguenther@suse.de>
12786         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12787         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12788         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12789         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12790         not return anything.
12791         (rename_ssa_copies): Do not remove unused locals.
12792         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12793         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12794         * passes.c (execute_function_todo): Do not schedule unused locals
12795         removal if cleanup_tree_cfg did something.
12796         * tree-ssa-live.c (remove_unused_locals): Dump statistics
12797         about the number of removed locals.
12799 2013-02-20  Richard Biener  <rguenther@suse.de>
12801         PR tree-optimization/56398
12802         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12804 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12806         PR tree-optimization/55334
12807         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12808         restricted pointers to arrays.
12810 2013-02-20  Richard Biener  <rguenther@suse.de>
12811             Jakub Jelinek  <jakub@redhat.com>
12813         PR tree-optimization/56396
12814         * tree-ssa-ccp.c (n_const_val): New static variable.
12815         (get_value): Return NULL for SSA names we don't have a lattice
12816         entry for.
12817         (ccp_initialize): Initialize n_const_val.
12818         * tree-ssa-copy.c (n_copy_of): New static variable.
12819         (init_copy_prop): Initialize n_copy_of.
12820         (get_value): Return NULL_TREE for SSA names we don't have a
12821         lattice entry for.
12823 2013-02-20  Martin Jambor  <mjambor@suse.cz>
12825         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12827 2013-02-20  Richard Biener  <rguenther@suse.de>
12829         * genpreds.c (write_lookup_constraint): Do not compare first
12830         letter of the constraint again.
12832 2013-02-20  Richard Biener  <rguenther@suse.de>
12834         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12835         and ceil_log2.
12836         (get_use_iv_cost): Terminate hashtable walk when coming across
12837         an empty entry.
12839 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
12841         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12842         reassociation for avx2 targets.
12844 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12846         * config/microblaze/microblaze.c: microblaze_has_clz = 0
12847         Add version check for v8.10.a to enable microblaze_has_clz
12848         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12849         version and TARGET_PATTERN_COMPARE check
12850         * config/microblaze/microblaze.md: New clzsi2 instruction
12852 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12854         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12855         function before branching.
12857 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12859         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12860         DUMP_INSN_RTX_UID.
12861         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12863 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
12865         PR middle-end/55889
12866         * sel-sched.c: Include ira.h.
12867         (implicit_clobber_conflict_p): New function.
12868         (moveup_expr): Use it.
12869         * Makefile.in (sel-sched.o): Depend on ira.h.
12871 2013-02-19  Richard Biener  <rguenther@suse.de>
12873         PR tree-optimization/56384
12874         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12875         (vn_hash_type): Split out from ...
12876         (vn_hash_constant_with_type): ... here.
12877         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12878         (vn_phi_eq): Compare types from vn_phi_s structure.
12879         (vn_phi_lookup): Populate vn_phi_s type.
12880         (vn_phi_insert): Likewise.
12882 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
12884         PR tree-optimization/56350
12885         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12886         if haven't found reduction or nested cycle operand, rather than
12887         asserting we must find it.
12889         PR tree-optimization/56381
12890         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12891         to fold_build3.
12893 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
12894             Jakub Jelinek  <jakub@redhat.com>
12896         PR target/52555
12897         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12898         (swap_optab_enable): Same.
12899         (init_all_optabs): Use argument instead of global.
12900         * tree.h (struct tree_optimization_option): New field target_optabs.
12901         * expr.h (init_all_optabs): Add argument to prototype.
12902         (TREE_OPTIMIZATION_OPTABS): New.
12903         (save_optabs_if_changed): Protoize.
12904         * optabs.h: Declare this_fn_optabs.
12905         * optabs.c (save_optabs_if_changed): New.
12906         Declare this_fn_optabs.
12907         (init_optabs): Add argument to init_all_optabs() call.
12908         * function.c (invoke_set_current_function_hook): Handle per
12909         function optabs.
12910         * function.h (struct function): New field optabs.
12911         * config/mips/mips.c (mips_set_mips16_mode): Handle when
12912         optimization_current_node has changed.
12913         * target-globals.h (save_target_globals_default_opts): Protoize.
12914         * target-globals.c (save_target_globals_default_opts): New.
12916 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12918         PR target/56347
12919         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12920         registers %fr12 and %fr12R as call used.
12922         PR target/56214
12923         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12924         and HImode, require all displacements to be an integer multiple of
12925         their mode size.
12926         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12927         only allow QImode and HImode when reload is in progress and strict is
12928         true.  Likewise for symbolic addresses.  Use base14_operand to check
12929         displacements in REG+BASE addresses.
12931 2013-02-18  Richard Biener  <rguenther@suse.de>
12933         PR tree-optimization/56366
12934         * tree-vect-loop.c (get_initial_def_for_induction): Properly
12935         handle sign-conversion of outer-loop initial induction value.
12937 2013-02-18  Richard Biener  <rguenther@suse.de>
12939         PR middle-end/56349
12940         * cfghooks.c (merge_blocks): If we merge a latch into another
12941         block adjust references to it.
12942         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12943         (verify_loop_structure): Verify that a recorded latch is in fact
12944         a latch.
12946 2013-02-18  Richard Biener  <rguenther@suse.de>
12948         PR tree-optimization/56321
12949         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12950         order SSA name release and virtual operand unlinking.
12952 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12954         * config/microblaze/microblaze.md (save_stack_block): Define.
12955         (restore_stack_block): Likewise.
12957 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12959         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12960         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12961         * config/microblaze/microblaze.c (microblaze_option_override):
12962         Bail out early for PIC modes when target does not support PIC.
12964 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
12966         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12967         Replace with a microblaze version.
12968         (microblaze_trampoline_init): Adapt for microblaze.
12969         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12970         microblaze.
12972 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
12973             Dodji Seketeli  <dodji@redhat.com>
12975         PR asan/56330
12976         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12977         (instrument_mem_region_access): Do not forget to always put
12978         instrumentation of the of 'base' and 'base + len' in a "if (len !=
12979         0) statement, even for cases where either 'base' or 'base + len'
12980         are not instrumented -- because they have been previously
12981         instrumented.  Simplify the logic by putting all the statements
12982         instrument 'base + len' inside a sequence, and then insert that
12983         sequence right before the current insertion point.  Then, to
12984         instrument 'base + len', just get an iterator on that statement.
12985         And do not forget to update the pointer to iterator the function
12986         received as argument.
12988 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
12990         PR rtl-optimization/56348
12991         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12993 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
12995         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12996         (clean_graph_dump_file): Pass base to start_graph_dump.
12998 2013-02-14  Richard Henderson  <rth@redhat.com>
13000         PR target/55941
13001         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
13003 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
13005         * collect2-aix.h: Define F_LOADONLY.
13007 2013-02-14  Richard Biener  <rguenther@suse.de>
13009         PR lto/50494
13010         * varasm.c (output_constant_def_1): Get the decl representing
13011         the constant as argument.
13012         (output_constant_def): Wrap output_constant_def_1.
13013         (make_decl_rtl): Use output_constant_def_1 with the decl
13014         representing the constant.
13015         (build_constant_desc): Optionally re-use a decl already
13016         representing the constant.
13017         (tree_output_constant_def): Adjust.
13019 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
13021         Fix an asan crash
13022         * asan.c (instrument_builtin_call):  Really put the length of the
13023         second source argument into src1_len.
13025 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
13027         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
13028         argument.  If it is false, don't create edge from then_bb to
13029         fallthru_bb.
13030         (insert_if_then_before_iter): Pass true to it.
13031         (build_check_stmt): Pass false to it.
13032         (transform_statements): Flush hash table only on extended basic
13033         block boundaries, rather than at the beginning of every bb.
13034         Don't flush hash table on nonfreeing_call_p calls.
13035         * tree-flow.h (nonfreeing_call_p): New prototype.
13036         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
13038 2013-02-13  David S. Miller  <davem@davemloft.net>
13040         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
13042 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
13044         PR target/56184
13045         * ira.c (max_regno_before_ira): Move from ...
13046         (ira): ... here.
13047         (fix_reg_equiv_init): Use max_regno_before_ira instead of
13048         vec_safe_length.
13050 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
13052         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
13054 2013-02-13  Richard Biener  <rguenther@suse.de>
13056         PR lto/56295
13057         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
13058         globals in MEM_REFs.
13060 2013-02-13  Richard Biener  <rguenther@suse.de>
13062         * loop-init.c (loop_optimizer_init): Clear loop state when
13063         re-initializing preserved loops.
13064         * loop-unswitch.c (unswitch_single_loop): Return whether
13065         we unswitched the loop.  Do not verify loop state here.
13066         (unswitch_loops): When we unswitched a loop discover new loops.
13068 2013-02-13  Kostya Serebryany  <kcc@google.com>
13070         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
13071         on x86_64 linux.
13072         * sanitizer.def: Rename __asan_init to __asan_init_v1.
13074 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
13076         Avoid instrumenting duplicated memory access in the same basic block
13077         * Makefile.in (asan.o): Add new dependency on hash-table.h
13078         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
13079         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
13080         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
13081         (free_mem_ref_resources, has_mem_ref_been_instrumented)
13082         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
13083         (get_mem_ref_of_assignment): New functions.
13084         (get_mem_refs_of_builtin_call): Extract from
13085         instrument_builtin_call and tweak a little bit to make it fit with
13086         the new signature.
13087         (instrument_builtin_call): Use the new
13088         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
13089         of is_gimple_builtin_call.
13090         (instrument_derefs, instrument_mem_region_access): Insert the
13091         instrumented memory reference into the hash table.
13092         (maybe_instrument_assignment): Renamed instrument_assignment into
13093         this, and change it to advance the iterator when instrumentation
13094         actually happened and return true in that case.  This makes it
13095         homogeneous with maybe_instrument_assignment, and thus give a
13096         chance to callers to be more 'regular'.
13097         (transform_statements): Clear the memory reference hash table
13098         whenever we enter a new BB, when we cross a function call, or when
13099         we are done transforming statements.  Use
13100         maybe_instrument_assignment instead of instrumentation.  No more
13101         need to special case maybe_instrument_assignment and advance the
13102         iterator after calling it; it's now handled just like
13103         maybe_instrument_call.  Update comment.
13105 2013-02-13  Richard Biener  <rguenther@suse.de>
13107         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
13108         Fix loop discovery code.
13110 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
13112         PR inline-asm/56148
13113         * lra-constraints.c (process_alt_operands): Match early clobber
13114         operand with itself.  Check conflicts with earlyclobber only if
13115         the operand is not reloaded.  Prefer to reload conflicting operand
13116         if earlyclobber and matching operands are the same.
13118 2013-02-12  Richard Biener  <rguenther@suse.de>
13120         PR lto/56297
13121         * lto-streamer-out.c (write_symbol): Do not output symbols
13122         for hard register variables.
13124 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
13126         PR target/54222
13127         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
13128         (umulsidi3_insn, mulsidi3_insn): New insns.
13130 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
13132         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13133         (struct tune_params): Add vec_costs field.
13134         * config/arm/arm.c (arm_builtin_vectorization_cost)
13135         (arm_add_stmt_cost): New functions.
13136         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13137         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13138         (arm_default_vec_cost): New struct of type cpu_vec_costs.
13139         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13140         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13141         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13142         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13144 2013-02-12  Richard Biener  <rguenther@suse.de>
13146         PR lto/56295
13147         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13148         decls again if possible.
13150 2013-02-12  Richard Biener  <rguenther@suse.de>
13152         PR middle-end/56288
13153         * tree-ssa.c (verify_ssa_name): Fix check, move
13154         SSA_NAME_IN_FREE_LIST check up.
13156 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
13157             Steven Bosscher   <steven@gcc.gnu.org>
13159         PR rtl-optimization/56151
13160         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13161         equal to op0 or op1, and last_insn pattern is CODE operation
13162         with MEM dest and one of the operands matches that MEM.
13164 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
13166         * doc/extend.texi: Document Function Multiversioning and "default"
13167         parameter string to target attribute.
13168         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13169         target attribute parameter is "default".
13170         (ix86_compare_version_priority): Remove checks for target attribute.
13171         (ix86_mangle_function_version_assembler_name): Change error to sorry.
13172         Remove check for target attribute equal to NULL. Add assert.
13173         (ix86_generate_version_dispatcher_body): Change error to sorry.
13175 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
13176             Jack Howarth  <howarth@bromo.med.uc.edu>
13177             Patrick Marlier  <patrick.marlier@gmail.com>
13179         PR libitm/55693
13180         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13181         define ENDFILE_SPEC as TM_DESTRUCTOR.
13182         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13184 2013-02-11  Alexander Potapenko  <glider@google.com>
13185             Jack Howarth  <howarth@bromo.med.uc.edu>
13186             Jakub Jelinek  <jakub@redhat.com>
13188         PR sanitizer/55617
13189         * config/darwin.c (cdtor_record): Rename ctor_record.
13190         (sort_cdtor_records): Rename sort_ctor_records.
13191         (finalize_dtors): New routine to sort destructors by
13192         priority before use in assemble_integer.
13193         (machopic_asm_out_destructor): Use finalize_dtors if needed.
13195 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
13197         PR rtl-optimization/56275
13198         * simplify-rtx.c (avoid_constant_pool_reference): Check that
13199         offset is non-negative and less than cmode size before
13200         calling simplify_subreg.
13202 2013-02-11  Richard Biener  <rguenther@suse.de>
13204         PR tree-optimization/56264
13205         * cfgloop.h (fix_loop_structure): Adjust prototype.
13206         * loop-init.c (fix_loop_structure): Return the number of
13207         newly discovered loops.
13208         * tree-cfgcleanup.c (repair_loop_structures): When new loops
13209         are discovered, do a full loop-closed SSA rewrite.
13211 2013-02-11  Richard Biener  <rguenther@suse.de>
13213         PR tree-optimization/56273
13214         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13215         first VRP run.
13216         (check_array_ref): Fix missing newline in dumps.
13217         (search_for_addr_array): Likewise.
13219 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
13221         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13223 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
13225         PR target/56256
13226         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13228 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
13230         PR rtl-optimization/56246
13231         * lra-constraints.c (simplify_operand_subreg): Try to reuse
13232         reload pseudo.
13233         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13234         constraints are satisfied.
13236 2013-02-08  Jeff Law  <law@redhat.com>
13238         PR debug/53948
13239         * emit-rtl.c (reg_is_parm_p): New function.
13240         * regs.h (reg_is_parm_p): New prototype.
13241         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13242         callee-clobbered registers.
13244 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
13246         PR target/56043
13247         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13248         If there is no implicit builtin declaration, just return NULL.
13250 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
13252         * config/i386/sse.md (FMAMODEM): New mode iterator.
13253         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13254         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13256 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
13258         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13259         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13260         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13262 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
13264         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13265         (microblaze*-*-elf): Likewise.
13266         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13267         LINK_SPEC.
13268         * config/microblaze/microblaze-c.c: Add builtin defines for
13269         _LITTLE_ENDIAN and _BIG_ENDIAN.
13270         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13271         add to TARGET_DEFAULT flags.
13272         Expand ASM_SPEC and LINK_SPEC.
13273         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13274         * config/microblaze/microblaze.md: Update extendsidi2 and
13275         movdi_internal instructions to use low-order / high-order reg
13276         print_operands.
13277         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13278         options and inversemask / mask of LITTLE_ENDIAN.
13279         * config/microblaze/t-microblaze: Expand multilib options to
13280         include mlittle-endian (le) and update exceptions patterns.
13282 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
13284         PR rtl-optimization/56195
13285         * lra-constraints.c (get_reload_reg): Don't reuse regs
13286         if they have smaller mode than requested, if they have
13287         wider mode than requested, try to return a SUBREG.
13289         PR tree-optimization/56250
13290         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13291         if type is unsigned and code isn't MULT_EXPR.
13293 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
13295         PR tree-optimization/56064
13296         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13297         bits according to mode.
13298         * fixed-value.h (fixed_from_double_int)
13299         (const_fixed_from_double_int): Adjust comments.
13301 2013-02-08  Richard Biener  <rguenther@suse.de>
13303         PR lto/56231
13304         * lto-streamer.h (struct data_in): Remove current_file, current_line
13305         and current_col members.
13306         * lto-streamer-out.c (lto_output_location): Stream changed bits
13307         en-block for efficiency.
13308         * lto-streamer-in.c (clear_line_info): Remove.
13309         (lto_input_location): Cache current file, line and column
13310         globally via local statics.  Read changed bits en-block.
13311         (input_function): Do not call clear_line_info.
13312         (lto_read_body): Likewise.
13313         (lto_input_toplevel_asms): Likewise.
13315 2013-02-08  Michael Matz  <matz@suse.de>
13317         PR tree-optimization/52448
13318         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13319         (nt_call_phase): New static.
13320         (add_or_mark_expr): Only mark accesses with newer phase than any
13321         call seen.
13322         (nonfreeing_call_p): New.
13323         (nt_init_block): Update nt_call_phase, mark blocks as visited.
13324         (nt_fini_block): Keep blocks marked as visited.
13325         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13327 2013-02-08  Richard Biener  <rguenther@suse.de>
13329         * ira.c (ira): Free broken dominator information.
13331 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
13333         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13335 2013-02-08  Marek Polacek  <polacek@redhat.com>
13337         * cfgloop.c (verify_loop_structure): Add more checking of headers.
13339 2013-02-08  Richard Biener  <rguenther@suse.de>
13341         PR middle-end/56181
13342         * cfgloop.h (flow_loops_find): Adjust.
13343         (bb_loop_header_p): Declare.
13344         * cfgloop.c (bb_loop_header_p): New function split out from ...
13345         (flow_loops_find): ... here.  Adjust function signature,
13346         support incremental loop structure update.
13347         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
13348         * cfgloopmanip.c (fix_loop_structure): Move ...
13349         * loop-init.c (fix_loop_structure): ... here.
13350         (apply_loop_flags): Split out from ...
13351         (loop_optimizer_init): ... here.
13352         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
13353         in incremental mode, only remove dead loops here.
13355 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
13357         PR target/54222
13358         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13359         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13360         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13361         (*round<mode>3.libgcc): New insns for fixed-modes.
13362         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13363         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13364         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13365         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13366         implementations.  Define to __builtin_avr_absFX,
13367         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13368         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13369         __builtin_avr_countlsFX, respectively.
13370         * config/avr/avr-c.c (target.h): Include it.
13371         (enum avr_builtin_id): New enum.
13372         (avr_resolve_overloaded_builtin): New static function.
13373         (avr_register_target_pragmas): Use it to set
13374         targetm.resolve_overloaded_builtin.
13375         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13376         tree nodes used by DEF_BUILTIN.
13377         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13378         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13379         <AVR_BUILTIN_xxBITS>: Same.
13381 2013-02-08  Richard Biener  <rguenther@suse.de>
13383         * cfgloop.c (verify_loop_structure): Properly handle
13384         a loop exiting to another loop header.
13385         * ira-int.h (ira_loops): Remove.
13386         * ira.c (ira_loops): Remove.
13387         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13388         (do_reload): Use loop_optimizer_finalize.
13389         * ira-build.c (create_loop_tree_nodes): Use get_loops and
13390         number_of_loops to access the loop tree.
13391         (more_one_region_p): Likewise.
13392         (finish_loop_tree_nodes): Likewise.
13393         (rebuild_regno_allocno_maps): Likewise.
13394         (mark_loops_for_removal): Likewise.
13395         (mark_all_loops_for_removal): Likewise.
13396         (remove_unnecessary_regions): Likewise.
13397         (ira_build): Likewise.
13398         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13400 2013-02-08  Richard Biener  <rguenther@suse.de>
13402         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13403         * ipa-pure-const.c (analyze_function): Avoid calling
13404         mark_irreducible_loops twice.
13405         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13407 2013-02-07  David S. Miller  <davem@davemloft.net>
13409         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13410         on 'reg'.
13411         * var-tracking.c (vt_add_function_parameter): Test the presence of
13412         HAVE_window_save properly and do not remap argument registers when
13413         we have a leaf function.
13415 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
13417         PR bootstrap/56227
13418         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13419         instead of "ll".
13420         * config/i386/i386.c (ix86_print_operand): Ditto.
13422 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
13424         * lra-constraints.c (process_alt_operands): Fix recently added comment.
13426 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
13428         PR rtl-optimization/56225
13429         * lra-constraints.c (process_alt_operands): Check that reload hard
13430         reg can hold value for strict_low_part.
13432 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
13434         PR debug/56154
13435         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13436         dwarf2out_end_function.
13437         (in_first_function_p, maybe_at_text_label_p,
13438         first_loclabel_num_not_at_text_label): New variables.
13439         (dwarf2out_var_location): In the first function find out
13440         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13441         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13442         functions.
13444 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
13446         PR rtl-optimization/56178
13447         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13448         SUBREG of a register.  Tidy up related block of code.
13449         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13450         note if the source is a register or a SUBREG of a register.
13452 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
13454         PR target/56228
13455         * config/rs6000/rs6000.md (ptrm): New mode attr.
13456         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13457         call_value_indirect_aix<pttrsize>,
13458         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13459         m in constraints.
13461 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13463         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13464         if -bnortl. Convert to strcmp and strncmp.
13466 2013-02-07  Alan Modra  <amodra@gmail.com>
13468         PR target/54009
13469         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13470         addresses won't wrap when offsetting.
13471         (rs6000_secondary_reload): Provide secondary reloads needed for
13472         wrapping LO_SUM addresses.
13474 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
13476         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13477         MACH, just __MACH__.
13479 2013-02-06  Richard Biener  <rguenther@suse.de>
13481         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13482         instead of calling fix_loop_structure.
13484 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
13486         PR middle-end/56217
13487         * omp-low.c (use_pointer_for_field): Return false if
13488         lower_send_shared_vars doesn't generate any copy-out code.
13490 2013-02-06  Tom de Vries  <tom@codesourcery.com>
13492         PR rtl-optimization/56131
13493         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13494         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
13495         of the label is NULL.  Add comment.
13497 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
13499         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13501         PR sanitizer/55374
13502         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13503         (STATIC_LIBTSAN_LIBS): Likewise.
13504         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13505         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13506         is defined, don't add anything else beyond that.
13507         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13508         (LINK_COMMAND_SPEC): Use them.
13510         PR tree-optimization/56205
13511         * tree-stdarg.c (check_all_va_list_escapes): Return true if
13512         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13513         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13515 2013-02-05  Richard Biener  <rguenther@suse.de>
13517         PR tree-optimization/53342
13518         PR tree-optimization/53185
13519         * tree-vectorizer.h (vect_check_strided_load): Remove.
13520         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13521         not disallow peeling for vectorized strided loads.
13522         (vect_check_strided_load): Make static and simplify.
13523         (vect_analyze_data_refs): Adjust.
13524         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13525         correctly when vectorizing strided loads.
13527 2013-02-05  Richard Biener  <rguenther@suse.de>
13529         * doc/install.texi: Refer to ISL, not PPL.
13531 2013-02-05  Jan Hubicka  <jh@suse.cz>
13533         PR tree-optimization/55789
13534         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13536 2013-02-05  Jan Hubicka  <jh@suse.cz>
13538         PR tree-optimization/55789
13539         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13540         the dead call anyway.
13542 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
13544         PR sanitizer/55374
13545         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13547 2013-02-04  Alexander Potapenko  <glider@google.com>
13548             Jack Howarth  <howarth@bromo.med.uc.edu>
13549             Jakub Jelinek  <jakub@redhat.com>
13551         PR sanitizer/55617
13552         * config/darwin.c (sort_ctor_records): Stabilized qsort
13553         on constructor priority by using original position.
13554         (finalize_ctors): New routine to sort constructors by
13555         priority before use in assemble_integer.
13556         (machopic_asm_out_constructor): Use finalize_ctors if needed.
13558 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
13560         PR libstdc++/54314
13561         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13562         about visibility on artificial decls.
13563         * config/sol2.c (solaris_assemble_visibility): Likewise.
13565 2013-02-04  Kai Tietz  <ktietz@redhat.com>
13567         PR target/56186
13568         * config/i386/i386.c (function_value_ms_64): Add additional valtype
13569         argument and improve checking of return-argument types for 16-byte
13570         modes.
13571         (ix86_function_value_1): Add additional valtype argument on call
13572         of function_value_64.
13573         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13574         handling infunction_value_64 function.
13576 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
13578         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13580 2013-02-04  Richard Biener  <rguenther@suse.de>
13582         PR tree-optimization/56188
13583         * tree-ssa-structalias.c (label_visit): Consider case with
13584         initially non-empty points-to set.
13585         (perform_var_substitution): Dump node mapping and clean up.
13587 2013-02-04  Richard Guenther  <rguenther@suse.de>
13589         PR lto/56168
13590         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13591         node prevail as last resort.
13592         (lto_symtab_merge_decls): Remove guard on LTRANS here.
13593         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13595 2013-02-04  Richard Biener  <rguenther@suse.de>
13597         PR tree-optimization/56113
13598         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13599         Merge into ...
13600         (equiv_class_lookup_or_add): ... this.
13601         (label_visit): Adjust and fix error in previous patch.
13602         (perform_var_substitution): Adjust.
13604 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
13606         * config/sh/divtab.c: Fix formatting and comments throughout the file.
13607         * config/sh/sh4-300.md: Likewise.
13608         * config/sh/sh4a.md: Likewise.
13609         * config/sh/constraints.md: Likewise.
13610         * config/sh/sh.md: Likewise.
13611         * config/sh/netbsd-elf.h: Likewise.
13612         * config/sh/predicates.md: Likewise.
13613         * config/sh/sh-protos.h: Likewise.
13614         * config/sh/ushmedia.h: Likewise.
13615         * config/sh/linux.h: Likewise.
13616         * config/sh/sh.c: Likewise.
13617         * config/sh/superh.h: Likewise.
13618         * config/sh/elf.h: Likewise.
13619         * config/sh/sh4.md: Likewise.
13620         * config/sh/sh.h: Likewise.
13622 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13624         * config/pa/constraints.md: Adjust unused letters.  Change "T"
13625         constraint to match_test floating_point_store_memory_operand().
13626         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13627         (base14_operand): New.
13628         (floating_point_store_memory_operand): New.
13629         (integer_store_memory_operand): Revise to use base14_operand and
13630         reg_plus_base_memory_operand.
13631         (move_dest_operand): Allow symbolic_memory_operands.
13632         (symbolic_memory_operand): Check for LO_SOM.
13633         (symbolic_operand): Change default case to break.
13634         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13635         CONST_DOUBLE values to be reloaded by putting them into memory when
13636         the destination is a floating point register.
13637         (movdf): Remove code to handle CONST_DOUBLE.
13638         (movsf): Likewise.
13639         (reload_indf_r1): New.
13640         (reload_insf_r1): New.
13641         Consistently use "Q" and "T" constraints with integer and floating
13642         point move instructions, respectively.
13643         (movdi): Remove FAIL.
13644         Change predicate for source operand unamed DImode move from
13645         general_operand to move_src_operand.
13646         (umulsidi3): Change predicate for destination operand to
13647         register_operand.
13648         Likewise for similar unamed patterns.
13649         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13650         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13651         (hppa_legitimize_address): Simplify mask calculation.
13652         (pa_emit_move_sequence): Revised handling of secondary reloads from
13653         REG+D addresses for floating point loads and stores.  Directly handle
13654         loading CONST0_RTX (mode) to a floating point register.
13655         (pa_secondary_reload): Handle reloading DF and SFmode constant values
13656         to floating point registers.  Don't restrict secondary reloads to
13657         floating point registers to integer modes.  Revise some comments and
13658         cleanup some code.
13659         (TARGET_LEGITIMATE_ADDRESS_P): Define.
13660         (pa_legitimate_address_p): New.
13661         (pa_legitimize_reload_address): New.
13662         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13663         (STRICT_REG_OK_FOR_BASE_P): New.
13664         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
13665         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13667 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
13668             Andrew Dixie  <andrewd@gentrack.com>
13670         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13671         flag set.
13673 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
13675         * expmed.c (extract_bit_field_1): Pass the full width of the
13676         structure to get_best_reg_extraction_insn.
13678 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13680         PR target/54601
13681         * configure.ac (use_cxa_atexit): Add AIX.
13682         * configure: Regenerate.
13684         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13686 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
13688         PR debug/54793
13689         * final.c (need_profile_function): New variable.
13690         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13691         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13692         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13693         notes, targetm.asm_out.function_prologue doesn't emit anything,
13694         HAVE_prologue and profiler should be emitted before prologue,
13695         set need_profile_function instead of emitting it.
13696         (final_scan_insn): If need_profile_function, emit
13697         profile_function on the first NOTE_INSN_BASIC_BLOCK or
13698         NOTE_INSN_FUNCTION_BEG note.
13700 2013-02-01  Richard Henderson  <rth@redhat.com>
13702         * config/rs6000/rs6000.md (smulditi3): New.
13703         (umulditi3): New.
13705         * config/alpha/alpha.md (umulditi3): New.
13707 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
13709         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13710         (ASM_OUTPUT_ALIGNED_LOCAL): New.
13712 2013-02-01  Richard Biener  <rguenther@suse.de>
13714         PR tree-optimization/56113
13715         * tree-ssa-structalias.c (label_visit): Reduce work for
13716         single-predecessor nodes.
13718 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
13720         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13721         range isn't testing for zero.
13723 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
13725         PR middle-end/56113
13726         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13728 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
13729             Nick Clifton  <nickc@redhat.com>
13731         * config/v850/constraints.md (Q): Define as a memory constraint.
13732         * config/v850/predicates.md (label_ref_operand): New predicate.
13733         (e3v5_shift_operand): New predicate.
13734         (ior_operator): New predicate.
13735         * config/v850/t-v850: Add e3v5 multilib.
13736         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13737         (v850_gen_movdi): Prototype.
13738         * config/v850/v850.c: Add support for e3v5 architecture.
13739         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13740         TARGET_V850E_UP.
13741         (construct_save_jarl): Add e3v5 long JARL support.
13742         (v850_adjust_insn_length): New function.  Adjust length of call
13743         insns when using e3v5 instructions.
13744         (v850_gen_movdi): New function: Generate instructions to move a
13745         DImode value.
13746         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13747         (CPP_SPEC): Define __v850e3v5__ as appropriate.
13748         (TARGET_USE_FPU): Enable for e3v5.
13749         (CONST_OK_FOR_W): New macro.
13750         (ADJUST_INSN_LENGTH): Define.
13751         * config/v850/v850.md (UNSPEC_LOOP): Define.
13752         (attr cpu): Add v850e3v5.
13753         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13754         (movdi): New pattern.
13755         (movdi_internal): New pattern.
13756         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13757         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13758         (cstoresf4): Likewise.
13759         (cstoredf4): Likewise.
13760         (insv): New pattern.
13761         (rotlso3_a): New pattern.
13762         (rotlsi3_b): New pattern
13763         (rotlsi3_v850e3v5): New pattern.
13764         (doloop_begin): New pattern.
13765         (fix_loop_counter): New pattern.
13766         (doloop_end): New pattern.
13767         (branch_normal): Add e3v5 long branch support.
13768         (branch_invert): Likewise.
13769         (branch_z_normal): Likewise.
13770         (branch_z_invert): Likewise.
13771         (branch_nz_normal): Likewise.
13772         (branch_nz_invert): Likewise.
13773         (call_internal_short): Add e3v5 register-indirect JARL support.
13774         (call_internal_long): Likewise.
13775         (call_value_internal_short): Likewise.
13776         (call_value_internal_long): Likewise.
13777         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13778         (mloop): New option.
13779         * config.gcc: Add support for configuring v840e3v5 target.
13780         * doc/invoke.texi: Document new v850 specific command line options.
13782 2013-01-31  Paul Koning  <ni1d@arrl.net>
13784         PR debug/55059
13785         PR debug/54508
13786         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13787         children if parent is a class.
13788         (prune_unused_types_prune): Don't add DW_AT_declaration.
13790 2013-01-31  Richard Biener  <rguenther@suse.de>
13792         PR tree-optimization/56157
13793         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13794         match up operand with SLP child.
13796 2013-01-31  Jason Merrill  <jason@redhat.com>
13798         PR debug/54410
13799         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13800         parameters the first time.
13801         (gen_scheduled_generic_parms_dies): Check completeness here.
13803 2013-01-31  Richard Biener  <rguenther@suse.de>
13805         PR middle-end/53073
13806         * common.opt (faggressive-loop-optimizations): New flag,
13807         enabled by default.
13808         * doc/invoke.texi (faggressive-loop-optimizations): Document.
13809         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13810         infer_loop_bounds_from_undefined by it.
13812 2013-01-31  Richard Biener  <rguenther@suse.de>
13814         PR tree-optimization/56150
13815         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13816         visit virtual operands.
13817         (find_uses_to_rename_bb): Likewise.
13819 2013-01-31  Richard Biener  <rguenther@suse.de>
13821         PR tree-optimization/56150
13822         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13823         mixed store non-store stmts.
13825 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
13827         PR sanitizer/55374
13828         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13829         LIBASAN_EARLY_SPEC is defined.
13830         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13831         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13832         before %o.
13833         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13835         PR c++/55742
13836         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13837         invalid args instead of ICEing on it.
13838         (ix86_valid_target_attribute_tree): Return error_mark_node if
13839         ix86_valid_target_attribute_inner_p failed.
13840         (ix86_valid_target_attribute_p): Return false only if
13841         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
13842         target("default") attribute.
13843         (sorted_attr_string): Change argument from const char * to tree,
13844         merge in all target attribute arguments rather than just one.
13845         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
13846         instead of free.  Avoid using strcat.
13847         (ix86_mangle_function_version_assembler_name): Mangle
13848         target("default") as if no target attribute is present.  Adjust
13849         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
13850         instead of xmalloc and XDELETEVEC instead of free.
13851         (ix86_function_versions): Don't return true if one of the decls
13852         doesn't have target attribute.  If they don't and one of the decls
13853         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
13854         sorted_attr_string caller.  Use XDELETEVEC instead of free.
13855         (ix86_supports_function_versions): Remove.
13856         (make_name): Fix up formatting.
13857         (make_dispatcher_decl): Remove resolver_name and its initialization.
13858         Avoid leaking memory.
13859         (is_function_default_version): Return true if there is
13860         target("default") attribute rather than no target attribute at all.
13861         (make_resolver_func): Avoid leaking memory.
13862         (ix86_generate_version_dispatcher_body): Likewise.
13863         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13864         * target.def (supports_function_versions): Remove.
13865         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13866         * doc/tm.texi: Regenerated.
13868 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
13870         PR rtl-optimization/56144
13871         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13872         for values with side effects.
13874 2013-01-30  Richard Biener  <rguenther@suse.de>
13876         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13877         (sparseset_pop): Likewise.
13878         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
13879         to be able to use quick_push in the worker loop.
13881 2013-01-30  Marek Polacek  <polacek@redhat.com>
13883         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13885 2013-01-30  Richard Biener  <rguenther@suse.de>
13887         PR lto/56147
13888         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13890 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
13892         PR tree-optimization/56064
13893         * fixed-value.c (fixed_from_double_int): New function.
13894         * fixed-value.h (fixed_from_double_int): New prototype.
13895         (const_fixed_from_double_int): New static inline function.
13896         * fold-const.c (native_interpret_fixed): New static function.
13897         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13898         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13899         (native_encode_fixed): New static function.
13900         (native_encode_expr) <FIXED_CST>: Use it.
13901         (native_interpret_int): Move double_int worker code to...
13902         * double-int.c (double_int::from_buffer): ...this new static method.
13903         * double-int.h (double_int::from_buffer): Prototype it.
13905 2013-01-30  Richard Biener  <rguenther@suse.de>
13907         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13908         New pointer-map and obstack.
13909         (init_alias_vars): Allocate pointer-map and obstack.
13910         (delete_points_to_sets): Free them.
13911         (find_what_var_points_to): Cache result.
13912         (find_what_p_points_to): Adjust for changed interface of
13913         find_what_var_points_to.
13914         (compute_points_to_sets): Likewise.
13915         (ipa_pta_execute): Likewise.
13917 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13919         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13920         * configure: Regenerate.
13921         * config.in: Regenerate.
13922         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13923         #nobits/#progbits if supported.
13925 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
13927         PR target/56121
13928         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13929         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13930         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13932 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13934         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13935         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13937 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13939         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13940         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13942 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13944         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13945         declaration.
13946         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13947         * config/arm/cortex-a7.md: New bypasses using
13948         arm_mac_accumulator_is_result.
13950 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13952         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
13953         (cortex_a7_neon_mla): Likewise.
13954         (cortex_a7_fpfmad): New reservation.
13955         (cortex_a7_fpmacs): Use ffmas and update required units.
13956         (cortex_a7_fpmuld): Update required units and latency.
13957         (cortex_a7_fpmacd): Likewise.
13958         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13959         (cortex_a7_neon). Likewise.
13960         (bypass) Update participating units.
13962 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
13964         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13965         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13966         from fmac to ffma.
13967         * config/arm/vfp11.md (vfp_farith): Use ffmas.
13968         (vfp_fmul): Use ffmad.
13969         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13970         (cortex_r4_fmacd): Use ffmad.
13971         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13972         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
13973         (cortex_a9_fmacd): Use ffmad.
13974         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13975         (cortex_a8_vfp_macd): Use ffmad.
13976         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13977         (cortex_a5_fpmacd): Use ffmad.
13978         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13979         (cortex_a15_vfp_macd): Use ffmad.
13980         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13982 2013-01-29  Jason Merrill  <jason@redhat.com>
13984         PR libstdc++/54314
13985         * varasm.c (default_assemble_visibility): Don't warn about
13986         visibility on artificial decls.
13988 2013-01-29  Richard Biener  <rguenther@suse.de>
13990         PR tree-optimization/56113
13991         * tree-ssa-structalias.c (equiv_class_lookup): Also return
13992         the bitmap leader.
13993         (label_visit): Free duplicate bitmaps and record the leader instead.
13994         (perform_var_substitution): Adjust.
13996 2013-01-29  Richard Biener  <rguenther@suse.de>
13998         PR tree-optimization/55270
13999         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
14000         the CFG, schedule loops for fixup.
14002 2013-01-29  Nick Clifton  <nickc@redhat.com>
14004         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
14005         SP_REG.
14007 2013-01-28  Leif Ekblad  <leif@rdos.net>
14009         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
14010         * config/i386/i386.h (TARGET_RDOS): New macro.
14011         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
14012         * config/i386/i386.c (ix86_option_override_internal): For 64bit
14013         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
14014         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
14015         DEFAULT_LARGE_SECTION_THRESHOLD.
14016         * config/i386/i386.md (R14_REG, R15_REG): New constants.
14017         * config/i386/rdos.h: New file.
14018         * config/i386/rdos64.h: New file.
14020 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
14022         PR other/54814
14023         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
14024         TEST_HARD_REG_BIT.
14026 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
14028         PR rtl-optimization/56117
14029         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
14030         call cselib_lookup_from_insn on the MEM before calling
14031         add_insn_mem_dependence.
14033 2013-01-28  Richard Biener  <rguenther@suse.de>
14035         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
14036         to a stmt that didn't have one.
14037         (copy_phis_for_bb): Likewise for PHI arguments.
14038         (copy_debug_stmt): Likewise for debug stmts.
14040 2013-01-28  Richard Biener  <rguenther@suse.de>
14042         PR tree-optimization/56034
14043         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
14044         (partition_builtin_p): Adjust.
14045         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
14046         it is the last partition.
14047         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
14048         up the vertex for the definition.
14049         (classify_partition): Classify whether a partition is a
14050         PKIND_REDUCTION, thus has uses outside of the loop.
14051         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
14052         Merge all PKIND_REDUCTION partitions into the last partition.
14053         (tree_loop_distribution): Seed partitions from reductions as well.
14055 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
14057         PR tree-optimization/56125
14058         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
14059         pow(x,c) into sqrt(x) * powi(x, n/2) or
14060         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
14061         optimizing for size.
14062         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
14063         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
14064         integer.
14066         PR tree-optimization/56094
14067         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
14068         to UNKNOWN_LOCATION while gimplifying expr.
14070 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
14072         PR target/56114
14073         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
14074         operand 0 in movabs insn template for -masm=intel asm alternative.
14075         (*movabs<mode>_2): Ditto for operand 1.
14077 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
14079         PR target/54663
14080         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
14081         of microblaze-c.o
14083 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
14085         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
14086         tm_file.
14088 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14090         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
14091         Undef to avoid warning.
14093 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14095         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
14096         * configure: Regenerate.
14098 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
14100         PR tree-optimization/56098
14101         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
14102         for stmts with volatile ops.
14103         (cond_store_replacement): Don't optimize if assign has volatile ops.
14104         (cond_if_else_store_replacement_1): Don't optimize if either
14105         then_assign or else_assign have volatile ops.
14106         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
14107         volatile ops.
14109 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
14111         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
14113 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
14115         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
14116         missing ':' in asm example.
14118 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
14120         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
14121         entries into lane and laneq entries.
14122         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
14123         Remove AdvSIMD scalar modes.
14124         (aarch64_sq<r>dmulh_laneq<mode>): New.
14125         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
14126         modes.
14127         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
14128         builtin implementations to relfect changes in RTL in aarch64-simd.md.
14129         * config/aarch64/iterators.md (VCOND): New.
14130         (VCONQ): New.
14132 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
14134         PR target/54222
14135         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14136         Add NULL LIBNAME argument to existing definitions.
14137         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14138         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14139         * config/avr/avr.c (DEF_BUILTIN): Same.
14140         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14141         (avr_expand_builtin): Expand to a vanilla call if a libgcc
14142         implementation is available (DECL_ASSEMBLER_NAME is set).
14143         (avr_fold_absfx): New static function.
14144         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14145         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14146         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14147         AVR_BUILTIN_ABSLLK.
14148         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14149         (abshk, absk, abslk, absllk): Provide as static inline functions.
14151 2013-01-25  Marek Polacek  <polacek@redhat.com>
14153         PR tree-optimization/56035
14154         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14156 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
14158         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14159         (*movtf_internal_rex64): Add (!o,C) alternative
14160         (*movxf_internal_rex64): Ditto.
14161         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14163 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
14165         * doc/invoke.texi: fix typo.
14166         * doc/objc.texi: fix typo.
14168 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
14170         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14171         for the first two alternatives.
14173 2013-01-24  Diego Novillo  <dnovillo@google.com>
14175         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
14176         (ggc-zone.o): Remove.
14177         * configure.ac: Remove option --with-gc.
14178         * configure: Re-generate.
14179         * doc/install.texi: Remove documentation for --with-gc.
14180         * gengtype.c (write_enum_defn): Remove.  Update all users.
14181         (write_Types_process_field): Remove generation of gt_e_* argument.
14182         (output_type_enum): Remove.  Update all users.
14183         (write_enum_defn): Remove.  Update all users.
14184         (enum alloc_zone): Remove.  Update all users.
14185         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
14186         * ggc-common.c (ggc_splay_alloc): Remove first argument.
14187         Update all callers.
14188         (struct ptr_data): Remove field TYPE.  Update all users.
14189         (gt_pch_note_object): Remove argument TYPE.  Update all users.
14190         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14191         Update all users.
14192         * ggc-none.c (ggc_alloc_typed_stat): Remove.
14193         (struct alloc_zone): Remove.
14194         (ggc_internal_alloc_zone_stat): Remove.
14195         (ggc_internal_cleared_alloc_zone_stat): Remove.
14196         * ggc-page.c (ggc_alloc_typed_stat): Remove.
14197         (ggc_pch_count_object): Remove last argument.  Update all users.
14198         (ggc_pch_alloc_object): Remove last argument.  Update all users.
14199         (struct alloc_zone): Remove.
14200         * ggc-zone.c: Remove.
14201         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
14202         (struct alloc_zone): Remove.
14203         (ggc_alloc_typed_stat): Remove.
14204         (ggc_alloc_typed): Remove.
14205         (ggc_splay_alloc): Remove first argument.
14206         (rtl_zone): Remove.  Update all users.
14207         (tree_zone): Remove.  Update all users.
14208         (tree_id_zone): Remove.  Update all users.
14209         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
14210         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
14211         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
14212         * tree-ssanames.c: Remove references to zone allocator in comments.
14214 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
14216         * config/avr/avr.c (avr_out_fract): Make register numbers that
14217         might be outside of source operand signed.
14219 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
14221         * config/i386/constraints.md (Yf): New constraint.
14222         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14223         of f constraint to conditionaly disable x87 register preferences.
14224         (*movdf_internal): Ditto.
14225         (*movsf_internal): Ditto.
14227 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
14229         PR inline-asm/55934
14230         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14231         that have operands with impossible constraints.
14232         Add a FIXME for a speed-up opportunity.
14233         * lra-constraints.c (process_alt_operands): Verify that a class
14234         selected from constraints on asms is valid for the operand mode.
14235         (curr_insn_transform): Remove incorrect comment.
14237 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
14239         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14240         TOC operand is a valid symbol ref in the constant pool.
14242 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
14244         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14246 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
14248         PR target/54222
14249         * config/avr/stdfix.h: New file.
14250         * t-avr (stdfix-gcc.h): New rule to build it.
14251         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14253 2013-01-23  Kostya Serebryany  <kcc@google.com>
14255         * config/darwin.h: remove dependency on
14256         CoreFoundation (asan on Mac OS).
14258 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
14260         PR target/49069
14261         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14262         instead of cmpdi_operand for first comparison operand.
14263         Don't assert that comparison operands aren't both constants.
14265 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
14267         * doc/install.texi (Downloading the Source): Update references to
14268         downloading separate components.
14270 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
14272         * doc/extend.texi (__int128): Improve grammar.
14274 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
14276         PR target/56028
14277         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14278         alternative to (o,r).
14279         (*movdi_internal_rex64): Remove (!o,n) alternative.
14280         (DImode immediate->memory splitter): Remove.
14281         (DImode immediate->memory peephole2): Remove.
14282         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14283         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14284         alternative to (!o,*r).
14285         (*movtf_internal_sse): New pattern.
14286         (*movxf_internal_rex64): New pattern.
14287         (*movxf_internal): Disable for TARGET_64BIT.
14288         (*movdf_internal_rex64): Remove (!o,F) alternative.
14290 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
14292         PR middle-end/56074
14293         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14294         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14295         * tree-vect-loop-manip.c (find_loop_location): Also ignore
14296         stmt locations where LOCATION_LOCUS of the stmt location is
14297         UNKNOWN_LOCATION or BUILTINS_LOCATION.
14299         PR target/55686
14300         * config/i386/i386.md (UNSPEC_STOS): New.
14301         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14302         *strsetqi_1): Add UNSPEC_STOS.
14304 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
14306         PR c++/56067
14307         * doc/invoke.texi: Remove left over -Wsynth example.
14309 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
14311         PR tree-optimization/56051
14312         * fold-const.c (fold_binary_loc): Don't fold
14313         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14314         a narrowing conversion, or widening conversion from signed
14315         to unsigned.
14317 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
14319         PR rtl-optimization/56023
14320         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14321         dependent on debug instruction.
14323 2013-01-21  Martin Jambor  <mjambor@suse.cz>
14325         PR middle-end/56022
14326         * function.c (allocate_struct_function): Call
14327         invoke_set_current_function_hook earlier.
14329 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
14331         * reload1.c (init_reload): Only initialize reload_obstack
14332         during the first call.
14334 2013-01-21  Marek Polacek  <polacek@redhat.com>
14336         * cfgloop.c (verify_loop_structure): Fix up grammar.
14338 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
14340         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14341         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14343 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14345         PR target/56058
14346         * config/arm/marvell-pj4.md: Update copyright year.
14347         Fix up use of alu to alu_reg and simple_alu_imm.
14349 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
14351         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14353 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
14355         PR target/55433
14356         * lra-constraints.c (curr_insn_transform): Don't reuse original
14357         insn for secondary memory move when memory mode should be different.
14359 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14361         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14362         atomic_storedi_1): New patterns.
14364 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14366         btver2 pipeline descriptions.
14367         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14368         descriptions.
14369         * config/i386/i386.md (btver2_decode): New type attributes.
14370         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14371         type attributes.
14372         * config/i386/btver2.md: New file describing btver2 pipelines.
14374 2013-01-19  Andrew Pinski  <apinski@cavium.com>
14376         PR tree-optimization/52631
14377         * tree-ssa-sccvn (visit_use): Before looking up the original
14378         statement, try looking up the simplified expression.
14380 2013-01-19  Anthony Green  <green@moxielogic.com>
14382         * config/moxie/moxie.c (moxie_expand_prologue): Set
14383         current_function_static_stack_size.
14385 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
14387         PR tree-optimization/56029
14388         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14389         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14391 2013-01-18  Sharad Singhai  <singhai@google.com>
14393         PR tree-optimization/55995
14394         * dumpfile.c (dump_loc): Print location only if available.
14395         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14397 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
14399         PR target/55433
14400         * lra-constraints.c (curr_insn_transform): Reuse original insn for
14401         secondary memory move.
14402         (inherit_reload_reg): Use rclass instead of cl for
14403         check_secondary_memory_needed_p.
14405 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
14407         PR middle-end/56015
14408         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14409         the case where writing real complex part of target modifies op1.
14411 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
14413         * config/aarch64/aarch64-simd.md
14414         (aarch64_vcond_internal<mode>): Handle unordered cases.
14415         * config/aarch64/iterators.md (v_cmp_result): New.
14417 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
14418             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14420         * config/arm/marvell-pj4.md: New file.
14421         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14422         * config/arm/arm.md (generic_sched): Add marvell_pj4.
14423         (generic_vfp): Likewise.
14424         * config/arm/arm-cores.def: Add marvell-pj4.
14425         * config/arm/arm-tune.md: Regenerate.
14426         * config/arm/arm-tables.opt: Regenerate.
14427         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14428         * doc/invoke.texi: Document marvell-pj4.
14430 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
14432         * config/aarch64/arm_neon.h: Map scalar types to standard types.
14434 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14436         PR debug/54114
14437         PR debug/54402
14438         PR debug/49888
14439         * var-tracking.c (negative_power_of_two_p): New.
14440         (global_get_addr_cache, local_get_addr_cache): New.
14441         (get_addr_from_global_cache, get_addr_from_local_cache): New.
14442         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
14443         heading comment.
14444         (vt_stack_offset_p): Remove.
14445         (vt_canon_true_dep): Always canonicalize loc's address.
14446         (clobber_overlapping_mems): Make sure we have a MEM.
14447         (local_get_addr_clear_given_value): New.
14448         (val_reset): Clear local cached entries.
14449         (compute_bb_dataflow): Create and release the local cache.
14450         Disable duplicate MEMs clobbering.
14451         (emit_notes_in_bb): Clobber MEMs likewise.
14452         (vt_emit_notes): Create and release the local cache.
14453         (vt_initialize, vt_finalize): Create and release the global
14454         cache, respectively.
14455         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14457 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14459         PR libmudflap/53359
14460         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14461         not found in the symtab.
14463 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
14465         PR debug/56006
14466         PR rtl-optimization/55547
14467         PR rtl-optimization/53827
14468         PR debug/53671
14469         PR debug/49888
14470         * alias.c (offset_overlap_p): New, factored out of...
14471         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
14472         the conservative special case for symbolic constants.  Don't
14473         adjust zero sizes on alignment.
14475 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
14477         PR rtl-optimization/52573
14478         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14479         REG_UNUSED for the same register.
14481 2013-01-17  Richard Biener  <rguenther@suse.de>
14482             Marek Polacek  <polacek@redhat.com>
14484         PR rtl-optimization/55833
14485         * loop-unswitch.c (unswitch_loops): Move loop verification...
14486         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
14487         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14488         Set it to true when we're removing a loop from hierarchy tree in
14489         an irreducible region.
14490         (fix_bb_placements): Adjust caller.
14491         (fix_loop_placements): Likewise.
14493 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
14495         * config/avr/builtins.def (DEF_BUILTIN): Factor out
14496         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14497         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14498         Remove ID.  Adjust comments.
14499         * config/avr/avr-c.c (avr_builtin_name): Remove.
14500         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14501         * config/avr/avr.c (avr_tolower): New static function.
14502         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
14503         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14504         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14505         default expansion.
14507 2013-01-17  Jan Hubicka  <jh@suse.cz>
14509         PR tree-optimization/55273
14510         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14512 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
14514         PR target/55981
14515         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14516         store through atomic_store<mode>_1.
14517         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14519 2013-01-17  Martin Jambor  <mjambor@suse.cz>
14521         PR tree-optimizations/55264
14522         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14523         for virtual methods.
14524         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14525         virtual methods before inlining is over.
14526         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14527         virtual functions.
14528         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14529         non-virtual.
14531 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
14533         PR rtl-optimization/56005
14534         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14535         pending reads for prefetch.
14537 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
14539         * config/aarch64/aarch64.md
14540         (*cstoresi_neg_uxtw): New pattern.
14541         (*cmovsi_insn_uxtw): New pattern.
14542         (*<optab>si3_uxtw): New pattern.
14543         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14544         (*<optab>si3_insn_uxtw): New pattern.
14545         (*bswapsi2_uxtw): New pattern.
14547 2013-01-16  Richard Biener  <rguenther@suse.de>
14549         * tree-inline.c (tree_function_versioning): Remove set but
14550         never used variable.
14552 2013-01-16  Richard Biener  <rguenther@suse.de>
14554         PR tree-optimization/55964
14555         * tree-flow.h (rename_variables_in_loop): Remove.
14556         (rename_variables_in_bb): Likewise.
14557         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14558         (copy_loop_before): Adjust and delete update-ssa status.
14559         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14560         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
14561         (rename_variables_in_loop): Remove.
14562         (slpeel_update_phis_for_duplicate_loop): Likewise.
14563         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14564         use available cfg machinery instead of duplicating it.
14565         Update PHI nodes and perform poor-mans SSA update here.
14566         (slpeel_tree_peel_loop_to_edge): Adjust.
14568 2013-01-16  Richard Biener  <rguenther@suse.de>
14570         PR tree-optimization/54767
14571         PR tree-optimization/53465
14572         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14573         (vrp_visit_phi_node): For PHI arguments coming via backedges
14574         drop all symbolical range information.
14575         (execute_vrp): Compute backedges.
14577 2013-01-16  Richard Biener  <rguenther@suse.de>
14579         * doc/install.texi: Update CLooG and ISL requirements to
14580         0.18.0 and 0.11.1.
14582 2013-01-16  Christian Bruel  <christian.bruel@st.com>
14584         PR target/55301
14585         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14586         (broken_move): Handle UNSPECV_SP_SWITCH_B.
14587         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14589 2013-01-16  DJ Delorie  <dj@redhat.com>
14591         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14592         (UNSPECV_SP_SWITCH_E): New.
14593         (sp_switch_1): Change to an unspec.
14594         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
14595         replace $r15.
14597 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
14599         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14600         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14601         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14602         (expand_mem_thread_fence): Ditto.
14603         (expand_mem_signal_fence): Ditto.
14604         (expand_atomic_load): Ditto.
14605         (expand_atomic_store): Ditto.
14607 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
14609         PR rtl-optimization/55547
14610         PR rtl-optimization/53827
14611         PR debug/53671
14612         PR debug/49888
14613         * alias.c (memrefs_conflict_p): Set sizes to negative after
14614         AND adjustments.
14616 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14618         PR target/55940
14619         * function.c (thread_prologue_and_epilogue_insns): Always
14620         add crtl->drap_reg to set_up_by_prologue.set, even if
14621         stack_realign_drap is false.
14623 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14625         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14626         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14627         *call): Fix indention.
14629 2013-01-15  Tom de Vries  <tom@codesourcery.com>
14631         PR target/55876
14632         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14633         Update comment.
14635 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
14637         PR rtl-optimization/55153
14638         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14640 2013-01-15  Martin Jambor  <mjambor@suse.cz>
14642         PR tree-optimization/55920
14643         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14644         accesses as grp_to_be_debug_replaced.
14646 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14648         PR tree-optimization/55920
14649         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14650         there is non-useless type conversion needed from debug rhs to lhs,
14651         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14653 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
14654             Mikael Pettersson  <mikpe@it.uu.se>
14656         PR target/43961
14657         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14658         Thumb.
14659         (ASM_OUTPUT_CASE_LABEL): Remove.
14660         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14661         * final.c (shorten_branches): Update alignment of labels before
14662         jump tables if CASE_VECTOR_SHORTEN_MODE.
14664 2013-01-15  Richard Biener  <rguenther@suse.de>
14666         PR bootstrap/55961
14667         * system.h: Do not include gmp.h for building host tools.
14669 2013-01-15  Richard Biener  <rguenther@suse.de>
14671         PR middle-end/55882
14672         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14673         account for bitpos when computing alignment.
14675 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
14677         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14678         (ix86_target_macros_internal): Likewise.
14680         * config/i386/i386.c (m_CORE2I7): Removed.
14681         (m_CORE_HASWELL): New macro.
14682         (m_CORE_ALL): Likewise.
14683         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14684         (initial_ix86_arch_features): Likewise.
14685         (processor_target_table): Initializations for Core avx2.
14686         (cpu_names): New names "core-avx2".
14687         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14688         PROCESSOR_CORE_HASWELL.
14689         (ix86_issue_rate): New case.
14690         (ia32_multipass_dfa_lookahead): Likewise.
14691         (ix86_sched_init_global): Likewise.
14693         * config/i386/i386.h (TARGET_HASWELL): New macro.
14694         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14695         (processor_type): New PROCESSOR_HASWELL.
14697 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
14699         PR tree-optimization/55955
14700         * tree-vect-loop.c (vectorizable_reduction): Give up early on
14701         *SHIFT_EXPR and *ROTATE_EXPR codes.
14703         PR tree-optimization/48766
14704         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14705         -ftrapv disable -fwrapv.
14707 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14709         PR target/55974
14710         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14711         etc. to 1 and not to __flash.
14712         Use LL suffix for __INT24_MAX__ with -mint8.
14713         Use ULL suffix for __UINT24_MAX__ with -mint8.
14715 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14717         * config/avr/avr-arch.h
14718         (struct base_arch_s): Use typedef avr_arch_t instead.
14719         (struct arch_info_s): Use typedef avr_arch_info_t instead.
14720         (struct mcu_type_s): Use typedef avr_mcu_t instead.
14721         * config/avr/avr.c: Same.
14722         * config/avr/avr-devices.c: Same.
14723         * config/avr/driver-avr.c: Same.
14724         * config/avr/gen-avr-mmcu-texi.c: Same.
14725         * config/avr/avr-mcus.def: Adjust comment.
14727 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
14729         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14730         * config/aarch64/iterators.md (VALLDI): New.
14732 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
14733             Andi Kleen  <ak@linux.intel.com>
14735         PR target/55948
14736         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14737         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14738         memmodel flag.
14740 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14742         * config/avr/avr-stdint.h: Remove trailing blanks.
14743         * config/avr/avr-log.h: Same.
14744         * config/avr/avr-arch.h: Same.
14745         * config/avr/avr-devices.c: Same.
14746         * config/avr/avr-dimode.md: Same.
14747         * config/avr/predicates.md: Same.
14748         * config/avr/avr-c.c: Same.  And fix typo.
14750         * config/avr/avr-protos.h: Same.  And:
14751         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14752         (init_cumulative_args): Rename to avr_init_cumulative_args.
14753         (expand_prologue): Rename to avr_expand_prologue.
14754         (expand_epilogue): Rename to avr_expand_epilogue.
14755         (adjust_insn_length): Rename to avr_adjust_insn_length.
14756         (notice_update_cc): Rename to avr_notice_update_cc.
14757         (final_prescan_insn): Rename to avr_final_prescan_insn.
14758         * config/avr/avr.c: Same.
14759         * config/avr/avr.h: Same.
14760         * config/avr/avr.md: Remove trailing blanks.
14761         (prologue): Use avr_expand_prologue.
14762         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14764 2013-01-14  Richard Biener  <rguenther@suse.de>
14766         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14767         verify_location, collect_subblocks): New functions.
14768         (verify_gimple_in_cfg): Verify that locations only reference
14769         BLOCKs in the functions BLOCK tree.
14771 2013-01-14  Richard Biener  <rguenther@suse.de>
14773         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14774         PHI argument.
14775         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14776         unshare reference.
14777         (insert_out_of_ssa_copy_on_edge): Likewise.
14778         (rewrite_close_phi_out_of_ssa): Likewise.
14779         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14780         debug expressions.
14781         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14782         propagated constants.
14783         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14784         can not be shared.
14786 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
14788         * config/avr/avr-modes.def: Add GPL copyright notice.
14790 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
14792         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14793         MEMMODEL_MASK to determine memory model.
14794         (atomic_store<mode>): Ditto from operands[2].
14795         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14797 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
14799         PR fortran/55935
14800         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14801         (fold_gimple_assign): Don't call unshare_expr here.
14802         (fold_ctor_reference): Call unshare_expr.
14804 2013-01-13  Terry Guo  <terry.guo@arm.com>
14806         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14807         * doc/fragments.texi: Document MULTILIB_REUSE.
14808         * gcc.c (multilib_reuse): New internal spec.
14809         (set_multilib_dir): Also search multilib from multilib_reuse.
14810         * genmultilib (tmpmultilib3): Refactor code.
14811         (tmpmultilib4): Ditto.
14812         (multilib_reuse): New multilib argument.
14814 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
14816         * Makefile.in: Update copyright.
14818 2013-01-12  Tom de Vries  <tom@codesourcery.com>
14820         PR middle-end/55890
14821         * calls.c (expand_call): Check if arg_nr is valid.
14823 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14825         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14826         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14827         documentation.  Add missing '__' in front of
14828         __builtin_ia32_packssdw256.
14830 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14832         PR target/55719
14833         * config/s390/s390.c (s390_preferred_reload_class): Do not return
14834         NO_REGS for larl operands.
14835         (s390_reload_larl_operand): Use s390_load_address instead of
14836         emit_move_insn.
14838 2013-01-11  Richard Biener  <rguenther@suse.de>
14840         * tree-cfg.c (verify_node_sharing_1): Split out from ...
14841         (verify_node_sharing): ... here.
14842         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14844 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14846         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14847         Substitute TREECHECKING.
14848         * configure: Regenerate.
14849         * Makefile.in (TREECHECKING): New.
14851 2013-01-11  Richard Guenther  <rguenther@suse.de>
14853         PR tree-optimization/44061
14854         * tree-vrp.c (extract_range_basic): Compute zero as
14855         value-range for __builtin_constant_p of function parameters.
14857 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
14859         Update copyright years.
14861 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
14863         PR rtl-optimization/55672
14864         * lra-eliminations.c (mark_not_eliminable): Permit addition with
14865         const to be eliminable.
14867 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
14869         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14870         * configure: Regenerate.
14872 2013-01-10  Richard Biener  <rguenther@suse.de>
14874         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14876 2013-01-10  Richard Biener  <rguenther@suse.de>
14878         PR bootstrap/55792
14879         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14880         locations for virtual PHI arguments.
14881         (rewrite_update_phi_arguments): Likewise.
14883 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
14885         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14886         on to assembler.
14888 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
14890         PR tree-optimization/55921
14891         * tree-complex.c (expand_complex_asm): New function.
14892         (expand_complex_operations_1): Call it for GIMPLE_ASM.
14894 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14896         PR target/55718
14897         * config/s390/s390.c (s390_symref_operand_p)
14898         (s390_loadrelative_operand_p): Merge the two functions.
14899         (s390_check_qrst_address, print_operand_address): Add parameters
14900         to s390_loadrelative_operand_p invokation.
14901         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14902         (s390_reload_larl_operand, s390_secondary_reload): Use
14903         s390_loadrelative_operand_p instead of s390_symref_operand_p.
14904         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14906 2013-01-09  Mike Stump  <mikestump@comcast.net>
14908         * dse.c (record_store): Remove unnecessary assert.
14910 2013-01-09  Jan Hubicka  <jh@suse.cz>
14912         PR tree-optimization/55569
14913         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14914         * cfgloop.h (scale_loop_profile): Likewise.
14916 2013-01-09  Jan Hubicka  <jh@suse.cz>
14918         PR lto/45375
14919         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14920         functions.
14921         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14923 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
14925         PR middle-end/55114
14926         * expr.h (maybe_emit_group_store): Declare.
14927         * expr.c (maybe_emit_group_store): New function.
14928         * builtins.c (expand_builtin_int_roundingfn): Call it.
14929         (expand_builtin_int_roundingfn_2): Likewise.
14931 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
14933         PR rtl-optimization/55829
14934         * lra-constraints.c (match_reload): Add code for absent output.
14935         (curr_insn_transform): Add code for reloads of matched inputs
14936         without output.
14938 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
14940         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14941         attribute of movddup insn to DF.
14942         (*vec_interleave_lowv2df): Ditto.
14943         (vec_dupv2df): Ditto.
14945 2013-01-09  Jan Hubicka  <jh@suse.cz>
14947         PR tree-optimiation/55875
14948         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14949         EVERY_ITERATION parameter.
14950         (number_of_iterations_exit): Check if exit is executed every iteration.
14951         (idx_infer_loop_bounds): Similarly here.
14952         (n_of_executions_at_most): Simplify
14953         to only test for cases where statement is dominated by the
14954         particular bound; handle correctly the "postdominance" test.
14955         (scev_probably_wraps_p): Use max loop iterations info
14956         as a global bound first.
14958 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
14959             Nick Clifton  <nickc@redhat.com>
14961         * config/v850/v850.md (cbranchsf4): New pattern.
14962         (cstoresf4): New pattern.
14963         (cbranchdf4): New pattern.
14964         (cstoredf4): New pattern.
14965         (movsicc): Disallow floating point comparisons.
14966         (cmpsf_le_insn): Fix order of operators.
14967         (cmpsf_lt_insn): Likewise.
14968         (cmpsf_eq_insn): Likewise.
14969         (cmpdf_le_insn): Likewise.
14970         (cmpdf_lt_insn): Likewise.
14971         (cmpdf_eq_insn): Likewise.
14972         (cmpsf_ge_insn): Use LE comparison.
14973         (cmpdf_ge_insn): Likewise.
14974         (cmpsf_gt_insn): Use LT comparison.
14975         (cmpdf_gt_insn): Likewise.
14976         (cmpsf_ne_insn): Delete pattern.
14977         (cmpdf_ne_insn): Delete pattern.
14978         * config/v850/v850.c (v850_gen_float_compare): Use
14979         gen_cmpdf_eq_insn for NE comparison.
14980         (v850_float_z_comparison_operator)
14981         (v850_float_nz_comparison_operator): Move from here ...
14982         * config/v850/predicates.md: ... to here.  Move GT and GE
14983         comparisons into v850_float_z_comparison_operator.
14984         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14985         Delete prototype.
14986         (v850_float_nz_comparison_operator): Likewise.
14988 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14990         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14991         with calls to gen_insvsi/gen_insvdi.
14993 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14995         * config/i386/i386.c (initial_ix86_tune_features): Set up
14996         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14998 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
14999             Jakub Jelinek  <jakub@redhat.com>
15001         PR tree-optimization/48189
15002         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
15003         If nitercst is 0, don't predict the exit edge.
15005 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15007         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
15008         in asm_fprintf with reg_names.
15009         (aarch64_print_operand_address): Likewise.
15010         (aarch64_return_addr): Likewise.
15011         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
15013 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15015         * config/pa/pa.h (VAL_U6_BITS_P): Define.
15016         (INT_U6_BITS): Likewise.
15017         * config/pa/predicates.md (uint6_operand): New predicate.
15018         (shift5_operand, shift6_operand): Likewise.
15019         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
15020         arith32_operand.
15021         (lshrdi3): Use shift6_operand.
15022         (shrpsi4, shrpdi4): New insn patterns.
15023         (extzv): Delete expander.
15024         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
15025         predicates in unamed zero extract patterns.  Tighten common constraint.
15026         (extv): Delete expander.
15027         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
15028         predicates in unamed sign extract patterns.  Tighten common constraint.
15029         (insv): Delete expander.
15030         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
15031         predicates in unamed insert patterns.  Tighten common constraint.
15032         Change uint32_operand predicate to uint6_operand predicate in unamed
15033         DImode pattern to insert constant values of type 1...1xxxx.
15035 2013-01-04  Jan Hubicka  <jh@suse.cz>
15037         PR tree-optimization/55823
15038         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
15039         issue.
15041 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
15042             Uros Bizjak  <ubizjak@gmail.com>
15044         PR rtl-optimization/55845
15045         * df-problems.c (can_move_insns_across): Stop scanning at
15046         volatile_insn_p source instruction or give up if
15047         across_from .. across_to range contains any volatile_insn_p
15048         instructions.
15050 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
15052         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
15053         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
15054         Declare.
15055         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
15056         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
15058 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
15060         PR fortran/55341
15061         * asan.c (asan_clear_shadow): New function.
15062         (asan_emit_stack_protection): Use it.
15064 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
15066         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
15067         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
15068         with tab instead of space.
15070 2013-01-08  Nick Clifton  <nickc@redhat.com>
15072         * config/rl78/rl78.c (rl78_expand_prologue): Always select
15073         register bank 0 at the start of an interrupt handler.
15074         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
15075         MDBH registers.
15077 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
15079         * config/aarch64/aarch64-simd.md
15080         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
15081         (aarch64_simd_bsl): Likewise.
15082         (aarch64_vcond_internal<mode>): Likewise.
15083         (vcond<mode><mode>): Likewise.
15084         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
15085         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
15087 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
15089         * config/aarch64/aarch64-builtins.c
15090         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
15092 2013-01-08  Martin Jambor  <mjambor@suse.cz>
15094         PR debug/55579
15095         * tree-sra.c (analyze_access_subtree): Return true also after
15096         potentially creating a debug-only replacement.
15098 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
15100         PR middle-end/55890
15101         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
15103         PR tree-optimization/54120
15104         * tree-vrp.c (range_fits_type_p): Don't allow
15105         src_precision < precision from signed vr to unsigned_p
15106         if vr->min or vr->max is negative.
15107         (simplify_float_conversion_using_ranges): Test can_float_p
15108         against CODE_FOR_nothing.
15110 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
15111             Richard Biener  <rguenther@suse.de>
15113         PR middle-end/55851
15114         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
15115         types instead of just INTEGER_TYPE types.
15117 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
15119         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
15120         TF_SIZE): Define.
15122 2013-01-07  Steve Ellcey  <sellcey@mips.com>
15124         PR target/42661
15125         * config/mips/mips.opt: Change mad to mmad to match documentation.
15127 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
15129         PR target/55897
15130         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
15131         .progmemx.data now.
15133 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
15135         PR target/55897
15136         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15137         (avr_addrspace_t): Add .section_name field.
15138         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15139         array size.
15140         (avr_addrspace): Same.  Initialize .section_name.  Remove last
15141         NULL entry.  Put __memx into .progmemx.data.
15142         (progmem_section_prefix): Remove.
15143         (avr_asm_init_sections): No need to initialize progmem_section.
15144         (avr_asm_named_section): Use avr_addrspace[].section_name to get
15145         section name prefix.
15146         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
15147         retrieve the progmem section.
15148         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15149         boundary to run over avr_addrspace[].
15150         (avr_register_target_pragmas): Ditto.
15152 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
15154         * varasm.c (output_constant_def_contents): For asan_protect_global
15155         protected strings, adjust DECL_ALIGN if needed, before testing for
15156         anchored symbols.
15157         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15158         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
15159         normal decls.
15160         (output_object_block): For asan protected decls, emit asan padding
15161         after their contents.
15162         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15163         (asan_finish_file): Test it here instead.
15165 2013-01-07  Nick Clifton  <nickc@redhat.com>
15166             Matthias Klose  <doko@debian.org>
15167             Doug Kwan  <dougkwan@google.com>
15168             H.J. Lu  <hongjiu.lu@intel.com>
15170         PR driver/55470
15171         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15173         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15175         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15177         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
15179         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15181 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
15183         PR target/54461
15184         * doc/install.texi (Cross-Compiler-Specific Options): Document
15185         --with-avrlibc.
15187 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
15189         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15190         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15191         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15192         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15193         vqmovun_high_s64): Fix source operand number and update copyright.
15195 2013-01-07  Richard Biener  <rguenther@suse.de>
15197         PR middle-end/55890
15198         * gimple.h (gimple_call_builtin_p): New overload.
15199         * gimple.c (validate_call): New function.
15200         (gimple_call_builtin_p): Likewise.
15201         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15202         Use gimple_call_builtin_p.
15203         (find_func_clobbers): Likewise.
15204         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15205         (strlen_optimize_stmt): Likewise.
15207 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
15209         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15210         (vld1q_dup_*): Likewise.
15211         (vld1_*): Likewise.
15212         (vld1q_*): Likewise.
15213         (vld1_lane_*): Likewise.
15214         (vld1q_lane_*): Likewise.
15216 2013-01-07  Richard Biener  <rguenther@suse.de>
15218         * lto-streamer.h (LTO_minor_version): Bump to 2.
15220 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
15222         * config/aarch64/aarch64-protos.h
15223         (aarch64_const_double_zero_rtx_p): Rename to...
15224         (aarch64_float_const_zero_rtx_p): ...this.
15225         (aarch64_float_const_representable_p): New.
15226         (aarch64_output_simd_mov_immediate): Likewise.
15227         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15228         move immediate case.
15229         * config/aarch64/aarch64.c
15230         (aarch64_const_double_zero_rtx_p): Rename to...
15231         (aarch64_float_const_zero_rtx_p): ...this.
15232         (aarch64_print_operand): Allow printing of new constants.
15233         (aarch64_valid_floating_const): New.
15234         (aarch64_legitimate_constant_p): Check for valid floating-point
15235         constants.
15236         (aarch64_simd_valid_immediate): Likewise.
15237         (aarch64_vect_float_const_representable_p): New.
15238         (aarch64_float_const_representable_p): Likewise.
15239         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15240         (aarch64_output_simd_mov_immediate): New.
15241         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15242         (*movdf_aarch64): Likewise.
15243         * config/aarch64/constraints.md (Ufc): New.
15244         (Y): call aarch64_float_const_zero_rtx.
15245         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15247 2013-01-07  Richard Biener  <rguenther@suse.de>
15249         PR tree-optimization/55888
15250         PR tree-optimization/55862
15251         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15252         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15253         not if it is contained therein.
15255 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
15257         * config/avr/t-avr: Typo.
15259 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
15261         PR55243
15262         * config/avr/t-avr: Don't automatically rebuild
15263         $(srcdir)/config/avr/t-multilib
15264         $(srcdir)/config/avr/avr-tables.opt
15265         $(srcdir)/doc/avr-mmcu.texi
15266         (avr-mcus): New phony target to build them on request.
15267         (s-avr-mlib, s-avr-mmcu-texi): Remove.
15268         * avr/avr-mcus.def: Adjust comments.
15270 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
15272         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15274 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15276         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15278 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15280         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15282 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
15284         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15285         to generate profiling.
15286         * config/rs6000/aix64.h (LIB_SPEC): Same.
15288 2013-01-04  Andrew Pinski  <apinski@cavium.com>
15290         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15291         New function.
15292         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15294 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
15296         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15297         unconditionally.
15298         (ix86_expand_move): Ditto.
15299         (ix86_zero_extend_to_Pmode): Ditto.
15300         (ix86_expand_call): Ditto.
15301         (ix86_expand_special_args_builtin): Ditto.
15302         (ix86_expand_builtin): Ditto.
15304 2013-01-04  Richard Biener  <rguenther@suse.de>
15306         PR tree-optimization/55862
15307         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15308         translating them through PHI nodes.
15310 2013-01-04  Martin Jambor  <mjambor@suse.cz>
15312         PR tree-optimization/55755
15313         * tree-sra.c (sra_modify_assign): Do not check that an access has no
15314         children when trying to avoid producing a VIEW_CONVERT_EXPR.
15316 2013-01-04  Marek Polacek  <polacek@redhat.com>
15318         PR middle-end/55859
15319         * opts.c (default_options_optimization): Clarify error message.
15321 2013-01-04  Richard Biener  <rguenther@suse.de>
15323         PR middle-end/55863
15324         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15325         reassociation.
15327 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15329         PR target/53789
15330         * config/pa/pa.md (movsi): Revert previous change.
15331         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15332         references.
15334 2013-01-03  Richard Henderson  <rth@redhat.com>
15336         * config/i386/i386.c (ix86_expand_move): Always assign to op1
15337         after eliminating TLS symbols.
15339 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
15341         PR bootstrap/50167
15342         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15343         * graphite-poly.c (debug_gmp_value): Likewise.
15345 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
15347         PR target/55712
15348         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15349         selected code model, define __code_mode_small__, __code_model_medium__,
15350         __code_model_large__, __code_model_32__ or __code_model_kernel__.
15351         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15352         xchg temporary register with %k.  Declare temporary register as
15353         early clobbered.
15354         [__x86_64__]: For medium and large code models, preserve %rbx register.
15356 2013-01-03  Richard Biener  <rguenther@suse.de>
15358         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15359         (dump_subscript): Adjust.
15360         (finalize_ddr_dependent): Do not dump redundant info.
15361         (analyze_siv_subscript): Adjust.
15362         (subscript_dependence_tester): Likewise.
15363         (compute_affine_dependence): Likewise.
15365 2013-01-03  Richard Biener  <rguenther@suse.de>
15367         Revert
15368         2013-01-03  Richard Biener  <rguenther@suse.de>
15370         PR tree-optimization/55857
15371         * tree-vect-stmts.c (vectorizable_load): Do not setup
15372         re-alignment for invariant loads.
15374         2013-01-02  Richard Biener  <rguenther@suse.de>
15376         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15377         invariant load do not generate a vector load from the scalar location.
15379 2013-01-03  Richard Biener  <rguenther@suse.de>
15381         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15382         for not vectorizing.
15383         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15384         not build INDIRECT_REFs, call get_name once only.
15385         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
15386         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15388 2013-01-03  Richard Biener  <rguenther@suse.de>
15390         PR tree-optimization/55857
15391         * tree-vect-stmts.c (vectorizable_load): Do not setup
15392         re-alignment for invariant loads.
15394 2013-01-03  Richard Biener  <rguenther@suse.de>
15396         PR lto/55848
15397         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15398         prefer a built-in decl.
15400 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15402         * gcc.c (process_command): Update copyright notice dates.
15403         * gcov.c (print_version): Likewise.
15404         * gcov-dump.c (print_version): Likewise.
15406         PR rtl-optimization/55838
15407         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15408         iv0.step, iv1.step and step.
15410 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15411             Marc Glisse  <marc.glisse@inria.fr>
15413         PR tree-optimization/55832
15414         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15415         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15416         integer_{one,zero}_node.
15418 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
15420         PR debug/54402
15421         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15422         * var-tracking.c (reverse_op): Don't add reverse ops to
15423         VALUEs that have already
15424         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15426 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
15428         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15430 2013-01-02  Teresa Johnson  <tejohnson@google.com>
15432         * dumpfile.c (dump_loc): Print filename with location.
15433         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15434         new location_t parameter to emit complete unroll message with
15435         new dump framework.
15436         (canonicalize_loop_induction_variables): Compute loops location
15437         and pass to try_unroll_loop_completely.
15438         * loop-unroll.c (report_unroll_peel): New function.
15439         (peel_loops_completely): Use new dump format with location
15440         for main dumpfile message, and invoke report_unroll_peel on success.
15441         (decide_unrolling_and_peeling): Ditto.
15442         (decide_peel_once_rolling): Remove old dumpfile message subsumed
15443         by report_unroll_peel.
15444         (decide_peel_completely): Ditto.
15445         (decide_unroll_constant_iterations): Ditto.
15446         (decide_unroll_runtime_iterations): Ditto.
15447         (decide_peel_simple): Ditto.
15448         (decide_unroll_stupid): Ditto.
15449         * cfgloop.c (get_loop_location): New function.
15450         * cfgloop.h (get_loop_location): Declare.
15452 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
15454         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15455         NULL.
15457 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15459         PR middle-end/55198
15460         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15461         BLKmode objects when EXPAND_MEMORY is specified.
15463 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
15465         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15466         in loop predicate.
15467         (fold_builtin_cpu): Do not share cpu model decls across statements.
15469 2013-01-02  Jason Merrill  <jason@redhat.com>
15471         PR c++/55804
15472         * tree.c (build_array_type_1): Revert earlier change.
15474 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
15476         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15477         "cortex-a57".
15478         * config/aarch64/aarch64-tune.md: Re-generate.
15480 2013-01-02  Richard Biener  <rguenther@suse.de>
15482         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15483         invariant load do not generate a vector load from the scalar location.
15485 2013-01-02  Richard Biener  <rguenther@suse.de>
15487         PR bootstrap/55784
15488         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15489         * configure: Regenerate.
15491 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15493         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15494         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15495         (expand_builtin_int_roundingfn_2): Keep the original target around
15496         for the fallback case.
15498 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
15500         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15501         to be clear for sign changes.
15503 2013-01-01  Jan Hubicka  <jh@suse.cz>
15505         * ipa-inline-analysis.c: Fix formatting.
15507 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
15509         PR tree-optimization/55831
15510         * tree-vect-loop.c (get_initial_def_for_induction): Use
15511         gsi_after_labels instead of gsi_start_bb.
15513 Copyright (C) 2013 Free Software Foundation, Inc.
15515 Copying and distribution of this file, with or without modification,
15516 are permitted in any medium without royalty provided the copyright
15517 notice and this notice are preserved.