1 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
3 * config/sh/sh.md: Use braced string notation where applicable.
5 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
7 * config/i386/i386.md (allocate_stack): Simplify.
9 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
11 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
12 copy_to_mode_reg (Pmode, ...).
13 (expand_builtin_frame_address): Ditto.
14 * expr.c (emit_block_move_via_libcall): Ditto.
15 (set_storage_via_libcall): Ditto.
17 * config/i386/i386.c (ix86_expand_movmem): Ditto.
18 (ix86_expand_setmem): Ditto.
19 (ix86_trampoline_init): DItto.
20 * config/i386/i386.md (cmpstrnsi): Ditto.
22 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
24 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
25 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
26 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
27 (SH Options): Likewise.
29 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
31 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
32 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
33 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
34 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
35 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
38 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
40 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
41 * config/i386/i386.c (ix86_decompose_address): Use
42 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
43 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
44 thread pointer to a register.
47 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
49 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
50 if Pmode != word_mode.
51 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
52 Pmode == SImode for TARGET_X32.
54 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
55 (tls_initial_exec_x32): Likewise.
57 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
60 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
61 DISP_ADDR_OFFSET): New macros.
62 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
63 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
64 (sh_legitimize_address): Add QImode displacement handling.
65 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
67 (sh_secondary_reload): Add QImode displacement handling.
68 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
69 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
70 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
71 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
72 to register operands only.
73 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
74 (extendqihi2): Change insn to expander.
75 (*extendqihi2_compact_reg): New insn.
76 (movqi_i, movqi): Replace with ...
77 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
78 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
79 Add new peepholes for QImode displacement addressing.
81 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
84 * doc/invoke.texi: Document -Wuseless-cast.
86 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
88 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
89 * tree.h (handled_component_p): Reorder cases.
90 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
91 not initialize unsignedp.
92 (loc_list_from_tree): Likewise.
93 (fortran_common): Likewise.
94 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
96 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
98 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
99 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
100 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
101 (ix86_split_long_move): Ditto.
102 (legitimize_tls_address): Use ix86_gen_sub3.
103 (construct_plt_address): Assert that Pmode == DImode.
105 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
107 * config/i386/i386.md: Remove empty predicates and/or constraints.
108 * config/i386/sync.md: Ditto.
109 * config/i386/sse.md: Ditto.
110 * config/i386/mmx.md: Ditto.
111 * config/i386/pentium.md: Ditto.
112 * config/i386/athlon.md: Ditto.
114 2012-03-16 Richard Guenther <rguenther@suse.de>
116 PR tree-optimization/52603
117 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
121 2012-03-14 Richard Guenther <rguenther@suse.de>
123 PR tree-optimization/52571
124 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
125 flag_section_anchors check ...
126 (vect_can_force_dr_alignment_p): ... here.
128 2012-03-16 Martin Jambor <mjambor@suse.cz>
130 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
131 memory through MEM_REFs by calling extract_bit_field.
133 2012-03-16 Richard Guenther <rguenther@suse.de>
135 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
136 and REFERENCE_TYPE interpretations.
137 (can_native_interpret_type_p): New function.
138 (fold_ternary_loc): Use native encode/interpret to fold
139 BIT_FIELD_REFs of constants.
141 2012-03-16 Richard Guenther <rguenther@suse.de>
144 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
145 of vector constants and constructors.
147 2012-03-16 Richard Guenther <rguenther@suse.de>
149 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
150 VIEW_CONVERT_EXPR to convert constants.
151 (vect_is_simple_use): Treat all constants as vec_constant_def.
153 2012-03-16 Richard Guenther <rguenther@suse.de>
154 Kai Tietz <ktietz@redhat.com>
157 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
158 side-effects completely in the pre-queue and use a temporary
161 2012-03-16 Richard Guenther <rguenther@suse.de>
163 * stor-layout.c (finish_bitfield_representative): Fall back
164 to the conservative maximum size if we cannot compute the
165 size of the tail padding.
167 2012-03-16 Tristan Gingold <gingold@adacore.com>
169 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
170 __CRTL_VER and __VMS_VER.
171 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
172 and vms_c_get_vms_ver.
173 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
175 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
176 (VMS_DEFAULT_VMS_VER): Define.
177 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
178 (VMS_DEFAULT_VMS_VER): Define.
180 2012-03-16 Richard Guenther <rguenther@suse.de>
182 * tree-vect-loop.c (get_initial_def_for_induction): Use
183 build_constructor directly.
184 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
185 build_vector_from_val.
186 * tree.c (build_vector_from_val): Avoid creating a constructor
187 first when we want a constant vector.
189 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
191 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
193 2012-03-16 Richard Guenther <rguenther@suse.de>
195 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
196 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
197 (struct tree_vector): Remove elements member, add variable size
199 (build_vector_stat): Declare.
200 (build_vector): Define in terms of build_vector_stat.
201 * tree.c (build_vector): Rename to ...
202 (build_vector_stat): ... this. Take array of trees as parameter.
203 (build_vector_from_ctor): Adjust.
204 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
205 initializer_zerop): Adjust.
206 * cfgexpand.c (expand_debug_expr): Likewise.
207 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
208 const_vector_from_tree): Likewise.
209 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
210 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
211 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
212 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
213 (lto_input_ts_vector_tree_pointers): Adjust.
214 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
215 (write_ts_vector_tree_pointers): Adjust.
216 * varasm.c (const_hash_1, compare_constant, copy_constant,
217 output_constant): Adjust.
218 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
219 * print-tree.c (print_node): Adjust.
220 * tree-pretty-print.c (dump_generic_node): Adjust.
221 * tree-vect-generic.c (uniform_vector_p, vector_element,
222 lower_vec_perm): Adjust.
223 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
224 * tree-vect-slp.c (vect_get_constant_vectors,
225 vect_transform_slp_perm_load): Adjust.
226 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
227 * expmed.c (make_tree): Adjust.
228 * config/i386/i386.c (ix86_expand_builtin): Adjust.
229 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
231 (sparc_fold_builtin): Adjust.
233 2012-03-16 Tristan Gingold <gingold@adacore.com>
235 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
236 * config/vms/vms-stdint.h: New file.
238 2012-03-16 Tristan Gingold <gingold@adacore.com>
240 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
241 (ia64-hp-*vms*): Replaced by ...
242 (*-*-*vms*): ... This new entry.
244 2012-03-15 Jakub Jelinek <jakub@redhat.com>
247 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
248 (ix86_expand_vec_perm_const_1): Use it.
251 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
252 (avx2_permv4df): Remove.
253 (avx2_permv4di): Macroize into...
254 (avx2_perm<mode>): ... this using VI8F_256 iterator.
255 (avx2_permv4di_1): Macroize into...
256 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
258 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
260 * combine.c (apply_distributive_law): Do not distribute SUBREG.
262 2012-03-15 Ira Rosen <irar@il.ibm.com>
263 Ulrich Weigand <ulrich.weigand@linaro.org>
265 * tree-vect-patterns.c (widened_name_p): Rename to ...
266 (type_conversion_p): ... this. Add new argument to determine
267 if it's a promotion or demotion operation. Check for
268 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
269 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
271 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
272 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
274 (vect_recog_mixed_size_cond_pattern): Likewise and allow
275 non-constant then and else clauses.
277 2012-03-15 Ira Rosen <irar@il.ibm.com>
278 Ulrich Weigand <ulrich.weigand@linaro.org>
280 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
281 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
283 * tree-vect-patterns.c (widened_name_p): Pass basic block
284 info to vect_is_simple_use.
285 (vect_recog_dot_prod_pattern): Fail for basic blocks.
286 (vect_recog_widen_sum_pattern): Likewise.
287 (vect_handle_widen_op_by_const): Support basic blocks.
288 (vect_operation_fits_smaller_type,
289 vect_recog_over_widening_pattern): Likewise.
290 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
291 Update call to vect_is_simple_use.
292 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
294 (check_bool_pattern): Add an argument, update call to
295 vect_is_simple_use and the recursive calls.
296 (vect_recog_bool_pattern): Update relevant function calls.
298 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
299 (vect_pattern_recog_1): Check for reduction only in loops.
300 (vect_pattern_recog): Add new argument. Support basic blocks.
301 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
302 info to vect_is_simple_use_1.
303 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic
305 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
307 2012-03-15 Jakub Jelinek <jakub@redhat.com>
308 Andrew Pinski <apinski@cavium.com>
311 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
312 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
313 calls instead of __builtin_ir{int,ound}*.
315 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
317 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
320 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
322 * config.gcc (target_type_format_char): New. Document it. Set it for
324 * configure.ac (gnu_unique_option): Use target_type_format_char
325 in test. Comment rationale.
326 * configure: Regenerate .
328 2012-03-15 Jakub Jelinek <jakub@redhat.com>
330 PR tree-optimization/52267
331 * tree-vrp.c (masked_increment): New function.
332 (register_edge_assert_for_2): Derive ASSERT_EXPRs
333 from (X & CST1) cmp CST2 tests.
335 2012-03-15 Richard Guenther <rguenther@suse.de>
338 * tree-data-ref.c (subscript_dependence_tester_1): Check
339 all dimensions for non-conflicting access functions.
341 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
344 * doc/invoke.texi [C++ Language Options]: Document
345 -ftemplate-backtrace-limit.
347 2012-03-15 Tristan Gingold <gingold@adacore.com>
349 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
352 2012-03-15 Tristan Gingold <gingold@adacore.com>
354 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
355 use DW_OP_call_frame_cfa.
357 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
360 * config/i386/i386-opts.h (pmode): New.
362 * config/i386/i386.c (ix86_option_override_internal): Properly
363 check and set ix86_pmode.
365 * config/i386/i386.h (Pmode): Check ix86_pmode instead of
368 * config/i386/i386.opt (maddress-mode=): New.
370 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
372 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
375 (dwarf2out_do_cfi_asm): Likewise.
376 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
378 (add_data_member_location_attribute): Likewise.
379 (gen_array_type_die): Likewise.
380 (gen_subprogram_die): Likewise.
381 (gen_producer_string): Likewise.
382 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
383 Remove MIPS_DEBUGGING_INFO handling.
384 (sdb_debug_hooks): Likewise.
385 (sdbout_begin_block): Likewise.
386 (sdbout_end_block): Likewise.
387 (sdbout_begin_prologue): Likewise.
388 (sdbout_start_source_file): Likewise.
389 (sdbout_end_source_file): Likewise.
390 (sdbout_init): Likewise.
391 * system.h (MIPS_DEBUGGING_INFO): Poison.
393 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
395 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
396 (alpha_file_start) [MS_STAMP]: Remove.
398 * config/alpha/elf.h (TARGET_GAS): Remove.
399 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
400 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
401 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
402 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
403 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
404 (alpha*-*-freebsd*): Likewise.
405 (alpha*-*-netbsd*): Likewise.
406 (alpha*-*-openbsd*): Likewise.
407 (alpha*-*-*): Remove target_cpu_default2.
408 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
410 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
411 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
412 * config/alpha/alpha.c (print_operand): Always assume
413 TARGET_AS_SLASH_BEFORE_SUFFIX.
414 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
415 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
416 ("*builtin_setjmp_receiver_er_1"): Remove.
417 * config/alpha/alpha.opt (malpha-as): Remove.
419 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
421 Remove DEC Unix reference.
423 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
424 (EXTENDED_COFF): Remove.
425 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
426 (EXTENDED_COFF): Don't undef.
427 * config/alpha/alpha.c (alpha_file_start): Always assume
429 Don't set targetm.asm_file_start_file_directive.
430 [!OBJECT_FORMAT_ELF]: Remove.
431 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
433 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
434 (DBX_DEBUGGING_INFO): Remove.
435 (MIPS_DEBUGGING_INFO): Remove.
436 (PREFERRED_DEBUGGING_TYPE): Remove.
437 (DBX_OUTPUT_SOURCE_LINE): Remove.
438 (SDB_OUTPUT_SOURCE_LINE): Remove.
439 (DBX_CONTIN_LENGTH): Remove.
440 (NO_DBX_FUNCTION_END): Remove.
441 (ASM_STABS_OP): Remove.
442 (ASM_STABN_OP): Remove.
443 (ASM_STABD_OP): Remove.
444 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
445 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
446 (PUT_SDB_DEF): Remove.
447 (PUT_SDB_PLAIN_DEF): Remove.
448 (PUT_SDB_TYPE): Remove.
449 (sdb_label_count): Remove.
450 (PUT_SDB_BLOCK_START): Remove.
451 (PUT_SDB_BLOCK_END): Remove.
452 (PUT_SDB_FUNCTION_START): Remove.
453 (PUT_SDB_FUNCTION_END): Remove.
454 (PUT_SDB_EPILOGUE_END): Remove.
455 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
456 (MIPS_DEBUGGING_INFO): Don't undef.
457 (DBX_DEBUGGING_INFO): Don't undef.
458 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
459 (MIPS_DEBUGGING_INFO): Don't undef.
460 (DBX_DEBUGGING_INFO): Don't undef.
461 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
462 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
464 (alpha_start_function): Likewise.
465 (sdb_label_count): Remove.
466 (alpha_output_filename): Remove DBX_DEBUG handling.
467 (alpha_file_start): Likewise.
469 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
472 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
473 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
475 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
476 (ld_tls_support): Remove Solaris 8 references.
477 (lwp_dir, lwp_spec): Remove support for alternate thread library.
478 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
479 * configure: Regenerate.
480 * config.in: Regenerate.
482 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
483 * config/i386/sol2.h: Remove Solaris 8 references.
485 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
486 (i?86-*-solaris2.9): ... this.
487 Remove Solaris 8 references.
488 (Specific, *-*-solaris2*): Document Solaris 8 removal.
489 Remove Solaris 8 references.
491 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
494 (mips-sgi-irix6.5*): Remove.
495 * config.host (mips-sgi-irix*): Remove.
496 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
497 (set_have_as_tls): Remove *-*-irix6*.
498 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
499 * configure: Regenerate.
501 * config/mips/iris6.h: Remove.
502 * config/mips/iris6.opt: Remove.
503 * config/mips/t-irix6: Remove.
505 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
506 (TARGET_IRIX6): Remove.
507 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
508 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
509 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
511 (mips_file_start): Likewise.
512 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
514 * config/mips/driver-native.c [__sgi__]: Remove.
515 (host_detect_local_cpu) [__sgi__]: Remove.
517 * config/mips/gnu-user.h: Remove iris5.h reference.
519 * config/mips/mips-modes.def: Remove IRIX 6 reference.
520 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
521 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
524 * gcc.c (main): Move asm_debug initialization ...
525 (asm_debug): ... here.
527 * ginclude/stddef.h (__STDDEF_H__): Don't define.
529 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
530 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
531 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
532 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
533 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
534 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
536 * doc/tm.texi: Regenerate.
538 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
540 (MIPS Options, -march): Remove IRIX reference.
541 * doc/install.texi (Binaries, SGI IRIX): Remove.
542 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
544 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
546 2012-03-14 Martin Jambor <mjambor@suse.cz>
548 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
549 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
550 (expand_expr_real_1): Do not handle misalignment if modifier is
553 2012-03-14 Richard Guenther <rguenther@suse.de>
556 * tree-vect-generic.c (type_for_widest_vector_mode): Take
557 element type instead of mode, use build_vector_type_for_mode
558 instead of the langhook, build a vector of proper signedness.
559 (expand_vector_operations_1): Adjust.
561 2012-03-14 Richard Guenther <rguenther@suse.de>
564 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
565 a cgraph node for a FUNCTION_DECL that comes from a constructor.
566 (gimple_get_virt_method_for_binfo): Likewise.
568 2012-03-14 Richard Guenther <rguenther@suse.de>
570 PR tree-optimization/52571
571 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
572 flag_section_anchors check ...
573 (vect_can_force_dr_alignment_p): ... here. Do not re-align
574 DECL_COMMON variables.
576 2012-03-14 Richard Guenther <rguenther@suse.de>
578 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
579 * stor-layout.c (start_bitfield_representative): New function.
580 (finish_bitfield_representative): Likewise.
581 (finish_bitfield_layout): Likewise.
582 (finish_record_layout): Call finish_bitfield_layout.
583 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
584 for QUAL_UNION_TYPE fields.
585 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
586 Stream DECL_BIT_FIELD_REPRESENTATIVE.
587 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
592 * expr.c (get_bit_range): Unconditionally extract bitrange
593 from DECL_BIT_FIELD_REPRESENTATIVE.
594 (expand_assignment): Adjust call to get_bit_range.
596 2012-03-14 Richard Guenther <rguenther@suse.de>
599 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
600 the outermost conversion is a sign-change only.
601 (fold_binary_loc): Disregard widening and sign-changing
602 conversions when we determine if two variables are equal
604 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
605 (T1)x if the outermost conversion is a sign-change only.
607 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
610 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
612 * config/i386/predicates.md (constant_call_address_operand): Declare
613 as special predicate. Update all uses.
615 2012-03-13 Jakub Jelinek <jakub@redhat.com>
618 * c-parser.c (c_parser_postfix_expression)
619 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
621 * config/i386/smmintrin.h: Avoid /* within a comment.
622 * config/i386/nmmintrin.h: Likewise.
624 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
626 * config/i386/i386.md (xbegin): Remove constraint from expander.
628 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
630 * config/i386/predicates.md (constant_call_address_operand): Declare
631 as special predicate. Update all uses.
632 * config/i386/i386.md: Remove mode from constant_call_address_operand
634 * config/i386/i386.c (ix86_output_call_insn): Call
635 constant_call_address_operand with VOIDmode.
637 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
640 AND zero extended address correctly.
642 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
644 * config/i386/predicates.md (tls_symbolic_operand): Declare as
646 (tls_modbase_operand): Ditto.
647 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
648 tls_modbase_operand predicates.
650 2012-03-13 Martin Jambor <mjambor@suse.cz>
652 * expr.c (expand_assignment): Handle misaligned scalar writes to
653 memory through top-level MEM_REFs by calling store_bit_field.
655 2012-03-13 Richard Guenther <rguenther@suse.de>
658 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
659 if Y is a constant multiple of 1 << CST.
661 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
664 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
665 offset (size) to a value the insns can deal with.
666 (expand_epilogue): Ditto.
668 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
670 * config/arm/neon.ml (ops): Fixup expected instructions for
671 unsigned vector compares.
673 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
675 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
676 addresses only when %reg is not in word mode.
678 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
680 * config/microblaze/microblaze.md: Fix typo.
681 * tree-if-conv.c: Likewise.
682 * tree-vect-patterns.c: Likewise.
684 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686 * config.gcc (extra_passes): Remove.
687 * configure.ac (extra_passes): Don't substitute.
688 * configure: Regenerate.
689 * Makefile.in (EXTRA_PASSES): Remove.
690 (GCC_PASSES): Remove $(EXTRA_PASSES).
691 (MOSTLYCLEANFILES): Likewise.
693 (install-common): Likewise.
695 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
697 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
698 * config/i386/i386.c (ix86_decompose_address): Use
699 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
700 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
701 thread pointer to a register.
703 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
705 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
706 on tls_symbolic_operand.
707 (tls_global_dynamic_64_<mode>): Likewise.
709 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
712 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
713 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
715 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
718 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
719 type from reg_class_t to enum reg_class.
720 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
722 2012-03-12 Andrew Pinski <apinski@cavium.com>
724 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
725 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
726 (value_replacement): Likewise.
727 (empty_block_p): Check also if the PHIs for the block are empty.
729 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
732 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
733 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
734 r184615 from 2012-02-28.
736 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
738 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
739 (ix86_gen_tls_local_dynamic_base_64): Likewise.
740 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
741 and ix86_gen_tls_local_dynamic_base_64.
742 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
743 ix86_gen_tls_local_dynamic_base_64.
745 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
746 (*tls_global_dynamic_64_<mode>): This.
747 (tls_global_dynamic_64): Renamed to ...
748 (tls_global_dynamic_64_<mode>): This.
749 (*tls_local_dynamic_base_64): Renamed to ...
750 (*tls_local_dynamic_base_64_<mode>): This.
751 (tls_local_dynamic_base_64): Renamed to ...
752 (tls_local_dynamic_base_64_<mode>): This.
754 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
756 * config/i386/i386.c (ix86_option_override_internal): Properly
757 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
758 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
759 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
760 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
762 * config/i386/sse.md (sse3_monitor64): Renamed to ...
763 (sse3_monitor64_<mode>): This.
765 2012-03-12 Tristan Gingold <gingold@adacore.com>
767 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
768 (ia64_function_arg_advance): Ditto.
770 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
772 * config.gcc (mips*-*-openbsd*): Remove.
773 * config/mips/openbsd.h: Remove.
774 * config/mips/sdb.h: Remove.
776 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
777 * config/mips/mips.c (sdb_label_count): Remove.
778 (mips_debugger_offset): Remove #if 0 code.
779 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
780 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
782 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
786 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
787 Update binutils references.
788 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
789 Update binutils reference.
790 Update Sun as/GNU ld caveat.
791 Document binutils largefile requirement for LTO plugin.
792 Remove reference to alternate libpthread.
794 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
796 * config.gcc (alpha*-dec-osf5.1*): Remove.
797 * config.host (alpha*-dec-osf*): Remove.
798 * configure.ac (*-*-osf*): Remove.
799 (alpha*-dec-osf*): Remove.
800 * configure: Regenerate.
802 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
803 config/alpha/va_list.h, config/alpha/x-osf: Remove.
805 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
806 * config/alpha/alpha.c (struct machine_function): Update comment.
807 (alpha_start_function): Remove Tru64 UNIX as handling for
809 * config/alpha/alpha.md ("exception_receiver"): Remove
810 TARGET_LD_BUGGY_LDGP.
811 ("*exception_receiver_2"): Likewise.
812 * except.c (finish_eh_generation): Remove Tru64 reference.
813 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
814 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
815 * target.def (handle_pragma_extern_prefix): Remove.
817 * Makefile.in (mips-tfile.o-warn): Remove.
818 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
819 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
820 * mips-tdump.c, mips-tfile.c: Remove.
822 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
824 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
825 (Specific, alpha*-dec-osf5.1): Note removal.
826 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
828 * doc/tm.texi: Regenerate.
829 * doc/trouble.texi (Cross-Compiler Problems): Remove.
831 2012-03-12 Richard Guenther <rguenther@suse.de>
833 * config/arm/arm.c (neon_dereference_pointer): Do not call
834 covert during RTL expansion.
836 2012-03-12 Tristan Gingold <gingold@adacore.com>
838 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
839 Options. Mention -mpointer-size.
841 2012-03-12 Richard Guenther <rguenther@suse.de>
843 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
844 build_nonstandard_integer_type.
846 2012-03-12 Richard Guenther <rguenther@suse.de>
848 * tree.c (signed_or_unsigned_type_for): Use
849 build_nonstandard_integer_type.
850 (signed_type_for): Adjust documentation.
851 (unsigned_type_for): Likewise.
852 * tree-pretty-print.c (dump_generic_node): Use standard names
853 for non-standard integer types if available.
855 2012-03-12 Tristan Gingold <gingold@adacore.com>
857 * config/vms/vms.opt: Add vms-opts.h header.
858 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
860 (-mvms-return-codes): Document.
861 (-mpointer-size): New option.
862 (vms_pointer_size): Add enumeration.
863 * config/vms/vms-opts.h: New file.
864 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
865 __INITIAL_POINTER_SIZE.
866 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
867 (C_COMMON_OVERRIDE_OPTIONS): Define.
868 (DWARF2_ADDR_SIZE): Define.
869 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
870 * config/vms/vms-protos.h (vms_c_common_override_options):
872 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
873 if -mno-pointer-size.
874 (vms_c_common_override_options): New function.
875 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
876 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
877 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
878 and flag_vms_pointer_size.
879 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
880 * config.gcc (*-*-*vms*): Define xm_file.
881 (alpha*-dec-*vms*): Do not define xm_file.
882 (alpha64-dec-*vms*): Remove.
883 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
886 2012-03-12 Jakub Jelinek <jakub@redhat.com>
888 PR tree-optimization/51721
889 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
890 if (int) unsvar cmp CST.
892 2012-03-12 Richard Guenther <rguenther@suse.de>
894 * tree-sra.c (create_access_replacement): Only rename the replacement
895 if we can rewrite it into SSA form. Properly mark register typed
896 replacements that we cannot rewrite with TREE_ADDRESSABLE.
897 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
898 for aggregate or BLKmode results.
900 2012-03-12 Jakub Jelinek <jakub@redhat.com>
902 PR tree-optimization/52533
903 * tree-vrp.c (register_edge_assert_for_2): Use double_int
904 type for mask, only handle shifts by non-zero in-range
905 shift count, for LE_EXPR and GT_EXPR if new_val is
906 maximum, don't add the assertion.
908 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
910 * doc/invoke.texi: Document -mrtm option.
911 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
912 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
913 (ix86_handle_option): Handle OPT_mrtm.
914 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
917 * i386-builtin-types.def (INT_FTYPE_VOID): New.
918 * config/i386/i386-c.c (ix86_target_macros_internal): Define
920 (ix86_target_string): Define -mrtm option.
922 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
924 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
925 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
927 (bdesc_special_args): Ditto.
928 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
929 (ix86_expand_special_args_builtin): Handle new built-in type.
930 (ix86_expand_builtin): Handle XABORT instruction.
931 * config/i386/i386.h (TARGET_RTM): New.
932 * config/i386/i386.md (UNSPECV_XBEGIN): New.
933 (UNSPECV_XEND): Ditto.
934 (UNSPECV_XABORT): Ditto.
935 (UNSPECV_XTEST): Ditto.
942 * config/i386/i386.opt (mrtm): New.
943 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
944 * config/i386/rtmintrin.h: New header.
945 * config/i386/xtestintrin.h: Ditto.
947 2012-03-12 Tristan Gingold <gingold@adacore.com>
949 * ginclude/stddef.h: Adjust previous patch.
950 Use __VMS__ instead of VMS.
952 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
954 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
955 Also convert sequences with CC setting arithmetic instruction.
957 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
959 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
960 from C Language Options to Preprocessor Options.
961 (C Dialect Options): Move -no-integrated-cpp documentation
963 (Preprocessor Options): ...to here. Rewrite the description
964 so it makes more sense, and remove discussion of merging front ends.
966 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
968 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
970 (ix86_expand_setmem): Likewise.
972 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
974 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
977 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
979 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
980 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
982 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
984 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
986 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
988 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
991 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
992 Uros Bizjak <ubizjak@gmail.com>
994 * config/i386/predicates.md (call_insn_operand): Allow
995 constant_call_address_operand in Pmode only.
996 (sibcall_insn_operand): Ditto.
997 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
998 (*call_vzeroupper): Ditto.
1000 (*sibcall_vzeroupper): Ditto.
1001 (*call_value): Ditto.
1002 (*call_value_vzeroupper): Ditto.
1003 (*sibcall_value): Ditto.
1004 (*sibcall_value_vzeroupper): Ditto.
1005 (*indirect_jump): Ditto.
1006 (*tablejump_1): Ditto.
1007 (indirect_jump): Convert memory address to word mode for TARGET_X32.
1009 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
1012 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
1015 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
1016 Use movrt_negc instead of negc pattern for non-SH2A.
1018 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
1020 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
1022 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
1023 if Pmode != word_mode.
1024 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
1025 Pmode == SImode for TARGET_X32.
1027 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
1028 (tls_initial_exec_x32): Likewise.
1030 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
1032 PR rtl-optimization/52528
1033 * combine.c (can_combine_p): Add setting of subst_low_luid
1034 before call to expand_field_assignment().
1036 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
1038 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
1039 and related program names.
1041 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
1043 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
1045 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
1048 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
1049 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
1051 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
1052 (*movdi_internal_rex64): Use %E operand modifier for lea.
1053 (*movsi_internal): Ditto.
1055 (*lea<mode>_2): Ditto.
1056 (*lea_{3,4,5,6}_zext): Ditto.
1057 (*tls_global_dynamic_32_gnu): Ditto.
1058 (*tls_global_dynamic_64): Ditto.
1059 (*tls_dynamic_gnu2_lea_32): Ditto.
1060 (*tls_dynamic_gnu2_lea_64): Ditto.
1061 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
1063 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1065 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
1066 redefine to be NULL if the current bit-size is different from the
1067 configured bit-size.
1069 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
1070 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
1071 set the default tuning. Add asserts to make sure the cpu and tune
1072 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
1073 test whether the index is set, instead of > 0.
1074 (rs6000_file_start): Do not reset the default cpu if the current
1075 bit-size is different from the configured bit-size.
1077 2012-03-09 Tristan Gingold <gingold@adacore.com>
1079 * config/vms/vms-crtlmap.map: Add comments.
1080 Add entries needed to build Ada RTS.
1082 2012-03-09 Tristan Gingold <gingold@adacore.com>
1084 * ginclude/stddef.h: Do not define __size_t on VMS.
1086 2012-03-09 Tristan Gingold <gingold@adacore.com>
1088 * c-tree.h (c_default_pointer_mode): New variable.
1089 * c-decl.c (c_default_pointer_mode): New variable.
1090 (c_build_pointer_type): New function.
1091 (grokdeclarator): Call c_build_pointer_type instead
1092 of build_pointer_type.
1094 * config/vms/vms-c.c: Include c-tree.h
1095 (saved_pointer_mode): New variable.
1096 (handle_pragma_pointer_size): New function.
1097 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
1098 (vms_c_register_pragma): Register __pointer_size and
1099 __required_pointer_size pragmas.
1101 2012-03-09 Tristan Gingold <gingold@adacore.com>
1103 * config/vms/vms-c.c (vms_construct_include_filename): New function.
1104 (vms_c_register_includes): Reference it.
1106 2012-03-09 Andrew Pinski <apinski@cavium.com>
1109 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
1111 (tree_ssa_phiopt_worker): Go through all the PHIs for
1112 value_replacement instead of just the singleton one.
1113 (value_replacement): Change return type to int. Return 0 instead of
1115 Allow the middle basic block to contain more than just the defining
1117 Handle non empty middle basic blocks.
1118 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
1120 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
1122 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
1123 array reference and component reference.
1124 (analyze_scalar_evolution_for_address_of): New.
1126 2012-03-08 Jie Zhang <jzhang918@gmail.com>
1129 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
1130 (hwloop_pattern_reg): Fix set but not used warning.
1131 (bfin_reorg_loops): Remove unused parameter.
1132 (bfin_reorg): Update use of bfin_reorg_loops.
1134 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
1136 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
1137 with integer parameters in registers.
1138 (gen_push): Push register in word_mode instead of Pmode.
1139 (ix86_emit_save_regs): Likewise.
1140 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
1141 (gen_pop): Pop register in word_mode instead of Pmode.
1142 (ix86_emit_restore_regs_using_pop): Likewise.
1143 (ix86_expand_prologue): Replace Pmode with word_mode for push
1144 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
1145 restore RAX and R10 in word_mode.
1146 (ix86_emit_restore_regs_using_mov): Restore integer registers
1148 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
1150 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
1151 (ix86_split_long_move): Likewise.
1153 * config/i386/i386.md (W): New.
1154 (*push<mode>2_prologue): Replace :P with :W.
1155 (*pop<mode>1): Likewise.
1156 (*pop<mode>1_epilogue): Likewise.
1157 (push/pop peephole2): Use word_mode scratch registers.
1159 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
1161 * config/i386/predicates.md (indirect_branch_operand): Simplify.
1163 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
1165 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
1166 for constants in [-63,63].
1168 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
1172 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
1174 * config/i386/i386.c (ix86_print_operand_address): Only handle
1175 zero-extended DImode addresses.
1177 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1179 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
1180 * configure: Regenerate.
1182 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
1185 * config/avr/avr.c (avr_mem_clobber): New static function.
1186 (avr_expand_delay_cycles): Add memory clobber operand to
1187 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
1188 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
1189 (enable_interrupt, disable_interrupt): New expander.
1190 (nopv, sleep, wdr): New expanders.
1191 (delay_cycles_1): Add memory clobber.
1192 (delay_cycles_2): Add memory clobber.
1193 (delay_cycles_3): Add memory clobber.
1194 (delay_cycles_4): Add memory clobber.
1195 (cli_sei): New insn from former "enable_interrupt",
1196 "disable_interrupt" with memory clobber.
1197 (*wdt): New insn from former "wdt" with memory clobber.
1198 (*nopv): Similar, but for "nopv".
1199 (*sleep): Similar, but for "sleep".
1201 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
1202 Kaz Kojima <kkojima@gcc.gnu.org>
1205 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
1206 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
1207 (SUBTARGET_OVERRIDE_OPTIONS): Define.
1209 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
1211 * config/i386/predicates.md (x86_64_zext_general_operand): New.
1212 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
1213 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
1215 2012-03-07 Walter Lee <walt@tilera.com>
1217 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
1218 REG_CFA_* notes for the stack pointer.
1219 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
1220 EH_RETURN_STACKADJ_RTX.
1221 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
1222 generate REG_CFA_* notes for the stack pointer.
1223 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
1224 by EH_RETURN_STACKADJ_RTX.
1226 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
1228 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
1229 when __AVR_3_BYTE_PC__ is defined.
1231 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
1233 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
1234 (ix86_print_operand): Handle '^'.
1235 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
1236 using P mode iterator. Add %^ to asm template to conditionally emit
1238 (*rep_movdi_rex64): Ditto.
1239 (*strsetdi_rex_1): Ditto.
1240 (*rep_stosdi_rex64): Ditto.
1241 (*strmov{si,hi,qi}_1): Add %^ to asm template to
1242 conditionally emit addr32 prefix.
1243 (*rep_mov{si,qi}): Ditto.
1244 (*strset{si,hi,qi}): Ditto.
1245 (*rep_stos{si,qi}): Ditto.
1246 (*cmpstrnqi_nz_1): Ditto.
1247 (*cmpstrnqi_1): Ditto.
1248 (*strlenqi_1): Ditto.
1250 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
1252 * config/i386/i386.c (function_value_64): Return pointers in
1253 word_mode instead of Pmode.
1254 (ix86_promote_function_mode): Likewise.
1256 2012-03-07 Richard Guenther <rguenther@suse.de>
1258 * coverage.c (get_gcov_type): Use type_for_mode.
1259 (get_gcov_unsigned_t): Likewise.
1260 * expr.c (store_constructor): Use type_for_mode.
1261 (try_casesi): Likewise.
1262 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
1263 (add_standard_iv_candidates): Use standard type trees.
1264 * dojump.c (do_jump): Remove dead code.
1266 2012-03-07 Richard Guenther <rguenther@suse.de>
1268 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
1270 2012-03-07 Richard Guenther <rguenther@suse.de>
1272 * convert.c (strip_float_extensions): Move ...
1273 * tree.c (strip_float_extensions): ... here.
1275 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
1278 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
1280 2012-03-07 Richard Guenther <rguenther@suse.de>
1282 * omp-low.c (extract_omp_for_data): Use signed_type_for.
1283 (expand_omp_for_generic): Likewise.
1284 (expand_omp_for_static_nochunk): Likewise.
1285 (expand_omp_for_static_chunk): Likewise.
1286 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
1287 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
1288 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1289 Use unsigned_type_for.
1290 (vect_create_cond_for_align_checks): Use signed_type_for.
1292 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
1294 PR rtl-optimization/52203
1295 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
1296 all callers to pass NULL except ...
1297 (reset_sched_cycles_in_current_ebb): ... here, save the value
1298 in new variable 'empty'. Increase issue_rate only for
1301 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
1304 * Makefile.in: Let install-gcc-ar depend on installdirs,
1305 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
1306 Don't double canonicalize if cross-compiling.
1308 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
1311 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
1312 to: RAMPZ, RAMPY, RAMPX, RAMPD.
1313 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
1315 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
1318 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
1320 * config/avr/avr.md (xload_8): Adjust insn length.
1322 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
1325 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
1326 if RAMPZ affects reading from RAM.
1328 2012-03-07 Richard Guenther <rguenther@suse.de>
1332 * doc/invoke.texi (Precompiled Headers): Remove sentence that
1333 suggests you can include PCHs from inside another header.
1335 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
1338 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
1340 2012-03-07 Kai Tietz <ktietz@redhat.com>
1342 * doc/invoke.texi (fwritable-relocated-rdata): Document
1343 new Cygwin/MinGW target option.
1344 * config/i386/winnt.c (i386_pe_unique_section): Ignore
1345 reloc if flag -fwritable-relocated-rdata is not set.
1346 (i386_pe_section_type_flags): Likewise.
1347 * config/i386/cygming.opt (fwritable-relocated-rdata):
1348 Add new flag variable flag_writable_rel_rdata.
1350 2012-03-07 Richard Guenther <rguenther@suse.de>
1352 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
1353 precision against gimple constraints.
1355 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
1358 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
1360 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
1361 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
1363 (init_emit_regs): Move associated initialization to...
1364 (init_emit_once): ...here.
1366 2012-03-06 Richard Henderson <rth@redhat.com>
1368 * config/m68k/m68k.h (ISA_HAS_TAS): New.
1369 * config/m68k/sync.md (atomic_test_and_set): Use it.
1370 (atomic_test_and_set_1): Likewise.
1372 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1375 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
1376 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
1377 (vector_ltgt<mode>): Likewise.
1378 (vector_ordered<mode>): Likewise.
1379 (vector_unordered<mode>): Likewise.
1380 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
1382 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
1384 * trans-mem.c: New typedef for tm_region_p.
1385 Define vector types for tm_region_p.
1386 (tm_region_init): Replace region_worklist to a vector called
1389 2012-03-06 Richard Guenther <rguenther@suse.de>
1391 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
1392 MEM_REF with constant pointer operand.
1394 2012-03-06 Richard Guenther <rguenther@suse.de>
1397 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
1399 2012-03-06 Tristan Gingold <gingold@adacore.com>
1401 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
1402 (external_model_kind): Improve documentation.
1403 (vms_pragma_extern_model): Handle relaxed_redef.
1404 (vms_c_register_pragma): Allow expansion for nomember_alignment.
1406 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
1408 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
1409 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
1410 Some more notes on EIND usage and reorder EIND subsection.
1412 2012-03-06 Tristan Gingold <gingold@adacore.com>
1414 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
1415 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
1417 2012-03-06 Tristan Gingold <gingold@adacore.com>
1419 * config/vms/t-vmsnative (version): Define.
1420 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
1422 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
1424 PR rtl-optimization/52250
1425 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
1426 to put note list into. Unconditionally call move_bb_info.
1427 (move_bb_info): Do not assert the blocks being in the same region,
1428 just drop the note list if they are not.
1430 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1433 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
1434 and use unified expansion logic.
1435 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
1436 closer to the existing movt insn.
1437 (negc): Rename insn to *negc. Add new expander.
1438 (movnegt): Use xor pattern for T bit negation. Reserve helper
1439 constant for negc pattern.
1440 (*movnegt): New insn and splitter.
1442 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
1444 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
1447 2012-03-05 Richard Henderson <rth@redhat.com>
1449 * genemit.c (main): Include "target.h" in insn-emit.c.
1450 * Makefile.in (insn-emit.o): Depend on TARGET_H.
1451 * config/sh/sync.md (atomic_test_and_set): Reference
1452 targetm.atomic_test_and_set_trueval instead of
1453 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
1455 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
1457 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
1460 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
1462 * langhooks.c (add_builtin_type): New function.
1463 * langhooks.h (add_builtin_type): Export it.
1464 * config/mep/mep.c (mep_init_builtins): Use it.
1465 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
1467 2012-03-05 Jakub Jelinek <jakub@redhat.com>
1470 * tree.h (BLOCK_SAME_RANGE): Define.
1471 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
1472 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
1473 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
1474 isn't equal to supercontext fragment's fragment chain.
1475 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
1477 (blocks_nreverse_all): Likewise.
1478 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
1479 BLOCK_SUPERCONTEXT to supercontext fragment instead of
1480 supercontext fragment's fragment origin.
1481 * dwarf2out.c (add_high_low_attributes): If stmt has the same
1482 range as its parent (or parents thereof etc.), use the parent's
1483 DW_AT_ranges value instead of creating a new .debug_ranges range.
1485 2012-03-05 Richard Henderson <rth@redhat.com>
1488 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
1489 * omp-low.c (expand_omp_atomic): Assume anything aligned to
1490 BIGGEST_ALIGNMENT is aligned.
1492 2012-03-05 Richard Henderson <rth@redhat.com>
1494 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
1495 * config/sh/sh.c: ... here.
1497 2012-03-05 Richard Henderson <rth@redhat.com>
1500 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
1501 instead of calling negqi2 directly.
1503 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
1506 * trans-mem.c (tm_region_init): Use last_basic_block.
1508 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
1510 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
1511 * config/sh/sync.md (atomic_test_and_set): New expander.
1512 (tasb, atomic_test_and_set_soft): New insns.
1513 * config/sh/sh.opt (menable-tas): New option.
1514 * doc/invoke.texi (SH Options): Document it.
1516 2012-03-05 Richard Guenther <rguenther@suse.de>
1518 * cfgloop.c (verify_loop_structure): Verify dominators before
1520 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
1521 dominators from here.
1522 * graphite-scop-detection.c (create_sese_edges): Likewise.
1523 * loop-doloop.c (doloop_optimize_loops): Likewise.
1524 * loop-init.c (loop_optimizer_init): Likewise.
1525 * loop-unroll.c (unroll_and_peel_loops): Likewise.
1526 * loop-unswitch.c (unswitch_loops): Likewise.
1527 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
1528 * tree-parloops.c (parallelize_loops): Likewise. Verify
1529 only when checking is enabled.
1530 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
1532 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
1534 * genautomata.c (parse_automata_opt): New static function.
1535 (initiate_automaton_gen): Remove all option handling code. Remove
1536 argc argument. All callers changed.
1537 (main): Call init_rtx_reader_args_cb with the new function as argument.
1539 2012-03-05 Richard Guenther <rguenther@suse.de>
1541 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
1542 * tree-if-conv.c (combine_blocks): Free post-dominator info
1544 * tree-parloops.c (create_parallel_loop): Free and re-compute
1545 dominator info after breaking it.
1547 2012-03-05 Richard Guenther <rguenther@suse.de>
1550 * optabs.h (trapv_unoptab_p): New function.
1551 (trapv_binoptab_p): Likewise.
1552 * optabs.c (expand_binop): Use emit_libcall_block_1 with
1553 a proper equiv_may_trap argument.
1554 (expand_unop): Likewise.
1555 (emit_libcall_block_1): Take extra argument whether the
1556 instruction may trap. Renamed from ...
1557 (emit_libcall_block): ... this. New wrapper.
1559 2012-03-05 Jakub Jelinek <jakub@redhat.com>
1561 PR tree-optimization/51721
1562 * tree-vrp.c (register_edge_assert_for_2): If comparing
1563 lhs of right shift by constant with an integer constant,
1564 add ASSERT_EXPRs for the rhs1 of the right shift.
1566 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
1568 2012-03-05 Richard Guenther <rguenther@suse.de>
1570 * tree.c (integer_zerop): Handle VECTOR_CSTs.
1571 (integer_onep): Likewise.
1572 (integer_all_onesp): Likewise.
1574 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
1576 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
1578 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
1580 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
1581 instead of TARGET_64BIT.
1583 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
1585 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
1588 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
1590 * config/i386/i386.c (ix86_print_operand_address): Only handle
1591 zero-extended DImode addresses.
1593 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
1595 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
1596 taken and cputaken as bool.
1598 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
1600 * config/i386/constraints.md (Ya): New internal constraint.
1601 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
1602 (*zero_extendsidi2_rex64): Add x,x alternative.
1603 (*zero_extendsidi2): Ditto. Add o,0 alternative.
1604 Remove flags reg clobber. Adjust corresponding splits.
1605 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
1606 zero_extendqisi2 expanders using SWI12 mode iterator.
1607 (zero_extend<mode>si2_and): Macroize insn from
1608 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
1610 (*zero_extend<mode>si2): Macroize insn from
1611 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
1612 (*zero_extend*2_movzbl_and): Remove insn patterns.
1613 (zero_extendqihi2_and): Merge corresponding splitter.
1614 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
1615 (*zero_extend*2_movzbl_and): Remove insn patterns.
1616 (*anddi_1): Split TYPE_IMOVX instructions.
1617 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
1619 (and->zext splitter): Add splitter pattern.
1620 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
1622 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
1624 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
1626 (Debugging Options): Likewise.
1627 (Optimize Options): Likewise.
1628 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
1629 with other architectures. Use official processor names with correct
1630 spelling/capitalization. Fix formatting and grammar issues.
1631 (i386 and x86-64 Windows Options): Similar cleanup here.
1633 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
1635 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
1637 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
1639 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
1640 DBX_REGISTER_NUMBER.
1642 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
1644 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
1645 operand is CONST_INT. Take COSTS_N_INSNS into account.
1646 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
1649 2012-03-02 Richard Henderson <rth@redhat.com>
1651 * optabs.c (expand_atomic_test_and_set): Honor
1652 atomic_test_and_set_trueval even when atomic_test_and_set
1653 optab is not in use.
1655 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
1659 * config/sh/sh.c (sh_register_move_cost): Increase cost between
1660 GENERAL_REGS and FP_REGS for SImode.
1662 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
1665 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
1666 (absdi2): New expander.
1667 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
1669 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
1671 * config/sh/sync.md (atomic_exchange<mode>): New expander.
1672 (atomic_exchange<mode>_soft): New insn.
1674 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
1676 * config/sh/sync.md: Update copyright notice dates.
1677 (atomic_compare_and_swap<mode>): Use SImode for return value instead
1679 (atomic_compare_and_swap<mode>_soft): Likewise.
1681 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
1684 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
1685 * config/sh/sh.c: Update copyright notice dates.
1686 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
1687 alignment for TARGET_HARD_SH4.
1688 (sh_option_override): Reduce default function alignment. Set
1689 loop alignment to 4 bytes when not optimizing for size.
1691 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1694 * doc/invoke.texi (floop-flatten): Remove.
1695 * toplev.c (process_options): Remove references to flag_loop_flatten.
1696 * tree-ssa-loop.c (gate_graphite_transform): Same.
1697 * common.opt (floop-flatten): Obsolete.
1698 * graphite-poly.c (apply_poly_transforms): Remove reference to
1700 * Makefile.in (graphite-flattening.o): Remove.
1701 * graphite-flattening.c: Remove.
1703 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
1705 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
1706 having mode compatible with the mode of previous compare. Substitute
1707 compare mode of previous compare with the mode, compatible
1708 with eliminated and previous compare.
1710 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
1712 * config/rs6000/dfp.md (floatdidd2): New define_insn.
1714 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
1716 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
1717 compatible with CCGOCmode and CCGCmode.
1719 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
1721 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
1723 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1725 * config/arm/arm.c (arm_sat_operator_match): New function.
1726 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
1727 * config/arm/arm.md ("insn" attribute): Add "sat" value.
1728 ("SAT", "SATrev"): New code iterators.
1729 ("SATlo", "SAThi"): New code iterator attributes.
1730 ("*satsi_<SAT:code>"): New pattern.
1731 ("*satsi_<SAT:code>_shift"): Likewise.
1732 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
1733 and "shift" attributes.
1734 ("arm_usatsihi"): Add "insn" attribute.
1735 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
1736 by powers of two. Do not allow shift by 32.
1738 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
1741 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
1742 to pass the argument in the register of "natural" mode.
1744 2012-03-02 Richard Guenther <rguenther@suse.de>
1746 PR tree-optimization/52406
1747 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
1748 (struct indices): Add unconstrained_base member.
1749 (struct dr_alias): Remove unused vops member.
1750 (DR_UNCONSTRAINED_BASE): New define.
1751 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
1752 add indices to allow their disambiguation. Make DR_BASE_OBJECT
1753 be an artificial access that covers the whole indexed object,
1754 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
1755 plain decl base-objects to their MEM_REF variant.
1756 (dr_may_alias_p): When the base-object of either data reference
1757 has unknown size use only points-to information.
1758 (compute_affine_dependence): Make dumps easier to read and
1760 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
1761 DR_REF when looking for packed references.
1762 (vect_supportable_dr_alignment): Likewise.
1764 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
1766 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
1767 Improve conditions for peepholes of loads followed by commutative
1769 * config/arm/ldmstm.md: Regenerated.
1771 2012-03-02 Richard Guenther <rguenther@suse.de>
1773 * BASE-VER: Set to 4.8.0.
1775 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
1777 * config.gcc (obsolete): Add all ARM targets using the FPA.
1778 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
1779 * doc/install.texi: Avoid references to obsolete ARM ports.
1781 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
1783 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
1785 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
1786 Joern Rennecke <joern.rennecke@embecosm.com>
1788 * doc/extend.texi: Expand and update information on interrupt
1789 attribute for Epiphany.
1791 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
1793 * config/sh/sh-protos.h: Update copyright notice dates.
1794 * config/sh/sh.h: Likewise.
1795 * config/sh/sh.md: Likewise.
1796 * config/sh/constraints.md: Likewise.
1797 * config/sh/predicates.md: Likewise.
1799 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
1801 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
1802 * config/sh/sh.c (tertiary_reload_operand): Likewise.
1804 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
1806 * config/sh/constraints.md: Fix comment typo.
1808 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1811 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
1812 unsigned HOST_WIDE_INT.
1813 (zvdep_imm64): Likewise.
1814 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
1815 (vdepi_and): Likewise.
1816 Likewise for unamed 64-bit patterns.
1817 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
1819 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
1822 PR rtl-optimization/52417
1823 * cselib.c (cselib_any_perm_equivs): New variable.
1824 (cselib_reset_table): Check that it's not set when not
1825 preserving constants.
1826 (cselib_add_permanent_equiv): Set it.
1827 (cselib_have_permanent_equivalences): New.
1828 (cselib_init, cselib_finish): Reset it.
1829 * cselib.h (cselib_have_permanent_equivalences): Declare.
1830 * alias.c (get_addr): Restore earlier behavior when there
1831 aren't permanent equivalences.
1833 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
1835 * config/mn10300/mn10300-modes.def: Fix copyright notice.
1836 * config/v850/v850-modes.def: Fix copyright notice.
1838 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
1840 * doc/extend.texi (AVR Built-in Functions): Document
1841 __builtin_avr_flash_segment.
1843 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
1844 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
1845 (*split.flash_segment): New insn-and-split.
1846 * config/avr/avr.c (avr_init_builtins): Add local variables:
1847 const_memx_void_node, const_memx_ptr_type_node,
1848 char_ftype_const_memx_ptr.
1850 2012-03-01 Jakub Jelinek <jakub@redhat.com>
1852 PR tree-optimization/52445
1853 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
1854 add ssa_name_ver, offset and size fields and change store field
1856 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
1857 (add_or_mark_expr): Likewise. Only consider previous stores
1858 with the same size and offset.
1859 (nt_init_block): Only look at gimple_assign_single_p stmts,
1860 doesn't look at rhs2.
1862 2012-03-01 Richard Guenther <rguenther@suse.de>
1865 * tree-cfg.c (verify_gimple_assign_unary): Allow any
1866 conversions from integral types to pointer types.
1868 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
1870 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
1871 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
1872 unintentionally removed in r184616.
1874 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1876 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
1879 2012-02-29 Jakub Jelinek <jakub@redhat.com>
1880 Uros Bizjak <ubizjak@gmail.com>
1883 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
1884 alternatives, add "e" constraint to the new last alternative
1885 and ! to last 3 alternatives.
1887 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
1889 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
1890 DW_AT_artificial attributes at the end of the processing.
1891 (gen_array_type_die): Likewise.
1892 (gen_enumeration_type_die): Likewise.
1893 (gen_struct_or_union_type_die): Likewise.
1894 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
1897 2012-02-29 Jakub Jelinek <jakub@redhat.com>
1900 * expr.c (expand_assignment): If doing misaligned store that doesn't
1901 cover all mode bits, perform a RMW cycle.
1903 PR tree-optimization/52429
1904 * tree-parloops.c (separate_decls_in_region_debug): Return early
1905 if var is LABEL_DECL.
1907 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1909 PR tree-optimization/52424
1910 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
1911 calling dom_thread_across_edge.
1913 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
1915 * config/avr/avr.c: Move definition of TARGET macros to end of file.
1917 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
1919 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
1920 * config/avr/avr.c (avr_output_bld): Remove unused function.
1921 (avr_out_sbxx_branch): Use "%T" to print bit position.
1923 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
1925 * config/avr/avr.md: Untabify.
1927 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
1929 * config/avr/avr.md (eqne): New code iterator.
1930 (*dec-and-branchsi): Use it in text peephole's condition.
1931 (*dec-and-branchhi): Ditto.
1932 (*dec-and-branchqi): Ditto.
1934 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
1937 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
1938 the device does not have the skip-bug.
1940 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
1942 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
1943 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
1944 -mpretend-cmove): New.
1946 2012-02-29 Jakub Jelinek <jakub@redhat.com>
1949 * df.h (struct df_d): Adjust comment that hard_regs_live_count
1950 doesn't count DEBUG_INSN refs.
1951 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
1952 for DEBUG_INSN refs.
1954 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1958 2012-02-20 Richard Guenther <rguenther@suse.de>
1959 PR tree-optimization/52298
1960 * tree-vect-stmts.c (vectorizable_load): Properly use
1961 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
1964 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
1967 * gimple.h (gimple_in_transaction): New.
1968 (gimple_set_in_transaction): New.
1969 (struct gimple_statement_base): Add in_transaction field.
1970 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
1972 (tree_ssa_lim_initialize): Compute transaction bits.
1973 * tree.h (compute_transaction_bits): Protoize.
1974 * trans-mem.c (tm_region_init): Use the heap to store BB
1976 (compute_transaction_bits): New.
1978 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1980 * gcc.c (display_help): Document --help=common and sort entries
1983 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1985 * doc/install.texi: Document check-$LANG specific shortcuts
1987 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1990 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
1992 * config/arm/arm_neon.h: Regenerate.
1993 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
1994 (neon_vcgeu): New insn.
1995 (neon_vcgtu): Likewise.
1996 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
1997 (ops): Unsigned comparison intrinsics call a different builtin.
1999 2012-02-28 Richard Guenther <rguenther@suse.de>
2002 * config/i386/i386.c (ix86_expand_vector_set): Fix element
2003 ordering for the VEC_CONCAT for two element vectors for
2004 V2SFmode, V2SImode and V2DImode.
2006 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
2009 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
2010 detecting big-endian triplets.
2012 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
2014 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
2015 mode if there is no type information available.
2017 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
2019 PR tree-optimization/53207
2020 * doc/invoke.texi: Document as experimental and relying on graphite.
2022 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
2024 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
2025 of initializer to changes from r184614.
2027 2012-02-28 Richard Guenther <rguenther@suse.de>
2029 PR tree-optimization/52395
2030 * tree-sra.c (build_ref_for_offset): Also look at the base
2031 TYPE_ALIGN when figuring out the alignment of the replacement.
2033 2012-02-28 Richard Guenther <rguenther@suse.de>
2035 PR tree-optimization/52402
2036 * ipa-prop.c (ipa_modify_call_arguments): Properly use
2037 mis-aligned types when creating the accesses at the call site.
2039 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
2041 * config/avr/builtins.def: New file.
2042 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
2043 * config/avr/avr.c (enum avr_builtin_id): Use it.
2044 (avr_init_builtins): Use it. And use avr_bdesc.
2045 (bdesc_1arg): Remove.
2046 (bdesc_2arg): Remove.
2047 (bdesc_3arg): Remove.
2048 (struct avr_builtin_description): Add field n_args.
2049 (avr_bdesc): New static variable using builtins.def.
2050 (avr_expand_builtin): Use it.
2051 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
2052 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
2053 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
2055 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
2058 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
2059 match only one single hard register with respective hard reg rtx.
2060 (movmemx_<mode>): Ditto.
2061 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
2062 insn anatomy of movmem[x]_<mode>.
2063 (avr_out_movmem): Same for printing assembler and operand usage.
2065 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
2069 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
2070 address spaces located outside of device flash.
2072 * config/avr/avr.h (base_arch_s): Remove field n_segments.
2073 (mcu_type_s): Add field n_flash.
2074 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
2075 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
2076 (AVR_MCU): Add N_FLASH argument.
2077 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
2078 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
2079 macro __FLASH<n> if that address space makes sense for the device.
2080 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
2081 outside of target flash.
2082 (avr_asm_named_section): Ditto.
2083 (avr_asm_select_section): Ditto.
2084 (avr_addr_space_convert): Ditto.
2085 (avr_emit_movmemhi): Ditto.
2086 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
2087 address space is outside of device flash.
2088 (avr_insert_attributes): Ditto.
2089 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
2090 avr_current_arch->n_segments.
2092 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
2095 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
2096 (*movabs<mode>_2): Likewise.
2098 2012-02-27 Jakub Jelinek <jakub@redhat.com>
2101 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
2102 s_register_operand in the test instead of REG_P. Don't call
2103 gen_reg_rtx if it won't be used.
2105 PR tree-optimization/52376
2106 * ipa-split.c (split_function): Ignore CLOBBER stmts.
2108 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
2110 * ifcvt.c (noce_get_condition): Check condition variable is not
2111 small_register_classes_for_mode_p before accepting.
2113 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
2115 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
2117 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2120 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2121 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
2123 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
2125 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
2127 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
2129 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
2131 * config/sh/predicates.md: Remove blank lines.
2132 * config/sh/sh.c: Fix typos in comments.
2133 * config/sh/constraints.md: Likewise.
2134 * config/sh/sh.md: Remove blank lines.
2135 Fix typos in comments. Use ;; as comment characters.
2137 2012-02-26 Walter Lee <walt@tilera.com>
2139 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
2140 (replace_mov_pcrel_step2): Ditto.
2142 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
2145 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
2146 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
2147 and locs that reference values newer than the non-canonical value
2148 at hand. Return the canonical value as a worst case.
2149 (memrefs_conflict_p): Walk canonical value's locs.
2152 * cselib.c (preserve_only_constants): Rename to...
2153 (preserve_constants_and_equivs): ... this. Split out...
2154 (invariant_or_equiv_p): ... this. Preserve plus expressions
2155 of other preserved expressions too.
2156 (cselib_reset_table): Adjust.
2157 * var-tracking.c (reverse_op): Use canonical value to build
2160 2012-02-23 Kai Tietz <ktietz@redhat.com>
2162 * config/i386/i386.c (ix86_delegitimize_address): Handle
2163 UNSPEC_PCREL plus displacement.
2165 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
2168 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
2169 to test for unusedness in st X addressing.
2171 2012-02-24 Richard Guenther <rguenther@suse.de>
2174 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
2175 (is_gimple_reg_type): Move inline ...
2176 * gimple.h (is_gimple_reg_type): ... here.
2178 2012-02-24 Richard Guenther <rguenther@suse.de>
2181 * passes.c (execute_function_todo): When verifying SSA form
2182 verify gimple form first.
2183 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
2185 2012-02-24 Richard Guenther <rguenther@suse.de>
2188 * fold-const.c (fold_addr_of_array_ref_difference): New function.
2189 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
2191 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2193 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
2195 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2197 * tree-phinodes.c (make_phi_node): Mark static.
2198 * tree-flow.h (make_phi_node): Remove extern decl.
2199 * doc/gimple.texi (make_phi_node): Remove documentation.
2201 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2203 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
2204 * tree-ssa-sccvn.c (print_scc): Ditto.
2206 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2208 * doc/passes.texi (Full redundancy elimination): Fix typo.
2210 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2212 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
2214 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
2217 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
2219 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
2222 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
2224 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
2226 * config/avr/avr.md (code_stdname): Add ior, xor.
2227 (xior): New code iterator.
2228 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
2229 (*<code_stdname><mode>qi.byte1-3): Ditto.
2231 2012-02-23 Jakub Jelinek <jakub@redhat.com>
2233 PR tree-optimization/52019
2234 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
2237 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2239 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
2240 HAVE_INITFINI_ARRAY to work around namespace pollution in
2241 certain versions of newlib system headers.
2242 * config.in: Regenerate.
2243 * configure: Regenerate.
2244 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
2245 instead of HAVE_INITFINI_ARRAY.
2247 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
2250 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
2251 is not offsettable memory reference.
2253 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
2256 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
2257 setting avr_need_clear_bss_p for __gnu_lto* symbols.
2259 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
2261 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
2262 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
2264 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2266 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
2267 library on Solaris 8 even without TLS support.
2268 * configure: Regenerate.
2270 2012-02-22 Richard Guenther <rguenther@suse.de>
2273 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
2274 for GIMPLE_DEBUG stmts.
2276 2012-02-22 Martin Jambor <mjambor@suse.cz>
2279 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
2280 according to the base object.
2282 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
2284 PR rtl-optimization/50063
2285 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
2286 and 2 (8-bit SP) in operand 2.
2287 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
2288 setup to use movhi_sp_r instead of vanilla move to write SP.
2289 Adjust REG_CFA notes to superseed unspec.
2290 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
2292 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
2293 known to be off) only with TARGET_NO_INTERRUPTS. Never use
2294 irq_state 1 (IRQ known to be on) here.
2296 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
2298 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
2300 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
2301 assign_hard_reg): Likewise.
2303 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
2305 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
2307 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
2310 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
2311 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
2313 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
2315 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
2316 prototype from here to...
2317 * config/avr/avr.h: ...here.
2319 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
2322 * thumb2.md (thumb2_shiftsi3_short): Split register and
2323 immediate shifts. For register shifts tie operands 0 and 1.
2324 (peephole2 for above): Check that register-controlled shifts
2325 have suitably tied operands.
2327 2012-02-21 Quentin Neill <quentin.neill@amd.com>
2330 * config/i386/bdver1.md (bdver1_call, bdver1_push,
2331 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
2332 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
2333 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
2334 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
2335 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
2336 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
2337 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
2338 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
2339 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
2340 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
2341 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
2342 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
2343 bdver1_ssevector_avx256_unaligned_load,
2344 bdver1_ssevector_sse128_unaligned_load,
2345 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
2346 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
2347 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
2348 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
2349 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
2350 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
2351 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
2352 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
2353 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
2354 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
2355 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
2356 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
2357 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
2358 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
2359 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
2360 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
2361 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
2362 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
2363 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
2364 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
2365 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
2366 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
2367 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
2368 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
2369 bdver1_ssediv_double_load, bdver1_ssediv_double,
2370 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
2371 Add "bdver2" attribute.
2373 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2375 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
2376 default if possible and not specified otherwise.
2378 2012-02-21 Richard Guenther <rguenther@suse.de>
2381 * gimplify.c (create_tmp_from_val): Use the main variant type
2382 for the type of the temporary we create.
2384 2012-02-21 Richard Guenther <rguenther@suse.de>
2386 PR tree-optimization/52324
2387 * gimplify.c (gimplify_expr): When re-gimplifying expressions
2388 do not gimplify a MEM_REF address operand if it is already
2391 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2393 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
2394 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
2396 2012-02-21 Richard Guenther <rguenther@suse.de>
2398 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
2399 nested_in_vect_loop.
2401 2012-02-21 Jakub Jelinek <jakub@redhat.com>
2403 PR tree-optimization/52318
2404 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
2405 vdef also to non-pure/const call stmts in the sequence.
2407 2012-02-21 Tristan Gingold <gingold@adacore.com>
2409 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
2411 2012-02-20 David S. Miller <davem@davemloft.net>
2413 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
2414 don't use the "rd %pc" instruction on v9 for PIC register loads.
2416 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
2419 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
2420 in a transaction safe function.
2422 2012-02-20 Kai Tietz <ktietz@redhat.com>
2425 * stor-layout.c (place_field): Handle desired_align for
2428 2012-02-20 Richard Guenther <rguenther@suse.de>
2430 PR tree-optimization/52298
2431 * tree-vect-stmts.c (vectorizable_store): Properly use
2432 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
2434 (vectorizable_load): Likewise.
2435 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2436 Access DR_STEP after ensuring it is not NULL.
2438 2012-02-20 Jakub Jelinek <jakub@redhat.com>
2440 PR tree-optimization/52286
2441 * fold-const.c (fold_binary_loc): For (X & C1) | C2
2442 optimization use double_int_to_tree instead of build_int_cst_wide,
2443 rewrite to use double_int vars.
2445 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2448 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
2450 Remove -e 0 from $gcc_cv_ld invocation.
2451 Only use __GLIBC_PREREQ if defined.
2452 Enable on Solaris since Solaris 8 patch.
2453 (gcc_SUN_LD_VERSION): New macro.
2454 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
2455 gcc_SUN_LD_VERSION for version number format.
2456 * configure: Regenerate.
2457 * varasm.c (get_elf_initfini_array_priority_section): Set
2458 SECTION_NOTYPE for non-default priority.
2459 Use get_section instead of get_unnamed_section to emit
2460 .init_array/.fini_array with default priority.
2462 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
2464 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
2465 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
2466 (mips_start_unique_function, mips_output_mips16_rdhwr)
2467 (mips_code_end): New functions.
2468 (TARGET_ASM_CODE_END): Define.
2470 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
2472 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
2473 to stubs with non-sibling calls.
2475 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
2477 * doc/invoke.texi (-fira-* options): Copy-edit.
2478 (ira-* parameters): Copy-edit.
2480 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
2482 * doc/invoke.texi: Minor copy-edits to bring into conformance with
2483 GCC coding conventions.
2485 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
2487 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
2488 when used as adjectives.
2490 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
2492 * doc/invoke.texi: Clean up "that"/"which" confusion.
2494 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
2496 * system.h: Poison SMALL_REGISTER_CLASSES
2497 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
2498 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
2500 2012-02-16 Jakub Jelinek <jakub@redhat.com>
2502 PR tree-optimization/52285
2503 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
2504 when deciding if a call is a tail call or tail recursion.
2506 2012-02-16 Kai Tietz <ktietz@redhat.com>
2508 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
2509 interger-constant displacement for UNSPEC_PCREL.
2511 2012-02-16 Jakub Jelinek <jakub@redhat.com>
2513 PR rtl-optimization/52208
2514 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
2515 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
2517 PR tree-optimization/52255
2518 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
2519 loop->header has virtual PHI, but exit_e->dest doesn't, add
2520 virtual PHI to exit_e->dest and adjust all uses after the loop.
2523 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
2524 children with clone_tree_hash, not after it.
2526 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
2528 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
2529 extended identifiers.
2531 2012-02-16 Jakub Jelinek <jakub@redhat.com>
2534 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
2535 a same_body_alias, also test whether e->callee isn't a former
2536 or current clone of the decl this is a same body alias of.
2538 PR translation/52264
2539 * cgraphunit.c (verify_cgraph_node): Fix a typo.
2541 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
2543 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
2545 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
2548 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
2549 force_reg instead of copy_to_reg for better optimization. Force
2550 non-register or memory operands into a register.
2552 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
2554 * extend.texi: Reserve upper bits of memory model for future use.
2556 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
2557 Anatoly Sokolov <aesok@post.ru>
2558 Eric Weddington <eric.weddington@atmel.com>
2561 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
2562 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
2563 Rewrite initializers for .macro.
2564 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
2565 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
2566 atxmega32d4, atxmega32x1.
2567 avrxmega4: atxmega64a3, atxmega64d3.
2568 avrxmega5: atxmega64a1, atxmega64a1u.
2569 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
2570 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
2571 avrxmega7: atxmega128a1, atxmega128a1u.
2572 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
2573 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
2574 (struct base_arch_s): Rename reserved to xmega_p.
2575 Rename reserved2 to have_rampd.
2576 (AVR_XMEGA): New define.
2577 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
2578 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
2579 * config/avr/predicates.md (io_address_operand): Take into
2581 (low_io_address_operand): Ditto.
2582 (high_io_address_operand): Ditto.
2583 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
2584 (enabled, movhi_sp_r): Use them.
2585 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
2586 cpp_define_formatted to built-in define __AVR_ARCH__.
2587 (__AVR_XMEGA__): New built-in define.
2588 (__AVR_HAVE_RAMPD__): New built-in define.
2589 (__AVR_HAVE_RAMPX__): New built-in define.
2590 (__AVR_HAVE_RAMPY__): New built-in define.
2591 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
2593 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
2594 (avr_option_override): Initialize them.
2595 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
2596 (avr_init_expanders): Initialize them. No more block several calls.
2597 (emit_push_sfr): New static function.
2598 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
2600 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
2601 (avr_print_operand): Print addreeses as symbols for
2602 RAMPX, RAMPY, RAMPD, CCP.
2603 (output_movhi): Handle AVR_XMEGA when writing to SP.
2604 (avr_out_movhi_mr_r_xmega): New static function.
2605 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
2606 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
2607 __RAMPD__, __CCP__ as needed.
2609 * config/avr/multilib.h: Regenerate.
2610 * config/avr/t-multilib: Regenerate.
2611 * config/avr/avr-tables.opt: Regenerate.
2613 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
2615 PR tree-optimization/50561
2616 * graphite-flattening.c (lst_project_loop): Do not
2617 remove old scattering dimensions after flattening.
2618 (lst_do_flatten): Likewise.
2620 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
2622 * doc/extend.texi (AVR Built-in Functions): Remove doc for
2623 __builtin_avr_map8, __builtin_avr_map16.
2624 Document __builtin_avr_insert_bits.
2626 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
2627 (insert_bits): New insn.
2628 (adjust_len.map_bits): Rename to insert_bits.
2629 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
2630 * avr-protos.h (avr_out_map_bits): Remove.
2631 (avr_out_insert_bits, avr_has_nibble_0xf): New.
2632 * config/avr/constraints.md (Cxf,C0f): New.
2633 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
2634 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
2635 New built-in define __BUILTIN_AVR_INSERT_BITS.
2636 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
2637 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
2638 (avr_move_bits): Rewrite.
2639 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
2641 (avr_map_op_t): New typedef.
2642 (avr_map_op): New static variable.
2643 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
2644 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
2645 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
2646 (bdesc_3arg, avr_expand_triop_builtin): New.
2647 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
2648 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
2649 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
2650 (avr_map_equal_p, avr_map_sig_p): Remove.
2651 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
2652 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2653 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
2654 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2655 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
2656 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2658 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
2660 * config/c6x/c6x.md (reserve_cycles): New attribute.
2661 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
2662 don't reserve functional units after the branch occurs.
2664 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
2667 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
2668 functions into non-tm_pure functions.
2670 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
2673 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
2674 (iterative_hash_canonical_type): Likewise.
2675 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
2678 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
2680 * haifa-sched.c (prune_ready_list): Ensure that if there is a
2681 sched-group insn, it either remains alone or the entire list is pruned.
2683 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
2685 * doc/install.texi (Prerequisites): Fix grammar.
2686 (Configuration): Likewise.
2688 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
2690 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
2691 MPC as part of GCC before describing configuring with --with-gmp etc.
2692 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
2693 sources are present.
2695 2012-02-14 Jakub Jelinek <jakub@redhat.com>
2698 * dwarf2out.c (clone_tree_hash): New function.
2699 (copy_decls_walk): Use it instead of clone_tree.
2701 2012-02-14 Richard Guenther <rguenther@suse.de>
2703 PR tree-optimization/52244
2704 PR tree-optimization/51528
2705 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
2706 replacements for integral types.
2708 2012-02-14 Walter Lee <walt@tilera.com>
2710 * config.gcc: Handle tilegx and tilepro.
2711 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
2713 Add HAVE_AS_TLS check for tilegx and tilepro.
2714 * configure: Regenerate.
2715 * doc/contrib.texi: Add Mat Hostetter and self.
2716 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
2717 Document instruction intrinsics and network accessing intrinsics.
2718 (TILEPro Built-in Functions): New node. Document instruction
2719 intrinsics and network accessing intrinsics.
2720 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
2721 (Specific, tilepro-*-linux*): Likewise.
2722 * doc/invoke.texi (TILE-Gx Options): New section.
2723 (TILEPro Options): New section.
2724 * doc/md.texi (TILE-Gx): New section.
2725 (TILEPro): New section.
2726 * common/config/tilegx/tilegx-common.c: New file.
2727 * common/config/tilepro/tilepro-common.c: New file.
2728 * config/tilegx/constraints.md: New file.
2729 * config/tilegx/linux.h: New file.
2730 * config/tilegx/mul-tables.c: New file.
2731 * config/tilegx/predicates.md: New file.
2732 * config/tilegx/sync.md: New file.
2733 * config/tilegx/t-tilegx: New file.
2734 * config/tilegx/tilegx-builtins.h: New file.
2735 * config/tilegx/tilegx-c.c: New file.
2736 * config/tilegx/tilegx-generic.md: New file.
2737 * config/tilegx/tilegx-modes.def: New file.
2738 * config/tilegx/tilegx-multiply.h: New file.
2739 * config/tilegx/tilegx-protos.h: New file.
2740 * config/tilegx/tilegx.c: New file.
2741 * config/tilegx/tilegx.h: New file.
2742 * config/tilegx/tilegx.md: New file.
2743 * config/tilegx/tilegx.opt: New file.
2744 * config/tilepro/constraints.md: New file.
2745 * config/tilepro/gen-mul-tables.cc: New file.
2746 * config/tilepro/linux.h: New file.
2747 * config/tilepro/mul-tables.c: New file.
2748 * config/tilepro/predicates.md: New file.
2749 * config/tilepro/t-tilepro: New file.
2750 * config/tilepro/tilepro-builtins.h: New file.
2751 * config/tilepro/tilepro-c.c: New file.
2752 * config/tilepro/tilepro-generic.md: New file.
2753 * config/tilepro/tilepro-modes.def: New file.
2754 * config/tilepro/tilepro-multiply.h: New file.
2755 * config/tilepro/tilepro-protos.h: New file.
2756 * config/tilepro/tilepro.c: New file.
2757 * config/tilepro/tilepro.h: New file.
2758 * config/tilepro/tilepro.md: New file.
2759 * config/tilepro/tilepro.opt: New file.
2761 2012-02-14 Jakub Jelinek <jakub@redhat.com>
2763 PR tree-optimization/52210
2764 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
2765 vect_model_simple_cost with two entry vect_def_type array instead
2766 of an address of dt.
2768 2012-02-14 Richard Guenther <rguenther@suse.de>
2771 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
2772 Do not stream DECL_QUALIFIER.
2773 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
2774 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
2775 (find_decls_types_r): Do not walk DECL_QUALIFIER.
2777 2012-02-14 Jakub Jelinek <jakub@redhat.com>
2780 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
2783 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2786 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
2787 * cselib.c (cselib_subst_to_values_from_insn): New function.
2788 * sched-deps.c (add_insn_mem_dependence,
2789 sched_analyze_1, sched_analyze_2): Use it.
2791 2012-02-13 Jan Hubicka <jh@suse.cz>
2794 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
2796 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
2798 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
2799 (GTM_SELF_SPECS): Define if not already defined.
2800 (driver_self_specs): Add GTM_SELF_SPECS.
2801 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
2802 (GTM_SELF_SPECS): Define.
2803 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
2804 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
2806 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2808 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
2811 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
2814 * omp-low.c (expand_omp_for): If a static schedule without chunk size
2815 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
2817 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
2820 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
2822 2012-02-13 Richard Guenther <rguenther@suse.de>
2824 PR translation/52211
2825 * passes.c (enable_disable_pass): Fix typo.
2827 2012-02-13 Jakub Jelinek <jakub@redhat.com>
2830 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
2831 XOR for reduce_bit_field if type is unsigned.
2833 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
2835 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
2836 disallow changes from SFmode to mode with different size in FP regs.
2838 2012-02-12 Robert Millan <rmh@gnu.org>
2839 Gerald Pfeifer <gerald@pfeifer.com>
2841 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
2844 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
2846 PR rtl-optimization/52175
2847 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
2848 to frame-related instructions.
2850 2012-02-10 Jason Merrill <jason@redhat.com>
2853 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
2854 (demangle_new_symbols): Fill it.
2855 (scan_linker_output): Walk it.
2856 (start_tweaking): Split out from scan_linker_output.
2857 (maybe_tweak): Update sym->chosen.
2858 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
2860 2012-02-11 Jakub Jelinek <jakub@redhat.com>
2863 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
2865 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
2867 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
2868 having the same mode as previous compare.
2870 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
2872 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
2873 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
2874 (nonlocal_goto_internal): Likewise.
2875 (nonlocal_goto): Emit a use and an indirect jump directly.
2877 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
2880 * doc/extend.texi : Update comments for __atomic_compare_exchange and
2881 __atomic_{is,always}_lock_free.
2883 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
2886 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
2887 negative constant address for TARGET_X32.
2889 2012-02-10 Richard Henderson <rth@redhat.com>
2891 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
2892 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
2893 for GIMPLE_TRANSACTION. Tidy if's into a switch.
2895 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2896 Ira Rosen <irar@il.ibm.com>
2898 PR tree-optimization/50031
2899 * targhooks.c (default_builtin_vectorization_cost): Handle
2901 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
2902 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
2903 all types of reduction and pattern statements.
2904 (vect_estimate_min_profitable_iters): Likewise.
2905 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
2906 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
2907 for explicit realigns.
2908 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
2909 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
2911 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2912 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
2913 vec_perm for VSX and handle vec_promote_demote.
2915 2012-02-10 Jakub Jelinek <jakub@redhat.com>
2918 * builtins.c (fold_builtin_atomic_always_lock_free,
2919 expand_builtin_atomic_always_lock_free,
2920 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
2921 Return and/or test boolean_true_node/boolean_false_node instead of
2922 integer_one_node/integer_zero_node.
2924 2012-02-10 Jan Hubicka <jh@suse.cz>
2927 * predict.c (predict_paths_for_bb): Prevent looping.
2928 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
2930 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
2932 * config/arm/arm.c (output_move_double): In one case properly
2933 count number of instructions that will be emitted.
2935 2012-02-10 Richard Guenther <rguenther@suse.de>
2937 PR translation/52193
2938 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
2940 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
2943 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
2945 2012-02-09 Jakub Jelinek <jakub@redhat.com>
2948 * var-tracking.c (emit_note_insn_var_location): If
2949 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
2950 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
2951 non-NOTE_DURING_CALL_P insn.
2953 2012-02-09 Bin Cheng <bin.cheng@arm.com>
2956 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
2958 2012-02-08 Magnus Granberg <zorry@gentoo.org>
2961 * gcc.c (switch_matches) Support switches with separated form,
2964 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
2966 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
2968 (RAMPZ_ADDR): Ditto.
2969 * config/avr/avr.c (avr_addr_t): New typedef.
2970 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
2971 (avr_init_expanders): Initialize it.
2972 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
2974 (expand_epilogue): Ditto.
2975 (avr_print_operand): Ditto.
2976 (avr_file_start): Ditto.
2977 (avr_emit_movmemhi): Ditto.
2979 2012-02-08 Richard Guenther <rguenther@suse.de>
2981 PR tree-optimization/46886
2982 * tree-flow.h (do_while_loop_p): Declare.
2983 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
2984 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
2986 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
2988 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
2989 always succeed for integers larger than a native word.
2991 2012-02-08 Richard Guenther <rguenther@suse.de>
2993 PR rtl-optimization/52170
2994 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
2995 properly handle integer vector modes.
2997 2012-02-08 Jakub Jelinek <jakub@redhat.com>
2999 PR gcov-profile/52150
3000 * coverage.c: Include target.h.
3001 (build_var): Call targetm.strip_name_encoding on the assembler name.
3002 Change one _ into . or $ if the target allows it.
3003 * Makefile.in (coverage.o): Depend on $(TARGET_H).
3005 PR rtl-optimization/52139
3006 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
3007 is a BARRIER after emit_insn_after_noloc, move BB_END
3008 to the last non-BARRIER insn before it.
3010 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
3013 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
3014 (mips_gimplify_va_arg_expr): Call it instead of
3015 std_gimplify_va_arg_expr.
3017 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
3019 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
3020 message for -mno-pointers-to-nested-function.
3022 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
3025 * expr.c (get_inner_reference): If there is an offset, add a negative
3026 bit position to it (if any).
3028 2012-02-07 Jakub Jelinek <jakub@redhat.com>
3030 PR rtl-optimization/52060
3031 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
3032 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
3033 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
3034 and/or i0src_copy2 when needed.
3036 2012-02-07 Jakub Jelinek <jakub@redhat.com>
3038 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
3039 or LTOPLUGINSONAME if have_c.
3041 * config/freebsd-spec.h: Add comment about what macros can be defined
3043 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
3044 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
3047 2012-02-07 Richard Guenther <rguenther@suse.de>
3049 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
3050 newline in -alias dumps.
3052 2012-02-07 Kai Tietz <ktietz@redhat.com>
3053 Dave Korn <dave.korn.cygwin@gmail.com>
3056 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
3057 Take care that typinfo gets dllexport-attribute.
3059 2012-02-07 Jakub Jelinek <jakub@redhat.com>
3062 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
3063 if modifier < EXPAND_SUM call force_operand on the result.
3065 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
3067 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
3068 adding __forwarder_dst__ prefix if a forwarder_section attribute is
3070 (epiphany_function_type): Replace types for specific interrupts with
3071 EPIPHANY_FUNCTION_INTERRUPT.
3072 (EPIPHANY_INTERRUPT_P): Update.
3073 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
3074 New static function.
3075 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
3076 <disinterrupt>: Affects type identity.
3077 (epiphany_handle_interrupt_attribute): Handle variable number of
3079 (epiphany_compute_function_type): Update for new
3080 epiphany_function_type definition.
3081 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
3082 handlers with a longcall forwarder.
3083 (epiphany_start_function): Handle multiple interrupt arguments and/or
3084 forwarder_section attribute.
3086 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
3089 2012-02-07 Alan Modra <amodra@gmail.com>
3092 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
3095 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3097 PR tree-optimization/50969
3098 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
3099 use vec_perm rather than vector_stmt.
3100 (vect_model_load_cost): Likewise.
3101 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
3102 vec_perm to be the same as other vector statements.
3103 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
3104 cost of vec_perm for TARGET_VSX.
3106 2012-02-06 Richard Guenther <rguenther@suse.de>
3108 PR tree-optimization/52115
3109 * tree-sra.c (access_has_replacements_p): New function.
3110 (sra_modify_assign): Use it to decide whether a use is uninitialized.
3112 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
3115 * trans-mem.c (expand_call_tm): Add an assertion.
3116 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
3119 2012-02-06 Richard Guenther <rguenther@suse.de>
3121 PR tree-optimization/50955
3122 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
3123 raise cost of expressions that replace an address with an
3124 expression based on a different pointer.
3126 2012-02-06 Jakub Jelinek <jakub@redhat.com>
3129 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
3130 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
3132 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3135 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
3136 -Weffc++ and specify guidelines come from second edition.
3138 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
3140 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
3141 (sibcall_value_multiple_internal, call_split, call_internal_direct)
3142 (call_direct_split, call_value_split, call_value_internal_direct)
3143 (call_value_direct_split, call_value_multiple_split): Use jal and
3144 jal_macro attributes.
3146 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
3148 * reload1.c (reload_regs_reach_end_p): Replace with...
3149 (reload_reg_rtx_reaches_end_p): ...this function.
3150 (new_spill_reg_store): Update commentary.
3151 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
3152 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
3153 before setting new_spill_reg_store.
3154 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
3155 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
3156 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
3157 for non-spill reload registers.
3159 2012-02-05 Ira Rosen <irar@il.ibm.com>
3161 PR tree-optimization/52091
3162 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
3163 (vect_is_simple_use_1): Likewise.
3164 * tree-vect-loop.c (vectorizable_reduction): Update calls
3165 to vect_is_simple_use_1 and vect_is_simple_use.
3166 (vectorizable_live_operation): Likewise.
3167 * tree-vect-patterns.c (widened_name_p,
3168 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
3169 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
3170 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
3171 vectorizable_shift,vectorizable_operation, vectorizable_store,
3172 vectorizable_load): Likewise.
3173 (vect_is_simple_cond): Add an argument, pass it to
3174 vect_is_simple_use_1.
3175 (vectorizable_condition): Update calls to vect_is_simple_cond,
3177 (vect_is_simple_use): Add an argument, the statement in which
3178 OPERAND is used. Check that if OPERAND's def stmt is a double
3179 reduction phi node, the use is a phi node too.
3180 (vect_is_simple_use_1): Add an argument, pass it to
3182 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
3183 to vect_is_simple_use.
3185 2012-02-04 Jakub Jelinek <jakub@redhat.com>
3187 PR rtl-optimization/52095
3188 * modulo-sched.c (dump_insn_locator): New function.
3189 (loop_canon_p, sms_schedule): Use it.
3191 PR rtl-optimization/52113
3192 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
3193 even for decomposable shift/zext insns.
3195 2012-02-03 Jakub Jelinek <jakub@redhat.com>
3196 Zdenek Dvorak <ook@ucw.cz>
3198 PR rtl-optimization/52092
3199 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
3200 on get_iv_value result.
3202 2012-02-02 Andrew Pinski <apinski@cavium.com>
3206 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
3208 2012-02-02 Jakub Jelinek <jakub@redhat.com>
3211 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
3213 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
3215 PR rtl-optimization/49800
3216 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
3217 (sched_finish): Call regstat_free_n_sets_and_refs.
3219 2012-02-02 Jia Liu <proljc@gmail.com>
3221 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
3224 2012-02-02 Jan Hubicka <jh@suse.cz>
3225 Tom de Vries <tom@codesourcery.com>
3228 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
3229 * varpool.c (varpool_analyze_pending_decls): Likewise.
3231 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
3232 Jayant R Sonar <jayant.sonar@kpitcummins.com>
3234 * config.gcc: Add cr16-* support.
3236 * doc/extend.texi: Document cr16 extensions.
3237 * doc/install.texi: Document cr16 install.
3238 * doc/invoke.texi: Document cr16 options.
3239 * doc/md.texi: Document cr16 constraints.
3241 * common/config/cr16/cr16-common.c: New file.
3242 * config/cr16/cr16.c: New file.
3243 * config/cr16/cr16.h: New file.
3244 * config/cr16/cr16.md: New file.
3245 * config/cr16/cr16.opt: New file.
3246 * config/cr16/cr16-protos.h: New file.
3247 * config/cr16/predicates.md: New file.
3248 * config/cr16/constraints.md: New file.
3249 * config/cr16/t-cr16: New file.
3251 2012-02-02 Jakub Jelinek <jakub@redhat.com>
3254 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
3255 that operands[2] is either immediate, or q_regs_operand.
3257 PR tree-optimization/52073
3258 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
3259 a pattern stmt for pattern uses, ignore uses outside of the loop.
3261 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
3263 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
3264 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
3265 (OUT_AS1, OUT_AS2): Remove.
3267 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
3269 PR rtl-optimization/51374
3270 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
3271 to cross other volatile_refs_p insns.
3273 2012-02-01 Richard Guenther <rguenther@suse.de>
3275 * doc/invoke.texi (fno-inline): Clarify documentation.
3276 (finline-small-functions): Likewise.
3277 (finline-functions): Likewise.
3278 * common.opt (finline): Adjust comment and documentation.
3279 (finline-small-functions): Clarify documentation.
3280 (finline-functions): Likewise.
3281 (finline-functions-called-once): Likewise.
3283 2012-02-01 Tristan Gingold <gingold@adacore.com>
3285 * c-typeck.c (composite_type): Keep mode for pointers.
3287 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
3289 * function.h (regno_reg_rtx): Adjust comment.
3290 * reginfo.c (init_reg_modes_target): Only use the previous mode
3291 if it fits within one register. Remove MIPS comment.
3293 2012-01-31 Jakub Jelinek <jakub@redhat.com>
3296 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
3298 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3300 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
3301 to srak instruction.
3303 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3305 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
3307 2012-01-31 Jakub Jelinek <jakub@redhat.com>
3312 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
3314 2012-01-31 Richard Guenther <rguenther@suse.de>
3316 PR tree-optimization/51528
3317 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
3320 2012-01-31 Jakub Jelinek <jakub@redhat.com>
3325 * ree.c (add_removable_extension): Change def_map argument
3326 to unsigned *, store in def_map 1 + offset into *insn_list vector
3327 instead of pointers into the vector.
3328 (find_removable_extensions): Adjust caller.
3330 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
3332 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
3333 Transform all "* quoted-c-code" to { c-code }.
3334 Remove redundant test for "optimize" in combine patterns.
3335 Move (include "avr-dimode.md") to end of file.
3337 2012-01-30 Bin Cheng <bin.cheng@arm.com>
3340 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3341 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
3343 2012-01-30 Richard Guenther <rguenther@suse.de>
3345 PR tree-optimization/52028
3346 * tree-loop-distribution.c (ldist_gen): Properly update
3349 2012-01-30 Jakub Jelinek <jakub@redhat.com>
3352 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
3353 set_cur_line_info_table if not emitting debug info.
3355 PR tree-optimization/52046
3356 * tree-vect-patterns.c (check_bool_pattern): Give up if
3357 a comparison could throw.
3360 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
3362 2012-01-30 Richard Guenther <rguenther@suse.de>
3364 PR tree-optimization/52045
3365 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
3366 SSA form if cfgcleanup did anything.
3368 2012-01-30 Richard Guenther <rguenther@suse.de>
3370 PR tree-optimization/52045
3371 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
3372 before computing final todo.
3374 2012-01-30 Richard Guenther <rguenther@suse.de>
3376 PR tree-optimization/51528
3377 * tree-sra.c (sra_modify_assign): Re-factor in preparation
3380 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
3382 * df-problems.c (df_kill_notes): Check that the use refers
3383 to the note under examination.
3385 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
3388 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
3389 parameter and use short-lived pseudos.
3390 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
3391 (sparc_expand_vector_init): Const-ify local variables and adjust
3392 calls to above functions.
3394 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
3396 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
3398 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
3400 * doc/invoke.texi: Make usage of "compile time" and
3401 "run time"/"runtime" consistent throughout the file.
3403 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
3405 * config/alpha/alpha.c (alpha_option_override): Default to
3406 full IEEE compliance mode for Go language.
3408 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
3410 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
3411 (LINK_SSP_SPEC): Define.
3413 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3416 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
3419 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
3421 * doc/invoke.texi: Correct hyphenation of "floating point",
3422 "double precision", and related terminology throughout the file.
3424 2012-01-28 Jakub Jelinek <jakub@redhat.com>
3427 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
3428 arm_general_register_operand predicate for operand 2 instead of
3431 2012-01-27 Ian Lance Taylor <iant@google.com>
3434 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
3435 * builtins.c (expand_builtin_init_trampoline): Add onstack
3436 parameter. Change caller.
3437 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
3438 * tree.c (build_common_builtin_nodes): Declare
3439 __builtin_init_heap_trampoline.
3441 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
3443 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
3444 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
3445 * config/avr/avr.c: Ditto.
3446 (avr_regnames): Remove because unused.
3447 * config/avr/avr.md (*cpse.ne): New peephole.
3448 (*cpse.eq): New peephole from former cpse peepholes.
3450 2012-01-27 Michael Eager <eager@eagercon.com>
3452 * config/microblaze.c (microblaze_emit_compare): Correct
3453 test after pcmp instruction.
3455 2012-01-27 Richard Guenther <rguenther@suse.de>
3457 PR tree-optimization/52020
3458 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
3460 2012-01-27 Richard Guenther <rguenther@suse.de>
3462 * ipa-pure-const.c (check_stmt): Clobbers do not make a
3463 function non-const/pure.
3465 2012-01-27 Richard Guenther <rguenther@suse.de>
3467 PR tree-optimization/50444
3468 * tree-sra.c (build_ref_for_offset): Properly adjust the
3469 MEM_REF type for unaligned accesses.
3471 2012-01-27 Richard Guenther <rguenther@suse.de>
3473 PR tree-optimization/50444
3474 * expr.c (mem_ref_refers_to_non_mem_p): New function.
3475 (expand_assignment): Use it. Properly handle misaligned
3476 bases when expanding stores to component references.
3477 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
3480 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
3483 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
3484 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
3485 * tree-data-ref.c (find_data_references_in_loop): Make static.
3486 (compute_all_dependences): Change return type to bool. Bail out
3487 for too many datarefs in a loop. Move the hunk resetting the data
3488 dependences vector from ...
3489 (compute_data_dependences_for_loop): ... here. Account for
3490 compute_all_dependences returning false.
3491 (compute_data_dependences_for_bb): Likewise.
3492 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
3493 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
3495 2012-01-27 Richard Guenther <rguenther@suse.de>
3498 * expr.c (store_field): Use the alias-set of the scratch memory
3501 2012-01-27 Tom de Vries <tom@codesourcery.com>
3503 PR tree-optimization/51990
3504 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3506 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
3508 2012-01-27 Jakub Jelinek <jakub@redhat.com>
3511 * var-tracking.c (reverse_op): Don't add any reverse operation
3512 if V already has any constant locations.
3514 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
3516 * doc/invoke.texi: Correct usage of "command line" (noun)
3517 vs "command-line" (adjective) throughout.
3519 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
3521 * doc/invoke.texi (Language Independent Options): Move
3522 -Wcoverage-mismatch blurb from here....
3523 (Warning Options): ...to here.
3525 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
3527 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3528 Set rs6000_always_hint to false for 476.
3530 2012-01-27 Matthias Klose <doko@ubuntu.com>
3532 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
3534 * incpath.c (add_standard_paths): Likewise.
3536 2012-01-27 Richard Henderson <rth@redhat.com>
3538 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
3539 * config/m68k/sync.md (atomic_test_and_set): Rename from
3540 sync_test_and_setqi and adjust the operands.
3541 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
3542 and unconditionally enable.
3544 2012-01-27 Richard Henderson <rth@redhat.com>
3546 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
3547 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
3548 (ldstub): Rename from ldstubqi.
3549 (ldstub<I24MODE>): Remove.
3551 2012-01-27 Richard Henderson <rth@redhat.com>
3553 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
3554 * c-cppbuiltin.c (cpp_atomic_builtins): Define
3555 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
3556 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
3557 * doc/tm.texi: Rebuild.
3559 2012-01-27 Richard Henderson <rth@redhat.com>
3561 * optabs.c (gen_atomic_test_and_set): Remove default.
3562 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
3564 2012-01-26 Jakub Jelinek <jakub@redhat.com>
3566 PR rtl-optimization/51978
3567 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
3568 (combine_reaching_defs): Likewise.
3569 (struct re_info): Remove.
3570 (add_removable_extension): Remove x and data arguments,
3571 add insn, insn_list and def_map. Use the arguments directly
3572 instead of using struct re_info.
3573 (find_removable_extensions): Don't call add_removable_extension
3574 through note_stores, instead just call it with single_set
3576 (find_and_remove_re): Pass curr_cand->expr instead of
3577 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
3579 2012-01-26 Michael Matz <matz@suse.de>
3581 PR tree-optimization/46590
3582 * cfgexpand.c: Revert last change (r183305).
3583 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
3585 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
3586 checking for emptiness.
3588 2012-01-26 Jakub Jelinek <jakub@redhat.com>
3591 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
3592 non-addressable non-BLKmode base correctly.
3594 2012-01-26 Michael Matz <matz@suse.de>
3596 PR tree-optimization/48794
3597 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
3598 regions referenced from RESX/EH_DISPATCH.
3600 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3602 * config/s390/s390.h: Make BRANCH_COST an option.
3603 * config/s390/s390.opt: New option -mbranch-cost.
3605 2012-01-26 Richard Henderson <rth@redhat.com>
3607 Revert 2012-01-24 change:
3608 * trans-mem.c (requires_barrier): Do not instrument thread local
3609 variables and emit save/restore for them.
3611 2012-01-25 Jakub Jelinek <jakub@redhat.com>
3614 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
3617 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
3619 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
3622 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
3625 Rename __pgm to __flash.
3626 Rename __pgm1 to __flash1.
3627 Rename __pgm2 to __flash2.
3628 Rename __pgm3 to __flash3.
3629 Rename __pgm4 to __flash4.
3630 Rename __pgm5 to __flash5.
3631 Rename __pgmx to __memx.
3632 * doc/extend.texi (AVR Named Address Spaces)
3633 Rename address space names as indicated above.
3634 * config/avr/avr.c (avr_addrspace): Ditto.
3636 * config/avr/avr-protos.h
3637 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
3638 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
3639 * config/avr/predicates.md: Ditto.
3640 * config/avr/avr.c Ditto, and
3641 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
3642 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
3644 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
3645 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
3646 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
3647 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
3648 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
3649 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
3650 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
3651 * config/avr/avr.c: Ditto.
3652 * config/avr/avr.md: Ditto.
3654 2012-01-25 Jason Merrill <jason@redhat.com>
3657 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
3659 2012-01-25 Jakub Jelinek <jakub@redhat.com>
3661 PR tree-optimization/51987
3662 * tree-data-ref.c (get_references_in_stmt): Handle references in
3663 non-volatile GIMPLE_ASM.
3665 2012-01-25 Richard Guenther <rguenther@suse.de>
3667 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
3668 bases are dereferenced.
3670 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
3672 PR rtl-optimization/48374
3673 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
3675 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
3677 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
3678 compute_data_dependences_for_loop returns false.
3679 * tree-parloops.c (loop_parallel_p): Likewise.
3681 2012-01-25 Richard Guenther <rguenther@suse.de>
3683 * tree.h (get_pointer_alignment_1): Declare.
3684 * builtins.c (get_pointer_alignment_1): New function.
3685 (get_pointer_alignment): Use it.
3687 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3689 PR rtl-optimization/48308
3690 * combine.c (enum undo_kind): Add UNDO_LINKS.
3691 (struct undo): Add member l to other_contents and where.
3692 (do_SUBST_LINK): New.
3694 (try_combine): Handle LOG_LINKS for the dummy i1 case.
3695 (undo_all): Handle UNDO_LINKS.
3697 2012-01-25 Richard Henderson <rth@redhat.com>
3699 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
3702 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3704 * optabs.c (gen_atomic_test_and_set): Use each argument.
3706 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3708 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
3709 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
3710 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
3711 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
3712 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
3713 TARGET_PAIRED_SINGLE_FLOAT.
3715 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3717 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
3718 (in_struct, return_val): Remove MEM documentation.
3719 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
3720 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
3721 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
3723 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3724 * cfgexpand.c (add_alias_set_conflicts): Likewise.
3725 * expr.c (store_field): Likewise.
3726 * function.c (assign_stack_temp_for_type): Likewise.
3727 * ifcvt.c (noce_try_cmove_arith): Likewise.
3728 * reload1.c (reload): Likewise.
3729 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
3730 (alpha_set_memflags): Likewise.
3731 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
3733 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
3735 * rtl.h (true_dependence, canon_true_dependence): Remove varies
3737 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
3738 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
3739 (true_dependence_1, true_dependence, canon_true_dependence): Remove
3741 * cselib.c (cselib_rtx_varies_p): Delete.
3742 (cselib_invalidate_mem): Update call to canon_true_dependence.
3743 * dse.c (record_store, check_mem_read_rtx): Likewise.
3744 (scan_reads_nospill): Likewise.
3745 * cse.c (check_dependence): Likewise.
3746 (cse_rtx_varies_p): Delete.
3747 * expr.c (safe_from_p): Update call to true_dependence.
3748 * ira.c (validate_equiv_mem_from_store): Likewise.
3749 (memref_referenced_p): Likewise.
3750 * postreload-gcse.c (find_mem_conflicts): Likewise.
3751 * sched-deps.c (sched_analyze_2): Likewise.
3752 * store-motion.c (load_kills_store): Likewise.
3753 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
3754 * gcse.c (mems_conflict_for_gcse_p): Likewise.
3755 (compute_transp): Update call to canon_true_dependence.
3757 2012-01-25 Richard Henderson <rth@redhat.com>
3759 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
3760 (maybe_emit_atomic_test_and_set): New.
3761 (expand_sync_lock_test_and_set): Use it.
3762 (expand_atomic_test_and_set): Likewise.
3763 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
3764 the implementation; clarify implementation defined details.
3765 * doc/md.texi (atomic_test_and_set): Document.
3767 2012-01-25 Richard Henderson <rth@redhat.com>
3769 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
3771 2012-01-25 Richard Henderson <rth@redhat.com>
3774 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
3775 to effect no-op split.
3777 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
3780 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
3781 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
3782 (BT_FN_VOID_PTR_INT_SIZE): New.
3783 (BT_FN_UINT_UINT_VAR): Remove.
3784 (BT_FN_UINT32_UINT32_VAR): New.
3785 (BT_FN_DOUBLE_VPTR): Remove.
3786 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
3788 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
3789 (_ITM_changeTransactionMode): Same.
3790 (_ITM_memmoveRtWt): Change return type to void.
3791 (_ITM_memcpyRtWt): Same.
3792 (_ITM_memsetW): Same.
3793 (_ITM_RaRD): Change types to double.
3798 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
3800 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
3801 Patrick Marlier <patrick.marlier@gmail.com>
3803 * trans-mem.c (requires_barrier): Do not instrument thread local
3804 variables and emit save/restore for them.
3806 2012-01-24 Jason Merrill <jason@redhat.com>
3809 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
3810 output static aliases.
3812 2012-01-24 Jakub Jelinek <jakub@redhat.com>
3815 * common.opt (-pie, -shared, pie, shared): Change from Common to
3817 * gcc.c (display_help): Display help for -pie and -shared.
3819 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
3822 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
3823 Remove note on size/offset limitation.
3824 (AVR Variable Attributes): Add example how to read data located
3825 with progmem. Refer to named address spaces.
3826 * doc/invoke.texi (AVR Options): Fix typo.
3828 2012-01-24 Richard Guenther <rguenther@suse.de>
3830 Forward-port to trunk
3831 2010-09-21 Jakub Jelinek <jakub@redhat.com>
3834 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
3835 op0 isn't sufficiently aligned and there is movmisalignM
3836 insn for mode, use it to load op0 into a temporary register.
3838 2012-01-24 Jakub Jelinek <jakub@redhat.com>
3841 * target.def (const_not_ok_for_debug_p): New hook.
3842 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
3844 * doc/tm.texi: Regenerated.
3845 * dwarf2out.c (const_ok_for_output_1): If
3846 targetm.const_not_ok_for_debug_p returns true, fail.
3847 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
3849 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
3851 2012-01-23 Kai Tietz <ktietz@redhat.com>
3854 * config/i386/predicates.md (symbolic_operand): Allow
3855 UNSPEC_PCREL as PIC expression for lea.
3856 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
3857 * config/i386/i386.c (ix86_delegitimize_address): Handle
3858 UNSPEC_PCREL for none-MEM, too.
3860 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
3862 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
3863 (ipa_tm_create_version_alias): Same.
3865 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
3868 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
3869 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
3871 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
3872 Patrick Marlier <patrick.marlier@gmail.com>
3873 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3876 * lto-wrapper.c (run_gcc): Pass the LTO section name to
3877 simple_object_start_read.
3879 2012-01-23 Richard Guenther <rguenther@suse.de>
3882 PR tree-optimization/51895
3883 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
3884 parameter decomposition into BLKmode components.
3886 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
3888 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
3889 fake variables for restrict-qualified pointers whose pointed-to type
3890 contains a placeholder.
3892 2012-01-23 Richard Guenther <rguenther@suse.de>
3894 PR tree-optimization/51949
3895 * ipa-split.c (execute_split_functions): Do not split malloc functions.
3897 2012-01-23 Jakub Jelinek <jakub@redhat.com>
3899 PR rtl-optimization/51933
3900 * ree.c (transform_ifelse): Return true right away if dstreg is
3901 already wider or equal to cand->mode.
3902 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
3903 (make_defs_and_copies_lists): Remove defs_list and copies_list
3904 arguments, add state argument, just truncate state->work_list
3905 instead of always allocating and freeing the vector. Assert that
3906 get_defs succeeds instead of returning 2. Changed return type to bool.
3907 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
3908 have ext_src_mode, see if it has been modified already with the
3909 right kind of extension and has been extended before from the
3910 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
3911 just return true. Remember the original mode in state->modified array.
3912 (combine_reaching_defs): Add state argument. Don't allocate and
3913 free here def_list, copied_list and vec vectors, instead just
3914 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
3915 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
3916 Add state variable, clear vectors in it, initialize state.modified
3917 if needed. Free all the vectors at the end and state.modified too.
3918 Don't skip a candidate if the extension expression has been modified.
3920 2012-01-22 Douglas B Rupp <rupp@gnat.com>
3923 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
3924 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
3925 (extra_options) interix.opt -> i386/interix.opt"
3926 (extra_objs):Add winnt-stubs.o
3927 * configure.ac: Add interix to target_os .comm on PE check.
3928 * configure: Regenerate.
3929 * config/interix3.h: Delete and move bits to..
3930 * config/interix.h: Delete and move bits to..
3931 * config/i386/i386-interix3.h: Delete and move bits to..
3932 * config/i386/i386-interix.h: ..here.
3933 (TARGET_CPU_DEFAULT): Remove redefinition.
3934 (TARGET_ASM_CONSTRUCTOR): Undefine.
3935 (SUBTARGET_SWITCHES): Define for ms-bitfields.
3936 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
3937 (PTRDIFF_TYPE): Define.
3938 (LONG_DOUBLE_TYPE_SIZE): Define.
3939 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
3940 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3941 (TARGET_SECTION_TYPE_FLAGS): Define.
3942 (ASM_DECLARE_FUNCTION_NAME): Define.
3943 (ASM_OUTPUT_EXTERNAL): Define.
3944 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
3945 (ASM_OUTPUT_ALIGNED_BSS): Define.
3946 (PCC_BITFIELD_TYPE_MATTERS): Define.
3947 (USE_CONST_SECTION): Define.
3948 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
3949 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3950 (SUPPORTS_ONE_ONLY): Remove.
3951 (I386_PE_STRIP_ENCODING): Define.
3952 * config/interix.opt: Delete and move bits to..
3953 * config/i386/interix.opt: ..here. New.
3954 (mpe-aligned-commons): Add.
3955 * config/i386/t-interix: Add copyright header.
3956 (winnt-stubs.o): Add rule.
3958 2012-01-22 Jason Merrill <jason@redhat.com>
3961 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
3962 for extra name aliases.
3964 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
3966 PR rtl-optimization/51924
3967 * ree.c (combine_set_extension): Improve debugging message.
3968 (combine_reaching_defs): Likewise.
3969 (get_defs): Rename confusingly named variable.
3970 (find_and_remove_re): Skip a candidate if the extension expression has
3973 2012-01-21 Robert Millan <rmh@gnu.org>
3974 Gerald Pfeifer <gerald@pfeifer.com>
3976 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
3977 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
3979 2012-01-20 Jakub Jelinek <jakub@redhat.com>
3981 PR tree-optimization/51914
3982 * tree-vect-stmts.c (vectorizable_conversion): For
3983 cvt_type && modifier == WIDEN, put temporary with cvt_type
3984 at the beginning of vec_dsts and set vec_dest to temporary
3987 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
3989 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
3991 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
3993 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
3994 * config/rs6000/rs6000.c: Likewise.
3996 2012-01-20 Jakub Jelinek <jakub@redhat.com>
3999 * config/arm/arm.c (arm_count_output_move_double_insns): Call
4000 output_move_double on a copy of operands array.
4002 2012-01-20 Cary Coutant <ccoutant@google.com>
4003 Dodji Seketeli <dodji@redhat.com>
4006 * dwarf2out.c (copy_declaration_context): Return ref to parent
4007 of declaration DIE, if necessary.
4008 (remove_child_or_replace_with_skeleton): Add new parameter; update
4009 caller. Place skeleton DIE under parent DIE of original declaration.
4010 Move call to copy_declaration_context to here ...
4011 (break_out_comdat_types): ... from here.
4013 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4015 PR rtl-optimization/51856
4016 * reload.c (find_reloads_subreg_address): Set the address_reloaded
4019 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4022 * config/arm/arm.c (arm_print_operand): Correct output of alignment
4023 hints for neon loads and stores.
4025 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
4029 * doc/extend.texi (Named Address Spaces): Split into subsections.
4030 (AVR Named Address Spaces): New subsection.
4031 (M32C Named Address Spaces): New subsection.
4032 (RL78 Named Address Spaces): New subsection.
4033 (SPU Named Address Spaces): New subsection.
4034 (Variable Attributes): New anchor "AVR Variable Attributes".
4035 (AVR Variable Attributes): Rewrite and avoid wording
4036 "address space" in this context.
4037 * doc/invoke.texi (AVR Options): Rewrite and add documentation
4038 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
4039 (AVR Built-in Macros): New subsubsection therein.
4040 * doc/md.texi (AVR constraints): Remove "C04", "R".
4042 2012-01-20 Richard Guenther <rguenther@suse.de>
4044 PR tree-optimization/51903
4045 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
4046 when removing stmts.
4048 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4051 * config/arm/arm.c (arm_load_pic_register): Use
4052 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
4053 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
4054 (arm_pic_static_addr): Likewise.
4055 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
4056 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
4057 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
4058 (pic_load_addr_unified): New.
4060 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
4063 * function.c (instantiate_virtual_regs_in_insn): Use
4064 delete_insn_and_edges when removing a wrong asm insn.
4066 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
4068 PR rtl-optimization/40761
4069 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
4070 Add new member loop_num.
4071 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
4072 (ira_build): Remove the parameter.
4074 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
4075 (ira.c): Do not build CFG loops for one region allocation. Remove
4076 argument from ira_build call.
4078 * ira-build.c (init_loop_tree_node): New function.
4079 (create_loop_tree_nodes): Use it. Separate the case when CFG
4080 loops are not built.
4081 (more_one_region_p): Check current_loops.
4082 (finish_loop_tree_nodes): Separate the case when CFG loops are not
4084 (add_loop_to_tree): Process loop equal to NULL too.
4085 (form_loop_tree): Separate the case when CFG loops are not built.
4086 Use explicitly number for the root.
4087 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
4089 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
4090 instead of loop->num.
4091 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
4092 (mark_all_loops_for_removal): Ditto.
4093 (remove_unnecessary_regions): Separate the case when CFG loops
4095 (ira_build): Remove the parameter. Use explicit number of regions
4096 when CFG loops are not built.
4098 * ira-color.c (print_loop_title): Separate the case for the root node.
4099 Use loop_num instead of loop->num.
4100 (move_spill_restore): Use loop_num instead of loop->num.
4102 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
4103 (change_loop): Ditto.
4104 (change_loop): Use loop_num instead of loop->num.
4106 * ira-lives.c (process_bb_node_lives): Ditto.
4108 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
4110 * ira-conflicts.c (print_allocno_conflicts): Ditto.
4112 2012-01-19 Jakub Jelinek <jakub@redhat.com>
4115 * tree-mudflap.c (mf_artificial): New function.
4116 (execute_mudflap_function_ops, execute_mudflap_function_decls,
4117 mx_register_decls, mudflap_enqueue_decl): Use it.
4120 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
4121 numbers in the insn pattern.
4123 2012-01-19 Michael Matz <matz@suse.de>
4125 PR tree-optimization/46590
4126 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
4127 use it in remembering which conflicts we already created.
4128 (add_scope_conflicts): Adjust call to above, (de)allocate helper
4131 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
4134 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
4135 (merge_and_complain): Same.
4137 2012-01-19 Jakub Jelinek <jakub@redhat.com>
4140 * config/initfini-array.h: Guard content of the header
4141 with #ifdef HAVE_INITFINI_ARRAY.
4142 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
4143 Add initfini-array.h to tm_file here.
4144 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
4145 * config.gcc: Don't add initfini-array.h to tm_file here.
4146 * configure: Regenerated.
4148 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
4150 PR rtl-optimization/51505
4151 * df-problems.c (df_kill_notes): New parameter live. Update comment.
4152 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
4153 (df_note_bb_compute): Update the call to df_kill_notes.
4155 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
4157 * trans-mem.c (requires_barrier): Remove call to is_global_var.
4159 2012-01-18 Richard Guenther <rguenther@suse.de>
4161 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
4162 of conversions to void *.
4164 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4165 Richard Sandiford <rdsandiford@googlemail.com>
4169 * optabs.h (simplify_expand_binop): Declare.
4170 * optabs.c (simplify_expand_binop): Make global.
4171 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
4172 endian targets if the source cannot be exactly covered by word
4175 2012-01-17 Jakub Jelinek <jakub@redhat.com>
4178 * hard-reg-set.h (struct hard_reg_set_container): New type.
4179 * target.h (struct hard_reg_set_container): Forward declare.
4180 * target.def (set_up_by_prologue): New target hook.
4181 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
4182 * doc/tm.texi: Regenerated.
4183 * function.c (thread_prologue_and_epilogue_insns): Change
4184 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
4185 Call targetm.set_up_by_prologue on it.
4186 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
4187 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
4189 2012-01-17 Nick Clifton <nickc@redhat.com>
4191 * config/rx/rx.c (rx_can_use_simple_return): New function.
4192 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
4193 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
4195 2012-01-17 Richard Guenther <rguenther@suse.de>
4198 * expr.c (expand_assignment): Take address-space information
4199 from the address operand of MEM_REF and TARGET_MEM_REF.
4200 (expand_expr_real_1): Likewise.
4202 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4204 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
4205 reload dump is requested.
4207 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
4210 * trans-mem.c (requires_barrier): Call may_be_aliased.
4212 2012-01-17 Jakub Jelinek <jakub@redhat.com>
4214 PR tree-optimization/51877
4215 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
4216 call arguments and fndecls compare equal, instead return false if they
4217 don't. Return true only if lhs1 and lhs2 are either both NULL, or
4218 both SSA_NAMEs that are valueized the same, or they satisfy
4221 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4223 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
4225 * configure: Regenerate.
4227 2012-01-16 Jan Hubicka <jh@suse.cz>
4231 * convert.c (convert_to_integer): Use fold_convert for
4232 converting an INTEGER_CST to integer type.
4234 2012-01-16 Jason Merrill <jason@redhat.com>
4237 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
4239 2012-01-16 Jakub Jelinek <jakub@redhat.com>
4242 * config/s390/s390.c (s390_chunkify_start): Don't skip
4243 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
4244 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
4245 If insn is followed by NOTE_INSN_VAR_LOCATION or
4246 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
4247 Don't use location of note insns.
4249 PR tree-optimization/51865
4250 * tree-inline.c (tree_function_versioning): Call remap_decl
4251 on DECL_RESULT whenever it has VOID_TYPE_P type.
4253 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
4255 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
4256 for calls to locally-binding MIPS16 functions if only the return
4257 type uses float regs.
4259 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
4260 Richard Sandiford <rdsandiford@googlemail.com>
4262 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
4263 (SYMBOL_32_HIGH): Likewise.
4264 (mips_output_tls_reloc_directive): Declare.
4265 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
4266 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
4267 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
4268 (mips_lo_relocs, mips_hi_relocs): Make extern.
4269 (mips16_stub_function): Move up file.
4270 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
4271 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
4272 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
4273 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
4274 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
4275 (mips_get_tp): Add MIPS16 support.
4276 (mips_legitimize_tls_address): Remove MIPS16 sorry().
4277 Generalize DTPREL and TPREL handling.
4278 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
4279 Add MIPS16 TLS support.
4280 (mips_output_tls_reloc_directive): New function.
4281 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
4282 * config/mips/predicates.md (symbolic_operand_with_high)
4283 (tls_reloc_operand): New predicates.
4284 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
4285 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
4286 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
4287 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
4288 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
4289 (*tls_get_tp_mips16_call_<mode>): Likewise.
4291 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
4293 PR rtl-optimization/51821
4294 * recog.c (peep2_find_free_register): Determine clobbered registers
4297 2012-01-14 Denis Chertykov <chertykov@gmail.com>
4300 * config/avr/avr-protos.h: Revert change of 2012-01-09.
4301 * config/avr/avr.c: Likewise.
4302 * config/avr/avr.h: Likewise.
4304 2012-01-13 Ian Lance Taylor <iant@google.com>
4307 * tree.h (TYPE_QUALS): Add cast to int.
4308 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
4310 2012-01-13 Ian Lance Taylor <iant@google.com>
4312 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
4313 comparing param_index to VEC_length result.
4315 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
4317 * c-decl.c: Do not include tree-mudflap.h
4318 * tree-optimize.c: Likewise.
4319 * Makefile.in: Update dependencies.
4321 2012-01-13 Richard Guenther <rguenther@suse.de>
4324 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
4325 variable-sized result always use RSO.
4327 2012-01-12 DJ Delorie <dj@redhat.com>
4329 * cfgexpand.c (convert_debug_memory_address): Allow any valid
4330 pointer type, not just the default pointer type.
4332 2012-01-09 Richard Henderson <rth@redhat.com>
4333 Denis Chertykov <chertykov@gmail.com>
4336 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
4337 * config/avr/avr.c (avr_can_eliminate): Simplify.
4338 (avr_initial_elimination_offset): Likewise.
4339 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
4340 (expand_epilogue): Likewise.
4341 (avr_legitimize_address): Gut.
4342 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
4343 (avr_hard_regno_nregs): New.
4344 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
4345 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
4346 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
4347 add soft frame pointer.
4348 (CALL_USED_REGISTERS): Likewise.
4349 (REG_CLASS_CONTENTS): Likewise.
4350 (REGISTER_NAMES): Likewise.
4351 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
4352 (HARD_FRAME_POINTER_REGNUM): New.
4353 (FRAME_POINTER_REGNUM): Use soft frame pointer.
4354 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
4355 remove the HARD_FRAME_POINTER self-elimination.
4357 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
4360 * config/avr/avr.c (avr_encode_section_info): Test for absence of
4361 DECL_EXTERNAL when checking for initializers of progmem variables.
4363 2012-01-12 Ira Rosen <irar@il.ibm.com>
4365 PR tree-optimization/51799
4366 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
4367 that the last operation is a type demotion.
4369 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
4371 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
4372 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
4374 2012-01-11 Jakub Jelinek <jakub@redhat.com>
4377 * combine.c (distribute_notes): If i3 is a noreturn call,
4378 allow old_size to be equal to args_size and make sure the
4379 noreturn call gets REG_ARGS_SIZE note.
4380 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
4381 on noreturn calls even when the delta is 0.
4383 2012-01-11 Nathan Sidwell <nathan@acm.org>
4385 * gcov.c (STRING_SIZE): Remove.
4386 (generate_results): Erase annotations for source files with no
4387 coverage information.
4389 (output_lines): Use it.
4391 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
4393 * gimple.h (gimplify_body): Remove first argument.
4394 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
4395 pointer set here, instead just pass DATA to walk_tree.
4396 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
4397 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
4398 (unvisit_body): Likewise, but with unmark_visited.
4399 (gimplify_body): Remove BODY_P argument and adjust.
4400 (gimplify_function_tree): Adjust call to gimplify_body.
4401 * omp-low.c (finalize_task_copyfn): Likewise.
4403 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
4405 * tree.h (build_function_decl_skip_args): Add boolean parameter.
4406 (build_function_type_skip_args): Delete.
4407 * tree.c (build_function_type_skip_args): Make static and add
4408 SKIP_RETURN parameter. Fix thinko in the handling of variants.
4409 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
4410 pass it to build_function_type_skip_args.
4411 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
4412 (tree_function_versioning): Likewise.
4413 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
4414 build_function_decl_skip_args.
4415 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
4416 and pass it to build_function_decl_skip_args/tree_function_versioning.
4417 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
4418 * ipa-inline-transform.c (save_inline_function_body): Likewise.
4419 * trans-mem.c (ipa_tm_create_version): Likewise.
4420 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
4421 * tree-inline.c (declare_return_variable): Remove always-true test.
4422 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
4423 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
4424 * ipa-split.c (split_function): Skip the return value for the split
4425 part if it doesn't return.
4427 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4429 PR tree-optimization/49642
4430 * ipa-split.c (forbidden_dominators): New variable.
4431 (check_forbidden_calls): New function.
4432 (dominated_by_forbidden): Likewise.
4433 (consider_split): Check for forbidden dominators.
4434 (execute_split_functions): Initialize and free forbidden
4435 dominators info; call check_forbidden_calls.
4437 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4439 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
4441 2012-01-11 Nick Clifton <nickc@redhat.com>
4443 * config/rx/rx.md (return): Define pattern.
4445 2012-01-11 Richard Guenther <rguenther@suse.de>
4447 * doc/extend.texi (malloc attribute): Adjust according to
4450 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
4451 Patrick Marlier <patrick.marlier@gmail.com>
4454 * trans-mem.c (get_cg_data): Traverse aliases if requested.
4455 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
4456 (ipa_tm_note_irrevocable): Same.
4457 (ipa_tm_scan_irr_block): Same.
4458 (ipa_tm_decrement_clone_counts): Same.
4459 (ipa_tm_scan_irr_function): Same.
4460 (ipa_tm_create_version_alias): Same.
4461 (ipa_tm_create_version): Same.
4462 (ipa_tm_transform_calls_redirect): Same.
4463 (ipa_tm_transform_calls): Same.
4464 (ipa_tm_transform_transaction): Same.
4465 (ipa_tm_execute): Same.
4467 2012-01-10 Richard Guenther <rguenther@suse.de>
4470 * opts.c (common_handle_option): Handle -Werror.
4472 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
4474 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
4477 2012-01-10 Jason Merrill <jason@redhat.com>
4479 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
4482 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4484 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
4485 supports R_386_TLS_GD_PLT reloc.
4486 (gcc_cv_as_ix86_tlsldmplt): Check if linker
4487 supports R_386_TLS_LDM_PLT reloc.
4488 * configure: Regenerate.
4489 * config.in: Regenerate.
4491 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
4494 Extend __pgmx semantics to linearize memory.
4495 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
4496 determine if code comes inline or from libgcc.
4497 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
4498 (movmem_qi, movmem_qi): Set constraint #2 to "n".
4499 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
4500 (movmemx_qi, movmemx_hi): New insns.
4501 (xload_<mode>_libgcc): Rewrite to new insn condition.
4502 (xload_<mode>): Remove insns.
4503 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
4504 cases that don't satisfy avr_xload_libgcc_p().
4505 (avr_addr_space_convert): Allow converting in any direction.
4506 (avr_addr_space_subset_p): Return always true.
4507 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
4508 (avr_emit_movmemhi): Ditto.
4509 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
4510 (avr_out_movmem): Ditto.
4511 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
4512 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
4513 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
4514 (avr_encode_section_info): Encode 'progmem' in symbol flags.
4515 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
4517 2012-01-10 Richard Guenther <rguenther@suse.de>
4519 PR tree-optimization/50913
4520 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
4521 Require data-refs to be representable by Graphite with respect
4524 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
4526 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
4527 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
4529 2012-01-10 Tom de Vries <tom@codesourcery.com>
4531 PR rtl-optimization/51271
4532 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
4533 handling annulled branch.
4535 2012-01-10 Richard Henderson <rth@redhat.com>
4537 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
4538 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
4539 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
4540 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
4541 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
4542 arm_expand_vec_perm_const): New.
4543 * config/arm/arm-protos.h: Update.
4544 * config/arm/neon.md (UNSPEC_VCONCAT): New.
4545 (*neon_vswp<VDQX>): New.
4546 (neon_vcombine<VDX>): Use neon_split_vcombine.
4547 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
4548 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
4549 (vec_perm<VE>): New.
4551 2012-01-10 Richard Henderson <rth@redhat.com>
4553 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
4554 use it if reload_completed.
4555 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
4556 arm_output_asm_insn, arm_process_output_memory_barrier,
4557 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
4558 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
4559 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
4560 arm_process_output_sync_insn, arm_output_sync_insn,
4561 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
4562 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
4563 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
4564 (emit_unlikely_jump): New.
4565 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
4566 (arm_split_atomic_op): New.
4567 * config/arm/arm-protos.h: Update.
4568 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
4569 (struct arm_sync_generator): Remove.
4570 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
4571 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
4572 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
4573 (VUNSPEC_LL, VUNSPEC_SC): New.
4574 (sync_result, sync_memory, sync_required_value, sync_new_value,
4575 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
4576 (attr length): Don't use arm_sync_loop_insns.
4577 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
4578 (movsfcc, movdfcc): Likewise.
4579 * config/arm/constraints.md (Ua): New.
4580 * config/arm/prediates.md (mem_noofs_operand): New.
4581 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
4582 (sync_clobber, sync_t2_reqd): Remove.
4583 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
4584 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
4585 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
4586 (arm_sync_compare_and_swap<SIDI>): Remove.
4587 (arm_sync_compare_and_swap<NARROW>): Remove.
4588 (arm_sync_lock_test_and_set<SIDI>): Remove.
4589 (arm_sync_lock_test_and_set<NARROW>): Remove.
4590 (arm_sync_new_<syncop><SIDI>): Remove.
4591 (arm_sync_new_<syncop><NARROW>): Remove.
4592 (arm_sync_new_nand<SIDI>): Remove.
4593 (arm_sync_new_nand<NARROW>): Remove.
4594 (arm_sync_old_<syncop><SIDI>): Remove.
4595 (arm_sync_old_<syncop><NARROW>): Remove.
4596 (arm_sync_old_nand<SIDI>): Remove.
4597 (arm_sync_old_nand<NARROW>): Remove.
4598 (*memory_barrier): Merge arm_output_memory_barrier.
4599 (atomic_compare_and_swap<QHSD>): New.
4600 (atomic_compare_and_swap<NARROW>_1): New.
4601 (atomic_compare_and_swap<SIDI>_1): New.
4602 (atomic_exchange<QHSD>): New.
4603 (cas_cmp_operand, cas_cmp_str): New.
4604 (atomic_op_operand, atomic_op_str): New.
4605 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
4606 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
4607 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
4608 (arm_load_exclusive<NARROW>): New.
4609 (arm_load_exclusivesi, arm_load_exclusivedi): New.
4610 (arm_store_exclusive<QHSD>): New.
4612 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4614 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
4615 reload patterns if -mvsx-scalar-memory.
4617 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
4618 generated, even -mno-vsx-scalar-double was used.
4619 (vsx_xscvdpsp_scalar): Likewise.
4620 (vsx_xscvspdp_scalar2): Likewise.
4622 2012-01-09 Tom de Vries <tom@codesourcery.com>
4623 Andrew Pinski <apinski@cavium.com>
4626 * reorg.c (fill_slots_from_thread): Don't speculate
4627 frame-related insns.
4629 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4631 * sched-int.h (bb_note): Move to...
4632 * basic-block.h: ...here.
4633 * haifa-sched.c (bb_note): Move to...
4634 * cfgrtl.c: ...here.
4635 * function.c (next_block_for_reg): New function.
4636 (move_insn_for_shrink_wrap): Likewise.
4637 (prepare_shrink_wrap): Rewrite to use the above.
4639 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
4641 * gimple.c (is_gimple_non_addressable): Remove.
4642 * gimple.h: Remove is_gimple_non_addressable.
4643 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
4644 is_gimple_non_addressable.
4645 * trans-mem.c (expand_assign_tm): Same.
4647 2012-01-09 Richard Guenther <rguenther@suse.de>
4649 PR tree-optimization/51775
4650 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
4651 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
4653 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4655 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
4657 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
4659 2012-01-09 Richard Guenther <rguenther@suse.de>
4661 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
4663 2012-01-08 Jan Hubicka <jh@suse.cz>
4665 PR tree-optimize/51680
4666 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
4667 on when known_vals needs to be computed; cleanup.
4669 2012-01-08 Jan Hubicka <jh@suse.cz>
4671 PR tree-optimize/51694
4672 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
4674 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4676 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
4677 for -std=c++98 and -std=c++11 too.
4679 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
4681 * cfgloop.c (cancel_loop): Add free() of bbs array.
4683 2012-01-07 Jan Hubicka <jh@suse.cz>
4685 PR tree-optimization/51600
4686 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
4687 that benefits small functions.
4689 2012-01-07 Jan Hubicka <jh@suse.cz>
4691 * ipa-inline.c (want_inline_small_function_p): Fix formating.
4693 2012-01-07 Jan Hubicka <jh@suse.cz>
4695 PR tree-optimization/51680
4696 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
4697 whose inlining reduce unit size.
4699 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
4702 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
4703 Add canonical node to containing_mem chain after the non-canonical
4704 one, even if there weren't any locs to propagate.
4705 (remove_useless_values): Keep only canonical values.
4706 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
4707 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
4708 canonicalize mem_chain elements that are not discarded.
4710 2012-01-06 Jakub Jelinek <jakub@redhat.com>
4713 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
4714 before emitting functions.
4716 PR gcov-profile/50127
4717 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
4718 clear_aux_for_blocks.
4720 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
4723 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
4725 2012-01-06 Arnaud Charlet <charlet@adacore.com>
4727 * c-decl.c (ext_block): Moved up.
4728 (collect_all_refs, for_each_global_decl): Take ext_block into account.
4730 2012-01-06 Han Shen <shenhan@google.com>
4732 Translate built-in include paths for sysroot.
4733 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
4734 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
4736 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
4737 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
4739 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
4740 control whether sysroot should be prepended to gxx include dir.
4742 * configure: Regenerate.
4744 2012-01-06 Torvald Riegel <triegel@redhat.com>
4746 PR rtl-optimization/51771
4747 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
4748 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
4750 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
4752 PR tree-optimization/51315
4753 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
4754 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
4756 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
4759 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
4760 for shrp pattern. Correctly handle and fixup shift variable.
4761 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
4763 2012-01-05 Jakub Jelinek <jakub@redhat.com>
4766 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
4767 note when !ACCUMULATE_OUTGOING_ARGS.
4769 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
4771 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
4773 (extract_range_from_unary_expr_1): Avoid useless computations.
4775 2012-01-05 Jakub Jelinek <jakub@redhat.com>
4777 PR rtl-optimization/51767
4778 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
4779 of jump_block and add an extra edge for degenerated asm gotos.
4782 * stmt.c (check_unique_operand_names): Don't ICE during error
4783 reporting if i is from labels chain.
4786 * profile.c (branch_prob): Split bbs that have exit edge
4787 and need a fake entry edge too.
4789 2012-01-05 Jan Hubicka <jh@suse.cz>
4792 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
4795 2012-01-05 Richard Guenther <rguenther@suse.de>
4798 * tree-streamer-out.c (write_ts_optimization): New function.
4799 (streamer_write_tree_body): Call it.
4800 * tree-streamer-in.c (lto_input_ts_optimization): New function.
4801 (streamer_read_tree_body): Call it.
4802 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
4804 2012-01-05 Jakub Jelinek <jakub@redhat.com>
4807 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
4808 * gimplify.c (gimplify_cleanup_point_expr): Save and set
4809 in_cleanup_point_expr before gimplify_stmt call and restore it
4811 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
4812 in_cleanup_point_expr is false.
4814 2012-01-05 Richard Guenther <rguenther@suse.de>
4817 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
4819 * toplev.c (process_options): Reject combining mudflap and LTO.
4820 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
4822 2012-01-05 Richard Guenther <rguenther@suse.de>
4824 PR tree-optimization/51760
4825 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
4827 (bit_value_unop): Handle UNDEFINED operands.
4828 (bit_value_binop): Likewise.
4830 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
4832 * config/avr/avr.c (avr_replace_prefix): Remove.
4833 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
4834 (avr_asm_function_rodata_section): Ditto.
4835 (avr_asm_select_section): Ditto.
4837 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
4839 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
4842 2012-01-05 Jakub Jelinek <jakub@redhat.com>
4845 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
4846 calls that have any non-fake successor edges.
4849 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
4851 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
4853 PR tree-optimization/51624
4854 * tree-sra.c (build_ref_for_model): When replicating a chain of
4855 COMPONENT_REFs, stop as soon as the offset would become negative.
4857 2012-01-04 Jakub Jelinek <jakub@redhat.com>
4860 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
4861 in .debug_loc on the floor.
4863 2012-01-04 Andrew Pinski <apinski@cavium.com>
4865 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
4867 2012-01-04 Andrew Pinski <apinski@cavium.com>
4868 Adam Nemet <anemet@caviumnetworks.com>
4870 * config/mips/mips.md (size): Add SI and DI.
4871 (SIZE): New mode attribute.
4872 (U): New code attribute.
4873 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
4874 (mips_lbux_<mode>): Delete.
4875 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
4876 (mips_lhx): Use gen_mips_lhx_extsi.
4877 (mips_lhx_<mode>): Delete.
4879 (mips_l<size>x): New expand.
4880 (mips_lwx_<mode>): Delete.
4881 (mips_l<GPR:size>x_<P:mode>): New pattern.
4882 (*mips_lw<u>x_<P:mode>_ext): Likewise.
4883 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
4884 * config/mips/mips.c (mips_lx_address_p): New function.
4885 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
4886 (dsp64): New availability predicate.
4887 (mips_builtins): Add an entry for __builtin_mips_ldx.
4888 * config/mips/mips.h (ISA_HAS_LBX): New define.
4889 (ISA_HAS_LBUX): Likewise.
4890 (ISA_HAS_LHX): Likewise.
4891 (ISA_HAS_LHUX): Likewise.
4892 (ISA_HAS_LWX): Likewise.
4893 (ISA_HAS_LWUX): Likewise.
4894 (ISA_HAS_LDX): Likewise.
4895 * doc/extend.texi (__builtin_mips_ldx): Document.
4897 2012-01-04 Tristan Gingold <gingold@adacore.com>
4899 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
4900 when long pointers are used.
4901 * config.build (*-*-*vms*): Handle all OpenVMS targets.
4902 (alpha64-dec-*vms*, alpha*-dec-*vms*)
4903 (ia64-hp-*vms*): Remove.
4904 * config/vms/xm-vms64.h: Delete.
4906 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
4909 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
4911 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
4913 * opts.c (finish_options): Remove duplicate sorry.
4915 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
4918 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
4921 2012-01-04 Richard Guenther <rguenther@suse.de>
4924 * tree.c (size_low_cst): New function.
4925 * tree.h (size_low_cst): Declare.
4926 * fold-const.c (fold_comparison): Use it to extract the low
4927 part of the POINTER_PLUS_EXPR offset.
4929 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
4931 Fix clearing ZERO_REG
4932 * config/avr/avr.md (cc): Add alternative "ldi".
4933 (movqi_insn): Use it in cc attribute.
4934 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
4935 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
4936 (output_reload_insisf): Use ZERO_REG to pre-clear register.
4938 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4940 * configure: Regenerate.
4942 2012-01-04 Richard Guenther <rguenther@suse.de>
4944 PR tree-optimization/49651
4945 * tree-ssa-structalias.c (type_can_have_subvars): New function.
4946 (var_can_have_subvars): Use it.
4947 (get_constraint_for_1): Only consider subfields if there can be any.
4949 2012-01-03 Jakub Jelinek <jakub@redhat.com>
4952 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
4953 to its new canonical_cselib_val and the cselib_val was in
4954 first_containing_mem chain, but the canonical_cselib_val was not,
4955 add the latter into the chain.
4956 (cselib_invalidate_mem): Compare canonical_cselib_val of
4957 addr_list chain elt with v.
4960 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
4961 dwarf2out_undef): Allocate e.info using ggc_strdup instead
4963 (output_macinfo_op): Don't ggc_strdup fd->filename.
4964 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
4965 then ggc_strdup it. Don't free inc->info or cur->info.
4966 (output_macinfo): Don't free ref->info or file->info.
4968 2012-01-03 Ira Rosen <irar@il.ibm.com>
4970 PR tree-optimization/51269
4971 * tree-vect-loop-manip.c (set_prologue_iterations): Make
4972 first_niters a pointer.
4973 (slpeel_tree_peel_loop_to_edge): Likewise.
4974 (vect_do_peeling_for_loop_bound): Update call to
4975 slpeel_tree_peel_loop_to_edge.
4976 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
4977 here. Remove it from the parameters list.
4978 (vect_do_peeling_for_alignment): Update calls and compute
4981 2012-01-03 Richard Guenther <rguenther@suse.de>
4983 PR tree-optimization/51070
4984 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
4985 Properly handle calls.
4987 2012-01-03 Richard Guenther <rguenther@suse.de>
4989 PR tree-optimization/51692
4990 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
4991 the LHS of allocation stmts.
4993 2012-01-03 Olivier Hainque <hainque@adacore.com>
4995 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
4997 2012-01-03 Olivier Hainque <hainque@adacore.com>
4999 * collect2.c (main): In AIX specific computations for vector
5000 insertions, use CONST_CAST2 to cast from char ** to const char **.
5002 2012-01-03 Richard Guenther <rguenther@suse.de>
5005 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
5006 the context of a limbo DIE when it does not already exist.
5008 2012-01-03 Jakub Jelinek <jakub@redhat.com>
5010 PR tree-optimization/51719
5011 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
5012 but direct call is, clear direct call's lhs and don't add fallthrough
5013 edge from dcall_bb to join_bb and PHIs.
5015 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5017 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
5018 the instructions emitted by the pattern.
5019 ("*TDC_insn_<mode>"): Add comment.
5021 2012-01-03 Richard Guenther <rguenther@suse.de>
5024 * fold-const.c (fold_comparison): Properly canonicalize
5025 tree offset and HOST_WIDE_INT bit position.
5027 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
5029 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
5030 operands for extzv pattern.
5032 2012-01-02 Jakub Jelinek <jakub@redhat.com>
5035 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
5038 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
5040 * doc/invoke.texi (-flto and related options): Copy-edit.
5042 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5044 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
5046 2012-01-02 Jakub Jelinek <jakub@redhat.com>
5048 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
5051 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5053 * expr.h (move_by_pieces_ninsns): Declare.
5054 * expr.c (move_by_pieces_ninsns): Make external.
5055 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
5056 (mips_store_by_pieces_p): Likewise.
5057 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
5058 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
5059 * config/mips/mips.c (mips_move_by_pieces_p): New function.
5060 (mips_store_by_pieces_p): Likewise.
5062 2012-01-02 Jakub Jelinek <jakub@redhat.com>
5064 * passes.c (register_one_dump_file): Free full_name.
5066 * reload1.c (reload): Don't allocate reg_max_ref_width here.
5067 (calculate_elim_costs_all_insns): Free offsets_at and
5068 offsets_known_at at the end and clear the pointers.
5070 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
5072 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
5073 this option introduced in r180739.
5075 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
5078 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
5079 (tmake_file target=avr): Add avr/t-multilib.
5081 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
5082 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
5083 * config/avr/genmultilib.awk: New file.
5084 * config/avr/t-multilib: New auto-generated file.
5085 * config/avr/multilib.h: New auto-generated file.
5086 * config/avr/t-avr (AVR_MCUS): New variable.
5087 (genopt.sh): Use it.
5088 (s-mlib): Depend on t-multilib.
5089 (t-multilib, multilib.h): New dependencies.
5090 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
5091 (MULTILIB_OPTIONS): Remove.
5092 (MULTILIB_MATCHES): Remove.
5093 (MULTILIB_DIRNAMES): Remove.
5094 (MULTILIB_EXCEPTIONS): Remove:
5095 * config/avr/genopt.sh: Don't use hard coded file name;
5096 pass AVR_MCUS from t-avr instead.
5098 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
5100 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
5102 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
5104 Implement light-weight DImode support.
5105 * config/avr/avr-dimode.md: New file.
5106 * config/avr/avr.md: Include it.
5107 (adjust_len): Add plus64, compare64.
5108 (HIDI): Remove code iterator.
5109 (code_stdname): New code attribute.
5110 (rotx, rotsmode): Remove DI.
5111 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
5113 * config/avr/avr-protos.h (avr_have_dimode): New.
5114 (avr_out_plus64, avr_out_compare64): New.
5115 * config/avr/avr.c (avr_out_compare): Handle DImode.
5116 (avr_have_dimode): New variable definition and initialization.
5117 (avr_out_compare64, avr_out_plus64): New functions.
5118 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
5119 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
5120 (avr_compare_pattern): Skip DImode comparisons.
5122 2012-01-02 Revital Eres <revital.eres@linaro.org>
5124 * ddg.c (def_has_ccmode_p): New function.
5125 (add_cross_iteration_register_deps,
5126 create_ddg_dep_from_intra_loop_link): Call it.
5128 2012-01-02 Richard Guenther <rguenther@suse.de>
5131 * invoke.texi (fassociative-math): Remove spurious paranthesis.
5133 2012-01-01 Jakub Jelinek <jakub@redhat.com>
5135 * gcc.c (process_command): Update copyright notice dates.
5136 * gcov.c (print_version): Likewise.
5137 * gcov-dump.c (print_version): Likewise.
5138 * mips-tfile.c (main): Likewise.
5139 * mips-tdump.c (main): Likewise.
5141 2012-01-01 Ira Rosen <irar@il.ibm.com>
5143 PR tree-optimization/51704
5144 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
5145 a use is inside the basic block or loop before accessing its vect info.
5147 2012-01-01 Jan Hubicka <jhjh@suse.cz>
5149 PR rtl-optimization/51069
5150 * cfgloopmanip.c (remove_path): Removing path making irreducible
5151 region unconditional makes BB part of the region.
5153 2012-01-01 Jakub Jelinek <jakub@redhat.com>
5155 PR tree-optimization/51683
5156 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
5157 calls with side-effects.
5158 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5160 Copyright (C) 2012 Free Software Foundation, Inc.
5162 Copying and distribution of this file, with or without modification,
5163 are permitted in any medium without royalty provided the copyright
5164 notice and this notice are preserved.