]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
tree-vrp.c (simplify_conversion_using_ranges): New function.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
29c5134a
RG
12011-07-07 Richard Guenther <rguenther@suse.de>
2
3 * tree-vrp.c (simplify_conversion_using_ranges): New function.
4 (simplify_stmt_using_ranges): Call it.
5
0816a42a
KT
62011-07-07 Kai Tietz <ktietz@redhat.com>
7
8 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9 (lookup_logical_inverted_value): Likewise.
10 (simplify_bitwise_binary_1): Likewise.
11 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
12
3ce9f090
JM
132011-07-07 Joseph Myers <joseph@codesourcery.com>
14
15 * gcc.c (%[Spec]): Don't document.
16 (struct spec_list): Update comment.
17 (do_spec_1): Don't handle %[Spec].
18 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
19
41dfca87
JM
202011-07-07 Joseph Myers <joseph@codesourcery.com>
21
22 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
23 default based on TARGET_ASM_NAMED_SECTION.
24 * common/common-target.def (have_named_sections): Default to true.
25 * common/config/default-common.c: Don't include tm.h.
26 * common/config/picochip/picochip-common.c
27 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
28 * common/config/m32c/m32c-common.c: Remove.
29 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
30 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
31 false.
32 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
33 false.
34 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
35 false.
36 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
37 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
38 false.
39 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
40 false.
41
19c44640
JJ
422011-07-07 Jakub Jelinek <jakub@redhat.com>
43
44 PR middle-end/49640
45 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
46 operands and last COMPONENT_REF operand call gimplify_expr on it
47 if non-NULL.
48
891a2e42
RO
492011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
50
51 PR libmudflap/49550
52 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
53
fbdd5d87
RO
542011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
55
56 PR target/39150
57 * configure.ac (gcc_cv_as_hidden): Also accept
58 x86_64-*-solaris2.1[0-9]*.
59 (gcc_cv_as_cfi_directive): Likewise.
60 (gcc_cv_as_comdat_group_group): Likewise.
61 (set_have_as_tls): Likewise.
62 * configure: Regenerate.
63 * config.gcc (i[34567]86-*-solaris2*): Also handle
64 x86_64-*-solaris2.1[0-9]*.
65 * config.host (i[34567]86-*-solaris2*): Likewise.
66 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
67 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
68 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
69 (TARGET_LD_EMULATION): Use it.
70 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
71 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
72 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
73 (ASM_CPU64_DEFAULT_SPEC): Define.
74 (ASM_CPU_SPEC): Use %(asm_cpu_default).
75 (ASM_SPEC): Redefine.
76 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
77 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
78 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
79 Document.
80 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
81 configuration.
82 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
83
fcf7471a
RO
842011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85
86 * config/sol2.h (ASM_SPEC): Split into ...
87 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
88 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
89 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
90 (ASM_SPEC): Use ASM_SPEC_BASE.
91 * config/sparc/sol2.h (ASM_SPEC): Redefine.
92
1e6a67d1
GJL
932011-07-07 Georg-Johann Lay <avr@gjlay.de>
94
95 * config/avr/avr.md (*reload_insi): Change predicate #1 to
96 const_int_operand. Ditto for peep2 producing this insn.
97 Add argument to output_reload_insisf call.
98 (*movsi,*movsf): Add argument to output_movsisf call.
99 (*reload_insf): New insn and new peep2 to produce it.
100 * config/avr/avr-protos.h (output_movsisf): Change prototype.
101 (output_reload_insisf): Change prototype.
102 * config/avr/avr.c (avr_asm_len): New function.
103 (output_reload_insisf): Rewrite.
104 (output_movsisf): Change prototype. output_reload_insisf for
105 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
106 (adjust_insn_length): Add argument to output_movsisf and
107 output_reload_insisf call.
108
6a4bdc79
BS
1092011-07-07 Bernd Schmidt <bernds@codesourcery.com>
110
111 * emit-rtl.c (paradoxical_subreg_p): New function.
112 * rtl.h (paradoxical_subreg_p): Declare.
113 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
114 apply_distributive_law, simplify_comparison, simplify_set): Use it.
115 * cse.c (record_jump_cond, cse_insn): Likewise.
116 * expr.c (force_operand): Likewise.
117 * rtlanal.c (num_sign_bit_copies1): Likewise.
118 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
119 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
120 (push_reload): Use precision to check for paradoxical subregs.
121 * expmed.c (extract_bit_field_1): Likewise.
122
46c9550f
BS
123 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
124 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
125 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
126 simplify_set, simplify_logical, expand_compound_operation,
127 make_extraction, force_to_mode, if_then_else_cond, extended_count,
128 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
129 record_value_for_reg): Likewise.
130 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
131 * simplify-rtx. c (simplify_unary_operation_1,
132 simplify_binary_operation_1, simplify_const_relational_operation):
133 Likewise.
134
5511bc5a
BS
135 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
136 instead of GET_MODE_BITSIZE where appropriate.
137 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
138 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
139 init_num_sign_bit_copies_in_rep): Likewise.
140 * cse.c (fold_rtx, cse_insn): Likewise.
141 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
142 * simplify-rtx.c (simplify_unary_operation_1,
143 simplify_const_unary_operation, simplify_binary_operation_1,
144 simplify_const_binary_operation, simplify_ternary_operation,
145 simplify_const_relational_operation, simplify_subreg): Likewise.
146 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
147 simplify_if_then_else, simplify_set, expand_compound_operation,
148 expand_field_assignment, make_extraction, if_then_else_cond,
149 make_compound_operation, force_to_mode, make_field_assignment,
150 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
151 extended_count, try_widen_shift_mode, simplify_shift_const_1,
152 simplify_comparison, record_promoted_value, simplify_compare_const,
153 record_dead_and_set_regs_1): Likewise.
154
d58c1a38
BS
155 Revert:
156 * simplify-rtx.c (simplify_const_binary_operation): Use the
157 shift_truncation_mask hook instead of performing modulo by
158 width. Compare against mode precision, not bitsize.
159 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
160 Use shift_truncation_mask instead of constructing the value
161 manually.
162
76594d53
MM
1632011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
164
165 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
166 declaration.
167 (rs6000_save_toc_in_prologue_p): Ditto.
168
169 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
170 up the static chain (r11) during indirect function calls.
171 (-msave-toc-indirect): New undocumented debug switch.
172
173 * config/rs6000/rs6000.c (struct machine_function): Add
174 save_toc_in_prologue field to note whether the prologue needs to
175 save the TOC value in the reserved stack location.
176 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
177 to save the TOC in the prologue, do so.
178 (rs6000_trampoline_init): Don't allow creating AIX style
179 trampolines if -mno-r11 is in effect.
180 (rs6000_call_indirect_aix): New function to create AIX style
181 indirect calls, adding support for -mno-r11 to suppress loading
182 the static chain, and saving the TOC in the prologue instead of
183 the call body.
184 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
185 TOC in the prologue.
186
187 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
188 register numbers.
189 (TOC_REGNUM): Ditto.
190 (STATIC_CHAIN_REGNUM): Ditto.
191 (ARG_POINTER_REGNUM): Ditto.
192 (SFP_REGNO): Delete, unused.
193 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
194 function descriptor offsets.
195 (TOC_SAVE_OFFSET_64BIT): Ditto.
196 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
197 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
198 (AIX_FUNC_DESC_SC_32BIT): Ditto.
199 (AIX_FUNC_DESC_SC_64BIT): Ditto.
200 (ptrload): New mode attribute for the appropriate load of a
201 pointer.
202 (call_indirect_aix32): Delete, rewrite AIX indirect function
203 calls.
204 (call_indirect_aix64): Ditto.
205 (call_value_indirect_aix32): Ditto.
206 (call_value_indirect_aix64): Ditto.
207 (call_indirect_nonlocal_aix32_internal): Ditto.
208 (call_indirect_nonlocal_aix32): Ditto.
209 (call_indirect_nonlocal_aix64_internal): Ditto.
210 (call_indirect_nonlocal_aix64): Ditto.
211 (call): Rewrite AIX indirect function calls. Add support for
212 eliminating the static chain, and for moving the save of the TOC
213 to the function prologue.
214 (call_value): Ditto.
215 (call_indirect_aix<ptrsize>): Ditto.
216 (call_indirect_aix<ptrsize>_internal): Ditto.
217 (call_indirect_aix<ptrsize>_internal2): Ditto.
218 (call_indirect_aix<ptrsize>_nor11): Ditto.
219 (call_value_indirect_aix<ptrsize>): Ditto.
220 (call_value_indirect_aix<ptrsize>_internal): Ditto.
221 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
222 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
223 (call_nonlocal_aix32): Relocate in the rs6000.md file.
224 (call_nonlocal_aix64): Ditto.
225
226 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
227 -mno-r11 documentation.
228
49d6830d
JW
2292011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
230
231 PR other/49658
232 * doc/extend.texi (Compound Literals): Fix typo.
233
c884924f
JG
2342011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
235
236 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
237 __ARM_FEATURE_DSP.
238
bf588455
BS
2392011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
240
241 * configure.ac (plugin-version.h): Generate
242 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
243 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
244 macros.
245
246 * configure: Regenerate.
247
248 * doc/plugins.texi (Building GCC plugins): Mention
249 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
250
d0edd768
BS
2512011-07-06 Bernd Schmidt <bernds@codesourcery.com>
252
253 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
254 * combine.c (make_extraction, gen_lowpart_or_truncate,
255 apply_distributive_law, simplify_comparison,
256 reg_truncated_to_mode, record_truncated_value): Use it.
257 * cse.c (notreg_cost): Likewise.
258 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
259 * expr.c (convert_move, convert_modes): Likewise.
260 * optabs.c (expand_binop, expand_unop): Likewise.
261 * postreload.c (move2add_last_label): Likewise.
262 * regmove.c (optimize_reg_copy_3): Likewise.
263 * rtlhooks.c (gen_lowpart_general): Likewise.
264 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
265
e5cabdfb
JM
2662011-07-06 Joseph Myers <joseph@codesourcery.com>
267
268 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
269
2d0c270f
BS
2702011-07-06 Bernd Schmidt <bernds@codesourcery.com>
271
272 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
273 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
274 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
275 (simplify_const_unary_operation, simplify_binary_operation_1,
276 simplify_const_binary_operation,
277 simplify_const_relational_operation): Use them. Use
278 GET_MODE_MASK for masking and sign-extensions.
279 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
280 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
281 simplify_shift_const_1, simplify_comparison): Likewise.
282 * expr.c (convert_modes): Likewise.
283 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
284 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
285 Likewise.
286 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
287
f9c08345
BS
288 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
289
6d6c9525
RG
2902011-07-06 Richard Guenther <rguenther@suse.de>
291
292 PR tree-optimization/49645
293 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
294 register variables.
295 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
296 in type qualification here ...
297 (copy_reference_ops_from_ref): ... not here.
298 (vn_reference_lookup_3): ... or here.
299 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
300 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
301
d1a6ec10
ILT
3022011-07-06 Ian Lance Taylor <iant@google.com>
303
304 * doc/install.texi (Configuration): It's
305 --enable-gnu-indirect-function, not --enable-indirect-function.
306
ff3e08af
BS
3072011-07-06 Bernd Schmidt <bernds@codesourcery.com>
308
309 * simplify-rtx.c (simplify_const_binary_operation): Use the
310 shift_truncation_mask hook instead of performing modulo by
311 width. Compare against mode precision, not bitsize.
312 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
313 Use shift_truncation_mask instead of constructing the value
314 manually.
315
a369b639
L
3162011-07-06 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR middle-end/47383
319 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
320 address computation and convert to address_mode if needed.
321
1a072294
RG
3222011-07-06 Richard Guenther <rguenther@suse.de>
323
324 * tree.c (build_common_tree_nodes_2): Merge with
325 build_common_tree_nodes.
326 * tree.h (build_common_tree_nodes): Adjust prototype.
327 (build_common_tree_nodes_2): Remove.
328 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
329 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
330
f2c3a8ce
JJ
3312011-07-05 Jakub Jelinek <jakub@redhat.com>
332
333 PR tree-optimization/49618
334 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
335 t recurse on the decl.
336 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
337 return true if expr isn't known to be defined in current
338 TU or some other LTO partition.
339
3aa439ed
MM
3402011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
341
342 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
343 override CASE_VALUES_THRESHOLD.
344
345 * stmt.c (toplevel): Include params.h.
346 (case_values_threshold): Use the --param case-values-threshold
347 value if non-zero, otherwise use machine dependent value.
348 (expand_case): Use case_values_threshold.
349
350 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
351
352 * doc/invoke.texi (--param case-values-threshold): Document.
353
49956667
RH
3542011-07-05 Richard Henderson <rth@redhat.com>
355
356 * dwarf2out.c (dwarf2out_cfi_label): Make static.
357 (dwarf2out_flush_queued_reg_saves): Make static.
358 (dwarf2out_reg_save): Remove.
359 (dwarf2out_return_save): Remove.
360 (dwarf2out_return_reg): Remove.
361 (dwarf2out_reg_save_reg): Remove.
362 (dwarf2out_def_cfa): Merge into ...
363 (dwarf2out_frame_init): ... here.
364 * dwarf2out.h, tree.h: Remove declarations as necessary.
365
9f2ff8e5
RH
3662011-07-05 Richard Henderson <rth@redhat.com>
367
c2b40eba
RH
368 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
369 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
370 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
371 the alloc insn.
372
7d3c6cd8
RH
373 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
374 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
375 (process_epilogue): Don't call dwarf2out_def_cfa.
376
5f740973
RH
377 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
378 indicate the return address save.
379 (process_cfa_register): Likewise.
380
a1880147
RH
381 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
382 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
383
9f2ff8e5
RH
384 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
385 for ar.pfs save at alloc insn.
386
ddc6e7d6
RH
3872011-07-05 Richard Henderson <rth@redhat.com>
388
389 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
390 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
391 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
392 stack pointer save.
393 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
394 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
395 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
396 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
397
a3515605
RH
3982011-07-05 Richard Henderson <rth@redhat.com>
399
400 * config/vax/vax.md (define_c_enum unspecv): New. Define the
401 VUNSPEC_* constants here instead of via define_constants.
402 (VUNSPEC_PEM): New constant.
403 (procedure_entry_mask): New insn.
404 (prologue): New expander.
405 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
406 (vax_expand_prologue): Rename from vax_output_function_prologue;
407 emit rtl instead of text.
408 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
409 (print_operand): Add 'x' prefix.
410
a7adbbcb
L
4112011-07-05 H.J. Lu <hongjiu.lu@intel.com>
412
413 PR middle-end/47715
414 * calls.c (precompute_register_parameters): Promote the function
415 argument before checking non-legitimate constant.
416
cec11ec4
SP
4172011-07-05 Sebastian Pop <sebastian.pop@amd.com>
418
419 PR tree-optimization/47654
420 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
421 (lst_do_strip_mine_loop): Return an int.
422 (lst_do_strip_mine): Same.
423 (scop_do_strip_mine): Same.
424 (scop_do_block): Loop blocking should strip-mine at least two loops.
425 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
426 (scop_do_interchange): Same.
427 * graphite-poly.h (scop_do_interchange): Update declaration.
428 (scop_do_strip_mine): Same.
429
9b0d314a
SP
4302011-07-05 Sebastian Pop <sebastian.pop@amd.com>
431
432 * graphite-clast-to-gimple.c (precision_for_value): Removed.
433 (precision_for_interval): Removed.
434 (gcc_type_for_interval): Use mpz_sizeinbase.
435
81d6d080
SP
4362011-07-05 Sebastian Pop <sebastian.pop@amd.com>
437
438 * graphite-ppl.h (value_max): Correct computation of max.
439
369e3430
SP
4402011-07-05 Sebastian Pop <sebastian.pop@amd.com>
441
442 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
443
fce5dddd
RG
4442011-07-05 Richard Guenther <rguenther@suse.de>
445
446 * c-decl.c (c_init_decl_processing): Defer building common
447 tree nodes to c_common_nodes_and_builtins.
448
12037899
RL
4492011-07-05 Razya Ladelsky <razya@il.ibm.com>
450
451 PR tree-optimization/49580
452 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
453 the loop's number of iterations.
454 * tree-parloops.c (transform_to_exit_first_loop): Add the
455 handling of the loop's number of iterations before the call
456 to gimple_duplicate_sese_tail.
457 Insert the stmt caclculating the new rhs of the loop's
458 condition stmt to the preheader instead of iters_bb.
459
509a31f8
L
4602011-07-05 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR rtl-optimization/47449
463 * fwprop.c (forward_propagate_subreg): Don't propagate hard
464 register nor zero/sign extended hard register.
465
39becbac
RG
4662011-07-05 Richard Guenther <rguenther@suse.de>
467
468 PR tree-optimization/49518
469 PR tree-optimization/49628
470 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
471 irrelevant and invariant data-references.
472 (vect_analyze_data_ref_access): For invariant loads clear the
473 group association.
474
15923c25
JJ
4752011-07-04 Jakub Jelinek <jakub@redhat.com>
476
af421d9c
JJ
477 PR rtl-optimization/49619
478 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
479 pass VOIDmode as op0_mode to recursive call, and return temp even
480 when different from tor, just if it is not IOR of the original
481 PLUS arguments.
482
707f9919
JJ
483 PR rtl-optimization/49472
484 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
485 negating MULT, negate the second operand instead of first.
486 (simplify_binary_operation_1) <case MULT>: If one operand is
487 a NEG and the other is MULT, don't attempt to optimize by
488 negation of the MULT operand if it only moves the NEG operation
489 around.
490
15923c25
JJ
491 PR debug/49602
492 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
493 get_current_def return value if it can't be trusted to be
494 the current value of the variable in the current bb.
495
0d5e0c1b
UB
4962011-07-04 Uros Bizjak <ubizjak@gmail.com>
497
498 PR target/49600
499 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
500 general register to memory for !TARGET_INTER_UNIT_MOVES.
501
db297e20
GJL
5022011-07-04 Georg-Johann Lay <avr@gjlay.de>
503
504 PR target/44643
505 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
506 instead of TREE_READONLY.
507
f451d14d
GJL
5082011-07-04 Georg-Johann Lay <avr@gjlay.de>
509
510 * doc/extend.texi (AVR Built-in Functions): Update documentation
511 of __builtin_avr_fmul*.
0d5e0c1b 512 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
513 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
514 * config/avr/avr.md (fmul): Rename to fmul_insn.
515 (fmuls): Rename to fmuls_insn.
516 (fmulsu): Rename to fmulsu_insn.
517 (fmul,fmuls,fmulsu): New expander.
518 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
519 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
520 * config/avr/libgcc.S (__fmul): New function.
521 (__fmuls): New function.
522 (__fmulsu,__fmulsu_exit): New function.
523
30f1e6de
RG
5242011-07-04 Richard Guenther <rguenther@suse.de>
525
526 PR tree-optimization/49615
527 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
528 basic-block index check.
529
6dab9931
GJL
5302011-07-04 Georg-Johann Lay <avr@gjlay.de>
531
532 * longlong.h (count_leading_zeros, count_trailing_zeros,
533 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
534 resp. 64.
535
b5066d8b
IR
5362011-07-03 Ira Rosen <ira.rosen@linaro.org>
537
538 PR tree-optimization/49610
539 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
540 a basic block.
541
bc712852
EB
5422011-07-02 Eric Botcazou <ebotcazou@adacore.com>
543 Olivier Hainque <hainque@adacore.com>
544 Nicolas Setton <setton@adacore.com>
545
546 * tree.h (TYPE_ARTIFICIAL): New flag.
547 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
548 the DIE of the type if it is artificial.
549 (gen_array_type_die): Likewise.
550 (gen_enumeration_type_die): Likewise.
551 (gen_struct_or_union_type_die): Likewise.
552 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
553 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
554
8b1bdcc5
JJ
5552011-07-01 Jakub Jelinek <jakub@redhat.com>
556
557 * tree-object-size.c (pass_through_call): Handle
558 BUILT_IN_ASSUME_ALIGNED.
559
06e88d73
MJ
5602011-07-01 Martin Jambor <mjambor@suse.cz>
561
562 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
563
6bbec3e1
L
5642011-07-01 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR middle-end/48016
567 * explow.c (update_nonlocal_goto_save_area): Use proper mode
568 for stack save area.
569 * function.c (expand_function_start): Likewise.
570
e8fdf1cd
RG
5712011-07-01 Richard Guenther <rguenther@suse.de>
572
573 PR middle-end/49596
574 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
575 may have unknown refs.
576
80d3dd38
KT
5772011-07-01 Kai Tietz <ktietz@redhat.com>
578
579 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
580
179fc656
RO
5812011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
582
583 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
584 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
585 (Specific, mips-sgi-irix6): Likewise.
586
14a393a3
RO
5872011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
588
589 PR libmudflap/49549
590 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
591
3aecd443
JJ
5922011-07-01 Jakub Jelinek <jakub@redhat.com>
593
594 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
595 [idx]= and [idx1 ... idx2]= before initializers if needed for
596 array initializers.
597
7474f719
CL
5982011-07-01 Chen Liqin <liqin.gcc@gmail.com>
599
600 * config.gcc (score-*-elf): Remove score7.o.
601 * config/score/t-score-elf: Likewise.
602 * config/score/score.c: Merge score7 to score.c and
603 remove forwarding functions.
604 * config/score/score7.c: Deleted.
605 * config/score/score7.h: Deleted.
606
ab70d825
RG
6072011-07-01 Richard Guenther <rguenther@suse.de>
608
609 PR tree-optimization/49603
0d5e0c1b 610 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 611
1ac93f10
MJ
6122011-06-30 Martin Jambor <mjambor@suse.cz>
613
614 * tree-sra.c (struct access): Rename total_scalarization to
615 grp_total_scalarization
616 (completely_scalarize_var): New function.
617 (sort_and_splice_var_accesses): Set total_scalarization in the
618 representative access.
619 (analyze_access_subtree): Propagate total scalarization accross the
620 tree, no holes in totally scalarized trees, simplify coverage
621 computation.
622 (analyze_all_variable_accesses): Call completely_scalarize_var instead
623 of completely_scalarize_record.
624
97f309c3
RH
6252011-06-30 Richard Henderson <rth@redhat.com>
626
627 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
628 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
629 * config/i386/i386.c: Don't include dwarf2out.h.
630 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
631 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
632 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
633 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
634 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
635
ef284364
RH
6362011-06-30 Richard Henderson <rth@redhat.com>
637
638 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
639 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
640 * final.c (final_scan_insn): Look for it, and invoke
641 dwarf2out_frame_debug before the insn if found.
642
c8412f97
RH
6432011-06-30 Richard Henderson <rth@redhat.com>
644
645 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
646 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
647
e3f903d8
RH
6482011-06-30 Richard Henderson <rth@redhat.com>
649
650 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
651 Define a vector of this type.
652 (regs_saved_in_regs): Use a VEC.
653 (num_regs_saved_in_regs): Remove.
654 (compare_reg_or_pc): New.
655 (record_reg_saved_in_reg): Split out from...
656 (dwarf2out_flush_queued_reg_saves): ... here.
657 (clobbers_queued_reg_save): Update for VEC.
658 (reg_saved_in): Likewise.
659 (dwarf2out_frame_debug_init): Likewise.
660 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
661 (dwarf2out_frame_debug_cfa_register): Likewise.
662
e2c9010a
EB
6632011-06-30 Eric Botcazou <ebotcazou@adacore.com>
664
665 PR tree-optimization/49572
666 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
667 type of the RHS instead of that of the LHS for the expression type.
668
dbb07bbc
EB
6692011-06-30 Eric Botcazou <ebotcazou@adacore.com>
670
671 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
672 unconditionally.
673
1565af08
RG
6742011-06-30 Richard Guenther <rguenther@suse.de>
675
676 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
677 * tree-ssa-structalias.c (create_variable_info_for): Do not
678 add initial constraints for non-var-decls. Properly handle
679 globals in other ltrans partitions.
680 (intra_create_variable_infos): Manually create constraints for
681 the fake no-alias parameter.
682 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
683 and assert there are no clones.
684
42373e0b
RG
6852011-06-30 Richard Guenther <rguenther@suse.de>
686
687 PR tree-optimization/46787
688 * tree-data-ref.c (dr_address_invariant_p): Remove.
689 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 690 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
691 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
692 invariant loads.
693
7aa62ea1
MJ
6942011-06-30 Martin Jambor <mjambor@suse.cz>
695
696 PR tree-optimization/49094
697 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
698 (build_accesses_from_assign): Use it.
699
f60f32b3
JJ
7002011-06-30 Jakub Jelinek <jakub@redhat.com>
701
d9048d16
JJ
702 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
703 handling of BUILT_IN_ASSUME_ALIGNED.
704
f60f32b3
JJ
705 PR debug/49364
706 * dwarf2out.c (output_abbrev_section): Don't return early
707 if abbrev_die_table_in_use is 1.
708 (dwarf2out_finish): Instead don't call output_abbrev_section
709 nor emit abbrev_section_label in that case.
710
7cce15d4
NC
7112011-06-30 Nick Clifton <nickc@redhat.com>
712
713 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
714 for the V850E.
715
ce7e54ff
JJ
7162011-06-30 Jakub Jelinek <jakub@redhat.com>
717
718 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
719 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
720
83197f37
IR
7212011-06-30 Ira Rosen <ira.rosen@linaro.org>
722
723 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
724 both pattern and original statements if necessary.
725 (vect_transform_loop): Likewise.
726 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
727 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
728 Mark the pattern statement only if the original statement doesn't
729 have its own uses.
730 (process_use): Call vect_mark_relevant with additional parameter.
731 (vect_mark_stmts_to_be_vectorized): Likewise.
732 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
733 (vect_analyze_stmt): Handle both pattern and original statements
734 if necessary.
735 (vect_transform_stmt): Don't store vectorized pattern statement
736 in the original statement.
737 (vect_is_simple_use_1): Use related pattern statement only if the
738 original statement is irrelevant.
739 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
740
dbb07bbc 7412011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 742
dbb07bbc
EB
743 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
744 option.
745 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
746 entry.
5c0d88e6
CF
747 (TARGET_AVX128_OPTIMAL): New definition.
748 * config/i386/i386.c (initial_ix86_tune_features): Initialize
749 X86_TUNE_AVX128_OPTIMAL entry.
750 (ix86_option_override_internal): Enable the generation
751 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
752 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
753 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
754
931050d0
EB
7552011-06-29 Eric Botcazou <ebotcazou@adacore.com>
756
757 PR tree-optimization/49539
758 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
759 names by means of stmt_references_abnormal_ssa_name.
760 (associate_plusminus): Call can_propagate_from before propagating
761 from definition statements.
762 (ssa_forward_propagate_and_combine): Remove superfluous newline.
763
dfedbe40
RG
7642011-06-29 Richard Guenther <rguenther@suse.de>
765
766 * doc/invoke.texi: Document -scev dump modifier.
767 * tree-pass.h (TDF_SCEV): New dump flag.
768 * tree-dump.c (dump_option_value_in): Add scev.
769 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
770 * tree-scalar-evolution.c: Likewise.
771
3a86cfeb
NS
7722011-06-29 Nathan Sidwell <nathan@codesourcery.com>
773
774 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
775 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
776 (__gnu_unwind_pr_common): Reconstruct additional indirection
777 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 778
f3678bfb
UW
7792011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
780
781 PR rtl-optimization/49114
782 * reload.c (struct replacement): Remove SUBREG_LOC member.
783 (push_reload): Do not set it.
784 (push_replacement): Likewise.
785 (subst_reload): Remove dead code.
786 (copy_replacements): Remove assertion.
787 (copy_replacements_1): Do not handle SUBREG_LOC.
788 (move_replacements): Likewise.
789 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
790 Detect subregs via recursive descent instead of via SUBREG_LOC.
791
433ba0a5 7922011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 793
433ba0a5
GJL
794 * config/avr/avr.c (avr_encode_section_info): Dispatch to
795 default_encode_section_info.
796
73f6eabc
RS
7972011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
798
799 PR tree-optimization/49545
800 * builtins.c (get_object_alignment_1): Update function comment.
801 Do not use DECL_ALIGN for functions, but test
802 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
803 * fold-const.c (get_pointer_modulus_and_residue): Don't check
804 for functions here.
805 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
806
a0f33d3a
JJ
8072011-06-29 Jakub Jelinek <jakub@redhat.com>
808
809 PR debug/49567
0d5e0c1b
UB
810 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
811 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 812
946c8b23 8132011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 814
946c8b23 815 PR target/34734
0d5e0c1b 816 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
817 about uninitialized data attributed 'progmem' from here...
818 (avr_encode_section_info): ...to this new function.
819 (TARGET_ENCODE_SECTION_INFO): New define.
820 (avr_section_type_flags): For data in ".progmem.data", remove
821 section flag SECTION_WRITE.
822
9a63dee4 8232011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 824
9a63dee4
GJL
825 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
826 _xmulhisi3_exit.
827 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
828 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
829 (__umulhisi3): Ditto.
830 * config/avr/avr.md (mulhisi3): New insn expender.
831 (umulhisi3): New insn expender.
832 (*mulhisi3_call): New insn.
833 (*umulhisi3_call): New insn.
834
4374ce45
JM
8352011-06-28 Joseph Myers <joseph@codesourcery.com>
836
837 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
838
94759030
RH
8392011-06-28 Richard Henderson <rth@redhat.com>
840
841 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
842 all code and arguments that handled pushes. Update all callers.
843
d018b46e
RH
8442011-06-28 Richard Henderson <rth@redhat.com>
845
846 * config/arm/arm.c (arm_output_function_prologue): Don't call
847 thumb1_output_function_prologue.
848 (arm_expand_prologue): Avoid dead store.
849 (number_of_first_bit_set): Use ctz_hwi.
850 (thumb1_emit_multi_reg_push): New.
851 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
852 to emit the entire prologue as rtl.
853 (thumb1_output_interwork): Split out from
854 thumb1_output_function_prologue.
855 (thumb1_output_function_prologue): Remove.
856 (arm_attr_length_push_multi): Handle thumb1.
857 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
858 (prologue_thumb1_interwork): New.
859 (*push_multi): Allow thumb1; use push_mult_memory_operand.
860 * config/arm/predicates.md (push_mult_memory_operand): New.
861
97269a23
EB
8622011-06-28 Eric Botcazou <ebotcazou@adacore.com>
863
864 * config/sparc/sync.md (*stbar): Delete.
865 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
866
4a9206ce
EB
8672011-06-28 Eric Botcazou <ebotcazou@adacore.com>
868
869 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
870
6138f9bd
RO
8712011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
872
873 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
874 (TARGET_64BIT_DEFAULT): Define.
875 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
876 of tm_file.
877 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
878
a7d0d30f
JM
8792011-06-28 Joseph Myers <joseph@codesourcery.com>
880
881 * common.opt (in_lto_p): New Variable entry.
882 * flags.h (in_lto_p): Move to common.opt.
883 * gcc.c: Include params.h.
884 (set_option_handlers): Also use common_handle_option and
885 target_handle_option.
0d5e0c1b 886 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
887 * opts.c (debug_type_names): Move from toplev.c.
888 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
889 (common_handle_option): Return early in the driver for some options.
890 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
891 opts pointer.
a7d0d30f
JM
892 * toplev.c (in_lto_p): Move to common.opt.
893 (debug_type_names): Move to opts.c.
894 * Makefile.in (OBJS): Remove opts.o.
895 (OBJS-libcommon-target): Add opts.o.
896 (gcc.o): Update dependencies.
897
420863a9
KT
8982011-06-28 Kai Tietz <ktietz@redhat.com>
899
0d5e0c1b 900 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 901
0498a2be
RR
9022011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
903
904 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
905 with '=' constraint modifier.
906 (*divdf3_vfp): Likewise.
907 ("*mulsf3_vfp"): Likewise.
908 ("*muldf3_vfp"): Likewise.
909 ("*mulsf3negsf_vfp"): Likewise.
910 ("*muldf3negdf_vfp"): Likewise.
911
4a68b724
NC
9122011-06-28 Nick Clifton <nickc@redhat.com>
913
914 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
915 relaxation when performing an incremental link.
916
72a32729
KT
9172011-06-28 Kai Tietz <ktietz@redhat.com>
918
919 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
920 within BB from last to first.
921
88a00ef7
JM
9222011-06-28 Joseph Myers <joseph@codesourcery.com>
923
924 * genattr-common.c: New. Based on genattr.c.
925 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
926 (MOSTLYCLEANFILES): Add insn-attr-common.h.
927 (opts.o): Update dependencies.
928 (.PRECIOUS): Add insn-attr-common.h.
929 (simple_rtl_generated_h): Add insn-attr-common.h.
930 (build/genattr-common.o): New.
931 (genprogrtl): Add attr-common.
932 * genattr.c (main): Include insn-attr-common.h. Don't generate
933 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 934 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 935
880962ac
GJL
9362011-06-28 Georg-Johann Lay <avr@gjlay.de>
937
4a68b724 938 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 939 avr-*-* and avr-*-rtems* targets.
4a68b724 940
880962ac
GJL
941 * config/avr/elf.h: New file.
942 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
943 (TARGET_ASM_SELECT_SECTION): Define.
944 (INIT_SECTION_ASM_OP): Undefine.
945 (FINI_SECTION_ASM_OP): Undefine.
946 (READONLY_DATA_SECTION_ASM_OP): Undefine.
947 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
948 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
949 * config/avr/avr.h:
950 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
951 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
952 (MAX_OFILE_ALIGNMENT): Move to elf.h.
953 (STRING_LIMIT): Move to elf.h.
954 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
955 (ASM_DECLARE_OBJECT_NAME): Remove.
956 (ESCAPES): Remove.
957 (ASM_OUTPUT_SKIP): Remove.
958 (DWARF2_DEBUGGING_INFO): Remove.
959 (OBJECT_FORMAT_ELF): Remove.
960 (USER_LABEL_PREFIX): Remove.
961 (ASM_OUTPUT_EXTERNAL): Remove.
962 (ASM_OUTPUT_ASCII): Remove.
963 (TYPE_ASM_OP): Remove.
964 (SIZE_ASM_OP): Remove.
965 (WEAK_ASM_OP): Remove.
966 (STRING_ASM_OP): Remove.
967 (SET_ASM_OP): Remove.
968 (ASM_WEAKEN_LABEL): Remove.
969 (TYPE_OPERAND_FMT): Remove.
970 (ASM_DECLARE_FUNCTION_SIZE): Remove.
971 (ASM_FINISH_DECLARE_OBJECT): Remove.
972 (NO_DOLLAR_IN_LABEL): Remove.
973 (ASM_GENERATE_INTERNAL_LABEL): Remove.
974 (ASM_OUTPUT_CASE_LABEL): Remove.
975 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
976 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
977 (gas_output_ascii): Remove.
978 (gas_output_limited_string): Remove.
979 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
980 * config/avr/avr-protos.h
981 (gas_output_ascii): Remove prototye.
982 (gas_output_limited_string): Remove prototype.
983
a1b5eb93
RE
9842011-06-27 Richard Earnshaw <rearnsha@arm.com>
985
986 PR target/48637
987 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
988 asm operands.
989
310e71a8
JH
9902011-06-27 Jan Hubicka <jh@suse.cz>
991
4a9206ce
EB
992 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
993 node instead of references in node.
310e71a8 994
171da07a
RH
9952011-06-27 Richard Henderson <rth@redhat.com>
996
997 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
998 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
999 inside ifdef.
1000
dc2a58da
JJ
10012011-06-27 Jakub Jelinek <jakub@redhat.com>
1002
56300785
JJ
1003 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1004
45d439ac
JJ
1005 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1006 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1007 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1008 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1009 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1010 (evaluate_stmt, execute_fold_all_builtins): Handle
1011 BUILT_IN_ASSUME_ALIGNED.
1012 * tree-ssa-dce.c (propagate_necessity): Likewise.
1013 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1014 call_may_clobber_ref_p_1): Likewise.
1015 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1016 (expand_builtin_assume_aligned): New function.
1017 * doc/extend.texi (__builtin_assume_aligned): Document.
1018
dc2a58da
JJ
1019 PR debug/49544
1020 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1021 and l has two DEBUG_INSN owned locs instead of just one, adjust
1022 the second location's setting_insn too.
1023
0d72f628
RO
10242011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1025
1026 PR libmudflap/38738
1027 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1028
bebd619e
NC
10292011-06-27 Nick Clifton <nickc@redhat.com>
1030
0d5e0c1b
UB
1031 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1032 bit position of highest bit set into a count of the high zero bits.
bebd619e 1033
353b39fa
EB
10342011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1035
1036 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1037
a7af037b
EB
10382011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1039
1040 PR lto/48492
1041 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1042 to a NULL parent.
1043
1c86160a
RG
10442011-06-27 Richard Guenther <rguenther@suse.de>
1045
1046 PR tree-optimization/49394
1047 * passes.c (execute_one_pass): Restore current_pass after
1048 applying IPA transforms.
1049
5da49a9d
KT
10502011-06-27 Kai Tietz <ktietz@redhat.com>
1051
1052 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1053 out of type precision after operation.
0d5e0c1b
UB
1054 (find_bswap): Take for limit value the integer auto-promotion
1055 into account.
5da49a9d 1056
9242213f
EB
10572011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1058
1059 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1060 forward scan as well.
1061
db8b22ef
TG
10622011-06-27 Tristan Gingold <gingold@adacore.com>
1063
1064 PR target/44241
1065 * config/vms/vms-protos.h: New file.
1066 * config/vms/vms-crtlmap.map: New file.
1067 * config/vms/vms.c: New file.
1068 * config/vms/make-crtlmap.awk: New file.
1069 * config/vms/vms-crtl.h: File removed.
1070 * config/vms/vms-crtl-64.h: File removed.
1071 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1072 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1073 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1074 clear some builtins on VMS. Calls vms_patch_builtins.
1075 (avms_asm_output_external): Remove.
1076 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1077 (struct crtl_name_spec): Remove
1078 (DO_CTRL_NAMES): Remove.
1079 * config/ia64/vms.h (struct crtl_name_spec): Remove
1080 (DO_CTRL_NAMES): Remove.
1081 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1082 clear some builtins on VMS. Calls vms_patch_builtins.
1083 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1084 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 1085 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 1086
b213221d
TG
10872011-06-27 Tristan Gingold <gingold@adacore.com>
1088
1089 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1090 directive on VMS.
1091
157b9300
EB
10922011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1093
1094 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1095 the function receives nonlocal gotos.
1096
ccbf5bb4
RG
10972011-06-27 Richard Guenther <rguenther@suse.de>
1098
1099 PR tree-optimization/49536
1100 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1101 For non-scalar inner types use a scalar type according to
1102 the scalar inner mode.
1103
fe4cd14b
RG
11042011-06-27 Richard Guenther <rguenther@suse.de>
1105
1106 PR tree-optimization/49365
1107 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1108
afc3f22f
RS
11092011-06-27 Richard Guenther <rguenther@suse.de>
1110
1111 PR tree-optimization/49169
1112 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1113 the alignment of function decls.
1114
92590751 11152011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
1116
1117 PR target/47997
1118 * config/darwin.c (darwin_mergeable_string_section): Place string
1119 constants in '.cstring' rather than '.const' when CF/NSStrings are
1120 active.
1121
605354f3
EB
11222011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1123
1124 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1125 (emit_save_register_window): Likewise.
1126 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1127 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1128 Swap back %o7/%i7 in register naming.
1129
0e9197f5
IS
11302011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1131
1132 PR driver/49371
1133 * config/darwin.c (darwin_override_options): Improve warning when
1134 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1135 is given with fpie/fPIE.
1136 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1137 * config/darwin9.h (PIE_SPEC): New.
53461199 1138
605354f3 11392011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
1140
1141 * timevar.c (timevar_print): Increase width for display of timevar
1142 name.
1143
f796c438
JJ
11442011-06-24 Jakub Jelinek <jakub@redhat.com>
1145
1146 PR c++/46400
1147 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1148 instead of TYPE_CHAIN for chain_next for types.
1149
a7289eaf
RH
11502011-06-24 Richard Henderson <rth@redhat.com>
1151
1152 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1153 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1154 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1155 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1156 (sparc_flat_expand_prologue): Emit individual instructions
1157 instead of one of the above.
1158
c4b9a87e
ER
11592011-06-24 Easwaran Raman <eraman@google.com>
1160
1161 PR rtl-optimization/49429
1162 PR target/49454
1163 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1164 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1165 used to copy y into x.
1166 * calls.c (initialize_argument_information): Mark
1167 an argument addressable if it is passed by invisible reference.
1168 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1169 if it is passed by reference.
1170
5ac6c59e
L
11712011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1172
1173 PR rtl-optimization/49504
1174 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
1175 subtraction of a pointer in Pmode if pointers extend unsigned.
1176 (num_sign_bit_copies1): Likewise.
5ac6c59e 1177
b807e627
MJ
11782011-06-24 Martin Jambor <mjambor@suse.cz>
1179
1180 PR tree-optimizations/49516
1181 * tree-sra.c (sra_modify_assign): Choose the safe path for
1182 aggregate copies if we also did scalar replacements.
1183
9a1ea4b9
RR
11842011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1185
1186 PR target/49335
1187 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 1188 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 1189
949cfd0a
AK
11902011-06-24 Andi Kleen <ak@linux.intel.com>
1191
1192 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1193 parameter. Split up ifs and report reason in *msg.
1194 (reject): Add.
1195 (find_var_candiate): Add msg variable.
1196 Split up ifs and report reason to reject.
1197 (find_param_candidates): Add msg variable.
1198 Pass msg to type_internals_preclude_sra_p.
1199
49e9c661 12002011-06-23 Jeff Law <law@redhat.com>
ad3577df 1201
b0c11403
JL
1202 PR middle-end/48770
1203 * reload.h (reload): Change to return a bool.
1204 * ira.c (ira): If requested by reload, run a fast DCE pass after
1205 reload has completed. Fix comment typo.
1206 * reload1.c (need_dce): New file scoped static.
1207 (reload): Set reload_completed here. Return whether or not a DCE
1208 pass after reload is needed.
1209 (delete_dead_insn): Set need_dce as needed.
1210
ad3577df
JL
1211 PR middle-end/49465
1212 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1213 to detect threading through joiner block. If there was already
1214 an edge to the new target, then do not change the PHI nodes.
1215
7cf64710
JJ
12162011-06-23 Jakub Jelinek <jakub@redhat.com>
1217
1218 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1219 get_pointer_alignment to see if base isn't sufficiently aligned.
1220
febb1302
JH
12212011-06-23 Jan Hubicka <jh@suse.cz>
1222
1223 PR tree-optimize/49373
1224 * tree-pass.h (all_late_ipa_passes): Declare.
1225 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
1226 (cgraph_optimize): Execute late passes; remove unreachable funcions
1227 after materialization.
1228 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1229 LTOing.
febb1302
JH
1230 * passes.c (all_late_ipa_passes): Declare.
1231 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
1232 (init_optimization_passes): Move ipa_pta to late passes; schedule
1233 fixup_cfg at beggining of all_passes.
febb1302
JH
1234 (apply_ipa_transforms): New function.
1235 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1236
4c77620d
JM
12372011-06-23 Joseph Myers <joseph@codesourcery.com>
1238
1239 * params.c: Include common/common-target.h. Don't include tm.h.
1240 (lang_independent_params): Move from toplev.c.
1241 (global_init_params): New.
1242 * params.h (global_init_params): Declare.
1243 * target.def (default_params): Move to common-target.def.
1244 * toplev.c (lang_independent_options): Remove.
1245 (lang_independent_params): Move to params.c.
1246 (general_init): Use global_init_params.
1247 * common/common-target.def (option_default_params): Move from
1248 target.def.
1249 * common/config/ia64/ia64-common.c: Include params.h.
1250 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1251 from ia64.c.
1252 * common/config/rs6000/rs6000-common.c: Include params.h.
1253 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1254 from rs6000.c.
1255 * common/config/sh/sh-common.c: Include params.h.
1256 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1257 from sh.c.
1258 * common/config/spu/spu-common.c: Include params.h.
1259 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1260 from spu.c.
1261 * config/ia64/ia64.c (ia64_option_default_params,
1262 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1263 * config/rs6000/rs6000.c (rs6000_option_default_params,
1264 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1265 * config/sh/sh.c (sh_option_default_params,
1266 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1267 * config/spu/spu.c (spu_option_default_params,
1268 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1269 * Makefile.in (OBJS): Remove params.o.
1270 (OBJS-libcommon-target): Add params.o.
1271 (params.o, $(common_out_object_file)): Update dependencies.
1272 * doc/tm.texi: Regenerate.
1273
6aad1e38
AM
12742011-06-23 Alan Modra <amodra@gmail.com>
1275
1276 PR bootstrap/49383
1277 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1278 invocation for 2011-06-09 changes.
1279
4fb489e7
JJ
12802011-06-22 Jakub Jelinek <jakub@redhat.com>
1281
fb79f500
JJ
1282 PR libgomp/49490
1283 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
1284 use n ceil/ nthreads size for the first n % nthreads threads in the
1285 team instead of all threads except for the last few ones which
fb79f500
JJ
1286 get less work or none at all.
1287
4fb489e7
JJ
1288 PR debug/49496
1289 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1290 uses.
1291
9c7c9f10
RG
12922011-06-22 Richard Guenther <rguenther@suse.de>
1293
1294 PR tree-optimization/49493
1295 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1296 Refer to the alias target of variables.
1297 (associate_varinfo_to_alias_1): Remove.
1298 (ipa_pta_execute): Do not associate aliases with anything.
1299 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1300 (cgraph_function_node): Likewise.
1301 (cgraph_function_or_thunk_node): Likewise.
1302 (varpool_variable_node): Likewise.
1303
7cf13d1f
NS
13042011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1305
0d5e0c1b 1306 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
1307 * config.gcc (arm*-*-linux*): Default to gnu tls.
1308 (arm*-*-*): Add --with-tls option.
1309 (all_defaults): Add 'tls'.
1310
78a8eb4e
RH
13112011-06-22 Richard Henderson <rth@redhat.com>
1312
1313 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1314 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1315 (dwarf2out_frame_debug_cfa_window_save): Rename from
1316 dwarf2out_window_save; make static.
1317 * tree.h (dwarf2out_window_save): Don't declare.
1318
1319 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1320 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1321 (emit_save_register_window): Rename from gen_save_register_window;
1322 emit the insn and add REG_CFA_* notes.
1323 (sparc_expand_prologue): Update to match.
1324 * config/sparc/sparc.md (save_register_window_1): Simplify from
1325 save_register_window<P:mode>.
1326
3b4c46d7
L
13272011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1328
1329 PR target/49497
1330 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1331 (*lea_general_2_zext): Likewise.
1332 (imul to lea peepholes): Use const359_operand and check
1333 TARGET_PARTIAL_REG_STALL.
1334
1335 * config/i386/predicates.md (const359_operand): New.
1336
4399cf59
MM
13372011-06-22 Michael Matz <matz@suse.de>
1338
1339 * cgraphunit.c (assemble_thunk): Use correct return type.
1340
31a0c825 13412011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 1342 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
1343
1344 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1345 (neon_output_shift_immediate): Ditto.
1346 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1347 prototype.
1348 (neon_output_shift_immediate): Ditto.
1349 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1350 (vashr<mode>3_imm): New insn pattern.
1351 (vlshr<mode>3_imm): Ditto.
1352 (vashr<mode>3): Modified constraint.
1353 (vlshr<mode>3): Ditto.
1354 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1355 predicate.
1356 (imm_for_neon_rshift_operand): Ditto.
1357 (imm_lshift_or_reg_neon): Ditto.
1358 (imm_rshift_or_reg_neon): Ditto.
1359
1360 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1361
ddb555ed
JJ
13622011-06-22 Jakub Jelinek <jakub@redhat.com>
1363
36dc1a88
JJ
1364 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1365 builtin calls even if likelyvalue is not CONSTANT.
1366 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1367 Return get_value_for_expr of first operand
1368 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1369 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1370 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1371 their non-checking counterparts.
1372 (call_may_clobber_ref_p_1): Likewise.
1373 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1374 like their non-checking counterparts.
1375 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1376 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1377 like their non-checking counterparts.
1378 (find_func_clobbers): Likewise.
1379 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1380 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1381
41cd4957
JJ
1382 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1383 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1384 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1385 of base type reference as argument.
1386 (resolve_addr_in_expr): Likewise. Fix keep computation.
1387 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
1388 (convert_descriptor_to_mode): ... this. For wider types convert to
1389 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
1390 (typed_binop): New function.
1391 (scompare_loc_descriptor, ucompare_loc_descriptor,
1392 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1393 default to unsigned type instead of signed.
1394
ddb555ed
JJ
1395 PR debug/47858
1396 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1397 (gimple_build_debug_source_bind_stat): New prototype.
1398 (gimple_build_debug_source_bind): Define.
1399 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1400 gimple_debug_source_bind_get_value,
1401 gimple_debug_source_bind_get_value_ptr,
1402 gimple_debug_source_bind_set_var,
1403 gimple_debug_source_bind_set_value): New inlines.
1404 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1405 * gimple-pretty-print.c (dump_gimple_debug): Handle
1406 GIMPLE_DEBUG_SOURCE_BIND.
1407 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1408 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1409 * tree-parloops.c (eliminate_local_variables,
1410 separate_decls_in_region): Likewise.
1411 (separate_decls_in_region_debug): Renamed from
1412 separate_decls_in_region_debug_bind. Handle
1413 gimple_debug_source_bind_p.
1414 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1415 prototypes.
1416 (DECL_HAS_DEBUG_ARGS_P): Define.
1417 (struct tree_function_decl): Add has_debug_args_flag field.
1418 * tree.c (debug_args_for_decl): New variable.
1419 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1420 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1421 (rewrite_debug_stmt_uses): New function.
1422 (rewrite_stmt): Use it to rewrite debug stmt uses.
1423 * rtl.def (DEBUG_PARAMETER_REF): New.
1424 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1425 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1426 DEBUG_PARAMETER_REF.
1427 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1428 * print-rtl.c (print_rtx): Likewise.
1429 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1430 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1431 debug stmts in the first bb.
1432 * tree-inline.c (remap_ssa_name): If remapping default def
1433 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1434 a source bind debug stmt.
1435 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1436 (maybe_move_debug_stmts_to_successors): Likewise.
1437 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1438 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1439 debug args vector from old_decl to new_decl.
1440 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1441 or modified parameters, add debug bind stmts before call
0d5e0c1b 1442 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
1443 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1444 on DECL_DEBUG_EXPRs from debug args vector.
1445 (expand_debug_source_expr): New function.
1446 (expand_debug_locations): Use it for source bind insns.
1447 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1448 * var-tracking.c (prepare_call_arguments): Add debug args
1449 to call_arguments if any.
1450 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
1451 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1452 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
1453 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1454 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1455 (gen_subprogram_die): Handle parameters identified by
1456 DEBUG_PARAMETER_REF.
1457
ccdc2164
NS
14582011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1459
1460 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1461 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
1462 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1463 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1464 (arm_tls_descseq_addr): New.
1465 (legitimize_tls_address): Add tlsdesc support.
1466 (arm_cannot_copy_insn_p): Check for tlscall.
1467 (arm_emit_tls_decoration): Likewise.
1468 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1469 (OPTION_DEFAULT_SPECS): Add with-tls support.
1470 * config/arm/arm.md (R1_REGNUM): Define.
1471 (tlscall): New.
1472 * config/arm/arm.opt (tls_type): New enumeration type and values.
1473 (mtls-dialect): New switch.
1474 * config/arm/arm-opts.h (enum tls_type): New.
1475
70e41a6a
NP
14762011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1477
1478 * attribs.c (register_attribute): Added assert to check that all
1479 attribute specs are registered with a name that is not empty and
1480 does not start with '_'.
1481 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1482 if the function has no attributes.
1483 * tree.c (is_attribute_with_length_p): Removed.
1484 (is_attribute_p): Removed.
0d5e0c1b 1485 (private_is_attribute_p): New.
70e41a6a
NP
1486 (private_lookup_attribute): New.
1487 (lookup_attribute): Removed.
1488 (lookup_ident_attribute): New.
1489 (remove_attribute): Require the first argument to be in the form
1490 'text', not '__text__'. Updated asserts.
1491 (merge_attributes): Use lookup_ident_attributes instead of
1492 lookup_attribute.
1493 (merge_dllimport_decl_attributes): Use remove_attribute.
1494 (attribute_list_contained): Likewise.
1495 (attribute_list_equal): Immediately return 1 if the arguments are
1496 identical pointers.
1497 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1498 'int'. Require the first argument to be in the form 'text', not
1499 '__text__'. Require the second argument to be an identifier.
1500 (lookup_attribute): Made inline. Require the first argument to be
1501 in the form 'text', not '__text__'.
1502 (private_is_attribute_p, private_lookup_attribute): New.
1503 Updated comments.
0d5e0c1b 1504
e0a8ecf2
AM
15052011-06-21 Andrew MacLeod <amacleod@redhat.com>
1506
1507 * builtins.c: Add sync_ or SYNC__ to builtin names.
1508 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1509 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1510
663827d3 15112011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 1512
663827d3
GJL
1513 PR target/33049
1514 * config/avr/avr.md (extzv): New expander.
1515 (*extzv): New insn.
1516 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1517 * config/avr/constraints.md (C04): New constraint.
1518 * doc/md.texi (Machine Constraints): Document it.
1519
146aef0b
JJ
15202011-06-21 Jakub Jelinek <jakub@redhat.com>
1521
1522 PR middle-end/49489
1523 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1524 unsignedp argument instead of 1 for clrsb_optab.
1525 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1526 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1527 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1528 * optabs.c (widen_leading): Call widen_operand and expand_unop
1529 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 1530 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 1531
c0503294
GJL
15322011-06-21 Georg-Johann Lay <avr@gjlay.de>
1533
1534 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1535
3801c801
BS
15362011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1537
0bddee8e
BS
1538 * gensupport.c (add_define_attr): New static function.
1539 (is_predicable): Allow multi-alternative lists for the "predicable"
1540 attribute.
1541 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1542 (process_one_cond_exec): Call alter_attrs_for_insn.
1543 * doc/md.texi (Defining Attributes): Mention some standard names.
1544 (Conditional Execution): Update documentation for "predicable".
1545
3801c801
BS
1546 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1547 __builtin_clrsbll): Document.
1548 * doc/rtl.texi (clrsb): New entry.
1549 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1550 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1551 (expand_unop): Handle clrsb_optab.
1552 (init_optabs): Initialize it.
1553 * optabs.h (enum optab_index): New entry OTI_clrsb.
1554 (clrsb_optab): Define.
1555 * genopinit.c (optabs): Add an entry for it.
1556 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1557 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1558 BUILT_IN_CLRSBLL): New.
1559 * rtl.def (CLRSB): New code.
1560 * dwarf2out.c (mem_loc_descriptor): Handle it.
1561 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1562 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1563 and popcount.
1564 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1565 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1566 (__ctzDI2): Move declaration.
1567 * config/bfin/bfin.md (clrsbsi2): New expander.
1568 (signbitssi2): Use the CLRSB rtx.
1569 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1570 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1571
55f01229
RG
15722011-06-21 Richard Guenther <rguenther@suse.de>
1573
637c11bd 1574 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 1575
5181cd6a
IR
15762011-06-21 Ira Rosen <ira.rosen@linaro.org>
1577
1578 PR tree-optimization/49478
1579 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1580 with constant operand.
1581
e4ee3d70
RG
15822011-06-21 Richard Guenther <rguenther@suse.de>
1583
1584 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 1585
7b7ec6c5
RG
15862011-06-21 Richard Guenther <rguenther@suse.de>
1587
1588 PR tree-optimization/49483
1589 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1590 VIEW_CONVERT_EXPR conversions.
1591
1b916ca6
JM
15922011-06-21 Joseph Myers <joseph@codesourcery.com>
1593
1594 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1595 * config/avr/avr-tables.opt: New file (generated).
1596 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1597 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1598 avr-mcus.def.
1599 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1600 (avr_option_override): Don't process -mmcu= argument here. Set
1601 avr_current_device using avr_mcu_index.
637c11bd 1602 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
1603 * config/avr/avr.opt (mmcu=): Use Enum.
1604 * config/avr/t-avr (avr-devices.o): Update dependencies.
1605 ($(srcdir)/config/avr/avr-tables.opt): New.
1606 * target.def (help): Remove.
1607 * doc/tm.texi.in (TARGET_HELP): Remove.
1608 * doc/tm.texi: Regenerate.
1609 * opts.c: Don't include target.h.
1610 (common_handle_option): Don't call targetm.help.
1611 * system.h (TARGET_HELP): Poison.
1612 * Makefile.in (opts.o): Update dependencies.
1613
7ecfa34f
RO
16142011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1615
1616 * config/usegld.h: New file.
1617 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1618 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 1619 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
1620 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1621 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
1622 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1623 Define.
7ecfa34f
RO
1624 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1625 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1626 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1627 (STACK_CHECK_STATIC_BUILTIN): Define.
1628 * config/sol2.opt (compat-bsd): Remove.
1629 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1630 * config/sol2-bi.h: New file.
1631 * config/sol2-gld.h: Remove.
1632 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1633 (NO_DBX_BNSYM_ENSYM): Remove.
1634 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1635 (STACK_CHECK_STATIC_BUILTIN): Remove.
1636 Test USE_GLD instead of TARGET_GNU_LD.
1637 * config/i386/sol2-10.h: Rename to ...
1638 * config/i386/sol2-bi.h .. this.
1639 (SUBTARGET_EXTRA_SPECS): Redefine.
1640 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1641 (MULTILIB_DEFAULTS): Remove.
1642 (DEFAULT_ARCH32_P): Define.
1643 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1644 (ARCH64_SUBDIR): Define.
1645 Test USE_GLD instead of TARGET_GNU_LD.
1646 (I386_EMULATION): Rename to ...
1647 (ARCH32_EMULATION): ... this.
1648 (X86_64_EMULATION): Rename to ...
1649 (ARCH64_EMULATION): ... this.
1650 (TARGET_LD_EMULATION): Remove.
1651 (LINK_ARCH_SPEC): Remove.
1652 * config/i386/sol2-gas.h: Remove.
1653 * config/i386/t-sol2-10: Rename to ...
1654 * config/i386/t-sol2-64: ... this.
1655 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1656 (AS_SPARC64_FLAG): Define.
1657 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1658 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1659 depending on TARGET_CPU_DEFAULT.
1660 (CPP_CPU_SPEC): Redefine.
1661 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1662 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1663 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1664 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1665 ASM_ARCH_DEFAULT_SPEC): Redefine.
1666 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1667 LINK_ARCH_DEFAULT_SPEC.
1668 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1669 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1670 (ARCH64_SUBDIR): Define.
1671 (LINK_ARCH64_SPEC): Redefine.
1672 (CC1_SPEC): Redefine.
1673 (OPTION_DEFAULT_SPECS): Redefine.
1674 (MULTILIB_DEFAULTS): Define.
1675 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1676 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1677 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1678 (NO_DBX_BNSYM_ENSYM): Remove.
1679 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1680 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1681 (TARGET_ASM_NAMED_SECTION): Likewise.
1682 (STACK_CHECK_STATIC_BUILTIN): Remove.
1683 * config/sparc/sol2-bi.h: Remove.
1684 * config/sparc/sol2-gas-bi.h: Remove.
1685 * config/sparc/sol2-gas.h: Remove.
1686 * config/sparc/sol2-gld-bi.h: Remove.
1687 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1688 common parts ...
1689 (*-*-solaris2*): ... here.
1690
4b583c43 16912011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 1692
4b583c43 1693 PR other/43564
637c11bd
UB
1694 * ipa-inline.c (can_inline_edge_p): Check
1695 !DECL_DISREGARD_INLINE_LIMITS.
1696
3bb556ad 16972011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 1698
3bb556ad
CB
1699 PR middle-end/49139
1700 * cgraphunit.c (process_function_and_variable_attributes): warn when
1701 always_inline functions that are not inline.
637c11bd
UB
1702 * ipa-inline-transform.c (inline_transform): Always call
1703 optimize_inline.
1704 * tree-inline.c (tree_inlinable_function_p): Use error instead
1705 of sorry.
3bb556ad 1706 (expand_call_inline): Likewise.
637c11bd 1707
f1ee724c
JJ
17082011-06-21 Jakub Jelinek <jakub@redhat.com>
1709
1710 * Makefile.in (dg_target_exps): Set.
1711 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1712 instead of 7, try to divide it more evenly.
1713
17142011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 1715
931050d0 1716 PR target/49089
97ef5ae6
CF
1717 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1718 (avx256_split_unaligned_store): New definition.
1719 (ix86_option_override_internal): Enable avx256 unaligned load/store
1720 splitting only when avx256_split_unaligned_load/store is set.
1721
998c75b6
BS
17222011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1723
1724 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1725 open chain in a smaller mode without failing the entire block.
1726
83a8cbda
L
17272011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 PR middle-end/47725
1730 * combine.c (cant_combine_insn_p): Don't check zero/sign
1731 extended hard registers.
1732
3a769784
AM
17332011-06-21 Alan Modra <amodra@gmail.com>
1734
1735 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1736 CONST high part large-toc address.
1737 (rs6000_tls_referenced_p): Make static.
1738 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1739
d1e32c4a
L
17402011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 PR middle-end/47725
1743 * combine.c (cant_combine_insn_p): Check zero/sign extended
1744 hard registers.
1745
c2954af9
RR
17462011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1747
1748 PR target/49385
1749 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1750 one of the operands is a register.
1751
a95015b6
KT
17522011-06-20 Kai Tietz <ktietz@redhat.com>
1753
637c11bd
UB
1754 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1755 operations in combination with binary and.
a95015b6 1756
49a30d00
BS
17572011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1758
1759 * regrename.c (do_replace): Don't update notes.
1760
3bae1d98
AM
17612011-06-20 Alan Modra <amodra@gmail.com>
1762
1763 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1764 of toc-relative address in CONST.
1765 (rs6000_delegitimize_address): Recognize changed address.
1766 (rs6000_legitimize_reload_address): Likewise.
1767 (rs6000_emit_move): Don't force these constants to memory.
1768 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1769 toc-relative address in CONST.
1770 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1771 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1772
10937b0c
L
17732011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1774
637c11bd 1775 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
1776 (count_trailing_zeros): Likewise.
1777
0c587260
L
17782011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1779
1780 PR other/49325
1781 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1782 .init_array can be used with .ctors on targets.
1783 * configure: Regenerated.
1784
c020c92b
EB
17852011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1786
1787 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1788 if the element type is volatile.
1789
cd35bcf7
JH
17902011-06-18 Jan Hubicka <jh@suse.cz>
1791
1792 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1793 extra name aliases.
1794 (lto_symtab_resolve_can_prevail_p): Likewise.
1795 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1796 * cgraphbuild.c (record_reference): Remove extra body alias code.
1797 (mark_load): Likewise.
1798 (mark_store): Likewise.
1799 * cgraph.h (varpool_node): Remove extra_name filed;
1800 add alias_of and extraname_alias.
1801 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1802 (varpool_alias_aliased_node): New inline function.
1803 (varpool_variable_node): New function.
1804 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1805 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1806 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1807 (input_varpool_node): Likewise.
1808 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1809 (varpool_externally_visible_p): Remove extra body alias code.
1810 (function_and_variable_visibility): Likewise.
1811 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1812 (ipa_pta_execute): Use it.
1813 * varpool.c (varpool_remove_node): Remove extra name alias code.
1814 (varpool_mark_needed_node): Likewise.
1815 (varpool_analyze_pending_decls): Analyze aliases.
1816 (assemble_aliases): New functoin.
1817 (varpool_assemble_decl): Use it.
1818 (varpool_create_variable_alias): New function.
1819 (varpool_extra_name_alias): Rewrite.
1820 (varpool_for_node_and_aliases): New function.
1821
c96b4102
JJ
18222011-06-18 Jakub Jelinek <jakub@redhat.com>
1823
1824 PR target/49411
1825 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1826 last_arg_constant and last argument doesn't match its predicate,
1827 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1828 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1829 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1830 spelling of error message.
1831 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1832 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1833 const_0_to_255_operand instead of const_int_operand.
1834
1835 Revert:
1836 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1837
1838 * config/i386/sse.md (blendbits): Remove mode attribute.
1839 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1840 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1841 Check integer value of operand 3 in insn constraint.
1842
9a2091cd
HPN
18432011-06-17 Hans-Peter Nilsson <hp@axis.com>
1844
1845 PR rtl-optimization/48542
1846 * reload.c (find_equiv_reg): Stop looking when finding a
1847 setjmp-type call.
1848 * reload1.c (reload_as_needed): Invalidate all reload
1849 registers when crossing a setjmp-type call.
1850
361b51c0
JL
18512011-06-16 Jeff Law <law@redhat.com>
1852
1853 * tree-ssa-threadupdate.c (struct redirection_data): New field
1854 intermediate_edge.
1855 (THREAD_TARGET2): Define.
637c11bd 1856 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
1857 (lookup_redirection_data): Drop useless argument. Extract the
1858 outgoing_edge and intermediate edge from E. Callers updated.
1859 (copy_phi_args, update_destination_phis): New functions.
1860 (fix_duplicate_block_edges): Likewise.
1861 (create_edge_and_update_destination_phis): Duplicate all the edges
1862 hung off e->aux. Use copy_phi_args.
1863 (create_duplicates): Use fix_duplicate_block_edges.
1864 (fixup_template_block): Likewise.
1865 (redirect_edges): If necessary, redirect the joiner block's incoming
1866 edge to the duplicate of the joiner block.
1867 (thread_block): Don't muck up loops when threading through a joiner
1868 block.
637c11bd 1869 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
1870 (mark_threaded_blocks, register_jump_thread): Likewise.
1871 * tree-flow.h (register_jump_thread): Add new argument. Callers
1872 updated.
1873 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1874 (thread_across_edge): Handle threading through a joiner block.
637c11bd 1875
ee460e75
MJ
18762011-06-16 Martin Jambor <mjambor@suse.cz>
1877
1878 PR tree-optimization/49343
1879 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1880 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1881
a285ba2e
IS
18822011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1883
1884 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1885 inside RTX_CODE ifdef.
1886
0703f020
TV
18872011-06-16 Tom de Vries <tom@codesourcery.com>
1888
1889 PR target/45098
637c11bd
UB
1890 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1891 Disallow NULL pointer for pointer arithmetic.
0703f020 1892
900c07da
RR
18932011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1894
1895 PR target/49398
1896 Revert.
1897 2011-06-10 Wei Guozhi <carrot@google.com>
1898
1899 PR target/45335
1900 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1901 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1902 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1903 related peephole2.
1904 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1905 related peephole2.
1906 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1907 (arm_legitimate_ldrd_p): New prototype.
1908 (arm_output_ldrd): New prototype.
1909 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1910 (arm_legitimate_ldrd_p): New function.
1911 (arm_output_ldrd): New function.
1912
c020c92b 19132011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
1914
1915 PR middle-end/46500
1916 * doc/tm.texi.in: Update Copyright date.
1917 * doc/tm.texi: Regenerate.
1918 * targhooks.c (default_setup_incoming_varargs): Replace
1919 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1920 (default_pretend_outgoing_varargs_named): Likewise.
1921 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1922 (hook_callee_copies_named): Likewise.
1923 (default_function_arg_advance): Likewise.
1924 (default_function_arg): Likewise.
1925 (default_function_incoming_arg): Likewise.
1926 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1927 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1928 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1929 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1930 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1931 * targhooks.h (default_setup_incoming_varargs): Likewise.
1932 (default_pretend_outgoing_varargs_named): Likewise.
1933 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1934 (hook_callee_copies_named): Likewise.
1935 (default_function_arg_advance): Likewise.
1936 (default_function_arg): Likewise.
1937 (default_function_incoming_arg): Likewise.
1938 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1939 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1940 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1941 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1942 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1943 * target.def (pass_by_reference): Likewise.
1944 (setup_incoming_varargs, strict_argument_naming): Likewise.
1945 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1946 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1947 (function_incoming_arg): Likewise.
1948 * target.h: Don't include "tm.h" .
1949 (cumulative_args_t): New typedef.
1950 [GCC_TM_H] (get_cumulative_args): New static inline function.
1951 [GCC_TM_H] (pack_cumulative_args): Likewise.
1952 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1953 argument type with cumulative_args_t.
1954 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1955 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1956 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1957 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1958 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1959 (frv_function_arg_1): Likewise.
1960 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1961 (s390_function_arg_advance, s390_function_arg): Likewise.
1962 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1963 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1964 (m32c_strict_argument_naming): Likewise.
1965 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1966 (spu_function_arg_advance): Likewise.
1967 (spu_setup_incoming_varargs): Likewise. Make static.
1968 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1969 Remove prototype.
1970 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1971 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1972 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1973 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1974 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1975 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1976 (mep_pass_by_reference, mep_function_arg): Likewise.
1977 (mep_function_arg_advance): Likewise.
1978 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1979 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1980 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1981 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1982 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1983 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1984 (ix86_setup_incoming_varargs): Likewise.
1985 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1986 (sh_strict_argument_naming): Likewise.
1987 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1988 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1989 (sh_function_arg_advance, sh_function_arg): Likewise.
1990 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1991 (pdp11_function_arg_advance): Likewise.
1992 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1993 Likewise.
1994 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1995 * config/avr/avr.c (avr_function_arg): Likewise.
1996 (avr_function_arg_advance): Likewise.
1997 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1998 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1999 (xtensa_function_arg_1): Likewise.
637c11bd
UB
2000 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2001 Likewise.
d5cc9181
JR
2002 (xstormy16_function_arg): Likewise.
2003 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2004 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2005 (fr30_function_arg_advance): Likewise.
2006 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2007 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2008 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2009 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2010 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2011 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2012 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2013 (cris_function_arg, cris_function_incoming_arg): Likewise.
2014 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2015 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2016 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2017 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2018 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2019 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2020 (mn10300_arg_partial_bytes): Likewise.
2021 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2022 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2023 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2024 (ia64_function_arg_1): Likewise.
2025 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2026 (m68k_function_arg): Likewise.
2027 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2028 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2029 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2030 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2031 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2032 (picochip_arg_advance): Likewise.
2033 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2034 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2035 (mcore_function_arg_advance): Likewise.
2036 * config/score/score.c (score_pass_by_reference): Likewise.
2037 (score_function_arg_advance): Likewise.
2038 (score_arg_partial_bytes): Likewise. Make static.
2039 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2040 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2041 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2042 (arm_function_arg, arm_function_arg_advance): Likewise.
2043 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2044 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2045 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2046 (pa_function_arg): Likewise.
2047 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2048 (mips_function_arg, mips_function_arg_advance): Likewise.
2049 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2050 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2051 * config/vax/vax.c (vax_function_arg): Likewise.
2052 (vax_function_arg_advance): Likewise.
2053 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2054 (h8300_function_arg_advance): Likewise.
2055 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2056 (v850_strict_argument_naming, v850_function_arg): Likewise.
2057 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2058 (v850_setup_incoming_varargs): Likewise.
2059 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2060 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2061 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2062 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2063 with const void *.
2064 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2065 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2066 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2067 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2068 * calls.c (emit_call_1): Change type of args_so_far to
2069 cumulative_args_t. Changed all callers.
2070 (initialize_argument_information): Likewise.
2071 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2072 * dse.c (get_call_args): Likewise.
2073 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2074 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2075 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2076 New member args_so_far_v. Changed all users.
2077 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2078 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2079 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2080 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2081 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
2082 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2083 Likewise.
d5cc9181
JR
2084 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2085 m32r_pass_by_reference.
2086
51312233
IR
20872011-06-16 Ira Rosen <ira.rosen@linaro.org>
2088
2089 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2090 argument to be a VEC of statements.
637c11bd
UB
2091 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2092 assert that pattern statements have to have their vector type set.
51312233
IR
2093 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2094 Change the first argument to be a VEC of statements. Update
2095 documentation.
2096 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2097 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
2098 (vect_recog_widen_mult_pattern): Change the first argument to be a
2099 VEC of statements. Update documentation. Check that the constant is
2100 INTEGER_CST. Support multiplication by a constant that fits an
2101 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
2102 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2103 call. Handle additional pattern statements if necessary.
2104
fd4df33d
NC
21052011-06-16 Nick Clifton <nickc@redhat.com>
2106
2107 PR target/49427
2108 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2109 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2110 md_file, extra_modes, out_file and extra_options are these are all
2111 deduced from cpu_type.
2112
fbd05da0
GJL
21132011-06-16 Georg-Johann Lay <avr@gjlay.de>
2114
2115 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2116 truncation mask to 63.
2117
0ad8bb3b
GJL
21182011-06-16 Georg-Johann Lay <avr@gjlay.de>
2119
2120 PR target/49313
2121 PR target/29524
2122 * longlong.h: Add AVR support:
2123 (count_leading_zeros): New macro.
2124 (count_trailing_zeros): New macro.
2125 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
2126 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2127 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2128 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2129 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
2130 (LIB2FUNCS_EXCLUDE): Add _clz.
2131 * config/avr/libgcc.S (XCALL): Move up in file.
2132 (XJMP): New C Macro.
2133 (DEFUN): New asm macro.
2134 (ENDF): New asm macro.
2135 (__ffssi2): New function.
2136 (__ffshi2): New function.
2137 (__loop_ffsqi2): New function.
2138 (__ctzsi2): New function.
2139 (__ctzhi2): New function.
2140 (__clzdi2): New function.
2141 (__clzsi2): New function.
2142 (__clzhi2): New function.
2143 (__paritydi2): New function.
2144 (__paritysi2): New function.
2145 (__parityhi2): New function.
59c1e10b 2146 (__parityqi2): New function.
0ad8bb3b
GJL
2147 (__popcounthi2): New function.
2148 (__popcountsi2): New function.
2149 (__popcountdi2): New function.
2150 (__popcountqi2): New function.
2151 (__bswapsi2): New function.
2152 (__bswapdi2): New function.
2153 (__ashldi3): New function.
2154 (__ashrdi3): New function.
2155 (__lshrdi3): New function.
2156 Fix suspicous lines.
2157
12430896
RG
21582011-06-16 Richard Guenther <rguenther@suse.de>
2159
2160 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2161 the same as x != 0.
637c11bd
UB
2162 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2163 to (bool) X & 1.
12430896
RG
2164 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2165 equality compares against zero for the lower bit.
2166
09302442
JJ
21672011-06-16 Jakub Jelinek <jakub@redhat.com>
2168
2169 PR tree-optimization/49419
2170 * tree-vrp.c (execute_vrp): Call init_range_assertions
2171 before estimate_numbers_of_iterations, call
2172 free_number_of_iterations_estimates before calling
2173 remove_range_assertions.
2174
81c41166
RE
21752011-06-16 Revital Eres <revital.eres@linaro.org>
2176
2177 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2178 (struct partial_schedule): Add rows_length field.
2179 (verify_partial_schedule): Check rows_length.
2180 (ps_insert_empty_row): Handle rows_length.
2181 (create_partial_schedule): Likewise.
2182 (free_partial_schedule): Likewise.
2183 (reset_partial_schedule): Likewise.
2184 (create_ps_insn): Remove rest_count argument.
2185 (remove_node_from_ps): Update rows_length.
2186 (add_node_to_ps): Update rows_length and call create_ps_insn
2187 without passing row_rest_count.
2188 (rotate_partial_schedule): Update rows_length.
2189
d24dc7b3
RE
21902011-06-16 Revital Eres <revital.eres@linaro.org>
2191
2192 * ddg.c (add_intra_loop_mem_dep): New function.
2193 (build_intra_loop_deps): Call it.
2194
361b51c0 21952011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
2196
2197 * df-problems.c (df_lr_local_compute): Manually CSE
2198 PIC_OFFSET_TABLE_REGNUM.
2199 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2200 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2201
85ce9375
JH
22022011-06-13 Jan Hubicka <jh@suse.cz>
2203
2204 * cgraphunit.c (handle_alias_pairs): New function.
2205 (cgraph_finalize_compilation_unit): Use it.
2206 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2207 as externally visible.
2208
a577c405
RG
22092011-06-15 Richard Guenther <rguenther@suse.de>
2210
2211 * expr.c (expand_expr_real_2): Reduce all integral types to
2212 bitfield precision.
2213 (expand_expr_real_1): Likewise.
2214
93536c97
MJ
22152011-06-15 Martin Jambor <mjambor@suse.cz>
2216
2217 PR tree-optimization/48613
2218 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2219 ipa_node_params_vector is NULL.
fd4df33d 2220
ba45cfc4
JJ
22212011-06-15 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR debug/49382
2224 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
2225 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2226 location in the list, even if it is modified before first real insn.
ba45cfc4 2227 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 2228 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 2229
6fc5966f
AM
22302011-06-15 Alexander Monakov <amonakov@ispras.ru>
2231
2232 PR target/49349
2233 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2234 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2235 above a fence. Update comments.
2236 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2237 placed just above it. Do not allow NULL place_to_insert.
2238
9d5e7640
IR
22392011-06-15 Ira Rosen <ira.rosen@linaro.org>
2240
2241 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2242 (slpeel_tree_peel_loop_to_edge): Don't call
2243 remove_dead_stmts_from_loop.
2244 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2245 remove irrelevant pattern statements. For irrelevant statements
2246 check if it is the last statement of a detected pattern, use
2247 corresponding pattern statement instead.
2248 (destroy_loop_vec_info): No need to remove pattern statements,
2249 only free stmt_vec_info.
2250 (vect_transform_loop): For irrelevant statements check if it is
2251 the last statement of a detected pattern, use corresponding
2252 pattern statement instead.
2253 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2254 pattern statements. Set basic block for the new statement.
2255 (vect_pattern_recog): Update documentation.
2256 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2257 operands of pattern statements.
2258 (vectorizable_call): Fix printing. In case of a pattern statement
2259 use the lhs of the original statement when creating a dummy
2260 statement to replace the original call.
2261 (vect_analyze_stmt): For irrelevant statements check if it is
2262 the last statement of a detected pattern, use corresponding
2263 pattern statement instead.
2264 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2265 statements use gsi of the original statement.
2266
677f3fa8
JM
22672011-06-14 Joseph Myers <joseph@codesourcery.com>
2268
2269 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2270 common/common-target-def.h.
2271 * target.def (default_target_flags, handle_option,
2272 supports_split_stack, optimization_table, init_struct,
2273 except_unwind_info, unwind_tables_default, have_named_sections):
2274 Move to common/common-target.def.
2275 * target.h (enum opt_levels, struct default_options): Move to
2276 common/common-target.h.
2277 * targhooks.c (default_except_unwind_info,
2278 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2279 default_target_handle_option, empty_optimization_table): Move to
2280 common/common-targhooks.c.
2281 * targhooks.h (default_except_unwind_info,
2282 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2283 default_target_handle_option, empty_optimization_table): Move to
2284 common/common-targhooks.h.
2285 * common/common-target-def.h: Include common/common-targhooks.h.
2286 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2287 defined.
2288 * common/common-target.def (handle_option, option_init_struct,
2289 option_optimization_table, default_target_flags,
2290 except_unwind_info, supports_split_stack, unwind_tables_default,
2291 have_named_sections): Move from target.def.
2292 (HOOK_PREFIX): Undefine at end of file.
2293 * common/common-target.h: Include input.h.
2294 (enum opt_levels, struct default_options): Move from target.h.
2295 * common/common-targhooks.c, common/common-targhooks.h: New.
2296 * config.gcc (target_has_targetm_common): Default to yes.
2297 (moxie*): Set target_has_targetm_common=no.
2298 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2299 * doc/tm.texi: Regenerate.
2300 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2301 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2302 (GCC_OBJS): Remove vec.o.
2303 (OBJS): Remove hooks.o and vec.o.
2304 (OBJS-libcommon-target): Add vec.o, hooks.o and
2305 common/common-targhooks.o.
2306 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2307 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2308 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2309 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2310 Update dependencies.
2311 (common/common-targhooks.o): New.
637c11bd 2312 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
2313 * common/config/pa/pa-common.c: Include more headers. Take
2314 copyright dates from pa.c.
2315 (pa_option_optimization_table, pa_handle_option,
2316 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2317 TARGET_HANDLE_OPTION): Move from pa.c.
2318 * common/config/alpha/alpha-common.c,
2319 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2320 common/config/bfin/bfin-common.c,
2321 common/config/cris/cris-common.c,
2322 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2323 common/config/h8300/h8300-common.c,
2324 common/config/i386/i386-common.c,
2325 common/config/ia64/ia64-common.c,
2326 common/config/iq2000/iq2000-common.c,
2327 common/config/lm32/lm32-common.c,
2328 common/config/m32c/m32c-common.c,
2329 common/config/m32r/m32r-common.c,
2330 common/config/m68k/m68k-common.c,
2331 common/config/mcore/mcore-common.c,
2332 common/config/mep/mep-common.c,
2333 common/config/microblaze/microblaze-common.c,
2334 common/config/mips/mips-common.c,
2335 common/config/mmix/mmix-common.c,
2336 common/config/mn10300/mn10300-common.c,
2337 common/config/pdp11/pdp11-common.c,
2338 common/config/picochip/picochip-common.c,
2339 common/config/rs6000/rs6000-common.c,
2340 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2341 common/config/score/score-common.c, common/config/sh/sh-common.c,
2342 common/config/sparc/sparc-common.c,
2343 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2344 common/config/vax/vax-common.c,
2345 common/config/xstormy16/xstormy16-common.c,
2346 common/config/xtensa/xtensa-common.c: New.
2347 * config/alpha/alpha.c: Include common/common-target.h.
2348 (alpha_option_optimization_table, alpha_handle_option,
2349 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2350 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2351 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2352 * config/arm/arm.c (arm_option_optimization_table,
2353 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2354 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2355 arm-common.c.
2356 * config/avr/avr.c (avr_option_optimization_table,
2357 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2358 to avr-common.c.
2359 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2360 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2361 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2362 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2363 * config/cris/cris.c (cris_option_optimization_table,
2364 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2365 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2366 cris-common.c.
2367 * config/fr30/fr30.c (fr30_option_optimization_table,
2368 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2369 to fr30-common.c.
2370 * config/frv/frv.c (frv_option_optimization_table,
2371 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2372 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2373 * config/h8300/h8300.c (h8300_option_optimization_table,
2374 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2375 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2376 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2377 * config/i386/i386.c: Include common/common-target.h.
2378 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2379 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2380 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2381 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2382 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2383 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2384 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2385 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2386 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2387 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2388 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2389 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2390 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2391 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2392 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2393 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2394 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2395 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2396 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2397 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2398 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2399 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2400 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2401 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2402 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2403 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2404 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2405 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2406 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2407 ix86_option_optimization_table, ix86_option_init_struct,
2408 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2409 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2410 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2411 i386-common.c.
2412 * config/i386/t-i386 (i386.o): Update dependencies.
2413 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2414 * config/ia64/ia64.c (ia64_option_optimization_table,
2415 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2416 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2417 ia64_handle_option): Move to ia64-common.c.
2418 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2419 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2420 * config/lm32/lm32.c (lm32_option_optimization_table,
2421 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2422 to lm32-common.c.
2423 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2424 m32c-common.c.
2425 * config/m32r/m32r.c (m32r_option_optimization_table,
2426 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2427 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2428 m32r_handle_option): Move to m32r-common.c.
2429 (m32r_memory_move_cost): Remove comment referring to
2430 TARGET_HANDLE_OPTION.
2431 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2432 Move to m68k-common.c.
2433 * config/mcore/mcore.c (mcore_option_optimization_table,
2434 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2435 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2436 * config/mep/mep.c (mep_option_optimization_table,
2437 mep_handle_option, TARGET_HANDLE_OPTION,
2438 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2439 Move to mep-common.c.
2440 * config/microblaze/microblaze.c
2441 (microblaze_option_optimization_table,
2442 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2443 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2444 * config/mips/mips.c (mips_handle_option,
2445 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2446 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2447 mips-common.c.
2448 * config/mmix/mmix.c (mmix_option_optimization_table,
2449 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2450 Move to mmix-common.c.
2451 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2452 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2453 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2454 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2455 * config/pa/pa.c: Include common/common-target.h.
2456 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2457 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2458 pa_handle_option): Move to pa-common.c.
2459 (pa_option_override): Use targetm_common.except_unwind_info.
2460 (pa_asm_output_mi_thunk, pa_function_section): Use
2461 targetm_common.have_named_sections.
2462 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2463 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2464 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2465 pdp11_handle_option, pdp11_option_init_struct): Move to
2466 pdp11-common.c.
2467 * config/picochip/picochip.c (picochip_option_optimization_table,
2468 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2469 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2470 * config/rs6000/rs6000.c: Include common/common-target.h.
2471 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2472 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2473 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2474 rs6000_handle_option): Move to rs6000-common.c.
2475 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2476 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2477 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2478 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2479 * config/s390/s390.c (processor_flags_table,
2480 s390_option_optimization_table, s390_option_init_struct,
2481 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2482 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2483 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2484 * config/s390/s390.h (processor_flags_table): Declare.
2485 * config/score/score.c (score_option_optimization_table,
2486 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2487 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2488 score_handle_option): Move to score-common.c.
2489 * config/sh/sh.c (sh_option_optimization_table,
2490 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2491 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2492 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2493 * config/sparc/sparc.c: Include common/common-target.h.
2494 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2495 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2496 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2497 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2498 spu_option_init_struct): Move to spu-common.c.
2499 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2500 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2501 * config/v850/v850.c (small_memory_physical_max,
2502 v850_handle_memory_optionn v850_handle_option,
2503 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2504 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2505 v850-common.c.
637c11bd 2506 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
2507 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2508 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2509 Move to xtensa-common.c.
2510 * cfglayout.c: Include common/common-target.h.
2511 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2512 * cfgrtl.c: Include common/common-target.h.
2513 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2514 targetm_common.have_named_sections.
2515 * dbxout.c: Include common/common-target.h.
2516 (dbxout_function_end): Use targetm_common.have_named_sections.
2517 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2518 targetm_common.except_unwind_info.
2519 * dwarf2out.c: Include common/common-target.h.
2520 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2521 dwarf2out_begin_prologue, dwarf2out_frame_init,
2522 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2523 targetm_common.except_unwind_info.
2524 * except.c: Include common/common-target.h.
2525 (init_eh, finish_eh_generation,
2526 output_one_function_exception_table): Use
2527 targetm_common.except_unwind_info.
637c11bd 2528 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
2529 * explow.c: Include common/common-target.h.
2530 * expr.c: Include common/common-target.h.
637c11bd 2531 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
2532 * function.c: Include common/common-target.h.
2533 (expand_function_end): Use targetm_common.except_unwind_info.
2534 * haifa-sched.c: Include common/common-target.h.
637c11bd 2535 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
2536 * lto-opts.c: Include common/common-target.h instead of target.h.
2537 (lto_reissue_options): Use targetm_common.handle_option.
2538 * opts.c: Include common/common-target.h.
2539 (target_handle_option): Use targetm_common.handle_option.
2540 (init_options_struct): Update comment referring to
2541 targetm.target_option.optimization. Use
2542 targetm_common.default_target_flags,
2543 targetm_common.unwind_tables_default and
2544 targetm_common.option_init_struct.
2545 (default_options_optimization): Use
2546 targetm_common.option_optimization_table.
2547 (finish_options): Use targetm_common.except_unwind_info,
2548 targetm_common.unwind_tables_default,
2549 targetm_common.have_named_sections and
2550 targetm_common.supports_split_stack.
2551 * toplev.c: Include common/common-target.h.
2552 (process_options): Use targetm_common.have_named_sections.
2553 * tree-tailcall.c: Include common/common-target.h.
637c11bd 2554 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 2555 * tree.c: Include common/common-target.h.
637c11bd 2556 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
2557 * varasm.c: Include common/common-target.h.
2558 (resolve_unique_section, hot_function_section,
2559 default_function_section): Use targetm_common.have_named_sections.
2560
d26c7090
ER
25612011-06-14 Easwaran Raman <eraman@google.com>
2562
2563 PR rtl-optimization/44194
2564 * dse.c: Include tree-flow.h
2565 (insn_info): Add new field non_frame_wild_read.
2566 (group_info): Add new fields escaped_n and escaped_p.
2567 (kill_on_calls): New variable.
2568 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2569 (dse_step0): Initialize kill_on_calls.
2570 (can_escape): New function.
2571 (set_usage_bits): Add additional parameter; record information
2572 about escaped locations.
637c11bd 2573 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
2574 (dse_step2_nospill): Set kill_on_calls based on
2575 group->escaped_n and group->escaped_n.
2576 (add_wild_read): Refactor into...
2577 (reset_active_stores): ... New function, and
2578 (free_read_records): ... New function.
2579 (add_non_frame_wild_read): New function.
2580 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 2581 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
2582 (dse_step5_nospill): Call scan_reads_nospill for instructions
2583 marked as non_frame_wild_read.
637c11bd 2584 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 2585
c49a6962
JM
25862011-06-14 Joseph Myers <joseph@codesourcery.com>
2587
2588 * common/common-target-def.h, common/common-target.def,
2589 common/common-target.h, common/config/default-common.c,
2590 common/config/pa/pa-common.c: New files.
2591 * Makefile.in (common_out_file, common_out_object_file,
2592 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2593 (OBJS-libcommon-target): Include $(common_out_object_file).
2594 (prefix.o): Update dependencies.
2595 ($(common_out_object_file), common/common-target-hooks-def.h,
2596 s-common-target-hooks-def-h): New.
2597 (s-tm-texi): Also check timestamp on common-target.def.
2598 (build/genhooks.o): Update dependencies.
2599 * config.gcc (common_out_file, target_has_targetm_common): Define.
2600 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2601 TARGET_ALWAYS_STRIP_DOTDOT.
2602 * configure.ac (common_out_object_file): Define.
2603 (common_out_file, common_out_object_file): Substitute.
2604 (common): Create directory.
2605 * configure: Regenerate.
2606 * doc/tm.texi.in (targetm_common): Document.
2607 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2608 * doc/tm.texi: Regenerate.
2609 * genhooks.c (hook_array): Also include common/common-target.def.
2610 * prefix.c (tm.h): Don't include.
2611 (common/common-target.h): Include.
2612 (ALWAYS_STRIP_DOTDOT): Don't define.
2613 (update_path): Use targetm_common.always_strip_dotdot instead of
2614 ALWAYS_STRIP_DOTDOT.
2615 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2616
22c5fa5f
DL
26172011-06-14 David Li <davidxl@google.com>
2618
2619 * passes.c (execute_function_todo): Remove TODO_dump_func.
2620 (execute_one_pass): Remove TODO_dump_func.
2621 (execute_function_dump): New function.
2622 * tree-vrp.c: Remove TODO_dump_func.
2623 * regrename.c: Remove TODO_dump_func.
2624 * fwprop.c: Remove TODO_dump_func.
2625 * tree-into-ssa.c: Remove TODO_dump_func.
2626 * tree-complex.c: Remove TODO_dump_func.
2627 * tracer.c: Remove TODO_dump_func.
2628 * tree-loop-distribution.c: Remove TODO_dump_func.
2629 * postreload-gcse.c: Remove TODO_dump_func.
2630 * postreload.c: Remove TODO_dump_func.
2631 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2632 * tree-tailcall.c: Remove TODO_dump_func.
2633 * ipa-cp.c: Remove TODO_dump_func.
2634 * final.c: Remove TODO_dump_func.
2635 * tree-emutls.c: Remove TODO_dump_func.
2636 * omp-low.c: Remove TODO_dump_func.
2637 * tree-ssa-dse.c: Remove TODO_dump_func.
2638 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2639 * auto-inc-dec.c: Remove TODO_dump_func.
2640 * reorg.c: Remove TODO_dump_func.
2641 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2642 * tree-ssa-ccp.c: Remove TODO_dump_func.
2643 * compare-elim.c: Remove TODO_dump_func.
2644 * mode-switching.c: Remove TODO_dump_func.
2645 * modulo-sched.c: Remove TODO_dump_func.
2646 * tree-call-cdce.c: Remove TODO_dump_func.
2647 * cse.c: Remove TODO_dump_func.
2648 * web.c: Remove TODO_dump_func.
2649 * tree-stdarg.c: Remove TODO_dump_func.
2650 * lto-streamer-out.c: Remove TODO_dump_func.
2651 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2652 * tree-ssa-dom.c: Remove TODO_dump_func.
2653 * tree-nrv.c: Remove TODO_dump_func.
2654 * loop-init.c: Remove TODO_dump_func.
2655 * gimple-low.c: Remove TODO_dump_func.
2656 * ipa-inline.c: Remove TODO_dump_func.
2657 * tree-ssa-sink.c: Remove TODO_dump_func.
2658 * jump.c: Remove TODO_dump_func.
2659 * ifcvt.c: Remove TODO_dump_func.
2660 * tree-ssa-loop.c: Remove TODO_dump_func.
2661 * recog.c: Remove TODO_dump_func.
2662 * dse.c: Remove TODO_dump_func.
2663 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2664 * matrix-reorg.c: Remove TODO_dump_func.
2665 * tree-eh.c: Remove TODO_dump_func.
2666 * regmove.c: Remove TODO_dump_func.
2667 * function.c: Remove TODO_dump_func.
2668 * tree-vectorizer.c: Remove TODO_dump_func.
2669 * ipa-split.c: Remove TODO_dump_func.
2670 * gcse.c: Remove TODO_dump_func.
2671 * tree-if-conv.c: Remove TODO_dump_func.
2672 * init-regs.c: Remove TODO_dump_func.
2673 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2674 * implicit-zee.c: Remove TODO_dump_func.
2675 * lower-subreg.c: Remove TODO_dump_func.
2676 * bt-load.c: Remove TODO_dump_func.
2677 * tree-dfa.c: Remove TODO_dump_func.
2678 * except.c: Remove TODO_dump_func.
2679 * emit-rtl.c: Remove TODO_dump_func.
2680 * store-motion.c: Remove TODO_dump_func.
2681 * cfgexpand.c: Remove TODO_dump_func.
2682 * tree-cfgcleanup.c: Remove TODO_dump_func.
2683 * cfgcleanup.c: Remove TODO_dump_func.
2684 * tree-ssa-pre.c: Remove TODO_dump_func.
2685 * tree-sra.c: Remove TODO_dump_func.
2686 * tree-mudflap.c: Remove TODO_dump_func.
2687 * tree-ssa-copy.c: Remove TODO_dump_func.
2688 * cfglayout.c: Remove TODO_dump_func.
2689 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2690 * tree-ssa-dce.c: Remove TODO_dump_func.
2691 * ira.c: Remove TODO_dump_func.
2692 * tree-ssa.c: Remove TODO_dump_func.
2693 * integrate.c: Remove TODO_dump_func.
2694 * tree-optimize.c: Remove TODO_dump_func.
2695 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2696 * tree-object-size.c: Remove TODO_dump_func.
2697 * combine.c: Remove TODO_dump_func.
2698 * bb-reorder.c: Remove TODO_dump_func.
2699 * cprop.c: Remove TODO_dump_func.
2700 * var-tracking.c: Remove TODO_dump_func.
2701 * tree-profile.c: Remove TODO_dump_func.
2702 * tree-vect-generic.c: Remove TODO_dump_func.
2703 * reg-stack.c: Remove TODO_dump_func.
2704 * sched-rgn.c: Remove TODO_dump_func.
2705 * tree-ssa-structalias.c: Remove TODO_dump_func.
2706 * tree-switch-conversion.c: Remove TODO_dump_func.
2707 * tree-cfg.c: Remove TODO_dump_func.
2708 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2709 * combine-stack-adj.c: Remove TODO_dump_func.
2710 * dce.c: Remove TODO_dump_func.
2711 * tree-ssanames.c: Remove TODO_dump_func.
2712 * regcprop.c: Remove TODO_dump_func.
2713
fa465762
L
27142011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2715
2716 PR middle-end/47364
2717 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2718 and properly handle result not in Pmode.
2719
7d8d16c3
RM
27202011-06-14 Robert Millan <rmh@gnu.org>
2721
2722 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2723 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2724 `config/linux.h'.
2725
2726 * config/i386/kfreebsd-gnu64.h: New file.
2727 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2728 with `i386/kfreebsd-gnu64.h'.
2729
2730 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2731 (GNU_USER_LINK_EMULATION64): New macros.
2732 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2733 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2734 of hardcoding `elf_i386' and `elf_x86_64'.
2735
0ccef3d2
NC
27362011-06-14 Nick Clifton <nickc@redhat.com>
2737
2738 PR target/49403
2739 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2740
2741 PR target/49402
2742 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2743
8a76c4a0
JJ
27442011-06-14 Jakub Jelinek <jakub@redhat.com>
2745
1ace6185
JJ
2746 PR fortran/49103
2747 * tree.h (DECL_NONSHAREABLE): Define.
2748 (struct tree_decl_common): Change decl_common_unused to
2749 decl_nonshareable_flag.
2750 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2751 Ignore vars with DECL_NONSHAREABLE bit set.
2752 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2753 on stores to automatic aggregate vars.
2754
8a76c4a0
JJ
2755 PR rtl-optimization/49390
2756 Revert:
2757 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2758
2759 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2760 MEM_ALIAS_SET.
2761
b4a9343c
ZD
27622011-06-14 Zdenek Dvorak <ook@ucw.cz>
2763 Tom de Vries <tom@codesourcery.com>
2764
2765 PR target/45098
2766 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2767 Document changed semantics.
2768 (max_stmt_executions, max_stmt_executions_int): Declare.
2769 * tree-data-ref.c (estimated_loop_iterations)
2770 (estimated_loop_iterations_int): Move functions...
2771 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2772 (estimated_loop_iterations_int): here.
2773 (record_estimate): Change nb_iterations_upper_bound and
2774 nb_iterations_estimate semantics.
2775 (max_stmt_executions, max_stmt_executions_int): New function.
2776 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2777 (max_stmt_executions_tree): this.
2778 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2779 estimated_loop_iterations_tree.
2780 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2781 max_stmt_executions_int instead of estimated_loop_iterations_int.
2782 * predict.c (predict_loops): Idem.
2783 * tree-parloops.c (parallelize_loops): Idem.
2784 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2785 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2786 (init_omega_for_ddr_1): Idem.
2787 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2788 (loop_prefetch_arrays): Idem
2789 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2790 max_stmt_executions instead of estimated_loop_iterations.
2791 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2792 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2793 instead of nb_iterations_upper_bound.
2794
d2640c43
JH
27952011-06-13 Jan Hubicka <jh@suse.cz>
2796
2797 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2798
40873cdd
RH
27992011-06-14 Richard Henderson <rth@redhat.com>
2800
2801 PR debug/48459
2802 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2803 (based_loc_descr): Assert it's true.
2804 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2805 aborting immediately.
2806
73e8cb24
SL
28072011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2808 Mingfeng Wu <mingfeng@faraday-tech.com>
2809
2810 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2811
f835f0a7
JH
28122011-06-13 Jan Hubicka <jh@suse.cz>
2813
2814 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2815
ee6f1177
JH
28162011-06-13 Jan Hubicka <jh@suse.cz>
2817
2818 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2819 similarly to DECL_COMDAT.
2820 * cgraphunit.c (cgraph_analyze_function): Likewise.
2821 * ipa.c (function_and_variable_visibility): Likewise.
2822
618abf9a
JH
28232011-06-13 Jan Hubicka <jh@suse.cz>
2824
2825 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2826 BINFO_VIRTUALS when streaming for ltrans unit.
2827
a45fe02f
DE
28282011-06-13 David Edelsohn <dje.gcc@gmail.com>
2829
2830 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2831 (movdi_internal64): Same.
2832
28332011-06-13 Edmar Wienskoski <edmar@freescale.com>
2834
e641e495 2835 PR target/44618
7d8d16c3
RM
2836 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2837 a set of similar patterns, where the MATCH_OPERAND for the function
2838 argument is replaced with individual references to hardware registers.
a45fe02f
DE
2839 (save_fpregs_<mode>): Ditto
2840 (restore_gpregs_<mode>): Ditto
2841 (return_and_restore_gpregs_<mode>): Ditto
2842 (return_and_restore_fpregs_<mode>): Ditto
2843 (return_and_restore_fpregs_aix_<mode>): Ditto
2844
8775a18b
JH
28452011-06-13 Jan Hubicka <jh@suse.cz>
2846
2847 * ipa-utils.c (postorder_stack): New structure.
2848 (ipa_reverse_postorder): Handle aliases.
2849
28502011-06-13 Jan Hubicka <jh@suse.cz>
2851
2852 * ipa-inline.c (reset_edge_caches): Walk aliases.
2853 (update_caller_keys): Do not test inlinability of aliases.
2854 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2855 (do_estimate_growth): Fix typo.
2856
6c69a029
JH
28572011-06-13 Jan Hubicka <jh@suse.cz>
2858
2859 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2860 (can_remove_node_now_p): ... here; handle same comdat groups.
2861 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2862 (inline_call): Update use of can_remove_node_now_p.
2863
10c63ba4 28642011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 2865
10c63ba4 2866 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
2867 condition to disallow non-identical memory locations.
2868 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2869 preference to bit manipulation instructions.
495f8c14 2870
9aa3f5c5
JH
28712011-06-13 Jan Hubicka <jh@suse.cz>
2872
2873 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2874 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2875 (nonremovable_p): New function.
2876 (cgraph_can_remove_if_no_direct_calls_p): New function.
2877 (used_from_object_file_p): New functoin.
10c63ba4
EB
2878 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2879 references from aliases.
9aa3f5c5
JH
2880 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2881 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
2882 (want_inline_function_called_once_p): Use it; accept aliases called
2883 once, too.
9aa3f5c5
JH
2884 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2885
30cecf17
RR
28862011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2887
2888 PR target/48454
2889 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2890 correctly for the case with Quad vectors.
2891
29f85237
JJ
28922011-06-13 Jakub Jelinek <jakub@redhat.com>
2893 Ira Rosen <ira.rosen@linaro.org>
2894
2895 PR tree-optimization/49352
2896 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2897 all, make sure loop_use_stmt after the loop is a def stmt of a used
2898 SSA_NAME that is the only one defined inside of the loop. Don't
2899 check for COND_EXPR and GIMPLE_BINARY_RHS.
2900 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2901 check_reduction is true.
2902
c3e3f090
JH
29032011-06-11 Jan Hubicka <jh@suse.cz>
2904
2905 PR middle-end/49373
2906 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2907
516e0768
JH
29082011-06-11 Jan Hubicka <jh@suse.cz>
2909
2910 PR middle-end/48836
2911 * ipa-inline-transform.c: Include tree-pass.h
2912 (inline_transform): Set TODO_update_ssa_only_virtuals.
2913 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2914
903b0a8b
JH
29152011-06-11 Jan Hubicka <jh@suse.cz>
2916
2917 PR middle-end/49378
2918 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2919 aliases and thunks.
2920
44542f8e
IR
29212011-06-12 Ira Rosen <ira.rosen@linaro.org>
2922
2923 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2924 Take number of iterations to peel into account for equally frequent
2925 misalignment values.
2926
ea89702b
JH
29272011-06-11 Jan Hubicka <jh@suse.cz>
2928
637c11bd
UB
2929 * lto-streamer-out.c (produce_symtab): Stream out the newly
2930 represented aliases.
ea89702b 2931
380ed5ed
JH
29322011-06-11 Jan Hubicka <jh@suse.cz>
2933
637c11bd
UB
2934 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2935 varying args.
380ed5ed
JH
2936 (ipa_update_after_lto_read): Likewise.
2937 (ipa_write_node_info): Do not sream call_with_var_arguments.
2938 (ipa_read_node_info): Likewise.
2939
00cfc363
JH
29402011-06-11 Jan Hubicka <jh@suse.cz>
2941
2942 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2943
39e2db00
JH
29442011-06-11 Jan Hubicka <jh@suse.cz>
2945
2946 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2947 (lto_symtab_resolve_can_prevail_p): Likewise.
2948 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2949 * cgraph.c (same_body_aliases_done): New global var.
2950 (cgraph_same_body_alias_1): Rename to ...
2951 (cgraph_create_function_alias): ... this one; reorg to new
2952 representation.
2953 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2954 record references when asked to.
2955 (cgraph_add_thunk): Fix formating.
2956 (cgraph_get_node): Kill same body alias code.
2957 (cgraph_node_for_asm): Likewise.
2958 (cgraph_remove_same_body_alias): Remove.
2959 (cgraph_remove_node): Kill same body alias code.
2960 (cgraph_mark_address_taken_node): Mark also the aliased function
2961 as having address taken.
2962 (dump_cgraph_node): Dump same body aliases.
2963 (cgraph_for_node_thunks_and_aliases): Update for new alias
2964 representation.
2965 (cgraph_for_node_and_aliases): Likewise.
2966 * cgraph.h (same_body): Kll pointer.
2967 (same_body_alias): Update comment.
2968 (same_body_aliases_done): Declare.
2969 (cgraph_remove_same_body_alias): Remove declaration.
2970 (cgraph_create_function_alias): Declare.
2971 (cgraph_process_same_body_aliases): Declare.
2972 (cgraph_function_with_gimple_body_p): Check for alias.
2973 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2974 (cgraph_alias_aliased_node): New function.
2975 (cgraph_function_node): Update for new aliases.
2976 (cgraph_function_or_thunk_node): Likewise.
2977 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2978 (inline_call): Remove dead aliases.
10c63ba4
EB
2979 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2980 name hack for same body aliases.
39e2db00
JH
2981 (clone_of_p): Look through aliases.
2982 (verify_cgraph_node): Verify aliases.
2983 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2984 (cgraph_process_same_body_aliases): New function.
2985 (process_function_and_variable_attributes): Disable weakref warning on
2986 alias.
2987 (cgraph_analyze_functions): Handle aliases.
2988 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2989 (assemble_thunks): Rename to ...
2990 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2991 (cgraph_expand_function): Remove alias output code.
2992 (cgraph_output_in_order): Skip aliases.
2993 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2994 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2995 (ipa_record_reference): Do not assert on alias references.
2996 (ipa_ref_has_aliases_p): New function.
2997 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2998 (ipa_ref_has_aliases_p): Declare.
2999 * lto-cgraph.c (lto_output_node): Handle aliases.
3000 (input_node): Likewise.
3001 * lto-streamer-out.c (lto_output): Skip aliases.
3002 (produce_symtab): Kill same_body_alias code.
3003 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3004 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3005 * ipa-inline.c (update_caller_keys): Walk aliases.
3006 (inline_small_functions): Fix thinko in previous patch.
3007 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3008 (function_and_variable_visibility): Do not walk same body aliases.
3009 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3010 (ipa_pta_execute): Use it.
3011
9ee65b55
UB
30122011-06-11 Uros Bizjak <ubizjak@gmail.com>
3013
3014 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3015 (*vec_dupv2df): Rename from vec_dupv2df.
3016 (vec_dupv2df): New expander.
3017
30182011-06-11 Uros Bizjak <ubizjak@gmail.com>
3019
3020 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3021
30222011-06-11 Uros Bizjak <ubizjak@gmail.com>
3023
3024 * config/i386/i386.md: Use default value in "isa" attribute.
3025 * config/i386/sse.md: Ditto.
3026 * config/i386/mmx.md: Ditto.
3027
ba68a139
WG
30282011-06-10 Wei Guozhi <carrot@google.com>
3029
3030 PR target/45335
3031 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3032 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3033 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3034 related peephole2.
3035 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3036 related peephole2.
3037 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3038 (arm_legitimate_ldrd_p): New prototype.
3039 (arm_output_ldrd): New prototype.
3040 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3041 (arm_legitimate_ldrd_p): New function.
3042 (arm_output_ldrd): New function.
3043
deced1e2
XDL
30442011-06-10 David Li <davidxl@google.com>
3045
3046 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3047 * passes.c (passr_eq): New function.
3048 (create_pass_tab): New function.
3049 (pass_traverse): New function.
3050 (dump_one_pass): New function.
3051 (dump_pass_list): New function.
3052 (dump_passes): New function.
3053
71fb4f92
JH
30542011-06-10 Jan Hubicka <jh@suse.cz>
3055
3056 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3057 setting the nothrow flag.
3058 * ipa-reference.c (propagate): Skip aliases.
3059 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3060 (propagate_nothrow): Skip aliases; do not update cgraph.
3061 (local_pure_const): Do not update cgraph.
3062 * tree-profile.c (tree_profiling): Do fixup_cfg.
3063
41817394
JH
30642011-06-10 Jan Hubicka <jh@suse.cz>
3065
3066 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3067 (cgraph_local_node_p): ... here; handle aliases.
3068 (has_addr_references_p): Break out from ...;
3069 (cgraph_remove_unreachable_nodes) ... here.
3070
fb37c1de
JH
30712011-06-10 Jan Hubicka <jh@suse.cz>
3072
3073 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
3074 * common.opt (flag_inline_functions_called_once): Do not
3075 initialize to 1.
fb37c1de 3076
0818c24c
JH
30772011-06-10 Jan Hubicka <jh@suse.cz>
3078
3079 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
3080 (ipcp_initialize_node_lattices): Do not deal with aliases;
3081 Do not try to propagate through thunks.
0818c24c
JH
3082 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3083
c8246dbe
JH
30842011-06-10 Jan Hubicka <jh@suse.cz>
3085
9ee65b55
UB
3086 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3087 for indirect calls.
c8246dbe
JH
3088 (ipa_read_node_info): Likewise.
3089
d7e2a1c1
BS
30902011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3091
3092 PR lto/49302
3093 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3094 (build_and_insert_call): Likewise.
3095 (build_and_insert_ref): New.
3096 (gimple_expand_builtin_pow): Minor cleanup.
3097 (gimple_expand_builtin_cabs): New.
3098 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 3099
749f25d8
JH
31002011-06-10 Jan Hubicka <jh@suse.cz>
3101
3102 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3103 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3104 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3105 (ipcp_propagate_stage): Skip aliases when propagating.
3106 (ipcp_need_redirect_p): Skip aliases.
3107 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3108 collect_callers_of_node.
3109 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3110 for aliases.
3111 (ipa_compute_jump_functions): Look through aliases.
3112
8340fbd7
RO
31132011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3114
3115 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3116
9aaa7e47
HPN
31172011-06-10 Hans-Peter Nilsson <hp@axis.com>
3118
3119 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3120 Adjust comments.
3121 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3122
f1724940
JH
31232011-06-10 Jan Hubicka <jh@suse.cz>
3124
3125 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3126 Update call of gimple_get_virt_method_for_binfo.
3127 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3128 refuse_thunks parameter.
3129 (gimple_fold_call): Update.
3130 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3131
a6f834c5
JH
31322011-06-10 Jan Hubicka <jh@suse.cz>
3133
3134 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3135 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3136 worker for cgraph_for_node_and_aliases.
3137 (convert_callers_for_node): Break out from ...
3138 (convert_callers): ... here.
3139 (modify_function): Use collect_callers_of_node.
3140 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3141
7871eee3
RG
31422011-06-10 Richard Guenther <rguenther@suse.de>
3143
3144 PR tree-optimization/49361
3145 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3146 when not already in gimple form.
3147
dae957ae
RG
31482011-06-10 Richard Guenther <rguenther@suse.de>
3149
3150 PR bootstrap/49344
3151 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3152 FOR_EACH_PHI_OR_STMT_USE.
3153
a5b1779f
JH
31542011-06-10 Jan Hubicka <jh@suse.cz>
3155
3156 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3157 (clone_inlined_nodes): ... here.
3158 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3159 to real destination prior inlining.
3160 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3161 can_early_inline_edge_p, want_early_inline_function_p,
3162 want_early_inline_function_p, want_inline_small_function_p,
3163 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3164 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3165 add_new_edges_to_heap, inline_small_functions, flatten_function,
3166 inline_always_inline_functions, early_inline_small_functions): Use
3167 cgraph_function_or_thunk_node.
3168 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3169 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3170 (do_estimate_edge_growth_1): Break out from ...
3171 (do_estimate_growth) ... here; walk aliases.
3172 (inline_generate_summary): Skip aliases.
3173
c1ae3ca5
RG
31742011-06-10 Richard Guenther <rguenther@suse.de>
3175
9ee65b55
UB
3176 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3177 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 3178
b504a918
PC
31792011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3180
3181 * tree.h (error_operand_p): Add.
3182 * dbxout.c (dbxout_type_fields): Use the latter.
3183 * c-decl.c (add_stmt): Likewise.
3184 * gimplify.c (omp_add_variable, omp_notice_variable,
3185 gimplify_scan_omp_clauses): Likewise.
3186
3f5ea9dc 31872011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 3188
3f5ea9dc
GJL
3189 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3190 when a value is actually passed in regs.
3191
b11b0904 31922011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 3193 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
3194
3195 * doc/invoke.texi (SPARC options): Add -mflat.
3196 * config/sparc/sparc.opt: Likewise.
3197 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3198 (sparc_flat_expand_prologue): Declare.
3199 (sparc_flat_expand_epilogue): Likewise.
3200 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3201 (CPP_ENDIAN_SPEC): Replace with...
3202 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3203 (CPP_SPEC): Adjust to above change.
3204 (EXTRA_SPECS): Likewise.
3205 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3206 (INCOMING_REGNO): Likewise.
3207 (OUTGOING_REGNO): Likewise.
3208 (LOCAL_REGNO): Likewise.
3209 (SETUP_FRAME_ADDRESSES): Likewise.
3210 (FIXED_REGISTERS): Set 0 for %fp.
3211 (CALL_USED_REGISTERS): Likewise.
3212 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3213 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3214 (RETURN_ADDR_REGNUM): Define.
3215 (RETURN_ADDR_RTX): Use it.
3216 (INCOMING_RETURN_ADDR_REGNUM): Define.
3217 (INCOMING_RETURN_ADDR_RTX): Use it.
3218 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3219 (EH_RETURN_REGNUM): Define.
3220 (EH_RETURN_STACKADJ_RTX): Use it.
3221 (EH_RETURN_HANDLER_RTX): Delete.
3222 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3223 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3224 Delete.
3225 (struct machine_function): Add frame_size, apparent_frame_size,
3226 frame_base_reg, frame_base_offset, n_global_fp_regs and
3227 save_local_in_regs_p fields.
3228 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3229 sparc_frame_base_offset, sparc_n_global_fp_regs,
3230 sparc_save_local_in_regs_p): New macros.
3231 (sparc_option_override): Error out if -fcall-saved-REG is specified
3232 for Out registers.
3233 (eligible_for_restore_insn): Fix formatting.
3234 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3235 (eligible_for_sibcall_delay): Likewise.
3236 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3237 (sparc_legitimate_address_p): Adjust to above change.
3238 (save_global_or_fp_reg_p): New predicate.
3239 (return_addr_reg_needed_p): Likewise.
3240 (save_local_or_in_reg_p): Likewise.
3241 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3242 (SORR_SAVE, SORR_RESTORE): Delete.
3243 (sorr_pred_t): New typedef.
3244 (sorr_act_t): New enum.
3245 (save_or_restore_regs): Rename to...
3246 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3247 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3248 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3249 mechanism. Add CFI information for double-word saves in 32-bit mode.
3250 (emit_adjust_base_to_offset): New function extracted from...
3251 (emit_save_or_restore_regs): ...this. Rename the rest to...
3252 (emit_save_or_restore_regs_global_fp_regs): ...this.
3253 (emit_save_or_restore_regs_local_in_regs): New function.
3254 (gen_create_flat_frame_[123]): New functions.
3255 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3256 (sparc_flat_expand_prologue): New function.
3257 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3258 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3259 (sparc_flat_expand_epilogue): New function.
3260 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3261 (output_return): Likewise.
3262 (output_sibcall): Likewise.
3263 (sparc_output_mi_thunk): Likewise.
3264 (sparc_frame_pointer_required): Likewise.
3265 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3266 function optimization.
3267 * config/sparc/sparc.md (flat): New attribute.
3268 (prologue): Add TARGET_FLAT handling.
3269 (save_register_window): Disable if TARGET_FLAT.
3270 (create_flat_frame_[123]): New patterns.
3271 (epilogue): Add TARGET_FLAT handling.
3272 (sibcall_epilogue): Likewise.
3273 (eh_return): New expander.
3274 (eh_return_internal): New insn and splitter.
3275 (return_internal): Add TARGET_FLAT handling.
3276 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3277 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3278 (nonlocal_goto): Add TARGET_FLAT handling.
3279 * config/sparc/t-elf: Add -mflat multilib.
3280 * config/sparc/t-leon: Likewise.
3281
fede8efa
JH
32822011-06-10 Jan Hubicka <jh@suse.cz>
3283
3284 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3285 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3286 (self_recursive_p): Use cgraph_function_node.
3287 (propagate_pure_const): Likewise.
3288 (propagate_nothrow): Likewise.
3289 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3290 cgraph_function_node.
3291 (propagate_bits): Likewise.
3292 (propagate): Likewise.
3293
0127c76f
RR
32942011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3295 Richard Earnshaw <rearnsha@arm.com>
3296
9ee65b55 3297 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
3298 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3299 (*thumb2_movdi_vfp): Delete.
3300 (*arm_movdi_vfp_cortexa8): Delete.
3301 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3302 (*movdi_vfp_cortexa8): Likewise.
3303
f93fe5a0
RG
33042011-06-10 Richard Guenther <rguenther@suse.de>
3305
3306 * stor-layout.c (initialize_sizetypes): Give names to all
3307 sizetype kinds.
3308
f2164f87
IR
33092011-06-10 Ira Rosen <ira.rosen@linaro.org>
3310
3311 PR tree-optimization/49318
3312 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3313 irrelevant pattern statements.
3314
3f91c962
HPN
33152011-06-10 Hans-Peter Nilsson <hp@axis.com>
3316
3d223145
HPN
3317 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3318
3f91c962
HPN
3319 PR bootstrap/49354
3320 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3321 to last assignment.
3322
b125ad45
JH
33232011-06-09 Jan Hubicka <jh@suse.cz>
3324
3325 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3326 do not recompute reachable flag.
3327 (cgraph_finalize_function, cgraph_analyze_functions): Set
3328 redefined_extern_inline here.
3329
be330ed4
JH
33302011-06-09 Jan Hubicka <jh@suse.cz>
3331
3332 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3333 (cgraph_only_called_directly_p): ... this one; bring offline.
3334 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3335 varpool_used_from_object_file_p): Drop names from the declaratoin.
3336 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3337 collect_callers_of_node): New.
3338 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3339 (cgraph_edge_recursive_p): Use cgraph_function_node.
3340 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3341 (cgraph_node_cannot_be_local_p_1): Break out from ...
3342 (cgraph_node_can_be_local_p): ... here; walk aliases.
3343 (cgraph_for_node_thunks_and_aliases): New function.
3344 (cgraph_for_node_and_aliases): New function.
3345 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
3346 (cgraph_make_node_local) ... here; use
3347 cgraph_for_node_thunks_and_aliases.
be330ed4 3348 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
3349 (cgraph_set_nothrow_flag) ... here;
3350 use cgraph_for_node_thunks_and_aliases.
be330ed4 3351 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
3352 (cgraph_set_const_flag) ... here;
3353 use cgraph_for_node_thunks_and_aliases.
be330ed4 3354 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
3355 (cgraph_set_pure_flag) ... here;
3356 use cgraph_for_node_thunks_and_aliases.
be330ed4 3357 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
3358 (cgraph_propagate_frequency) ... here; use
3359 cgraph_for_node_thunks_and_aliases.
be330ed4 3360 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
3361 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3362 New functions.
be330ed4
JH
3363 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3364
2ea91d6b
HPN
33652011-06-10 Hans-Peter Nilsson <hp@axis.com>
3366
3367 PR rtl-optimization/49154
3368 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3369 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3370 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3371 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3372 * config/cris/cris.h (cris_register_move_cost): Remove
3373 !TARGET_V32 code. Tweak comments.
3374
9cf4fb5a
JH
33752011-06-09 Jan Hubicka <jh@suse.cz>
3376
3377 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3378 address taken.
3379
6049a4c8
HPN
33802011-06-10 Hans-Peter Nilsson <hp@axis.com>
3381
c577822e 3382 PR rtl-optimization/49154
9ee65b55
UB
3383 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3384 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 3385
54e1e4f7 3386 PR rtl-optimization/49154
6049a4c8
HPN
3387 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3388 register classes.
3389 * doc/tm.texi: Regenerate.
3390
3be68b64
KK
33912011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3392
3393 PR target/49307
3394 * config/sh/sh.md (UNSPEC_CHKADD): New.
3395 (chk_guard_add): New define_insn_and_split.
3396 (symGOT_load): Use chk_guard_add instead of blockage.
3397
bf806a90
KT
33982011-06-09 Kai Tietz <ktietz@redhat.com>
3399
3400 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3401
d5a9738b
EB
34022011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3403
3404 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3405
527e82c2
WG
34062011-06-09 Wei Guozhi <carrot@google.com>
3407
3408 PR target/46975
3409 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3410 (peephole2 for conditional move): Generate 16 bit instructions.
3411
b8bc3a43
UB
34122011-06-09 Uros Bizjak <ubizjak@gmail.com>
3413
3414 * config/i386/i386.md (*movdi_internal_rex64): Merge
3415 alternatives 6 and 8.
3416
4745da6e
DL
34172011-06-09 David Li <davidxl@google.com>
3418
3419 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3420 * passes.c (passr_eq): New function.
3421 (create_pass_tab): New function.
3422 (pass_traverse): New function.
3423 (dump_one_pass): New function.
3424 (dump_pass_list): New function.
3425 (dump_passes): New function.
3426
bdf67bcb
DL
34272011-06-09 David Li <davidxl@google.com>
3428
3429 * tree-complex.c (tree_lower_complex): Gate cleanup.
3430 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3431 (execute_optimize_stdarg): Ditto.
3432 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3433 (execute_cleanup_eh_1): Ditto.
3434 (execute_cleanup_eh): Ditto.
3435 * gcse.c (gate_rtl_pre): Ditto.
3436 (execute_rtl_pre): Ditto.
3437 * except.c (finish_eh_generation): Ditto.
3438 (convert_to_eh_region_ranges): Ditto.
3439 * cprop.c (one_cprop_pass): Ditto.
3440
547fdef8
BS
34412011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3442
3443 PR target/48673
3444 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3445 in all basic blocks.
3446
10e48e39
RO
34472011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3448
3449 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3450 (HAVE_ENABLE_EXECUTE_STACK): Define.
3451 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3452 (HAVE_ENABLE_EXECUTE_STACK): Define.
3453 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3454 (HAVE_ENABLE_EXECUTE_STACK): Define.
3455 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3456 (ENABLE_EXECUTE_STACK): Remove.
3457 (HAVE_ENABLE_EXECUTE_STACK): Define.
3458 [IN_LIBGCC2]: Don't include <windows.h>.
3459 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3460 (HAVE_ENABLE_EXECUTE_STACK): Define.
3461 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3462 (HAVE_ENABLE_EXECUTE_STACK): Define.
3463 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3464 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3465 (HAVE_ENABLE_EXECUTE_STACK): Define.
3466 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3467 (HAVE_ENABLE_EXECUTE_STACK): Define.
3468 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3469 (HAVE_ENABLE_EXECUTE_STACK): Define.
3470 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3471 (HAVE_ENABLE_EXECUTE_STACK): Define.
3472 * config/alpha/alpha.c (alpha_trampoline_init): Test
3473 HAVE_ENABLE_EXECUTE_STACK.
3474 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3475 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3476 (sparc64_initialize_trampoline): Likewise.
3477 * libgcc2.c [L_enable_execute_stack]: Remove.
3478 * system.h (ENABLE_EXECUTE_STACK): Poison.
3479 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3480 * doc/tm.texi: Regenerate.
3481 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3482
8ced31fe
JJ
34832011-06-09 Jakub Jelinek <jakub@redhat.com>
3484
3485 PR middle-end/49308
3486 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3487 variable. After resetting and rescanning insn continue with previous
3488 statement.
3489
ee610fcd
RO
34902011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3491
3492 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3493 (gcc_cv_ld_hidden): Likewise.
3494 * configure: Regenerate.
3495 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3496 (ix86_stack_protect_fail): Mark unused.
3497 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3498 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3499 [TARGET_MACHO]: Don't define.
3500 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3501 (TARGET_STACK_PROTECT_FAIL): Likewise.
3502 (rs6000_stack_protect_fail): Mark unused.
3503 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 3504 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 3505
8f2e22ff
AK
35062011-06-08 Andi Kleen <ak@linux.intel.com>
3507
3508 * varasm.c (get_section): Print location of other conflict
3509 for section conflicts.
3510
815cecbe
AK
35112011-06-08 Andi Kleen <ak@linux.intel.com>
3512
3513 * config/i386/driver-i386.c (host_detect_local_cpu):
3514 Add model 0x2d Intel CPU.
3515
1460ec5c
AK
35162011-06-08 Andi Kleen <ak@linux.intel.com>
3517
3518 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
3519 (globalize_reg): Add decl parameter. Compute location. Pass location
3520 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
3521 * rtl.h (globalize_reg): Update prototype.
3522 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3523
df17530a
MX
35242011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3525
3526 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3527
409fed48
KK
35282011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3529
3530 PR target/49305
3531 * config/sh/predicates.md (general_movsrc_operand): Check
3532 mode for memory with indexed address for QI and HImode.
3533 (general_movdst_operand): Likewise.
3534
87c16a45
NP
35352011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3536
b8bc3a43 3537 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 3538
49931fcb
AO
35392011-06-08 Alexandre Oliva <aoliva@redhat.com>
3540
3541 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3542 (num_ssa_operands): Likewise.
3543 (op_iter_init_phiuse): Forward-declare.
3544 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3545
29494d1f
NC
35462011-06-08 Nick Clifton <nickc@redhat.com>
3547
3548 * doc/invoke.texi (ARM Options): Update description of
3549 -mthumb-interwork.
3550
4ffae7ff
L
35512011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3552
3553 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3554 unknown Intel family 0x6 CPUs.
3555
d9c77712
MJ
35562011-06-08 Martin Jambor <mjambor@suse.cz>
3557
3558 * tree-sra.c (mark_rw_status): Removed.
3559 (analyze_access_subtree): New parameter parent instead of
3560 mark_read and mark_write, propagate from that.
3561
b1def36c
JB
35622011-06-08 Julian Brown <julian@codesourcery.com>
3563
3564 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3565 for double-precision helper functions in hard-float mode if only
3566 single-precision arithmetic is supported in hardware.
3567
6c8e9fc9
AM
35682011-06-08 Alexander Monakov <amonakov@ispras.ru>
3569
3570 PR rtl-optimization/49303
3571 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3572 code_motion_path_driver returned 0 or 1.
3573 (sel_region_finish): Clear h_d_i_d.
3574
c2bbcb0d
KK
35752011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3576
3577 * config/sh/sh.c (prepare_move_operands): Set pic register
3578 appropriately for global and local dynamic tls models even
3579 if flag_pic is unset.
3580
6976ae51
JM
35812011-06-07 Jason Merrill <jason@redhat.com>
3582
3583 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3584
bb5b1f5e
XDL
35852011-06-07 Xinliang David Li <davidxl@google.com>
3586 * passes.c (enable_disable_pass): Handle assembler name.
3587 (is_pass_explicitly_enabled_or_disabled): Ditto.
3588
91ffe356
RO
35892011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3590
3591 PR tree-optimization/48497
3592 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3593
06bc3ec7
BS
35942011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3595
3596 PR tree-optimization/46728
3597 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3598 to use gimple_val_nonnegative_real_p.
3599 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3600 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 3601
c074d740
L
36022011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3603
3604 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3605
8973b112
SG
36062011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3607
3608 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3609 constant vectors.
3610
67b88453
RG
36112011-06-07 Richard Guenther <rguenther@suse.de>
3612
3613 * stor-layout.c (initialize_sizetypes): Initialize all
3614 sizetypes based on target definitions.
3615 (set_sizetype): Remove.
3616 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3617 * tree.h (set_sizetype): Remove.
3618
1dcad079
NC
36192011-06-07 Nick Clifton <nickc@redhat.com>
3620
3621 * config.gcc: Unify V850 architecture options and add support for
3622 newer V850 architectures.
3623 * config/v850/t-v850e: Delete.
3624
009db074
RG
36252011-06-07 Richard Guenther <rguenther@suse.de>
3626
3627 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3628 Call set_sizetype from here.
3629
f373314f
AS
36302011-06-07 Andrew Stubbs <ams@codesourcery.com>
3631
3632 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3633 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3634
c536876e
AS
36352011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3636 Andrew Stubbs <ams@codesourcery.com>
3637
3638 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3639 multiplies.
3640 * doc/md.texi (Canonicalization of Instructions): Document widening
3641 multiply canonicalization.
3642
308dc890
JJ
36432011-06-07 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR gcov-profile/49299
b8bc3a43 3646 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 3647
383d9c83
IR
36482011-06-07 Ira Rosen <ira.rosen@linaro.org>
3649
3650 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3651 a pointer.
3652 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3653 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3654 vect_recog_pow_pattern): Likewise.
3655 (vect_pattern_recog_1): Remove declaration.
3656 (widened_name_p): Remove declaration. Add new argument to specify
3657 whether to check that both types are either signed or unsigned.
3658 (vect_recog_widen_mult_pattern): Update documentation. Handle
3659 unsigned patterns and multiplication by constants.
3660 (vect_pattern_recog_1): Update vect_recog_func references. Use
3661 statement information from the statement returned from pattern
3662 detection functions.
3663 (vect_pattern_recog): Update vect_recog_func reference.
3664 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3665 multiplication by a constant use the type of the other operand.
3666
4de4b0f2
RS
36672011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3668
3669 PR rtl-optimization/49145
3670 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3671
a9d24544
JJ
36722011-06-06 Jakub Jelinek <jakub@redhat.com>
3673
99a5e049
JJ
3674 PR debug/49262
3675 * dwarf2out.c (native_encode_initializer): Decrement count in each
3676 iteration.
3677
04902d4c
JJ
3678 PR debug/49294
3679 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3680 non-MODE_INT modes.
3681
a9d24544
JJ
3682 PR c++/49264
3683 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3684 if stmt folded into nothing.
b8bc3a43
UB
3685 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3686 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
3687 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3688 to be NULL. Don't compute count and frequency if new_call is NULL.
3689
47c79d56
DN
36902011-06-04 Diego Novillo <dnovillo@google.com>
3691
3692 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3693 (cgraph.o): Likewise.
3694 (cgraphunit.o): Likewise.
3695 * cgraphunit.c: Include lto-streamer.h
3696 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3697 if LTO is enabled.
3698 * lto-streamer-in.c (unpack_value_fields): Call
3699 streamer_hooks.unpack_value_fields if set.
3700 (lto_materialize_tree): For unhandled nodes, first try to
3701 call lto_streamer_hooks.alloc_tree, if it exists.
3702 (lto_input_ts_decl_common_tree_pointers): Move reading of
3703 DECL_INITIAL to lto_streamer_read_tree.
3704 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3705 (lto_streamer_read_tree): New.
3706 (lto_reader_init): Rename from lto_init_reader.
3707 Move initialization code to lto/lto.c.
3708 * lto-streamer-out.c (pack_value_fields): Call
3709 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
3710 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3711 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 3712 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
3713 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3714 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3715 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3716 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
3717 (lto_streamer_write_tree): New.
3718 (lto_output): Call lto_streamer_init directly.
3719 (lto_writer_init): Remove.
3720 * lto-streamer.c (streamer_hooks): New.
3721 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3722 instead of lto_preload_common_nodes.
3723 (lto_is_streamable): Move from lto-streamer.h
3724 (lto_streamer_hooks_init): New.
3725 (streamer_hooks): New.
3726 (streamer_hooks_init): New.
3727 * lto-streamer.h (struct output_block): Forward declare.
3728 (struct lto_input_block): Likewise.
3729 (struct data_in): Likewise.
3730 (struct bitpack_d): Likewise.
3731 (struct streamer_hooks): Declare.
3732 (streamer_hooks): Declare.
3733 (lto_streamer_hooks_init): Declare.
3734 (lto_streamer_write_tree): Declare.
3735 (lto_streamer_read_tree): Declare.
3736 (streamer_hooks_init): Declare.
3737 (lto_is_streamable): Move to lto-streamer.c
3738
22afe143
AK
37392011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3740
3741 * longlong.h (smul_ppmm): The resulting register pair contains the
3742 higher order word first.
3743
3906ea1b
BS
37442011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3745
3746 PR tree-optimization/46728
3747 * builtins.c (powi_table): Remove.
3748 (powi_lookup_cost): Remove.
3749 (powi_cost): Remove.
3750 (expand_powi_1): Remove.
3751 (expand_powi): Remove.
3752 (expand_builtin_pow_root): Remove.
3753 (expand_builtin_pow): Remove.
3754 (expand_builtin_powi): Eliminate handling of constant exponent.
3755 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 3756
3598cabd
AO
37572011-06-06 Alexandre Oliva <aoliva@redhat.com>
3758
3759 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3760
a7a110bb
AO
37612011-06-06 Alexandre Oliva <aoliva@redhat.com>
3762
3763 * dce.c (reset_unmarked_insns_debug_uses): New.
3764 (delete_unmarked_insns): Skip debug insns.
3765 (prescan_insns_for_dce): Likewise.
3766 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3767 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3768 active reg can be found.
3769 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3770 (convert_regs_1): Use it.
3771
6d8402ac
AO
37722011-06-06 Alexandre Oliva <aoliva@redhat.com>
3773
3774 * tree-pretty-print.c (dump_function_header): Add flags.
3775 Don't dump decl_uid with nouid.
3776 * tree-pretty-print.h (dump_function_header): Adjust.
3777 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3778 * passes.c (pass_init_dump_file): Pass dump_flags on.
3779 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3780
f75e1f1e
AO
37812011-06-06 Alexandre Oliva <aoliva@redhat.com>
3782
3783 PR bootstrap/49270
3784 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3785
275311c4
MP
37862011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3787
3788 PR tree-optimization/49243
3789 * calls.c (setjmp_call_p): Also check if fndecl has the
3790 returns_twice attribute.
3791
aa4203e7
RO
37922011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3793
3794 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3795 -ffast-math etc.
3796
48f9d59a
RH
37972011-06-06 Richard Henderson <rth@redhat.com>
3798 Georg-Johann Lay <avr@gjlay.de>
3799
3800 PR target/42210
3801 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3802 New predicates.
3803 * config/avr/avr.md ("insv"): New insn expander.
3804 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3805 "*insv.not.io", "*insv.reg"): New insns.
3806
11494830
HPN
38072011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3808
3809 PR target/49285
b8bc3a43
UB
3810 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3811 to nonimmediate_operand from memory_operand for the operand that is to
3812 be forced to memory by the expander. Lose the constraints.
11494830 3813
679e70df
EB
38142011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3815
3816 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3817 EH return when delayed branches are disabled.
3818
4d3d7f15
UB
38192011-06-05 Uros Bizjak <ubizjak@gmail.com>
3820
3821 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3822 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3823 calculation.
3824 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3825 Simplify MODE_V1DF and MODE_V2SF handling.
3826 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3827 Simplify MODE_SF handling.
3828
a45c0557
JH
38292011-06-04 Jan Hubicka <jh@suse.cz>
3830
3831 PR tree-optimization/48893
3832 PR tree-optimization/49091
3833 PR tree-optimization/49179
3834 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3835 Bounds check.
3836
26740835
JH
38372011-06-04 Jan Hubicka <jh@suse.cz>
3838
3839 PR lto/48954
b8bc3a43
UB
3840 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3841 bitmaps.
26740835 3842
014ab419
JW
38432011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3844
3845 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3846
407bcba7
JJ
38472011-06-04 Jakub Jelinek <jakub@redhat.com>
3848
3849 PR target/49281
3850 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3851 to be strictly smaller than 1 << shiftcount.
3852
e3195c52
JH
38532011-06-04 Jan Hubicka <jh@suse.cz>
3854
3855 PR tree-optimize/48929
3856 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3857 of empty predicate.
3858
047d33a0
AO
38592011-06-04 Alexandre Oliva <aoliva@redhat.com>
3860
3861 PR debug/48333
3862 * calls.c (emit_call_1): Prefer the __builtin declaration of
3863 builtin functions.
3864
dc587809
DN
38652011-06-03 Diego Novillo <dnovillo@google.com>
3866
3867 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3868 (lto_input_tree_pointers): Likewise.
3869 * lto-streamer-out.c (pack_value_fields): Likewise.
3870 (lto_output_tree_pointers): Likewise.
3871 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3872 and OPTIMIZATION_NODE.
3873
58cd1d70
RO
38742011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3875
3876 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3877 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3878 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3879 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3880 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3881 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3882 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3883 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3884 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3885 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3886 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3887 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3888 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3889 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3890 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3891 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3892 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3893 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3894 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3895 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3896 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3897 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3898 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3899 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3900 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3901 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3902 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3903 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3904 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3905 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3906 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3907 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3908 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3909 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3910 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3911 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3912 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3913 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3914 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3915 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3916 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3917 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3918 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3919 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3920 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3921 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3922 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3923 * system.h (MD_UNWIND_SUPPORT): Poison.
3924 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3925 * doc/tm.texi: Regenerate.
3926 * unwind-dw2.c: Include md-unwind-support.h instead of
3927 MD_UNWIND_SUPPORT.
3928 * config/ia64/unwind-ia64.c: Likewise.
3929 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3930
10c63ba4 39312011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
3932
3933 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3934
1b7a0148
RH
39352011-06-03 Richard Henderson <rth@redhat.com>
3936 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3937
3938 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3939 (sigill_hdlr): Correct insn, insn size.
3940 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3941
737346fa
RO
39422011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3943
3944 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3945 t-slibgcc-dummy.
3946 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3947 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3948 * config/mips/t-iris: Remove.
3949 * config/mips/t-irix6: New file.
3950 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3951
c192cee6
RO
39522011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3953
3954 * Makefile.in (LIB2ADDEHDEP): Remove.
3955 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3956 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3957 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3958 * config/t-darwin (LIB2ADDEHDEP): Remove.
3959 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3960 * config/t-linux (LIB2ADDEHDEP): Remove.
3961
d5828cc7
DN
39622011-06-03 Diego Novillo <dnovillo@google.com>
3963
3964 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3965 (lto_register_var_decl_in_symtab): Likewise.
3966 (lto_register_function_decl_in_symtab): Likewise.
3967 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 3968 logic to uniquify_nodes.
d5828cc7 3969
ee33b5f0
RO
39702011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3971
3972 * config/alpha/t-osf5: Remove.
3973 * config/alpha/t-osf-pthread: Remove.
3974 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3975 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3976
16868d84
JB
39772011-06-03 Julian Brown <julian@codesourcery.com>
3978
3979 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3980 (strongarm1110): Use strongarm tuning.
4d3d7f15 3981 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
3982 * config/arm/arm.c (arm_strongarm_tune): New.
3983 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3984 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3985 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3986 setting, using previous defaults or 1 for Cortex-A5.
3987 (arm_option_override): Set max_insns_skipped from current tuning.
3988
1cec1285
NS
39892011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3990
3991 * doc/install.texi (Options specification): Document --with-specs.
3992
eed55426
RR
39932011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3994
3995 * config/arm/neon.md (orndi3_neon): Actually split it.
3996
d5b6cc25
AO
39972011-06-02 Alexandre Oliva <aoliva@redhat.com>
3998
3999 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4000 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4001
2ba42841
AO
40022011-06-02 Alexandre Oliva <aoliva@redhat.com>
4003
4004 PR debug/47590
4005 * target.def (delay_sched2, delay_vartrack): New.
4006 * doc/tm.texi.in: Update.
4007 * doc/tm.texi: Rebuild.
4008 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4009 * var-tracking.c (gate_handle_var_tracking): Likewise.
4010 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4011 (bfin_flag_var_tracking): Drop.
4012 (output_file_start): Don't save and override flag_var_tracking.
4013 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4014 (bfin_reorg): Test original variables.
4015 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4016 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4017 (ia64_flag_var_tracking): Drop.
4018 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4019 (ia64_file_start): Don't save and override flag_var_tracking.
4020 (ia64_override_options_after_change): Ditto
4021 flag_schedule_insns_after_reload.
4022 (ia64_reorg): Test original variables.
4023 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4024 (picochip_flag_var_tracking): Drop.
4025 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4026 (picochip_option_override): Don't save and override
4027 flag_schedule_insns_after_reload.
4028 (picochip_asm_file_start): Ditto flag_var_tracking.
4029 (picochip_reorg): Test original variables.
4030 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4031 (TARGET_DELAY_VARTRACK): Define.
4032 (spu_var_tracking): New.
4033 (spu_machine_dependent_reorg): Call it.
4034 (asm_file_start): Don't save and override flag_var_tracking.
4035
a700b5f0
KK
40362011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4037
4038 PR target/49163
4039 * config/sh/predicates.md (general_movsrc_operand): Return 0
4040 for memory and memory subreg of which address is an invalid
4041 indexed address for QI and HImode.
4042 (general_movdst_operand): Likewise.
4043
76015c34
EB
40442011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4045
4046 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4047 edges only, when there is a non-local label in the function.
4048 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4049
4e76acd2
UB
40502011-06-02 Uros Bizjak <ubizjak@gmail.com>
4051
4052 * config/i386/constraints.md (Y3): New register constraint.
4053 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4054 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4055 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4056 *sse2_interleave_lowv2df.
4057
288f605f
JB
40582011-06-02 Julian Brown <julian@codesourcery.com>
4059
4060 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4061 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4062 (arm_cortex_a5_tune): New.
4063
7ec70105
JB
40642011-06-02 Julian Brown <julian@codesourcery.com>
4065
153668ec
JB
4066 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4067 * config/arm/arm.c (arm_default_branch_cost): New.
4068 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4069 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4070 (arm_fa726_tune): Set branch_cost field using
4071 arm_default_branch_cost.
4072 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4073 current_tune structure.
4074 * dojump.c (tm_p.h): Include file.
4075
40762011-06-02 Julian Brown <julian@codesourcery.com>
4077
4078 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4079 tuning.
7ec70105
JB
4080 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4081 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4082 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4083 field.
4084 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4085 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4086 (arm_fa726te_tune): Add prefer_constant_pool setting.
4087 (arm_v6t2_tune, arm_cortex_tune): New.
4088 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4089 prefer_constant_pool setting.
4090
aad61732
UB
40912011-06-02 Uros Bizjak <ubizjak@gmail.com>
4092
4e76acd2
UB
4093 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4094 switch statement.
aad61732
UB
4095 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4096 (*movdf_internal) <case 6,7,8>: Ditto.
4097
4e76acd2 4098 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
4099 * config/i386/sse.md (vec_set<mode>_0): Merge with
4100 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4101 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4102 *vec_extractv2di_1_sse.
4103 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4104 and *vec_concatv2di_rex64_sse.
4105
6e588138
SH
41062011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4107
4108 PR target/48807
4109 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4110 of cgraph_local_info for null before attempting to use it.
4111
bc6d3f91
EB
41122011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4113
4114 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4115 (current_function_dynamic_alloc_count): Delete.
4116 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4117 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4118 (expand_builtin_update_setjmp_buf): Remove dead code.
4119 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4120 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4121 support.
4122 * function.c (instantiate_virtual_regs): Likewise.
4123 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4124 for a block with a single abnormal incoming edge.
4125 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 4126 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
4127 * config/sparc/sparc-protos.h (load_got_register): Declare.
4128 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4129 (load_got_register): Make global.
4130 (sparc_frame_pointer_required): Add 'static'.
4131 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4132 (sparc_builtin_setjmp_frame_value): New function.
4133 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4134 (save_stack_nonlocal): New expander.
4135 (restore_stack_nonlocal): Likewise.
4136 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4137 (nonlocal_goto_internal): New insn.
4138 (goto_handler_and_restore): Delete.
4139 (builtin_setjmp_setup): Likewise.
4140 (do_builtin_setjmp_setup): Likewise.
4141 (setjmp): Likewise.
4142 (builtin_setjmp_receiver): New expander.
4143
69282fee
DL
41442011-06-01 David Li <davidxl@google.com>
4145
4146 PR middle-end/49261
4147 * tree-pretty-print.c (dump_function_header): Format cleanup.
4148
e95873dd
KK
41492011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4150
4151 PR target/49238
4152 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4153 needed when original operands are used for msw_skip comparison.
4154
88c15821
JJ
41552011-06-01 Jakub Jelinek <jakub@redhat.com>
4156
4157 PR debug/49250
4158 * var-tracking.c (add_uses, add_stores): Don't call
4159 cselib_subst_to_values on ENTRY_VALUE.
4160
07233947
DN
41612011-06-01 Diego Novillo <dnovillo@google.com>
4162
4163 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4164 output_record_start with LTO_null instead of output_zero.
4165 (lto_output_ts_binfo_tree_pointers): Likewise.
4166 (lto_output_tree): Likewise.
4167 (output_eh_try_list): Likewise.
4168 (output_eh_region): Likewise.
4169 (output_eh_lp): Likewise.
4170 (output_eh_regions): Likewise.
4171 (output_bb): Likewise.
4172 (output_function): Likewise.
4173 (output_unreferenced_globals): Likewise.
4174 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4175 instead of NUM_TREE_CODES.
4176 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4177 (lto_output_int_in_range): Change << to >> when shifting VAL.
4178
4ee3537a
DN
41792011-06-01 Diego Novillo <dnovillo@google.com>
4180
4181 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4182 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4183
02972eaf
RS
41842011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4185
4186 PR target/45074
4187 * optabs.h (valid_multiword_target_p): Declare.
4188 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4189 doing multi-word operations.
4190 * optabs.c (expand_binop): Likewise.
4191 (expand_doubleword_bswap): Likewise.
4192 (expand_absneg_bit): Likewise.
4193 (expand_unop): Likewise.
4194 (expand_copysign_bit): Likewise.
4195 (multiword_target_p): New function.
4196
4d41c2d1
RS
41972011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4198
4199 PR rtl-optimization/48830
4200 PR rtl-optimization/48808
4201 PR rtl-optimization/48792
4202 * reload.c (push_reload): Check contains_reg_of_mode.
4203 * reload1.c (strip_paradoxical_subreg): New function.
4204 (gen_reload_chain_without_interm_reg_p): Use it to handle
4205 paradoxical subregs.
4206 (emit_output_reload_insns, gen_reload): Likewise.
4207
5f57dccb
DL
42082011-06-01 David Li <davidxl@google.com>
4209
4210 * predict.c : Change pass name
4211 * ipa.c: Ditto.
4212 * dce.c: Ditto.
4213 * tree-profile.c: Ditto.
4214 * except.c: Ditto.
4215
ea6cf778
DL
42162011-06-01 David Li <davidxl@google.com>
4217
4218 * tree-pretty-print.c (dump_function_header): New function.
4219 * final.c (rest_of_clean_state): Use header dumper.
4220 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4221 * passes.c (pass_init_dump_file): Use header dumper.
4222
ebdc0d4b
JJ
42232011-06-01 Jakub Jelinek <jakub@redhat.com>
4224
eeeb9b49
JJ
4225 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4226 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4227 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4228 New functions.
4229 (mem_loc_descriptor): Use them.
4230
ebdc0d4b
JJ
4231 * var-tracking.c (create_entry_value): New function.
4232 (vt_add_function_parameter): Use it.
4233
0699e415
RO
42342011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4235
4236 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4237 Include <signal.h>, <ucontext.h>.
4238 (sigill_caught): Define.
4239 (sigill_hdlr): New function.
4240 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4241 insns can be executed.
aad61732 4242 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
4243 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4244
ca24c5ad
RO
42452011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4246
4247 * config/t-slibgcc-darwin: Move to ...
aad61732 4248 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
4249 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4250 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4251 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 4252 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
4253 Remove i386/t-crtstuff from tmake_file.
4254 (i[34567]86-*-solaris2*): Remove t-svr4,
4255 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4256 t-slibgcc-dummy.
4257 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4258 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4259 sparc/t-crtfm from tmake_file.
4260 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4261 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4262 Remove extra_parts.
4263 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4264 * config/i386/t-nwld (SHLIB_LINK): Remove.
4265 * config/i386/t-rtems-i386: Rename to ...
4266 * config/i386/t-rtems: ... this.
4267 ($(T)crti.o, $(T)crtn.o): Remove.
4268 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4269 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4270 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4271 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4272 EXTRA_MULTILIB_PARTS): Remove.
4273 * config/sparc/t-sol2-64: Likewise.
4274 * config/sparc/t-sol2: Remove.
4275 * config/sparc/t-crtin: Remove.
4276 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4277 * config/i386/gmon-sol2.c: Remove.
4278 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4279 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4280 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4281 * config/i386/sol2-gc1.asm: Remove.
4282 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4283 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4284 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4285 * config/t-slibgcc-sld: Remove.
4286
a78d13c3
JJ
42872011-06-01 Jakub Jelinek <jakub@redhat.com>
4288
4289 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4290 base_type_for_mode with op_mode instead of mode.
4291
572070ef
PB
42922011-06-01 Paul Brook <paul@cpodesourcery.com>
4293
4294 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4295 Cortex-A15.
4296 * config/arm/arm-tune.md: Regenerate.
4297 * config/arm/arm-tables.opt: Regenerate.
4298 * config/arm/arm.c (FL_DIV): Rename...
4299 (FL_THUMB_DIV): ... to this.
4300 (FL_ARM_DIV): Define.
4301 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4302 (arm_arch_hwdiv): Remove.
4303 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4304 (arm_issue_rate): Add cortexr5.
4305 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4306 __ARM_ARCH_EXT_IDIV__.
4307 (TARGET_IDIV): Define.
4308 (arm_arch_hwdiv): Remove.
4309 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4310 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4311 (divsi3, udivsi3): New patterns.
4312 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4313 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4314
11026b51
MJ
43152011-06-01 Martin Jambor <mjambor@suse.cz>
4316
4317 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4318 * ipa-utils.c (searchc): Set scc_no.
4319
b6156cf2
MJ
43202011-06-01 Martin Jambor <mjambor@suse.cz>
4321
4322 * ipa-utils.c (searchc_env): New field allow_overwritable.
4323 (searchc): do not ignore edges to overwritable nodes if indicated
4324 by env->allow_overwritable.
4325 (ipa_reduced_postorder): Set env.allow_overwritable.
4326
6807da97
RG
43272011-06-01 Richard Guenther <rguenther@suse.de>
4328
4329 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4330 char_type_node.
4331 * lto-streamer.c (lto_record_common_node): Take node pointer,
4332 do not register types.
4333 (lto_preload_common_nodes): Explicitly skip preloading nodes
4334 that differ between frontends.
4335
66bd20e7 43362011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
4337
4338 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4339 NON_FLOAT_REGS.
4340
66bd20e7 43412011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
4342
4343 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4344 parameter value for dump. Dump cost on outermost call only.
4345 (rs6000_memory_move_cost): Dump cost on outermost call only.
4346
7351d8da
JJ
43472011-05-31 Jakub Jelinek <jakub@redhat.com>
4348
ead7c399
JJ
4349 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4350 DW_OP_GNU_convert ops.
4351
509f4495
JJ
4352 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4353 cselib_preserve_constants.
4354 (cselib_lookup_1): If cselib_preserve_constants,
4355 a new VALUE is being created for REG and there is a VALUE for the
4356 same register in wider mode, add another loc with lowpart SUBREG of
4357 the wider VALUE.
4358 (cselib_subst_to_values): Handle ENTRY_VALUE.
4359 * var-tracking.c (replace_expr_with_values): Return NULL for
4360 ENTRY_VALUE too.
4361 * dwarf2out.c (convert_descriptor_to_signed): New function.
4362 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4363 instead of two shifts.
4364 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4365 the right mode if needed.
4366 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4367 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4368 convert_descriptor_to_signed.
4369 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4370 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4371
7351d8da
JJ
4372 PR target/48688
4373 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4374
5cc93ee0
UB
43752011-05-31 Uros Bizjak <ubizjak@gmail.com>
4376
4377 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4378 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4379 (SWI248x): New mode iterator, rename from X87MODEI.
4380 (X87MODEI): Remove mode iterator.
4381 (X87MODEI12): Ditto.
4382 (SSEMODEI24): Ditto.
4383
f0686e78
AO
43842011-05-31 Alexandre Oliva <aoliva@redhat.com>
4385
4386 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4387 * doc/invoke.texi: Document max-vartrack-expr-depth.
4388 * var-tracking.c (EXPR_DEPTH): New.
4389 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4390
f3308413
AO
43912011-05-31 Alexandre Oliva <aoliva@redhat.com>
4392
4393 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4394 * config/i386/sse.md: Add n to negated FMA pattern names.
4395
28c14a04
AO
43962011-05-31 Alexandre Oliva <aoliva@redhat.com>
4397
4398 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4399
70efc82d
AO
44002011-05-31 Alexandre Oliva <aoliva@redhat.com>
4401
5cc93ee0 4402 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 4403
6ba5d856
UB
44042011-05-31 Uros Bizjak <ubizjak@gmail.com>
4405
4406 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4407 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4408
44092011-05-31 Uros Bizjak <ubizjak@gmail.com>
4410
4411 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4412 registers. Penalize F*r->o alternative to prevent partial memory
4413 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4414 CONST_DOUBLE immediates when optimizing function for size. Do not move
4415 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4416 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4417 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4418 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4419 alternatives.
4420 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4421
4422 (fp_register_operand splitters): Use fp_register_operand
4423 constraint. Do not use FP_REG_P in insn condition.
4424 (any_fp_register_operand splitters): Use any_fp_register_operand
4425 constraint. Do not use ANY_FP_REG_P in insn condition.
4426
533c07c5
JH
44272011-05-31 Jan Hubicka <jh@suse.cz>
4428
4429 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4430 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4431 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4432 (lto_output_edge): Use output_enum and var_len_unsigned.
4433 (lto_output_varpool_node): Likewise.
4434 (input_overwrite_node): Do not take resolution parameter;
4435 extract it from a bitpack.
4436 (input_node): Do not read resolution; use input_enum and
4437 var_len_unsigned.
4438 (input_varpool_node): Likewise.
4439 (input_edge): Likewise.
4440 (input_cgraph_1): Likewise.
4441
2611db71
RG
44422011-05-31 Richard Guenther <rguenther@suse.de>
4443
4444 * gimple.c (gimple_register_canonical_type): Do not register
4445 any types via gimple_register_type.
4446
b9e57365
JH
44472011-05-31 Jan Hubicka <jh@suse.cz>
4448
4449 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4450 of thunks.
4451
35979cc2
JJ
44522011-05-31 Jakub Jelinek <jakub@redhat.com>
4453
4454 PR rtl-optimization/49235
4455 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4456 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4457
8f7de592
IR
44582011-05-31 Ira Rosen <ira.rosen@linaro.org>
4459
4460 PR tree-optimization/49093
4461 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4462 data references.
4463
8d8a3bda
DS
44642011-05-31 Dodji Seketeli <dodji@redhat.com>
4465
4466 PR debug/49047
4467 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 4468 for concrete functions containing the code of cloned functions.
8d8a3bda 4469
2e87621c
RG
44702011-05-31 Richard Guenther <rguenther@suse.de>
4471
4472 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4473 to ...
4474 (forward_propagate_into_comparison_1): ... this.
4475 (forward_propagate_comparison): Rename to ...
4476 (forward_propagate_into_comparison): ... this. Split out
4477 real forward propagation code to ...
4478 (forward_propagate_comparison): ... this.
4479 (forward_propagate_into_gimple_cond): Remove looping.
4480 (forward_propagate_into_cond): Likewise.
4481 (simplify_not_neg_expr): Return whether we have done something.
4482 (simplify_gimple_switch): Likewise.
4483 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4484 (ssa_forward_propagate_and_combine): ... this. Re-structure
4485 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 4486 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
4487 (pass_forwprop): Adjust.
4488
5a880d5d
ILT
44892011-05-30 Ian Lance Taylor <iant@google.com>
4490
4491 * godump.c (go_format_type): Correct length of name added to
4492 obstack for anonymous field.
4493
5f133038
KK
44942011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4495
4496 PR target/49186
4497 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4498 part of the second operand is 0.
4499
b17d5426
UB
45002011-05-30 Uros Bizjak <ubizjak@gmail.com>
4501
4502 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4503 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4504 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4505 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 4506 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
4507 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4508 when optimizing function for size. Do not move CONST_DOUBLEs
4509 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
4510 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4511 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
4512 check for ANY_FP_REGNO_P instead.
4513 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4514 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4515 function for speed.
4516 * config/i386/i386.c (ix86_option_override_internal): Do not
4517 set TARGET_INTEGER_DFMODE_MOVES here.
4518
a0cd843f
L
45192011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4520
4521 PR target/49168
aad61732 4522 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 4523
006a5f38
JJ
45242011-05-30 Jakub Jelinek <jakub@redhat.com>
4525
4526 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4527 DW_TAG_rvalue_reference_type even for
4528 -gdwarf-4 -fno-debug-types-section.
4529
6e96f98a
BS
45302011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4531
4532 PR tree-optimization/46728
4533 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4534 (build_and_insert_binop): New.
4535 (gimple_expand_builtin_pow): Reorder args for
4536 build_and_insert_call; use build_and_insert_binop; add more
4537 optimizations for fractional exponents.
b17d5426 4538
4f60111f
NF
45392011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4540
4541 PR bootstrap/49190
4542
4543 Revert:
4544 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4545
4546 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4547 tree_common.
4548 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4549 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4550 TS_BASE instead of TS_COMMON.
4551 * varasm.c (assemble_name): Remove assert.
4552
3fd7879d
RS
45532011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4554
4555 * config.gcc: Keep obselete list sorted.
4556
80060f7a
JJ
45572011-05-30 Jakub Jelinek <jakub@redhat.com>
4558 Eric Botcazou <ebotcazou@adacore.com>
4559
4560 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4561 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4562 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4563 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4564 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4565
17e99cdb
RG
45662011-05-30 Richard Guenther <rguenther@suse.de>
4567
4568 * gimple.c (gimple_types_compatible_p_1): Compare record
4569 and union type members properly.
4570
42b05b6e
RG
45712011-05-30 Richard Guenther <rguenther@suse.de>
4572
4573 PR tree-optimization/49210
6ba5d856
UB
4574 * ipa-split.c (split_function): Care for the case where the call
4575 result is not trivially convertible to the result holding variable.
42b05b6e 4576
f3321158
RG
45772011-05-30 Richard Guenther <rguenther@suse.de>
4578
4579 PR tree-optimization/49218
4580 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4581 overflow occured.
4582
d12d8efe
RG
45832011-05-30 Richard Guenther <rguenther@suse.de>
4584
4585 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4586 New function split out from ...
4587 (forward_propagate_into_gimple_cond): ... here. Adjust.
4588 (forward_propagate_into_cond): Likewise.
4589 (forward_propagate_comparison): Also propagate into
4590 comparisons on assignment RHS. Change return value to
4591 behave similar to forward_propagate_into_cond.
4592 (tree_ssa_forward_propagate_single_use_vars): Handle
4593 strict-overflow warnings properly for forward_propagate_comparison.
4594
df33b41f
RO
45952011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4596
4597 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4598 from plugin linker.
4599 * configure: Regenerate.
4600
69940d4d
IR
46012011-05-30 Ira Rosen <ira.rosen@linaro.org>
4602
4603 PR tree-optimization/49199
4604 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 4605 non-reduction operands are either defined in the loop or by induction.
69940d4d 4606
226c52aa
XDL
46072011-05-29 Xinliang David Li <davidxl@google.com>
4608
4609 * opts-global.c (handle_common_deferred_options): Handle new options.
4610 * passes.c (register_one_dump_file): Call register_pass_name.
4611 (execute_one_pass): Check explicit enable/disable flag.
4612 (passr_hash): New function.
4613 (passr_eq): Ditto.
4614 (register_pass_name): Ditto.
4615 (get_pass_by_name): Ditto.
4616 (pass_hash): Ditto.
4617 (pass_eq): Ditto.
4618 (enable_pass): Ditto.
4619 (disable_pass): Ditto.
4620 (is_pass_explicitly_enabled_or_disabled): Ditto.
4621
491d8eed
UB
46222011-05-29 Uros Bizjak <ubizjak@gmail.com>
4623
4624 * config/i386/i386.md (*movoi_internal_avx): Use
4625 standard_sse_constant_opcode for alternative 0.
4626 (*movti_internal_sse): Ditto.
4627 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4628 alternative 2.
4629 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4630 sselog1 type moves.
4631 (*movsi_internal): Ditto.
4632 (*movdi_internal): Ditto. Add ssecvt type moves.
4633
eb93b31f
EB
46342011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4635
4636 PR target/48830
4637 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4638
3f831b7d
JJ
46392011-05-29 Jakub Jelinek <jakub@redhat.com>
4640
4641 PR rtl-optimization/49095
4642 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4643 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4644
ee3ee488
RS
46452011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4646
4647 PR target/43995
4648 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4649 recurse_p argument. Only follow register copies if it is set,
4650 and prevent mips_find_pic_call_symbol from recursing.
4651 (mips_find_pic_call_symbol): Add a recurse_p argument.
4652 Pass it to mips_pic_call_symbol_from_set.
4653 (mips_annotate_pic_calls): Update accordingly.
4654
65f3dedb
RS
46552011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4656
4657 * emit-rtl.c (try_split): Use a loop to search for
4658 NOTE_INSN_CALL_ARG_LOCATIONs.
4659
61e374ab
RG
46602011-05-29 Richard Guenther <rguenther@suse.de>
4661
4662 PR tree-optimization/49217
4663 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4664
fac009a8
JH
46652011-05-28 Jan Hubicka <jh@suse.cz>
4666
4667 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4668 length.
4669 (string_slot_free): Remove
4670 (create_output_block): Initialize obstack.
4671 (destroy_output_block): Free obstack.
4672 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4673 the string unless it needs to be added into the hash.
4674 (lto_output_string_with_length): Add persistent attribute;
4675 handle NULL strings.
4676 (lto_output_string): Add PERSISTENT parameter.
4677 (output_string_cst, output_identifier): Simplify.
4678 (lto_output_location_bitpack): Update.
4679 (lto_output_builtin_tree): Update.
4680 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
4681 (lto_output_string, lto_output_string_with_length): Remove
4682 declarations; functions are static now.
fac009a8 4683
fa766006
JH
46842011-05-28 Jan Hubicka <jh@suse.cz>
4685
4686 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4687 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4688 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4689 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4690 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4691 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4692 unpack_ts_decl_with_vis_value_fields,
4693 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4694 lto_get_builtin_tree): Use enum and variable length i/o.
4695 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4696 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4697 New functions.
4698 (bp_pack_enum, bp_unpack_enum): New macros.
4699
e092158b
RS
47002011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4701
4702 * genrecog.c: Remove redundant forward declarations.
4703
7ca2afa0
RS
47042011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4705
4706 * config.gcc: Deprecate mips*-*-openbsd*.
4707
a601a53a
RS
47082011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4709
4710 PR bootstrap/49195
4711 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4712 for match_op_dup.
4713
fc64b448
AP
47142011-05-27 Andrew Pinski <pinskia@gmail.com>
4715
4716 PR middle-end/48981
4717 * gengtype.c (vec_prefix_type): New function.
4718 (note_def_vec): Use vec_prefix_type and change the length
4719 attribute to be based on the prefix.
4720 * vec.c: Include coretypes.h before vec.h.
4721 (struct vec_prefix): Remove.
4722 (vec_gc_p_reserve): Change the offsetof to sizeof.
4723 (vec_gc_p_reserve_exact): Likewise.
4724 (vec_heap_p_reserve): Likewise.
4725 (vec_heap_p_reserve_exact): Likewise.
4726 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4727 (vec_stack_p_reserve): Change the offsetof to sizeof.
4728 (vec_stack_p_reserve_exact): Likewise.
4729 * vec.h (struct vec_prefix): New struct definition.
4730 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4731 (VEC_T_GTY(T,B)): Likewise.
4732 (DEF_VEC_FUNC_P(T)): Use prefix field.
4733 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4734 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4735
ba869341
BS
47362011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4737
4738 PR tree-optimization/46728
4739 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4740 (powi_as_mults): Add gimple_set_location.
4741 (build_and_insert_call): New.
4742 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4743 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 4744
d296760d
AM
47452011-05-27 Alexander Monakov <amonakov@ispras.ru>
4746
4747 * doc/contrib.texi: Update copyright years.
4748 (Contributors): Add Zdenek Sojka.
4749
38e01f9e
NF
47502011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4751
4752 * c-decl.c (c_push_function_context): Copy the current statement
4753 list stack.
4754 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4755 (finish_struct): Call building_stmt_list_p instead of checking
4756 cur_stmt_list.
4757 * c-parser.c (c_parser_postfix_expression): Likewise.
4758 * c-typeck.c (c_end_compound_stmt): Likewise.
4759 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4760 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4761 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4762 (free_stmt_list): Likewise.
4763 * tree.h (struct tree_statement_list): Include typed_tree instead
4764 of tree_common.
4765 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4766 as TS_TYPED instead of TS_COMMON.
4767
8950516e 47682011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 4769 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
4770
4771 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4772 (HAVE_AS_IX86_TLSGDPTL): Define.
4773 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4774 (HAVE_AS_IX86_TLSLDMPLT): Define.
4775 * configure: Regenerate.
4776 * config.in: Regenerate.
4777 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4778 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4779 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4780 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4781 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4782 @tlsldmplt or @plt.
4783 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4784
b0bd15f7
BS
47852011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4786
4787 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4788 and reverse_cond.
4789 (INSN_COND, INSN_REVERSE_COND): New macros.
4790 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4791 once.
4792 (sched_get_condition_with_rev): Cache the results, and look them up
4793 if possible.
4794 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4795 are clobbered by the current insn.
4796 * target.def (exposed_pipline): New sched data hook.
4797 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4798 * doc/tm.texi: Regenerate.
4799
fa65a9cf
BS
48002011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4801
4802 PR tree-optimization/49170
4803 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4804 sincos or cexp.
b0bd15f7 4805
c2299dfe
RG
48062011-05-27 Richard Guenther <rguenther@suse.de>
4807
4808 PR middle-end/49189
4809 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4810 of comparisons.
4811
a95b23b4
BS
48122011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4813
4814 * haifa-sched.c (sched_scan_info): Remove.
4815 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4816 with NULL args.
4817 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4818 Remove functions.
4819 (sched_scan): Remove.
4820 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4821 static. All callers changed.
4822 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4823 static. All callers changed.
4824 (sched_init_luids): Remove all arguments except the first. All
4825 callers changed. Don't use sched_scan.
4826 (haifa_init_h_i_d): Likewise.
4827 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4828 manually rather than using sched_init_luids. Likewise with
4829 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4830 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4831 rather than sched_init_luids with NULL args.
4832 * sel-sched-ir.c (new_insns): Remove variable.
4833 (sched_scan): New static function, previously in haifa-sched.c. Remove
4834 all arguments but the first two; all callers changed.
4835 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4836 rather than sched_init_luids.
4837 (sel_init_bbs): Remove second argument. All callers changed.
4838 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4839 with NULL arguments.
4840 (create_insn_rtx_from_pattern): Likewise.
4841 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4842 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4843 (sched_init_insn_luid, sched_extend_luids): Declare.
4844 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4845 declarations.
4846
f8f972fc
RB
48472011-05-27 Richard Guenther <rguenther@suse.de>
4848
4849 PR middle-end/49177
4850 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4851 A CMP B ? (T) true : (T) false for non-integral types T again.
4852
51a9ed47
JH
48532011-05-27 Jan Hubicka <jh@suse.cz>
4854
4855 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4856 so 0 means NULL string.
4857 (lto_output_string_with_length): ... here.
f8f972fc
RB
4858 (lto_output_string, output_string_cst, output_identifier): Update
4859 handling of NULL strings.
51a9ed47
JH
4860 (lto_output_location_bitpack): New function.
4861 (lto_output_location): Use it.
4862 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
4863 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4864 len values.
4865 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4866 values by 1.
491d8eed 4867 (input_string_internal): ... here;
f8f972fc
RB
4868 (input_string_cst, input_identifier, lto_input_string): Update handling
4869 of NULL strings.
51a9ed47
JH
4870 (lto_input_location_bitpack): New function
4871 (lto_input_location): Use it.
f8f972fc
RB
4872 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4873 values.
51a9ed47
JH
4874 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4875 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4876 (bp_pack_value): Sanity check the value range.
4877 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4878 New functions.
4879 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4880 New functions.
4881
66bd20e7 48822011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
4883
4884 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4885 call_arg_location instructions down the floor.
4886
574e418a
VM
48872011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4888
4889 PR rtl-optimization/49154
4890 * ira.c (setup_pressure_classes): Process class without sublcasses
4891 as a candidate for pressure classes.
4892
6a1a787e
RS
48932011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4894
4895 PR rtl-optimization/48575
4896 * genrecog.c (position_type): New enum.
4897 (position): New structure.
4898 (decision): Use position structure instead of a string.
4899 (root_pos, peep2_insn_pos_list): New variables.
4900 (next_position, compare_positions): New functions.
4901 (new_decision): Use position structures instead of strings.
4902 (maybe_both_true): Likewise.
4903 (change_state): Likewise.
4904 (write_tree): Likewise.
4905 (make_insn_sequence): Likewise.
4906
92e948a8
NF
49072011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4908
4909 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4910 TS_BASE instead of TS_COMMON.
4911 (find_decls_types_r): Check for TS_TYPED structure before looking at
4912 TREE_TYPE.
4913 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4914 Add chain field.
4915 (BLOCK_CHAIN): Use new chain field.
4916
66bd20e7 49172011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
4918
4919 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4920 moves expensive on Power7 also.
4921
1f498652
RG
49222011-05-26 Richard Guenther <rguenther@suse.de>
4923
4924 * fold-const.c (fold_unary_loc): Remove bogus code.
4925
a2fc3e63
NF
49262011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4927
4928 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4929 tree_common.
4930 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4931 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4932 TS_BASE instead of TS_COMMON.
4933 * varasm.c (assemble_name): Remove assert.
4934
d11bf18f
BS
49352011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4936
4937 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4938 substituted first.
4939 * libgcc-std.ver: Delete file.
4940
ac8e1875
RG
49412011-05-26 Richard Guenther <rguenther@suse.de>
4942
4943 PR tree-optimization/48702
4944 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4945 only when we know the base address is within bounds.
4946 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4947 assume the base address of TARGET_MEM_REFs is in bounds.
4948
7e32e652
RO
49492011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4950
4951 PR target/49099
4952 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4953 declaration in TARGET_SOLARIS.
4954
66bd20e7 49552011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
4956
4957 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 4958 The instruction is then expanded explicitly.
43660e0b
HS
4959 (supported_compare): Callable instruction.
4960 (compare): Likewise.
4961
1537737f
JJ
49622011-05-26 Jakub Jelinek <jakub@redhat.com>
4963
4964 PR c++/49165
4965 * gimplify.c (shortcut_cond_r): Don't special case
4966 COND_EXPRs if they have void type on one of their arms.
4967
7b1ac803
BS
49682011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4969
4970 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4971 to reduce duplication, and to achieve a slightly more logical order
4972 of operations.
4973
1aa9438f
JJ
49742011-05-26 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR tree-optimization/49161
4977 * tree-vrp.c (struct case_info): New type.
4978 (compare_case_labels): Sort case_info structs instead of
4979 trees, and not primarily by CASE_LABEL uids but by
4980 label_for_block indexes.
4981 (find_switch_asserts): Put case labels into struct case_info
4982 array instead of TREE_VEC, adjust sorting, compare label_for_block
4983 values instead of CASE_LABELs.
4984
50fed7bf
RR
49852011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4986
4987 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4988 ("orndi3_neon"): Likewise.
4989 ("bic<mode>3_neon"): Likewise.
4990
48df3fa6
IR
49912011-05-26 Ira Rosen <ira.rosen@linaro.org>
4992
4993 PR tree-optimization/49038
4994 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4995 Ensure at least one epilogue iteration if required by data
4996 accesses with gaps.
4997 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4998 to mark loops that require peeling for gaps.
4999 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5000 (vect_get_known_peeling_cost): Take peeling for gaps into
5001 account.
5002 (vect_transform_loop): Generate epilogue if required by data
5003 access with gaps.
5004 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5005 loop as requiring an epilogue if there are gaps in the end of
5006 the strided group.
5007
53febcba
ILT
50082011-05-25 Ian Lance Taylor <iant@google.com>
5009
5010 * godump.c (go_format_type): Output the first field with a usable
5011 Go type, if any.
5012
dbbc4d4c
ILT
50132011-05-25 Ian Lance Taylor <iant@google.com>
5014
5015 * godump.c (go_format_type): Check for invalid type names, pointer
5016 target types, and struct field types.
5017
f03a5402
JM
50182011-05-25 Jason Merrill <jason@redhat.com>
5019
5020 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5021
c497c412
UB
50222011-05-25 Uros Bizjak <ubizjak@gmail.com>
5023
5024 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5025
e470affe
L
50262011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5027
5028 * config/i386/i386.md (*movqi_extv_1)): Put back
5029 "register_operand" check in "type" calculation.
5030 (*movqi_extzv_2): Likewise.
5031
6c81b2bc
L
50322011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5033
c497c412 5034 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 5035
0c007eb2
BS
50362011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5037
5038 PR bootstrap/49160
5039 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5040 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5041 __divxc3, __divtc3): Wrap definitions in #ifndef.
5042
521ca78e
L
50432011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5044
5045 PR target/49142
5046 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5047 "register_operand" check and replace q_regs_operand with
5048 QIreg_operand in "type" calculation.
5049 (*movqi_extv_1): Likewise.
5050 (*movqi_extzv_2_rex64): Likewise.
5051 (*movqi_extzv_2): Likewise.
5052
5053 * config/i386/predicates.md (QIreg_operand): New.
5054
29f8b844
RG
50552011-05-25 Richard Guenther <rguenther@suse.de>
5056
5057 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5058 type-based offset disambiguation, streamline MEM_REF and
5059 TARGET_MEM_REF handling.
5060
74838de3
L
50612011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5062
5063 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5064 (bdesc_special_args): Add pause intrinsic.
5065
5066 * config/i386/i386.md (UNSPEC_PAUSE): New.
5067 (pause): Likewise.
5068 (*pause): Likewise.
5069 * config/i386/ia32intrin.h (__pause): Likewise.
5070
5071 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5072 pause intrinsic.
5073
d24ad7d6
BS
50742011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5075
5076 PR tree-optimization/46728
5077 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5078 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 5079
d9f8303f
NF
50802011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5081
5082 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5083 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5084 instead of TS_COMMON.
5085
cdbf4541
BS
50862011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5087
5088 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5089 LIBGCC2_GNU_PREFIX is defined.
5090 (__N): New macro.
5091 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5092 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5093 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5094 __clz_tab): Define using __N.
5095 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5096 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5097 * target.def (libfunc_gnu_prefix): New hook.
5098 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5099 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5100 * doc/tm.texi: Regenerate.
5101 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5102 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5103 account.
5104 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5105 (init_optabs): Likewise for the bswap libfuncs.
5106 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5107 and divide.
5108 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5109 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5110 * libgcc-std.ver: Remove.
5111 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5112 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5113 libgcc-std.ver.
5114 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5115 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5116 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5117 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5118 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5119 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5120 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5121 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5122 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5123 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5124
f242c0a5
JH
51252011-05-25 Jan Hubicka <jh@suse.cz>
5126
5127 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5128 (lto_output_tree): Use output_record_start.
5129 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5130 (lto_get_pickled_tree): Use input_record_start.
5131 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5132 (lto_value_range_error): New function.
5133 * lto-streamer.h (lto_value_range_error): Declare.
5134 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5135 (lto_output_enum, lto_input_enum): New macros.
5136
a11e0df4
EB
51372011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5138
5139 * common.opt (flag_stack_usage_info): New variable.
5140 (-Wstack-usage): New option.
5141 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5142 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5143 <OPT_fstack_usage>: Likewise.
5144 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5145 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5146 of flag_stack_usage.
5147 (emit_library_call_value_1): Likewise.
5148 * explow.c (allocate_dynamic_stack_space): Likewise.
5149 * function.c (instantiate_virtual_regs ): Likewise.
5150 (prepare_function_start): Likewise.
5151 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5152 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5153 * config/arm/arm.c (arm_expand_prologue): Likewise.
5154 (thumb1_expand_prologue): Likewise.
5155 * config/avr/avr.c (expand_prologue): Likewise.
5156 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5157 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5158 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5159 * config/mips/mips.c (mips_expand_prologue): Likewise.
5160 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5161 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5162 * config/s390/s390.c (s390_emit_prologue): Likewise.
5163 * config/sh/sh.c (sh_expand_prologue): Likewise.
5164 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5165 * config/spu/spu.c (spu_expand_prologue): Likewise.
5166
e7cfe241
RG
51672011-05-25 Richard Guenther <rguenther@suse.de>
5168
5169 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5170 (gimple_canonical_types_compatible_p): Likewise.
5171
c5235f4c
JH
51722011-05-25 Jan Hubicka <jh@suse.cz>
5173
5174 PR middle-end/49062
5175 * ipa.c (function_and_variable_visibility): Only add to same
5176 comdat group list if DECL_ONE_ONLY.
5177
8242a0f6
AB
51782011-05-25 Andrey Belevantsev <abel@ispras.ru>
5179
5180 PR rtl-optimization/49014
5181 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5182
642a011d
JJ
51832011-05-25 Jakub Jelinek <jakub@redhat.com>
5184
5185 PR target/49128
5186 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5187
30a435d8
VM
51882011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5189
5190 PR rtl-optimization/48757
5191 * ira-build.c (loop_with_eh_edge_p): Rename to
5192 loop_with_complex_edge_p, check edges on complexity, make function
5193 conditional.
5194 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5195 conditional.
5196
24d1bbc7
EB
51972011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5198
5199 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5200 force flag_ira_share_save_slots to 0.
5201
65773087
EB
52022011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5203
5204 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5205 (vt_initialize): Set PROLOGUE_BB unconditionally.
5206 Add block comment about CFA_BASE_RTX machinery.
5207 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5208 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5209
4e26ba90
NP
52102011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5211
5212 PR objc/48187
5213 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5214 parsing of syntax error in ObjC instance variable lists. In
5215 particular, avoid an infinite loop if there is a stray ']'.
5216 Updated error message.
5217
936fd13c
ILT
52182011-05-24 Ian Lance Taylor <iant@google.com>
5219
5220 * godump.c (go_define): Don't accept a string immediately after
5221 another operand.
5222
f17333e3
ILT
52232011-05-24 Ian Lance Taylor <iant@google.com>
5224
5225 * godump.c (struct godump_container): Add invalid_hash field.
5226 (go_format_type): Return false if type is found in invalid_hash.
5227 (go_output_typedef): Add invalid type to invalid_hash.
5228 (go_finish): Create and delete invalid_hash.
5229
d24ad7d6 52302011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 5231
78be79d5
BS
5232 PR tree-optimization/46728
5233 * tree-ssa-math-opts.c (powi_table): New.
5234 (powi_lookup_cost): New.
5235 (powi_cost): New.
5236 (powi_as_mults_1): New.
5237 (powi_as_mults): New.
5238 (gimple_expand_builtin_powi): New.
5239 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5240 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 5241
caee412b
RO
52422011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5243
5244 PR target/3746
5245 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5246 mips-tdump native.
5247 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5248 * mips-tdump.c: Likewise.
5249
5eed4f27
L
52502011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 PR target/49128
5253 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5254 add -mno-XXX. Handle FMA.
5255
8c5fdaae
VM
52562011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5257
5258 PR rtl-optimization/48633
5259 * ira-build.c (loop_with_eh_edge_p): New function.
5260 (mark_loops_for_removal): Use it.
5261
52622011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
5263
5264 PR rtl-optimization/48971
5265 * ira.c (setup_pressure_classes): Don't check register move cost
5266 for classes with one registers. Don't add pressure class if there
5267 is a pressure class with the same available hard registers.
5268 Check contains_reg_of_mode. Fix a typo in collecting
5269 temp_hard_regset. Ignore hard registers not belonging to a class.
5270
df1f7315
UB
52712011-05-24 Uros Bizjak <ubizjak@gmail.com>
5272
5273 PR target/49133
5274 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5275
ee0cb37c
EB
52762011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5277 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5278
5279 PR gcov-profile/48845
5280 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5281
6a20ce76
RG
52822011-05-24 Richard Guenther <rguenther@suse.de>
5283
5284 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5285 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5286 (gimple_types_compatible_p_1): Adjust.
5287 (iterative_hash_canonical_type): Do not bother about complete vs.
5288 incomplete types.
5289 (gimple_canonical_types_compatible_p): Likewise.
5290
2fcb858c
RO
52912011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5292
5293 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5294
96d91dcf
RG
52952011-05-24 Richard Guenther <rguenther@suse.de>
5296
5297 PR bootstrap/49078
5298 * gimple.c (gimple_register_canonical_type): Revert
5299 previous change.
5300 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5301 does not for a tree for the case where it matters. Cache
5302 pointer-type alias-sets.
5303
1ed1641d
JM
53042011-05-24 Joseph Myers <joseph@codesourcery.com>
5305
5306 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5307 (OBJS): Remove options.o, opts-common.o and prefix.o.
5308 (OBJS-libcommon-target): New.
5309 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5310 (BACKEND): Include libcommon-target.a.
5311 (MOSTLYCLEANFILES): Include libcommon-target.a.
5312 (libcommon-target.a): New.
5313 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5314 prefix.o.
5315
57dfdff0
JM
53162011-05-23 Joseph Myers <joseph@codesourcery.com>
5317
5318 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5319 parts of output shared with the driver.
5320 * optc-gen.awk: Don't generate parts of output not shared with the
5321 driver.
5322 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5323 * doc/options.texi (SourcerInclude): Mention options-save.c.
5324 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5325 (OBJS): Add options-save.o.
5326 (options-save.c, options-save.o): New.
5327 (options.o): Update dependencies.
5328 (gcc-options.o): Remove.
5329 (mostlyclean): Remove options-save.c.
5330
0e0d82a7
JJ
53312011-05-23 Jakub Jelinek <jakub@redhat.com>
5332
9166988f
JJ
5333 PR debug/49032
5334 * dbxout.c: Include cgraph.h.
5335 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5336 and without value expr, return NULL if no varpool node exists for
5337 it or if it is not needed.
5338 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5339
0e0d82a7
JJ
5340 PR c/49120
5341 * c-decl.c (start_decl): Convert expr to void_type_node.
5342
65712d5c
RS
53432011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5344
5345 PR rtl-optimization/48826
5346 * emit-rtl.c (try_split): When splitting a call that is followed
5347 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5348
9025085e
JJ
53492011-05-23 Jakub Jelinek <jakub@redhat.com>
5350
5351 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5352 parameters passed in memory prefer using DECL_INCOMING_RTL over
5353 the pseudos it will be copied into.
5354
34a061be
L
53552011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5356
5357 PR target/47315
5358 * config/i386/i386.c (ix86_option_override_internal): Save the
5359 initial options after checking vzeroupper.
5360
c375a3a4
DL
53612011-05-23 David Li <davidxl@google.com>
5362
5363 PR tree-optimization/48988
5364 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5365 Initialize has_valid_pred for each pred chain.
5366
e1caba18
RG
53672011-05-23 Richard Guenther <rguenther@suse.de>
5368
5369 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5370 (iterative_hash_gimple_type): Always hash type names.
5371
dde05067
NF
53722011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5373
5374 * c-typeck.c (build_function_call_vec): Tweak call to
5375 check_function_arguments.
5376
094f6ab3
RG
53772011-05-23 Richard Guenther <rguenther@suse.de>
5378
5379 PR tree-optimization/49115
5380 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5381 is not necessarily carried out, do not claim it kills the ref.
5382 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5383
9a9822e1
RG
53842011-05-23 Richard Guenther <rguenther@suse.de>
5385
5386 PR middle-end/15419
5387 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5388 what pointer types we accept for folding.
5389
c8028650
RO
53902011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5391
5392 * gthr-gnat.c: Remove.
5393 * gthr-gnat.h: Remove.
5394 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5395 * config/t-freebsd (LIB2ADDEH): Likewise.
5396 * config/t-linux (LIB2ADDEH): Likewise.
5397 * config/t-sol2 (LIB2ADDEH): Likewise.
5398 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5399 * configure.ac (target_thread_file): Remove gnat handling.
5400 * configure: Regenerate.
5401 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5402
15882fe9
TG
54032011-05-23 Tristan Gingold <gingold@adacore.com>
5404 Eric Botcazou <ebotcazou@adacore.com>
5405
5406 * gcov.c (create_file_names): If no object directory is specified,
5407 keep the directory of the file.
5408
da90c957
RO
54092011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5410
5411 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5412 * configure: Regenerate.
5413
7bba408b
JJ
54142011-05-23 Jakub Jelinek <jakub@redhat.com>
5415
5416 PR middle-end/48973
5417 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5418 failed and the comparison has a single bit signed type, use
5419 constm1_rtx instead of const1_rtx for true value.
5420 (do_store_flag): If ops->type is single bit signed type, disable
5421 signel bit test optimization and pass -1 instead of 1 as last
5422 parameter to emit_store_flag_force.
5423
bc69f7ff
TV
54242011-05-23 Tom de Vries <tom@codesourcery.com>
5425
5426 PR target/45098
5427 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5428 function.
5429 (infer_loop_bounds_from_undefined): Use new function.
5430
29cedf8e
RS
54312011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5432
5433 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5434 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5435 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5436 and -O0 otherwise.
5437 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5438
afe8b6ec
EB
54392011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5440
5441 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5442 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5443 returns true.
5444
872dab53
RS
54452011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5446
5447 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5448
145f6c5b
EB
54492011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5450
5451 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5452 UNSPEC_MOVE_PIC pattern.
5453
8ac79835
EB
54542011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5455
5456 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5457 (sparc-*-rtems*): Likewise.
5458 (sparc64-*-elf*): Likewise.
5459 (sparc64-*-rtems*): Likewise.
5460 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5461 * config/sparc/t-crtin: New file.
5462 * config/sparc/t-sol2 (crti.o): Delete rule.
5463 (crtn.o): Likewise.
5464 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5465 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5466 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5467 (ENDFILE_SPEC): Add crtn.o.
5468
5fb43dd8
TV
54692011-05-22 Tom de Vries <tom@codesourcery.com>
5470
5471 PR middle-end/48689
5472 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5473 CODE_CONTAINS_STRUCT (TS_COMMON).
5474
ccb1b17b
JJ
54752011-05-22 Jakub Jelinek <jakub@redhat.com>
5476
5477 PR middle-end/49029
5478 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5479 only after deciding which mode to use.
5480
50ad7db2
TV
54812011-05-22 Tom de Vries <tom@codesourcery.com>
5482
5483 PR target/45098
dc0a3366 5484 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
5485 for call to get_shiftadd_cost.
5486
ef230b38
UB
54872011-05-22 Uros Bizjak <ubizjak@gmail.com>
5488
5489 PR target/49104
5490 * config/i386/cpuid.h (bit_MMXEXT): New define.
5491
15f072f9
NC
54922011-05-22 Nick Clifton <nickc@redhat.com>
5493
5494 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5495 initialisation of non-existant args[2] element. Use args[] array
5496 not arg[] array to pass arguments to build_function_type_list.
5497
e38fdc94
IR
54982011-05-22 Ira Rosen <ira.rosen@linaro.org>
5499
5500 PR tree-optimization/49087
ef230b38 5501 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 5502
5b018c65
JM
55032011-05-21 Jason Merrill <jason@redhat.com>
5504
5505 PR c++/49092
5506 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5507 static storage duration.
5508
abd9a770
EB
55092011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5510
5511 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5512 frame pointer.
5513
bd9a3248
EB
55142011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5515
5516 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5517 false if there are call-saved registers here...
5518 (sparc_can_use_return_insn_p): ...but here instead.
5519 (save_or_restore_regs): Fix thinko.
5520 (sparc_expand_prologue): Use current_function_is_leaf.
5521 (sparc_frame_pointer_required): Likewise.
5522
a5dfec9a
NC
55232011-05-21 Nick Clifton <nickc@redhat.com>
5524
5525 PR target/49098
5526 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5527
555c3771
NP
55282011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5529
5530 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5531 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5532
86fa5de4
JM
55332011-05-21 Joseph Myers <joseph@codesourcery.com>
5534
5535 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5536 * optc-gen.awk: Move common code to opt-read.awk.
5537 * opth-gen.awk: Likewise.
ef230b38 5538 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 5539
bce33ab2
NF
55402011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5541
5542 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5543
e6450c11
TV
55442011-05-20 Tom de Vries <tom@codesourcery.com>
5545
5546 PR target/45098
5547 * tree-ssa-loop-ivopts.c: Include expmed.h.
5548 (get_shiftadd_cost): New function.
5549 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5550
0e8b84ec
JJ
55512011-05-20 Jakub Jelinek <jakub@redhat.com>
5552
5553 PR bootstrap/49086
5554 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5555 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5556
946bdf67
JM
55572011-05-20 Joseph Myers <joseph@codesourcery.com>
5558
5559 * Makefile.in: Update comment referring to $(OBJS-common).
5560
c53aafdf
ILT
55612011-05-20 Ian Lance Taylor <iant@google.com>
5562
5563 * godump.c (go_output_typedef): Put enum constants in the macro
5564 hash table to avoid duplicate Go const definitions.
5565
2691e6d7
JM
55662011-05-20 Joseph Myers <joseph@codesourcery.com>
5567
5568 * Makefile.in (LIBDEPS): Add libcommon.a.
5569 (LIBS): Likewise.
5570 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5571 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5572 pretty-print.o and version.o.
5573 (OBJS-libcommon): New.
5574 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5575 (BACKEND): Add libcommon.a.
5576 (MOSTLYCLEANFILES): Likewise.
5577 (libcommon.a): New.
5578 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5579 (cpp$(exeext)): Likewise.
5580 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5581 pretty-print.o and input.o.
5582 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5583 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5584 (errors.o): Remove.
5585 (mips-tfile): Don't explicitly use version.o.
5586 (mips-tdump): Likewise.
5587 (gcov.o): Depend on $(DIAGNOSTIC_H).
5588 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5589 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5590 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5591 * gcov-dump.c: Include intl.h and diagnostic.h.
5592 (main): Initialize diagnostics.
5593 * gcov.c: Include diagnostic.h.
5594 (fnotice): Remove.
5595 (main): Initialize diagnostics.
5596 * lto-wrapper.c: Include diagnostic.h.
5597 (main): Initialize diagnostics.
5598
252b3e8c
MM
55992011-05-20 Michael Matz <matz@suse.de>
5600
5601 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5602
2ee36ba6
MM
56032011-05-20 Michael Matz <matz@suse.de>
5604 Richard Guenther <rguenther@suse.de>
5605
5606 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5607 use lto_streamer_cache_append directly instead of returning a VEC.
5608 (preload_common_node): Remove.
5609 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5610 track seen nodes.
5611 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5612
90ff582f
RG
56132011-05-20 Richard Guenther <rguenther@suse.de>
5614
5615 PR tree-optimization/49079
5616 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5617 MEM_REFs correctly for the trailing array access detection.
5618 Special case constants the same way as decls for overall size
5619 constraining.
5620
3cda91d8
UB
56212011-05-20 Uros Bizjak <ubizjak@gmail.com>
5622
5623 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5624 argument expansion.
5625
6c66f733
JJ
56262011-05-20 Jakub Jelinek <jakub@redhat.com>
5627
5628 PR tree-optimization/49073
3cda91d8
UB
5629 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5630 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
5631 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5632
0ea80a16
RG
56332011-05-20 Richard Guenther <rguenther@suse.de>
5634
5635 PR middle-end/48849
5636 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5637 of pointer types the same way the middle-end does.
5638
fb291a1e
RG
56392011-05-20 Richard Guenther <rguenther@suse.de>
5640
3cda91d8
UB
5641 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5642 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 5643
37cb25ed
QN
56442011-05-19 Quentin Neill <quentin.neill@amd.com>
5645
5646 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5647 (fma4_fmaddsub): Likewise
5648
a30726a4
JH
56492011-05-19 Jan Hubicka <jh@suse.cz>
5650
5651 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5652 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5653 (type_pair_cache): New static var.
5654 (lookup_type_pair): Use fixed sized custom hash; make inline.
5655 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5656 calls of lookup_type_pair.
5657 (print_gimple_types_stats): Remove cache stats.
5658 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5659 and gtc_ob.
5660
0955cf61
UB
56612011-05-19 Uros Bizjak <ubizjak@gmail.com>
5662
5663 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5664 when TARGET_RDRND is active.
5665 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5666 Generate dummy SImode target register when target is NULL.
5667
12d844c8
JM
56682011-05-19 Joseph Myers <joseph@codesourcery.com>
5669
5670 * config/arm/arm-fpus.def: New.
5671 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5672 arm-fpus.def.
5673 * config/arm/arm-tables.opt: Regenerate.
5674 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5675 (arm_option_override): Don't decode FPU name to string here.
5676 * config/arm/arm.opt (mfpu=): Use Enum.
5677 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5678 Update dependencies.
5679
9e350e99
JM
56802011-05-19 Joseph Myers <joseph@codesourcery.com>
5681
5682 * collect2.c: Include diagnostic.h.
5683 (fatal_perror, fatal, error, fancy_abort): Remove.
5684 (main): Set progname. Call xmalloc_set_program_name and
5685 diagnostic_initialize.
5686 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5687 scan_libraries, resolve_lib_name): Call fatal_error instead of
5688 fatal and fatal_perror.
5689 * collect2.h (error, fatal, fatal_perror): Don't declare.
5690 * tlink.c: Include diagnostic-core.h.
5691 (recompile_files): Call fatal_error instead of fatal_perror.
5692 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5693 pretty-print.o and input.o.
5694 (collect2.o, tlink.o): Update dependencies.
5695
86ff4081
RO
56962011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5697
5698 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5699
2ca48caa
RO
57002011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5701
5702 PR target/40483
5703 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5704 COMDAT group syntax, both SPARC and x86 variants.
5705 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5706 * configure: Regenerate.
5707 * config/sol2.h (TARGET_SOLARIS): Define.
5708 (PUSHSECTION_FORMAT): Remove.
5709 (SECTION_NAME_FORMAT): Define.
5710 * config/sol2.c: Include hashtab.h.
5711 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5712 expansion, using SECTION_NAME_FORMAT.
5713 (solaris_comdat_htab): New variable.
5714 (struct comdat_entry): Define.
5715 (comdat_hash): New function.
5716 (comdat_eq): New function.
5717 (solaris_elf_asm_comdat_section): New function.
5718 (solaris_define_comdat_signature): New function.
5719 (solaris_code_end): New function.
5720 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5721 (solaris_code_end): Declare.
5722 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5723 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5724 solaris_code_end.
5725 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5726 Remove ATTRIBUTE_UNUSED.
5727 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5728 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 5729 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
5730 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5731 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5732 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5733 (PUSHSECTION_FORMAT): Remove.
5734 (SECTION_NAME_FORMAT): Redefine.
5735
da5fb469
KT
57362011-05-19 Kai Tietz <ktietz@redhat.com>
5737
5738 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5739 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5740 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5741
1651e703 57422011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
5743 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5744
5745 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5746
e497b9bd
RG
57472011-05-19 Richard Guenther <rguenther@suse.de>
5748
5749 PR middle-end/48985
5750 * tree-object-size.c (addr_object_size): If the pointed-to
5751 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5752
31b3ca64
RG
57532011-05-19 Richard Guenther <rguenther@suse.de>
5754
5755 * gimple.c (gimple_types_compatible_p_1): Compare names of
5756 the types themselves.
5757 (iterative_hash_gimple_type): And hash them that way.
5758 (gimple_register_type_1): If we register a main variant properly
5759 initialize the leader to ourselves.
5760
bb8d292d
TV
57612011-05-19 Tom de Vries <tom@codesourcery.com>
5762
5763 PR target/45098
5764 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5765 get_loop_invariant_expr_id.
5766 (get_loop_invariant_expr_id): Use get_expr_id.
5767 (parm_decl_cost): New function.
5768 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5769 Improve bound cost estimation. Use different inv_expr_id for elim and
5770 express cases.
5771
a53c5024
TV
57722011-05-19 Tom de Vries <tom@codesourcery.com>
5773
5774 PR target/45098
5775 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5776 cost_base.cost == 0.
5777
31f9eb59
L
57782011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5779
5780 PR target/49002
66bd20e7
EB
5781 * config/i386/sse.md
5782 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5783 load cast.
31f9eb59 5784
681056ae
JJ
57852011-05-18 Jakub Jelinek <jakub@redhat.com>
5786
5787 PR tree-optimization/49039
5788 * tree-vrp.c (extract_range_from_binary_expr): For
5789 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5790 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5791
b5ee6752
TV
57922011-05-18 Tom de Vries <tom@codesourcery.com>
5793
5794 PR target/45098
5795 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5796
0bda47a3
UB
57972011-05-18 Uros Bizjak <ubizjak@gmail.com>
5798
5799 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5800 (*tls_global_dynamic_64): Ditto.
5801 (*tls_local_dynamic_base_32_gnu): Ditto.
5802 (*tls_local_dynamic_base_64): Ditto.
5803 (tls_initial_exec_64_sun): Ditto.
5804
033b0805
SH
58052011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5806
5807 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5808 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5809 bf592-none.
5810 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5811 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5812 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5813 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 5814 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
5815 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5816 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5817
ba163417
JM
58182011-05-18 Joseph Myers <joseph@codesourcery.com>
5819
5820 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 5821 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
5822 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5823 target_thread_pointer, arm_structure_size_boundary, struct
5824 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5825 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
5826 (arm_option_override) Don't process most enumerated option values here.
5827 Don't process target_fpe_name here. Work with integer not string for
5828 structure size boundary; use separate diagnostics for each case.
ba163417
JM
5829 * config/arm/arm.h (enum float_abi_type, enum
5830 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5831 to arm-opts.h.
5832 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5833 arm_structure_size_boundary): Remove.
5834 * config/arm/arm.opt (mabi=): Use Enum and Init.
5835 (arm_abi_type): New Enum and EnumValue entries.
5836 (mfloat-abi=): Use Enum and Init.
5837 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 5838 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
5839 (mfp16-format=): Use Enum and Init.
5840 (arm_fp16_format_type): New Enum and EnumValue entries.
5841 (mstructure-size-boundary=): Use UInteger and Init.
5842 (mtp=): Use Enum and Init.
5843 (arm_tp_type): New Enum and EnumValue entries.
5844
179184e3
RG
58452011-05-18 Richard Guenther <rguenther@suse.de>
5846
5847 PR tree-optimization/49018
5848 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5849 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5850 gimple_has_side_effects.
5851
93b2a207
RG
58522011-05-18 Richard Guenther <rguenther@suse.de>
5853
5854 * gimple.c (gimple_register_type_1): New function, split out from ...
5855 (gimple_register_type): ... here. Avoid infinite recursion.
5856
b010117a
IR
58572011-05-18 Ira Rosen <ira.rosen@linaro.org>
5858
5859 PR tree-optimization/41881
5860 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5861 reduction_chains along with a macro for its access.
5862 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5863 (destroy_loop_vec_info): Free reduction chains.
5864 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5865 (vect_is_slp_reduction): New function.
5866 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5867 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5868 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5869 definition types for reduction chains.
5870 (vect_supported_load_permutation_p): Don't allow permutations for
5871 reduction chains.
5872 (vect_analyze_slp_instance): Support reduction chains.
5873 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5874 (vect_get_constant_vectors): Handle reduction chains.
5875 (vect_schedule_slp_instance): Mark the first statement of the
5876 reduction chain as reduction.
5877
e14c1050
IR
58782011-05-18 Ira Rosen <ira.rosen@linaro.org>
5879
5880 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5881 names for group elements access.
5882 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5883 reduction chains as well. Remove data reference and interleaving
5884 related words from the fields names.
5885 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5886 elements access.
5887 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5888 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5889 vect_update_interleaving_chain, vect_same_range_drs,
5890 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5891 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5892 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5893 vect_analyze_group_access, vect_analyze_data_ref_access,
5894 vect_create_data_ref_ptr, vect_transform_strided_load,
5895 vect_record_strided_load_vectors): Likewise.
5896 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5897 vect_model_load_cost, vectorizable_store, vectorizable_load,
5898 vect_remove_stores, new_stmt_vec_info): Likewise.
5899 * tree-vect-slp.c (vect_build_slp_tree,
5900 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5901
51c213f7
RG
59022011-05-18 Richard Guenther <rguenther@suse.de>
5903
5904 PR middle-end/48989
5905 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5906 operand verification.
5907 (verify_gimple_assign_binary): Likewise.
5908 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5909 to non-1-precision BOOLEAN_TYPEs.
5910
8f5e5434
TV
59112011-05-18 Tom de Vries <tom@codesourcery.com>
5912
5913 PR target/45098
5914 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5915
116bc3a4
JJ
59162011-05-18 Jakub Jelinek <jakub@redhat.com>
5917
5918 PR tree-optimization/49000
5919 * tree-ssa.c (execute_update_addresses_taken): Call
5920 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5921 be rewritten and decl has been marked for renaming, reset
5922 the debug stmt.
5923
26a8964c
JM
59242011-05-17 Joseph Myers <joseph@codesourcery.com>
5925
5926 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5927 enum_opts_set when testing if attributes have set -mfpmath=.
5928
82bd45d7
RS
59292011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5930
5931 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5932
267ffce3
UB
59332011-05-17 Uros Bizjak <ubizjak@gmail.com>
5934
5935 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5936 info->entry with 0
5937 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5938 id.transform_lang_insert_block with NULL.
5939
59402011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
5941
5942 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5943 (output_fp_compare): Change args 3 and 4 to bool.
5944 (ix86_expand_call): Change arg 6 to bool.
5945 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5946 (ix86_attr_length_vex_default): Change arg 3 to bool.
5947 * config/i386/i386.md: Update all uses.
5948 * config/i386/i386.c: Ditto.
5949 (ix86_flags_dependent): Change return type to bool.
5950
5beaf664
RG
59512011-05-17 Richard Guenther <rguenther@suse.de>
5952
5953 * gimple.c (type_hash_pair_compare): Fix comparison.
5954
008bad7a
RG
59552011-05-17 Richard Guenther <rguenther@suse.de>
5956
5957 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5958 case some more, fix final hash value of the non-singleton case.
5959
36461340
RG
59602011-05-17 Richard Guenther <rguenther@suse.de>
5961
5962 PR bootstrap/49013
5963 Revert
5964 2011-05-16 Richard Guenther <rguenther@suse.de>
5965
5966 * gimple.c (gimple_types_compatible_p_1): Use names of the
5967 type itself, not its main variant.
5968 (iterative_hash_gimple_type): Likewise.
5969
6b6a59f3
RG
59702011-05-17 Richard Guenther <rguenther@suse.de>
5971
5972 * gimple.c (gimple_register_canonical_type): Use the main-variant
5973 leader for computing the canonical type.
5974
4ffc4134
NC
59752011-05-17 Nick Clifton <nickc@redhat.com>
5976
a1d8754e
NC
5977 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5978 moves.
5979
4ffc4134
NC
5980 * config/rx/rx.md: Add peephole to remove redundant extensions
5981 after loads.
39960f7a
NC
5982 (bitset_in_memory): Use rx_restricted_mem_operand.
5983 (bitinvert_in_memory): Likewise.
5984 (bitclr_in_memory): Likewise.
4ffc4134 5985
b3db92ac
KI
59862011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5987 Nick Clifton <nickc@redhat.com>
5988
5989 * config/rx/rx.md: Add peepholes to match a register move followed
5990 by a comparison of the moved register. Replace these with an
5991 addition of zero that does both actions in one instruction.
5992
8637e32a
JJ
59932011-05-17 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR target/48986
5996 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5997 predicate to allow CONST_INT.
5998 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5999
8023568e
JM
60002011-05-16 Joseph Myers <joseph@codesourcery.com>
6001
6002 * opts-common.c (opt_enum_arg_to_value): New.
6003 * opts.h (opt_enum_arg_to_value): Declare.
6004 * config/i386/i386.opt (fpmath): Remove.
6005 (mfpmath=): Use Enum, Init and Save.
6006 (fpmath_unit): New Enum and EnumValue entries.
6007 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6008 name for function fpmath state.
6009 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6010 * config/i386/i386.c: Include diagnostic.h.
6011 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 6012 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 6013 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 6014 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
6015 (x86_function_specific_save, ix86_function_specific_restore):
6016 Don't handle fpmath state specially.
6017 (ix86_function_specific_print): Pass fpmath state to
6018 ix86_target_string instead of printing in this function.
6019 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6020 Handle enum attributes.
6021 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6022 (ix86_valid_target_attribute_tree): Update option_strings
6023 handling. Handle fpmath as enum option.
6024 (ix86_can_inline_p): Update field names for function fpmath state.
6025 (ix86_expand_builtin): Update call to ix86_target_string.
6026 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6027 (ix86_fpmath): Remove.
6028 * config/i386/t-i386 (i386.o): Update dependencies.
6029
9e8d926e
JM
60302011-05-16 Joseph Myers <joseph@codesourcery.com>
6031
6032 PR preprocessor/48677
6033 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6034 from decoded_options[0], not from itself.
6035
f6449011
UB
60362011-05-16 Uros Bizjak <ubizjak@gmail.com>
6037
6038 * config/i386/constraints.md (z): New constraint.
6039 * config/i386/i386.c (c): New mode attribute.
6040 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6041 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6042 constraint for operand 0.
6043 (*call_vzeroupper): Ditto.
6044 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6045 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6046 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6047 Use "lzm" constraint for operand 0.
6048 (*call_pop_vzeroupper): Ditto.
6049 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6050 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6051 constraint for operand 0.
6052 (*sibcall_vzeroupper): Ditto.
6053 (*sibcall_rex64_ms_sysv): Ditto.
6054 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6055 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6056 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6057 (*sibcall_pop_vzeroupper): Ditto.
6058 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6059 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6060 mode iterator. Use "<c>zm" constraint for operand 1.
6061 (*call_value_vzeroupper): Ditto.
6062 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 6063 for operand 1.
f6449011
UB
6064 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6065 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6066 *call_value_pop_1. Use "lzm" constraint for operand 1.
6067 (*call_value_pop_vzeroupper): Ditto.
6068 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6069 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6070 mode iterator. Use "Uz" constraint for operand 1.
6071 (*sibcall_value_vzeroupper): Ditto.
6072 (*sibcall_value_rex64_ms_sysv): Ditto.
6073 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6074 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6075 constraint for operand 1.
6076 (*sibcall_value_pop_vzeroupper): Ditto.
6077 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6078 and "z" constraint for operand 2.
6079 (*tls_global_dynamic_32_gnu): Ditto.
6080 (*tls_local_dynamic_base_32_gnu): Ditto.
6081 (*tls_local_dynamic_base_64): Ditto.
6082 (*tls_local_dynamic_32_once): Ditto.
6083 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6084 Update all callers.
6085 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6086
c11b6902
RG
60872011-05-16 Richard Guenther <rguenther@suse.de>
6088
6089 * gimple.c (gimple_types_compatible_p_1): Use names of the
6090 type itself, not its main variant.
6091 (iterative_hash_gimple_type): Likewise.
6092
1e83b5f1
RG
60932011-05-16 Richard Guenther <rguenther@suse.de>
6094
f6449011
UB
6095 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6096 always visit pointer target and function result and argument types.
1e83b5f1 6097
62e36382
JM
60982011-05-16 Jason Merrill <jason@redhat.com>
6099
6100 PR c++/48999
6101 * tree-inline.c (copy_statement_list): Put back recursion.
6102
687027a4
GJL
61032011-05-16 Georg-Johann Lay <avr@gjlay.de>
6104
6105 PR target/27663
6106 PR target/41076
6107 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6108 * config/avr/avr.md ("*ior<mode>qi.byte0",
6109 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6110
f24a5190
GJL
61112011-05-16 Georg-Johann Lay <avr@gjlay.de>
6112
6113 PR target/45099
6114 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6115 register is needed for a function argument.
6116
3066f593
RG
61172011-05-16 Richard Guenther <rguenther@suse.de>
6118
6119 * gimple.c (struct type_hash_pair): New type.
6120 (type_hash_pair_compare): New function.
f6449011 6121 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 6122
b2ab2cf4
RE
61232011-05-16 Revital Eres <revital.eres@linaro.org>
6124
f6449011 6125 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 6126
dfb737fc
UB
61272011-05-15 Uros Bizjak <ubizjak@gmail.com>
6128
6129 * config/i386/i386.md (floating point move splitters): Fix
6130 usage of standard_80387_constant_p.
f6449011 6131 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 6132
8caa1de0
UB
61332011-05-15 Uros Bizjak <ubizjak@gmail.com>
6134
6135 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6136
8a519095
EB
61372011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6138
6139 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6140 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6141 (tree_ssa_lim_finalize): Likewise.
6142
479fecd3
UB
61432011-05-14 Uros Bizjak <ubizjak@gmail.com>
6144
6145 * config/i386/constraint.md (Yd, Yx): New register constraints.
6146 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6147 Yd conditional register constraint.
6148 (*movtf_internal): Use standard_sse_constant_opcode.
6149 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6150 Yx conditional register constraint.
6151 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6152 Yd conditional register constraint. Use standard_sse_constant_p to
6153 check for valid SSE constants and call standard_sse_constant_opcode to
6154 output SSE insn.
6155 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6156 constants and call standard_sse_constant_opcode to output SSE insn.
6157 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6158 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6159 optimize_size is set.
6160 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6161
2d8c9ad5
TB
61622011-05-14 Tobias Burnus <burnus@net-b.de>
6163
6164 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6165
411a20d6
MJ
61662011-05-13 Martin Jambor <mjambor@suse.cz>
6167
6168 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6169 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6170 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6171 (evaluate_conditions_for_ipcp_clone): Removed.
6172 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6173 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6174 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6175
dc764d10
EB
61762011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6177
6178 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6179 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6180 lieu of MAY_HAVE_DEBUG_STMTS.
6181 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6182 debug statements if !MAY_HAVE_DEBUG_STMTS.
6183
9f47a24e
MT
61842011-05-13 Martin Thuresson <martint@google.com>
6185
6186 PR gcov-profile/47793
6187 * libgcov.c (gcov_exit): Support relative profile paths.
6188 * doc/invoke.texi (-fprofile-dir): Update for above change.
6189
b8a71aed
RG
61902011-05-13 Richard Guenther <rguenther@suse.de>
6191
6192 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6193 type-pair caching, do not compare hashes.
6194
eb9f9259
NF
61952011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6196
6197 PR middle-end/48965
6198 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6199 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6200
3c6cbf7a
KT
62012011-05-13 Kai Tietz <ktietz@redhat.com>
6202
6203 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6204 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6205 compatible type for TRUTH_NOT_EXPR.
6206
2e7f5dc0
L
62072011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6208
dc764d10 6209 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
6210 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6211 can_create_pseudo_p ().
6212
e834e95c
RG
62132011-05-13 Richard Guenther <rguenther@suse.de>
6214
6215 PR lto/48978
6216 * gimple.c (iterative_hash_gimple_type): Revert change in
6217 pointer target and function result and argument hashing.
6218
34203483
UB
62192011-05-13 Uros Bizjak <ubizjak@gmail.com>
6220
6221 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6222 (*movxf_internal_nointeger): Ditto.
6223 (*movdf_internal_rex64): Ditto.
6224 (*movdf_internal): Ditto.
6225 (*movdf_internal_nointeger): Ditto.
6226 (*movsf_internal): Ditto.
6227 (sincos splitters): Use can_create_pseudo ().
6228
7eb68c06
JM
62292011-05-13 Joseph Myers <joseph@codesourcery.com>
6230
6231 * config/i386/i386-opts.h: New.
6232 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6233 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6234 ix86_section_threshold): Remove.
6235 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6236 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6237 OPT_mbranch_cost_.
6238 (ix86_option_override_internal): Don't decode strings for options
6239 other than -march=, -mtune= and -mfpmath=. Don't allow for
6240 __attribute__ uses in remaining diagnostics for options with
34203483 6241 string arguments. Don't check for integer arguments being negative.
7eb68c06 6242 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 6243 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
6244 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6245 ix86_branch_cost, ix86_section_threshold): Remove.
6246 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6247 HeaderInclude.
6248 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6249 but not Var.
6250 (masm=): Use Enum and Init.
6251 (asm_dialect): New Enum and EnumValue entries.
6252 (mbranch-cost=): Use UInteger.
6253 (mlarge-data-threshold=): Use UInteger and Init.
6254 (mcmodel=): Use Enum and Init.
6255 (cmodel): New Enum and EnumValue entries.
6256 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6257 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6258 mregparm=): Use UInteger.
6259 (mstringop-strategy=): Use Enum and Init.
6260 (stringop_alg): New Enum and EnumValue entries.
6261 (mtls-dialect=): Use Enum and Init.
6262 (tls_dialect): New Enum and EnumValue entries.
6263 (mabi=): Use Enum and Init.
6264 (calling_abi): New Enum and EnumValue entries.
6265 (mveclibabi=): Use Enum and Init.
6266 (ix86_veclibabi): New Enum and EnumValue entries.
6267
f67e203c
NC
62682011-05-13 Nick Clifton <nickc@redhat.com>
6269
34203483
UB
6270 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6271 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 6272
221df0b6
KT
62732011-05-13 Kai Tietz <ktietz@redhat.com>
6274
6275 PR middle-end/48984
6276 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6277 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6278 (gimple_boolify): Check for cast for boolean_type_node instead for
6279 BOOLEAN_TYPE.
6280
208cb8cb
RG
62812011-05-13 Richard Guenther <rguenther@suse.de>
6282
6283 PR tree-optimization/48172
6284 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6285 multiplying by number of iterations for equal step.
6286 (vect_create_cond_for_alias_checks): Likewise.
6287
b88ecf55
AS
62882011-05-13 Andreas Schwab <schwab@redhat.com>
6289
6290 * configure.ac: Use AS_HELP_STRING throughout.
6291 * configure: Regenerate.
6292
569b527e
L
62932011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6294
34203483 6295 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
6296 (ix86_emit_restore_regs_using_mov): Likewise.
6297 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6298
8b9a1428
AS
62992011-05-12 Anatoly Sokolov <aesok@post.ru>
6300
6301 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6302 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6303 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6304 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6305 RTX_OK_FOR_OLO10_P): ...here.
6306 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6307 SYMBOLIC_CONST.
6308
1d15f620
KT
63092011-05-12 Kai Tietz <ktietz@redhat.com>
6310
6311 * gimplify.c (gimple_boolify): Re-boolify expression
6312 arguments even if expression type is of kind BOOLEAN_TYPE.
6313 (gimplify_boolean_expr): Removed.
6314 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6315 and XOR. Additional take care that we keep expression's type.
6316 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6317 of TRUTH_AND|OR|XOR_EXPR.
6318
c2b5fc8d
JJ
63192011-05-12 Jakub Jelinek <jakub@redhat.com>
6320
6321 PR tree-optimization/48975
6322 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6323 on all bbs here and free and clear ifc_bbs at the end.
6324
61332f77
RG
63252011-05-12 Richard Guenther <rguenther@suse.de>
6326
6327 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6328 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6329 until after simple checks.
6330 (gimple_types_compatible_p): Likewise.
6331 (iterative_hash_gimple_type): Always hash pointer targets
6332 and function return and argument types.
6333 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6334 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6335 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6336 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6337 completely in the simple compare section.
6338 (gimple_register_canonical_type): Query the cache again after
6339 registering.
6340
e2a3a5f1
RG
63412011-05-12 Richard Guenther <rguenther@suse.de>
6342
6343 PR tree-optimization/48172
6344 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6345 the number of iterations from the segment size calculation.
6346 (vect_create_cond_for_alias_checks): Adjust.
6347
2c703f3a
JJ
63482011-05-12 Jakub Jelinek <jakub@redhat.com>
6349
6350 PR debug/48967
6351 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6352 if validate_subreg fails.
6353
63542011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
6355
6356 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6357 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6358 early.
6359
87e91fca
DD
63602011-05-12 DJ Delorie <dj@redhat.com>
6361
d53903d6 6362 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
6363 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6364 created builtin into rx_builtins array.
6365 (rx_builtin_decl): New function.
34203483 6366 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 6367
5f2f13fd
DD
63682011-05-12 DJ Delorie <dj@redhat.com>
6369 Nick Clifton <nickc@redhat.com>
6370
6371 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6372 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6373 (rx_is_legitimate_address): Add pre-decrement and post-increment
6374 addressing in HImode and QImode. Fix test for out of range
6375 REG+INT addressing.
87e91fca 6376 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 6377 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 6378 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 6379 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 6380
57421f45
JM
63812011-05-11 Jason Merrill <jason@redhat.com>
6382
6383 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6384
898c90c0
EB
63852011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6386
6387 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6388 reindent the subsequent block.
6389
79bec923
ST
63902011-05-11 Satoru Takabayashi <satorux@google.com>
6391 Paul Pluzhnikov <ppluzhnikov@google.com>
6392
34203483 6393 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
6394 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6395 * config.in: Add LINKER_HASH_STYLE.
6396 * configure.ac: Add --with-linker-hash-style.
6397 * configure: Regenerate.
79bec923 6398
d0340959
RG
63992011-05-11 Richard Guenther <rguenther@suse.de>
6400
6401 PR middle-end/48964
6402 * gimple.c (iterative_hash_canonical_type): Fix typo.
6403
cb032fee
UB
64042011-05-11 Uros Bizjak <ubizjak@gmail.com>
6405
6406 * config/i386/i386.c (legitimize_tls_address)
479fecd3 6407 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
6408 expanders directly for TARGET_GNU2_TLS. Determine pic and
6409 __tls_get_addr symbol reference here. Update call to
6410 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 6411 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
6412 expanders directly for TARGET_GNU2_TLS. Determine
6413 __tls_get_addr symbol reference here. Update call to
6414 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6415 unique UNSPEC REG_EQUIV to libcall block.
6416 (ix86_tls_get_addr): Declare static.
6417 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6418 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6419 Do not determine pic and __tls_get_addr symbol reference here. Do not
6420 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6421 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6422 (tls_global_dynamic_64): Add operand 2. Do not determine
6423 __tls_get_addr symbol reference here. Do not call
6424 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6425 (tls_local_dynamic_base64): Ditto for operand 1.
6426
6d3cc8f0
EB
64272011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6428
6429 * function.c (expand_function_start): Initialize stack_check_probe_note
6430 only if the generic stack checking mechanism is used.
6431
51e020fc
RG
64322011-05-11 Richard Guenther <rguenther@suse.de>
6433
6434 PR tree-optimization/15256
6435 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6436 (A & B) | C, combine (A op CST1) op CST2.
6437 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6438 visit assigns that have uses.
6439
51545682
NF
64402011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6441
cb032fee 6442 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
6443 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6444 (unpack_ts_type_common_value_fields): ...this. Update comment.
6445 (unpack_value_fields): Adjust for renaming.
6446 (lto_input_ts_type_tree_pointers): Split into...
6447 (lto_input_ts_type_common_tree_pointer): ...this and...
6448 (lto_input_ts_type_non_common_tree_pointers): ...this.
6449 (lto_input_tree_pointers): Adjust for above split.
6450 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6451 (pack_ts_type_common_value_fields): ...this. Update comment.
6452 (lto_output_ts_type_tree_pointers): Split into...
6453 (lto_output_ts_type_common_tree_pointers): ...this and...
6454 (lto_output_ts_type_non_common_tree_pointers): ...this.
6455 (lto_output_tree_pointers): Adjust for above split.
6456 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6457 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6458 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6459 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6460 Define.
6461 (struct tree_type): Split into...
6462 (struct tree_type_common: ...this and...
6463 (struct tree_type_with_lang_specific): ...this and...
6464 (struct tree_type_non_common): ...this. Adjust accessor macros
6465 accordingly.
6466 (TYPE_VALUES_RAW): Define.
6467 (union tree_node): Update for above changes.
6468 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6469 TS_TYPE_NON_COMMON.
6470 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6471 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6472 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6473 * treestructu.def (TS_TYPE): Remove.
6474 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6475 Define.
6476
b03c3082
JJ
64772011-05-11 Jakub Jelinek <jakub@redhat.com>
6478
6479 PR debug/48159
6480 * tree-ssa.c (reset_debug_uses): New function.
6481 * tree-flow.h (reset_debug_uses): New prototype.
6482 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6483 * tree-loop-distribution.c (generate_loops_for_partition): Call
6484 reset_debug_uses on the stmts that will be removed. Keep around
6485 all debug stmts, don't count them as bits in partition bitmap.
6486 (generate_builtin): Don't count debug stmts or labels as bits in
6487 partition bitmap.
6488
b5e04de5
RG
64892011-05-11 Richard Guenther <rguenther@suse.de>
6490
6491 * gimple.c (gimple_type_hash_1): Merge with ...
6492 (gimple_type_hash): ... this.
6493 (gtc_visit): Remove mode parameter and simplify accordingly.
6494 (gimple_types_compatible_p_1): Likewise.
6495 (gimple_types_compatible_p): Likewise.
6496 (iterative_hash_gimple_type): Likewise.
6497 (visit): Likewise.
6498 (gimple_type_eq): Adjust.
6499
fc6970e4
RE
65002011-05-11 Revital Eres <revital.eres@linaro.org>
6501
6502 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6503 enters the branch create an anti edge in the opposite direction
6504 to prevent the creation of reg-moves.
6505 * modulo-sched.c: Adjust comment to reflect the fact we are
6506 scheduling closing branch.
6507 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6508 (stage_count): New field in struct partial_schedule.
6509 (calculate_stage_count): New function.
6510 (normalize_sched_times): Rename to reset_sched_times and handle
6511 incrementing the sched time of the nodes by a constant value
6512 passed as parameter.
6513 (duplicate_insns_of_cycles): Skip closing branch.
6514 (sms_schedule_by_order): Schedule closing branch.
6515 (ps_insn_find_column): Handle closing branch.
6516 (sms_schedule): Call reset_sched_times and adjust the code to
6517 support scheduling of the closing branch.
6518 (ps_insert_empty_row): Update calls to normalize_sched_times
6519 and rotate_partial_schedule functions.
6520
41a58a92
RG
65212011-05-11 Richard Guenther <rguenther@suse.de>
6522
6523 PR middle-end/48953
6524 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6525
e9f8dcf9
JM
65262011-05-11 Joseph Myers <joseph@codesourcery.com>
6527
cb032fee
UB
6528 * opts.c (finish_options): Move warning settings from process_options.
6529 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 6530
10c224a9
RG
65312011-05-11 Richard Guenther <rguenther@suse.de>
6532
6533 PR tree-optimization/18041
6534 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6535 (simplify_bitwise_binary): ... this. Handle operand conversions
6536 by applying them to the result instead.
6537 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6538
825b27de
RG
65392011-05-11 Richard Guenther <rguenther@suse.de>
6540
6541 * gimple.c (gimple_canonical_types_compatible_p): Split out
6542 from gimple_types_compatible_p and friends. Do not recurse
6543 to pointed-to types.
6544 (gimple_canonical_type_eq): Use it.
6545 (iterative_hash_canonical_type): Split out from
6546 iterative_hash_gimple_type and friends. Do not recurse
6547 to pointed-to types.
6548 (gimple_canonical_type_hash): Use it, allocate the hash here.
6549
ca756625
RE
65502011-05-11 Revital Eres <revital.eres@linaro.org>
6551
6552 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6553 recognizing doloop.
6554
b8abece3
RE
65552011-05-11 Revital Eres <revital.eres@linaro.org>
6556
6557 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6558 instead of PREV_INSN.
6559
ce7b3761
RE
65602011-05-11 Revital Eres <revital.eres@linaro.org>
6561
6562 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6563 * loop-doloop.c (doloop_condition_get): Likewise.
6564 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6565 (doloop_end): New.
6566 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6567
a9dc9d37
NF
65682011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6569
6570 * tree.def (CASE_LABEL_EXPR): Add an operand.
6571 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6572
96703596
JM
65732011-05-10 Joseph Myers <joseph@codesourcery.com>
6574
6575 * c-decl.c (c_override_global_bindings_to_false): Remove.
6576 (global_bindings_p): Don't check
6577 c_override_global_bindings_to_false.
6578 * c-tree.h (c_override_global_bindings_to_false): Remove.
6579 * c-typeck.c (composite_type): Don't set
6580 c_override_global_bindings_to_false.
6581
dbcc9f08
MM
65822011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6583
6584 PR target/48857, 48495
6585 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6586 (VSX_MODE): Ditto.
6587 (VSX_MOVE_MODE): Ditto.
6588 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6589 VSX vector types. Add V2DImode.
6590 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6591 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6592 (MODES_TIEABLE_P): Ditto.
6593
6594 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6595 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6596 VSX_VECTOR_MODE.
6597 (init_cumulative_args): Ditto.
6598 (rs6000_function_arg_boundary): Ditto.
6599 (rs6000_function_arg_advance_1): Ditto.
6600 (rs6000_function_arg): Ditto.
6601 (rs6000_function_ok_for_sibcall): Ditto.
6602 (emit_frame_save): Ditto.
6603 (rs6000_function_value): Ditto.
6604 (rs6000_libcall_value): Ditto.
6605
4a68b4ca
JM
66062011-05-10 Joseph Myers <joseph@codesourcery.com>
6607
6608 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6609 i386/darwin-lib.h to $libgcc_tm_file.
6610 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6611
bcb521e9
JM
66122011-05-10 Joseph Myers <joseph@codesourcery.com>
6613
6614 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6615
f10d3ac9
JM
66162011-05-10 Joseph Myers <joseph@codesourcery.com>
6617
cb032fee 6618 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
6619 * config/rs6000/rs6000-tables.opt: New file (generated).
6620 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6621 rs6000/rs6000-tables.opt to extra_options.
6622 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6623 * config/rs6000/rs6000.c (rs6000_select): Remove.
6624 (processor_target_table): Move contents to rs6000-cpus.def.
6625 (darwin_rs6000_override_options): Check
6626 global_options_set.x_rs6000_cpu_index instead of
6627 rs6000_select[1].string.
6628 (rs6000_option_override_internal): Likewise.
6629 (rs6000_handle_option): Don't assert that global structures are in
6630 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6631 (rs6000_default_cpu): New variable.
6632 (rs6000_file_start): Set it instead of local default_cpu. Check
6633 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6634 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6635 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6636 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6637 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6638 rs6000_select): Remove.
6639 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6640 Remove.
6641 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6642 * config/rs6000/t-rs6000
6643 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6644 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6645 global_options_set.x_rs6000_cpu_index instead of
6646 rs6000_select[1].string.
6647 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6648 global_options_set.x_rs6000_cpu_index instead of
6649 rs6000_select[1].string.
6650
80cf2e08
JM
66512011-05-10 Joseph Myers <joseph@codesourcery.com>
6652
6653 * config.gcc (libgcc_tm_file): Define instead of including files
6654 from ../../libgcc/config/ in tm_file.
cb032fee 6655 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
6656 * configure: Regenerate.
6657 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6658 libgcc_tm.h, cs-libgcc_tm.h): New.
6659 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6660 (clean): Remove libgcc_tm.h.
6661 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6662 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6663 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6664
fd01a351
GJL
66652011-05-10 Georg-Johann Lay <avr@gjlay.de>
6666
6667 PR target/48896
6668 * config/avr/avr.c (avr_ret_register): Return unsigned int
6669 instead of int.
6670 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6671 it to avr_libcall_value.
6672 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6673 expand_expr.
6674 (avr_expand_binop_builtin): Ditto.
6675 (avr_expand_unop_builtin): Ditto.
6676
34cc3c86
DD
66772011-05-10 DJ Delorie <dj@redhat.com>
6678
6679 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6680 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6681 * config/rx/rx.c (rx_align_for_label): Add label and
6682 uses_threshold parameters. Do not align when the label is not
6683 used enough.
6684 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6685
be173289
RG
66862011-05-10 Richard Guenther <rguenther@suse.de>
6687
6688 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6689 a series of conversions and apply foldings similar to what
6690 fold-const does.
6691 (tree_ssa_forward_propagate_single_use_vars): Call it.
6692
e7f78021
JJ
66932011-05-10 Jakub Jelinek <jakub@redhat.com>
6694
6ae70ea2
JJ
6695 PR tree-optimization/48611
6696 PR tree-optimization/48794
6697 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6698 referenced from RESX or EH_DISPATCH arguments.
6699
e7f78021
JJ
6700 PR debug/48928
6701 * dfp.c (decimal_to_decnumber): Handle conversion from
6702 dconst{1,2,m1,half}.
6703
fca132b9
UB
67042011-05-09 Uros Bizjak <ubizjak@gmail.com>
6705
6706 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6707 for !flag_prefer_avx128.
6708 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6709
e4c03378
EB
67102011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6711
6712 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6713 (fold_ternary_loc): Use expr_location_or.
6714
805d6a75
L
67152011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6716
6717 PR debug/48853
6718 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6719 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6720 Pmode and mem_mode is not VOIDmode.
6721
e4c03378 67222011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 6723
e4c03378
EB
6724 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6725 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 6726
51e7f377
UB
67272011-05-09 Uros Bizjak <ubizjak@gmail.com>
6728
6729 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6730 (const_pow2_1_to_8_operand): Ditto.
6731 (const_pow2_1_to_128_operand): Ditto.
6732 (const_pow2_1_to_32768_operand): Ditto.
6733 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6734 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6735 in insn constraint to check integer value of operand 3.
6736 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6737
6738 (PINSR_MODE): New mode iterator.
6739 (sse2p4_1): New mode attribute.
6740 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6741 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6742 iterator. Use const_int_operand instead of
6743 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6744 exact_log2 in insn constraint to check integer value of operand 3.
6745
67462011-05-09 Uros Bizjak <ubizjak@gmail.com>
6747
6748 * config/i386/sse.md (blendbits): Remove mode attribute.
6749 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6750 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6751 Check integer value of operand 3 in insn constraint.
6752
0ca8de87
RG
67532011-05-09 Richard Guenther <rguenther@suse.de>
6754
6755 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6756 for diagnostics.
6757 (lto_symtab_merge): Likewise. Do not register types here.
6758 (lto_symtab_merge_decls_2): Likewise.
6759 (lto_symtab_merge_decls_1): Likewise.
6760 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6761 * gimple.c (enum gtc_mode): Declare.
6762 (gimple_types_compatible_p): Make static.
6763
a9e6994a
AK
67642011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6765
6766 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6767 temporary register to match Pmode.
6768
fb55d62e
UB
67692011-05-09 Uros Bizjak <ubizjak@gmail.com>
6770
6771 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6772 and *vec_concatv4si_1_avx.
6773
eb1485a6
UB
67742011-05-09 Uros Bizjak <ubizjak@gmail.com>
6775
6776 PR rtl-optimization/48927
6777 * ira-conflicts.c (commutative_constraint_p): Use
6778 recog_data.alternative_enabled_p to disable alternatives where
6779 "enabled" attribute is false.
6780 (get_dup_num): Ditto.
6781 * ira-lives.c (single_reg_class): Ditto.
6782 (ira_implicitly_set_insn_hard_regs): Ditto.
6783
c46d001a
EB
67842011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6785
6786 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6787 (dataflow_set_preserve_mem_locs): Likewise.
6788
67892011-05-09 Philipp Thomas <pth@suse.de>
6790
6d9e7c41
PT
6791 * config/mep/mep.c (mep_validate_vliw): Syntax description
6792 should not be translated.
6793
d371df6f
JM
67942011-05-09 Joseph Myers <joseph@codesourcery.com>
6795
6796 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6797 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 6798 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
6799 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6800 MIPS_ARCH_OPTION_NATIVE): Define.
6801 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6802 mips-cpus.def.
6803 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6804 mips_parse_cpu): Remove.
6805 (mips_cpu_info_from_opt, mips_default_arch): New.
6806 (mips_handle_option): Don't assert that global structures are in
6807 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6808 (mips_option_override): Use new variables and functions to set
eb1485a6 6809 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
6810 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6811 definition.
6812 * config/mips/mips.opt (march=): Use ToLower and Enum.
6813 (mips): Use ToLower, Enum and Var.
6814 (mtune=): Use ToLower and Enum.
6815 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6816
4fc07af9
JH
68172011-05-08 Jan Hubicka <jh@suse.cz>
6818
6819 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6820 Arrange type pairs to be UID ordered.
6821 (gimple_lookup_type_leader): Make inline.
6822
2cf320a8
NC
68232011-05-09 Nick Clifton <nickc@redhat.com>
6824
61d6def5
NC
6825 PR target/48899
6826 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6827 PROCESSOR_DEFAULT.
6828
2cf320a8
NC
6829 PR target/48897
6830 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6831 variable 's'.
6832
4f82319d
CLT
68332011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6834
6835 * combine.c (simplify_comparison): Abstract out parts into...
6836 (simplify_compare_const): ... new function.
6837 (try_combine): Generalize parallel arithmetic/compare combining
6838 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6839
74605a11
JH
68402011-05-08 Jan Hubicka <jh@suse.cz>
6841
6842 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
6843 (cgraph_create_virtual_clone): Call hooks once virtual clone
6844 is finished.
74605a11 6845 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
6846 * ipa-cp.c (ipcp_estimate_growth): Use
6847 estimate_ipcp_clone_size_and_time.
74605a11
JH
6848 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6849 * lto-cgraph.c (input_node): Update.
6850 * ipa-inline.c (recursive_inlining): Update.
6851 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6852 (evaluate_conditions_for_known_args): Break out from ...
6853 (evaluate_conditions_for_edge): ... here.
6854 (evaluate_conditions_for_ipcp_clone): New function.
6855 (inline_node_duplication_hook): Update clone summary based
6856 on parameter map.
6857 (estimate_callee_size_and_time): Rename to ...
6858 (estimate_node_size_and_time): take NODE instead of EDGE;
6859 take POSSIBLE_TRUTHS as argument.
6860 (estimate_callee_size_and_time): Update.
6861 (estimate_ipcp_clone_size_and_time): New function.
6862 (do_estimate_edge_time): Update.
6863
5c049507
RG
68642011-05-08 Richard Guenther <rguenther@suse.de>
6865
6866 PR middle-end/48908
6867 PR middle-end/48905
6868 * expmed.c (expand_shift_1): Compute adjusted constant shift
6869 amount manually.
6870
f64c36ba
EB
68712011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6872
6873 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6874
c461a957
EB
68752011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6876
6877 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6878
7c74e556
JW
68792011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6880
6881 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6882
b4c0a884
JH
68832011-05-07 Jan Hubicka <jh@suse.cz>
6884
a9bcb3f0
EB
6885 * ipa-inline-transform.c (inline_call): Account when program size
6886 decreases.
b4c0a884 6887 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
6888 (edge_badness): Reorganize to be power 2 based; fix thinko when
6889 computing badness for negative growth; update comments to match
6890 reality; better dumps.
b4c0a884 6891
c99c0026
EB
68922011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6893
6894 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6895 type to bool and adjust comment.
6896 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6897 (fold_mathfn_compare): Remove calls to global_bindings_p.
6898 (fold_inf_compare): Likewise.
6899 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6900 * c-tree.h (global_bindings_p): Adjust prototype.
6901 * c-decl.c (global_bindings_p): Return bool and simplify.
6902
1400c8e5
ZD
69032011-05-07 Zdenek Dvorak <ook@ucw.cz>
6904
6905 PR tree-optimization/48837
6906 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6907 when accumulator transformation is performed.
6908
5d0878e7
JH
69092011-05-06 Jan Hubicka <jh@suse.cz>
6910
a9bcb3f0
EB
6911 * i386.h (ix86_tune_indices): Add
6912 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 6913 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
6914 * i386.c (initial_ix86_tune_features): Add
6915 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
6916 (software_prefetching_beneficial_p): Remove predicate.
6917 (ix86_option_override_internal): Use new macro.
6918
58696ce5
JH
69192011-05-06 Jan Hubicka <jh@suse.cz>
6920
6921 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6922
c47d0034
JH
69232011-05-06 Jan Hubicka <jh@suse.cz>
6924
6925 * cgraph.c (cgraph_add_thunk): Create real function node instead
6926 of alias node; finalize it and mark needed/reachale; arrange visibility
6927 to be right and add it into the corresponding same comdat group list.
6928 (dump_cgraph_node): Dump thunks.
6929 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
6930 cgraph_function_with_gimple_body_p,
6931 cgraph_first_function_with_gimple_body,
c47d0034
JH
6932 cgraph_next_function_with_gimple_body): New functions.
6933 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6934 New macros.
6935 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6936 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6937 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6938 devirtualization when optimizing.
6939 (verify_cgraph_node): Verify thunks.
6940 (cgraph_analyze_function): Analyze thunks.
6941 (cgraph_mark_functions_to_output): Output thunks only in combination
6942 with function they are assigned to.
6943 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6944 alias into normal node.
6945 (assemble_thunks): New functoin.
6946 (cgraph_expand_function): Use it.
6947 * lto-cgraph.c (lto_output_node): Stream thunks.
6948 (input_overwrite_node): Stream in thunks.
6949 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6950 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6951 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6952 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6953 (inline_analyze_function): Do not care about thunk jump functions.
6954 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
6955 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6956 cgraph_function_with_gimple_body_p.
6957 * passes.c (do_per_function_toporder): Use
6958 cgraph_function_with_gimple_body_p.
c47d0034
JH
6959 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6960 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6961 (function_called_by_processed_nodes_p): Likewise.
6962
d8f426ec
JM
69632011-05-06 Joseph Myers <joseph@codesourcery.com>
6964
6965 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6966 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6967 entries.
6968 (mabi=): Replace with separate entries for mabi=altivec,
6969 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6970 mabi=ieeelongdouble and mabi=ibmlongdouble.
6971 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6972 check for -mabi=spe without SPE ABI support here.
6973 (rs6000_handle_option): Replace OPT_mabi_ handling with
6974 OPT_mabi_altivec and OPT_mabi_spe handling.
6975
80bde45b
CC
69762011-05-06 Cary Coutant <ccoutant@google.com>
6977
6978 * dwarf2out.c (contains_subprogram_definition): New function.
6979 (should_move_die_to_comdat): Call it.
6980
a91926b9
JL
69812011-05-06 Jeff Law <law@redhat.com>
6982
6983 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6984 remove_ctrl_stmt_and_useless_edges.
6985 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6986 (fixup_template_block, thread_single_edge): Likewise.
6987 (mark_threaded_blocks): Use THREAD_TARGET.
6988
1fc1b66d
AM
69892011-05-06 Alan Modra <amodra@gmail.com>
6990
6991 PR target/48900
6992 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6993 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6994
e194de64
UB
69952011-05-06 Uros Bizjak <ubizjak@gmail.com>
6996
6997 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6998 constraint modifier to "r".
6999
d740dc9e
JM
70002011-05-06 Joseph Myers <joseph@codesourcery.com>
7001
7002 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7003 fall through for OPT_mcmodel_.
7004
cab78b15
AK
70052011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7006
7007 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7008 instruction sizes.
e194de64 7009 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 7010
ee6824ae
RR
70112011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7012
eb1485a6
UB
7013 PR target/47930
7014 * config/arm/arm.opt (marm): Document it.
7015 (mthumb): Reject negative variant.
ee6824ae 7016
9ef58464
UB
70172011-05-06 Uros Bizjak <ubizjak@gmail.com>
7018
7019 PR target/48898
7020 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7021 Fix typo in "ccvt" variable name.
7022
155b6176
TG
70232011-05-06 Tristan Gingold <gingold@adacore.com>
7024
7025 PR target/48895
7026 * config/vms/vms-ar.c (main): Remove cwd variable.
7027
3becc47b
JJ
70282011-05-06 Jakub Jelinek <jakub@redhat.com>
7029
7030 PR debug/48902
7031 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7032
3d528853
NF
70332011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7034
7035 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7036 * gimplify.c (gimplify_switch_expr): Likewise.
7037 * omp-low.c (expand_omp_sections): Likewise.
7038 * tree-eh.c (lower_try_finally_switch): Likewise.
7039 (lower_eh_dispatch): Likewise.
7040 * tree.h (build_case_label): Declare.
7041 * tree.c (build_case_label): Define.
7042
deb5046b
JM
70432011-05-05 Jason Merrill <jason@redhat.com>
7044
7045 PR c++/40975
7046 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7047 (copy_statement_list): Don't recurse.
7048 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7049 STATEMENT_LIST.
7050
013c0411
JM
70512011-05-05 Joseph Myers <joseph@codesourcery.com>
7052
7053 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7054 through from -mfpu= handling.
7055 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7056
a0905f8b
BS
70572011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7058
7059 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7060 POST_MODIFY.
7061
fc4538e4
SE
70622011-05-05 Steve Ellcey <sje@cup.hp.com>
7063
7064 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7065 for 11.31.
7066 (hppa[12]*-*-hpux11*): Ditto.
7067 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7068 * config/ia64/hpux-unix2003.h: New.
7069 * config/pa/pa-hpux1131.opt: New.
7070 * config/pa/pa-hpux1131.h: New.
7071 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7072 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 7073 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 7074
1e30c578
JJ
70752011-05-05 Jakub Jelinek <jakub@redhat.com>
7076
7077 PR debug/48853
7078 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7079 instead of mode as 3rd argument to recursive call.
7080 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7081 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7082 VOIDmode.
7083 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7084 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7085 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7086 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7087
d19eb620
JB
70882011-05-05 Julian Brown <julian@codesourcery.com>
7089
7090 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7091 parenthesis in D-register case.
7092
c860fe8c
JM
70932011-05-05 Joseph Myers <joseph@codesourcery.com>
7094
7095 * opt-functions.awk (var_type_struct): Handle Enum options.
7096 * optc-gen.awk: Don't check range of variables of character type.
7097 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7098 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7099 rs6000_sdata_name, rs6000_explicit_options): Remove.
7100 (rs6000_option_override_internal): Check for -malign-power here.
7101 Use global_options_set instead of rs6000_explicit_options.
7102 (rs6000_parse_fpu_option): Remove.
7103 (rs6000_handle_option): Access variables via opts and opts_set
7104 pointers. Use error_at and warning_at. Add fall-through
7105 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7106 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7107 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7108 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7109 here. Don't use rs6000_parse_fpu_option.
7110 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7111 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7112 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7113 (mrecip=): Use Var.
7114 (mspe): Use Var and Save.
7115 (mtraceback=): Use Enum and Var.
7116 (rs6000_traceback_type): New Enum and EnumValue entries.
7117 (mfloat-gprs=): Use Enum, Var and Save.
7118 (rs6000_float_gprs): New Enum and EnumValue entries.
7119 (mlong-double-): use Var and Save.
7120 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7121 (malign-): Use Enum and Var.
7122 (rs6000_alignment_flags): New Enum and EnumValue entries.
7123 (mfpu=): Use Enum.
7124 (fpu_type_t): New Enum and EnumValue entries.
7125 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7126 global_options_set instead of rs6000_explicit_options.
7127 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7128 global_options_set instead of rs6000_explicit_options.
7129 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7130 global_options_set instead of rs6000_explicit_options.
7131 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7132 global_options_set instead of rs6000_explicit_options.
7133 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7134 global_options_set instead of rs6000_explicit_options.
7135 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7136 global_options_set instead of rs6000_explicit_options.
7137 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7138 definition.
7139 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7140 global_options_set instead of rs6000_explicit_options.
7141 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7142 (rs6000_cmodel): New Enum and EnumValue entries.
7143 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7144 global_options_set instead of rs6000_explicit_options.
7145 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7146 (mtls-size=): Use Enum and Var.
7147 (rs6000_tls_size): New Enum and EnumValue entries.
7148
0691dde9
MM
71492011-05-05 Michael Matz <matz@suse.de>
7150
7151 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7152 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7153 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7154 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7155 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7156 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7157 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7158 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7159 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7160 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7161 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7162 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7163 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7164 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7165 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7166 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7167
86529a49
RG
71682011-05-05 Richard Guenther <rguenther@suse.de>
7169
7170 * expmed.c (expand_variable_shift): Rename to ...
7171 (expand_shift_1): ... this. Take an expanded shift amount.
7172 For rotates recurse directly not building trees for the shift amount.
7173 (expand_variable_shift): Wrap around expand_shift_1.
7174 (expand_shift): Adjust.
7175
d0228c2e
JJ
71762011-05-05 Jakub Jelinek <jakub@redhat.com>
7177
7178 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7179
907a08d9
EB
71802011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7181
7182 * tree.h (get_pending_sizes): Remove prototype.
7183 (put_pending_size): Likewise.
7184 (put_pending_sizes): Likewise.
7185 * stor-layout.c (pending_sizes): Delete.
7186 (get_pending_sizes): Likewise.
7187 (put_pending_size): Likewise.
7188 (put_pending_sizes): Likewise.
7189 (variable_size): Do not call put_pending_size and tidy up.
7190 * function.h (struct function): Remove dont_save_pending_sizes_p.
7191 * lto-streamer-in.c (input_function): Do not stream it.
7192 * lto-streamer-out.c (output_function): Likewise.
7193 * tree-inline.c (initialize_cfun): Do not copy it.
7194 * c-decl.c (store_parm_decls): Do not set it.
7195 * omp-low.c (create_task_copyfn): Likewise.
7196 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7197
386d9c57
UB
71982011-05-05 Uros Bizjak <ubizjak@gmail.com>
7199
7200 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7201 conditions.
7202 (*movdf_internal): Ditto.
7203 (*movdf_internal_nointeger): Ditto.
7204 (*movsf_internal): Ditto.
7205
a04a722b
JM
72062011-05-05 Joseph Myers <joseph@codesourcery.com>
7207
7208 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7209 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7210 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7211 (c_variable_size): Remove.
7212 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7213 call put_pending_sizes.
7214 (get_parm_info): Add parameter expr. Use it to set
7215 arg_info->pending_sizes.
7216 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7217 get_pending_sizes.
7218 * c-parser.c (c_parser_parms_declarator): Update call to
7219 c_parser_parms_list_declarator.
7220 (c_parser_parms_list_declarator): Take parameter expr. Update
7221 call to push_parm_decl. Update recursive call. Don't call
7222 get_pending_sizes. Update calls to get_parm_info.
7223 (c_parser_objc_method_definition): Update calls to
7224 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 7225 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
7226 (c_parser_objc_method_decl): Add parameter expr. Update call to
7227 grokparm.
386d9c57 7228 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
7229 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7230 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7231
c92a6f97
MH
72322011-05-05 Michael Hope <michael.hope@linaro.org>
7233
386d9c57
UB
7234 PR pch/45979
7235 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7236 __ARM_EABI__ hosts.
c92a6f97 7237
07ea0048
UW
72382011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7239
7240 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7241 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7242 (spu_output_mi_thunk): New function.
7243
d634bfa1
RO
72442011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7245
7246 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7247 targetm.asm_out.print_operand.
7248 * config/sol2.c: Include target.h.
7249
40fda55b
JH
72502011-05-04 Jan Hubicka <jh@suse.cz>
7251
7252 * ipa-inline.c (reset_edge_caches): New function.
7253 (update_caller_keys): Add check_inlinablity_for; do not
7254 reset edge caches; remove now unnecesary loop.
386d9c57 7255 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
7256 (update_all_callee_keys): Likewise.
7257 (inline_small_functions): Sanity check cache; update code
7258 recomputing it.
7259
0360f70d
BS
72602011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7261
7262 PR rtl-optimization/47612
7263 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7264 as the last insn of the sequence to be moved.
7265
7a994646
TB
72662011-05-04 Tobias Burnus <burnus@net-b.de>
7267
7268 PR fortran/48864
7269 * doc/invoke.texi (Ofast): Document that it
7270 enables Fortran's -fno-protect-parens.
7271
7a2f7208
UB
72722011-05-04 Uros Bizjak <ubizjak@gmail.com>
7273
7274 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7275
a2d42931
EB
72762011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7277
7278 * stor-layout.c (variable_size): Do not issue errors.
7279
f81b1a3d
RG
72802011-05-04 Richard Guenther <rguenther@suse.de>
7281
7282 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7283 for array-ref indices.
7284 (tree_coverage_counter_addr): Likewise.
7285 (build_fn_info_type): Use size_int for index types.
7286 (build_gcov_info): Likewise.
7287
c62c040f
RG
72882011-05-04 Richard Guenther <rguenther@suse.de>
7289
7290 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7291 to build_int_cst.
7292 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7293 for constructor indices.
7294 (push_init_level): Likewise.
7295
1e3287d0
RG
72962011-05-04 Richard Guenther <rguenther@suse.de>
7297
7298 * explow.c (promote_mode): Move variable declarations before code.
7299
6c32445b
NF
73002011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7301
7302 * tree.h (build_function_type_array): Declare.
7303 (build_varargs_function_type_array): Declare.
7304 (build_function_type_vec, build_varargs_function_type_vec): Define.
7305 * tree.c (build_function_type_array_1): New function.
7306 (build_function_type_array): New function.
7307 (build_varargs_function_type_array): New function.
7308
fdabf269
RS
73092011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7310
7311 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7312 before setting STMT_VINFO_TYPE.
7313
a207915a
UW
73142011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7315
7316 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7317 instead of spu_pass_by_reference.
7318
5e617be8
AK
73192011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7320
7321 * calls.c (emit_library_call_value_1): Invoke
7322 promote_function_mode hook on libcall arguments.
7323 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7324 argument being NULL.
7325 * targhooks.c (default_promote_function_mode): Lisewise.
7326 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7327 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7328
7329 * doc/tm.texi: Document that TYPE argument might be NULL.
7330
486d04be
SH
73312011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7332
7333 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7334
9b19b026
SH
73352011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7336
7337 From Bernd Schmidt
7338 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7339
502bc3df
RO
73402011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7341
7342 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7343 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7344 Move ...
7345 * mips-tfile.c: ... here.
7346 Don't include coretypes.h, tm.h, filenames.h.
7347 (saber_stop): Remove definition and all calls.
7348 [__SABER__]: Remove.
7349 (__LINE__): Remove default.
7350 (Size_t, Ptrdiff_t): Remove definitions.
7351 Replace by size_t, ptrdiff_t.
7352 [!MIPS_DEBUGGING_INFO]: Remove.
7353 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7354 (progname): Add const.
7355 (STATIC): Remove.
7356 Replace all uses by static.
7357 (ALIGN_SYMTABLE_OFFSET): Remove default.
7358 * mips-tdump.c: Don't include coretypes.h, tm.h.
7359 Remove !MIPS_IS_STAB guard.
7360 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7361 $(TM_H), filenames.h dependencies.
7362 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7363
991eb6ef
SH
73642011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7365
7366 From Jie Zhang
7367 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7368 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7369
420ccc84
SH
73702011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7371
7372 From Bernd Schmidt
7373 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7374 account and save/restore RETS.
7375 (PROFILE_BEFORE_PROLOGUE): Define.
7376 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7377 the push insn to use predecrement.
7378
9f8d69ee
SH
73792011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7380
7381 From Jie Zhang
7382 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7383
662c03f4
NC
73842011-05-04 Nick Clifton <nickc@redhat.com>
7385
7386 * config/mn10300/mn10300.c: Include cfgloop.h.
7387 (DUMP): New macro.
7388 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7389 Lcc or a FLcc insn into the instruction stream.
7390 (mn10300_block_contains_call): New function. Returns true if the
7391 given basic block contains a CALL insn.
7392 (mn10300_loop_contains_call_insn): New function. Returns true if
7393 the given loop contains a CALL insn.
7394 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7395 to use the SETLB and Lcc or FLcc insns.
7396 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7397 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7398 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7399 disable the SETLB optimization.
7400 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7401 __SETLB__ or __NO_SETLB__.
7402 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7403 (movsf_internal): Handle MDR register.
7404 (cmpsi): Make visible.
7405 (setlb): New pattern.
7406 (Lcc): New pattern.
7407 (FLcc): New pattern.
7408
843b6915
UB
74092011-05-04 Uros Bizjak <ubizjak@gmail.com>
7410
7411 PR target/48860
7412 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7413 for reg<->xmm moves.
7414 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7415 (vec_concatv2di_rex64_sse): Ditto.
7416 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7417 (*vec_extractv2di_1_rex64): Ditto.
7418
7419 Revert:
7420 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7421
7422 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7423 reg<->xmm moves.
7424 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7425
d35936ab
RG
74262011-05-04 Richard Guenther <rguenther@suse.de>
7427
7428 * tree.h (int_const_binop): Remove notrunc argument.
7429 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7430 create integer constants that are properly truncated.
7431 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7432 (const_binop): Remove zero notrunc argument to int_const_binop.
7433 (size_binop_loc): Likewise.
7434 (fold_div_compare): Likewise.
7435 (maybe_canonicalize_comparison_1): Likewise.
7436 (fold_comparison): Likewise.
7437 (fold_binary_loc): Likewise.
7438 (multiple_of_p): Likewise.
7439 * expr.c (store_constructor): Likewise.
7440 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7441 (maybe_fold_stmt_addition): Likewise.
7442 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7443 * stor-layout.c (layout_type): Likewise.
7444 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7445 * tree-sra.c (build_ref_for_offset): Likewise.
7446 (build_user_friendly_ref_for_offset): Likewise.
7447 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7448 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7449 * tree-ssa-loop-niter.c (inverse): Likewise.
7450 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7451 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7452 * tree-switch-conversion.c (check_range): Likewise.
7453 (build_constructors): Likewise.
7454 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7455 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7456 (extract_range_from_assert): Likewise.
7457 (vrp_int_const_binop): Likewise.
7458 (extract_range_from_binary_expr): Likewise.
7459 (extract_range_from_unary_expr): Likewise.
7460 (check_array_ref): Likewise.
7461 (find_case_label_range): Likewise.
7462 (simplify_div_or_mod_using_ranges): Likewise.
7463 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7464 comparing case labels for merging.
7465
8992c063
MW
74662011-05-03 Mark Wielaard <mjw@redhat.com>
7467
7468 * dwarf2out.c (debug_str_hash_forced): Removed.
7469 (gen_label_for_indirect_string): Removed.
7470 (get_debug_string_label): Removed.
7471 (AT_string_form): Generate label directly.
7472 (output_indirect_string): Test indirect_string_node for
7473 DW_FORM_strp instead of checking label and refcount.
7474 (prune_indirect_string): Removed.
7475 (prune_unused_types): Don't check debug_str_hash_forced or
7476 call prune_indirect_string.
7477
4868e6ea
AO
74782011-05-04 Alexandre Oliva <aoliva@redhat.com>
7479
7480 PR other/48093
7481 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7482
01a5c0ab
AO
74832011-05-04 Alexandre Oliva <aoliva@redhat.com>
7484
7485 PR debug/47994
7486 PR debug/47919
7487 * combine.c (try_combine): Skip debug insns at m_split tests.
7488
6ac00218
MW
74892011-04-26 Mark Wielaard <mjw@redhat.com>
7490
7491 PR42288
7492 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7493 when info_section_emitted.
7494
3af42a7b
JM
74952011-05-03 Joseph Myers <joseph@codesourcery.com>
7496
7497 * config/mips/mips-opts.h: New.
7498 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7499 to mips-opts.h.
7500 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7501 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7502 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7503 via opts pointer.
7504 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7505 mips-opts.h.
7506 (mips_abi, mips_code_readable): Don't declare.
843b6915 7507 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
7508 (mabi=): Use Enum and Var.
7509 (mips_abi): New Enum and EnumValue entries.
7510 (mcode-readable=): Use Enum and Var.
7511 (mips_code_readable_setting): New Enum and EnumValue entries.
7512 (mr10k-cache-barrier=): Use Enum and Var.
7513 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7514
1cb1a99f
JH
75152011-05-03 Jan Hubicka <jh@suse.cz>
7516
7517 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7518 replace hash by pointer map.
7519 (cgraph_node_set_element_def, cgraph_node_set_element,
7520 const_cgraph_node_set_element, varpool_node_set_element_def,
7521 varpool_node_set_element, const_varpool_node_set_element): Remove.
7522 (free_cgraph_node_set, free_varpool_node_set): New function.
7523 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7524 * tree-emutls.c: Free varpool node set.
7525 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7526 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7527 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7528 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7529 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7530 Move here from ipa.c; implement using pointer_map
7531 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7532 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7533 debug_cgraph_node_set, varpool_node_set_new,
7534 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7535 dump_varpool_node_set, debug_varpool_node_set):
7536 Move to ipa-uitls.c.
7537 * passes.c (ipa_write_summaries): Update.
7538
7f31f4db
SH
75392011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7540
7a2f7208
UB
7541 From Mike Frysinger:
7542 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7543 bf542/bf544/bf547/bf548/bf549.
7f31f4db 7544
b70fce6d
UB
75452011-05-03 Uros Bizjak <ubizjak@gmail.com>
7546
7547 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7548
265b1d82
SH
75492011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7550
7551 From Bernd Schmidt:
7552 * config/bfin/bfin.md (MOVCC): New mode_macro.
7553 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7554 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7555 comments from generated assembly.
7556
f0b568f3
SH
75572011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7558
7559 From Bernd Schmidt
7560 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7561 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7562 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7563 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7564 * config/bfin/lib1funcs.asm (___muldi3): New function.
7565
2c67cf6e
NF
75662011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7567
7568 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7569 build_function_type_list instead of build_function_type.
7570 Rearrange initialization of `args' to do so.
7571
f9ac28ad
NF
75722011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7573
7574 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7575 instead of build_function_type.
7576
22b8798c
NF
75772011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7578
7579 * config/rs6000/rs6000.c (spe_init_builtins): Call
7580 build_function_type_list instead of build_function_type.
7581 (paired_init_builtins, altivec_init_builtins): Likewise.
7582 (builtin_function_type): Likewise.
7583
4cb44528
NF
75842011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7585
7586 * config/sh/sh.c (sh_media_init_builtins): Call
7587 build_function_type_list instead of build_function_type.
7588
4c203a6a
NF
75892011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7590
7591 * config/sparc/sparc.c (sparc_file_end): Call
7592 build_function_type_list instead of build_function_type.
7593
d6a3d62b
NF
75942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7595
7596 * config/alpha/alpha.c (alpha_init_builtins): Call
7597 build_function_type_list instead of build_function_type.
7598
de530b86
NF
75992011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7600
7601 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7602 build_function_type_list instead of build_function_type.
7603
baeec5f2
NF
76042011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7605
7606 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7607 build_function_type_list instead of build_function_type.
7608 Delete `endlink' variable.
7609
c19afe52
NF
76102011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7611
7612 * config/avr/avr.c (avr_init_builtins): Call
7613 build_function_type_list instead of build_function_type.
7614
a341df0a
NF
76152011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7616
7617 * config/picochip/picochip.c (picochip_init_builtins): Call
7618 build_function_type_list instead of build_function_type.
7619 Delete `endlink' variable.
7620
2102b1e1
NF
76212011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7622
7623 * config/bfin/bfin.c (bfin_init_builtins): Call
7624 build_function_type_list instead of build_function_type.
7625
9f111209
SH
76262011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7627
7628 From Bernd Schmidt
7629 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7630 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7631
7071d064
SH
76322011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7633
7634 From Jie Zhang:
7635 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7636 libbffastfp overrides libgcc when -mfast-fp.
7637
748f7574 76382011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
7639
7640 Originally from Bernd Schmidt
7641 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7642 * config/bfin/bfin.c (override_options): Test it and error if
7643 TARGET_FDPIC.
7644
1a3a9152
SH
76452011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7646
7647 Originally From Bernd Schmidt
7648 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7649 FD-PIC.
7650
7134c090
JL
76512011-05-03 Jeff Law <law@redhat.com>
7652
7653 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7654 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7655 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
7656 than accessing AUX field directly. Free the AUX field before
7657 clearing it.
7134c090
JL
7658 (thread_block, thread_through_loop_header): Likewise.
7659 (thread_single_edge, mark_threaded_blocks): Likewise.
7660 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7661 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 7662
2c7eebae
BS
76632011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7664
7665 * function.c (init_function_start): Call decide_function_section.
7666 * varasm.c (decide_function_section): New function.
7667 (assemble_start_function): When not using
7668 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7669 or first_function_block_is_cold.
7670 * rtl.h (decide_function_section): Declare.
7671
17038fcf
JJ
76722011-05-03 Uros Bizjak <ubizjak@gmail.com>
7673 Jakub Jelinek <jakub@redhat.com>
7674
7675 PR target/48774
7676 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7677 only succeed if req_mode is the same as set_mode.
7678
3810076b
BS
76792011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7680
7681 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7682 * genemit.c (gen_exp): Handle RETURN.
7683 * emit-rtl.c (verify_rtx_sharing): Likewise.
7684 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7685 * rtl.c (copy_rtx): RETURN is shared.
7686 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7687 (ret_rtx): New.
7688 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7689 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7690 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7691 * config/cris/cris.c (cris_expand_return): Likewise.
7692 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7693 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7694 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7695 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7696 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7697 Likewise.
7698 * config/v850/v850.c (expand_epilogue): Likewise.
7699 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7700 * config/arm/arm.md (epilogue): Likewise.
7701 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7702 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7703 variable to ret_reg.
7704
9efdb4ad
RG
77052011-05-03 Richard Guenther <rguenther@suse.de>
7706
7707 PR lto/48846
7708 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7709 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7710 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7711
60a45536
RG
77122011-05-03 Richard Guenther <rguenther@suse.de>
7713
7714 * c-decl.c (grokdeclarator): Instead of looking at
7715 TREE_OVERFLOW check if the constant fits in the index type.
7716
3188ed59
RS
77172011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7718
7719 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7720 (vec_store_lanes<mode><mode>): Likewise.
7721
272c6793
RS
77222011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7723
7724 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7725 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7726 convert_optab_index values.
7727 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7728 * genopinit.c (optabs): Initialize the new optabs.
7729 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7730 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7731 (expand_STORE_LANES): New functions.
7732 * tree.h (build_array_type_nelts): Declare.
7733 * tree.c (build_array_type_nelts): New function.
7734 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7735 (vect_model_load_cost): Likewise.
7736 (vect_store_lanes_supported, vect_load_lanes_supported)
7737 (vect_record_strided_load_vectors): Declare.
7738 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7739 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7740 (vect_transform_strided_load): Split out statement recording into...
7741 (vect_record_strided_load_vectors): ...this new function.
7742 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7743 (write_vector_array, create_array_ref): New functions.
7744 (vect_model_store_cost): Add store_lanes_p argument.
7745 (vect_model_load_cost): Add load_lanes_p argument.
7746 (vectorizable_store): Try to use store-lanes functions for
7747 interleaved stores.
7748 (vectorizable_load): Likewise load-lanes and loads.
7749 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7750 to vect_model_store_cost.
7751 (vect_build_slp_tree): Likewise vect_model_load_cost.
7752
0f6d54f7
RS
77532011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7754
7755 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7756 * hooks.c (hook_bool_mode_uhwi_false): New function.
7757 * target.def (array_mode_supported_p): New hook.
7758 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7759 * doc/tm.texi: Regenerate.
7760 * stor-layout.c (mode_for_array): New function.
7761 (layout_type): Use it.
7762 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7763 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7764
b15eacc7
EB
77652011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7766
7767 PR target/48723
7768 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7769 for -fstack-check if the size to allocate is negative.
7770
575bfb00
LC
77712011-05-02 Lawrence Crowl <crowl@google.com>
7772
7773 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7774 (timevar_cond_start): New for starting a timer only when it is not
7775 already running.
7776 (timevar_cond_stop): New for stopping a timer when it was not already
7777 running.
7778
7779 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7780 (timevar_cond_start): New as above.
7781 (timevar_cond_stop): New as above.
7782
7783 * timevar.def: Add start/stop timers for compiler phases,
7784 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7785 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7786 and TV_PHASE_FINALIZE.
7787 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7788 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7789 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7790 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7791 Make unused TV_OVERLOAD into a start/stop timer.
7792
7793 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7794 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7795 to indicate that they are start/stop timers.
7796
7797 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7798 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7799 Move initialization to do_compile.
7800 (do_compile): Add initialization from above.
7801 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7802
7803 * c-decl.c (c_write_global_declarations): Add start/stop of
7804 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7805
7806 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7807 or TV_PARSE_INLINE, as appropriate.
7808 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7809 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7810
3533b943
JM
78112011-05-02 Jason Merrill <jason@redhat.com>
7812
7813 PR c++/40975
7814 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7815
2609a0ce
SM
78162011-05-02 Simon Martin <simartin@users.sourceforge.net>
7817
7818 PR c/35445
7819 * c-decl.c (finish_decl): Only create a composite if the types are
7820 compatible.
7821
6b0e4cbb
JM
78222011-05-02 Joseph Myers <joseph@codesourcery.com>
7823
7824 * config/fr30/fr30-protos.h (Mmode): Don't define.
7825 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7826 definition where used.
7827 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7828 define. Expand definitions where used.
7829 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7830 Expand definitions where used.
7831 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7832 rx_function_arg, rx_function_arg_advance,
7833 rx_function_arg_boundary): Expand definitions of those macros.
7834 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7835 definition where used.
7836
4e938ce6
UB
78372011-05-02 Uros Bizjak <ubizjak@gmail.com>
7838
7839 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7840 reg<->xmm moves.
7841 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7842 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7843 with *movv2sf_internal_rex64_avx.
7844 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7845 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7846 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7847 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7848 "vex" in "prefix" attribute calculation.
7849 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7850
36019c19
SH
78512011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7852
7a2f7208
UB
7853 PR target/47951
7854 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7855 inputs match the output.
36019c19 7856
f69ea688
AS
78572011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7858
7859 PR target/47955
7860 * config/m68k/m68k.c (m68k_expand_prologue): Set
7861 current_function_static_stack_size.
7862
c33406f5
JH
78632011-05-02 Jan Hubicka <jh@suse.cz>
7864
7865 * lto-streamer.c (lto_streamer_cache_insert_1,
7866 lto_streamer_cache_lookup, lto_streamer_cache_create,
7867 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7868 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7869
47c94d21
JM
78702011-05-02 Joseph Myers <joseph@codesourcery.com>
7871
7872 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7873 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7874 config/m68k/t-opts: New files.
7875 * config/m68k/m68k-tables.opt: New file (generated).
7876 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7877 extra_options and m68k/t-opts to tmake_file.
7878 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7879 (all_isas): Initialize using m68k-isas.def.
7880 (all_microarchs): Initialize using m68k-microarchs.def.
7881 (m68k_find_selection): Remove.
7882 (m68k_handle_option): Don't assert that global structures are in
7883 use. Use error_at. Access variables via opts pointer. Don't
7884 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7885 directly for -m68020-40 and -m68020-60.
7886 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7887 m68k_tune_entry here.
7888 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7889 to m68k-opts.h.
7890 (m68k_library_id_string): Remove declaration.
4e938ce6 7891 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
7892 (m68k_library_id_string): New Variable.
7893 (march=, mcpu=, mtune=): Use Enum and Var.
7894
e562bf36
RG
78952011-05-02 Richard Guenther <rguenther@suse.de>
7896
7897 * varasm.c (output_constructor_regular_field): Compute zero-based
7898 index with double-ints. Make sure to ICE instead of producing
7899 wrong code.
7900 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7901 in asserts. Properly use a signed type.
7902
6bec6c98
UB
79032011-05-02 Uros Bizjak <ubizjak@gmail.com>
7904
7905 * config/i386/sse.md (V): New mode iterator.
7906 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7907 TARGET_SSE2.
7908 (V_256): Rename from AVX256MODE.
7909 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7910 condition to all users.
7911 (VF1): Ditto.
7912 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7913 condition to all users.
7914 (VF_128): Make V4SF mode unconditional.
7915 (VF_256): Rename from AVX256MODEF2P.
7916 (VI4F_128): Rename from SSEMODE4S.
7917 (VI8F_128): Rename from SSEMODE2D.
7918 (VI4F_256): Rename from AVX256MODE8P.
7919 (VI8F_256): Rename from AVX256MODE4P.
7920 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7921 (ssescalarmodesuffix): Remove SF and DF modes.
7922 (SSEMODE124): Remove.
7923 (SSEMODE1248): Ditto.
7924 (SSEMODEF2P): Ditto.
7925 (AVXMODEF2P): Ditto.
7926 (AVXMODEFDP): Ditto.
7927 (AVXMODEFSP): Ditto.
7928 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7929 unconditional.
7930 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7931 unconditional.
7932 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7933 xop_pcmov_<mode>256. Use V mode iterator.
7934
7935 Adjust RTX patterns globally for renamed mode attributes.
7936
2dfdcb4b
UW
79372011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7938
7939 * haifa-sched.c (sched_emit_insn): Emit insn before first
7940 non-scheduled insn. Inform back-end about new insn. Add
7941 new insn to scheduled_insns list.
7942
90bc4623
RG
79432011-05-02 Richard Guenther <rguenther@suse.de>
7944
7945 PR tree-optimization/48822
7946 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7947 (process_scc): Indicate which iteration we start.
7948
bc0fe8cb
JH
79492011-05-02 Jan Hubicka <jh@suse.cz>
7950
7951 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7952 (lto_section_overrun): New.
7953 * lto-section-out.c (append_block): Rename to ...
7954 (lto_append_block): ... this one; export.
7955 (lto_output_1_stream): Move lto lto-streamer.h
7956 (lto_output_data_stream): Update.
7957 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7958 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7959 functions.
7960
f070a9d1
RG
79612011-05-02 Richard Guenther <rguenther@suse.de>
7962
7963 * tree.c (tree_code_counts): New global array.
7964 (record_node_allocation_statistics): Count individual tree codes.
7965 (dump_tree_statistics): Dump individual code stats.
7966
09dfe187
JH
79672011-05-01 Jan Hubicka <jh@suse.cz>
7968
7969 * ipa-inline.c (caller_growth_limits): Fix thinko when
7970 looking for largest stack frame.
7971 * ipa-inline.h (dump_inline_summary): Declare.
7972 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7973 on stack usage.
7974 (dump_inline_summary): Export.
7975 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7976
6f76a878
AS
79772011-05-01 Anatoly Sokolov <aesok@post.ru>
7978
7979 * reginfo.c (memory_move_cost): Change rclass argument type form
7980 'enum reg_class' to reg_class_t.
7981 * reload.h (memory_move_cost): Update prototype.
7982 * postreload.c reload_cse_simplify_set): Change type dclass var to
7983 reg_class_t.
7984 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7985 Update prototype.
7986 (ira_allocate_and_set_costs): Change aclass argument type form
7987 'enum reg_class' to reg_class_t.
6bec6c98 7988 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
7989 Change aclass argument type to reg_class_t.
7990 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7991 to reg_class_t.
7992 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7993 memory_move_cost call.
7994
7995 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7996 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7997 Change type tmp var to reg_class_t.
7998
9a4ac625
JH
79992011-04-30 Jan Hubicka <jh@suse.cz>
8000
8001 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8002 inlining into function with flatten attribute.
8003 (want_inline_small_function_p): Be more realistic about inlining
8004 cold calls where callee size grows.
8005
dd8352ee
JH
80062011-04-30 Jan Hubicka <jh@suse.cz>
8007
8008 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8009 flags.
8010
46e43d2b
AS
80112011-04-30 Anatoly Sokolov <aesok@post.ru>
8012
8013 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8014 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8015 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8016 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8017 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8018 (print_operand): Rename to...
8019 (sparc_print_operand): ...this. Make static. Adjust
8020 sparc_print_operand function call.
8021 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8022 functions.
8023
ecb62563
JH
80242011-04-30 Jan Hubicka <jh@suse.cz>
8025
6bec6c98 8026 PR middle-end/48752
ecb62563
JH
8027 * ipa-inline.c (early_inliner): Disable when doing late
8028 addition of function.
8029
edb9b69e
JJ
80302011-04-30 Jakub Jelinek <jakub@redhat.com>
8031
be80a87e
JJ
8032 * dwarf2out.c (get_address_mode): New inline.
8033 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8034 if not dwarf_strict emit
8035 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8036 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8037 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8038 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8039 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8040 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8041 mem_loc_descriptor callers.
8042 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8043 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8044 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8045 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8046 (base_types): New variable.
8047 (get_base_type_offset, calc_base_type_die_sizes,
8048 base_type_for_mode, mark_base_types, base_type_cmp,
8049 move_marked_base_types): New functions.
8050 (calc_die_sizes): Assert that die_offset is 0 or equal to
8051 next_die_offset.
8052 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8053 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8054 callers. If not dwarf_strict, call mem_loc_descriptor even for
8055 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8056 (gen_subprogram_die): Don't give up on call site parameters
8057 with non-integral or large integral modes. Adjust
8058 mem_loc_descriptor callers.
8059 (prune_unused_types): Call prune_unused_types_mark on base_types
8060 vector entries.
8061 (resolve_addr): Call mark_base_types.
8062 (dwarf2out_finish): Call move_marked_base_types.
8063
edb9b69e
JJ
8064 PR tree-optimization/48809
8065 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8066 type.
8067 (gen_inbound_check): Don't compute index_expr - range_min in utype
8068 again, instead reuse SSA_NAME initialized in build_arrays.
8069 Remove two useless gsi_for_stmt calls.
8070
a6545a3d
JL
80712011-04-29 Jeff Law <law@redhat.com>
8072
8073 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8074
af8bca3c
MJ
80752011-04-29 Martin Jambor <mjambor@suse.cz>
8076
8077 * cgraph.h (cgraph_postorder): Remove declaration.
8078 * ipa-utils.h (ipa_free_postorder_info): Declare.
8079 (ipa_reverse_postorder): Likewise.
8080 * cgraphunit.c: Include ipa-utils.h.
8081 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8082 * ipa-inline.c: Include ipa-utils.h.
8083 (ipa_inline): Update call to ipa_reverse_postorder.
8084 * ipa-pure-const.c (propagate_pure_const): Update call to
8085 ipa_reduced_postorder and ipa_print_order. Call
8086 ipa_free_postorder_info to clean up.
8087 (propagate_nothrow): Likewise.
8088 * ipa-reference.c (propagate): Removed a useless call to
8089 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8090 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8091 * ipa.c: Include ipa-utils.h.
8092 (ipa_profile): Update call to ipa_reverse_postorder.
8093 (cgraph_postorder): Moved to...
8094 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8095 (ipa_utils_print_order): Renamed to ipa_print_order.
8096 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8097 comments.
8098 (ipa_free_postorder_info): New function.
8099 * passes.c: Include ipa-utils.h.
8100 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8101 (ipa_write_summaries): Likewise.
8102 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8103 (cgraphunit.o): Likewise.
8104 (ipa.o): Likewise.
8105 (ipa-inline.o): Likewise.
8106
b15c64ee
JH
81072011-04-29 Jan Hubicka <jh@suse.cz>
8108
8109 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8110 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8111 * ipa-inline.h (clause_t): Turn into unsigned int.
8112 * ipa-inline-analysis.c (add_clause): Do more simplification.
8113 (and_predicates): Shortcut more cases.
8114 (predicates_equal_p): Move forward; check that clauses are properly
8115 ordered.
8116 (or_predicates): Shortcut more cases.
8117 (edge_execution_predicate): Rewrite as...
8118 (set_cond_stmt_execution_predicate): ... this function; handle
8119 __builtin_constant_p.
8120 (set_switch_stmt_execution_predicate): New .
8121 (compute_bb_predicates): New.
8122 (will_be_nonconstant_predicate): Update TODO.
8123 (estimate_function_body_sizes): Use compute_bb_predicates
8124 and free them later, always try to estimate if stmt is constant.
8125 (estimate_time_after_inlining, estimate_size_after_inlining):
8126 Gracefully handle optimized out edges.
8127 (read_predicate): Fix off by one error.
8128
a88fdc2a
NP
81292011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8130
8131 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8132
d984c8ef
XDL
81332011-04-27 Xinliang David Li <davidxl@google.com>
8134
8135 * tree-profile.c (init_ic_make_global_vars): Set
8136 tls attribute on ic vars.
8137 * coverage.c (coverage_end_function): Initialize
8138 function_list with zero.
8139
45a2c477
RG
81402011-04-29 Richard Guenther <rguenther@suse.de>
8141
8142 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8143 for the type of the result.
8144 (fold_builtin_isascii): Likewise.
8145 (fold_builtin_toascii): Use integer_type_node where appropriate.
8146 (fold_builtin_logb): Likewise.
8147 (fold_builtin_frexp): Likewise.
8148 (fold_builtin_strstr): Likewise.
8149 (fold_builtin_strpbrk): Likewise.
8150 (fold_builtin_fputs): Likewise.
8151 (fold_builtin_sprintf): Likewise.
8152 (fold_builtin_snprintf): Likewise.
8153 (fold_builtin_printf): Likewise.
8154 (do_mpfr_remquo): Use a proper type for the assigned constant.
8155 (do_mpfr_lgamma_r): Likewise.
8156 * dwarf2out.c (resolve_one_addr): Use size_int.
8157 * except.c (init_eh): Likewise.
8158 (assign_filter_values): Use integer_type_node for filter values.
8159 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8160 indices.
8161 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8162 for EH region numbers.
8163 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8164 for the shift amount.
8165
eb6c3df1
RG
81662011-04-29 Richard Guenther <rguenther@suse.de>
8167
8168 * expr.h (expand_shift): Rename to ...
8169 (expand_variable_shift): ... this.
8170 (expand_shift): Take a constant shift amount.
8171 * expmed.c (expand_shift): Rename to ...
8172 (expand_variable_shift): ... this.
8173 (expand_shift): New wrapper around expand_variable_shift.
8174 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8175 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8176 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8177 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8178 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8179 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8180 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8181 emit_store_flag_1, emit_store_flag): Likewise.
8182 * builtins.c (expand_builtin_signbit): Likewise.
8183 * calls.c (load_register_parameters): Likewise.
8184 * function.c (assign_parm_setup_block): Likewise.
8185 * lower-subreg.c (resolve_shift_zext): Likewise.
8186 * optabs.c (widen_bswap, expand_abs_nojump,
8187 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8188 * spu/spu.c (spu_expand_extv): Likewise.
8189 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8190
9f616812
RG
81912011-04-29 Richard Guenther <rguenther@suse.de>
8192
8193 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8194 for the remapped region number.
8195 * predict.c (build_predict_expr): Use integer_type_node for the
8196 predict kind.
8197 * fold-const.c (fold_binary_loc): Use integer_type_node for
8198 the shift amount. Use a proper type for the PLUS_EXPR operand.
8199
b823cdfe
MM
82002011-04-29 Michael Matz <matz@suse.de>
8201
8202 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8203 other trees that just builtins.
8204 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8205
413581ba
RG
82062011-04-29 Richard Guenther <rguenther@suse.de>
8207
8208 * tree-nested.c (get_trampoline_type): Use size_int.
8209 (get_nl_goto_field): Likewise.
8210 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8211 for all indexes.
8212 (lower_eh_constructs_2): Likewise.
8213 (lower_resx): Likewise.
8214 (lower_eh_dispatch): Likewise.
8215 * tree-mudflap.c (mf_build_string): Use size_int.
8216 (mudflap_register_call): Use integer_type_node for the flag.
8217 (mudflap_enqueue_constant): Use size_int.
8218 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8219 instead of rebuilding it.
8220
5c04e9f4
RG
82212011-04-29 Richard Guenther <rguenther@suse.de>
8222
8223 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8224 Handle OBJ_TYPE_REF.
8225 (find_func_aliases_for_call): Use it more consistently.
8226
5c24671b
AO
82272011-04-29 Alexandre Oliva <aoliva@redhat.com>
8228
8229 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8230 (rank_for_schedule): Use it.
8231 (schedule_block): Set it.
8232
10adac51
XDL
82332011-04-28 David Li <davidxl@google.com>
8234
8235 * tree.c (crc32_string): Use crc32_byte.
8236 (crc32_byte): New function.
8237 * tree.h (crc32_byte): New function.
8238 * gcov.c (read_graph_file): Handle new cfg_cksum.
8239 (read_count_file): Ditto.
8240 * profile.c (instrument_values): Ditto.
8241 (get_exec_counts): Ditto.
8242 (read_profile_edge_counts): Ditto.
8243 (compute_branch_probabilities): Ditto.
8244 (compute_value_histograms): Ditto.
8245 (branch_prob): Ditto.
8246 (end_branch_prob): Ditto.
8247 * coverage.c (read_counts_file): Ditto.
8248 (get_coverage_counts): Ditto.
8249 (tree_coverage_counter_addr): Ditto.
8250 (coverage_checksum_string): Ditto.
8251 (coverage_begin_output): Ditto.
8252 (coverage_end_function): Ditto.
8253 (build_fn_info_type): Ditto.
8254 (build_fn_info_value): Ditto.
8255 * libgcov.c (gcov_exit): Ditto.
8256 * gcov-dump.c (tag_function): Ditto.
8257 (compute_checksum): Remove.
8258
5d6358a5
AM
82592011-04-29 Alan Modra <amodra@gmail.com>
8260
8261 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8262 unspec plus offset. Tidy macho code.
8263
85ad2ef5
MJ
82642011-04-29 Martin Jambor <mjambor@suse.cz>
8265
8266 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8267 node instead of a decl. Update all callers.
8268 * cgraph.h: Update declaration.
8269
437f4a00
IR
82702011-04-28 Ira Rosen <ira.rosen@linaro.org>
8271
8272 PR tree-optimization/48765
8273 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8274 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8275 to indicate if loop aware SLP is being used. Scan the statements
8276 and update the vectorization factor according to the type of
8277 vectorization before statement analysis.
8278 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8279 pass it to vect_analyze_loop_operations.
8280 (vectorizable_reduction): Set number of copies to 1 in case of pure
8281 SLP statement.
8282 * tree-vect-stmts.c (vectorizable_conversion,
8283 vectorizable_assignment, vectorizable_shift,
8284 vectorizable_operation, vectorizable_type_demotion,
8285 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8286 Likewise.
8287 (vectorizable_condition): Move the check that it is not SLP
8288 vectorization before the number of copies check.
8289 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8290 to vectorize the loop using SLP.
8291
c6fc44f3
JJ
82922011-04-28 Jakub Jelinek <jakub@redhat.com>
8293
8294 PR middle-end/48597
8295 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8296 inline asm.
8297
6c0170ea
JM
82982011-04-28 Joseph Myers <joseph@codesourcery.com>
8299
8300 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8301 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8302 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8303 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8304 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8305 linux*.h headers.
6bec6c98 8306 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
8307 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8308 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8309 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 8310 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
8311 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8312 REG_NAME.
8313 * config/i386/linux.h (REG_NAME): Don't define.
8314 * config/i386/linux64.h (REG_NAME): Don't define.
8315 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8316 Undefine before defining.
8317
970dabbd
JH
83182011-04-28 Jan Hubicka <jh@suse.cz>
8319
6bec6c98
UB
8320 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8321 nonconstant_names array.
970dabbd
JH
8322 (estimate_function_body_sizes): Build nonconstant_names array; handle
8323 BUILT_IN_CONSTANT_P.
8324
8d3e3924
RG
83252011-04-28 Richard Guenther <rguenther@suse.de>
8326
8327 PR bootstrap/48804
8328 Revert
8329 2011-04-28 Richard Guenther <rguenther@suse.de>
8330
8331 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8332 as late as possible.
6bec6c98 8333
8576f20a
RG
83342011-04-28 Richard Guenther <rguenther@suse.de>
8335
8336 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8337 (debug_constraint): Do it here.
8338 (dump_constraints): And here.
8339 (rewrite_constraints): And here.
8340 (dump_constraint_edge): Remove.
8341 (dump_constraint_graph): Rewrite to produce DOT output.
8342 (solve_constraints): Build succ graph as late as possible.
8343 Dump constraint graphs before and after solving.
8344
e38811ce
RG
83452011-04-28 Richard Guenther <rguenther@suse.de>
8346
8347 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8348 New function split out from ...
8349 (find_func_aliases): ... here. Call it.
8350 (find_func_aliases_for_call): Likewise.
8351
fbaf0d0c
GDR
83522011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8353
8354 * internal-fn.h (internal_fn_name_array): Declare.
8355 (internal_fn_flags_array): Likewise.
8356
cbb734aa
UB
83572011-04-27 Uros Bizjak <ubizjak@gmail.com>
8358
8359 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8360 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8361 Move from sse.md.
8362 (ssemodefsuffix): Remove.
8363 (ssevecmodesuffix): New mode attribute.
8364 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8365 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8366 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8367 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8368 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8369 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8370 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8371 ssemodesuffix mode attribute.
8372 (float splitters): Use ssevecmodesuffix mode attribute.
8373 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8374 (sseinsmode): Rename from avxvecmode.
8375 (avxsizesuffix): Rename from avxmodesuffix.
8376 (sseintvecmode): Rename from avxpermvecmode.
8377 (ssedoublevecmode): Rename from ssedoublesizemode.
8378 (ssehalfvecmode): Rename from avxhalfvecmode.
8379 (ssescalarmode): Rename from avxscalarmode.
8380 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8381 templates for ssemodesuffix mode attribute.
8382 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8383 mode attribute.
8384
8385 Adjust RTX patterns globally for renamed mode attributes.
8386
991278ab
JH
83872011-04-27 Jan Hubcika <jh@suse.cz>
8388
8389 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8390 * ipa-inline-analysis.c: Include alloc-pool.h.
8391 (edge_predicate_pool): New.
8392 (trye_predicate_p): New function
8393 (false_predicate_p): New function.
8394 (add_clause): Sanity check that false clauses are "optimized";
8395 never add clauses to predicate that is already known to be false.
8396 (and_predicate): Use flase_predicate_p.
8397 (evaulate_predicate): Rename to ...
8398 (evaluate_predicate): ... this one; update all callers; assert
8399 that false is not listed among possible truths.
8400 (dump_predicate): Use true_predicate_p.
8401 (account_size_time): Use false_predicate_p.
8402 (evaulate_conditions_for_edge): Rename to ...
8403 (evaluate_conditions_for_edge) ... this one.
8404 (edge_set_predicate): New function.
8405 (inline_edge_duplication_hook): Duplicate edge predicates.
8406 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 8407 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
8408 (dump_inline_summary): Update.
8409 (estimate_function_body_sizes): Set edge predicates.
8410 (estimate_calls_size_and_time): Handle predicates.
8411 (estimate_callee_size_and_time): Update.
8412 (remap_predicate): Add toplev_predicate; update comment.
8413 (remap_edge_predicates): New function.
8414 (inline_merge_summary): Compute toplev predicate; update.
8415 (read_predicate): New function.
8416 (read_inline_edge_summary): Use it.
8417 (inline_read_section): Likewise.
8418 (write_predicate): New function.
8419 (write_inline_edge_summary): Use it.
8420 (inline_write_summary): Likewise.
8421 (inline_free_summary): Free alloc pool and edge summary vec.
8422
648b5f85
RG
84232011-04-27 Richard Guenther <rguenther@suse.de>
8424
8425 * tree-ssa-structalias.c (changed_count): Remove.
8426 (changed): Use a bitmap.
8427 (unify_nodes): Adjust.
8428 (do_sd_constraint): Likewise.
8429 (do_ds_constraint): Likewise.
8430 (do_complex_constraint): Likewise.
8431 (solve_graph): Likewise.
8432
4d5dcfb2
JH
84332011-04-27 Jan Hubicka <jh@suse.cz>
8434
8435 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8436
200eb7d2
UB
84372011-04-27 Uros Bizjak <ubizjak@gmail.com>
8438
8439 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8440 (avx_vperm2f128_*_operand): Ditto.
8441 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8442 Use avx_vpermilp_parallel in insn condition.
8443 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8444 Use avx_vperm2f128_parallel in insn condition.
8445
7d6e2521
RG
84462011-04-27 Richard Guenther <rguenther@suse.de>
8447
8448 * Makefile.in (tree-ssa-structalias.o): Remove
8449 gt-tree-ssa-structalias.h dependency.
8450 (GTFILES): Remove tree-ssa-structalias.c.
8451 * tree.c (allocate_decl_uid): New function.
8452 (make_node_stat): Use it.
8453 (copy_node_stat): Likewise.
8454 * tree.h (allocate_decl_uid): Declare.
8455 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8456 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8457 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 8458 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
8459 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8460 (struct heapvar_map): Likewise.
8461 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8462 heapvar_insert): Likewise.
8463 (make_heapvar_for): Rename to ...
8464 (make_heapvar): ... this. Simplify.
8465 (fake_var_decl_obstack): New global var.
8466 (build_fake_var_decl): New function.
8467 (make_constraint_from_heapvar): Adjust.
8468 (handle_lhs_call): Likewise.
8469 (create_function_info_for): Likewise.
8470 (intra_create_variable_infos): Likewise.
8471 (init_alias_vars): Allocate fake_var_decl_obstack.
8472 (init_alias_heapvars, delete_alias_heapvars): Remove.
8473 (compute_points_to_sets): Do not call init_alias_heapvars.
8474 (ipa_pta_execute): Likewise.
8475 (delete_points_to_sets): Free fake_var_decl_obstack.
8476
526ed6c2
UW
84772011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8478
8479 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8480 (si_from_UTItype, si_to_UTItype): New functions.
8481 (__udivmodti4): Use them to implement type-punning.
8482 * config/spu/multi3.c (union qword_TItype): New data type.
8483 (si_from_TItype, si_to_TItype): New functions.
8484 (__multi3): Use them to implement type-punning.
8485
c187d33c
UW
84862011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8487
8488 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8489
40982661
JH
84902011-04-27 Jan Hubicka <jh@suse.cz>
8491
8492 * ipa-prop.c (function_insertion_hook_holder): New holder.
8493 (ipa_add_new_function): New function.
200eb7d2
UB
8494 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8495 Register/deregister holder.
40982661 8496
9aef53ee
RG
84972011-04-27 Richard Guenther <rguenther@suse.de>
8498
8499 PR tree-optimization/48772
200eb7d2 8500 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 8501
f63d806d
RG
85022011-04-27 Richard Guenther <rguenther@suse.de>
8503
8504 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8505 TARGET_MEM_REF handling.
8506
e1ea7451
NC
85072011-04-27 Nick Clifton <nickc@redhat.com>
8508
9b5db25d
NC
8509 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8510 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8511 (REG_CLASS_NAMES): Likewise.
8512 (REG_CLASS_CONTENTS): Likewise.
8513 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8514 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8515 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8516 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8517 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8518 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8519 duplicate register classes.
97d20907 8520 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
8521 (frv_register_move_cost): Likewise.
8522
e1ea7451
NC
8523 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8524 end of the regno_reg_class array.
8525
5c2f94b4
JJ
85262011-04-27 Jakub Jelinek <jakub@redhat.com>
8527
8528 PR c/48742
8529 * c-typeck.c (build_binary_op): Don't wrap arguments if
8530 int_operands is true.
8531
57a944d7
KK
85322011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8533
8534 PR target/48767
8535 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8536 targetm.calls.must_pass_in_stack for void type.
8537
898b8927
JH
85382011-04-26 Jan Hubicka <jh@suse.cz>
8539
8540 * cgraphbuild.c (build_cgraph_edges): Update call
8541 of cgraph_create_edge and cgraph_create_indirect_edge.
8542 * cgraph.c (cgraph_create_edge_including_clones,
8543 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8544 cgraph_update_edges_for_call_stmt_node): Do not take nest
8545 argument; do not initialize call_stmt_size/time.
8546 (dump_cgraph_node): Do not dump nest.
8547 (cgraph_clone_edge): Do not take loop_nest argument;
8548 do not propagate it; do not clone call_stmt_size/time.
8549 (cgraph_clone_node): Likewise.
8550 (cgraph_create_virtual_clone): Update.
8551 * cgraph.h (struct cgraph_edge): Remove
8552 call_stmt_size/call_stmt_time/loop_nest.
8553 (cgraph_create_edge, cgraph_create_indirect_edge,
8554 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8555 prototype.
8556 * tree-emutls.c (gen_emutls_addr): Update.
8557 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8558 loop_nest; handle indirect calls, too.
8559 (clone_inlined_nodes): Do not care about updating inline summaries.
8560 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8561 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8562 stream call_stmt_size/call_stmt_time/loop_nest.
8563 * ipa-inline.c (edge_badness): Update.
8564 (ipa_inline): dump summaries after inlining.
8565 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 8566 New.
898b8927
JH
8567 (inline_edge_summary): New function.
8568 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8569 (inline_edge_removal_hook): Handle edge summaries.
8570 (inline_edge_duplication_hook): New hook.
8571 (inline_summary_alloc): Alloc hooks.
8572 (initialize_growth_caches): Do not register removal hooks.
8573 (free_growth_caches); Do not free removal hook.
8574 (dump_inline_edge_summary): New function.
8575 (dump_inline_summary): Use it.
8576 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8577 (inline_update_callee_summaries): New function.
8578 (inline_merge_summary): Use it.
8579 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8580 (read_inline_edge_summary): New function.
8581 (inline_read_section): Use it.
8582 (write_inline_edge_summary): New function.
8583 (inline_write_summary): Use it.
8584 (inline_free_summary): Free edge new holders.
8585 * tree-inline.c (copy_bb): Update.
8586
ffa03772
JM
85872011-04-26 Jason Merrill <jason@redhat.com>
8588
8589 * tree-eh.c (lower_try_finally_switch): Create the label along with
8590 the CASE_LABEL_EXPR.
8591
6d7b45ad
DM
85922011-04-26 David S. Miller <davem@davemloft.net>
8593 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8594
8595 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8596 * configure: Regenerate.
8597
df10b6d4
MM
85982011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8599
8600 PR target/48258
8601 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8602 reduction.
8603 (VEC_reduc): New code iterator and splitters for vector reduction.
8604 (VEC_reduc_name): Ditto.
8605 (VEC_reduc_rtx): Ditto.
8606 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8607 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8608
8609 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8610 support for extracting SF on VSX.
8611
8612 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8613 generating xscvspdp.
8614 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8615 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8616 double add, minimum, maximum vector reduction.
8617 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8618 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8619 optimize double vector reduction.
8620 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8621
35a5db04
JM
86222011-04-26 Joseph Myers <joseph@codesourcery.com>
8623
8624 * config/fr30/fr30.h (inhibit_libc): Don't define.
8625 * config/m32r/m32r-protos.h: Correct comment.
8626 * config/v850/v850.h (GHS_default_section_names,
8627 GHS_current_section_names): Use tree, not union tree_node *.
8628
2f964ad6
XDL
86292011-04-26 Xinliang David Li <davidxl@google.com>
8630
200eb7d2 8631 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
8632 * c-family/c-opts.c (c_common_handle_option): Set
8633 warn_maybe_uninitialized.
8634 * opts.c (common_handle_option): Ditto.
8635 * common.opt: New option.
8636 * tree-ssa.c (warn_uninit): Add one more parameter.
8637 (warn_uninitialized_var): Pass warning code.
8638 * tree-flow.h: Interface change.
8639
9c7bd91a
RO
86402011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8641
200eb7d2 8642 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
8643 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8644 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8645
c2f36e21
RO
86462011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8647
8648 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8649 * config/mips/mips.opt (mmips-tfile): Remove.
8650
8651 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8652 mips-tdump reference to ...
200eb7d2 8653 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
8654 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8655 reference by Tru64 UNIX.
8656
2c9da85b
JJ
86572011-04-26 Jakub Jelinek <jakub@redhat.com>
8658
0c5f6539
JJ
8659 PR debug/48768
8660 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8661 is error_mark_node, set value to NULL.
8662
2c9da85b
JJ
8663 PR tree-optimization/48734
8664 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8665 if return value from maybe_fold_*_comparsions isn't something
8666 the code is prepared to handle.
8667
77fa1d54
UB
86682011-04-26 Uros Bizjak <ubizjak@gmail.com>
8669
8670 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8671 mode check.
8672 (ext_QIreg_nomode_operands): Remove.
8673 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8674 (*andsi_1): Ditto.
8675 (*andhi_1): Ditto.
8676
0e2a6c2b
AS
86772011-04-26 Andrew Stubbs <ams@codesourcery.com>
8678
8679 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8680
961562d8
RB
86812011-04-26 Richard Guenther <rguenther@suse.de>
8682
8683 * c-typeck.c (build_unary_op): Do not expand array-refs via
8684 pointer arithmetic. Only adjust qualifiers for function types.
8685
86862011-04-26 Richard Guenther <rguenther@suse.de>
8687
8688 PR middle-end/48694
8689 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8690 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
8691 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8692 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 8693
a0d260fc
PC
86942011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8695
6bec6c98 8696 * doc/extend.texi: Document __underlying_type.
a0d260fc 8697
4d583bb9
SB
86982011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8699
8700 * config/rs6000/titan.md (automata_option "progress"): Remove.
8701
1f3fcdc3
JL
87022011-04-25 Jeff Law <law@redhat.com>
8703
8704 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8705
e5b0dad8
JK
87062011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 * system.h (ENUM_BITFIELD): Remove.
8709
5157a881 87102011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 8711 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
8712
8713 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8714 for STORE_FLAG_VALUE==-1 case.
8715
ed4c109e
RS
87162011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8717
8718 PR target/43804
8719 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8720 LEGITIMATE_PIC_OPERAND_P.
8721
f3181aa2
JH
87222011-04-24 Jan Hubicka <jh@suse.cz>
8723
8724 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8725 WPA hack.
77fa1d54
UB
8726 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8727 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8728 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
8729 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8730 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8731 Sanity check predicate length.
8732 (remap_predicate): Likewise; sanity check jump functions.
8733 (inline_read_section, inline_write_summary): Sanity check
8734 predicate length.
8735
5307cbaa
PC
87362011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8737
8738 PR other/48748
8739 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8740 __is_literal_type, and __is_trivial; update throughout about
8741 possibly cv-qualified void types.
8742
bebd5f99
GP
87432011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8744
8745 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8746 testsuite and make it version agnostic.
8747
7ee28a74
JH
87482011-04-22 Jan Hubicka <jh@suse.cz>
8749
8750 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8751
16997bc0
JJ
87522011-04-23 Jakub Jelinek <jakub@redhat.com>
8753
8754 PR c/48685
8755 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8756 to VOID_TYPE even around MODIFY_EXPR.
8757
f94d4ab1
MS
87582011-04-22 Mike Stump <mikestump@comcast.net>
8759
1a84c183 8760 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
8761 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8762 comment.
8763
632b4f8e
JH
87642011-04-22 Jan Hubicka <jh@suse.cz>
8765
8766 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
8767 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8768 ipa-prop.c; update all uses.
632b4f8e 8769 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
8770 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8771 merge summary of inlined function into former caller.
632b4f8e
JH
8772 * ipa-inline.c (max_benefit): Remove.
8773 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
8774 (update_caller_keys): Use
8775 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
8776 (update_callee_keys): Likewise.
8777 (update_all_callee_keys): Likewise.
77fa1d54
UB
8778 (inline_small_functions): Do not collect max_benefit; do not reset
8779 estimated_growth; call free_growth_caches and initialize_growth_caches.
8780 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8781 struct size_time_entry): New structures.
632b4f8e 8782 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
8783 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8784 and estimated_growth.
632b4f8e
JH
8785 (edge_growth_cache_entry): New structure.
8786 (node_growth_cache, edge_growth_cache): New global vars.
8787 (estimate_growth): Turn into inline.
8788 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8789 initialize_growth_caches, free_growth_caches): Declare.
8790 (estimate_edge_growth): Rewrite.
8791 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
8792 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8793 functions.
632b4f8e
JH
8794 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8795 (NUM_CONDITIONS): New constant.
8796 (predicate_conditions): New enum.
8797 (IS_NOT_CONSTANT): New constant.
8798 (edge_removal_hook_holder): New var.
8799 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
8800 (true_predicate, single_cond_predicate, false_predicate,
8801 not_inlined_predicate, add_condition, add_clause, and_predicates,
8802 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8803 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
8804 evaulate_conditions_for_edge): New functions.
8805 (inline_summary_alloc): Move to heap.
8806 (inline_node_removal_hook): Clear condition and entry vectors.
8807 (inline_edge_removal_hook): New function.
8808 (initialize_growth_caches, free_growth_caches): New function.
8809 (dump_inline_summary): Update.
8810 (edge_execution_predicate): New function.
8811 (will_be_nonconstant_predicate): New function.
8812 (estimate_function_body_sizes): Compute BB and constantness predicates.
8813 (compute_inline_parameters): Do not clear estimated_growth.
8814 (estimate_edge_size_and_time): New function.
8815 (estimate_calls_size_and_time): New function.
8816 (estimate_callee_size_and_time): New function.
8817 (remap_predicate): New function.
8818 (inline_merge_summary): New function.
8819 (do_estimate_edge_time): New function based on...
8820 (estimate_edge_time): ... this one.
8821 (do_estimate_edge_growth): New function.
8822 (do_estimate_growth): New function based on....
8823 (estimate_growth): ... this one.
8824 (inline_analyze_function): Analyze after deciding on jump functions.
8825 (inline_read_section): New function.
8826 (inline_read_summary): Use it.
8827 (inline_write_summary): Write all the new data.
8828 * ipa-prop.c (ipa_get_param_decl_index): Export.
8829 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
8830 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8831 Declare.
8832 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
8833 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8834 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8835 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8836 cgraph_edge_inlinable_p): Remove.
8837 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
8838 (cgraph_process_new_functions): Update call of
8839 compute_inline_parameters.
632b4f8e 8840
1df5b0db
RG
88412011-04-22 Richard Guenther <rguenther@suse.de>
8842
8843 * tree.c (build_int_cst): Properly create canonicalized integer
8844 constants.
8845 (build_int_cst_type): Remove scary comments.
8846
ae01169c
XDL
88472011-04-22 Xinliang David Li <davidxl@google.com>
8848
8849 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8850 by default when -Wno-error is not specified.
8851 * opts-global.c (decode_options): Remove call to
8852 control_warning_options.
8853
93dfac24
JJ
88542011-04-22 Jakub Jelinek <jakub@redhat.com>
8855
8856 PR tree-optimization/48717
8857 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8858 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8859
1b5f5069
JM
88602011-04-22 Joseph Myers <joseph@codesourcery.com>
8861
8862 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8863 definition where used.
8864
144f4153
JJ
88652011-04-22 Jakub Jelinek <jakub@redhat.com>
8866
8867 PR c/48716
8868 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8869 TREE_STATIC variables declared inside of some OpenMP construct.
8870
f9fd305b
MJ
88712011-04-22 Martin Jambor <mjambor@suse.cz>
8872
8873 PR middle-end/48585
1d284ec5 8874 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 8875
49819fef
AM
88762011-04-22 Alexander Monakov <amonakov@ispras.ru>
8877
8878 PR c/36750
8879 * c-typeck.c (pop_init_level): Do not warn about initializing
8880 with ` = {0}'.
8881
401f6699
AM
88822011-04-22 Alan Modra <amodra@gmail.com>
8883
8884 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8885 when returning call_cookie.
8886 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8887 pointers, to functions with no more vector args than the current
8888 function, and some non-local calls for ABI_V4.
8889 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8890 sibcall_nonlocal_aix64): Combine to ..
8891 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8892 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8893 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8894 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8895 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8896 operand.
8897 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8898 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8899 sibcall_value_symbolic_64): Delete.
8900
903d1e67
XDL
89012011-04-21 Xinliang David Li <davidxl@google.com>
8902
8903 * cgraph.h: Remove pid.
8904 * cgraph.c: Remove pid.
8905 * value-prof.c (init_node_map): New function.
8906 (del_node_map): New function.
8907 (find_func_by_funcdef_no): New function.
8908 (gimple_ic_transform): Call new function.
8909 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8910 * function.c (get_last_funcdef_no): New function.
8911 * function.h (get_last_funcdef_no): New function.
8912 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8913 to libgcov function.
8914 (tree-profiling): Call node map init and delete function.
8915
7378e95f
ILT
89162011-04-21 Ian Lance Taylor <iant@google.com>
8917
8918 * godump.c (go_format_type): Use exported Go name for anonymous
8919 field name.
8920
e84a6fcf
NF
89212011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8922
8923 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8924 Call builtin_function_type_list instead of builtin_function_type.
8925 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8926
4fe058e2
NF
89272011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8928
8929 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8930 build_function_type_list instead of build_function_type.
8931 Delete variable `endlink'.
8932
1ba0a2d2
NF
89332011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8934
8935 * config/s390/s390.c (s390_init_builtins): Call
8936 build_function_type_list instead of build_function_type.
8937
c0676219
NF
89382011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8939
8940 * config/ia64/ia64.c (ia64_init_builtins): Call
8941 build_function_type_list instead of builtin_function_type.
8942
6ddfda8a
ER
89432011-04-21 Easwaran Raman <eraman@google.com>
8944
3a6448ea 8945 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
8946 (add_stack_var): ...and its reference here...
8947 (expand_stack_vars): ...and here.
8948 (stack_var_cmp): Sort by descending order of size.
8949 (partition_stack_vars): Change heuristic.
1d284ec5 8950 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
8951 (dump_stack_var_partition): Add newline after each partition.
8952
23756963
DA
89532011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8954 Jeff Law <law@redhat.com>
8955
77fa1d54 8956 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
8957 * gengtype.c (matching_file_name_substitute): Likewise.
8958
aa2a43d2
RG
89592011-04-21 Richard Guenther <rguenther@suse.de>
8960
8961 PR lto/48703
1d284ec5 8962 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 8963
4d931f41
EB
89642011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8965
8966 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8967
f103fa7a
RG
89682011-04-21 Richard Guenther <rguenther@suse.de>
8969
8970 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8971 file name.
8972
e19f6650
RG
89732011-04-21 Richard Guenther <rguenther@suse.de>
8974
8975 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8976 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8977 Use DECL_P, not SSA_VAR_P.
8978 (ptr_derefs_may_alias_p): Likewise.
8979 (ptr_deref_may_alias_ref_p_1): Likewise.
8980 (decl_refs_may_alias_p): Likewise.
8981 (refs_may_alias_p_1): Likewise.
8982 (ref_maybe_used_by_call_p_1): Likewise.
8983 (call_may_clobber_ref_p_1): Likewise.
8984 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8985 are either MEM_REF or TARGET_MEM_REF.
8986 (indirect_refs_may_alias_p): Likewise.
8987 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8988 for MEM_EXPR of indirect calls.
8989
9d1831bb
TG
89902011-04-21 Tristan Gingold <gingold@adacore.com>
8991
8992 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8993 (dst_file_info_struct): Remove flen field.
8994 (lookup_filename): Remove code that set flen field.
8995
f199c029
TG
89962011-04-21 Tristan Gingold <gingold@adacore.com>
8997
8998 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8999
2894086e
UB
90002011-04-21 Uros Bizjak <ubizjak@gmail.com>
9001
9002 PR target/48708
9003 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9004 vec_extract and vec_concat for non-SSE4_1 targets.
9005
53f94a5c
RG
90062011-04-21 Richard Guenther <rguenther@suse.de>
9007
9008 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9009 return statements.
9010
f0dca5ba
JM
90112011-04-21 Joseph Myers <joseph@codesourcery.com>
9012
9013 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9014 undefine.
9015 (FILE): Don't undefine.
9016
984514ac
JM
90172011-04-21 Joseph Myers <joseph@codesourcery.com>
9018
9019 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9020 struct rtx_def *.
9021 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9022 struct rtx_def *.
9023 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 9024 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
9025 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9026 rtx_def *.
9027 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9028 definitions where used.
9029 * config/microblaze/microblaze.h (struct microblaze_args): Use
9030 rtx, not struct rtx_def *.
9031 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9032 rtx_def *.
2894086e
UB
9033 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9034 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
9035 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9036 not struct rtx_def *.
9037 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9038 struct rtx_def *.
9039 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9040 rtx_def *.
2894086e 9041 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 9042
0b5a2724
RS
90432011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9044
9045 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9046 operand_equal_p to compare DR_BASE_ADDRESSes.
9047 (vect_check_interleaving): Likewise.
9048
4b18d683
RS
90492011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9050
9051 PR target/46329
9052 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9053 for all Neon struct constants.
9054
1a627b35
RS
90552011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9056
9057 * target.def (legitimate_constant_p): New hook.
9058 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9059 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9060 * doc/tm.texi: Regenerate.
9061 * hooks.h (hook_bool_mode_rtx_true): Declare.
9062 * hooks.c (hook_bool_mode_rtx_true): Define.
9063 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9064 * calls.c (precompute_register_parameters): Replace uses of
9065 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9066 (emit_library_call_value_1): Likewise.
9067 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9068 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9069 * ira-costs.c (scan_one_insn): Likewise.
9070 * recog.c (general_operand, immediate_operand): Likewise.
9071 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9072 * reload1.c (init_eliminable_invariants): Likewise.
9073
9074 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9075 mode argument.
9076 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9077 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9078 argument.
9079 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9080 * config/alpha/predicates.md (input_operand): Update call to
9081 alpha_legitimate_constant_p.
9082
9083 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9084 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9085 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9086 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9087 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9088 (arm_legitimate_constant_p): New functions.
9089 (arm_cannot_force_const_mem): Make static.
9090
9091 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9092
9093 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9094 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9095 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9096 instead of bfin_legitimate_constant_p.
9097 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9098 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9099
9100 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9101
9102 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9103
9104 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9105 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9106 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9107 (frv_legitimate_constant_p): Make static. Add a mode argument.
9108
9109 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9110 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9111 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9112
9113 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9114 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9115 * config/i386/i386.c (legitimate_constant_p): Rename to...
9116 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9117 argument.
9118 (ix86_cannot_force_const_mem): Update accordingly.
9119 (ix86_legitimate_address_p): Likewise.
9120 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9121 * config/i386/i386.md: Update commentary.
9122
9123 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9124 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9125 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9126 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9127
9128 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9129
9130 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9131 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9132 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9133 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9134
9135 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9136 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9137 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9138
9139 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9140 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9141 (m32r_legitimate_constant_p): New function.
9142
9143 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9144 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9145 LEGITIMATE_CONSTANT_P.
9146 (LEGITIMATE_CONSTANT_P): Delete.
9147 * config/m68k/m68k.c (m68k_expand_prologue): Call
9148 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9149 (m68k_legitimate_constant_p): New function.
9150 * config/m68k/m68k.md: Update comments.
9151
9152 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9153 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9154 (mcore_legitimate_constant_p): New function.
9155
9156 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9157 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9158 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9159 Add a mode argument.
9160 (mep_legitimate_address): Update accordingly.
9161 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9162
9163 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9164 Delete.
9165 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9166 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9167 static. Check OP's mode for VOIDmode.
9168 (microblaze_legitimate_constant_p): New function.
9169 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9170
9171 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9172 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9173 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9174 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9175 * config/mips/predicates.md: Update comments.
9176
9177 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9178 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9179 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9180 (mmix_legitimate_constant_p): Make static, return a bool, and take
9181 a mode argument.
9182 (mmix_print_operand_address): Update accordingly.
9183
9184 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9185 Delete.
9186 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
9187 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9188 static. Add a mode argument.
1a627b35
RS
9189 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9190
9191 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9192
9193 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9194 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9195 (pa_legitimate_constant_p): New function.
9196
9197 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9198
9199 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9200 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9201 (pdp11_legitimate_constant_p): New function.
9202
9203 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9204 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9205 (rs6000_legitimate_constant_p): New function.
9206
9207 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9208 (rx_legitimate_constant_p): ...this.
9209 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9210 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9211 (rx_legitimate_constant_p): ...this.
9212 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9213 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9214
9215 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9216 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9217 * config/s390/s390.c (legitimate_constant_p): Rename to...
9218 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9219 and add a mode argument.
9220 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9221
9222 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9223
9224 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9225 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9226 (sh_legitimate_constant_p): New function.
9227
9228 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9229 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9230 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9231 (legitimate_constant_p): Rename to...
9232 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9233 argument.
9234 (constant_address_p): Update accordingly.
9235
9236 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9237 argument and return a bool.
9238 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9239 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9240 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9241 (spu_rtx_costs): Update accordingly.
9242 * config/spu/predicates.md (vec_imm_operand): Likewise.
9243
9244 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9245
9246 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9247 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9248 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9249
9250 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9251 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9252 * config/vax/vax.c (legitimate_constant_p): Likewise.
9253
9254 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9255 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9256 (xtensa_legitimate_constant_p): New function.
9257
fbbf66e7
RS
92582011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9259
9260 * target.def (cannot_force_const_mem): Add a mode argument.
9261 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9262 * doc/tm.texi: Regenerate.
9263 * hooks.h (hook_bool_mode_rtx_false): Declare.
9264 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9265 (hook_bool_mode_const_rtx_true): Likewise.
9266 (hook_bool_mode_rtx_false): New function.
9267 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9268 to be non-VOID. Update call to cannot_force_const_mem.
9269 (find_reloads): Update accordingly.
9270 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9271 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9272 argument.
9273 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9274 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9275 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9276 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9277 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9278 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9279 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9280 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9281 (m68k_cannot_force_const_mem): ...this new function.
9282 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9283 argument.
9284 (mips_const_insns, mips_legitimize_const_move): Update calls.
9285 (mips_secondary_reload_class): Likewise.
9286 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9287 (pa_cannot_force_const_mem): ...this new function.
2894086e 9288 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
9289 (rs6000_cannot_force_const_mem): ...this new function.
9290 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9291 argument.
9292 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9293 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9294 to...
9295 (xtensa_cannot_force_const_mem): ...this new function.
9296
b861891b
NF
92972011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9298
9299 * config/mips/mips.c (mips16_build_function_stub): Call
9300 build_function_type_list instead of build_function_type.
9301 (mips16_build_call_stub): Likewise.
9302
34149ed5
NF
93032011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9304
9305 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9306 instead of build_function_type.
9307
12526412
NF
93082011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9309
9310 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9311 instead of build_function_type.
9312
3b84d61f
UB
93132011-04-20 Uros Bizjak <ubizjak@gmail.com>
9314
9315 PR target/48678
9316 * config/i386/i386.md (insv): Change operand 0 constraint to
9317 "register_operand". Change operand 1 and 2 constraint to
9318 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9319 * config/i386/sse.md (sse4_1_pinsrb): Export.
9320 (sse2_pinsrw): Ditto.
9321 (sse4_1_pinsrd): Ditto.
9322 (sse4_1_pinsrq): Ditto.
9323 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9324 * config/i386/i386.c (ix86_expand_pinsr): New.
9325
4a25752b
ER
93262011-04-20 Easwaran Raman <eraman@google.com>
9327
9328 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9329 containing union type only with -fstrict-aliasing.
9330
04695783
JM
93312011-04-20 Jim Meyering <meyering@redhat.com>
9332
9333 Remove useless if-before-free tests.
9334 * calls.c (expand_call, save_area): Likewise.
9335 * cfgcleanup.c (try_forward_edges): Likewise.
9336 * collect2.c (collect_execute): Likewise.
9337 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9338 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9339 * coverage.c (coverage_checksum_string): Likewise.
9340 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9341 * cselib.c (cselib_init): Likewise.
9342 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9343 (df_set_clean_cfg): Likewise.
9344 * function.c (free_after_compilation): Likewise.
9345 * gcc.c (do_spec_1, main): Likewise.
9346 * gcov.c (create_file_names): Likewise.
9347 * gensupport.c (identify_predicable_attribute): Likewise.
9348 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9349 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9350 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9351 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9352 * ipa-pure-const.c (local_pure_const): Likewise.
9353 * ipa-reference.c (propagate): Likewise.
9354 * ira-costs.c (free_ira_costs): Likewise.
9355 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9356 * matrix-reorg.c (mat_free): Likewise.
9357 * prefix.c (get_key_value): Likewise.
9358 * profile.c (compute_value_histograms): Likewise.
9359 * reload1.c (free_reg_equiv): Likewise.
9360 * sched-deps.c (free_deps): Likewise.
9361 * sel-sched-ir.c (fence_clear): Likewise.
9362 * sese.c (set_rename, if_region_set_false_region): Likewise.
9363 * tree-data-ref.c (free_rdg): Likewise.
9364 * tree-eh.c (lower_try_finally): Likewise.
9365 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9366 * tree-ssa-live.c (delete_var_map): Likewise.
9367 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9368 * tree-ssa-pre.c (phi_trans_add): Likewise.
9369
6788475a
JJ
93702011-04-20 Jakub Jelinek <jakub@redhat.com>
9371
9372 PR tree-optimization/48611
9373 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9374 beyond ERT_MUST_NOT_THROW region.
9375
0eda4033
CM
93762011-04-20 Catherine Moore <clm@codesourcery.com>
9377
9378 * config/mips/mips.opt (mfix-24k): New.
9379 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9380 * config/mips/mips.md (length): Increase by 4 for stores if
9381 fixing 24K errata.
9382 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9383 all noreorder if fixing 24K errata.
9384 * doc/invoke.texi: Document mfix-24k.
9385
01475747
CLT
93862011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9387
9388 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 9389 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 9390
bc2c1a60
AS
93912011-04-20 Andrew Stubbs <ams@codesourcery.com>
9392
9393 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9394 (const_ok_for_op): ... to here.
9395
583722ee
KT
93962011-04-20 Kai Tietz <ktietz@redhat.com>
9397
2894086e
UB
9398 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9399 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 9400
422c0989
AS
94012011-04-20 Andrew Stubbs <ams@codesourcery.com>
9402
9403 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9404
d7978bff
RG
94052011-04-20 Richard Guenther <rguenther@suse.de>
9406
9407 PR tree-optimization/47892
9408 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9409 are if-convertible.
9410
818412ba
EB
94112011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9412
9413 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9414
b501ce4e
TG
94152011-04-20 Tristan Gingold <gingold@adacore.com>
9416
9417 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9418
516edfdd
GJL
94192011-04-20 Georg-Johann Lay <avr@gjlay.de>
9420
9421 PR target/18145
9422
9423 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9424 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9425 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9426 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9427 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9428
9429 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9430 New prototype.
9431
9432 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9433 (avr_asm_named_section, avr_asm_output_aligned_common,
9434 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9435 New functions to update...
9436 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9437 (avr_asm_init_sections): Overwrite section callbacks for
9438 data_section, bss_section.
9439 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9440 from here to...
9441 (avr_file_end): ...here.
9442
dafc9511
RG
94432011-04-20 Richard Guenther <rguenther@suse.de>
9444
9445 PR middle-end/48695
9446 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 9447 objects and types here. Adjust for their offset before comparing.
dafc9511 9448
1da0876c
RS
94492011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9450
9451 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9452 statement per copy.
9453
25583c4f
RS
94542011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9455
9456 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9457 (GIMPLE_H): Include $(INTERNAL_FN_H).
9458 (OBJS-common): Add internal-fn.o.
9459 (internal-fn.o): New rule.
9460 * internal-fn.def: New file.
9461 * internal-fn.h: Likewise.
9462 * internal-fn.c: Likewise.
9463 * gimple.h: Include internal-fn.h.
9464 (GF_CALL_INTERNAL): New gf_mask.
9465 (gimple_statement_call): Put fntype into a union with a new
9466 internal_fn field.
9467 (gimple_build_call_internal): Declare.
9468 (gimple_build_call_internal_vec): Likewise.
9469 (gimple_call_same_target_p): Likewise.
9470 (gimple_call_internal_p): New function.
9471 (gimple_call_internal_fn): Likewise.
9472 (gimple_call_fntype): Return null for internal calls.
9473 (gimple_call_set_fntype): Assert that the function is not internal.
9474 (gimple_call_set_fn): Likewise.
9475 (gimple_call_set_fndecl): Likewise.
9476 (gimple_call_set_internal_fn): New function.
9477 (gimple_call_addr_fndecl): Handle null functions.
9478 (gimple_call_return_type): Likewise null types.
9479 * gimple.c (gimple_build_call_internal_1): New function.
9480 (gimple_build_call_internal): Likewise.
9481 (gimple_build_call_internal_vec): Likewise.
9482 (gimple_call_same_target_p): Likewise.
9483 (gimple_call_flags): Handle calls to internal functions.
9484 (gimple_call_fnspec): New function.
9485 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9486 (gimple_has_side_effects): Handle null functions.
9487 (gimple_rhs_has_side_effects): Likewise.
9488 (gimple_call_copy_skip_args): Handle calls to internal functions.
9489 * cfgexpand.c (expand_call_stmt): Likewise.
9490 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9491 * gimple-fold.c (gimple_fold_call): Handle null functions.
9492 (gimple_fold_stmt_to_constant_1): Don't fold
9493 calls to internal functions.
9494 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9495 functions.
9496 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9497 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9498 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9499 (do_warn_unused_result): Likewise.
9500 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9501 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9502 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9503 the target of a call.
9504 (initialize_hash_element): Update accordingly.
9505 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9506 (iterative_hash_hashable_expr): Handle calls to internal functions.
9507 (print_expr_hash_elt): Likewise.
9508 * tree-ssa-pre.c (can_value_number_call): Likewise.
9509 (eliminate): Handle null functions.
9510 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9511 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9512 (find_func_aliases): Likewise.
9513 * value-prof.c (gimple_ic_transform): Likewise.
9514 (gimple_indirect_call_to_profile): Likewise.
9515 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9516 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9517
1a3118e9
JH
95182011-04-19 Jan Hubicka <jh@suse.cz>
9519
9520 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
9521 * ipa-inline.c (inline_small_functions): Compute summaries first,
9522 populate heap later.
1a3118e9 9523
fee8b6da
JH
95242011-04-19 Jan Hubicka <jh@suse.cz>
9525
9526 * cgraph.h (save_inline_function_body): Remove.
9527 * ipa-inline-transform.c: New file, broke out of...
9528 * ipa-inline.c: ... this one; Update toplevel comment.
9529 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9530 make global.
9531 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9532 (cgraph_mark_inline_edge): Rename to inline_call; move to
9533 ipa-inline-transform.c.
9534 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9535 move to ipa-inline-transform.c
9536 (recursive_inlining, inline_small_functions, flatten_function,
9537 ipa_inline, inline_always_inline_functions,
9538 early_inline_small_functions): Update.
9539 (inline_transform): Move to ipa-inline-transform.c.
9540 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9541 Declare.
9542 * Makefile.in (ipa-inline-transform.o): New file.
9543 * cgraphunit.c (save_inline_function_body): Move to
9544 ipa-inline-transform.c
9545
f0679612
DD
95462011-04-19 DJ Delorie <dj@redhat.com>
9547
9548 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9549 registers if we already know there aren't any.
9550 (m32c_emit_epilogue): Don't emit a barrier here.
9551 (m32c_emit_eh_epilogue): Likewise.
9552 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9553 operands at expand time.
9554 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9555 int" wchar type.
9556 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9557 duplicates. Provide aliases instead.
9558 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9559 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9560 the compiler.
9561
32257ddc
AS
95622011-04-19 Anatoly Sokolov <aesok@post.ru>
9563
9564 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9565 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9566 (general_or_i64_p, sparc_register_move_cost): New function.
9567
60bea929
RO
95682011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9569
9570 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 9571 Add lynx, mipssde. Sort table.
60bea929 9572
444b3995 95732011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 9574
9d12f71a
EB
9575 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9576 not negative.
444b3995 9577
d708ce50
JJ
95782011-04-19 Jakub Jelinek <jakub@redhat.com>
9579
9580 PR target/48678
9581 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9582 is a SUBREG with non-MODE_INT mode inside of it.
9583
49c471e3
MJ
95842011-04-19 Martin Jambor <mjambor@suse.cz>
9585
9586 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9587 also according to actual contants.
9588 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9589 (gimple_fold_call): Use it.
9590 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9591
0004f992
MJ
95922011-04-19 Martin Jambor <mjambor@suse.cz>
9593
9594 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9595 non-pointer assignments.
9596
40591473
MJ
95972011-04-19 Martin Jambor <mjambor@suse.cz>
9598
9599 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9600 account anc_offset and otr_type from the indirect edge info.
9601 * ipa-prop.c (get_ancestor_addr_info): New function.
9602 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9603 get_ancestor_addr_info, call it.
9604 (ipa_note_param_call): Do not initialize information about polymorphic
9605 calls, return the indirect call graph edge. Remove the last
9606 parameter, adjust all callers.
9607 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9608 parameters. Initialize polymorphic information in the indirect edge.
9609
abe36b81
EB
96102011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9611
9612 PR lto/48148
9613 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9614 the types if they have different enumeration identifiers.
9615
e6416b30
JH
96162011-04-19 Jan Hubicka <jh@suse.cz>
9617
9618 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9619 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9620 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9621 (optimize_function_for_size_p) ... here.
9622
d39132ea
RG
96232011-04-19 Richard Guenther <rguenther@suse.de>
9624
9625 PR lto/48207
9626 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9627 langhook.
9628
ff7037dc
EB
96292011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9630
9631 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9632 if DECL_NO_INLINE_WARNING_P is set on the function.
9633
c1ee2892
BS
96342011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9635
9636 PR fortran/47976
9637 * reload1.c (inc_for_reload): Return void. All callers changed.
9638 (emit_input_reload_insns): Don't try to delete previous output
9639 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
9640
96412011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9642
9643 * gengtype.h: Updated copyright year.
9644 (struct input_file_st): Add inpisplugin field.
9645 (type_fileloc): New function.
9646 * gengtype.c
9647 (write_typed_struct_alloc_def): Add gcc_assert.
9648 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9649 (write_typed_alloc_defns): Don't output for plugin files.
9650 (input_file_by_name): Clear inpisplugin field.
9651 (main): Set inpisplugin field for plugin files.
9652
897e0a89
NP
96532011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9654
9655 * gengtype-state.c (string_eq): New.
9656 (read_state): Use string_eq instead of strcmp when creating the
9657 state_ident_tab.
9658
363ee90e
WG
96592011-04-19 Wei Guozhi <carrot@google.com>
9660
9661 PR target/47855
9662 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9663 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9664 linkage.
9665 * config/arm/constraints.md (Uu): New constraint.
9666 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9667
18a24fed
TG
96682011-04-19 Tristan Gingold <gingold@adacore.com>
9669
9670 * config.gcc (-*-*-*vms): Added.
9671 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9672 definitions moved.
9673 * config/vms/vms-ld.c: New file.
9674 * config/vms/vms-ar.c: New file.
9675 * config/vms/t-vmsnative: New file.
9676
1c13f168
XDL
96772011-04-18 Xinliang David Li <davidxl@google.com>
9678
9679 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9680
84825707
JJ
96812011-04-18 Jakub Jelinek <jakub@redhat.com>
9682
9683 PR middle-end/48661
9684 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9685 if TREE_TYPE (v) is non-NULL.
9686
9687 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9688 gimple_get_virt_mehtod_for_binfo.
9689 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9690 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9691 callers.
9692 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9693
7d4f8d02 96942011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
9695 Steve Ellcey <sje@cup.hp.com>
9696
7d4f8d02
EB
9697 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9698 use its mode as source mode if it isn't VOIDmode.
7254cb57 9699
474e8e70
DCR
97002011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9701
9702 * doc/passes.texi: Fill crossref nodes.
9703
cff41484
JM
97042011-04-18 Jim Meyering <meyering@redhat.com>
9705
7d4f8d02 9706 Fix doubled-word typos in comments and strings
cff41484
JM
9707 * config/alpha/vms-unwind.h: s/for for/for/
9708 * config/arm/unwind-arm.h: Likewise.
9709 * config/microblaze/microblaze.c: Likewise.
9710 * config/sh/constraints.md: s/in in/in/
9711 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9712
f60c2554
UB
97132011-04-18 Uros Bizjak <ubizjak@gmail.com>
9714
9715 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9716 (AVX_FLOAT_MODE_P): Ditto.
9717 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9718 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9719 (AVX_VEC_FLOAT_MODE_P): Ditto.
9720 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9721 (UNSPEC_MASKSTORE): Ditto.
9722 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9723 Merge from <sse>_movmsk<ssemodesuffix> and
9724 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9725 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9726 iterator.
9727 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9728 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9729 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9730
09a2806f
JH
97312011-04-18 Jan Hubicka <jh@suse.cz>
9732
8a8dccb2
JH
9733 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9734
09a2806f
JH
9735 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9736 (want_inline_function_called_once_p): Break out the logic from
9737 ipa_inline.
9738 (edge_badness): Ensure that profile is not misupdated.
9739 (lookup_recursive_calls): Prioritize by call frequencies.
9740 (inline_small_functions): Move program size estimates here;
9741 actually process whole queue even when unit growth has been
9742 met. (to properly compute inline_failed reasons and for the
f60c2554 9743 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
9744 (ipa_inline): Remove unit summary code; first inline hot calls
9745 of functions called once, cold calls next.
9746 (order, nnodes): Remove unused variables.
9747 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9748 (GTFILES): Remove ipa-inline.c
9749 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9750
3eea52ef
EB
97512011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9752
9753 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9754
229a1c59 97552011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 9756 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
9757
9758 * arm.c (neon_builtin_type_bits): Remove.
9759 (typedef enum neon_builtin_mode): New.
9760 (T_MAX): Don't define.
9761 (typedef enum neon_builtin_datum): Remove bits, codes[],
9762 num_vars and base_fcode. Add mode, code and fcode.
9763 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9764 VAR10): Change accordingly.
9765 (neon_builtin_data[]): Change accordingly
9766 (arm_init_neon_builtins): Change accordingly.
9767 (neon_builtin_compare): Remove.
9768 (locate_neon_builtin_icode): Remove.
9769 (arm_expand_neon_builtin): Change accordingly.
9770
9771 * arm.h (enum arm_builtins): Move to ...
9772 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9773
9774 * arm.c (arm_builtin_decl): Declare.
9775 (TARGET_BUILTIN_DECL): Define.
9776 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9777 (arm_builtin_decls[]): New.
9778 (arm_init_neon_builtins): Store builtin declarations in
9779 arm_builtin_decls[].
9780 (arm_init_tls_builtins): Likewise.
9781 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9782 (arm_builtin_decl): New.
9783
75e802cc
RG
97842011-04-18 Richard Guenther <rguenther@suse.de>
9785
9786 * tree.c (upper_bound_in_type): Build properly canonicalized
9787 INTEGER_CSTs.
9788 (lower_bound_in_type): Likewise.
9789
3b45a007
RG
97902011-04-18 Richard Guenther <rguenther@suse.de>
9791
9792 * gimple.h (gimple_call_addr_fndecl): New function.
9793 (gimple_call_fndecl): Use it.
9794 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9795 for direct calls.
9796 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9797 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9798
d25a79ea
RG
97992011-04-18 Richard Guenther <rguenther@suse.de>
9800
9801 PR middle-end/48650
9802 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9803
7d5fc814
EB
98042011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9805
9806 PR lto/48492
9807 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9808 DECL_IN_CONSTANT_POOL without RTL.
9809
7e7cfcf6
UW
98102011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9811 Ira Rosen <ira.rosen@linaro.org>
9812
9813 PR target/48252
9814 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9815 to match neon_vzip/vuzp/vtrn_internal.
9816 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9817 outputs explicitly dependent on both inputs.
9818 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9819
49eab32e
JJ
98202011-04-18 Jakub Jelinek <jakub@redhat.com>
9821
9822 PR tree-optimization/48616
9823 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9824 whether the shift is by scalar or vector based on whether all SLP
9825 scalar stmts have the same rhs.
9826
e54170f4
CLT
98272011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9828
9829 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9830 memory operands.
9831
b14ee6c9
RS
98322011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9833
269e0e18 9834 PR target/43700
b14ee6c9
RS
9835 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9836 registers.
9837
10158cd3
JH
98382011-04-17 Jan Hubicka <jh@suse.cz>
9839
9840 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
9841 * cgrpahunit.c (cgraph_finalize_function): Do not set
9842 finalized_by_frontend.
10158cd3
JH
9843 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9844 finalized_by_frontend.
9845
2e9bb6ba
JH
98462011-04-17 Jan Hubicka <jh@suse.cz>
9847
9848 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9849 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9850 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
9851 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9852 method.
2e9bb6ba
JH
9853 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9854 gimple-fold.c
9855 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9856
beb628e1
EB
98572011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9858
9859 PR lto/48538
9860 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9861 is non-null before accessing it.
9862 (input_cgraph): Remove trailing spaces.
9863
3e2fdd24
RE
98642011-04-17 Revital Eres <revital.eres@linaro.org>
9865
9866 * params.def (sms-min-sc): New param flag.
9867 * modulo-sched.c (sms_schedule): Use it.
9868 * doc/invoke.texi (sms-min-sc): Document it.
9869
4c0f7679
JH
98702011-04-17 Jan Hubicka <jh@suse.cz>
9871
9872 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9873 present, also set gimple_call_set_cannot_inline.
9874 * ipa-inline.c: Update toplevel comment.
9875 (MAX_TIME): Remove.
9876 (cgraph_clone_inlined_nodes): Fix linebreaks.
9877 (cgraph_check_inline_limits): Restructure to ...
9878 (caller_growth_limits): ... this one; be more tolerant
9879 on growth in nested inline chains; add explanatory comment;
9880 fix stack accounting thinko introduced by previous patch.
9881 (cgraph_default_inline_p): Remove.
9882 (report_inline_failed_reason): New function.
9883 (can_inline_edge_p): New function.
9884 (can_early_inline_edge_p): New function.
9885 (leaf_node_p): Move upwards in file.
9886 (want_early_inline_function_p): New function.
9887 (want_inline_small_function_p): New function.
9888 (want_inline_self_recursive_call_p): New function.
9889 (cgraph_edge_badness): Rename to ...
9890 (edge_badness) ... this one; fix linebreaks.
9891 (update_edge_key): Update call of edge_baddness; add
9892 detailed dump about queue updates.
9893 (update_caller_keys): Use can_inline_edge_p and
9894 want_inline_small_function_p.
9895 (cgraph_decide_recursive_inlining): Rename to...
9896 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
9897 want_inline_self_recursive_call_p; simplify and remove no longer
9898 valid FIXME.
4c0f7679
JH
9899 (cgraph_set_inline_failed): Remove.
9900 (add_new_edges_to_heap): Use can_inline_edge_p and
9901 want_inline_small_function_p.
9902 (cgraph_decide_inlining_of_small_functions): Rename to ...
9903 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
9904 can/want predicates; cleanup debug ouput; work edges till fibheap
9905 is exhausted and do not stop once unit growth is reached; remove
9906 later loop processing remaining edges.
4c0f7679
JH
9907 (cgraph_flatten): Rename to ...
9908 (flatten_function): ... this one; use can_inline_edge_p
9909 and can_early_inline_edge_p predicates.
9910 (cgraph_decide_inlining): Rename to ...
9911 (ipa_inline): ... this one; remove unreachable nodes before
9912 inlining functions called once; simplify the pass.
9913 (cgraph_perform_always_inlining): Rename to ...
9914 (inline_always_inline_functions): ... this one; use
f60c2554 9915 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
9916 (cgraph_decide_inlining_incrementally): Rename to ...
9917 (early_inline_small_functions): ... this one; simplify
9918 using new predicates; cleanup; make dumps prettier.
9919 (cgraph_early_inlining): Rename to ...
9920 (early_inliner): newer inline regular functions into always-inlines;
9921 fix updating of call stmt summaries.
9922 (pass_early_inline): Update for new names.
9923 (inline_transform): Fix formating.
9924 (gate_cgraph_decide_inlining): Rename to ...
9925 (pass_ipa_inline): ... this one.
9926 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9927 * ipa-inline-analysis.c (dump_inline_summary): Update.
9928 (compute_inline_parameters): Do not compute disregard_inline_limits;
9929 look for mismatching arguments.
9930 (estimate_growth): Fix handlig of non-trivial self recursion.
9931 (inline_read_summary): Do not read info->disregard_inline_limits.
9932 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
9933 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9934 and move all checks into can_inline_edge_p predicate; re-enable code
9935 comparing optimization levels.
4c0f7679
JH
9936 (expand_call_inline): Do not test inline_forbidden_into_p.
9937 * Makefile.in (ipa-inline.o): Update arguments.
9938
54333b7c
RE
99392011-04-17 Revital Eres <revital.eres@linaro.org>
9940
9941 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9942
42c2bf92
RE
99432011-04-17 Revital Eres <revital.eres@linaro.org>
9944
9945 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9946
b183e9e0
MM
99472011-04-17 Michael Matz <matz@suse.de>
9948
9949 PR tree-optimization/48622
9950 PR lto/48645
9951 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9952 in same order as they're written.
9953
b8a17fa2
JDA
99542011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9955
9956 * config/pa/predicates.md: Reorganize and simplify predicates.
9957 Eliminate duplicate code checks.
9958 (arith_operand): Rename to arith14_operand
9959 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9960 * config/pa/pa.md: Use renamed operands.
9961 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9962 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9963 arith11_operand, adddi3_operand, indexed_memory_operand,
9964 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9965 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9966 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9967 move_dest_operand, move_src_operand, prefetch_cc_operand,
9968 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9969 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9970 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9971 div_operand, int5_operand, movb_comparison_operator,
9972 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9973 arith_double_operand, ireg_operand, lhs_lshift_operand,
9974 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9975 integer_store_memory_operand): Likewise.
9976 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9977 (integer_store_memory_operand, read_only_operand,
9978 function_label_operand, borx_reg_operand,
9979 non_hard_reg_operand): Likewise.
9980 (eq_neq_comparison_operator): Delete unused operator.
9981 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9982 function_label_operand.
9983 (emit_move_sequence): Likewise.
9984
8dfb9f16
UB
99852011-04-16 Uros Bizjak <ubizjak@gmail.com>
9986
9987 * config/i386/sse.md (sseunpackmode): New mode attribute.
9988 (ssepackmode): Ditto.
9989 (vec_pack_trunc_<mode>): Macroize expander from
9990 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9991 (vec_unpacks_lo_<mode>): Macroize expander from
9992 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9993 (vec_unpacks_hi_<mode>): Macroize expander from
9994 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9995 (vec_unpacku_lo_<mode>): Macroize expander from
9996 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9997 (vec_unpacku_hi_<mode>): Macroize expander from
9998 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9999 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10000 ix86_expand_sse4_unpack.
10001 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10002
e7f23018
JH
100032011-04-16 Jan Hubicka <jh@suse.cz>
10004
10005 * cgraphbuild.c: Include ipa-inline.h.
10006 (reset_inline_failed): Use initialize_inline_failed.
10007 * cgraph.c: Include ipa-inline.h.
10008 (cgraph_create_node_1): Do not initialize estimated_growth.
10009 (initialize_inline_failed): More to ipa-inline-analysis.c
10010 (dump_cgraph_node): Do not dump inline flags.
10011 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10012 and disregard_inline_limits flags.
10013 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10014 time, size, estimated_growth.
8dfb9f16
UB
10015 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10016 Update.
e7f23018
JH
10017 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10018 DECL_DISREGARD_INLINE_LIMITS.
10019 (cgraph_analyze_function): Do not initialize
10020 node->local.disregard_inline_limits.
10021 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10022 inlinable, versionable and disregard_inline_limits.
10023 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
10024 cgraph_check_inline_limits, cgraph_default_inline_p,
10025 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10026 add_new_edges_to_heap): Update.
10027 (cgraph_decide_inlining_of_small_function): Update; set
10028 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
10029 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10030 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
10031 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10032 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10033 time, size and estimated_growth parameters.
e7f23018
JH
10034 (estimate_edge_growth): Update.
10035 (initialize_inline_failed): Declare.
10036 * ipa-split.c: Include ipa-inline.h
10037 (execute_split_functions): Update.
10038 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10039 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10040 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10041 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10042 estimated_growth to INT_MIN.
10043 (inline_node_duplication_hook): Likewise.
10044 (dump_inline_summary): Dump new fields.
10045 (compute_inline_parameters): Update.
10046 (estimate_edge_time, estimate_time_after_inlining,
10047 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10048 inline_write_summary):
10049 (initialize_inline_failed): Move here from cgraph.c.
10050 * tree-sra.c: Include ipa-inline.h.
10051 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
10052 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10053 ipa-inline.h.
e7f23018 10054
e81b8564
UB
100552011-04-16 Uros Bizjak <ubizjak@gmail.com>
10056
10057 * config/i386/sse.md (V16): New mode iterator.
10058 (VI1, VI8): Ditto.
10059 (AVXMODEQI, AVXMODEDI): Remove.
10060 (sse2, sse3): New mode attribute.
10061 (mov<mode>): Use V16 mode iterator.
10062 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10063 (push<mode>1): Use V16 mode iterator.
10064 (movmisalign<mode>): Ditto.
10065 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10066 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10067 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10068 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10069 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10070 avx_movdqu<avxmodesuffix>.
10071 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10072 *avx_movdqu<avxmodesuffix>.
10073 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10074 avx_lddqu<avxmodesuffix>.
10075 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10076 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10077 avx_movnt<AVXMODEDI:mode>.
10078 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10079 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10080
4743d438
BS
100812011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10082
10083 PR target/48629
10084 * haifa-sched.c (prune_ready_list, schedule_block): Use
10085 sched_pressure_p rather than flag_sched_pressure.
10086
748f7574 100872011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
10088
10089 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10090 cgraph_get_node instead of cgraph_get_create_node.
10091
2ba172e0
JJ
100922011-04-15 Jakub Jelinek <jakub@redhat.com>
10093
10094 * cfgexpand.c (expand_debug_expr): Use
10095 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10096
63d2a353
MM
100972011-04-15 Michael Matz <matz@suse.de>
10098
10099 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10100 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10101 * function.c (gimplify_parameters): Ditto.
10102 * gimplify.c (gimplify_vla_decl): Ditto.
10103
10104 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10105 (gimple_call_set_alloca_for_var): New inline function.
10106 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
10107 * gimple.c (gimple_build_call_from_tree): Remember
10108 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
10109 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10110
10111 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10112 calls if they were for VLA objects.
10113
dee74c34
MJ
101142011-04-15 Martin Jambor <mjambor@suse.cz>
10115
10116 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10117 of ADR_EXPRs.
10118
8e5837bc
MJ
101192011-04-15 Martin Jambor <mjambor@suse.cz>
10120
10121 PR middle-end/48601
10122 * tree-emutls.c (lower_emutls_function_body): Call
10123 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10124 result is non-NULL.
10125
0dc33c3c
NP
101262011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10127
10128 * c-decl.c (detect_field_duplicates): Call
10129 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10130
edcdea5b
NF
101312011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10132
10133 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10134 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10135 * ipa-pure-const.c (check_stmt): Call it.
10136 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10137
8456558d
RG
101382011-04-15 Richard Guenther <rguenther@suse.de>
10139
10140 PR tree-optimization/48290
10141 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10142 Properly decide inhibiting propagation based on the valueized
10143 operand. Do loop-closed SSA form preserving here ...
10144 (init_copy_prop): ... not here.
10145
266446be
L
101462011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10147
10148 PR target/48612
10149 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10150 (*ieee_smax<mode>3): Likewise.
10151
17465c6e
AK
101522011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10153
10154 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10155 Replace match_operand with match_dup for the third operand in
10156 these expanders.
10157
bce204e5
MK
101582011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10159
10160 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10161 to track processing of conditionals. Update all callers.
10162 (try_combine, simplify_if_then_else): Update.
10163
3162fdf4
MK
101642011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10165
10166 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10167 -fsched-pressure.
10168
79002a57 101692011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 10170
79002a57
GJL
10171 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10172 instead of match_operand for operand 3.
10173
4fd3a105
RS
101742011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10175
10176 * recog.h (insn_operand_data): Add an "allows_mem" field.
10177 * genoutput.c (output_operand_data): Initialize it.
10178 * optabs.c (maybe_legitimize_operand_same_code): New function.
10179 (maybe_legitimize_operand): Use it when matching the original
10180 op->value.
10181
ad19c4be
EB
101822011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10183
10184 * gimplify.c: Fix issues in comments throughout.
10185 (voidify_wrapper_expr): Fix long line.
10186 (build_stack_save_restore): Likewise.
10187 (gimplify_loop_expr): Likewise.
10188 (gimplify_compound_lval): Likewise.
10189 (gimplify_init_ctor_eval): Likewise.
10190 (gimplify_modify_expr_rhs): Likewise.
10191 (omp_notice_threadprivate_variable): Likewise.
10192
b25aa0e8 101932011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 10194
b25aa0e8
EB
10195 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10196 original one if this is not a builtin function.
e7925582 10197
09db7afe
JJ
101982011-04-14 Jakub Jelinek <jakub@redhat.com>
10199
10200 PR target/48605
10201 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10202 offset it as needed based on top 2 bits in operands[3], change
10203 MEM mode to SFmode and mask those 2 bits away from operands[3].
10204
c59633d9
NP
102052011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10206
10207 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10208 change from objc_declare_protocols() to objc_declare_protocol().
10209
5e60198b
UB
102102011-04-14 Uros Bizjak <ubizjak@gmail.com>
10211
10212 * config/i386/sse.md (sse4_1): New mode attribute.
10213 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10214 avx_blend<ssemodesuffix><avxmodesuffix> and
10215 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10216 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10217 avx_blendv<ssemodesuffix><avxmodesuffix> and
10218 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10219 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10220 avx_dp<ssemodesuffix><avxmodesuffix> and
10221 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10222 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10223 (sse4_1_packusdw): Merge with *avx_packusdw.
10224 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10225 (sse4_1_pblendw): Merge with *avx_pblendw.
10226 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10227 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10228 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10229 VF mode iterator.
10230 (sse4_1_round<ssescalarmodesuffix>): Merge with
10231 *avx_round<ssescalarmodesuffix>.
10232 (aesenc): Merge with *avx_aesenc.
10233 (aesenclast): Merge with *avx_aesenclast.
10234 (aesdec): Merge with *avx_aesdec.
10235 (aesdeclast): Merge with *avx_aesdeclast.
10236 (pclmulqdq): Merge with *pclmulqdq.
10237 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10238 New predicate.
10239 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10240
6f197850
L
102412011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10242
10243 PR middle-end/48608
10244 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10245 (align_local_variable): This. Update DECL_ALIGN.
10246 (add_stack_var): Updated.
10247 (expand_one_stack_var): Likewise.
10248
4a5ba3ed
RG
102492011-04-14 Richard Guenther <rguenther@suse.de>
10250
10251 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10252 Remove.
10253 (dse_initialize_block_local_data, dse_leave_block,
10254 record_voperand_set, get_stmt_uid): Likewise.
10255 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10256 (dse_optimize_stmt): Remove voperand set handling code.
10257 Simplify and improve to handle any kind of killing stmt.
10258 (dse_record_phi): Remove.
10259 (dse_enter_block): Simplify.
10260 (tree_ssa_dse): Likewise.
10261 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10262
10a5dd5d
JH
102632011-04-14 Jan Hubicka <jh@suse.cz>
10264
10265 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10266 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10267 (cgraph_local_info): Remove inline_summary.
10268 * ipa-cp.c: Include ipa-inline.h.
10269 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10270 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10271 accesor.
10272 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10273 (input_overwrite_node): Do not set inline summary.
10274 (input_node): Do not stream inline summary.
10275 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10276 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10277 growth; we do not have inline parameters computed for that anyway.
10278 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10279 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10280 (inline_summary_t): New type and VECtor.
10281 (debug_inline_summary, dump_inline_summaries): Declare.
10282 (inline_summary): Use VOCtor.
10283 (estimate_edge_growth): Kill hack computing call stmt size directly.
10284 * lto-section-in.c (lto_section_name): Add inline section.
10285 * ipa-inline-analysis.c: Include lto-streamer.h
10286 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10287 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10288 (inline_summary_vec): Define.
10289 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10290 dump_inline_summaries): New functions.
5e60198b
UB
10291 (estimate_function_body_sizes): Properly compute size/time of outgoing
10292 calls.
10293 (compute_inline_parameters): Alloc inline_summary; do not compute
10294 size/time of incomming calls.
10a5dd5d
JH
10295 (estimate_edge_time): Avoid missing time summary hack.
10296 (inline_read_summary): Read inline summary info.
10297 (inline_write_summary): Write inline summary info.
10298 (inline_free_summary): Free all hooks and inline summary vector.
10299 * lto-streamer.h: Add LTO_section_inline_summary section.
10300 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10301 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10302
b602d918
RS
103032011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10304
10305 * tree-vectorizer.h (vect_strided_store_supported): Add a
10306 HOST_WIDE_INT argument.
10307 (vect_strided_load_supported): Likewise.
10308 (vect_permute_store_chain): Return void.
10309 (vect_transform_strided_load): Likewise.
10310 (vect_permute_load_chain): Delete.
10311 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10312 count argument. Check that the count is a power of two.
10313 (vect_strided_load_supported): Likewise.
10314 (vect_permute_store_chain): Return void. Update after above changes.
10315 Assert that the access is supported.
10316 (vect_permute_load_chain): Likewise.
10317 (vect_transform_strided_load): Return void.
10318 * tree-vect-stmts.c (vectorizable_store): Update calls after
10319 above interface changes.
10320 (vectorizable_load): Likewise.
10321 (vect_analyze_stmt): Don't check for strided powers of two here.
10322
ab4472fa
RG
103232011-04-14 Richard Guenther <rguenther@suse.de>
10324
10325 PR tree-optimization/48590
10326 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10327 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10328 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10329 BUILT_IN_STACK_SAVE.
10330 * tree-ssa-dce.c (propagate_necessity): Handle
10331 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10332
32dabdaf
NP
103332011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10334
10335 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10336 objc_declare_class.
10337
daade206
RG
103382011-04-14 Richard Guenther <rguenther@suse.de>
10339
10340 * tree.h (get_object_alignment_1): Declare.
10341 * builtins.c (get_object_alignment_1): Split out worker from ...
10342 (get_object_alignment): ... here.
10343 * fold-const.c (get_pointer_modulus_and_residue): Use
10344 get_object_alignment_1.
10345
920e8172
RS
103462011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10347
10348 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10349 type parameter.
10350 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10351 parameter. Generalise code to handle arrays as well as vectors.
10352 (vect_setup_realignment): Update accordingly.
10353 * tree-vect-stmts.c (vectorizable_store): Likewise.
10354 (vectorizable_load): Likewise.
10355
5ce1ee7f
RS
103562011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10357
10358 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10359 within the per-copy loop.
10360
6438fe33 103612011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
10362
10363 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10364 in the dump file.
10365
6438fe33 103662011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
10367
10368 * doc/options.texi (Negative): Explicitly mention that the
10369 Negative chain must be circular.
10370
61e46a7d
NF
103712011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10372
10373 * function.h (block_chainon): Declare.
10374 * function.c (block_chainon): Define.
10375
43ea6502 103762011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 10377 Eric Weddington <eric.weddington@atmel.com>
748f7574 10378 Georg-Johann Lay <avr@gjlay.de>
5e60198b 10379
f60c2554 10380 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
10381 New Includes
10382 (avr_init_builtins, avr_expand_builtin,
10383 avr_expand_delay_cycles, avr_expand_unop_builtin,
10384 avr_expand_binop_builtin ): New functions.
10385 (avr_builtin_id): New enum
10386 (struct avr_builtin_description): New struct
10387 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10388 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 10389
43ea6502 10390 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 10391 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
10392 UNSPECV_DELAY_CYCLES): new enumeration values
10393 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10394 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10395 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10396 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10397 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10398 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10399 "fmulsu"): New insns
5e60198b 10400
43ea6502
AS
10401 * config/avr/avr-c.c: fix line endings
10402 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10403 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10404 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10405 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10406 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 10407
43ea6502
AS
10408 * doc/extend.texi (AVR Built-in Functions): New node
10409 (Target Builtins): Add documentation of AVR
10410 built-in functions.
10411
8a9b55f3
GJL
104122011-04-14 Georg-Johann Lay <avr@gjlay.de>
10413
10414 PR target/44643
10415 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10416 alone. Error if non-const data has attribute progmem.
10417
94bd1825
NF
104182011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10419
10420 * tree.h (struct tree_constructor): Include tree_typed instead of
10421 tree_common.
10422 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10423 TS_TYPED instead of TS_COMMON.
10424
5e60198b 104252011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
10426
10427 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10428 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10429 (sse2_psadbw): Merge with *avx_psadbw.
10430 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10431 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10432 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10433 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10434 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10435 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10436 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10437 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10438 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10439 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10440 (ssse3_palignrti): Merge with *avx_palignrti.
10441
4b1a4694
NF
104422011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10443
10444 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10445 * tree-ssanames.c (fini_ssanames): VEC_free it.
10446 (make_ssa_name_fn): Update for VECness of free_ssanames.
10447 (release_ssa_name, release_dead_ssa_names): Likewise.
10448 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10449 tree_common.
10450 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10451 TS_TYPED instead of TS_COMMON.
10452
4da3b811
NF
104532011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10454
10455 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10456 statistics_counter_event.
10457 * tree-ssa-copyrename.c (stats): Define.
10458 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10459 statistics_counter_event.
10460 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10461 (bswap_stats, widen_mul_stats): Define.
10462 (insert_reciprocals): Increment rdivs_inserted.
10463 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10464 rfuncs_inserted. Add calls to statistics_counter_event.
10465 (execute_cse_sincos_1): Increment inserted.
10466 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10467 statistics_counter_event.
10468 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10469 of bswap_stats. Add calls to statistics_counter_event.
10470 (convert_mult_to_widen): Increment widen_mults_inserted.
10471 (convert_plusminus_to_widen): Increment maccs_inserted.
10472 (convert_mult_to_fma): Increment fmas_inserted.
10473 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10474 calls to statistics_counter_event.
10475
89fa552a
VM
104762011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10477
10478 PR rtl-optimization/48455
10479 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10480 `temp_costs->mem_cost'.
10481
03dfc36d
JH
104822011-04-13 Jan Hubicka <jh@suse.cz>
10483
10484 * ipa-inline.h: New file.
10485 * ipa-inline-analysis.c: New file. Broken out of ...
10486 * ipa-inline.c: ... this file; update toplevel comment;
10487 include ipa-inline.h
10488 (inline_summary): Move to ipa-inline.h
10489 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10490 ipa-inline-analysis.c.
7d4f8d02
EB
10491 (cgraph_estimate_time_after_inlining): Rename to
10492 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
10493 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10494 to estimate_edge_growth.
10495 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10496 rename to estimate_size_after_inlining.
10497 (cgraph_mark_inline_edge): Update for new naming convention.
10498 (cgraph_check_inline_limits): Likewise.
10499 (cgraph_edge_badness): Likewise.
10500 (cgraph_decide_recursive_inlining): Likewise.
10501 (cgraph_decide_inlining_of_small_functions): Likewise.
10502 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
10503 (cgraph_estimate_growth): Rename to estimate_growth; move to
10504 ipa-inline-analysis.c.
03dfc36d
JH
10505 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10506 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10507 (compute_inline_parameters): Likewise.
10508 (compute_inline_parameters_for_current): Likewise.
10509 (pass_inline_parameters): Likewise.
10510 (inline_indirect_intraprocedural_analysis): Likewise.
10511 (analyze_function): Rename to inline_analyze_function; likewise.
10512 (add_new_function): Move to ipa-inline-analysis.c.
10513 (inline_generate_summary): Likewise.
10514 (inline_read_summary): Likewise.
10515 (inline_write_summary): Likewise.
10516 * Makefile.in (ipa-inline-analysis.c): New file.
10517
7673c962
RO
105182011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10519
10520 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10521 * configure: Regenerate.
10522
9698252f
NF
105232011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10524
10525 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10526 instead of tree_common.
10527 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10528 Likewise.
10529 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10530 TS_TYPED rather than TS_COMMON.
10531 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10532
3a7bfdd5
GJL
105332011-04-01 Georg-Johann Lay <avr@gjlay.de>
10534
10535 PR target/45263
86d83530
GJL
10536 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10537 r20 around calls of __tablejump_elpm__
3a7bfdd5 10538
20790697
JJ
105392011-04-13 Jakub Jelinek <jakub@redhat.com>
10540
10541 PR middle-end/48591
10542 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10543 NULL.
10544 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10545
094d7661
BS
105462011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10547
10548 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10549 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10550 (cfi_vec): New typedef.
10551 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10552 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10553 (cie_cfi_vec): New static variable.
10554 (cie_cfi_head): Delete.
10555 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10556 declaration changed. Use vector rather than list operations.
10557 (new_cfi): Don't initialize the dw_cfi_next field.
10558 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10559 rather than list operations.
10560 (lookup_cfa): Use vector rather than list operations.
10561 (output_cfis): New argument upto. Accept a cfi_vec rather than
10562 a dw_cfi_ref list head as argument. All callers changed.
10563 Iterate over the vector using upto as a maximum index.
10564 (output_all_cfis): New static function.
10565 (output_fde): Use vector rather than list operations. Use the
10566 new upto argument for output_cfis rather than manipulating a
10567 list.
10568 (dwarf2out_begin_prologue): Change initializations to match
10569 new struct members.
10570 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10571 from the vector length rather than searching for the end of a list.
10572 Use output_all_cfis.
10573 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10574
673a5740
NC
105752011-04-13 Nick Clifton <nickc@redhat.com>
10576
10577 * config/rx/rx.md (movmemsi): Do not use this pattern when
10578 volatile pointers are involved.
10579
1ee8b298
UB
105802011-04-13 Uros Bizjak <ubizjak@gmail.com>
10581
10582 * config/i386/sse.md (pinsrbits): Remove.
10583 (sse2_packsswb): Merge with *avx_packsswb.
10584 (sse2_packssdw): Merge with *avx_packssdw.
10585 (sse2_packuswb): Merge with *avx_packuswb.
10586 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10587 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10588 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10589 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10590 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10591 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10592 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10593 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10594 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10595 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10596 (sse2_loadld): Merge with *avx_loadld.
10597 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10598 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10599 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10600 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10601 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10602
81f653d6
NF
106032011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10604
10605 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10606 calling TREE_CHAIN.
10607 * print-tree.c (print_node): Likewise.
10608 * tree-inline.c (copy_tree_r): Likewise.
10609 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10610 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10611 instead of TS_COMMON.
10612 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10613 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10614 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10615 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10616 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10617 ...and these...
10618 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10619 * tree.h: ...here.
10620 (TREE_CHAIN): Check for a TS_COMMON structure.
10621 (TREE_TYPE): Check for a TS_TYPED structure.
10622
748f7574 106232011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
10624
10625 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10626 cgraph_get_create_node instead of cgraph_node.
10627
eb345401
NP
106282011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10629
10630 * c-parser.c (c_parser_initelt): Updated call to
10631 objc_build_message_expr.
10632 (c_parser_postfix_expression): Likewise.
10633
a6c46762
KT
106342011-04-12 Kai Tietz <ktietz@redhat.com>
10635
10636 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10637 MASK_MS_BITFIELD_LAYOUT bit.
10638
b4ccfed9
JJ
106392011-04-12 Jakub Jelinek <jakub@redhat.com>
10640
10641 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10642 assert it is always true.
10643 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10644 moves.
10645
0d8a2528
NP
106462011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10647
10648 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10649 compiling Objective-C to be more efficient.
10650
06bd234a
AF
106512011-04-12 Axel Freyn <axel-freyn@gmx.de>
10652
10653 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10654 argv_copied.
10655
28569ac3
RS
106562011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10657
10658 * recog.h, genoutput.c, optabs.c: Revert last patch.
10659
ae59e00d
RR
106602011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10661
81b1e7eb
UB
10662 PR target/48090
10663 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 10664
cff1b7e0
RS
106652011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10666
10667 * recog.h (insn_operand_data): Add an "allows_mem" field.
10668 * genoutput.c (output_operand_data): Initialize it.
10669 * optabs.c (maybe_legitimize_operand_same_code): New function.
10670 (maybe_legitimize_operand): Use it when matching the original
10671 op->value.
10672
77059241
RS
106732011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10674
10675 * genpreds.c (process_define_predicate): Move most processing
10676 to gensupport.c. Continue to validate the expression.
10677 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10678 (process_define_predicate): Move processing to gensupport.c.
10679 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10680 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10681 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10682 argument.
10683 (valid_predicate_name_p): New function, split out from old
10684 genpreds.c:process_define_predicate.
10685 (process_define_predicate): New function, combining code from
10686 old genpreds.c and genrecog.c functions.
10687 (process_rtx): Call it for DEFINE_PREDICATE and
10688 DEFINE_SPECIAL_PREDICATE.
10689
6308e208
RS
106902011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10691
10692 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10693 size of a '%A' memory reference.
10694 (T_DREG, T_QREG): New neon_builtin_type_bits.
10695 (arm_init_neon_builtins): Assert that the load and store operands
10696 are neon_struct_operands.
10697 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10698 (NEON_ARG_MEMORY): New builtin_arg.
10699 (neon_dereference_pointer): New function.
10700 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10701 Handle NEON_ARG_MEMORY.
10702 (arm_expand_neon_builtin): Update after above interface changes.
10703 Use NEON_ARG_MEMORY for loads and stores.
10704 * config/arm/predicates.md (neon_struct_operand): New predicate.
10705 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10706 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10707 (V_four_elem): Tweak formatting.
10708 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10709 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10710 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10711 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10712 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10713 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10714 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10715 Use %A in the output template.
10716 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10717 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10718 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10719 the width of the memory access. Remove post-increment.
10720 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10721
e5db8f2f
NC
107222011-04-12 Nick Clifton <nickc@redhat.com>
10723
10724 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10725 instruction for interrupt handlers if the target is the basic V850
10726 architecture.
10727 (expand_epilogue): Likewise.
10728
74f091d6
JJ
107292011-04-12 Jakub Jelinek <jakub@redhat.com>
10730
10731 PR rtl-optimization/48549
10732 * combine.c (propagate_for_debug): Also stop after BB_END of
10733 this_basic_block. Process LAST and just stop processing after it.
10734 (combine_instructions): If last_combined_insn has been deleted,
10735 set last_combined_insn to its PREV_INSN.
10736
f20ca725
RG
107372011-04-12 Richard Guenther <rguenther@suse.de>
10738
10739 PR tree-optimization/46076
10740 * gimple.h (struct gimple_statement_call): Add fntype field.
10741 (gimple_call_fntype): Adjust.
10742 (gimple_call_set_fntype): New function.
10743 * gimple.c (gimple_build_call_1): Set the call function type.
10744 * gimplify.c (gimplify_call_expr): Preserve the function
10745 type the frontend used for the call.
10746 (gimplify_modify_expr): Likewise.
10747 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10748 function type.
10749 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10750 function type.
10751 * tree-ssa.c (useless_type_conversion_p): Function pointer
10752 conversions are useless.
10753
a358e188
MJ
107542011-04-12 Martin Jambor <mjambor@suse.cz>
10755
10756 * cgraph.h (cgraph_node): Remove function declaration.
10757 (cgraph_create_node): Declare.
10758 (cgraph_get_create_node): Likewise.
10759 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10760 Updated all callers.
10761 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10762 the decl does not already exist. Call cgraph_get_create_node instead
10763 of cgraph_node.
10764 (cgraph_get_create_node): New function.
10765 (cgraph_same_body_alias): Update comment.
10766 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10767 assert it does not return NULL.
10768 (cgraph_update_edges_for_call_stmt): Likewise.
10769 (cgraph_clone_edge): Likewise.
10770 (cgraph_create_virtual_clone): Likewise.
10771 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10772 instead of cgraph_node.
10773 (cgraph_add_new_function): Call cgraph_create_node or
10774 cgraph_get_create_node instead of cgraph_node.
10775 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10776 instead of cgraph_node.
10777 (record_eh_tables): Likewise.
10778 (mark_address): Likewise.
10779 (mark_load): Likewise.
10780 (build_cgraph_edges): Call cgraph_get_create_node instead
10781 of cgraph_node.
10782 (rebuild_cgraph_edges): Likewise.
10783 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10784 instead of cgraph_node.
10785 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10786 cgraph_node.
10787 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10788 cgraph_create_node instead of cgraph_node.
10789 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10790 of cgraph_node.
10791 * lto-cgraph.c (input_node): Likewise.
10792 * lto-streamer-in.c (input_function): Likewise.
10793 * varasm.c (mark_decl_referenced): Likewise.
10794 (assemble_alias): Likewise.
10795
fe660d7b
MJ
107962011-04-12 Martin Jambor <mjambor@suse.cz>
10797
10798 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10799 instead of cgraph_node and assert it does not return NULL.
10800 * lto-streamer-in.c (lto_read_body): Likewise.
10801 * omp-low.c (new_omp_context): Likewise.
10802 (create_task_copyfn): Likewise.
10803 * tree-emutls.c (lower_emutls_function_body): Likewise.
10804 * matrix-reorg.c (transform_allocation_sites): Likewise.
10805
bae5cddf
JJ
108062011-04-12 Jakub Jelinek <jakub@redhat.com>
10807
10808 PR c/48552
10809 * c-typeck.c (build_asm_expr): Error out on attempts to use
10810 void type outputs or inputs for constraints that allow reg or
10811 don't allow memory.
10812
06eb52ca
CLT
108132011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10814 Richard Earnshaw <rearnsha@arm.com>
10815
10816 PR target/48250
10817 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10818 to use sign-magnitude offsets. Reject unsupported unaligned
10819 cases. Add detailed description in comments.
10820 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10821 condition from TARGET_32BIT to TARGET_ARM.
10822
648a616b
NF
108232011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10824
10825 * tree.h (struct typed_tree): New.
10826 (struct tree_common): Include it instead of tree_base.
10827 (TREE_TYPE): Update for new location of type field.
10828 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10829 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10830 (union tree_node): Add typed field.
10831 * treestruct.def (TS_TYPED): New.
10832 * lto-streamer.c (check_handled_ts_structures): Handle it.
10833 * tree.c (MARK_TS_TYPED): New macro.
10834 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10835
1e6d1da0
EB
108362011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10837
10838 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10839 (force_nonfallthru): Do not alter the loop nest if no basic block
10840 was created.
10841
108422011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
10843
10844 * config/i386/sse.md (VI): New mode iterator.
10845 (SSEMODEI): Remove.
10846 (AVX256MODEI): Ditto.
10847 (AVXMODEF4P): Ditto.
10848 (avxvecpsmode): Ditto.
10849 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10850 (sse2_andnot<mode>3): New expander.
10851 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10852 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10853 (<any_logic:code><mode>3): Use VI mode iterator.
10854 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10855 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10856 (*andnottf3): Handle AVX three-operand constraints.
10857 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10858
b1372d5d 108592011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 10860 Robert Millan <rmh@gnu.org>
b1372d5d
JM
10861
10862 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10863 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10864 GNU_USER_DYNAMIC_LINKER64): Define.
10865 (REG_NAME): Don't undefine.
10866 (MD_UNWIND_SUPPORT): Undefine.
10867 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10868 (REG_NAME): Don't undefine.
10869 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 10870 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 10871
761c0c6e
JM
108722011-04-11 Joseph Myers <joseph@codesourcery.com>
10873
10874 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10875 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10876
26e0228f
XDL
108772011-04-11 Xinliang David Li <davidxl@google.com>
10878
10879 * value-profile.c (check_ic_target): New function.
10880 (gimple_ic_transform): Sanity check indirect call target.
10881 * gimple-low.c (gimple_check_call_args): Interface change.
10882 (gimple_check_call_matching_types): New function.
10883 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
10884
108852011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10886
10887 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10888 tree-pretty-print.h & realmpfr.h.
10889
a58dfa49
VM
108902011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10891
10892 PR middle-end/48464
10893 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10894 (setup_allocno_and_important_classes): Ditto.
10895
107fd1c1
JM
108962011-04-11 Joseph Myers <joseph@codesourcery.com>
10897
10898 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10899 GNU_USER_DYNAMIC_LINKER.
10900 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10901 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10902 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10903 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10904 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10905 GNU_USER_TARGET_OS_CPP_BUILTINS.
10906 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10907 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10908 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10909 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10910 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10911 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10912 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10913 GNU_USER_TARGET_OS_CPP_BUILTINS.
10914 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10915 GNU_USER_DYNAMIC_LINKER.
10916 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10917 GNU_USER_TARGET_OS_CPP_BUILTINS.
10918 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10919 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10920 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10921 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10922 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10923 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10924 GNU_USER_DYNAMIC_LINKER64): Remove.
10925 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10926 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10927 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10928 GNU_USER_DYNAMIC_LINKER.
10929 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10930 GNU_USER_TARGET_OS_CPP_BUILTINS.
10931 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10932 GNU_USER_TARGET_OS_CPP_BUILTINS.
10933 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10934 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10935 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10936 GNU_USER_TARGET_OS_CPP_BUILTINS.
10937 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10938 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10939 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10940 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10942 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10943 GNU_USER_DYNAMIC_LINKER.
10944 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10945 GNU_USER_TARGET_OS_CPP_BUILTINS.
10946 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10947 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10948 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10949 GNU_USER_DYNAMIC_LINKER.
10950 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10951 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10952 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10953 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10954 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10955 GNU_USER_DYNAMIC_LINKER.
10956 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10957 GNU_USER_DYNAMIC_LINKERN32.
10958 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10959 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10960 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10961 GNU_USER_DYNAMIC_LINKER32.
10962 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10963 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10964 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10965 GNU_USER_DYNAMIC_LINKER.
10966 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10967 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10968 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10969 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10970 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
10971 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10972 GNU_USER_DYNAMIC_LINKER32.
10973 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10974 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10975 GNU_USER_DYNAMIC_LINKER.
10976 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10977 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10978 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10979 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10980 GNU_USER_DYNAMIC_LINKER64.
10981 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10983 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10984 GNU_USER_DYNAMIC_LINKER.
10985 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10986 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10987 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10988 GNU_USER_DYNAMIC_LINKER.
10989 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10990 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10991 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10992 GNU_USER_DYNAMIC_LINKER32.
10993 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10994 GNU_USER_DYNAMIC_LINKER64.
10995 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10996 GNU_USER_DYNAMIC_LINKER64.
10997 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10998 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10999 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11000 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 11001 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 11002
e24609cf
JM
110032011-04-11 Joseph Myers <joseph@codesourcery.com>
11004
11005 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11006 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11007 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11008 GNU_USER_DYNAMIC_LINKER.
11009 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11010 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11011 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11012 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11013 GNU_USER_DYNAMIC_LINKER64.
11014 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11015 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11016 GNU_USER_LINK_EMULATION.
11017 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11018 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11019 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11020 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11021 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11022 CPP_SPEC, CC1_SPEC): Remove.
11023 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11024 (GNU_USER_DYNAMIC_LINKER): Define.
11025 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11026 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11027 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11028 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11029 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11030 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11031 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11032 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11033 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11034 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11035 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11036 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11037 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11038 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11039 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11040 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11041 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11042 GNU_USER_DYNAMIC_LINKER.
11043 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11044 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11045 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11046 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11047 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11048 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11049 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11050 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11051 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 11052 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 11053
b8ce4e94
KT
110542011-04-11 Kai Tietz <ktietz@redhat.com>
11055
11056 PR target/9601
11057 PR target/11772
11058 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11059 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11060 comment.
11061 (ix86_is_msabi_thiscall): Removed.
11062 (ix86_is_type_thiscall): Likewise.
11063 (ix86_get_callcvt): New function.
11064 (ix86_comp_type_attributes): Simplify check.
11065 (ix86_function_regparm): Use ix86_get_callcvt for calling
11066 convention attribute checks.
11067 (ix86_return_pops_args): Likewise.
11068 (ix86_static_chain): Likewise.
11069 (x86_this_parameter): Likewise.
11070 (x86_output_mi_thunk): Likewise.
11071 (ix86_function_type_abi): Optimize check for types without attributes.
11072 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11073 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11074 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11075 by flag-values.
11076 (IX86_BASE_CALLCVT): Helper macro.
11077 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11078 Use ix86_get_callcvt for calling convention attribute checks and avoid
11079 symbol-decoration for stdcall in TARGET_RTD case.
11080 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11081 Likewise.
11082 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11083 for declaration.
11084
798dd0ba
UB
110852011-04-11 Uros Bizjak <ubizjak@gmail.com>
11086
11087 * config/i386/sse.md (VI_128): New mode iterator.
11088 (VI12_128): Rename from SSEMODE12.
11089 (VI14_128): Rename from SSEMODE14.
11090 (VI124_128): New mode iterator.
11091 (VI24_128): Rename from SSEMODE248.
11092 (VI248_128): Rename from SSEMODE248.
11093 (SSEMODE124C8): Remove.
11094 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11095 (*sse2_<plusminus_insn><mode>3): Merge with
11096 *avx_<plusminus_insn><mode>3.
11097 (*mulv8hi3): Merge with *avx_mulv8hi3.
11098 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11099 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11100 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11101 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11102 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11103 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11104 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11105 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11106 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11107 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11108 (*<smaxmin:code>v8hi3): Ditto.
11109 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11110 (*<smaxmin:code>v16qi3): Ditto.
11111 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11112 (*sse2_eq<mode>3): Ditto.
11113 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11114 (*sse2_gt<mode>3): Ditto.
11115 (vcondv2di): Split out of vcond<mode>.
11116 (vconduv2di): Split out of vcondu<mode>.
11117
956011be
RG
111182011-04-11 Richard Guenther <rguenther@suse.de>
11119
11120 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11121 before calling tree_low_cst.
11122
e6313a78
RG
111232011-04-11 Richard Guenther <rguenther@suse.de>
11124
11125 * stor-layout.c (layout_type): Compute all array index size operations
11126 in the original type.
11127 (initialize_sizetypes): Add comment.
11128 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11129
e69d7376
JM
111302011-04-11 Joseph Myers <joseph@codesourcery.com>
11131
11132 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11133
9f9ebcdf
MJ
111342011-04-11 Martin Jambor <mjambor@suse.cz>
11135
11136 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11137 of cgraph_node, handle NULL return value.
11138 (cgraph_global_info): Likewise.
11139 (cgraph_rtl_info): Likewise.
11140 * tree-inline.c (estimate_num_insns): Likewise.
11141 * gimplify.c (unshare_body): Likewise.
11142 (unvisit_body): Likewise.
11143 (gimplify_body): Likewise.
11144 * predict.c (optimize_function_for_size_p): Likewise.
11145 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11146 (call_may_clobber_ref_p_1): Likewise.
11147 * varasm.c (function_section_1): Likewise.
11148 (assemble_start_function): Likewise.
11149
581985d7
MJ
111502011-04-11 Martin Jambor <mjambor@suse.cz>
11151
11152 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11153 of cgraph_node.
11154 * final.c (rest_of_clean_state): Likewise.
11155 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11156 * passes.c (pass_init_dump_file): Likewise.
11157 (execute_all_ipa_transforms): Likewise.
11158 (function_called_by_processed_nodes_p): Likewise.
11159 * predict.c (maybe_hot_frequency_p): Likewise.
11160 (probably_never_executed_bb_p): Likewise.
11161 (compute_function_frequency): Likewise.
11162 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11163 (unnest_nesting_tree_1): Likewise.
11164 (lower_nested_functions): Likewise.
11165 * tree-optimize.c (execute_fixup_cfg): Likewise.
11166 (tree_rest_of_compilation): Likewise.
11167 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11168 * tree-sra.c (ipa_early_sra): Likewise.
11169 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11170 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11171 * ipa.c (record_cdtor_fn): Likewise.
11172 * ipa-inline.c (cgraph_early_inlining): Likewise.
11173 (compute_inline_parameters_for_current): Likewise.
11174 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11175 * ipa-pure-const.c (local_pure_const): Likewise.
11176 * ipa-split.c (split_function): Likewise.
11177 (execute_split_functions): Likewise.
11178 * cgraphbuild.c (build_cgraph_edges): Likewise.
11179 (rebuild_cgraph_edges): Likewise.
11180 (cgraph_rebuild_references): Likewise.
11181 (remove_cgraph_callee_edges): Likewise.
11182 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11183 (verify_cgraph_node): Likewise.
11184 (cgraph_analyze_functions): Likewise.
11185 (cgraph_preserve_function_body_p): Likewise.
11186 (save_inline_function_body): Likewise.
11187 (save_inline_function_body): Likewise.
11188 * tree-inline.c (copy_bb): Likewise.
11189 (optimize_inline_calls): Likewise.
11190
57dbdc5a
MJ
111912011-04-11 Martin Jambor <mjambor@suse.cz>
11192
11193 PR tree-optimization/48195
11194 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11195 ipa_check_create_edge_args.
11196 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11197 ipa_check_create_edge_args.
11198 * ipa-inline.c (inline_generate_summary): Do not call
11199 ipa_check_create_node_params and ipa_check_create_edge_args.
11200 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11201 ipa_check_create_edge_args.
11202
d108e679
AS
112032011-04-09 Anatoly Sokolov <aesok@post.ru>
11204
11205 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11206 instead of loop.
11207 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11208 * function.c (record_hard_reg_sets): Likewise.
11209 * ira.c (compute_regs_asm_clobbered): Likewise.
11210 * sched-deps.c (sched_analyze_1): Likewise.
11211 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11212
3411bc59
XDL
112132011-04-09 Xinliang David Li <davidxl@google.com>
11214
11215 PR tree-optimization/PR48484
11216 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11217 has_valid_pred lazily
11218
b365495a
DS
112192011-04-09 Duncan Sands <baldrick@free.fr>
11220
11221 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11222
68bc509a
EB
112232011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11224
11225 * combine.c (combine_validate_cost): Adjust comments. Set registered
11226 cost of I0 to zero at the end, if any.
11227
041e059f
XDL
112282011-04-08 Xinliang David Li <davidxl@google.com>
11229
68bc509a
EB
11230 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11231 to insane profile data.
041e059f 11232
444b3995
XDL
112332011-04-08 Xinliang David Li <davidxl@google.com>
11234
11235 * ipa-cp.c (ipcp_update_profiling): Correct
11236 negative scale factor due to insane profile data.
11237
6a801cf2
XDL
112382011-04-08 Xinliang David Li <davidxl@google.com>
11239
11240 * final.c (dump_basic_block_info): New function.
11241 (final): Dump basic block.
11242 (final_scan_insn): Remove old dump.
11243
d5f3624e
SK
112442011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11245
68bc509a
EB
11246 PR target/47829
11247 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11248 crtbegin/crtend.
d5f3624e 11249
42821aff
MM
112502011-04-08 Michael Matz <matz@suse.de>
11251
11252 PR middle-end/48389
11253 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11254 functions.
11255 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11256 * rtl.h (rebuild_jump_labels_chain): Declare.
11257 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11258 insns inserted on edges.
11259
ad7be009
JM
112602011-04-08 Joseph Myers <joseph@codesourcery.com>
11261
11262 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11263 * config/arm/arm-arches.def: New.
11264 * config/arm/arm-opts.h: New.
11265 * config/arm/genopt.sh: New.
11266 * config/arm/arm-tables.opt: New (generated).
11267 * config/arm/arm.c (arm_handle_option, arm_target_help,
11268 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11269 (all_architectures): Get most table contents from arm-arches.def.
11270 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11271 arm_selected_tune here.
11272 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11273 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11274 (march=, mcpu=, mtune=): Use Enum and Var.
11275 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11276 (arm.o): Update dependencies.
ecbb6fb7 11277
42821aff 112782011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
11279
11280 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11281 of header_file.
11282 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11283 (write_typed_alloc_defns): Likewise.
11284 (main): Calls write_typed_alloc_defns with output_header.
11285
8d189b3f
VM
112862011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11287
68bc509a 11288 PR inline-asm/48435
8d189b3f
VM
11289 * ira-color.c (setup_profitable_hard_regs): Add comments.
11290 Don't take prohibited hard regs into account.
11291 (setup_conflict_profitable_regs): Rename to
11292 get_conflict_profitable_regs.
11293 (check_hard_reg_p): Check prohibited hard regs.
11294
44f370bf
NF
112952011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11296
11297 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11298 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11299 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11300
483d7ad3
JDA
113012011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11302
11303 PR target/48366
11304 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 11305 move from floating point to shift amount register.
483d7ad3
JDA
11306 (emit_move_sequence): Remove secondary reload support for floating
11307 point to shift amount amount register copies.
11308 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11309 amount register copies.
11310 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11311 register, return false if mode isn't a scalar integer mode.
11312 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11313
97e03fa1
RG
113142011-04-08 Richard Guenther <rguenther@suse.de>
11315
11316 * gimple.c (gimple_call_flags): Remove kludge.
11317
9d40778b
AM
113182011-04-08 Alexander Monakov <amonakov@ispras.ru>
11319
11320 * sel-sched.c (sel_region_init): Move call to
11321 sel_setup_region_sched_flags after setup_current_loop_nest.
11322
19ac7892
AB
113232011-04-08 Andrey Belevantsev <abel@ispras.ru>
11324
11325 PR rtl-optimization/48272
19ac7892
AB
11326 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11327 init_insn_reg_pressure_info. Adjust a caller.
11328 * sched-int.h (init_insn_reg_pressure_info): Declare.
11329 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11330 when sched-pressure is enabled.
11331
0f8c63cc
RG
113322011-04-08 Richard Guenther <rguenther@suse.de>
11333
11334 * gimple.c (gimple_set_modified): Do not queue calls to
11335 MODIFIED_NORETURN_CALLS here ...
11336 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11337
5e5a425e
RG
113382011-04-08 Richard Guenther <rguenther@suse.de>
11339
11340 PR lto/48467
11341 * toplev.c (lang_dependent_init): Do not open asm_out_file
11342 in WPA mode, nor perform debug machinery initialization.
11343 (finalize): Do not unlink asm_out_file in WPA mode.
11344
9bfc434b
RG
113452011-04-08 Richard Guenther <rguenther@suse.de>
11346
11347 * gimple.h (gimple_call_fntype): New function.
11348 (gimple_call_return_type): Use it.
11349 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11350 * gimple-low.c (gimple_check_call_args): Likewise.
11351 * gimple.c (gimple_call_flags): Likewise.
11352 (gimple_call_arg_flags): Likewise.
11353 (gimple_call_return_flags): Likewise.
11354 * tree-cfg.c (verify_gimple_call): Likewise.
11355 (do_warn_unused_result): Likewise.
11356 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11357 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11358
7c1f0b40
DM
113592011-04-08 Dmitry Melnik <dm@ispras.ru>
11360
11361 PR rtl-optimization/48235
11362 * sel-sched.c (code_motion_process_successors): Recompute the last
11363 insn in basic block if control flow changed.
11364 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11365 Update condition for ilist_remove.
11366
ea4d630f
AM
113672011-04-08 Alexander Monakov <amonakov@ispras.ru>
11368
11369 PR rtl-optimization/48302
11370 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11371 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11372 it to record added preheader blocks.
11373 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11374 on to sel_add_loop_preheaders.
11375 (sel_region_init): Move call to setup_current_loop_nest after
11376 sel_init_bbs.
11377
07643d76
AM
113782011-04-08 Alexander Monakov <amonakov@ispras.ru>
11379
11380 PR target/48273
11381 * cfgloop.h (loop_has_exit_edges): New helper.
11382 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11383 non-clonable.
11384 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11385 that have no exit edges.
11386
1f3b2b4e
AM
113872011-04-08 Alexander Monakov <amonakov@ispras.ru>
11388
11389 PR rtl-optimization/48442
11390 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11391 all callers. Adjust assert.
11392
554f1948
JJ
113932011-04-08 Jakub Jelinek <jakub@redhat.com>
11394
11395 PR tree-optimization/48377
11396 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11397 is_packed to true even for types with smaller TYPE_ALIGN than
11398 TYPE_SIZE.
11399
ddf72388
RG
114002011-04-08 Richard Guenther <rguenther@suse.de>
11401
11402 PR bootstrap/48513
11403 * doc/tm.texi: Re-generate.
11404
0c27e2d8
WG
114052011-04-08 Wei Guozhi <carrot@google.com>
11406
11407 PR target/47855
11408 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11409 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11410 * config/arm/arm.md (*push_multi): Change the length computation to
11411 call a C function.
11412
07c5f94e
AS
114132011-04-08 Anatoly Sokolov <aesok@post.ru>
11414
11415 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11416 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11417 * doc/tm.texi: Regenerate.
11418 * system.h (ASM_OUTPUT_BSS): Poison.
11419 * varasm.c (asm_output_bss): Remove function.
11420 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 11421
07c5f94e
AS
11422 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11423 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11424 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11425 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11426 Likewise.
11427 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11428 Likewise.
11429 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11430 Likewise.
11431 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11432
5f2c36e1
JM
114332011-04-07 Joseph Myers <joseph@codesourcery.com>
11434
11435 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11436 EnumValue lines.
11437
39e7722b
JM
114382011-04-07 Joseph Myers <joseph@codesourcery.com>
11439
11440 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11441 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11442 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11443 OPT_mcpu32.
11444 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11445 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11446 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11447 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11448 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11449 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11450 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11451 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11452 options. Don't map other m68k options manually. Don't handle
11453 old-style options as canonical.
11454 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 11455 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 11456
cf103ca4
EB
114572011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11458
11459 * basic-block.h (force_nonfallthru): Move to...
11460 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11461 (force_nonfallthru): ...here.
11462 * cfghooks.c (force_nonfallthru): New function.
11463 * cfgrtl.c (force_nonfallthru): Rename into...
11464 (rtl_force_nonfallthru): ...this.
11465 (commit_one_edge_insertion): Do not set AUX field.
11466 (commit_edge_insertions): Do not discover new basic blocks.
11467 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11468 (cfg_layout_rtl_cfg_hooks): Likewise.
11469 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11470 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11471 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11472
14431f58
AS
114732011-04-07 Anatoly Sokolov <aesok@post.ru>
11474
11475 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11476 Remove macros.
11477
3729983c
UB
114782011-04-07 Uros Bizjak <ubizjak@gmail.com>
11479
11480 * config/i386/sse.md: Update copyright year.
11481 (avxcvtvecmode): Remove.
11482 (sse_movhlps): Merge with *avx_movhlps.
11483 (sse_movlhps): Merge with *avx_movlhps.
11484 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11485 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11486 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11487 (sse_loadhps): Merge with *avx_loadhps.
11488 (sse_storelps): Merge with *avx_storelps.
11489 (sse_loadlps): Merge with *avx_loadlps.
11490 (sse_movss): Merge with *avx_movss.
11491 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11492 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11493 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11494 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11495 (vec_set<mode>_0): Ditto.
11496 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11497 (sse4_1_insertps): Merge with *avx_insertps.
11498 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11499 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11500 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11501 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11502 (sse2_storehpd): Merge with *avx_storehpd.
11503 (sse2_loadhpd): Merge with *avx_loadhpd.
11504 (sse2_loadlpd): Merge with *avx_loadlpd.
11505 (sse2_movsd): Merge with *avx_movsd.
11506 (*vec_concatv2df): Merge with *vec_concatv2df.
11507
4e626909
JJ
115082011-04-07 Jakub Jelinek <jakub@redhat.com>
11509
11510 PR debug/48343
11511 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 11512 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
11513 (try_combine): Add last_combined_insn parameter, pass it instead of
11514 i3 to propagate_for_debug.
11515
3729983c 115162011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
11517
11518 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11519 to handle MDR <-> data register transfers.
11520 (movhi_internal): Likewise.
11521
20c03367
AM
115222011-04-07 Alan Modra <amodra@gmail.com>
11523
11524 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11525 previous stack info.
11526
bf22920b
TV
115272011-04-07 Tom de Vries <tom@codesourcery.com>
11528
11529 PR target/43920
11530 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11531 flow_find_cross_jump. Swap variables to implement backward replacement.
11532 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11533
823918ae
TV
115342011-04-07 Tom de Vries <tom@codesourcery.com>
11535
11536 PR target/43920
11537 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
11538 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11539 and bb2.
11540 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11541 src1 or src2. Redirect edges to the last basic block. Update
11542 frequency and count on multiple basic blocks in case of fallthru.
823918ae 11543
472c95f5
TV
115442011-04-07 Tom de Vries <tom@codesourcery.com>
11545
11546 PR target/43920
11547 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11548 function.
3729983c
UB
11549 (old_insns_match_p): Change return type. Replace return false/true
11550 with return dir_none/dir_both. Use can_replace_by.
11551 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11552 direction from dir_p. Register replacement direction in dir, last_dir
11553 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
11554 merge_dir. Return replacement direction in dir_p.
11555 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11556 return type of old_insns_match_p.
11557 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11558 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11559 flow_find_cross_jump.
11560 * basic-block.h (enum replace_direction): New type.
11561 (flow_find_cross_jump): Add parameter to declaration.
11562
a95d4000
UB
115632011-04-06 Uros Bizjak <ubizjak@gmail.com>
11564
11565 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11566 (AVXMODEDCVTPS2DQ): Ditto.
11567 (VEC_FLOAT_MODE): Ditto.
11568 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11569 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11570 (<any_logic:code><mode>3): Use VF mode iterator.
11571 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11572 Use VF mode iterator.
11573 (copysign<mode>3): Use VF mode iterator.
11574 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11575 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11576 (*<any_logic:code><MODEF:mode>3): Merge with
11577 *avx_<any_logic:code><MODEF:mode>3.
11578 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11579 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11580 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11581 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11582 (sse2_cvtdq2ps): Use %v modifier.
11583 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11584 (avx_cvtps2dq<avxmodesuffix>): Remove.
11585 (sse2_cvtps2dq): Use %v modifier.
11586 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11587 (avx_cvttps2dq<avxmodesuffix>): Remove.
11588 (sse2_cvttps2dq): Use %v modifier.
11589 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11590 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11591 (sse2_cvtsd2siq): Fix insn template.
11592 (sse2_cvtsd2siq_2): Ditto.
11593 (sse2_cvttsd2siq): Ditto.
11594 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11595 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11596
ad01c437
JM
115972011-04-06 Joseph Myers <joseph@codesourcery.com>
11598
11599 * gcov-io.c: Use GCC Runtime Library Exception.
11600
fe846284
JJ
116012011-04-06 Jakub Jelinek <jakub@redhat.com>
11602
11603 PR debug/48466
11604 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11605 as base_reg whatever register reg has been eliminated to, instead
11606 of hardcoding STACK_POINTER_REGNUM.
11607
acce4e77
JM
116082011-04-06 Joseph Myers <joseph@codesourcery.com>
11609
11610 * doc/tm.texi.in: Document C target hooks as separate from general
11611 target hooks.
11612 * doc/tm.texi: Regenerate.
11613 * genhooks.c (struct hook_desc): Add docname field.
11614 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11615 docname field.
11616 (hook_array): Include c-target.def.
11617 (emit_documentation): Use docname field in output.
11618 (emit_init_macros): Take docname argument. Only emit definitions
11619 for hooks matching docname.
11620 (main): Expect additional arguments in all cases. Pass argument
11621 to emit_init_macros.
11622 * target.def: Move initial macro definitions and comments to
11623 target-hooks-macros.h.
11624 (gcc_targetcm): Move to c-family/c-target.def.
11625 * target.h (targetcm): Move declaration to c-family/c-target.h.
11626 * targhooks.c (default_handle_c_option): Move to
11627 c-family/c-opts.c.
11628 * targhooks.h (default_handle_c_option): Move declaration to
11629 c-family/c-common.h.
11630 * target-hooks-macros.h: New file.
11631 * config.gcc (target_has_targetcm): Define and use to add to
11632 c_target_objs and cxx_target_objs.
11633 * config/default-c.c: New file.
11634 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11635 of target.h and target-def.h.
11636 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11637 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11638 darwin_check_cfstring_format_arg): Make static.
11639 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11640 TARGET_STRING_OBJECT_REF_TYPE_P,
11641 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11642 * config/darwin-protos.h (darwin_objc_construct_string,
11643 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11644 declare.
11645 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11646 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 11647 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
11648 * config/t-darwin (darwin-c.o): Update dependencies.
11649 * system.h (TARGET_HAS_TARGETCM): Poison.
11650 * Makefile.in (TARGET_H): Update.
11651 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11652 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11653 (default-c.o): New target.
11654 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 11655 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
11656 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11657 c-target.def.
11658 (build/genhooks.o): Update dependencies.
11659
275b4baa 116602011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 11661
275b4baa
RG
11662 * ipa-inline.c (enum inlining_mode): Remove.
11663 (cgraph_flatten): Use some other token.
11664 (cgraph_edge_early_inlinable_p): New function, split out from ...
11665 (cgraph_perform_always_inlining): New function, split out from ...
11666 (cgraph_decide_inlining_incrementally): ... here.
11667 (cgraph_mark_inline_edge): Adjust.
11668 (cgraph_early_inlining): Re-structure.
11669 (pass_early_inline): Require SSA form.
11670
f15b8bdf 116712011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
11672 Julian Brown <julian@codesourcery.com>
11673 Mark Shinwell <shinwell@codesourcery.com>
11674
11675 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11676 LO_REGS only for Thumb-1.
11677 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11678 be used in short instructions when optimising for size on Thumb-2.
11679
516426da
EB
116802011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11681
11682 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11683 associated with user returns to be preserved.
11684
96621ebf
TG
116852011-04-06 Tristan Gingold <gingold@adacore.com>
11686
f15b8bdf
EB
11687 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11688 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
11689 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11690 if XCOFF_DEBUGGING_INFO.
11691
07c0852e
UB
116922011-04-06 Uros Bizjak <ubizjak@gmail.com>
11693
11694 * config/i386/i386.md (attribute isa): New.
11695 (attribute enabled): New.
11696 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11697 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11698 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11699 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11700 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11701 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11702 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11703 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11704
11705 * config/i386/sse.md (VF): New mode iterator.
11706 (VF1): Ditto.
11707 (VF2): Ditto.
11708 (VF_128): Ditto.
11709 (SSEMODEF4): Remove.
11710 (attribute sse): Handle V8SF and V4DF modes.
11711 (<absneg:code><mode>2): Use VF mode iterator.
11712 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11713 mode iterator.
11714 (<plusminus_insn><mode>3): Use VF mode iterator.
11715 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11716 Use VF mode iterator.
11717 (<sse>_vm<plusminus_insn><mode>3): Merge with
11718 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11719 (mul<mode>3): Use VF mode iterator.
11720 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11721 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11722 mode iterator.
11723 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11724 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11725 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11726 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11727 mode iterator.
11728 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11729 Use VF1 mode iterator.
11730 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11731 (sqrt<VF2:mode>2): New expander.
11732 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11733 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11734 and sqrtv2df2. Use VF mode iterator.
11735 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11736 mode iterator.
11737 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11738 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11739 Use VF1 mode iterator.
11740 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11741 (<smaxmin:code><mode>3): Use VF mode iterator.
11742 (*<smaxmin:code><mode>3_finite): Merge with
11743 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11744 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11745 (<sse>_vm<smaxmin:code><mode>2): Merge with
11746 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11747 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11748 mode iterator.
11749 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11750 mode iterator.
11751 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11752 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11753 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11754 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11755 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11756 VF mode iterator.
11757 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11758 Use VF_128 mode iterator.
11759 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11760 mode iterator.
11761 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11762 VF_128 mode iterator.
11763 (vcond<mode>): Use VF mode iterator.
11764 * config/i386/predicates.md (sse_comparison_operator): Merge with
11765 avx_comparison_float_operator. Do not declare as special_predicate.
11766 * config/i386/i386.c (struct builtin_description): Update for renamed
11767 compare patterns.
11768 (ix86_expand_args_builtin): Ditto.
11769 (ix86_expand_sse_compare_mask): Ditto.
11770
ff5d142c
RG
117712011-04-06 Richard Guenther <rguenther@suse.de>
11772
11773 * tree-inline.c (estimate_num_insns): For calls simply account
11774 for all passed arguments and a used return value.
11775
d7d1d041 117762011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 11777
d7d1d041
RG
11778 PR tree-optimization/47663
11779 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11780 call_stmt_time fields.
11781 (cgraph_edge_inlinable_p): Declare.
11782 (cgraph_edge_recursive_p): New inline function.
11783 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11784 (cgraph_clone_edge): Copy it.
11785 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11786 Account for call stmt time.
11787 (cgraph_estimate_time_after_inlining): Take edge argument.
11788 (cgraph_estimate_edge_growth): Account call stmt size.
11789 (cgraph_estimate_size_after_inlining): Take edge argument.
11790 (cgraph_mark_inline_edge): Adjust.
11791 (cgraph_check_inline_limits): Likewise.
11792 (cgraph_recursive_inlining_p): Remove.
11793 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11794 (cgraph_decide_recursive_inlining): Take edge argument and
11795 adjust.
11796 (cgraph_decide_inlining_of_small_functions): Do not avoid
11797 diags for recursive inlining here.
11798 (cgraph_flatten): Adjust.
11799 (cgraph_decide_inlining_incrementally): Likewise.
11800 (estimate_function_body_sizes): Remove call cost handling.
11801 (compute_inline_parameters): Initialize caller edge call costs.
11802 (cgraph_estimate_edge_growth): New function.
11803 (cgraph_estimate_growth): Use it.
11804 (cgraph_edge_badness): Likewise.
11805 (cgraph_check_inline_limits): Take an edge argument.
11806 (cgraph_decide_inlining_of_small_functions): Adjust.
11807 (cgraph_decide_inlining): Likewise.
11808 * tree-inline.c (estimate_num_insns): Only account for call
11809 return value if it is used.
11810 (expand_call_inline): Avoid diagnostics on recursive inline
11811 functions here.
11812 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11813 (input_edge): Input edge call costs.
11814
2feb95f7
RO
118152011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11816
11817 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11818
26fbd9c2
JW
118192011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11820
11821 * doc/invoke.texi (Spec Files): Fix typo.
11822
694dc0ca
EB
118232011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11824
11825 * profile.c (branch_prob): Move declaration of local variable. Remove
11826 obsolete ??? comment. Expand the location explicitly instead of using
11827 the LOCATION_FILE and LOCATION_LINE macros.
11828
4925d0d5
WG
118292011-04-06 Wei Guozhi <carrot@google.com>
11830
11831 PR target/47855
11832 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11833 (arm_cond_branch): Likewise.
11834 (arm_cond_branch_reversed): Likewise.
11835 (arm_jump): Likewise.
11836 (push_multi): Likewise.
11837 * config/arm/constraints.md (Py): New constraint.
11838
f55dfa2f
NF
118392011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11840
11841 PR bootstrap/48471
11842 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11843 Move these...
11844 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11845 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11846 #ifdef DBX_DEBUGGING_INFO.
11847
fca96842
BS
118482011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11849
11850 PR bootstrap/48403
11851 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11852 if old and new states differ.
11853
30b83e38
JM
118542011-04-05 Joseph Myers <joseph@codesourcery.com>
11855
11856 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11857 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11858 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11859 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11860 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11861 mcfv4e): Use Alias.
11862 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11863 ColdFire options to -mcpu= options.
11864
277a9aa5
JL
118652011-04-05 Jeff Law <law@redhat.com>
11866
11867 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11868 check if BB is a successor of LOOP->header and return
11869 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11870
c1e2610e
SB
118712011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11872
11873 * cprop.c (struct reg_use): Remove.
11874 (reg_use_table): Make an array of RTX.
11875 (find_used_regs, constprop_register, local_cprop_pass,
11876 bypass_block): Simplify users of reg_use_table.
11877 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11878 on one of the uses found by find_used_regs.
11879
e532f586
NF
118802011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11881
11882 PR bootstrap/48469
11883 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11884 declaration.
11885
3fb7c055
NF
118862011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11887
11888 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11889 as an rtx.
11890 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11891
b71b43d9
SB
118922011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11893
11894 PR middle-end/48441
11895 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11896
b405b274
NF
118972011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11898
11899 * combine.c: Include obstack.h.
11900 (struct insn_link): Define.
11901 (uid_log_links): Adjust type.
11902 (FOR_EACH_LOG_LINK): New macro.
11903 (insn_link_obstack): Declare.
11904 (alloc_insn_link): Define.
11905 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11906 type of link variables.
11907 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11908 (try_combine, record_promoted_values, distribute_notes): Likewise.
11909 (distribute_links): Likewise. Tweak prototype.
11910 (clear_log_links): Delete.
11911 (adjust_for_new_dest): Call alloc_insn_link.
11912 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11913
6409abe3
NF
119142011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11915
11916 * gcse.c (modify_mem_list): Convert to an array of VECs.
11917 (canon_modify_mem_list, compute_transp): Tweak formatting.
11918 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11919 (load_killed_in_block_p): Likewise.
11920 (record_last_mem_set_info): Likewise.
11921 (clear_modify_mem_tables): Likewise.
11922
170d8157
TV
119232011-04-05 Tom de Vries <tom@codesourcery.com>
11924
11925 PR middle-end/48461
11926 * function.c (emit_use_return_register_into_block): Only define if
11927 HAVE_return.
11928
c5911a55
EB
119292011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11930
11931 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11932
abd016e6
JM
119332011-04-05 Joseph Myers <joseph@codesourcery.com>
11934
11935 * config/rx/rx-opts.h: New.
11936 * config/rx/rx.c (rx_cpu_type): Remove.
11937 (rx_handle_option): Don't assert that global structures are in
11938 use. Access variables via opts pointer. Defer most handling of
11939 OPT_mint_register_. Use error_at.
11940 (rx_option_override): Handle deferred OPT_mint_register_ here.
11941 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11942 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11943 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11944 (rx_cpu_types): New Enum and EnumValue entries.
11945 (mint-register=): Use Defer and use Var accordingly.
11946
1ed13f83
NF
119472011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11948
11949 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11950 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11951 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11952 Move these...
11953 (debug_free_queue, debug_nesting, symbol_queue_index):
11954 ...and these...
11955 * dbxout.c: ...to here. Make static.
11956
6ce1edcf
NF
119572011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11958
11959 * gcse.c (modify_pair): Define. Define a VEC of it.
11960 (canon_modify_mem_list): Convert to an array of VECs.
11961 (free_insn_expr_list_list): Delete.
11962 (clear_modify_mem_tables): Call VEC_free instead.
11963 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11964 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11965 (canon_list_insert, compute_transp): Likewise.
11966
c201ac94
TV
119672011-04-05 Tom de Vries <tom@codesourcery.com>
11968
11969 PR target/43920
11970 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11971 for size.
11972
4c029f40
TV
119732011-04-05 Tom de Vries <tom@codesourcery.com>
11974
11975 PR target/43920
11976 * function.c (emit_use_return_register_into_block): New function.
11977 (thread_prologue_and_epilogue_insns): Use
11978 emit_use_return_register_into_block.
11979
2a562b0a
TV
119802011-04-05 Tom de Vries <tom@codesourcery.com>
11981
11982 PR target/43920
11983 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11984 insn.
11985
0248bceb
TV
119862011-04-05 Tom de Vries <tom@codesourcery.com>
11987
11988 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11989
ffa94123
YZ
119902011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11991
798dd0ba
UB
11992 * config/arm/arm.md (define_constants for unspec): Replace with
11993 define_c_enum.
11994 (define_constants for unspecv): Replace with define_c_enum.
11995 * config/arm/neon.md (define_constants for unspec): Replace with
11996 define_c_enum.
ffa94123 11997
3b8f9b46
RH
119982011-04-04 Richard Henderson <rth@redhat.com>
11999
720cf80f 12000 PR bootstrap/48400
3b8f9b46
RH
12001 * dwarf2out.c (output_line_info): Always emit line info from
12002 at least one section.
12003 (dwarf2out_init): Create text_section_line_info here ...
12004 (set_cur_line_info_table): ... not here.
12005
720cf80f 120062011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
12007
12008 PR target/48380
12009 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 12010 not called.
e5b0e1ca 12011
720cf80f 12012 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 12013
196565d4
SB
120142011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12015
b77f9eab
SB
12016 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12017 (expr_equiv_p): Remove.
12018 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12019 (hash_scan_set): Update call to insert_set_in_table.
12020 (dump_hash_table): Dump <dest, src> pair.
12021 (lookup_set): Simplify. Lookup <dest, src> pair.
12022 (compute_transp): Remove, fold heavily simplified code into...
12023 (compute_local_properties): ...here. Expect COMP and TRANSP
12024 unconditionally.
12025 (find_avail_set): Take set directly from struct expr.
12026 (find_bypass-set): Likewise.
12027 (bypass_block): Likewise.
12028 (cprop_insn): Likewise. Remove redundant INSN_P test.
12029
384d7a55
SB
12030 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12031 checks on form of COND from find_implicit_sets to here.
12032 (find_implicit_sets): Cleanup control flow. Split critical edges
12033 if it exposes implicit sets. Allocate/resize implicit_sets as
12034 necessary.
12035 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12036 changed something. Run df_analyze after find_implicit_sets if any
12037 edges were split. Do not allocate implicit_sets here.
12038
3084ce69
SB
12039 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12040 (gcse_obstack): Renamed to cprop_obstack.
12041 (GNEW, GNEWVEC, GNEWVAR): Remove.
12042 (gmalloc): Remove.
12043 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12044 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12045 (gcse_alloc): Likewise, and rename to cprop_alloc.
12046 (alloc_gcse_men, free_gcse_mem): Remove.
12047 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12048 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12049 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12050
196565d4
SB
12051 * cprop.c (oprs_not_set_p): Remove.
12052 (mark_set, mark_clobber): Remove.
12053 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12054 (reg_not_set_p): New function.
12055 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12056 (cprop_insn): Likewise.
12057 (cprop_jump): Use FOR_EACH_EDGE.
12058
9b69cf83
BS
120592011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12060
12061 PR bootstrap/48403
12062 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12063 (rank_for_schedule): Use scheduled_insns vector instead of
12064 last_scheduled_insn.
12065 (ok_for_early_queue_removal): Likewise.
12066 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12067 we have a dbg_cnt.
12068 (choose_ready): Likewise.
12069 (commit_schedule): Use VEC_iterate.
12070 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12071 a dbg_cnt, use it and ensure the first insn is in the ready list.
12072 (haifa_sched_init): Allocate scheduled_insns.
12073 (sched_extend_ready_list): Don't allocate it; reserve space.
12074 (haifa_sched_finish): Free it.
12075
24f48c2f
JM
120762011-04-04 Joseph Myers <joseph@codesourcery.com>
12077
12078 * optc-gen.awk: Always remove type from Variable entry before
12079 recording in var_seen.
12080
8effe856
EB
120812011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12082
12083 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12084 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12085 call to tidy_fallthru_edges.
12086
413519ae
JM
120872011-04-04 Joseph Myers <joseph@codesourcery.com>
12088
12089 * doc/options.texi (ToLower): Document.
3729983c 12090 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
12091 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12092 * opts.h (cl_option): Add cl_tolower field.
12093 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12094 arguments with lowercase strings.
12095 * config/rx/rx.opt (mcpu=): Add ToLower.
12096 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12097 argument.
12098
7d34a1b0
RS
120992011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12100
12101 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12102
c30e7434
RS
121032011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12104
12105 * config/vax/vax.c: Include reload.h.
12106
112a861d
AS
121072011-04-04 Anatoly Sokolov <aesok@post.ru>
12108
12109 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12110 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12111 (sparc_preferred_reload_class): New function.
12112
e8c6bb74
JJ
121132011-04-04 Jakub Jelinek <jakub@redhat.com>
12114
2aeaa366 12115 PR debug/48401
e8c6bb74
JJ
12116 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12117 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12118
2c081caf
NF
121192011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12120
12121 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12122 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12123
53802f27
AS
121242011-04-03 Anatoly Sokolov <aesok@post.ru>
12125
12126 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12127 (ASM_OUTPUT_ALIGNED_BSS): Define.
12128
e89964e3
MM
121292011-04-03 Michael Matz <matz@suse.de>
12130
12131 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12132 and next_slot members.
12133 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12134 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12135 (lto_streamer_cache_append): Declare.
12136 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12137 unsigned index, remove offset parameter, ensure that we append
12138 or update existing entries.
12139 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12140 parameter, update next_slot for append.
12141 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12142 parameter.
12143 (lto_streamer_cache_insert_at): Likewise.
12144 (lto_streamer_cache_append): New function.
12145 (lto_streamer_cache_lookup): Use unsigned index.
12146 (lto_streamer_cache_get): Likewise.
12147 (lto_record_common_node): Don't test tree_node_can_be_shared.
12148 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12149 (lto_streamer_cache_delete): Don't free offsets member.
12150 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12151 (lto_output_string_with_length): Use lto_output_data_stream.
12152 (lto_output_tree_header): Remove ix parameter, don't write it.
12153 (lto_output_builtin_tree): Likewise.
12154 (lto_write_tree): Adjust callers to above, don't track and write
12155 offset, write unsigned index.
12156 (output_unreferenced_globals): Don't emit all global vars.
12157 (write_global_references): Use unsigned indices.
12158 (lto_output_decl_state_refs): Likewise.
12159 (write_symbol): Likewise.
12160 * lto-streamer-in.c (lto_input_chain): Move earlier.
12161 (input_function): Use unsigned index.
12162 (input_alias_pairs): Don't read and then ignore all global vars.
12163 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12164 don't pass it back, use lto_streamer_cache_append.
12165 (lto_register_var_decl_in_symtab): Use unsigned index.
12166 (lto_register_function_decl_in_symtab): Likewise.
12167 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12168 index.
12169 (lto_get_builtin_tree): Don't read index, use
12170 lto_streamer_cache_append.
12171 (lto_read_tree): Adjust call to lto_materialize_tree.
12172
12173 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12174 don't use function calls in arguments to MIN.
12175
12176 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12177 twice.
12178
12179 * gimple.c (gimple_type_leader_entry): Mark deletable.
12180
b9a5b5b2
AM
121812011-04-03 Alan Modra <amodra@gmail.com>
12182
12183 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12184
ac6a641b
MM
121852011-04-03 Michael Matz <matz@suse.de>
12186
12187 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12188 an integer.
12189 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12190
0038d4e0
MM
121912011-04-03 Michael Matz <matz@suse.de>
12192
e9c18386 12193 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
12194 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12195 without function context.
12196 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12197 current_function_decl and cfun.
12198
91f2fae8
MM
121992011-04-03 Michael Matz <matz@suse.de>
12200
12201 * tree.c (decl_init_priority_insert): Don't create entry for
12202 default priority.
12203 (decl_fini_priority_insert): Ditto.
12204 (fields_compatible_p, find_compatible_field): Remove.
12205 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12206 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12207
da29e070
EB
122082011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12209
12210 * combine.c (try_combine): Remove useless local variable.
12211
4979c28b 122122011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 12213 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
12214
12215 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12216 non-variable offsets and compare the remaining bases of the two
12217 accesses instead of looking for exact same data-ref.
12218
b4ddcaee
KT
122192011-04-02 Kai Tietz <ktietz@redhat.com>
12220
f90298e1
KT
12221 PR target/48416
12222 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12223
b4ddcaee
KT
12224 * i386.c (ix86_is_msabi_thiscall): New helper function.
12225 (ix86_is_type_thiscall): New helper function.
12226 (ix86_comp_type_attributes): Handle thiscall for method-functions
12227 special.
12228 (init_cumulative_args): Likewise.
12229 (find_drap_reg): Likewise.
12230 (ix86_static_chain): Likewise.
12231 (x86_this_parameter): Likewise.
12232 (x86_output_mi_thunk): Likewise.
12233
2a9d769a 122342011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
12235 Nicolas Setton <setton@adacore.com>
12236 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
12237
12238 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12239 (add_gnat_descriptive_type_attribute): New function.
12240 (gen_array_type_die): Call it.
12241 (gen_enumeration_type_die): Likewise.
12242 (gen_struct_or_union_type_die): Likewise.
12243 (modified_type_die): Likewise.
12244 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12245 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12246 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12247
15a03a11
JJ
122482011-04-01 Jakub Jelinek <jakub@redhat.com>
12249
12250 PR bootstrap/48148
12251 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12252 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12253
12254 Revert:
12255 2011-03-17 Richard Guenther <rguenther@suse.de>
12256
12257 PR bootstrap/48148
12258 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12259 origin for decls in other ltrans units.
12260 (input_varpool_node): Likewise.
12261
19228b93
JJ
122622011-04-01 Jakub Jelinek <jakub@redhat.com>
12263
12264 PR middle-end/48335
12265 * expr.c (expand_assignment): Handle all possibilities
12266 if TO_RTX is CONCAT.
e9c18386 12267 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
12268 (store_split_bit_field): If SUBREG_REG (op0) or
12269 op0 itself has smaller mode than word, return it
12270 for offset 0 and const0_rtx for out-of-bounds stores.
12271 If word is const0_rtx, skip it.
12272
88cb339e
N
122732011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12274
12275 * config/h8300/h8300.c (print_operand_address): Rename to...
12276 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12277 Call h8300_print_operand and h8300_print_operand_address instead of
12278 print_operand and print_operand_address. Declare.
12279 (print_operand): Renake to...
12280 (h8300_print_operand): ...this. Make static. Adjust comments.
12281 Call h8300_print_operand instead of print_operand. Declare.
12282 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12283 (h8300_register_move_cost): Likewise.
12284 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12285 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12286 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12287 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12288 * config/h8300/h8300-protos.h (print_operand): Delete.
12289 (print_operand_address): Delete.
12290
756d6ee9
RH
122912011-04-01 Richard Henderson <rth@redhat.com>
12292
12293 PR 48400
12294 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12295 in strict mode before dwarf4. Re-order tests to early out
12296 before switching sections.
12297
ceaaaeab
NF
122982011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12299
12300 * config/h8300/constraints.md: New file.
12301 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12302 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12303 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12304 * config/h8300/predicates.md (bit_operand): Likewise.
12305 (incdec_operand): Use satisfies_constraint_M and
12306 satisfies_constraint_O. Don't use C code block.
12307 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12308 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12309 (compute_mov_length): Use satisfies_constraint_G.
12310 (fix_bit_operand): Use satisfies_constraint_U.
12311 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12312 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12313 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12314 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12315 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12316 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12317 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12318 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12319 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12320 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12321 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12322 (EXTRA_MEMORY_CONSTRAINT): Delete.
12323
08ae38e0
AP
123242011-04-01 Andrew Pinski <pinskia@gmail.com>
12325 Michael Meissner <meissner@linux.vnet.ibm.com>
12326
12327 PR target/48262
12328 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12329 operands, as per the specifications.
12330
12331 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12332 (vec_extract_evenv4sf): Ditto.
12333 (vec_extract_evenv8hi): Ditto.
12334 (vec_extract_evenv16qi): Ditto.
12335 (vec_extract_oddv4si): Ditto.
12336
bdb0b0f6
MW
123372011-03-31 Mark Wielaard <mjw@redhat.com>
12338
12339 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12340 high_pc attribute if the CU has no associated code. Only output
12341 DW_AT_entry_pc for CU if not generating strict dwarf and
12342 dwarf_version < 4.
12343
722279e4
BS
123442011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12345
12346 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12347 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12348 out of ...
12349 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12350 * final.c (final_start_function): Call the new function rather
12351 than using a NULL argument for dwarf2out_frame_debug.
12352
c5dd277d
BS
12353 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12354 that contains the prologue.
12355
ec4efea9
BS
12356 * haifa-sched.c (queue_insn): New arg REASON. All callers
12357 changed. Print it in debugging output.
12358
2a6a0d80
BS
12359 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12360
86014d07
BS
12361 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12362 Split most of the code into...
12363 (begin_move_insn): ... here. New function.
12364 (ebb_sched_info): Add a pointer to it.
12365 * haifa-sched.c (scheduled_insns): New static variable.
12366 (sched_extend_ready_list): Allocate it.
12367 (schedule_block): Use it to record the order of scheduled insns.
12368 Perform RTL changes to move insns only after all scheduling
12369 decisions have been made.
12370 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12371 begin_move_insn field.
12372 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12373 * sched-int.h (struct haifa_sched_info): Remove second argument
12374 from begin_schedule_ready hook. Add new member begin_move_insn.
12375 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12376 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12377
9d701248
BS
12378 * haifa-sched.c (prune_ready_list): New function, broken out of
12379 schedule_block.
12380 (schedule_block): Use it.
12381
1ca1dad5
UW
123822011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12383
12384 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12385
49568e45
KT
123862011-04-01 Kai Tietz <ktietz@redhat.com>
12387
12388 * config.gcc (*-*-mingw*): Allow as option the
12389 posix threading model.
07c0852e 12390 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
12391 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12392 definition.
12393 (CPP_SPEC): Add pthread/no-pthread handling.
12394 (LIB_SPEC): Likewise.
12395 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12396 (LIB_SPEC): Likewise.
12397 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12398 flag to pass -pthread option for shared libgcc build.
12399 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12400 for shared libgcc build.
12401 * config/i386/t-mingw-pthread: New file.
12402 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12403 New define to enable use of library pthread by default.
12404 * config/i386/mingw.opt (pthread): New driver option.
12405 (no-pthread): New driver option.
e9c18386 12406 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
12407 * config/i386/mingw-w64.opt: Likewise.
12408
748f7574 124092011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
12410
12411 * c-decl.c (grokdeclarator): Fix formatting.
12412
f04713ee
RS
124132011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12414
12415 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12416 instead of n_operands.
12417 (set_storage_via_setmem): Likewise.
12418 * optabs.c (maybe_gen_insn): Likewise.
12419 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12420 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12421 (mips_expand_builtin_direct): Likewise.
12422 * config/spu/spu.c (expand_builtin_args): Likewise.
12423
b29387ee
RS
124242011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12425
12426 * recog.h (insn_data_d): Add n_generator_args.
12427 * genoutput.c (data): Likewise.
12428 (output_insn_data): Print it.
12429 (max_opno, num_dups): Delete.
12430 (scan_operands): Just fill in "d->operand[...]".
12431 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12432
e792559a
RS
124332011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12434
12435 * gensupport.h (pattern_stats): New structure.
12436 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12437 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12438 (max_operand_1, max_operand_vec): Delete.
12439 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12440
e8110d6f
NF
124412011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12442
12443 * emit-rtl.c (emit_pattern_after_setloc): New function.
12444 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12445 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12446 (emit_pattern_after): New function.
12447 (emit_insn_after, emit_jump_insn_after): Call it.
12448 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12449 (emit_pattern_before_setloc): New function.
12450 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12451 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12452 Likewise.
12453 (emit_pattern_before): New function.
12454 (emit_insn_before, emit_jump_insn_before): Call it.
12455 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12456
576f85f1
RH
124572011-03-31 Richard Henderson <rth@redhat.com>
12458
12459 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12460 (dw_separate_line_info_entry): Remove.
12461 (enum dw_line_info_opcode): New.
12462 (dw_line_info_entry): Use it.
12463 (dw_line_info_table, dw_line_info_table_p): New.
12464 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12465 (line_info_table, line_info_label_num): Remove.
12466 (line_info_table_in_use): Remove.
12467 (separate_line_info_table): Remove.
12468 (separate_line_info_table_allocated): Remove.
12469 (separate_line_info_table_in_use): Remove.
12470 (LINE_INFO_TABLE_INCREMENT): Remove.
12471 (line_info_label_num): New.
12472 (cur_line_info_table): New.
12473 (text_section_line_info, cold_text_section_line_info): New.
12474 (separate_line_info): New.
12475 (SEPARATE_LINE_CODE_LABEL): Remove.
12476 (print_dwarf_line_table): Remove.
12477 (debug_dwarf): Don't dump it.
12478 (output_one_line_info_table): New.
12479 (output_line_info): Use it.
12480 (new_line_info_table): New.
12481 (set_cur_line_info_table): New.
12482 (dwarf2out_switch_text_section): Use it.
12483 (dwarf2out_begin_function): Likewise.
12484 (push_dw_line_info_entry): New.
12485 (dwarf2out_source_line): Rewrite for new line info tables.
12486 (dwarf2out_init): Remove dead initailizations.
12487
300d83d9
JM
124882011-03-31 Joseph Myers <joseph@codesourcery.com>
12489
12490 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12491 various flags.
12492 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12493 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12494 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12495 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12496 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12497 * opt-functions.awk (flag_init, switch_bit_fields): New.
12498 (switch_flags): Don't handle flags moved to bit-fields. Don't
12499 generate CL_MISSING_OK or CL_SAVE.
12500 * optc-gen.awk: Update to generate bit-field output as well as
12501 flags field.
12502 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12503 bit-field instead of CL_REJECT_DRIVER flag.
12504 * opts-common.c (generate_canonical_option,
12505 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12506 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12507 instead of CL_REJECT_NEGATIVE flag.
12508 * toplev.c (print_switch_values): Use cl_report bit-field instead
12509 of CL_REPORT flag.
12510
d4d73ce2
EB
125112011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12512
12513 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12514 a zero minimum index only if it is redundant.
12515
b8faca75
VM
125162011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12517
12518 PR rtl-optimization/48381
12519 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12520 instead of ira_class_hard_reg_index for calculating conflicting
12521 hard registers.
12522
7d11cebe
SB
125232011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12524
12525 * cprop.c: Clean up hash table building.
12526 (reg_avail_info): Remove.
12527 (oprs_available_p): Remove.
12528 (record_last_reg_set_info): Remove.
12529 (record_last_set_info): Remove.
12530 (reg_available_p): New function.
12531 (gcse_constant_p): Do not treat unfolded conditions as constants.
12532 (make_set_regs_unavailable): New function.
12533 (hash_scan_set): Simplify with new reg_available_p.
12534 (compute_hash_table_work): Traverse insns stream only once.
12535 Do not compute reg_avail_info. Traverse insns in reverse order.
12536 Record implicit sets after recording explicit sets from the block.
12537
98faf84f
MM
125382011-03-31 Michael Matz <matz@suse.de>
12539
e9c18386 12540 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 12541
f52d97da
AS
125422011-03-31 Anatoly Sokolov <aesok@post.ru>
12543
12544 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12545 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12546 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12547 (h8300_mode_dependent_address_p): New function.
12548 (h8300_get_index): Make static.
12549
e16b6fd0
JL
125502011-03-31 Jeff Law <law@redhat.com>
12551
10c51983
JL
12552 * reload1.c (elimination_effects): Fix typo in recent change.
12553
e9c18386 12554 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
12555 typo potentially leading to null pointer dereference.
12556
12557 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12558 (setup_save_areas): Corresponding changes to avoid useless
12559 assignments.
12560
12561 * jump.c (reversed_comparison_code_parts): Avoid successive return
12562 statements when REVERSE_CONDITION is defined.
12563
12564 * expr.c (expand_assignment): Avoid useless assignments.
12565 (expand_expr_real_1): Likewise.
12566 (expand_expr_real_2): Avoid useless statements.
12567
12568 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12569
12570 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12571
12572 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12573 statements.
12574
12575 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12576
eb1eb914
JM
125772011-03-31 Joseph Myers <joseph@codesourcery.com>
12578
12579 PR target/47109
12580 * doc/tm.texi.in (TARGET_VERSION): Remove.
12581 * doc/tm.texi: Regenerate.
12582 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12583 * collect2.c (main): Don't use TARGET_VERSION.
12584 * mips-tdump.c (main): Don't use TARGET_VERSION.
12585 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 12586 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
12587 * config/rs6000/vxworksae.h: Remove.
12588 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12589 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12590 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12591 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12592 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12593 * config/arm/arm.h (TARGET_VERSION): Remove.
12594 * config/arm/coff.h (TARGET_VERSION): Remove.
12595 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12596 * config/arm/elf.h (TARGET_VERSION): Remove.
12597 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12598 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12599 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12600 * config/arm/pe.h (TARGET_VERSION): Remove.
12601 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12602 * config/arm/semi.h (TARGET_VERSION): Remove.
12603 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12604 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12605 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12606 * config/avr/avr.h (TARGET_VERSION): Remove.
12607 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12608 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12609 * config/frv/frv.h (TARGET_VERSION): Remove.
12610 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12611 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12612 * config/i386/darwin.h (TARGET_VERSION): Remove.
12613 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12614 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12615 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12616 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12617 * config/i386/gnu.h (TARGET_VERSION): Remove.
12618 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12619 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12620 * config/i386/linux.h (TARGET_VERSION): Remove.
12621 * config/i386/linux64.h (TARGET_VERSION): Remove.
12622 * config/i386/lynx.h (TARGET_VERSION): Remove.
12623 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12624 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12625 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12626 * config/i386/netware.h (TARGET_VERSION): Remove.
12627 * config/i386/nto.h (TARGET_VERSION): Remove.
12628 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12629 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12630 * config/ia64/elf.h (TARGET_VERSION): Remove.
12631 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12632 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12633 * config/ia64/linux.h (TARGET_VERSION): Remove.
12634 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12635 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12636 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12637 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12638 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12639 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12640 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12641 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12642 * config/m68k/linux.h (TARGET_VERSION): Remove.
12643 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12644 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12645 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12646 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12647 * config/mep/mep.h (TARGET_VERSION): Remove.
12648 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12649 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12650 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12651 * config/mips/linux.h (TARGET_VERSION): Remove.
12652 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12653 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12654 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12655 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12656 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12657 * config/pa/pa.h (TARGET_VERSION): Remove.
12658 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12659 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12660 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12661 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12662 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12663 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12664 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12665 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12666 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12667 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12668 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12669 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12670 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12671 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12672 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12673 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12674 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12675 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12676 * config/s390/linux.h (TARGET_VERSION): Remove.
12677 * config/s390/s390.h (TARGET_VERSION): Remove.
12678 * config/s390/tpf.h (TARGET_VERSION): Remove.
12679 * config/score/score.h (TARGET_VERSION): Remove.
12680 * config/sh/linux.h (TARGET_VERSION): Remove.
12681 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12682 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12683 * config/sh/sh.h (TARGET_VERSION): Remove.
12684 * config/sh/sh64.h (TARGET_VERSION): Remove.
12685 * config/sh/superh.h (TARGET_VERSION): Remove.
12686 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12687 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12688 * config/sparc/linux.h (TARGET_VERSION): Remove.
12689 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12690 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12691 TARGET_NAME32, TARGET_NAME): Remove.
12692 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12693 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12694 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12695 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12696 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12697 * config/spu/spu.h (TARGET_VERSION): Remove.
12698 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12699 * config/v850/v850.h (TARGET_VERSION): Remove.
12700 * config/vax/linux.h (TARGET_VERSION): Remove.
12701 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12702 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12703 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12704
ace31bca
EB
127052011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12706
12707 PR target/48142
12708 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12709 frame-related from frame-unrelated adjustments to the stack pointer.
12710
76f9db36
JJ
127112011-03-31 Jakub Jelinek <jakub@redhat.com>
12712
12713 * common.opt (fdebug-types-section): Move earlier.
12714 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12715
b7826465
AT
127162011-03-31 Andreas Tobler <andreast@fgznet.ch>
12717
12718 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12719 var.
12720
1290e54c
NF
127212011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12722
12723 * tree.h (CASE_CHAIN): Define.
12724 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12725 (gimple_redirect_edge_and_branch): Likewise.
12726
bddc98e1
VM
127272011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12728
12729 PR middle-end/48367
12730 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12731 calculation.
12732
c865e437
JL
127332011-03-30 Jeff Law <law@redhat.com>
12734
b3750213 12735 * PR bootstrap/48371
c865e437
JL
12736 * reload1.c (reload): Fix botch in last change.
12737
12738 * reload.h (struct reload): Fix typo introduced in last change.
12739
2cdf9574
JM
127402011-03-30 Joseph Myers <joseph@codesourcery.com>
12741
12742 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12743 Undocumented. Remove help text.
12744 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12745 -mhard-float.
12746
666a21a2
JM
127472011-03-30 Joseph Myers <joseph@codesourcery.com>
12748
12749 * doc/options.texi (NegativeAlias): Document.
12750 (Alias): Mention NegativeAlias.
12751 * opt-functions.awk: Handle NegativeAlias.
e9c18386 12752 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
12753 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12754 * opts.h (CL_NEGATIVE_ALIAS): Define.
12755 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12756 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12757 OPT_mspe_.
12758 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12759 Alias entries.
12760 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12761 mno-spe and mno-isel instead of mspe=no and -misel=no.
12762
0fa4e351
MW
127632011-03-29 Mark Wielaard <mjw@redhat.com>
12764
12765 * common.opt (fdebug-types-section): New flag.
12766 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12767 * dwarf2out.c (use_debug_types): New define.
12768 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12769 (print_die): Guard output of type unit signatures using
12770 use_debug_types.
12771 (build_abbrev_table): Replace assert of dwarf_version >= 4
12772 with assert on use_debug_types.
12773 (size_of_die): Likewise.
12774 (unmark_dies): Likewise.
12775 (value_format): Decide AT_ref_external form on use_debug_types.
12776 (output_die): Replace dwarf_version version check guard with
12777 use_debug_types where appropriate.
12778 (modified_type_die): Likewise.
12779 (gen_reference_type_die): Likewise.
12780 (dwarf2out_start_source_file): Likewise.
12781 (dwarf2out_end_source_file): Likewise.
12782 (prune_unused_types_walk_attribs): Likewise.
12783 (dwarf2out_finish): Likewise.
12784
4648deb4
VM
127852011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12786
12787 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12788
4f431835
RS
127892011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12790
12791 PR rtl-optimization/48332
12792 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12793 mode of input operand N and modeN to its actual mode.
12794
f2034d06
JL
127952011-03-30 Jeff Law <law@redhat.com>
12796
12797 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12798 define accessor macro.
12799 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12800 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12801 (reg_equiv_init): Likewise.
12802 (reg_equivs_size): New variable.
12803 (reg_equiv_init_size): Remove.
12804 (allocate_initial_values): Move prototype to here from....
12805 * integrate.h (allocate_initial_values): Remove prototype.
12806 * integrate.c: Include reload.h.
12807 (allocate_initial_values): Corresponding changes.
12808 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12809 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12810 (update_equiv_regs): Corresponding changes.
12811 (ira): Corresponding changes.
12812 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12813 (push_secondary_reload): Corresponding changes.
12814 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12815 (make_memloc, find_reloads_address): Corresponding changes.
12816 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12817 (find_reloads_address_1): Corresponding changes.
12818 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12819 (refers_to_regno_for_reload_p): Corresponding changes.
12820 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12821 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12822 * reload1.c: Include ggc.h.
12823 (grow_reg_equivs): New function.
12824 (replace_pseudos_in, reload): Corresponding changes.
12825 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12826 (eliminate_regs_1, elimination_effects): Corresponding changes.
12827 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12828 (delete_output_reload): Likewise.
12829 * caller-save.c (mark_referenced_regs): Corresponding changes.
12830 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12831 * frv/predicates.md (frv_load_operand): Corresponding changes.
12832 * microblaze/microblaze.c (double_memory_operand): Corresponding
12833 changes.
12834 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12835 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 12836 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
12837 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12838 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12839 changes.
12840 * pa/pa.c (emit_move_sequence): Corresponding changes.
12841 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12842
159b81b0
RS
128432011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12844
12845 PR target/47551
12846 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12847 structure modes. Don't check neon_vector_mem_operand for
12848 vector or structure modes.
12849
a6217191
RS
128502011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12851 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12852
12853 PR target/43590
12854 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12855 operand 1 and reshuffle the operands to match.
12856 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12857
bd837408
CS
128582011-03-30 Christian Schüler <cschueler@gmx.de>
12859
6955d771 12860 PR driver/48208
bd837408 12861 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 12862
6955d771 12863 PR driver/48260
bd837408
CS
12864 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12865 handler function.
12866 * config/darwin.opt: Added '-arch' option.
12867
e9c0470a
NC
128682011-03-30 Nick Clifton <nickc@redhat.com>
12869
12870 * config/rx/rx.md: Add peepholes and patterns to combine
12871 extending loads and simple arithmetic instructions.
12872 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
12873 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12874 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 12875 modes to use pre-decrement and post-increment addressing.
e9c18386 12876 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 12877 addresses.
e9c18386
UB
12878 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12879 (rx_memory_move_cost): Adjust cost of stores.
12880 (rx_adjust_insn_length): New function.
e9c0470a 12881
8a87e7ab
JJ
128822011-03-30 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR c/48305
12885 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12886 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12887 matching arg00/arg01 types.
12888
12486e03
EB
128892011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12890
12891 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12892 last_location to UNKNOWN_LOCATION.
12893
0b99eef6
L
128942011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12895
12896 PR target/48349
12897 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12898 FLOAT_SSE_REGS.
12899
023592aa
JM
129002011-03-30 Joseph Myers <joseph@codesourcery.com>
12901 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12902
12903 PR bootstrap/48337
12904 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12905 Init(PROCESSOR_V7).
12906 (sparc_cpu): Likewise.
12907 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12908 PROCESSOR_V7.
12909
ad3b266b
VM
129102011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12911
12912 PR target/48336
12913 PR middle-end/48342
12914 PR rtl-optimization/48345
12915 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12916 hard regs for given mode from profitable regs when doing secondary
12917 allocation.
12918
633c9126
JL
129192011-03-29 Jeff Law <law@redhat.com>
12920
12921 PR bootstrap/48327
12922 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12923 do_not_duplicate field.
12924 (lookup_redirection_data): Corresponding changes.
12925 (create_duplicates): Always create a template block.
12926 (redirect_edges): Remove code which reused the original block
12927 when it was going to become unreachable code.
12928 (thread_block): Don't set do_not_duplicate field.
12929
eb50f63a
JM
129302011-03-29 Joseph Myers <joseph@codesourcery.com>
12931
12932 * lto-opts.c (register_user_option_p, lto_register_user_option):
12933 Make type argument unsigned.
12934 * lto-streamer.h (lto_register_user_option): Make type argument
12935 unsigned.
12936 * opth-gen.awk: Make CL_* macros unsigned.
12937 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12938 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12939 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12940 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12941 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12942 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12943 (find_opt): Make lang_mask argument unsigned.
12944
76763a6d
VM
129452011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12946
12947 PR rtl-optimization/48331
12948 PR rtl-optimization/48334
12949 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12950 for any used algorithm.
12951
5c82436e
VM
129522011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12953
12954 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12955 to parent_max.
12956
7a81008b
UB
129572011-03-29 Uros Bizjak <ubizjak@gmail.com>
12958
12959 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12960 (alpha_option_override): Don't set alpha_sr_alias_set.
12961 (emit_frame_store_1): Use gen_frame_mem rather than calling
12962 set_mem_alias_set.
12963 (alpha_expand_epilogue): Ditto.
12964
86c8d1f6
IR
129652011-03-29 Ira Rosen <ira.rosen@linaro.org>
12966
12967 PR tree-optimization/48290
12968 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12969 vectorization, check that relevant phis in the basic block after
12970 the inner loop are really inner loop's exit phis.
12971
0d12220f
RS
129722011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12973
e8cf17e7 12974 PR debug/48190
0d12220f
RS
12975 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12976 (cached_dw_loc_list_def): New structure.
12977 (cached_dw_loc_list): New typedef.
12978 (cached_dw_loc_list_table): New variable.
12979 (cached_dw_loc_list_table_hash): New function.
12980 (cached_dw_loc_list_table_eq): Likewise.
12981 (add_location_or_const_value_attribute): Take a bool cache_p.
12982 Cache the list when the parameter is true.
12983 (gen_formal_parameter_die): Update caller.
12984 (gen_variable_die): Likewise.
12985 (dwarf2out_finish): Likewise.
12986 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12987 while generating debug info for the decl.
12988 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12989 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12990 (resolve_addr): Cache the result of resolving a chain of
12991 location lists.
12992
1756cb66
VM
129932011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12994
12995 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12996 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 12997
1756cb66
VM
12998 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12999 after regstat_init_n_sets_and_refs.
13000
13001 * ira.c: Add more comments at the top.
13002 (setup_stack_reg_pressure_class, setup_pressure_classes):
13003 Add comments how we compute the register pressure classes.
13004 (setup_allocno_and_important_classes): Add more comments.
13005 (setup_class_translate_array, reorder_important_classes)
13006 (setup_reg_class_relations): Add comments.
13007
13008 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13009 start of the file.
13010
13011 * ira-color.c: Add 2011 to the Copyright line.
13012 (assign_hard_reg): Add more comments.
13013 (improve_allocation): Ditto.
13014
13015 * ira-costs.c: Add 2011 to the Copyright line.
13016 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13017 comments.
13018 (setup_regno_cost_classes_by_mode): Ditto.
13019
13020 Initial patches from ira-improv branch:
13021
13022 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13023
f60c2554 13024 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
13025 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13026 (ira_create_allocno): Remove initialization of
13027 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13028 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13029 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13030 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13031 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13032 Initialize ALLOCNO_ADD_DATA.
13033 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13034 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13035 ALLOCNO_REG.
13036 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13037 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13038
13039 * ira.c (ira_reallocate): Remove.
13040 (setup_pressure_classes): Call
13041 ira_init_register_move_cost_if_necessary. Use
13042 ira_register_move_cost instead of ira_get_register_move_cost.
13043 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13044 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13045
13046 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13047 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13048 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13049 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13050 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13051 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13052 Fix formatting.
7a81008b 13053 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
13054 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13055 (struct allocno_color_data): New.
13056 (allocno_color_data_t): New typedef.
13057 (allocno_color_data): New definition.
13058 (ALLOCNO_COLOR_DATA): New macro.
13059 (struct object_color_data): New.
13060 (object_color_data_t): New typedef.
13061 (object_color_data): New definition.
13062 (OBJECT_COLOR_DATA): New macro.
13063 (update_copy_costs, calculate_allocno_spill_cost): Call
13064 ira_init_register_move_cost_if_necessary. Use
13065 ira_register_move_cost instead of ira_get_register_move_cost.
13066 (move_spill_restore, update_curr_costs): Ditto.
13067 (allocno_spill_priority): Make it inline.
7a81008b 13068 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
13069 (struct coalesce_data, coalesce_data_t): New.
13070 (allocno_coalesce_data): New definition.
13071 (ALLOCNO_COALESCE_DATA): New macro.
13072 (merge_allocnos, coalesced_allocno_conflict_p): Use
13073 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13074 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13075 (coalesce_allocnos): Ditto.
13076 (setup_coalesced_allocno_costs_and_nums): Ditto.
13077 (collect_spilled_coalesced_allocnos): Ditto.
13078 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13079 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13080 (coalesce_spill_slots): Ditto.
13081 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13082 free allocno_coalesce_data.
13083
13084 * ira-conflicts.c: Fix formatting.
13085 (process_regs_for_copy): Call
13086 ira_init_register_move_cost_if_necessary. Use
13087 ira_register_move_cost instead of ira_get_register_move_cost.
13088 (build_object_conflicts): Optimize.
13089
13090 * ira-costs.c (record_reg_classes): Optimize. Call
13091 ira_init_register_move_cost_if_necessary. Use
13092 ira_register_move_cost, ira_may_move_in_cost, and
13093 ira_may_move_out_cost instead of ira_get_register_move_cost and
13094 ira_get_may_move_cost.
13095 (record_address_regs): Ditto.
13096 (scan_one_insn): Optimize.
13097 (find_costs_and_classes): Optimize.
13098 (process_bb_node_for_hard_reg_moves): Call
13099 ira_init_register_move_cost_if_necessary. Use
13100 ira_register_move_cost instead of ira_get_register_move_cost.
13101
13102 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13103 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13104 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13105 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13106 definitions.
13107 (ira_initiate_emit_data, ira_finish_emit_data)
13108 (create_new_allocno): New functions.
7a81008b 13109 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
13110 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13111 Use ira_register_move_cost instead of ira_get_register_move_cost.
13112
13113 * ira-int.h: Fix some comments.
7a81008b
UB
13114 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13115 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
13116 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13117 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13118 add_data.
13119 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13120 bitfield after mode. Make hard_regno a short int. Make
13121 hard_regno short. Remove first_coalesced_allocno and
13122 next_coalesced_allocno. Move mem_optimized_dest_p,
13123 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13124 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13125 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13126 temp, colorable_p. Add new member add_data.
13127 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13128 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13129 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13130 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13131 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13132 (ALLOCNO_ADD_DATA): New macro.
13133 (ira_emit_data_t): New typedef.
13134 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13135 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13136 from struct ira_allocno.
13137 (ALLOCNO_EMIT_DATA): New macro.
13138 (ira_allocno_emit_data, allocno_emit_reg): New.
13139 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 13140 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
13141 (OBJECT_ADD_DATA): New macro.
13142 (ira_reallocate): Remove.
13143 (ira_initiate_emit_data, ira_finish_emit_data): New.
13144 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13145 (ira_init_register_move_cost_if_necessary): New.
13146 (ira_object_conflict_iter_next): Merge into
13147 ira_object_conflict_iter_cond.
7a81008b 13148 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 13149
f60c2554 13150 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
13151 ira_init_register_move_cost_if_necessary. Use
13152 ira_register_move_cost instead of ira_get_register_move_cost.
13153
13154 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13155
13156 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13157
13158 * ira-costs.c: Fix formatting.
13159 (cost_classes, cost_classes_num): Remove.
13160 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13161 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13162 (cost_classes_del, cost_classes_htab): New.
13163 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13164 (initiate_regno_cost_classes, setup_cost_classes): New.
13165 (setup_regno_cost_classes_by_aclass): New.
7a81008b 13166 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
13167 (record_reg_classes): Use regno_cost_classes instead of
13168 cost_classes. Move checking opposite operand up.
13169 (record_address_regs): Use regno_cost_classes
13170 instead of cost_classes.
13171 (scan_one_insn): Ditto. Use always general register.
13172 (print_allocno_costs): Use regno_cost_classes instead of
13173 cost_classes.
13174 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13175 (find_costs_and_classes): Set up cost classes for each registers.
13176 Use also their mode for this. Use regno_cost_classes instead of
13177 cost_classes.
13178 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13179 cost_classes.
13180 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13181 (ira_costs, ira_set_pseudo_classes): Call
13182 initiate_regno_cost_classes and finish_regno_cost_classes.
13183
13184 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13185
13186 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13187
13188 * target.def (ira_cover_classes): Remove.
13189
7a81008b 13190 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
13191
13192 * doc/tm.texi.in: Ditto.
13193
13194 * ira-conflicts.c: Remove mentioning cover classes from the file.
13195 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 13196 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
13197
13198 * targhooks.c (default_ira_cover_classes): Remove.
13199
13200 * targhooks.h (default_ira_cover_classes): Ditto.
13201
13202 * haifa-sched.c: Remove mentioning cover classes from the file.
13203 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13204 ira_pressure_classes and ira_pressure_classes_num instead of
13205 ira_reg_class_cover_size and ira_reg_class_cover. Use
13206 sched_regno_pressure_class instead of sched_regno_cover_class.
13207 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13208 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13209
13210 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13211 classes from the file.
13212 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13213 (struct object_hard_regs, struct object_hard_regs_node): New.
13214 (struct ira_object): New members profitable_hard_regs,
13215 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13216 (struct ira_allocno): Rename cover_class to aclass. Rename
13217 cover_class_cost and updated_cover_class_cost to class_cost and
13218 updated_class_cost. Remove splay_removed_p and
13219 left_conflict_size. Add new members colorable_p.
13220 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13221 (ALLOCNO_COLORABLE_P): New macro.
13222 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13223 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13224 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13225 (OBJECT_...): Rename parameter C to O.
13226 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13227 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13228 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13229 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13230 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13231 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13232 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13233 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13234 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13235 x_ira_reg_class_subunion.
13236 (ira_max_memory_move_cost, ira_max_register_move_cost)
13237 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13238 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13239 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 13240 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
13241 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13242 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13243 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13244 (ira_tune_allocno_costs_and_cover_classes): Rename to
13245 ira_tune_allocno_costs.
13246 (ira_debug_hard_regs_forest): New.
13247 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13248 (ira_object_conflict_iter_next): Fix comments.
7a81008b 13249 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
13250 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13251 cover_class to aclass.
13252 (ira_allocate_and_accumulate_costs): Ditto.
13253 (ira_allocate_and_set_or_copy_costs): Ditto.
13254
13255 * opts.c (decode_options): Remove ira_cover_class check.
13256
13257 * ira-color.c: Remove mentioning cover classes from the file. Use
13258 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13259 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13260 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13261 (splay-tree.h): Remove include.
13262 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13263 before copy_freq_compare_func.
13264 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13265 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13266 New definitions.
13267 (hard_regs_roots, hard_regs_node_vec): Ditto.
13268 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13269 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13270 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13271 (create_new_object_hard_regs_node): Ditto.
13272 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 13273 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
13274 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13275 Ditto.
13276 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13277 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13278 (remove_unused_object_hard_regs_nodes): Ditto.
13279 (enumerate_object_hard_regs_nodes): Ditto.
13280 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13281 (object_hard_regs_subnode_t): Ditto.
13282 (struct object_hard_regs_subnode): Ditto.
13283 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13284 (setup_object_hard_regs_subnode_index): Ditto.
13285 (get_object_hard_regs_subnodes_num): Ditto.
13286 (form_object_hard_regs_nodes_forest): Ditto.
13287 (finish_object_hard_regs_nodes_tree): Ditto.
13288 (finish_object_hard_regs_nodes_forest): Ditto.
13289 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 13290 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
13291 (pseudos_have_intersected_live_ranges_p): Rename to
13292 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13293 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13294 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13295 (update_copy_costs): Remove assert. Skip cost update if the hard
13296 reg does not belong the class.
13297 (assign_hard_reg): Process only profitable hard regs.
13298 (uncolorable_allocnos_num): Make it scalar.
13299 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13300 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13301 and ira_reg_class_max_nregs.
13302 (bucket_allocno_compare_func): Check frequency first.
13303 (sort_bucket): Add compare function as a parameter.
13304 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13305 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13306 (push_allocno_to_stack): Rewrite for checking new allocno
13307 colorability.
7a81008b 13308 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
13309 (push_only_colorable): Pass new parameter to sort_bucket.
13310 (push_allocno_to_spill): Remove.
13311 (allocno_spill_priority_compare): Make it inline and rewrite.
13312 (splay_tree_allocate, splay_tree_free): Remove.
13313 (allocno_spill_sort_compare): New function.
13314 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13315 build and use splay tree. Choose first allocno in uncolorable
13316 allocno bucket to spill. Remove setting spill cost.
13317 (all_conflicting_hard_regs): Remove.
13318 (setup_allocno_available_regs_num): Check only profitable hard
13319 regs. Print info about hard regs nodes.
13320 (setup_allocno_left_conflicts_size): Remove.
13321 (put_allocno_into_bucket): Don't call
7a81008b 13322 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
13323 (improve_allocation): New.
13324 (color_allocnos): Call setup_profitable_hard_regs,
13325 form_object_hard_regs_nodes_forest, improve_allocation,
13326 finish_object_hard_regs_nodes_forest. Setup spill cost.
13327 (print_loop_title): Use pressure classes.
13328 (color_allocnso): Ditto.
13329 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13330 and allocnos_for_spilling.
13331 (ira_sort_regnos_for_alter_reg): Don't setup members
13332 {first,next}_coalesced_allocno.
13333 (color): Remove allocating and freeing removed_splay_allocno_vec.
13334 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13335 prohibited_class_mode_regs.
13336
13337 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13338 formatting.
13339 (update_allocno_pressure_excess_length): Use pressure classes.
13340 (inc_register_pressure, dec_register_pressure): Check for pressure
13341 class.
13342 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13343 pressure class. Use ira_reg_class_nregs instead of
13344 ira_reg_class_max_nregs.
13345 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13346 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13347 (single_reg_class): Use ira_reg_class_nregs instead of
13348 ira_reg_class_max_nregs.
13349 (process_bb_node_lives): Use pressure classes.
13350
13351 * ira-emit.c: Remove mentioning cover classes from the file. Use
13352 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13353 (change_loop): Use pressure classes.
13354 (modify_move_list): Call ira_set_allocno_class instead of
13355 ira_set_allocno_cover_class.
13356
13357 * ira-build.c: Remove mentioning cover classes from the file. Use
13358 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13359 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13360 ALLOCNO_UPDATED_CLASS_COST instead of
13361 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13362 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13363 (ira_create_allocno): Remove initialization of
13364 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13365 ALLOCNO_COLORABLE_P.
13366 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13367 Update conflict regs for the objects.
13368 (create_cap_allocno): Remove assert. Don't propagate
13369 ALLOCNO_AVAILABLE_REGS_NUM.
13370 (ira_free_allocno_costs): New function.
13371 (finish_allocno): Change a part of code into call of
13372 ira_free_allocno_costs.
13373 (low_pressure_loop_node_p): Use pressure classes.
13374 (object_range_compare_func): Don't compare classes.
13375 (setup_min_max_conflict_allocno_ids): Ditto.
13376
13377 * loop-invariant.c: Remove mentioning cover classes from the file.
13378 Use ira_pressure_classes and ira_pressure_classes_num instead of
13379 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
13380 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13381 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13382 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
13383 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13384 STACK_REG_COVER_CLASS.
13385 (get_regno_cover_class): Rename to get_regno_pressure_class.
13386 (move_loop_invariants): Initialize and finalize regstat.
13387
13388 * ira.c: Remove mentioning cover classes from the file. Add
13389 comments about coloring without cover classes. Use ALLOCNO_CLASS
13390 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13391 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13392 setup_class_subset_and_memory_move_costs.
13393 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13394 (setup_cover_and_important_classes): Rename to
13395 setup_allocno_and_important_classes.
13396 (setup_class_translate_array): New.
13397 (setup_class_translate): Call it for allocno and pressure classes.
13398 (cover_class_order): Rename to allocno_class_order.
13399 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13400 of ira_class_translate.
13401 (reorder_important_classes): Set up ira_important_class_nums.
13402 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13403 (print_class_cover): Rename to print_classes. Add parameter.
13404 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13405 Print pressure classes too.
13406 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13407 setup_reg_subclasses.
7a81008b 13408 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
13409 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13410 (setup_prohibited_class_mode_regs): Use
7a81008b 13411 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
13412 (clarify_prohibited_class_mode_regs): New function.
13413 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13414 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13415 (ira_init_once): Initialize them.
13416 (free_register_move_costs): Process them.
13417 (ira_init): Move calls of find_reg_classes and
13418 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13419 Call clarify_prohibited_class_mode_regs.
13420 (ira_no_alloc_reg): Remove.
13421 (too_high_register_pressure_p): Use pressure classes.
13422
13423 * sched-deps.c: Remove mentioning cover classes from the file.
13424 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13425 ira_pressure_classes and ira_pressure_classes_num instead of
13426 ira_reg_class_cover_size and ira_reg_class_cover.
13427 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13428 sched_regno_pressure_class instead of sched_regno_cover_class.
13429 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13430 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13431
13432 * ira.h: Add 2010 to Copyright.
13433 (ira_no_alloc_reg): Remove external.
13434 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13435 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13436 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13437 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13438 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13439 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13440 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13441 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13442 x_ira_no_alloc_regs.
7a81008b 13443 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
13444 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13445 ira_allocno_classes_num and ira_allocno_classes.
13446 (ira_class_translate): Rename to ira_allocno_class_translate.
13447 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13448 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13449 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13450 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13451 (ira_no_alloc_regs): New.
13452
13453 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13454 classes from the file. Use ALLOCNO_CLASS instead of
13455 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13456 ALLOCNO_COVER_CLASS_COST.
13457 (regno_cover_class): Rename to regno_aclass.
13458 (record_reg_classes): Use ira_reg_class_subunion instead of
13459 ira_reg_class_union.
13460 (record_address_regs): Check overflow.
13461 (scan_one_insn): Ditto.
7a81008b 13462 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
13463 (print_pseudo_costs): Use REG_N_REFS.
13464 (find_costs_and_classes): Use classes intersected with them on the
13465 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13466 ira_reg_class_union. Use ira_allocno_class_translate and
13467 regno_aclass instead of ira_class_translate and regno_cover_class.
13468 Modify code for finding regno_aclass. Setup preferred classes for
13469 the next pass.
13470 (setup_allocno_cover_class_and_costs): Rename to
13471 setup_allocno_class_and_costs. Use regno_aclass instead of
13472 regno_cover_class. Use ira_set_allocno_class instead of
13473 ira_set_allocno_cover_class.
13474 (init_costs, finish_costs): Use regno_aclass instead of
13475 regno_cover_class.
13476 (ira_costs): Use setup_allocno_class_and_costs instead of
13477 setup_allocno_cover_class_and_costs.
13478 (ira_tune_allocno_costs_and_cover_classes): Rename to
13479 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13480 by processing objects. Use ira_reg_class_max_nregs instead of
13481 ira_reg_class_nregs.
13482
13483 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13484
13485 * sched-int.h: Remove mentioning cover classes from the file.
13486 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13487
13488 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13489 classes from the file.
13490 (struct reg_pref): Rename coverclass into allocnoclass.
13491 (reg_cover_class): Rename to reg_allocno_class.
13492
7a81008b 13493 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
13494
13495 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13496
13497 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13498
13499 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13500
13501 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13502
13503 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13504
13505 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13506
13507 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13508
13509 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13510
13511 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13512
13513 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13514 (i386_ira_cover_classes): Ditto.
13515
13516 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13517
13518 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13519
13520 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13521
13522 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13523
13524 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13525
13526 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13527
13528 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13529 (mips_ira_cover_classes): Ditto.
13530
13531 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13532
13533 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13534
13535 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13536
13537 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13538
13539 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13540
13541 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13542 (IRA_COVER_CLASSES_VSX): Ditto.
13543
13544 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13545 (rs6000_ira_cover_classes): Ditto.
13546
13547 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13548
13549 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13550
13551 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13552
13553 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13554
13555 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13556
13557 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13558
13559 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13560
13561 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13562
13563 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13564
13565 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13566
2b80199f
JJ
135672011-03-29 Jakub Jelinek <jakub@redhat.com>
13568
71dae1fe
JJ
13569 PR debug/48253
13570 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13571 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13572 dw_fde_unlikely_section_end_label, cold_in_std_section,
13573 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13574 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13575 fields.
13576 (output_fde): Use dw_fde_second_{begin,end} if second is
13577 true, otherwise dw_fde_{begin,end}.
13578 (output_call_frame_info): Test dw_fde_second_begin != NULL
13579 instead of dw_fde_switched_sections.
13580 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13581 fields, initialize new fields. Initialize in_std_section
13582 unconditionally from the first partition.
13583 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13584 dw_fde_second_begin is non-NULL.
13585 (dwarf2out_switch_text_section): Stop initializing removed
13586 dw_fde_struct fields, initialize new fields, initialize
13587 also dw_fde_end here. Set dw_fde_switch_cfi even when
13588 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13589 (struct var_loc_list_def): Add last_before_switch field.
13590 (arange_table, arange_table_allocated, arange_table_in_use,
13591 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13592 (size_of_aranges): Count !in_std_section and !second_in_std_section
13593 hunks in fdes, instead of looking at arange_table_in_use.
13594 (output_aranges): Add aranges_length argument, don't call
13595 size_of_aranges here. Instead of using aranges_table*
13596 emit ranges for fdes when !in_std_section resp.
13597 !second_in_std_section.
13598 (dw_loc_list): Break ranges crossing section switch.
13599 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 13600 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
13601 (gen_subprogram_die): Don't call add_arange. Use
13602 dw_fde_{begin,end} for first partition and if switched
13603 section dw_fde_second_{begin,end} for the second.
13604 (var_location_switch_text_section_1,
13605 var_location_switch_text_section): New functions.
13606 (dwarf2out_begin_function): Initialize cold_text_section even
13607 when function_section () isn't text_section.
13608 (prune_unused_types): Don't walk arange_table.
13609 (dwarf2out_finish): Don't needlessly test
13610 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13611 If info_section_emitted, call size_of_aranges and if it indicates
13612 non-empty .debug_aranges, call output_aranges with the computed
13613 size. Stop using removed dw_fde_struct fields, use
13614 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13615 for second.
13616
2b80199f
JJ
13617 PR debug/48203
13618 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13619 create ENTRY_VALUE if incoming or address of incoming's MEM
13620 is a hard REG.
13621 * dwarf2out.c (mem_loc_descriptor): Don't emit
13622 DW_OP_GNU_entry_value of DW_OP_fbreg.
13623 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13624 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13625 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13626 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13627 ENTRY_VALUE_EXPs.
13628 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13629 is a REG_P or MEM_P with REG_P address, compute hash directly
13630 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13631 (preserve_only_constants): Don't clear VALUES forwaring
13632 ENTRY_VALUE to some other VALUE.
13633
8a445129
RS
136342011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13635
13636 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13637 instead of GEN_INT.
13638
c82fee88
EB
136392011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13640
13641 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13642 block before expanding the statement.
13643 (expand_gimple_stmt_1): Likewise. Set them here...
13644 (expand_gimple_stmt): ...and not here. Tidy.
13645 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13646 unknown.
13647
e45425ec
SB
136482011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13649
13650 * Makefile.in: New rule for cprop.o.
13651 * gcse.c: Move constant/copy propagation to cprop.c.
13652 (compute_local_properties): Only handle expression tables.
13653 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13654 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13655 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13656 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 13657 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
13658 compute_cprop_data, find_used_regs, try_replace_reg,
13659 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13660 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13661 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13662 find_bypass_set, reg_killed_on_edge, bypass_block,
13663 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13664 execute_rtl_cprop, pass_rtl_cprop): Move to...
13665 * cprop.c: ...here. New file, constant/copy propagation for RTL
13666 moved from gcse.c to here with minor cleanups in duplicated code.
13667
c09d5426
L
136682011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13669
13670 * config/i386/i386.c (flag_opts): Fix a typo in
13671 -mavx256-split-unaligned-store.
13672
9eaa7740
AS
136732011-03-28 Anatoly Sokolov <aesok@post.ru>
13674
13675 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13676 LIBCALL_VALUE): Remove macros.
13677 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13678 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13679 (h8300_function_value, h8300_libcall_value,
13680 h8300_function_value_regno_p): New functions.
13681
dcec2be2
AS
136822011-03-28 Anatoly Sokolov <aesok@post.ru>
13683
13684 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13685
520af9ec
JL
136862011-03-28 Jeff Law <law@redhat.com>
13687
13688 * tree-ssa-threadupdate.c (redirect_edges): Call
13689 create_edge_and_update_destination_phis as needed.
13690 (create_edge_and_update_destination_phis): Accept new BB argument.
13691 All callers updated.
13692 (thread_block): Do not update the profile when threading around
13693 intermediate blocks.
13694 (thread_single_edge): Likewise.
13695 (determine_bb_domination_status): If BB is not a successor of the
13696 loop header, return NONDOMINATING.
13697 (register_jump_thread): Note when we register a jump thread around
13698 an intermediate block.
13699 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13700 (thread_across_edge): Use it.
13701
7450b54f
TG
137022011-03-28 Tristan Gingold <gingold@adacore.com>
13703
13704 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13705 when for_return is 2.
13706
649beb33
JL
137072011-03-28 Jeff Law <law@redhat.com>
13708
13709 * var-tracking.c (canonicalize_values_mark): Delete unused
13710 lhs assignment.
13711 (canonicalize_values_star, set_variable_part): Likewise.
13712 (clobber_variable_part, delete_variable_part): Likewise.
13713
d5b8da97
SB
137142011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13715
13716 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13717
322dd859
MJ
137182011-03-28 Martin Jambor <mjambor@suse.cz>
13719
13720 * tree-inline.c (expand_call_inline): Do not check that destination
13721 node is analyzed.
13722 (optimize_inline_calls): Assert that destination node is analyzed.
13723 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13724 not call tree_lowering_passes.
13725 * cgraph.h (cgraph_analyze_function): Declare.
13726 * cgraphunit.c (cgraph_analyze_function): Make public.
13727
aa53e58b
JM
137282011-03-28 Joseph Myers <joseph@codesourcery.com>
13729
13730 * config/sparc/sparc-opts.h: New.
13731 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13732 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13733 (sparc_option_override): Store processor_type enumeration rather
13734 than string in cpu_default. Remove name and enumeration from
13735 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13736 without using sparc_select. Use target_flags_explicit instead of
13737 fpu_option_set.
13738 * config/sparc/sparc.h (enum processor_type): Move to
13739 sparc-opts.h.
13740 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13741 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13742 HeaderInclude entry.
13743 (mcpu=, mtune=): Use Var and Enum.
13744 (sparc_processor_type): New Enum and EnumValue entries.
13745
dd350eba
RO
137462011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13747 Iain Sandoe <iains@gcc.gnu.org>
13748
13749 PR target/48245
13750 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13751
1b29f05e
EB
137522011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13753
13754 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13755 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13756 Insert new statements at it in lieu of STMT.
13757 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13758 * tree-vect-stmts.c (vectorizable_store): Likewise.
13759 (vectorizable_load): Likewise.
13760
506e6808
UB
137612011-03-28 Uros Bizjak <ubizjak@gmail.com>
13762
13763 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13764 (divtf3): Ditto.
13765 (multf3): Ditto.
13766 (subtf3): Ditto.
13767
2e939ee9
L
137682011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13769
13770 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13771 unaligned 256bit load/store.
13772 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13773 (*avx_movdqu<avxmodesuffix>): Likewise.
13774
5e85ab88
JDA
137752011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13776
13777 PR target/48288
13778 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13779 * config/pa/pa.md (iordi3): Use new predicate in expander.
13780 (iorsi3): Likewise.
13781
47be3d6d
AS
137822011-03-27 Anatoly Sokolov <aesok@post.ru>
13783
506e6808 13784 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 13785 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
13786 * config/mips/mips-protos.h (mips_function_value): Remove.
13787 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
13788 (mips_function_value_1): ... this. Make static. Handle receiving
13789 the function type in 'fn_decl_or_type' argument.
13790 (mips_function_value, mips_libcall_value,
13791 mips_function_value_regno_p): New function.
13792 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13793 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13794
d253656a
L
137952011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13796
13797 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13798 and -mavx256-split-unaligned-store.
13799 (ix86_option_override_internal): Split 32-byte AVX unaligned
13800 load/store by default.
13801 (ix86_avx256_split_vector_move_misalign): New.
13802 (ix86_expand_vector_move_misalign): Use it.
13803
13804 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13805 -mavx256-split-unaligned-store.
13806
13807 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13808 256bit load/store. Generate unaligned store on misaligned memory
13809 operand.
13810 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13811 256bit load/store.
13812 (*avx_movdqu<avxmodesuffix>): Likewise.
13813
13814 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13815 -mavx256-split-unaligned-store.
13816
1ea9206a
RS
138172011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13818
13819 PR target/38598
13820 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13821 Update commentary.
13822
b99ce2a8
RS
138232011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13824
13825 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13826 opno arguments with an expand_operand. Use create_input_operand.
13827 (mips_prepare_builtin_target): Delete.
13828 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13829 functions.
13830 (mips_expand_builtin_direct): Use create_output_operand and
13831 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13832 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13833 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13834
69d52339
IR
138352011-03-27 Ira Rosen <ira.rosen@linaro.org>
13836
13837 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13838 function.
13839 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13840
ba5e9aca
EB
138412011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13842
13843 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13844 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13845 basic blocks and call commit_edge_insertions directly.
13846 (fixup_abnormal_edges): Move from here to...
13847 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13848 on the edges and return whether some have actually been inserted.
13849 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13850 compensation code.
13851
5d369d58
AB
138522011-03-26 Andrey Belevantsev <abel@ispras.ru>
13853
13854 PR rtl-optimization/48144
13855 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13856 (merge_expr_data): ... here.
13857 (av_set_intersect): Rename to av_set_code_motion_filter.
13858 Update all callers. Call merge_history_vect when an expression
13859 is found in both sets.
13860 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13861
f082c000
AM
138622011-03-26 Alan Modra <amodra@gmail.com>
13863
13864 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13865 cmodel medium addresses.
13866 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13867 64-bit gpr loads and stores.
13868 (rs6000_secondary_reload_ppc64): New function.
13869 * config/rs6000/rs6000-protos.h: Declare it.
13870 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13871
8ac5e12e
AM
138722011-03-26 Alan Modra <amodra@gmail.com>
13873
13874 PR target/47487
13875 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13876 GNU Go in traceback table.
13877
c2654ded
RH
138782011-03-25 Richard Henderson <rth@redhat.com>
13879
13880 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13881 if there are exactly 6 operands.
13882 (set_storage_via_setmem): Similarly.
13883
ba78087b
KT
138842011-03-25 Kai Tietz <ktietz@redhat.com>
13885
13886 * collect2.c (write_c_file_stat): Handle backslash
13887 as right-hand directory separator.
13888 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13889 checking just for slash.
13890 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13891 instead of checking for trailing slash.
13892 * gcc.c (record_temp_file): Use filename_cmp instead
13893 of strcmp.
13894 (do_spec_1): Likewise.
13895 (replace_outfile_spec_function): Likewise.
13896 (is_directory): Use filename_ncmp instead of strncmp.
13897 (print_multilib_info): Likewise.
13898 * gcov.c (find_source): Use filename_cmp instead
13899 instead of strcmp.
13900 (make_gcov_file_name): Fix order of slash/backslash
13901 checks.
13902 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13903 (add_standard_paths): Likewise.
13904 * mips-tfile.c (saber_stop): Handle backslash.
13905 * prefix.c (update_path): Use filename_ncmp instead of
13906 strncmp.
13907 * profile.c (output_location): Use filename_cmp instead
13908 of strcmp.
13909 * read-md.c (handle_toplevel_file): Handle backslash.
13910 * tlink.c (frob_extension): Likewise.
13911 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13912 strcmp.
13913 * tree-dump.c (dequeue_and_dump): Handle backslash.
13914 * tree.c (get_file_function_name): Likewise.
13915 * gengtype.c (read_input_list): Likewise.
13916 (get_file_realbasename): Likewise.
13917 (get_output_file_with_visibility): Use filename_cmp
13918 instead of strcmp.
13919
75f6ec9a
RS
139202011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13921
13922 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13923 case to VFPv1.
13924
6c4e2997
NF
139252011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13926
13927 * fold-const.c (expr_location_or): New function.
13928 (fold_truth_not_expr): Call it.
13929
0edf1bb2
JL
139302011-03-25 Jeff Law <law@redhat.com>
13931
13932 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13933 va_end.
13934 * c-family/c-common.c (def_fn_type): Likewise.
13935 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13936 * emit-rtl.c (gen_rtvec): Likewise.
13937 * lto/lto-lang.c (def_fn_type): Likewise.
13938
fdc2de95
RG
139392011-03-25 Richard Guenther <rguenther@suse.de>
13940
13941 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13942 also generate copies.
13943 (fini_copy_prop): Handle constant values properly.
13944
21385db0
JJ
139452011-03-25 Jakub Jelinek <jakub@redhat.com>
13946
13947 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13948 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13949 (hash_loc_operands, compare_loc_operands): Handle
13950 DW_OP_GNU_entry_value.
13951
6510e8bb
KT
139522011-03-25 Kai Tietz <ktietz@redhat.com>
13953
13954 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13955 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13956 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13957 comment and use macro TARGET_64BIT_MS_ABI instead.
13958 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13959 and change default behavior for 32-bit MS_ABI.
13960 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13961 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13962 32-bit, too.
13963 (ix86_cfun_abi): Likewise.
13964 (ix86_maybe_switch_abi): Adjust comment.
13965 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13966 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13967 instead of checking for SYSV_ABI.
13968 (ix86_nsaved_sseregs): Likewise.
13969 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13970 to 16 bytes.
13971 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13972 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13973 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13974 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13975 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13976
34019e28
RG
139772011-03-25 Richard Guenther <rguenther@suse.de>
13978
13979 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13980 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13981 (verify_gimple): Remove.
13982 * tree-cfg.c (verify_gimple_call): Merge verification
13983 from verify_stmts.
13984 (verify_gimple_phi): Merge verification from verify_stmts.
13985 (verify_gimple_label): New function.
13986 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13987 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13988 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13989 (verify_stmts): Rename to verify_gimple_in_cfg.
13990 (verify_gimple_in_cfg): New function.
13991 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13992 * tree-ssa.c (verify_ssa): Likewise.
13993 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13994
605896f5
RG
139952011-03-25 Richard Guenther <rguenther@suse.de>
13996
13997 * passes.c (init_optimization_passes): Add FRE pass after
13998 early SRA.
13999
7baa7c13
BS
140002011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14001 Andrew Stubbs <ams@codesourcery.com>
14002
14003 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14004 for Cortex-A8.
14005 (arm_movdi_vfp_cortexa8): New pattern.
14006 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14007 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14008 instructions when tuning for Cortex-A8. Set attribute "arch".
14009 * config/arm/arm.md: Move include arm-tune.md up a bit.
14010 (define_attr "arch"): Add "onlya8" and "nota8" values.
14011 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14012
45dbce1b
NF
140132011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14014
4ff08abf 14015 PR bootstrap/48282
45dbce1b
NF
14016 Revert:
14017 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14018
14019 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14020 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14021 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14022 * passes.c (init_optimization_passes): Move
14023 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14024
ac9a30ae
KT
140252011-03-25 Kai Tietz <ktietz@redhat.com>
14026
14027 * c-typeck.c (comptypes_internal): Replace target
14028 hook call of comp_type_attributes by version in tree.c file.
14029 * gimple.c (gimple_types_compatible_p_1): Likewise.
14030 * tree-ssa.c (useless_type_conversion_p): Likewise.
14031 * tree.c (build_type_attribute_qual_variant): Likewise.
14032 (attribute_value_equal): New static helper function.
14033 (comp_type_attributes): New function.
14034 (merge_attributes): Use attribute_value_equal for comparison.
14035 (attribute_list_contained): Likewise.
14036 * tree.h (comp_type_attributes): New prototype.
14037
afdac116
RG
140382011-03-25 Richard Guenther <rguenther@suse.de>
14039
14040 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14041 of complex types at -O0.
14042 (verify_gimple_assign_binary): Likewise.
14043 (verify_gimple_assign_ternary): Likewise.
14044
ec6165f8
MW
140452011-03-24 Mark Wielaard <mjw@redhat.com>
14046
14047 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14048 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14049
2a5ac39a
MW
140502011-03-24 Mark Wielaard <mjw@redhat.com>
14051
14052 PR debug/48041
14053 * dwarf2out.c (output_abbrev_section): Only write table when
14054 abbrev_die_table_in_use > 1.
14055
e533b2a4
RH
140562011-02-24 Richard Henderson <rth@redhat.com>
14057
14058 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14059 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14060 (alpha_expand_unaligned_load_words): Use extql.
14061 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14062 (emit_insxl): Handle all modes for consistency.
14063
0b2a7367
RH
140642011-02-24 Richard Henderson <rth@redhat.com>
14065
14066 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14067 (alpha_expand_unaligned_load): Likewise.
14068 (alpha_expand_unaligned_store): Likewise.
14069 (alpha_expand_unaligned_load_words): Likewise.
14070 (alpha_expand_unaligned_store_words): Likewise.
14071 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14072 (alpha_split_lock_test_and_set_12): Likewise.
14073 (print_operand, alpha_fold_builtin_extxx): Likewise.
14074 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14075 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14076 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14077 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14078 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14079 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14080 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14081 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14082 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14083 (extwl, extll, extql): Similarly.
14084 (inswh, inslh, insqh): Similarly.
14085 (mskbl, mskwl, mskll, mskql): Similarly.
14086 (mskwh, msklh, mskqh): Similarly.
14087
315b2bef
RH
140882011-02-24 Richard Henderson <rth@redhat.com>
14089
14090 * config/alpha/alpha.md (attribute isa): Add er, ner.
14091 (attribute enabled): Handle them.
14092 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14093
67102517
RH
140942011-02-24 Richard Henderson <rth@redhat.com>
14095
14096 * config/alpha/alpha.md (attribute isa): Add vms.
14097 (attribute enabled): Handle it.
14098 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14099 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14100 (*movtf): Rename from *movtf_internal for consistency.
14101 (*movsi): Merge with *movsi_nt_vms.
14102 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14103 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14104 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14105 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14106
6aba5cb4
RH
141072011-02-24 Richard Henderson <rth@redhat.com>
14108
14109 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14110 (extendqisi2, extendhisi2): Likewise.
14111 (extendqidi2): Simplify BWX/non-BWX expansions.
14112 (extendhidi2): Similarly.
14113
bdfb351b
RH
141142011-02-24 Richard Henderson <rth@redhat.com>
14115
14116 * config/alpha/alpha.md (attribute isa): New.
14117 (attribute enabled): New.
14118 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14119 (zero_extendqisi2, zero_extendqidi2): Similarly.
14120 (zero_extendhisi2, zero_extendhidi2): Similarly.
14121 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14122
6abe71eb
RH
141232011-02-24 Richard Henderson <rth@redhat.com>
14124
14125 * config/alpha/predicates.md (input_operand): Revert last change;
14126 update comment to mention 32-bit VMS rather than Windows.
14127
7114321e
NF
141282011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14129
14130 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14131 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14132 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14133 * passes.c (init_optimization_passes): Move
14134 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14135
c8679567
EB
141362011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14137
14138 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14139
27173058
UB
141402011-03-24 Uros Bizjak <ubizjak@gmail.com>
14141
14142 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14143 correctly.
14144
6f0c9f06
JJ
141452011-03-24 Jakub Jelinek <jakub@redhat.com>
14146
14147 PR debug/48204
14148 * simplify-rtx.c (simplify_const_unary_operation): Call
14149 real_convert when changing mode class with FLOAT_EXTEND.
14150
662666e5
NC
141512011-03-24 Nick Clifton <nickc@redhat.com>
14152
14153 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14154 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14155 * config/rx/rx.c (rx_option_override): Set align_jumps,
14156 align_loops and align_labels if not set by the user.
14157 (rx_align_for_label): New function.
14158 (rx_max_skip_for_label): New function.
14159 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14160 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14161 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14162 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14163 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14164
2b99b2b8
RS
141652011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14166
14167 PR rtl-optimization/48263
14168 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14169 and original commutative_p handling. Use maybe_gen_insn.
14170
ccecd6ea
AK
141712011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14172
14173 * reload.c (find_reloads_subreg_address): Add address_reloaded
14174 parameter and return true there if the full address has been
14175 reloaded.
14176 (find_reloads_toplev): Pass address_reloaded flag.
14177 (find_reloads_address_1): Don't use address_reloaded parameter.
14178
67295642
JL
141792011-03-24 Jeff Law <law@redhat.com>
14180
14181 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14182 unused variable "ann".
14183 (remove_unused_locals): Likewise.
14184
14185 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14186 statement.
14187
14188 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14189 after it is freed.
14190
212aa74f
AK
141912011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14192
14193 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14194 for invalid symbolic addresses.
14195 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14196 larl operands.
14197
fe784e0d
EB
141982011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14199
14200 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14201 the argument in calls to fold_truth_not_expr.
14202
63ee8641
NF
142032011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14204
14205 * tree.c (record_node_allocation_statistics): New function.
14206 (make_node_stat, copy_node_stat, build_string): Call it.
14207 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14208 (build1_stat, build_omp_clause): Likewise.
14209
61be2a1c
RS
142102011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14211
14212 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14213 last commit.
14214
a881aaa7
RG
142152011-03-24 Richard Guenther <rguenther@suse.de>
14216
14217 PR tree-optimization/48271
14218 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14219 blocks that still exist.
14220
dbaa912c
RG
142212011-03-24 Richard Guenther <rguenther@suse.de>
14222
14223 PR tree-optimization/48270
14224 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14225 not free datarefs before ddrs.
14226
1d60cc55
EB
142272011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14228
14229 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14230 from the address built for a reference with variable offset.
14231
c78dd519
UB
142322011-03-24 Uros Bizjak <ubizjak@gmail.com>
14233
14234 PR target/48237
14235 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14236 alternatives that can be handled with movq or movabsq insn.
14237 (*movdf_internal): Disable for !TARGET_64BIT.
14238 (*movdf_internal_nointeger): Ditto.
14239 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14240
b25b9e8f
NF
142412011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14242
14243 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14244 (FUNCTION_ARG_ADVANCE): Likewise.
14245 * tm.texi.in: Change references to them to hook references.
14246 * tm.texi: Regenerate.
c78dd519 14247 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
14248 (default_function_incoming_arg): Likewise.
14249 (default_function_arg_advance): Likewise.
c78dd519 14250 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
14251 (function_arg_advance): Likewise.
14252 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14253
190b2187
RG
142542011-03-24 Richard Guenther <rguenther@suse.de>
14255
14256 PR middle-end/48269
14257 * tree-object-size.c (addr_object_size): Do not double-account
14258 for MEM_REF offsets.
14259
a183b5c7
DN
142602011-03-24 Diego Novillo <dnovillo@google.com>
14261
14262 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 14263 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
14264 (lto_input_data_block): Move from lto-opts.c. Make extern.
14265 Update all users.
14266 (lto_input_string): Rename from input_string. Make extern.
14267 Update all users.
14268 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14269 output_string_with_length.
14270 Output 0 to indicate a non-NULL string. Update all callers to
14271 not emit 0.
14272 (lto_output_string): Rename from output_string. Make extern.
14273 Update all users.
14274 (lto_output_decl_state_streams): Make extern.
14275 (lto_output_decl_state_refs): Make extern.
14276 * lto-streamer.h (lto_input_string): Declare.
14277 (lto_input_data_block): Declare.
14278 (lto_output_string): Declare.
14279 (lto_output_string_with_length): Declare.
14280 (lto_output_decl_state_streams): Declare.
14281 (lto_output_decl_state_refs): Declare.
14282
cfef45c8
RG
142832011-03-24 Richard Guenther <rguenther@suse.de>
14284
14285 PR tree-optimization/46562
14286 * tree.c (build_invariant_address): New function.
14287 * tree.h (build_invariant_address): Declare.
14288 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14289 a renamed function moved ...
14290 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14291 Take valueization callback parameter.
14292 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14293 * gimple-fold.h: New file.
14294 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14295 (ccp_fold, fold_const_aggregate_ref,
14296 fold_ctor_reference, fold_nonarray_ctor_reference,
14297 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14298 get_base_constructor): Move ...
14299 * gimple-fold.c: ... here.
14300 (gimple_fold_stmt_to_constant_1): New function
14301 split out from ccp_fold. Take a valueization callback parameter.
14302 Valueize all operands.
14303 (gimple_fold_stmt_to_constant): New wrapper function.
14304 (fold_const_aggregate_ref_1): New function split out from
14305 fold_const_aggregate_ref. Take a valueization callback parameter.
14306 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14307 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14308 invariant POINTER_PLUS_EXPRs to invariant form.
14309 (vn_valueize): New function.
14310 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14311 * tree-vrp.c (vrp_valueize): New function.
14312 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14313 to fold statements to constants.
14314 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14315 function declarations.
14316 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14317 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14318
5e0a7e40
RS
143192011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14320
14321 * config/h8300/predicates.md (jump_address_operand): Fix register
14322 mode check.
14323
bfe068c3
IR
143242011-03-24 Ira Rosen <ira.rosen@linaro.org>
14325
14326 * doc/invoke.texi (max-stores-to-sink): Document.
14327 * params.h (MAX_STORES_TO_SINK): Define.
14328 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14329 if either vectorization or if-conversion is disabled.
14330 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14331 tree-vect-data-refs.c vect_equal_offsets.
14332 (dr_equal_offsets_p): New function.
14333 (find_data_references_in_bb): Remove static.
14334 * tree-data-ref.h (find_data_references_in_bb): Declare.
14335 (dr_equal_offsets_p): Likewise.
14336 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14337 (vect_drs_dependent_in_basic_block): Update calls to
14338 vect_equal_offsets.
14339 (vect_check_interleaving): Likewise.
14340 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14341 (cond_if_else_store_replacement): Rename to...
14342 (cond_if_else_store_replacement_1): ... this. Change arguments and
14343 documentation.
14344 (cond_if_else_store_replacement): New function.
14345 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14346 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14347
4908b0bf
CLT
143482011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14349
14350 PR target/46934
14351 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14352 to subtract lower bound instead of GEN_INT().
14353
2be478a2
JW
143542011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14355
14356 PR other/48179
14357 PR other/48221
14358 PR other/48234
14359 * doc/extend.texi (Alignment): Move section to match order in TOC.
14360 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14361 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14362
0c617be4
JL
143632011-03-23 Jeff Law <law@redhat.com>
14364
14365 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14366 before removing the edge.
14367
14368 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14369 it may have been freed by redirect_branch_edge or
14370 redirect_edge_succ_nodup.
14371
58da96fe
RG
143722011-03-23 Richard Guenther <rguenther@suse.de>
14373
c78dd519 14374 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
14375 (check_va_list_escapes): Likewise.
14376 (check_all_va_list_escapes): Likewise.
14377
b8beb4d1
RG
143782011-03-23 Richard Guenther <rguenther@suse.de>
14379
14380 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14381 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14382 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14383 (alias.o): Likewise.
14384 (ipa-type-escape.o): Remove.
14385 (ipa-struct-reorg.o): Likewise.
14386 (GTFILES): Remove ipa-struct-reorg.c.
14387 * alias.c: Do not include ipa-type-escape.h.
14388 * tree-ssa-alias.c: Likewise.
14389 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14390 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14391 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14392 and ipa-type-escape passes.
14393 * tree-pass.h (pass_ipa_type_escape): Remove.
14394 (pass_ipa_struct_reorg): Likewise.
14395 * ipa-struct-reorg.h: Remove.
14396 * ipa-struct-reorg.c: Likewise.
14397 * ipa-type-escape.h: Likewise.
14398 * ipa-type-escape.c: Likewise.
14399 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14400 (--param struct-reorg-cold-struct-ratio): Likewise.
14401 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14402 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14403 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14404
f137aa63
AK
144052011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14406
14407 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14408 cpu attribute value.
14409 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14410 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14411 * config/s390/s390.c (processor_flags_table): New constant array.
14412 (s390_handle_arch_option): Remove.
14413 (s390_handle_option): Remove s390_handle_arch_option invocations
14414 and OPT_mwarn_framesize_ handling.
14415 (s390_option_override): Remove s390_handle_arch_option invocation.
14416 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14417 warnings.
14418 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14419 * config/s390/s390.opt (s390_tune, s390_arch)
14420 (march=): Replace s390_arch_option enum and values with
14421 processor_type. Set variable name to s390_arch. Set
14422 initialization value.
14423 (mtune=): Replace s390_arch_option with processor_type. Set
14424 variable name to s390_tune. Set initialization value.
14425
bf90208f
JB
144262011-03-23 Julian Brown <julian@codesourcery.com>
14427
14428 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14429 accesses which are not naturally aligned.
14430
3460fdf3
RS
144312011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14432
14433 PR target/47553
14434 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14435
a5c7d693
RS
144362011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14437
14438 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14439 parameter from "int" to "enum insn_code".
14440 (expand_operand_type): New enum.
14441 (expand_operand): New structure.
14442 (create_expand_operand): New function.
14443 (create_fixed_operand, create_output_operand): Likewise
14444 (create_input_operand, create_convert_operand_to): Likewise.
14445 (create_convert_operand_from, create_address_operand): Likewise.
14446 (create_integer_operand): Likewise.
14447 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14448 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14449 (expand_insn, expand_jump_insn): Likewise.
14450 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14451 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14452 (expand_movstr, expand_builtin___clear_cache): Likewise.
14453 (expand_builtin_lock_release): Likewise.
14454 * explow.c (allocate_dynamic_stack_space): Likewise.
14455 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14456 and use the default handling in that case.
14457 * expmed.c (check_predicate_volatile_ok): Delete.
14458 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14459 (emit_cstore): Likewise.
14460 * expr.c (emit_block_move_via_movmem): Likewise.
14461 (set_storage_via_setmem, expand_assignment): Likewise.
14462 (emit_storent_insn, try_casesi): Likewise.
14463 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14464 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14465 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14466 (expand_twoval_unop, expand_twoval_binop): Likewise.
14467 (expand_unop_direct, emit_indirect_jump): Likewise.
14468 (emit_conditional_move, vector_compare_rtx): Likewise.
14469 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14470 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14471 (expand_sync_lock_test_and_set): Likewise.
14472 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14473 (emit_unop_insn): Likewise.
14474 (expand_copysign_absneg): Change icode to an insn_code.
14475 (create_convert_operand_from_type): New function.
14476 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14477 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14478 (expand_insn, expand_jump_insn): Likewise.
14479 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14480 than const_int_operand for operand 2.
14481
78fadbab
AK
144822011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14483
14484 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14485 if possible.
14486
5f02387d
NF
144872011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14488
14489 * emit-rtl.c (emit_pattern_before_noloc): New function.
14490 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14491 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14492 (emit_pattern_after_noloc): New function.
14493 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14494 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14495
fdf3e18a
NF
144962011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14497
14498 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14499 (__ffsDI2): Likewise.
14500
42d085c1
RH
145012011-03-22 Richard Henderson <rth@redhat.com>
14502
14503 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14504 of !TARGET_ABI_OPEN_VMS.
14505 (alpha_trampoline_init, alpha_start_function): Likewise.
14506 (alpha_expand_epilogue, alpha_file_start): Likewise.
14507 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14508 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14509 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14510 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14511 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14512
cabbe12a
JM
145132011-03-22 Joseph Myers <joseph@codesourcery.com>
14514
14515 * config/s390/s390-opts.h: New.
14516 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14517 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14518 s390_stack_guard): Remove.
14519 (s390_handle_arch_option): Return void. Take enum
14520 s390_arch_option value instead of string and searching array.
14521 (s390_handle_option): Don't assert that global structures are in
14522 use. Access variables via opts pointer. Use error_at. Don't use
14523 sscanf for -mstack-guard= or -mstack-size=. Update call to
14524 s390_handle_arch_option.
14525 (s390_option_override): Update call to s390_handle_arch_option.
14526 (s390_emit_prologue): Use %d format for s390_stack_size in
14527 diagnostic. Use %wd for HOST_WIDE_INT.
14528 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14529 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14530 * config/s390/s390.opt (config/s390/s390-opts.h): New
14531 HeaderInclude entry.
14532 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14533 s390_arch_flags, s390_warn_framesize): New Variable entries.
14534 (s390_arch_option): New Enum and EnumValue entries.
14535 (march=): Use Enum instead of Var.
14536 (mstack-guard=, mstack-size=): Use UInteger and Var.
14537 (mtune=): Use Enum.
14538
05b12036
JM
145392011-03-22 Joseph Myers <joseph@codesourcery.com>
14540
14541 * config/score/score.c (score_handle_option): Don't assert that
14542 global structures are in use. Access target_flags via opts
14543 pointer. Use value of -march= option to determine target_flags
14544 settings.
14545 * config/score/score.opt (march=): Use Enum.
14546 (score_arch): New Enum and EnumValue entries.
14547
dd51e35a
JM
145482011-03-22 Joseph Myers <joseph@codesourcery.com>
14549
14550 * config/mep/mep.c (option_mtiny_specified): Remove.
14551 (mep_option_override): Move register handling for -mivc2 from
14552 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14553 instead of option_mtiny_specified.
14554 (mep_handle_option): Access target_flags via opts pointer. Don't
14555 assert that global structures are in use. Defer part of -mivc2
14556 handling and move it to mep_option_override.
14557 * config/mep/mep.opt (IVC2): New Mask entry.
14558 (mivc2): Use Var and Defer instead of Mask.
14559
4a8d3d91
JM
145602011-03-22 Joseph Myers <joseph@codesourcery.com>
14561
14562 * config/v850/v850-opts.h: New.
14563 * config/v850/v850.c (small_memory): Replace with
14564 small_memory_physical_max array. Make that array static const.
14565 (v850_handle_memory_option): Take integer value of argument. Take
14566 gcc_options pointer, option text and location. Return void.
14567 Update for changes to small memory structures.
14568 (v850_handle_option): Access target_flags via opts pointer. Don't
14569 assert that global structures are in use. Update calls to
14570 v850_handle_memory_option.
c78dd519
UB
14571 (v850_encode_data_area): Update references to small memory settings.
14572 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
14573 (enum small_memory_type): Move to v850-opts.h.
14574 * config/v850/v850.opt (config/v850/v850-opts.h): New
14575 HeaderInclude entry.
14576 (small_memory_max): New Variable entry.
14577 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14578 (mtda, mzda): Likewise.
14579
117fdbfa
JM
145802011-03-22 Joseph Myers <joseph@codesourcery.com>
14581
14582 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14583 pointer. Don't assert that global structures are in use.
14584
d715091c
JM
145852011-03-22 Joseph Myers <joseph@codesourcery.com>
14586
14587 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14588 via opts pointer. Don't assert that global structures are in use.
14589
1bb721dc
JM
145902011-03-22 Joseph Myers <joseph@codesourcery.com>
14591
14592 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14593 (munix=93): Use Var.
14594 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14595 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14596 * config/pa/pa-opts.h: New.
14597 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14598 (pa_handle_option): Don't assert that global structures are in
14599 use. Access target_flags via opts pointer. Don't handle
14600 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14601 OPT_munix_98 here.
14602 (pa_option_override): Handle deferred OPT_mfixed_range_.
14603
cd8d8754
JM
146042011-03-22 Joseph Myers <joseph@codesourcery.com>
14605
14606 * config/mn10300/mn10300-opts.h: New.
14607 * config/mn10300/mn10300.c (mn10300_processor,
14608 mn10300_tune_string): Remove.
14609 (mn10300_handle_option): Don't assert that global structures are
14610 in use. Access mn10300_processor via opts pointer. Don't handle
14611 OPT_mtune_ here.
14612 * config/mn10300/mn10300.h (enum processor_type): Move to
14613 mn10300-opts.h.
14614 (mn10300_processor): Remove.
14615 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14616 HeaderInclude entry.
14617 (mn10300_processor): New Variable entry.
14618 (mtune=): Use Var.
14619
24e6e6b1
JM
146202011-03-22 Joseph Myers <joseph@codesourcery.com>
14621
14622 * config/microblaze/microblaze.c: Don't include opts.h.
14623 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14624 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14625 (mno-clearbss): Use Var and Warn.
14626
8a784afb
JM
146272011-03-22 Joseph Myers <joseph@codesourcery.com>
14628
14629 * config/m32r/m32r-opts.h: New.
14630 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14631 (m32r_handle_option): Don't assert that global structures are in
14632 use. Access target_flags and m32r_cache_flush_func via opts
14633 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14634 OPT_mno_flush_trap here.
14635 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14636 include of m32r-opts.h.
14637 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14638 HeaderInclude entry.
14639 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14640 (mmodel=): Use Enum and Var.
14641 (m32r_model): New Enum and EnumValue entries.
14642 (mno-flush-trap): Use Var.
14643 (msdata=): Use Enum and Var.
14644 (m32r_sdata): New Enum and EnumValue entries.
14645
bbfc9a8c
JM
146462011-03-22 Joseph Myers <joseph@codesourcery.com>
14647
14648 * config/m32c/m32c.c: Don't include opts.h.
14649 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14650 m32c_handle_option): Remove.
14651 (m32c_option_override): Check global_options_set.x_target_memregs
14652 instead of target_memregs_set.
14653 * config/m32c/m32c.h (target_memregs): Remove.
14654 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14655 variable.
14656
e24b8335
JM
146572011-03-22 Joseph Myers <joseph@codesourcery.com>
14658
14659 * config/iq2000/iq2000-opts.h: New.
14660 * config/iq2000/iq2000.c: Don't include opts.h.
14661 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 14662 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
14663 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14664 HeaderInclude entry.
14665 (iq2000_tune): New Variable entry.
14666 (march=): Add comment. Use Enum.
14667 (iq2000_arch): New Enum and EnumValue entries.
14668 (mcpu=): Use Enum and Var.
14669 (iq2000_tune): New Enum and EnumValue entries.
14670
e6cc0c98
JM
146712011-03-22 Joseph Myers <joseph@codesourcery.com>
14672
14673 * config/ia64/ia64-opts.h: New.
14674 * config/ia64/ia64.c (ia64_tune): Remove.
14675 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14676 here. Use error_at.
14677 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14678 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14679 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14680 HeaderInclude entry.
14681 (ia64_tune): New Variable entry.
14682 (mfixed-range=): Use Defer and Var.
14683 (mtune=): Use Enum and Var.
14684 (ia64_tune): New Enum and EnumValue entries.
14685
db25893c
JM
146862011-03-22 Joseph Myers <joseph@codesourcery.com>
14687
14688 * config/frv/frv-opts.h: New.
14689 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14690 frv-opts.h.
14691 (frv_cpu_type): Remove.
14692 * config/frv/frv.c: Don't include opts.h.
14693 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 14694 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
14695 (frv_cpu_type): New Variable entry.
14696 (frv_cpu): New Enum and EnumValue entries.
14697
6c223f5d
JM
146982011-03-22 Joseph Myers <joseph@codesourcery.com>
14699
14700 * config/cris/cris.c (cris_handle_option): Access target_flags via
14701 opts pointer. Don't assert that global structures are in use.
14702 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14703 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14704
bbd399cf
JM
147052011-03-22 Joseph Myers <joseph@codesourcery.com>
14706
14707 * config/bfin/bfin-opts.h: New.
14708 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14709 bfin_si_revision, bfin_workarounds): Remove.
14710 (bfin_cpus): Make static const.
14711 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14712 not bfin_lib_id_given.
14713 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14714 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 14715 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
14716 * config/bfin/bfin.h: Include bfin-opts.h.
14717 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14718 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14719 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14720 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14721 entries.
14722
5e1b4d5a
JM
147232011-03-22 Joseph Myers <joseph@codesourcery.com>
14724
14725 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14726 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14727 or -msoft-float here.
14728 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14729 -msoft-float and -mhard-float.
c78dd519 14730 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
14731 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14732 msoft-float.
14733 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14734 -msoft-float.
14735 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14736 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14737 not mhard-float.
14738 (LIBGCC_SPEC): Don't handle -msoft-float.
14739 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14740 -mhard-float.
14741 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14742 msoft-float.
14743 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14744 -mfloat-abi=*, not -msoft-float and -mhard-float.
14745 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14746 -msoft-float.
14747 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14748 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14749 mhard-float and msoft-float.
14750 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14751 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14752 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14753 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14754 mhard-float.
14755 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14756 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14757 msoft-float.
14758 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14759 not mhard-float.
14760 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14761 not msoft-float.
14762
800d1de1
RH
147632011-03-22 Richard Henderson <rth@redhat.com>
14764
14765 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14766 TARGET_ABI_WINDOWS_NT.
14767 (alpha_output_function_end_prologue): Likewise.
14768 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14769 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14770 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14771 (trap, *movsi_nt_vms): Likewise.
14772 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14773 (*tablejump_osf_nt_internal): Remove.
14774 * config/alpha/predicates.md (input_operand): Only test Pmode.
14775
c59ddd2b
JM
147762011-03-22 Joseph Myers <joseph@codesourcery.com>
14777
14778 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14779 via opts pointer. Use error_at. Don't assert that global
14780 structures are in use.
14781
1333f97f
JM
147822011-03-22 Joseph Myers <joseph@codesourcery.com>
14783
14784 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14785 (ix86_handle_option): Access ix86_isa_flags and
14786 ix86_isa_flags_explicit via opts pointer. Don't assert that
14787 global structures are in use.
14788 (ix86_function_specific_save, ix86_function_specific_restore):
14789 Update ix86_isa_flags_explicit field name.
c78dd519 14790 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
14791 (ix86_isa_flags_explicit): Rename TargetSave entry to
14792 x_ix86_isa_flags_explicit.
14793
75db85d8
RH
147942011-03-22 Richard Henderson <rth@redhat.com>
14795
14796 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14797 (alpha_option_override, direct_return): Likewise.
14798 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14799 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14800 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14801 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14802 (alpha_expand_epilogue, alpha_end_function): Likewise.
14803 (alpha_init_libfuncs): Likewise.
14804 (struct machine_function): Remove unicosmk members.
14805 (print_operand) ['t']: Remove.
14806 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14807 unicosmk_output_module_name, unicosmk_output_common,
14808 current_section_align, unicosmk_output_text_section_asm_op,
14809 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14810 unicosmk_section_type_flags, unicosmk_unique_section,
14811 unicosmk_asm_named_section, unicosmk_insert_attributes,
14812 unicosmk_output_align, unicosmk_defer_case_vector,
14813 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14814 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14815 unicosmk_output_ssib, unicosmk_add_call_info_word,
14816 unicosmk_extern_head, unicosmk_output_default_externs,
14817 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14818 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14819 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14820 * config/alpha/alpha-protos.h: Update.
14821 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14822 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14823 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14824 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14825 (*mulsi_se, mulvsi3): Likewise.
14826 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14827 (*divmodsi_internal, call, call_value, realign): Likewise.
14828 (moddi3, umoddi3): Likewise; remove duplicate expander.
14829 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14830 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14831 (*movdi_nofix): Remove r/U alternative.
14832 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14833 * config/alpha/constraints.md ("U"): Remove.
14834 * config/alpha/predicates.md (call_operand"): Don't test
14835 TARGET_ABI_UNICOSMK.
14836
96e45421
JM
148372011-03-22 Joseph Myers <joseph@codesourcery.com>
14838
14839 * target.def (handle_option): Take gcc_options and
14840 cl_decoded_option pointers and location_t.
14841 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14842 * doc/tm.texi: Regenerate.
14843 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14844 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14845 * lto-opts.c (lto_reissue_options): Generate option structure for
14846 targetm.handle_option call.
14847 * opts.c (target_handle_option): Update call to
14848 targetm.handle_option. Remove assertions about values now passed
14849 down to hook.
14850 * targhooks.c (default_target_handle_option): New.
14851 * targhooks.h (default_target_handle_option): Declare.
14852 * config/alpha/alpha.c: Include opts.h.
14853 (alpha_handle_option): Update to new hook interface.
14854 * config/arm/arm.c: Include opts.h.
14855 (arm_handle_option): Update to new hook interface.
14856 * config/arm/t-arm (arm.o): Update dependencies.
14857 * config/bfin/bfin.c: Include opts.h.
14858 (bfin_handle_option): Update to new hook interface.
14859 * config/cris/cris.c: Include opts.h.
14860 (cris_handle_option): Update to new hook interface.
14861 * config/frv/frv.c: Include opts.h.
14862 (frv_handle_option): Update to new hook interface.
14863 * config/i386/i386.c: Include opts.h.
14864 (ix86_handle_option): Update to new hook interface.
14865 (ix86_valid_target_attribute_inner_p): Generate option structure
14866 for call to ix86_handle_option.
14867 * config/i386/t-i386 (i386.o): Update dependencies.
14868 * config/ia64/ia64.c: Include opts.h.
14869 (ia64_handle_option): Update to new hook interface.
14870 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14871 * config/iq2000/iq2000.c: Include opts.h.
14872 (iq2000_handle_option): Update to new hook interface.
14873 * config/m32c/m32c.c: Include opts.h.
14874 (m32c_handle_option): Update to new hook interface.
14875 * config/m32r/m32r.c: Include opts.h.
14876 (m32r_handle_option): Update to new hook interface.
14877 * config/m68k/m68k.c: Include opts.h.
14878 (m68k_handle_option): Update to new hook interface.
14879 * config/mep/mep.c: Include opts.h.
14880 (mep_handle_option): Update to new hook interface.
14881 * config/microblaze/microblaze.c: Include opts.h.
14882 (microblaze_handle_option): Update to new hook interface.
14883 * config/mips/mips.c: Include opts.h.
14884 (mips_handle_option): Update to new hook interface.
14885 * config/mn10300/mn10300.c: Include opts.h.
14886 (mn10300_handle_option): Update to new hook interface.
14887 * config/pa/pa.c: Include opts.h.
14888 (pa_handle_option): Update to new hook interface.
14889 * config/pdp11/pdp11.c: Include opts.h.
14890 (pdp11_handle_option): Update to new hook interface.
14891 * config/rs6000/rs6000.c: Include opts.h.
14892 (rs6000_handle_option): Update to new hook interface.
14893 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14894 * config/rx/rx.c: Include opts.h.
14895 (rx_handle_option): Update to new hook interface.
14896 * config/s390/s390.c: Include opts.h.
14897 (s390_handle_option): Update to new hook interface.
14898 * config/score/score.c: Include opts.h.
14899 (score_handle_option): Update to new hook interface.
14900 * config/sh/sh.c: Include opts.h.
14901 (sh_handle_option): Update to new hook interface.
14902 * config/sparc/sparc.c: Include opts.h.
14903 (sparc_handle_option): Update to new hook interface.
14904 * config/v850/v850.c: Include opts.h.
14905 (v850_handle_option): Update to new hook interface.
14906
66017846
JM
149072011-03-22 Joseph Myers <joseph@codesourcery.com>
14908
14909 * gcc.c (driver_unknown_option_callback): Only permit and save
14910 unknown -Wno- options.
14911 (driver_wrong_lang_callback): Save options directly instead of via
14912 driver_unknown_option_callback.
14913
e8b97ccd
EB
149142011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14915
14916 * combine.c (simplify_set): Try harder to find the best CC mode when
14917 simplifying a nested COMPARE on the RHS.
14918
ebb9f8b0
JM
149192011-03-22 Joseph Myers <joseph@codesourcery.com>
14920
14921 * config/alpha/gnu.h: Remove.
14922 * config/arc: Remove directory.
14923 * config/arm/netbsd.h: Remove.
14924 * config/arm/t-pe: Remove.
14925 * config/crx: Remove directory.
14926 * config/i386/netbsd.h: Remove.
14927 * config/m68hc11: Remove directory.
14928 * config/m68k/uclinux-oldabi.h: Remove.
14929 * config/mcore/mcore-pe.h: Remove.
14930 * config/mcore/t-mcore-pe: Remove.
14931 * config/netbsd-aout.h: Remove.
14932 * config/rs6000/gnu.h: Remove.
14933 * config/sh/sh-symbian.h: Remove.
14934 * config/sh/symbian-base.c: Remove.
14935 * config/sh/symbian-c.c: Remove.
14936 * config/sh/symbian-cxx.c: Remove.
14937 * config/sh/symbian-post.h: Remove.
14938 * config/sh/symbian-pre.h: Remove.
14939 * config/sh/t-symbian: Remove.
14940 * config/svr3.h: Remove.
14941 * config/vax/netbsd.h: Remove.
14942 * config.build: Don't handle i[34567]86-*-pe.
14943 * config.gcc: Remove handling of deprecations for most deprecated
14944 targets.
14945 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14946 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14947 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14948 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14949 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14950 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14951 Remove cases.
14952 * config.host: Don't handle i[34567]86-*-pe.
14953 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14954 (ASM_SPEC32): Don't handle -mcall-gnu.
14955 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14956 -mcall-gnu.
14957 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14958 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14959 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14960 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14961 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14962 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14963 conditional on SYMBIAN.
14964 * configure.ac: Don't handle powerpc*-*-gnu*.
14965 * configure: Regenerate.
14966 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14967 * doc/install-old.texi (m6811, m6812): Don't mention.
14968 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14969 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14970 (m68k-uclinuxoldabi): Don't mention.
14971 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14972 Remove.
14973 (-mcall-gnu): Remove.
14974 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14975 families): Remove constraint documentation.
14976
999a7d80
MS
149772011-03-22 Marius Strobl <marius@FreeBSD.org>
14978
14979 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14980 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14981 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14982
45540bcf
MM
149832011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14984
14985 PR target/48226
14986 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14987 vector when peeking at the next token for vector, don't expand the
14988 keywords.
14989
980a0ff4
GJL
149902011-03-21 Georg-Johann Lay <avr@gjlay.de>
14991
14992 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14993 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14994 * config/avr/avr.c (init_cumulative_args)
14995 (avr_function_arg_advance): Use it.
14996 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14997 sibcall epilogues.
14998 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14999 (avr_function_ok_for_sibcall): ...this new function.
15000 (avr_lookup_function_attribute1): New static Function.
15001 (avr_naked_function_p, interrupt_function_p)
15002 (signal_function_p, avr_OS_task_function_p)
15003 (avr_OS_main_function_p): Use it.
15004 * config/avr/avr.md ("sibcall", "sibcall_value")
15005 ("sibcall_epilogue"): New expander.
15006 ("*call_insn", "*call_value_insn"): New insn.
15007 ("call_insn", "call_value_insn"): Remove
15008 ("call", "call_value", "epilogue"): Change expander to handle
15009 sibling calls.
15010
49168734
NC
150112011-03-21 Nick Clifton <nickc@redhat.com>
15012
15013 * doc/invoke.texi (Overall Options): Move closing brace to end of
15014 options list.
15015 (Optimization Options): Add missing @gol.
15016 (Directory Options): Likewise.
15017 (i386 and x86-64 Options): Likewise.
15018 (RS6000 and PowerPC Options): Likewise.
15019 (i386 and x86-64 Windows Options): Likewise.
15020 (V850 Options): Add text missing from descriptions.
15021
bdfe906f
RH
150222011-03-22 Richard Henderson <rth@redhat.com>
15023
15024 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15025 (avr_incoming_return_addr_rtx): New.
15026 (emit_push_byte): New.
15027 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15028 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15029 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15030 (emit_pop_byte): New.
15031 (expand_epilogue): Use it. Pop frame pointer by bytes.
15032 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15033 (INCOMING_RETURN_ADDR_RTX): New.
15034 (INCOMING_FRAME_SP_OFFSET): New.
15035 (ARG_POINTER_CFA_OFFSET): New.
15036 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15037 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15038 (pophi): Remove.
15039
d090a5aa
RH
15040 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15041
fdf3e18a
NF
150422011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15043
15044 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15045 (FUNCTION_ARG_ADVANCE): Likewise.
15046 * tm.texi.in: Change references to them to hook references.
15047 * tm.texi: Regenerate.
15048 * targhooks.c (default_function_arg): Eliminate check for target
15049 macro.
15050 (default_function_incoming_arg): Likewise.
15051 (default_function_arg_advance): Likewise.
c78dd519 15052 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
15053 (function_arg_advance): Likewise.
15054 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15055
009d3fcf
NF
150562011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15057
15058 * tree.c (build_call_1): New function.
15059 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15060
7bec30e1
RG
150612011-03-22 Richard Guenther <rguenther@suse.de>
15062
15063 PR tree-optimization/48228
15064 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15065 for single-arg PHIs.
15066
0b7e851b
AB
150672011-03-22 Andrey Belevantsev <abel@ispras.ru>
15068
15069 PR rtl-optimization/48143
15070 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15071 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15072 sse2_cvtps2pd): Likewise.
15073
d89afca5
AK
150742011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15075
15076 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15077
f471fe72
RG
150782011-03-22 Richard Guenther <rguenther@suse.de>
15079
15080 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15081 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15082 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15083 and REALIGN_LOAD_EXPR.
15084 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15085 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15086 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15087 DOT_PROD_EXPR case ...
15088 (expand_expr_real_2): ... here.
15089 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15090 and REALIGN_LOAD_EXPR.
15091 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15092 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15093 (vect_create_epilog_for_reduction): Likewise.
15094 (vectorizable_reduction): Likewise.
15095 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15096 * tree-vect-stmts.c (vectorizable_load): Likewise.
15097
f2f81d57
EB
150982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15099
15100 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15101
ab081dd6
AK
151022011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15103
15104 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15105 handling for PLTOFF/GOTOFF.
15106
6fd5332b
NC
151072011-03-22 Nick Clifton <nickc@redhat.com>
15108
15109 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15110 trailing backslash from the end of the macro definition.
15111
01841ac0
AK
151122011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15113
15114 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15115 and PLT unspecs.
15116
2ef6ce06
RS
151172011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15118
15119 * expr.h (prepare_operand): Move to...
15120 * optabs.h (prepare_operand): ...here and change the insn code
15121 parameter from "int" to "enum insn_code".
15122 (insn_operand_matches): Declare.
15123 * expr.c (init_expr_target): Use insn_operand_matches.
15124 (compress_float_constant): Likewise.
15125 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15126 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15127 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
15128 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15129 Likewise.
2ef6ce06
RS
15130 (gen_cond_trap): Likewise.
15131 (prepare_operand): Likewise. Change icode to an insn_code.
15132 (insn_operand_matches): New function.
15133 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15134 * reload1.c (gen_reload): Likewise.
15135 * targhooks.c (default_secondary_reload): Likewise.
15136
9e43ad68
UB
151372011-03-21 Uros Bizjak <ubizjak@gmail.com>
15138
9a96da32
UB
15139 * config/alpha/alpha.md (unspec): New define_c_enum.
15140 (unspecv): Ditto.
15141
151422011-03-21 Uros Bizjak <ubizjak@gmail.com>
15143
15144 PR debug/48214
9e43ad68
UB
15145 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15146 between a call and its CALL_ARG_LOCATION note.
15147
31408f60
EB
151482011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15149
15150 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15151
151522011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
15153
15154 PR c/42544
15155 PR c/48197
15156 * c-common.c (shorten_compare): If primopN is first sign-extended
15157 to opN and then zero-extended to result type, set primopN to opN.
15158
9dfd55f5
DJ
151592011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15160
15161 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15162 for barrier handlers.
15163
f3c33d9d
MM
151642011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15165
15166 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15167 UNSPEC constants to be in the unspec enumeration, and redefine
15168 all UNSPECV constants to be in the unspecv enumeration, so that
15169 dumps print which unspec/unspec_volatile this is.
15170 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15171 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15172 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15173 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15174 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15175
15176 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15177 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15178 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15179 * config/rs6000/sync.md (isync, lwsync): Ditto.
15180
ac43f774
RG
151812011-03-21 Richard Guenther <rguenther@suse.de>
15182
15183 * params.def (lto-min-partition): Fix typo.
15184
411cdbd8
RG
151852011-03-21 Richard Guenther <rguenther@suse.de>
15186
15187 PR c/47939
15188 * c-decl.c (grokdeclarator): Drop to the main variant only
15189 for array types. Drop flag_gen_aux_info check.
15190
1cd9e416
RG
151912011-03-21 Richard Guenther <rguenther@suse.de>
15192
15193 PR translation/47911
15194 * params.def (lto-partitions): Fix typo.
15195 (lto-min-partition): Fix wording.
15196
ada5ad67
AT
151972011-03-21 Andreas Tobler <andreast@fgznet.ch>
15198
15199 * config/rs6000/t-freebsd: Remove duplication from file.
15200
f9613c9a
RG
152012011-03-21 Richard Guenther <rguenther@suse.de>
15202
15203 PR middle-end/47661
15204 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15205
9bfbc1eb
RG
152062011-03-21 Richard Guenther <rguenther@suse.de>
15207
15208 PR lto/48210
15209 * params.def (lto-partitions): Require at least 1 partition.
15210
a2268084
RO
152112011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15212
15213 * gthr-solaris.h: Remove.
15214 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15215 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15216 (LIB_SPEC): Likewise.
15217 * config/sol2.opt (threads): Remove.
9e43ad68 15218 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
15219 (sparc*-*-solaris2*): Likewise.
15220 * configure.ac (enable_threads): Enable solaris support.
15221 * configure: Regenerate.
9e43ad68 15222 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
15223 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15224 solaris.
15225
c43d9a1b
RO
152262011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15227
15228 * config.gcc: Obsolete *-*-solaris2.8*.
15229 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15230
084239f4
RO
152312011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15232
15233 PR bootstrap/48135
15234 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15235 reference. Solaris 8 perl works.
15236
64cadbe7
RO
152372011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15238
15239 PR bootstrap/48135
15240 * doc/install.texi (Prerequisites): Move jar etc. up.
15241 Explain support library version requirements.
15242
eb975109
RO
152432011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15244
15245 PR bootstrap/48135
15246 * doc/install.texi (Prerequisites): Move Perl to build
15247 requirements. Always necessary on Solaris 2 with Sun ld.
15248
8a509ffd
RO
152492011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15250
15251 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15252 binutils 2.21.
15253 (Specific, i?86-*-solaris2.[89]): Likewise.
15254 (Specific, i?86-*-solaris2.10): Likewise.
15255 (Specific, mips-sgi-irix6): Likewise.
15256 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15257 Update for binutils 2.21.
15258
8fbc58a1
RO
152592011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15260
15261 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15262 Allow -fuse-linker-plugin for non-default plugin linker.
15263 * configure: Regenerate.
15264
7e84ad0b
NP
152652011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15266
15267 PR bootstrap/48167
15268 * gengtype.c (files_rules): Added rule for cp/parser.h.
15269
2f36e14b
JJ
152702011-03-21 Jakub Jelinek <jakub@redhat.com>
15271
15272 PR target/48213
15273 * config/s390/s390.c (s390_delegitimize_address): Don't call
15274 lowpart_subreg if orig_x has BLKmode.
15275
62d784f7
KT
152762011-03-21 Kai Tietz <ktietz@redhat.com>
15277
15278 PR target/12171
9e43ad68
UB
15279 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15280 * tree.h (attribute_spec): Add new member affects_type_identity.
15281 * attribs.c (empty_attribute_table): Adjust attribute_spec
15282 initializers.
62d784f7
KT
15283 * config/alpha/alpha.c: Likewise.
15284 * config/arc/arc.c: Likewise.
15285 * config/arm/arm.c: Likewise.
15286 * config/avr/avr.c: Likewise.
15287 * config/bfin/bfin.c: Likewise.
15288 * config/crx/crx.c: Likewise.
15289 * config/darwin.h: Likewise.
15290 * config/h8300/h8300.c: Likewise.
15291 * config/i386/cygming.h: Likewise.
15292 * config/i386/i386.c: Likewise.
15293 * config/ia64/ia64.c: Likewise.
15294 * config/m32c/m32c.c: Likewise.
15295 * config/m32r/m32r.c: Likewise.
15296 * config/m68hc11/m68hc11.c: Likewise.
15297 * config/m68k/m68k.c: Likewise.
15298 * config/mcore/mcore.c: Likewise.
15299 * config/mep/mep.c: Likewise.
15300 * config/microblaze/microblaze.c: Likewise.
15301 * config/mips/mips.c: Likewise.
15302 * config/rs6000/rs6000.c: Likewise.
15303 * config/rx/rx.c: Likewise.
15304 * config/sh/sh.c: Likewise.
15305 * config/sol2.h: Likewise.
15306 * config/sparc/sparc.c: Likewise.
15307 * config/spu/spu.c: Likewise.
15308 * config/stormy16/stormy16.c: Likewise.
15309 * config/v850/v850.c: Likewise.
15310
54833ec0
CLT
153112011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15312
15313 * simplify-rtx.c (simplify_binary_operation_1): Handle
15314 (xor (and A B) C) case when B and C are both constants.
15315
14a41392
MX
153162011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15317
15318 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15319
806c3492
EB
153202011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15321
15322 PR bootstrap/48168
15323 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15324
65e0a0f3
JJ
153252011-03-20 Jakub Jelinek <jakub@redhat.com>
15326
15327 PR rtl-optimization/48156
15328 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15329 assume df and df_lr are not NULL.
15330
b6a75dda
RR
153312011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15332
15333 PR debug/48023
15334 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15335 between a call and its CALL_ARG_LOCATION note.
15336
5969b52d
KK
153372011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15338
15339 PR debug/48178
15340 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15341 between a call and its corresponding CALL_ARG_LOCATION note.
15342
f773c2bd
AS
153432011-03-19 Anatoly Sokolov <aesok@post.ru>
15344
15345 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15346 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15347 * haifa-sched.c (setup_ref_regs): Ditto.
15348 * caller-save.c (add_used_regs_1): Ditto.
15349 * dse.c (look_for_hardregs): Ditto.
15350 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15351 * sched-rgn.c (check_live_1): Ditto.
15352
8bf872f9
JM
153532011-03-18 Joseph Myers <joseph@codesourcery.com>
15354
15355 * c-decl.c (diagnose_mismatched_decls): Give an error for
15356 redefining a typedef with variably modified type.
15357
ff8e2159
JM
153582011-03-18 Joseph Myers <joseph@codesourcery.com>
15359
15360 * c-decl.c (grokfield): Don't allow typedefs for structures or
15361 unions with no tag by default.
15362 * doc/extend.texi (Unnamed Fields): Update.
15363
16cc4440
UB
153642011-03-18 Uros Bizjak <ubizjak@gmail.com>
15365
15366 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15367 Rewrite using indirect functions.
15368 (lwp_slwpcb): Ditto.
15369 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15370 (avx_vinsertf128<mode>): Ditto.
15371
e101e12e
AK
153722011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15373
15374 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15375 unspecs.
15376
4627c7fb
AK
153772011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15378
15379 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 15380 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 15381
2d36b47f
MK
153822011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15383
15384 PR rtl-optimization/48170
15385 * gcse.c (hoist_code): Remove bogus asserts.
15386
2a3d7659
JL
153872011-03-18 Georg-Johann Lay <avr@gjlay.de>
15388
15389 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15390 computation for prologue/epilogue.
15391
34c3ef05
RO
153922011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15393
15394 * Makefile.in (check-consistency): Remove.
15395
81f2b976
JJ
153962011-03-18 Jakub Jelinek <jakub@redhat.com>
15397
15398 PR debug/48176
15399 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15400 arange_table_in_use is 0, but either text_section_used or
15401 cold_text_section_used is true. Don't call it if
15402 !info_section_emitted.
15403
68fd7765
AS
154042011-03-18 Anatoly Sokolov <aesok@post.ru>
15405
15406 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15407 FUNCTION_VALUE_REGNO_P): Remove.
15408 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15409 Remove.
15410 * config/avr/avr.c (avr_ret_register): Make static inline.
15411 (avr_function_value_regno_p): New function.
15412 (avr_libcall_value): Make static. Add 'func' argument.
15413 (avr_function_value): Make static. Rename 'func' argument to
15414 'fn_decl_or_type', forward it to avr_libcall_value. Call
15415 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 15416 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 15417
b4ef8aac
JM
154182011-03-18 Jason Merrill <jason@redhat.com>
15419
15420 PR c++/23372
15421 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15422
09a52fc3
RG
154232011-03-18 Richard Guenther <rguenther@suse.de>
15424
15425 * doc/install.texi (--enable-gold): Remove.
15426 (--with-plugin-ld): Document.
15427 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15428
2a3d7659 154292011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
15430
15431 PR middle-end/47790
15432 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15433 again after expansion changes.
15434
2abbb0fe
CLT
154352011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15436
15437 * combine.c (try_combine): Do simplification only call of
15438 subst() on i2 even when i1 is present. Update comments.
15439
2efd0aa6
KK
154402011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15441
15442 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15443 and UNSPEC_PCREL_SYMOFF.
15444
30a49b23
AK
154452011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15446
15447 * config/s390/s390.md: Use define_c_enum for the unspec constant
15448 definitions.
15449
419e1853
JJ
154502011-03-18 Richard Henderson <rth@redhat.com>
15451 Jakub Jelinek <jakub@redhat.com>
15452
15453 PR bootstrap/48161
15454 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15455 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15456
37875856
L
154572011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15458
15459 PR middle-end/47725
15460 * combine.c (cant_combine_insn_p): Don't check zero/sign
15461 extended hard registers.
15462
76069764
L
154632011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15464
15465 PR middle-end/47725
15466 * combine.c (cant_combine_insn_p): Check zero/sign extended
15467 hard registers.
15468
24da2019
AS
154692011-03-17 Anatoly Sokolov <aesok@post.ru>
15470
15471 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15472 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15473 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15474 Change return type to bool.
15475 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15476
a82ff31f
JJ
154772011-03-17 Jakub Jelinek <jakub@redhat.com>
15478
8b29c87a
JJ
15479 PR debug/48163
15480 * var-tracking.c (prepare_call_arguments): If CALL target
15481 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15482 pc instead of looking it up using cselib_lookup and use
15483 Pmode for it if x has VOIDmode.
15484 * dwarf2out.c (gen_subprogram_die): If also both first and
15485 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15486
a82ff31f
JJ
15487 PR debug/48163
15488 * function.c (assign_parms): For data.passed_pointer parms
15489 use MEM of data.entry_parm instead of data.entry_parm itself
15490 as DECL_INCOMING_RTL.
15491 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15492 also when passed and declared mode is the same, DECL_RTL
15493 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15494 a MEM too.
15495
82ce305c
JL
154962011-03-16 Jeff Law <law@redhat.com>
15497
15498 PR rtl-optimization/37273
15499 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15500 handle them like argument loads from stack slots. Do not double
15501 count memory for memory constants and argument loads from stack slots.
15502
fe58e02b
L
155032011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15504
15505 PR debug/48160
15506 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15507
6fc4dbc7
L
155082011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15509
15510 PR target/48171
15511 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15512
db3ed0b3
JJ
155132011-03-17 Jakub Jelinek <jakub@redhat.com>
15514
8054a389
JJ
15515 PR bootstrap/48153
15516 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15517 if dwarf_strict.
15518 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15519 Clear call_arg_locations and call_arg_loc_last always.
15520
db3ed0b3
JJ
15521 PR middle-end/48152
15522 * var-tracking.c (prepare_call_arguments): If argument needs to be
15523 passed by reference, adjust argtype and mode.
15524
1bce4ff3
RG
155252011-03-17 Richard Guenther <rguenther@suse.de>
15526
15527 PR middle-end/48134
15528 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15529 a value make sure to fold the statement.
15530
7c71147d
CLT
155312011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15532
15533 PR target/43872
15534 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15535 return condition with !cfun->calls_alloca.
15536
0e1ee172
RG
155372011-03-17 Richard Guenther <rguenther@suse.de>
15538
15539 PR bootstrap/48148
15540 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15541 origin for decls in other ltrans units.
15542 (input_varpool_node): Likewise.
15543
f8bce518
RG
155442011-03-17 Richard Guenther <rguenther@suse.de>
15545
15546 PR middle-end/48165
15547 * tree-object-size.c (compute_object_offset): Properly return
15548 the offset operand of MEM_REFs as sizetype.
15549
1b6fa860
JJ
155502011-03-17 Jakub Jelinek <jakub@redhat.com>
15551
dabd47e7
JJ
15552 PR rtl-optimization/48141
15553 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15554 * dse.c: Include params.h.
15555 (active_local_stores_len): New variable.
15556 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15557 to NULL.
15558 (record_store, check_mem_read_rtx): Decrease it when removing
15559 from the chain.
15560 (scan_insn): Likewise. Increase it when adding to chain, if it
15561 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15562 set active_local_stores to NULL before the addition.
15563 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15564
1b6fa860
JJ
15565 PR rtl-optimization/48141
15566 * dse.c (record_store): If no positions are needed in an insn
15567 that cannot be deleted, at least unchain it from active_local_stores.
15568
7b5cb7d6
DS
155692011-03-16 Dodji Seketeli <dodji@redhat.com>
15570
15571 PR debug/47510
15572 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15573 (lookup_type_die_strip_naming_typedef): ... here.
15574 (get_context_die): Use it.
15575 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15576 the anonymous struct named by the naming typedef.
15577
585e9d9d
L
155782011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15579
15580 PR target/48154
15581 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15582 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15583
6261ab0e
JL
155842011-03-16 Jeff Law <law@redhat.com>
15585
15586 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 15587 check for operands of conditional. Allow type to be a pointer.
6261ab0e 15588
0b0081ec
RG
155892011-03-16 Richard Guenther <rguenther@suse.de>
15590
15591 PR tree-optimization/48149
15592 * fold-const.c (fold_binary_loc): Fold
15593 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15594
64a3d647
RG
155952011-03-16 Richard Guenther <rguenther@suse.de>
15596
15597 PR tree-optimization/26134
15598 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15599 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15600 (non_rewritable_mem_ref_base): Handle complex type component
15601 accesses, constrain offsets for vector and complex extracts
15602 more properly.
15603
ef13324e
RG
156042011-03-16 Richard Guenther <rguenther@suse.de>
15605
15606 PR tree-optimization/48146
15607 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15608 operands avoiding the need for renaming.
15609
f0eddb90
RG
156102011-03-16 Richard Guenther <rguenther@suse.de>
15611
15612 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15613 constant folding. Move MEM_REF canonicalization first.
15614 Rely on fold_const_aggregate_ref for initializer folding.
15615 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15616
e42348b8
JJ
156172011-03-16 Jakub Jelinek <jakub@redhat.com>
15618
29f10e71
JJ
15619 PR middle-end/48136
15620 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15621 arg0/arg1 or their arguments are always fold converted to matching
15622 types.
15623
e42348b8
JJ
15624 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15625 to nargs.
15626
55b46574
RO
156272011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15628
15629 PR lto/46944
15630 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15631 Handle in-tree gold.
15632 (ld_vers): Extract binutils version for gold.
15633 (gcc_cv_ld_hidden): Handle gold here.
15634 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15635 * configure: Regenerate.
15636 * config.in: Regenerate.
15637 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15638 -fuse-linker-plugin otherwise.
15639 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15640 (LINK_COMMAND_SPEC): Use it.
15641 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15642
2b1c5433
JJ
156432011-03-16 Jakub Jelinek <jakub@redhat.com>
15644
c2969d8e
JJ
15645 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15646 * calls.c: Remove debug.h include.
15647 (emit_call_1): Don't call virtual_call_token debug hook.
15648 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15649 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15650 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15651 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15652 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15653 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15654 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15655 dwarf2out_virtual_call): Remove.
15656 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15657 copy_call_info and virtual_call hooks.
15658 (dwarf2out_init): Don't initialize vcall_insn_table,
15659 debug_dcall_section and debug_vcall_section.
15660 (prune_unused_types): Don't mark nodes from dcall_table.
15661 (dwarf2out_finish): Don't output dcall or vcall tables.
15662 * final.c (final_scan_insn): Don't call direct_call or
15663 virtual_call debug hooks.
15664 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15665 virtual_call_token, copy_call_info and virtual_call hooks.
15666 (debug_nothing_uid): Remove prototype.
15667 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15668 copy_call_info and virtual_call hooks.
15669 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15670 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15671 * debug.c (do_nothing_debug_hooks): Likewise.
15672 (debug_nothing_uid): Remove.
15673 * doc/invoke.texi (-fenable-icf-debug): Remove.
15674 * common.opt (-fenable-icf-debug): Likewise.
15675
325f5379
JJ
15676 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15677 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15678 call's MEM. Handle functions returning aggregate through a hidden
15679 first pointer. For virtual calls add clobbered pc to call arguments
15680 chain.
15681 * dwarf2out.c (gen_subprogram_die): Emit
15682 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15683 can't be emitted.
15684
a58a8e4b
JJ
15685 PR debug/45882
15686 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15687 * rtl.h (ENTRY_VALUE_EXP): Define.
15688 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15689 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15690 * print-rtl.c (print_rtx): Likewise.
15691 * gengtype.c (adjust_field_rtx_def): Likewise.
15692 * var-tracking.c (vt_add_function_parameter): Adjust
15693 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15694 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15695 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15696 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15697 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15698
2b1c5433
JJ
15699 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15700 Call var_location debug hook even on CALL_INSNs.
15701 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15702 * rtl.def (ENTRY_VALUE): New.
15703 * dwarf2out.c: Include cfglayout.h.
15704 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15705 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15706 (struct call_arg_loc_node): New type.
15707 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15708 tail_call_site_count): New variables.
15709 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15710 DW_TAG_GNU_call_site_parameter.
15711 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15712 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15713 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15714 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15715 and DW_AT_GNU_all_source_call_sites.
15716 (mem_loc_descriptor): Handle ENTRY_VALUE.
15717 (add_src_coords_attributes): Don't add enything if
15718 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15719 (dwarf2out_abstract_function): Save and clear call_arg_location,
15720 call_site_count and tail_call_site_count around dwarf2out_decl call.
15721 (gen_call_site_die): New function.
15722 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15723 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15724 (dwarf2out_function_decl): Clear call_arg_locations,
15725 call_arg_loc_last, set call_site_count and tail_call_site_count
15726 to -1 and free block_map.
15727 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15728 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15729 followed by any real instructions.
15730 (dwarf2out_begin_function): Set call_site_count and
15731 tail_call_site_count to 0.
15732 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15733 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15734 attempt to force a DIE for it and worst case remove the attribute.
15735 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15736 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15737 the decl itself.
15738 * var-tracking.c: Include tm_p.h.
15739 (vt_stack_adjustments): For calls call note_register_arguments.
15740 (argument_reg_set): New variable.
15741 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15742 ensure the VALUE is resolved.
15743 (call_arguments): New variable.
15744 (prepare_call_arguments): New function.
15745 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15746 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15747 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15748 always use the best expression.
15749 (vt_expand_loc): Add ignore_cur_loc argument.
15750 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15751 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15752 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15753 note for all calls.
15754 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15755 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15756 argument. Don't call cselib_preserve_only_values and
15757 cselib_reset_table.
15758 (note_register_arguments): New function.
15759 (vt_initialize): Compute argument_reg_set. Call
15760 vt_add_function_parameters before processing basic blocks instead of
15761 afterwards. For calls call prepare_call_arguments before calling
15762 cselib_process_insn.
15763 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15764 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15765 (var-tracking.o): Depend on $(TM_P_H).
15766 * cfglayout.h (insn_scope): New prototype.
15767 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15768 * cfglayout.c (insn_scope): No longer static.
15769 * insn-notes.def (CALL_ARG_LOCATION): New.
15770 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15771 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15772 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15773 nothing for DECL_EXTERNAL BLOCK_VARS.
15774
9ef13bd0
AM
157752011-03-16 Alan Modra <amodra@gmail.com>
15776
15777 PR target/45844
15778 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15779 create invalid offset address for vsx splat insn.
15780 * config/rs6000/predicates.md (splat_input_operand): New.
15781 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15782
56b67510
XDL
157832011-03-15 Xinliang David Li <davidxl@google.com>
15784
15785 PR c/47837
15786 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15787 (normalize_preds): New function.
15788 (is_use_properly_guarded): Normalize def predicates.
15789
80fffdef
RR
157902011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15791
732f37c6 15792 PR target/46788
80fffdef
RR
15793 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15794 in the output template.
15795
930672ad
RG
157962011-03-15 Richard Guenther <rguenther@suse.de>
15797
15798 PR middle-end/47650
15799 * tree-pretty-print.c (dump_function_declaration): Properly
15800 dump unprototyped and varargs function types.
15801
c7ee7b45
RG
158022011-03-15 Richard Guenther <rguenther@suse.de>
15803
15804 PR tree-optimization/13954
15805 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15806 and friends.
15807
b2ad5e37
RG
158082011-03-15 Richard Guenther <rguenther@suse.de>
15809
15810 PR tree-optimization/48037
15811 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15812 selects into BIT_FIELD_REFs.
15813 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15814 vector select.
15815
7ee93d4e
JJ
158162011-03-15 Jakub Jelinek <jakub@redhat.com>
15817
15818 PR tree-optimization/48129
15819 * builtins.c (fold_builtin_snprintf): Convert to type of
15820 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15821 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15822
e106efc7
RG
158232011-03-15 Richard Guenther <rguenther@suse.de>
15824
15825 PR tree-optimization/41490
15826 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15827 value but with VUSE.
15828 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15829 return statements.
15830 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15831 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15832 * tree-tailcall.c (find_tail_calls): Ignore returns.
15833
17dea42f
RG
158342011-03-15 Richard Guenther <rguenther@suse.de>
15835
15836 PR middle-end/48031
15837 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15838 or variable-indexed array accesses when in gimple form.
15839
01c77a60
RG
158402011-03-15 Richard Guenther <rguenther@suse.de>
15841
16cc4440 15842 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 15843
77b0791e
AM
158442011-03-15 Alan Modra <amodra@gmail.com>
15845
15846 PR target/48032
15847 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15848 presume symbol_refs without a symbol_ref_decl are suitably
15849 aligned, nor other trees we may see here. Handle anchor symbols.
15850 (legitimate_constant_pool_address_p): Comment. Add mode param.
15851 Check cmodel=medium addresses. Adjust all calls.
15852 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15853 creating cmodel=medium optimized access to locals.
15854 * config/rs6000/constraints.md (R): Pass QImode to
15855 legitimate_constant_pool_address_p.
15856 * config/rs6000/predicates.md (input_operand): Pass mode to
15857 legitimate_constant_pool_address_p.
15858 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15859 Update prototype.
15860
35f61ba4
MM
158612011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15862
15863 PR target/48053
15864 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15865 64-bit constants being loaded into registers other than GPRs such
15866 as loading 0 into a VSX register.
15867
07332e6d
RO
158682011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15869
16cc4440 15870 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 15871
de888d90
JJ
158722011-03-14 Jakub Jelinek <jakub@redhat.com>
15873
ba3ceb2d
JJ
15874 PR middle-end/47917
15875 * builtins.c (fold_builtin_snprintf): New function.
15876 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15877 (fold_builtin_4): Likewise.
15878
2e64f8b8
JJ
15879 PR middle-end/38878
15880 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15881 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15882 and C - X == X also strip nops from +/-/p+ operand.
15883 When optimizing -X == C, fold C to arg0's type.
15884
de888d90
JJ
15885 PR debug/47946
15886 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15887 emit it as add_AT_int instead of add_AT_unsigned.
15888
158892011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
15890
15891 * unwind-dw2.c: Include sys/sdt.h if it exists.
15892 (_Unwind_DebugHook): Use STAP_PROBE2.
15893 * config.in, configure: Rebuild.
15894 * configure.ac: Check for sys/sdt.h.
15895
d34abfd2
UB
158962011-03-14 Uros Bizjak <ubizjak@gmail.com>
15897
15898 * config/i386/i386.md (ROUND_FLOOR): New constant.
15899 (ROUND_CEIL): Ditto.
15900 (ROUND_TRUNC): Ditto.
15901 (ROUND_MXCSR): Ditto.
15902 (ROUND_NO_EXC): Ditto.
15903 (rint<mode>2): Use new defines instead of numerical constants.
15904 (floor<mode>2): Ditto.
15905 (ceil<mode>2): Ditto.
15906 (btrunc<mode>2): Ditto.
15907 * config/i386/i386-builtin-types.def: Define ROUND function type
15908 aliases.
15909 * config/i386/i386.c (enum ix86_builtins): Add
15910 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15911 (struct builtin_description): Add
15912 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15913 (ix86_expand_sse_round): New static function.
15914 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15915 function types.
15916 (ix86_builtin_vectorized_function): Handle
15917 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15918
87f9e23d
TT
159192011-03-14 Tom Tromey <tromey@redhat.com>
15920
15921 * c-parser.c (c_parser_asm_string_literal): Clear
15922 warn_overlength_strings.
15923
b3ab9ea2
TT
159242011-03-14 Tom Tromey <tromey@redhat.com>
15925
15926 * c-parser.c (disable_extension_diagnostics): Save
15927 warn_overlength_strings.
15928 (restore_extension_diagnostics): Restore warn_overlength_strings.
15929
6bd73dd8
JJ
159302011-03-14 Jakub Jelinek <jakub@redhat.com>
15931
15932 * BASE-VER: Change to 4.7.0.
15933
7f4d6e1b
RG
159342011-03-14 Richard Guenther <rguenther@suse.de>
15935
15936 PR middle-end/48098
15937 * tree.c (build_vector_from_val): Adjust assert to requirements
15938 and reality.
15939
c6104ef1
JJ
159402011-03-14 Jakub Jelinek <jakub@redhat.com>
15941
15942 PR bootstrap/48102
d34abfd2 15943 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 15944
dfa95e19
AT
159452011-03-14 Andreas Tobler <andreast@fgznet.ch>
15946
f60c2554 15947 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
15948 terms of target_flags_explicit. Adjust copyright year.
15949
15950 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15951 * config/rs6000/t-freebsd: New file. Add override for
15952 LIB2FUNCS_EXTRA.
15953
bb322018
CD
159542011-03-13 Chris Demetriou <cgd@google.com>
15955
15956 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15957 (-fno-diagnostics-show-option): this, to reflect current default.
15958 (-Werror=): Update text about -fno-diagnostics-show-option.
15959
12b1c80b
PB
159602011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15961
15962 PR target/48053
15963 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15964 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15965 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15966 mode is not V2DImode or V2DFmode.
15967 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15968 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15969 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15970 registers to 0.
15971 (movdi_internal64): Likewise.
15972
57d598f7
SP
159732011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15974
15975 PR tree-optimization/47127
15976 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15977 parameter.
15978 (set_cloog_options): Same.
15979 (scop_to_clast): Same.
15980 (print_clast_stmt): Do not call cloog_state_malloc and
15981 cloog_state_free.
15982 (print_generated_program): Same.
15983 (gloog): Same.
15984 * graphite-clast-to-gimple.h (cloog_state): Declared.
15985 (scop_to_clast): Adjust declaration.
15986 * graphite.c (cloog_state): Defined here.
15987 (graphite_initialize): Call cloog_state_malloc.
15988 (graphite_finalize): Call cloog_state_free.
15989
f231b5ff
JM
159902011-03-11 Jason Merrill <jason@redhat.com>
15991
15992 * attribs.c (lookup_attribute_spec): Take const_tree.
15993 * tree.h: Adjust.
15994
6a4e2bd5
JM
159952011-03-11 Joseph Myers <joseph@codesourcery.com>
15996
15997 * config/sparc/sparc.c (sparc_option_override): Use
15998 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15999
a758fd67
RG
160002011-03-11 Richard Guenther <rguenther@suse.de>
16001
16002 PR tree-optimization/48067
16003 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16004 multiplication result will be only used once on the target
16005 stmt.
16006
03dfda54
RG
160072011-03-11 Richard Guenther <rguenther@suse.de>
16008
16009 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16010
5f11a50a
RG
160112011-03-11 Richard Guenther <rguenther@suse.de>
16012
16013 PR lto/48073
16014 * tree.c (find_decls_types_r): Do not walk types only reachable
16015 from IDENTIFIER_NODEs.
16016
4074f163
JJ
160172011-03-11 Jakub Jelinek <jakub@redhat.com>
16018
16019 PR middle-end/48044
16020 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16021 all vnode->force_output nodes as needed.
16022
30f7cdcd
JM
160232011-03-11 Jason Merrill <jason@redhat.com>
16024
16025 PR c++/48069
16026 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16027 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16028
62ecfeb8
MJ
160292011-03-11 Martin Jambor <mjambor@suse.cz>
16030
16031 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16032 cgraph_node.
16033
e89e03ab
JJ
160342011-03-11 Jakub Jelinek <jakub@redhat.com>
16035
16036 PR tree-optimization/48063
16037 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16038 inline functions called once if !tree_can_inline_p (node->callers).
16039
efbe978b 160402011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 16041
efbe978b
EB
16042 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16043 extra_objs.
9d6193a7
CL
16044 * config/score/score3.c: Delete.
16045 * config/score/score3.h: Delete.
16046 * config/score/mul-div.S: Delete.
16047 * config/score/sfp-machine.h: Add new file.
16048 * config/score/constraints.md: Add new file.
16049 * config/score/t-score-softfp: Add new file.
efbe978b 16050 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
16051 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16052 (score7_extra_constraint): Delete.
efbe978b 16053 (score7_option_override): Remove unused code.
9d6193a7
CL
16054 * config/score/score.c: Remove score3 and score5 define and code.
16055 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 16056 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
16057 * config/score/score.opt: Remove score3 and score5 options.
16058
5de27cca
JDA
160592011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16060
16061 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16062 when _HPUX_SOURCE is defined.
16063 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16064
18d92053
JM
160652011-03-10 Jason Merrill <jason@redhat.com>
16066
16067 PR c++/48029
16068 * stor-layout.c (layout_type): Don't set structural equality
16069 on arrays of incomplete type.
16070 * tree.c (type_hash_eq): Handle comparing them properly.
16071
67a2f76d
JJ
160722011-03-10 Jakub Jelinek <jakub@redhat.com>
16073
16074 PR debug/48043
18d92053 16075 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
16076 result mode matches original rtl mode.
16077
d845b2f9
NC
160782011-03-10 Nick Clifton <nickc@redhat.com>
16079
16080 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 16081 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 16082
db7ec035
JJ
160832011-03-09 Jakub Jelinek <jakub@redhat.com>
16084
16085 PR rtl-optimization/47866
16086 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16087 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16088 if target wasn't scalar.
16089 * function.c (assign_stack_temp_for_type): Assert that neither
16090 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16091 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16092 macro.
16093 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16094
5d304e47
AK
160952011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16096
16097 * config/s390/s390-protos.h (s390_label_align): New prototype.
16098 * config/s390/s390.c (s390_label_align): New function.
16099 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16100
93b826f0
MM
161012011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16102
16103 PR target/47755
16104 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16105 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16106 (output_vec_const_move): Ditto.
16107
ef78aed6
AS
161082011-03-08 Anatoly Sokolov <aesok@post.ru>
16109
16110 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16111 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16112 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16113 Change 'rclass' argument and result type to reg_class_t.
16114 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16115
5f892aa0
GJL
161162011-03-08 Georg-Johann Lay <avr@gjlay.de>
16117
9e43ad68
UB
16118 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16119 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16120 (TARGET_MEMORY_MOVE_COST): Define.
16121 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 16122
32bd2409
JJ
161232011-03-08 Jakub Jelinek <jakub@redhat.com>
16124
530a4800
JJ
16125 PR debug/47881
16126 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16127 removed anything.
16128
32bd2409
JJ
16129 PR tree-optimization/48022
16130 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16131 for EQ/NE_EXPR.
16132
c7148991
JJ
161332011-03-07 Jakub Jelinek <jakub@redhat.com>
16134
16135 PR debug/47991
16136 * var-tracking.c (find_use_val): Return NULL for
16137 cui->sets && cui->store_p BLKmode MEMs.
16138
43070a6e
AS
161392011-03-07 Anatoly Sokolov <aesok@post.ru>
16140
16141 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16142 Remove.
16143 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16144 xstormy16_print_operand_address): Remove.
16145 * config/stormy16/stormy16.c (xstormy16_print_operand,
16146 xstormy16_print_operand_address): Make static.
16147 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16148
efbe978b 161492011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
16150
16151 PR target/47862
16152 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16153 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16154 before definition.
16155
cec8ac0b
ZD
161562011-03-07 Zdenek Dvorak <ook@ucw.cz>
16157
16158 PR bootstrap/48000
16159 * cfgloopmanip.c (fix_bb_placements): Return immediately
16160 if FROM is BASE_LOOP's header.
16161
59527282
PW
161622011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16163
16164 * gimplify.c (gimplify_function_tree): Fix building calls
16165 to __builtin_return_address.
16166
617718f7
AM
161672011-03-07 Alan Modra <amodra@gmail.com>
16168
16169 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16170 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16171 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16172 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16173 return_mode args.
16174 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16175 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16176 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16177 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16178 * config/rs6000/rs6000.c
16179 (rs6000_elf_end_indicate_exec_stack): Rename to..
16180 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16181 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16182 (rs6000_file_start): ..here.
16183 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16184 file scope variables.
16185 (call_ABI_of_interest): New function.
16186 (init_cumulative_args): Set above vars when function return value
16187 is a float, vector, or small struct.
16188 (rs6000_function_arg_advance_1): Likewise for function args.
16189 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16190 references float args.
16191
38528d50
MX
161922011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16193
16194 * doc/cfg.texi: Remove "See" before @ref.
16195 * doc/invoke.texi: Likewise.
16196
f42cf4f4
JM
161972011-03-05 Jason Merrill <jason@redhat.com>
16198
16199 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16200
804a304d
AG
162012011-03-05 Anthony Green <green@moxielogic.com>
16202
16203 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16204
634ee309
ZD
162052011-03-05 Zdenek Dvorak <ook@ucw.cz>
16206
16207 PR rtl-optimization/47899
16208 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16209 to flow_loop_nested_p when moving the loop upward.
16210
6fe471c8
RE
162112011-03-05 Richard Earnshaw <rearnsha@arm.com>
16212
16213 PR target/47719
16214 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16215
cc58ceee
JJ
162162011-03-05 Jakub Jelinek <jakub@redhat.com>
16217
16218 PR tree-optimization/47967
16219 * ipa-cp.c (build_const_val): Return NULL instead of creating
16220 VIEW_CONVERT_EXPR for mismatching sizes.
16221 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16222 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16223 give up on versioning.
16224
ea868305
AM
162252011-03-05 Alan Modra <amodra@gmail.com>
16226
16227 PR target/47986
16228 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16229 full cmodel medium/large lo_sum + high addresses.
16230
bc6ce334
AK
162312011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16232
16233 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16234 pool references in UNSPEC_LTREL_OFFSET.
16235
87e7b310
JH
162362011-03-04 Jan Hubicka <jh@suse.cz>
16237
16238 PR lto/47497
16239 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16240 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
16241 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16242 Add node pointers.
87e7b310
JH
16243 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16244 cgraph_add_thunk): Add node pointers.
16245 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16246 associated to right node.
16247 (input_node): Update use of cgraph_same_body_alias
16248 and cgraph_add_thunk.
16249
d9c64246
CF
162502011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16251
16252 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
16253 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16254 modes when the flag -mprefer-avx128 is on.
d9c64246 16255
08707076
RS
162562011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16257
16258 * dwarf2out.c (compare_loc_operands): Fix address handling.
16259
52517c81
AM
162602011-03-04 Alan Modra <amodra@gmail.com>
16261
16262 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16263
b147c5b9
RG
162642011-03-04 Richard Guenther <rguenther@suse.de>
16265
16266 PR middle-end/47968
16267 * expmed.c (extract_bit_field_1): Prefer vector modes that
16268 vec_extract patterns can handle.
16269
8750672f
RG
162702011-03-04 Richard Guenther <rguenther@suse.de>
16271
16272 PR middle-end/47975
16273 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16274
9eac0f2a
RH
162752011-03-04 Richard Henderson <rth@redhat.com>
16276
16277 * explow.c (emit_stack_save): Remove 'after' parameter.
16278 (emit_stack_restore): Likewise.
16279 * expr.h: Update to match.
16280 * builtins.c, calls.c, stmt.c: Likewise.
16281 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16282 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16283 * function.c (expand_function_end): Insert the emit_stack_save
16284 sequence before parm_birth_insn instead of after.
16285
dfee1406
UB
162862011-03-03 Uros Bizjak <ubizjak@gmail.com>
16287
16288 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16289 (ssse3_pmaddubsw128): Ditto.
16290 (ssse3_pmaddubsw): Ditto.
16291
f1d4c3de
SE
162922011-03-03 Steve Ellcey <sje@cup.hp.com>
16293
16294 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16295
71f3a3f5
JJ
162962011-03-03 Jakub Jelinek <jakub@redhat.com>
16297
423ed416
JJ
16298 PR c/47963
16299 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16300 on TYPE_SIZE_UNIT if it is a DECL.
16301
71f3a3f5
JJ
16302 PR debug/47283
16303 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16304 first operand is not is_gimple_mem_ref_addr, try to fold it.
16305 If the operand still isn't is_gimple_mem_ref_addr, clear
16306 MEM_EXPR on op0.
16307
4b1a5c0d
RG
163082011-03-03 Richard Guenther <rguenther@suse.de>
16309
16310 PR middle-end/47283
16311 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16312 match comment.
16313 (refs_may_alias_p_1): For release branches return true if
16314 we are confused by our input.
16315
b46616fd
AK
163162011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16317
16318 * config/s390/s390.c (s390_function_value): Rename to ...
16319 (s390_function_and_libcall_value): ... this.
16320 (s390_function_value): New function.
16321 (s390_libcall_value): New function.
dfee1406 16322 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
16323 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16324 target macro definitions.
16325 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16326
46d8fabb
JM
163272011-03-02 Joseph Myers <joseph@codesourcery.com>
16328
16329 * config/i386/freebsd64.h (CC1_SPEC): Define.
16330 * config/i386/linux64.h (CC1_SPEC): Define.
16331 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16332
6b1ce545
AS
163332011-03-02 Anatoly Sokolov <aesok@post.ru>
16334
16335 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16336 Remove.
16337 * config/stormy16/stormy16.c: Include reload.h.
16338 (xstormy16_memory_move_cost): New function.
16339 (TARGET_MEMORY_MOVE_COST): Define.
16340
34161e98
RS
163412011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16342
16343 PR rtl-optimization/47925
16344 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16345 with side effects. Remove the more-specific check for volatile asms.
16346
f60a97cf
AM
163472011-03-02 Alan Modra <amodra@gmail.com>
16348
16349 PR target/47935
16350 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16351 toc relative addresses for valid offsets.
16352
f2ca11ca
RG
163532011-03-01 Richard Guenther <rguenther@suse.de>
16354
16355 PR tree-optimization/47890
16356 * tree-vect-loop.c (get_initial_def_for_induction): Set
16357 related stmt properly.
16358
7a00d9ea
RG
163592011-03-01 Richard Guenther <rguenther@suse.de>
16360
16361 PR lto/47924
16362 * lto-streamer.c (lto_record_common_node): Also register
16363 the canonical type.
16364
06c7edcc
RG
163652011-03-01 Richard Guenther <rguenther@suse.de>
16366
16367 PR lto/46911
16368 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16369 Do not stream DECL_ABSTRACT_ORIGIN.
16370 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16371 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16372 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16373 Do not stream DECL_ABSTRACT_ORIGIN.
16374 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16375 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16376
998871e9
AS
163772011-02-28 Anatoly Sokolov <aesok@post.ru>
16378
16379 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16380 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 16381 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
16382 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16383 Add 'outgoing' argument.
16384 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16385 function.
16386 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16387 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16388
94369251
KT
163892011-02-28 Kai Tietz <kai.tietz@onevision.com>
16390
16391 PR debug/28047
16392 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16393 (lookup_filename): Likewise.
b2e2ea67 16394 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 16395
80a832cd
JJ
163962011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16397 Jakub Jelinek <jakub@redhat.com>
16398
16399 PR middle-end/47893
16400 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16401 (assign_stack_local_1): Change last argument type to int.
16402 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16403 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 16404 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
16405 (assign_stack_local): Adjust caller.
16406 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16407 of assign_stack_local, pass 0 as last argument.
16408 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16409 callers.
16410
1b500976
JJ
164112011-02-28 Jakub Jelinek <jakub@redhat.com>
16412
f61c6f34
JJ
16413 PR debug/47283
16414 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16415 Use target address_mode and pointer_mode hooks instead of hardcoded
16416 Pmode and ptr_mode. Handle some simple cases of extending if
16417 POINTERS_EXTEND_UNSIGNED < 0.
16418 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16419 Call convert_debug_memory_address.
16420 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16421 convert_debug_memory_address.
16422
1b500976
JJ
16423 PR middle-end/46790
16424 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16425 * configure: Regenerated.
16426 * config.in: Regenerated.
16427 * varasm.c (default_function_section): Return NULL
b2e2ea67 16428 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 16429
2f2935b6
MJ
164302011-02-28 Martin Jambor <mjambor@suse.cz>
16431
16432 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16433 the description to match the printed values.
16434
474086eb
RG
164352011-02-28 Richard Guenther <rguenther@suse.de>
16436
16437 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16438 of the copied scope tree.
16439
15bf6f3a
RW
164402011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16441
16442 * doc/extend.texi (Function Attributes): Avoid deeply (and
16443 wrongly) nested tables.
16444
f6b439c9
JJ
164452011-02-27 Jakub Jelinek <jakub@redhat.com>
16446
16447 PR middle-end/47903
16448 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16449 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16450 r isn't op0 nor op1.
16451
1d8ca2c7
GJL
164522011-02-23 Georg-Johann Lay <avr@gjlay.de>
16453
16454 * config/avr/avr.md: Remove magic comment for emacs.
16455
593fca4b
GJL
164562011-02-23 Georg-Johann Lay <avr@gjlay.de>
16457
16458 PR target/45261
16459 * config/avr/avr.c (avr_option_override): Use error on bad options.
16460 (avr_help): New function.
16461 (TARGET_HELP): Define.
16462
6609216e
GJL
164632011-02-22 Georg-Johann Lay <avr@gjlay.de>
16464
16465 PR target/42240
16466 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16467 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16468
03d458af
GP
164692011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16470
16471 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16472 (ARM Options): Ditto.
16473 (i386 and x86-64 Options): Ditto.
16474 (RX Options): Ditto.
16475 (SPARC Options): Ditto.
16476
1c379b78
TC
164772011-02-26 Tijl Coosemans <tijl@coosemans.org>
16478
16479 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16480 FreeBSD 6 and later. Generally use cpu generic.
16481
d5ed058c 164822011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 16483
d5ed058c
GP
16484 * doc/cpp.texi: Update copyright years.
16485
509d65dd 164862011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 16487
509d65dd 16488 PR target/46898
308d39cd
SB
16489 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16490
509d65dd 164912011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 16492
509d65dd 16493 PR target/46898
308d39cd
SB
16494 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16495 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16496 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16497 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 16498 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
16499 (gen_int_relational): Move declarations to start of function.
16500
822ba6d7
EB
165012011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16502
16503 PR tree-optimization/45470
16504 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16505 can throw internally only.
16506 * tree-vect-stmts.c (vectorizable_call): Likewise.
16507
ef795fc2
AS
165082011-02-24 Anatoly Sokolov <aesok@post.ru>
16509
16510 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16511 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16512 * config/stormy16/stormy16-protos.h
16513 (xstormy16_preferred_reload_class): Remove.
16514 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16515 static. Change 'rclass' argument and return type to reg_class_t.
16516 (TARGET_PREFERRED_RELOAD_CLASS,
16517 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16518
1c3277ee
RG
165192011-02-24 Richard Guenther <rguenther@suse.de>
16520
16521 * lto-streamer-in.c (input_bb): Do not find referenced vars
16522 in debug statements.
16523
67e18edb
JM
165242011-02-23 Jason Merrill <jason@redhat.com>
16525
16526 * common.opt (fabi-version): Document v5 and v6.
16527
b14fad9d
RG
165282011-02-23 Richard Guenther <rguenther@suse.de>
16529
16530 PR tree-optimization/47849
16531 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16532
7fcf46f5
JZ
165332011-02-23 Jie Zhang <jie@codesourcery.com>
16534
16535 * opts-common.c (decode_cmdline_option): Print empty string
16536 argument as "" in decoded->orig_option_with_args_text.
16537 * gcc.c (execute): Print empty string argument as ""
16538 in the verbose output.
16539 (do_spec_1): Keep empty string argument.
16540
f85b70fd
NF
165412011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16542
16543 * config.gcc: Declare score-* and crx-* obsolete.
16544
b152a615
JZ
165452011-02-23 Jie Zhang <jie@codesourcery.com>
16546
16547 PR rtl-optimization/47763
16548 * web.c (web_main): Ignore naked clobber when replacing register.
16549
bb6e77bc
AS
165502011-02-22 Anatoly Sokolov <aesok@post.ru>
16551
16552 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16553 Remove.
16554
68bf6491
SP
165552011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16556
16557 PR doc/47848
16558 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16559
88ee1fc7
MS
165602011-02-22 Mike Stump <mikestump@comcast.net>
16561
16562 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16563 assembler.
16564 * configure: Regenerate.
16565
6042d1dd
CLT
165662011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16567
16568 PR rtl-optimization/46002
16569 * ira-color.c (update_copy_costs): Change class intersection
16570 test to reg_class_contents[] test of 'hard_regno'.
16571
7de97f9e
JM
165722011-02-21 Joseph Myers <joseph@codesourcery.com>
16573
16574 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16575 than Driver option.
16576 * config/hpux11.opt (mt): Likewise.
16577 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16578 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16579 * config/vax/elf.opt (mno-asm-pic): Likewise.
16580 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16581
d1d46f9f
MS
165822011-02-21 Mike Stump <mikestump@comcast.net>
16583
16584 PR target/47822
16585 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16586 tree so we can get save the type.
16587 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16588 for CFString instead of trying to use past the end of the builtins.
16589 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16590 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16591 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16592 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16593 Rename to darwin_builtin_cfstring.
16594 (darwin_init_cfstring_builtins): Return the built type.
16595
23e0d930
UB
165962011-02-21 Uros Bizjak <ubizjak@gmail.com>
16597
16598 PR target/47840
16599 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16600 (_mm256_insert_epi64): Use _mm_insert_epi64.
16601
192997cf
AS
166022011-02-21 Anatoly Sokolov <aesok@post.ru>
16603
16604 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16605 * config/stormy16/stormy16-protos.h
16606 (xstormy16_mode_dependent_address_p): Remove.
16607 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16608 Make static. Change return type to bool. Change argument type to
16609 const_rtx. Remove dead code.
16610 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16611
e292d003
RG
166122011-02-21 Richard Guenther <rguenther@suse.de>
16613
16614 PR lto/47820
16615 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16616 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16617 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16618 TUs context.
23e0d930 16619 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
16620 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16621
77f846e9
RG
166222011-02-20 Richard Guenther <rguenther@suse.de>
16623
16624 PR lto/47822
16625 * tree.c (free_lang_data_in_decl): Clean builtins from
16626 the TU decl BLOCK_VARS.
23e0d930 16627
b2cddfc8
AO
166282011-02-19 Alexandre Oliva <aoliva@redhat.com>
16629
16630 PR debug/47620
16631 PR debug/47630
16632 * haifa-sched.c (fix_tick_ready): Skip tick computation
16633 for debug insns.
16634
becf4c11
RG
166352011-02-19 Richard Guenther <rguenther@suse.de>
16636
16637 PR lto/47647
16638 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16639 Remove lazy BLOCK_VARS streaming.
16640 (lto_input_ts_block_tree_pointers): Likewise.
16641 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16642
27f98305
JM
166432011-02-19 Joseph Myers <joseph@codesourcery.com>
16644
16645 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16646
064bf3f4
JM
166472011-02-19 Joseph Myers <joseph@codesourcery.com>
16648
16649 * config/i386/biarch32.h, config/i386/mach.h,
16650 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16651
9215ddc3
JJ
166522011-02-19 Jakub Jelinek <jakub@redhat.com>
16653
16654 PR target/47800
16655 * config/i386/i386.md (peephole2 for shift and plus): Use
16656 operands[1] original mode in the first insn.
16657
8b021004
MS
166582011-02-18 Mike Stump <mikestump@comcast.net>
16659
65ded153 16660 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 16661
f84ae14c
JH
166622011-02-18 Jan Hubicka <jh@suse.cz>
16663
16664 PR middle-end/47788
65ded153
EB
16665 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16666 to zero when the function is not inlinable at all.
f84ae14c 16667
eddabc80
JDA
166682011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16669
16670 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16671 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16672 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16673 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16674 * config/pa/t-pa64: Likewise.
16675 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16676
ca3da783
JJ
166772011-02-18 Jakub Jelinek <jakub@redhat.com>
16678
16679 PR driver/47787
16680 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16681
430aa868
JDA
166822011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16683
16684 PR target/47792
16685 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16686
4bf7ff7e
AS
166872011-02-18 Anatoly Sokolov <aesok@post.ru>
16688
16689 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16690 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16691 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16692 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16693 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16694 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16695 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16696 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16697 m32r_legitimate_address_p): New functions.
16698 * config/m32r/constraints.md (constraint "S"): Don't use
16699 STORE_PREINC_PREDEC_P.
16700 (constraint "U"): Don't use LOAD_POSTINC_P.
16701
7efcf910
CLT
167022011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16703
16704 PR rtl-optimization/46178
16705 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16706 compute ira_hard_regno_cover_class[].
16707
237d6259
RG
167082011-02-18 Richard Guenther <rguenther@suse.de>
16709
16710 PR lto/47798
16711 * lto-streamer.h (lto_global_var_decls): Declare.
16712 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16713 statics for global var processing.
16714
12d80acc
RG
167152011-02-18 Richard Guenther <rguenther@suse.de>
16716
16717 PR tree-optimization/47737
16718 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16719 edge dominance check.
16720
abfea58d
JJ
167212011-02-18 Jakub Jelinek <jakub@redhat.com>
16722
16723 PR debug/47780
16724 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16725 avoid invalid rtx sharing.
16726
f73c8882
GP
167272011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16728
16729 * doc/cpp.texi (Obsolete Features): Add background on the
16730 origin of assertions.
16731
d764a8e6
IS
167322011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16733
16734 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 16735 objc_abi == 2.
d764a8e6
IS
16736 * config/darwin.c (output_objc_section_asm_op): Added support for
16737 ABI v1 and v2.
16738 (is_objc_metadata): New.
16739 (darwin_objc2_section): New.
16740 (darwin_objc1_section): New.
16741 (machopic_select_section): Added support for ABI v1 and v2.
16742 (darwin_emit_objc_zeroed): New.
16743 (darwin_output_aligned_bss): Detect objc metadata and treat it
16744 appropriately.
16745 (darwin_asm_output_aligned_decl_common): Same.
16746 (darwin_asm_output_aligned_decl_local): Same.
16747 * config/darwin-sections.def: Updated for ABI v1 and v2.
16748 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16749 compiling Objective-C code for the NeXT runtime, default to using
16750 ABI version 0 for 32-bit, and version 2 for 64-bit.
16751
0a8134ca
JM
167522011-02-17 Joseph Myers <joseph@codesourcery.com>
16753
16754 * common.opt (optimize_fast): New Variable.
16755 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16756 instead of local variable ofast.
16757
0a256240
NP
167582011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16759
16760 * doc/invoke.texi (fobjc-abi-version): Documented.
16761 (fobjc-nilcheck): Documented.
16762 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16763 version.
16764
fa381cb2
JM
167652011-02-17 Joseph Myers <joseph@codesourcery.com>
16766
16767 PR driver/47390
16768 * common.opt (export-dynamic): New Driver option.
16769 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16770
5437eaa6
JM
167712011-02-17 Joseph Myers <joseph@codesourcery.com>
16772
16773 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16774
bb7e6d55
AO
167752011-02-17 Alexandre Oliva <aoliva@redhat.com>
16776 Jan Hubicka <jh@suse.cz>
16777
16778 PR debug/47106
16779 PR debug/47402
16780 * cfgexpand.c (account_used_vars_for_block): Remove.
16781 (estimated_stack_frame_size): Use referenced vars.
16782 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16783 that were referenced in the original function. Test src_fn
16784 rather than cfun. Drop redundant get_var_ann.
16785 (setup_one_parameter): Drop redundant get_var_ann.
16786 (declare_return_variable): Likewise.
16787 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16788 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16789 * ipa-inline.c (compute_inline_parameters): Do not compute
16790 disregard_inline_limits here.
bb7e6d55
AO
16791 (compute_inlinable_for_current, pass_inlinable): New.
16792 (pass_inline_parameters): Require PROP_referenced_vars.
16793 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 16794 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
16795 (cgraph_analyze_function): Set .disregard_inline_limits.
16796 * tree-sra.c (convert_callers): Compute inliner parameters
16797 only for functions already in SSA form.
16798
f181a8a7
JM
167992011-02-17 Joseph Myers <joseph@codesourcery.com>
16800
16801 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16802 -mlittle-endian-data.
16803
c6869789
JM
168042011-02-17 Joseph Myers <joseph@codesourcery.com>
16805
16806 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16807 -mno-fpu, not -fpu and -no-fpu.
16808 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16809 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16810
fbf4bfd3
UB
168112011-02-17 Uros Bizjak <ubizjak@gmail.com>
16812
16813 PR target/43653
16814 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16815 input reload with PLUS RTX.
16816
70be5dc7
JM
168172011-02-16 Joseph Myers <joseph@codesourcery.com>
16818
16819 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16820 of InverseVar(MDMX).
16821
30b1646e
JM
168222011-02-16 Joseph Myers <joseph@codesourcery.com>
16823
16824 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16825 --m4-340.
16826
ab7b71e9
JM
168272011-02-16 Joseph Myers <joseph@codesourcery.com>
16828
16829 * config/mn10300/mn10300.opt (mno-crt0): New.
16830
466f3f08
JM
168312011-02-16 Joseph Myers <joseph@codesourcery.com>
16832
16833 * config/m68k/uclinux.opt (static-libc): New Driver option.
16834
8226cd7b
JM
168352011-02-16 Joseph Myers <joseph@codesourcery.com>
16836
16837 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16838
45cab1d7
JM
168392011-02-16 Joseph Myers <joseph@codesourcery.com>
16840
16841 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16842 %{muser-extend-enabled}.
16843
65aab64f
RG
168442011-02-16 Richard Guenther <rguenther@suse.de>
16845
16846 PR tree-optimization/47738
16847 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16848 the TODO from tree_predictive_commoning.
16849
fc2fa4fb
JL
168502011-02-15 Jeff Law <law@redhat.com>
16851
16852 Revert
16853 2011-01-25 Jeff Law <law@redhat.com>
16854
16855 PR rtl-optimization/37273
16856 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16857 handle them like argument loads from stack slots. Do not double
16858 count memory for memory constants and argument loads from stack slots.
16859
4e380b8e
L
168602011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16861
16862 PR middle-end/47725
16863 * combine.c (cant_combine_insn_p): Revert the last change.
16864
e3a69bb4
MM
168652011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16866
16867 PR target/47755
16868 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16869 mode for vector constants. Remove code that checks for TImode.
16870
de650422
AO
168712011-02-15 Alexandre Oliva <aoliva@redhat.com>
16872
16873 PR debug/47106
16874 PR debug/47402
16875 * cgraph.h (compute_inline_parameters): Return void.
16876 * ipa-inline.c (compute_inline_parameters): Adjust.
16877
30925d94
AO
168782011-02-15 Alexandre Oliva <aoliva@redhat.com>
16879
16880 PR debug/47106
16881 PR debug/47402
16882 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16883 rather than decl.
16884 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16885 * ipa-inline.c (compute_inline_parameters): Adjust.
16886
1b9a784a
AO
168872011-02-15 Alexandre Oliva <aoliva@redhat.com>
16888
16889 PR debug/47106
16890 PR debug/47402
16891 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16892 Adjust all users. Pass FN to...
16893 * tree-flow-inline.h (first_referenced_var): ... this. Add
16894 fn argument.
16895 * ipa-struct-reorg.c: Adjust.
16896 * tree-dfa.c: Adjust.
16897 * tree-into-ssa.c: Adjust.
16898 * tree-sra.c: Adjust.
16899 * tree-ssa-alias.c: Adjust.
16900 * tree-ssa-live.c: Adjust.
16901 * tree-ssa.c: Adjust.
16902 * tree-ssanames.c: Adjust.
16903 * tree-tailcall.c: Adjust.
16904
27c6b086
AO
169052011-02-15 Alexandre Oliva <aoliva@redhat.com>
16906
16907 PR debug/47106
16908 PR debug/47402
16909 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16910 Adjust all callers.
16911 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16912 * tree-flow-inline.h: Adjust.
16913 * gimple-pretty-print.c: Adjust.
16914 * tree-into-ssa.c: Adjust.
16915 * tree-ssa.c: Adjust.
16916 * cfgexpand.c: Adjust.
16917
679e8183
NF
169182011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16919
fbf4bfd3
UB
16920 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16921 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16922 (EXTRA_CONSTRAINT): Delete.
16923 * config/iq2000/constraints.md: New file.
16924 * config/iq2000/iq2000.md: Include it.
679e8183
NF
16925 (define_insn ""): Delete.
16926 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16927 unsupported constraint letters from patterns.
16928 (call_value, call_value_internal1): Likewise.
16929 (call_value_multiple_internal1): Likewise.
16930
a45d420a
NC
169312011-02-15 Nick Clifton <nickc@redhat.com>
16932
16933 * config/mn10300/mn10300.c: Include tm-constrs.h.
16934 (struct liw_data): New data structure describing an LIW candidate
16935 instruction.
16936 (extract_bundle): Use struct liw_data. Allow small integer
16937 operands for some instructions.
16938 (check_liw_constraints): Use struct liw_data. Remove swapped
16939 parameter. Add comments describing the checks. Fix bug when
16940 assigning the source of liw1 to the source of liw2.
16941 (liw_candidate): Delete. Code moved into extract_bundle.
16942 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16943 before swapping.
16944 * config/mn10300/predicates.md (liw_operand): New predicate.
16945 Allows registers and small integer constants.
16946 * config/mn10300/constraints.md (O): New constraint. Accetps
16947 integers in the range -8 to +7 inclusive.
16948 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16949 for moving a small integer into a register. Give this alternative
16950 LIW attributes.
16951 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16952 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16953 using the J,K,L and M constraints,
16954 (liw): Remove SI mode on second operands to allow for HI and QI
16955 mode values.
16956 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16957 instruction.
16958
8a73faf1
L
169592011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16960
16961 PR middle-end/47725
16962 * combine.c (cant_combine_insn_p): Check zero/sign extended
16963 hard registers.
16964
48feba28
RG
169652011-02-15 Richard Guenther <rguenther@suse.de>
16966
16967 PR tree-optimization/47743
16968 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16969 for a non-type-compatible VN lookup bail out.
16970
ad1c1eeb
NF
169712011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16972
16973 * config/fr30/constraints.md: New file.
16974 * config/fr30/fr30.md: Include it.
16975 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16976 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16977 (EXTRA_CONSTRAINT): Delete.
16978
49ac143d
NF
169792011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16980
16981 * config/frv/constraints.md: New file.
16982 * config/frv/predicates.md: Include it.
16983 * config/frv/frv.c (reg_class_from_letter): Delete.
16984 (frv_option_override): Don't initialize it.
16985 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16986 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16987 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16988 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16989 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16990 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16991 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16992 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16993 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16994 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16995 (REG_CLASS_FROM_CONSTRAINT): Delete.
16996
c95f9494
JJ
169972011-02-15 Jakub Jelinek <jakub@redhat.com>
16998
16999 PR middle-end/47581
17000 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17001 if frame size is 0 in a leaf function.
17002
13aed611
RO
170032011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17004
17005 PR pch/14940
17006 * config/alpha/host-osf.c: New file.
17007 * config/alpha/x-osf: New file.
17008 * config.host (alpha*-dec-osf*): Use it.
17009
b09c3081
AS
170102011-02-14 Anatoly Sokolov <aesok@post.ru>
17011
17012 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17013 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17014 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17015 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17016 type to const_rtx.
17017 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17018
d634083b
NF
170192011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17020
17021 * config/stormy16/constraints.md: New file.
17022 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17023 Use satisfies_constraint_Q and satisfies_constraint_R.
17024 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17025 Delete.
17026 (xstormy16_legitiamte_address_p): Declare.
17027 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17028 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17029 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 17030 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
17031 Un-staticize.
17032 (xstormy16_extra_constraint_p): Delete.
17033
c7dd803e
EB
170342011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17035
17036 PR tree-optimization/46494
17037 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17038 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17039 (pass_rtl_loop_done): Add TODO_verify_flow.
17040 * fwprop.c (pass_rtl_fwprop): Likewise.
17041 * modulo-sched.c (pass_sms): Likewise.
17042 * tree-ssa-dom.c (pass_dominator): Likewise.
17043 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17044 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17045 (pass_tree_loop_done): Likewise.
17046 * tree-ssa-pre.c (execute_pre): Likewise.
17047 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17048 * tree-ssa-sink.c (pass_sink_code): Likewise.
17049 * tree-vrp.c (pass_vrp): Likewise.
17050
c6150df6
NF
170512011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17052
c7dd803e
EB
17053 * config/v850/constraints.md: New file.
17054 * config/v850/v850.md: Include it.
17055 * config/v850/predicates.md (reg_or_0_operand): Use
17056 satisfies_constraint_G.
17057 (special_symbolref_operand): Use satisfies_constraint_K.
17058 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17059 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17060 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17061 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17062 (EXTRA_CONSTRAINT): Delete.
17063 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17064 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17065 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 17066
30dd1ea3
AS
170672011-02-14 Anatoly Sokolov <aesok@post.ru>
17068
17069 PR target/47696
17070 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17071 description.
17072
944f4bb3
NF
170732011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17074
17075 * config/mcore/constraints.md: New file.
17076 * config/mcore/mcore.md: Include it.
17077 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17078 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17079 (REG_CLASS_FROM_LETTER): Delete.
17080 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17081 insn_const_int_ok_for_constraint.
17082 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17083 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17084 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17085 (EXTRA_CONSTRAINT): Delete.
17086
ad56a54c
RO
170872011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17088
17089 PR ada/41929
17090 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17091 (IS_SIGHANDLER): Define.
17092 (sparc64_is_sighandler): New function, split off from
17093 sparc64_fallback_frame_state.
17094 (sparc_is_sighandler): New function, split off from
17095 sparc_fallback_frame_state.
17096 (sparc64_fallback_frame_state): Merge with ...
17097 (sparc_fallback_frame_state): ... this into ...
17098 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
17099 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17100 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17101 stack instead of hardcoded offsets.
ad56a54c 17102
fbf4bfd3 171032011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
17104
17105 PR target/45808
17106 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17107
029c8f3e
RW
171082011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17109
17110 * configure: Regenerate.
17111
a016dc83
JM
171122011-02-12 Joseph Myers <joseph@codesourcery.com>
17113
17114 PR driver/45731
17115 * gcc.c (asm_options): Correct spec matching --target-help.
17116
8957a0ec
MJ
171172011-02-12 Martin Jambor <mjambor@suse.cz>
17118
17119 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17120 to gimple call error.
17121
6ef828bc
MS
171222011-02-12 Mike Stump <mikestump@comcast.net>
17123
17124 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17125 comments in backslash regions.
17126
a4015be5
MS
171272011-02-12 Mike Stump <mikestump@comcast.net>
17128 Jakub Jelinek <jakub@redhat.com>
17129 Iain Sandoe <iains@gcc.gnu.org>
17130
17131 PR target/47324
17132 * dwarf2out.c (output_cfa_loc): When required, apply the
17133 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17134 (output_loc_sequence): Likewise.
17135 (output_loc_operands_raw): Likewise.
17136 (output_loc_sequence_raw): Likewise.
17137 (output_cfa_loc): Likewise.
17138 (output_loc_list): Suppress register number adjustment when
17139 calling output_loc_sequence()
17140 (output_die): Likewise.
17141
5378dda2
AS
171422011-02-12 Anatoly Sokolov <aesok@post.ru>
17143
17144 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17145 Remove macros.
17146 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17147 xtensa_memory_move_cost): New functions.
17148 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17149
f3d533d3
AO
171502011-02-12 Alexandre Oliva <aoliva@redhat.com>
17151
17152 PR lto/47225
17153 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17154 in the current directory.
17155 * configure: Rebuilt.
17156
9d53403c
IS
171572011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17158
17159 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 17160 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
17161 correct indents of the preceding block.
17162
a350a6c8
IS
171632011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17164
17165 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17166 the switch.
17167
bab79a40
JM
171682011-02-11 Joseph Myers <joseph@codesourcery.com>
17169
17170 * common.opt (nostartfiles): New Driver option.
17171
1bbc6693
XDL
171722011-02-11 Xinliang David Li <davidxl@google.com>
17173
17174 PR tree-optimization/47707
17175 * tree-chrec.c (convert_affine_scev): Keep type precision.
17176
1da7d8c0
EB
171772011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17178
17179 PR tree-optimization/47420
17180 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17181
171822011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
17183
17184 PR rtl-optimization/47614
17185 * rtl.h (check_for_inc_dec): Declare.
17186 * dse.c (check_for_inc_dec): Externalize...
17187 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17188 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17189
4df47bca
JM
171902011-02-11 Joseph Myers <joseph@codesourcery.com>
17191
17192 PR driver/47678
17193 * gcc.c (main): Do not compile inputs if there were errors in
17194 option handling.
17195 * opts-common.c (read_cmdline_option): Check for wrong language
17196 after other error checks.
17197
61502ca8
NF
171982011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17199
17200 * cgraph.c: Fix comment typos.
17201 * cgraph.h: Likewise.
17202 * cgraphunit.c: Likewise.
17203 * ipa-cp.c: Likewise.
17204 * ipa-inline.c: Likewise.
17205 * ipa-prop.c: Likewise.
17206 * ipa-pure-const.c: Likewise.
17207 * ipa-ref.c: Likewise.
17208 * ipa-reference.c: Likewise.
17209
b63f974e
JJ
172102011-02-11 Jakub Jelinek <jakub@redhat.com>
17211
d50c5e0c
JJ
17212 PR debug/47684
17213 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 17214
6dd2a13c
RO
172152011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17216
17217 PR testsuite/47400
17218 * doc/sourcebuild.texi (Require Support): Document
17219 dg-require-ascii-locale.
17220
4a087ccf
MX
172212011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17222
17223 * doc/lto.texi (Write summary): Fix missing parentheses.
17224
a4403164
DD
172252011-02-10 DJ Delorie <dj@redhat.com>
17226
17227 * config/m32c/m32c.c (m32c_option_override): Disable
17228 -fcombine-stack-adjustments until flag value tracking and compare
17229 optimization can be rewritten.
17230
4fac45bd
PB
172312011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17232
17233 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17234 PROCESSOR_POWER7.
17235 (PROCESSOR_DEFAULT64): Likewise.
17236
72602cd1
RH
172372011-02-10 Richard Henderson <rth@redhat.com>
17238
17239 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17240 change from 2011-02-03.
17241 * config/rx/rx.c (flags_from_code): Likewise.
17242 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17243 is valid, n/pz otherwise.
17244 (rx_select_cc_mode): Return CCmode if Y is not zero.
17245
ea57f573
RG
172462011-02-10 Richard Guenther <rguenther@suse.de>
17247
ea4c3e65 17248 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 17249
92b1d23b
RG
172502011-02-10 Richard Guenther <rguenther@suse.de>
17251
17252 PR tree-optimization/47677
17253 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17254
525a2d06
JJ
172552011-02-10 Jakub Jelinek <jakub@redhat.com>
17256
17257 PR target/47665
17258 * combine.c (make_compound_operation): Only change shifts into
17259 multiplication for SCALAR_INT_MODE_P.
17260
06c969bd
JZ
172612011-02-10 Jie Zhang <jie@codesourcery.com>
17262
17263 PR testsuite/47622
17264 Revert
17265 2011-02-05 Jie Zhang <jie@codesourcery.com>
17266 PR debug/42631
17267 * web.c (entry_register): Don't clobber the number of the
17268 first uninitialized reference in used[].
17269
282ec48e
RG
172702011-02-09 Richard Guenther <rguenther@suse.de>
17271
17272 PR tree-optimization/47664
17273 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17274 all edges again.
17275
df98c3e8
DE
172762011-02-09 David Edelsohn <dje.gcc@gmail.com>
17277
d0f21cd6
DE
17278 PR target/46481
17279 PR target/47032
df98c3e8
DE
17280 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17281 PROCESSOR_POWER7.
17282 (PROCESSOR_DEFAULT64): Same.
17283 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17284
67b6839f
RO
172852011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17286
17287 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17288
4fd73214
MJ
172892011-02-09 Martin Jambor <mjambor@suse.cz>
17290
17291 PR middle-end/45505
17292 * tree-sra.c (struct access): New flags grp_scalar_read and
17293 grp_scalar_write. Changed description of assignment read and write
17294 flags.
17295 (dump_access): Dump new flags, reorder all of them.
17296 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17297 to detect multiple scalar reads.
17298 (analyze_access_subtree): Use the new scalar read write flags instead
17299 of the old flags. Adjusted comments.
17300
91140cd3
DD
173012011-02-08 DJ Delorie <dj@redhat.com>
17302
17303 PR target/47548
17304 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17305 patterns.
17306
4254bbfe
JM
173072011-02-08 Joseph Myers <joseph@codesourcery.com>
17308
17309 * config/m68k/uclinux.opt: New.
17310 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17311
f1fda84e
JM
173122011-02-08 Joseph Myers <joseph@codesourcery.com>
17313
17314 * config/cris/elf.opt (sim): New Driver option.
17315
4933ae74
JM
173162011-02-08 Joseph Myers <joseph@codesourcery.com>
17317
17318 * config/xtensa/elf.opt: New.
17319 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17320
4ad70280
JM
173212011-02-08 Joseph Myers <joseph@codesourcery.com>
17322
17323 * config/vax/elf.opt: New.
17324 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17325
20893707
JM
173262011-02-08 Joseph Myers <joseph@codesourcery.com>
17327
17328 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17329
b8e7038e
JM
173302011-02-08 Joseph Myers <joseph@codesourcery.com>
17331
17332 * config/gnu-user.opt: New.
17333 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17334 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17335 *-*-uclinux*): Use gnu-user.opt.
17336
e1c5225a
TS
173372011-02-08 Thomas Schwinge <thomas@schwinge.name>
17338
17339 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17340 * config/i386/gnu.h (CPP_SPEC): Likewise.
17341
5e46b0c6
ILT
173422011-02-08 Ian Lance Taylor <iant@google.com>
17343
17344 * common.opt (fcx-limited-range): Add SetByCombined flag.
17345 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17346 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17347 (fassociative-math, freciprocal-math): Likewise.
17348 (funsafe-math-optimizations): Likewise.
17349 * opth-gen.awk: Handle SetByCombined.
17350 * optc-gen.awk: Likewise.
ea4c3e65 17351 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
17352 (set_unsafe_math_optimizations_flags): Likewise.
17353 * doc/options.texi (Option properties): Document SetByCombined.
17354
32243d46
JM
173552011-02-08 Joseph Myers <joseph@codesourcery.com>
17356
17357 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17358 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17359 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17360 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17361 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17362
479c1fb3
SP
173632011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17364
17365 PR tree-optimization/46834
17366 PR tree-optimization/46994
17367 PR tree-optimization/46995
17368 * graphite-sese-to-poly.c (used_outside_reduction): New.
17369 (detect_commutative_reduction): Call used_outside_reduction.
17370 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17371 translate_scalar_reduction_to_array only when at least one
17372 loop-phi/close-phi tuple has been detected.
17373
3865a06f
RG
173742011-02-08 Richard Guenther <rguenther@suse.de>
17375
17376 PR middle-end/47639
17377 * tree-vect-generic.c (expand_vector_operations_1): Update
17378 stmts here ...
17379 (expand_vector_operations): ... not here. Cleanup EH info
17380 and the CFG if required.
17381
62902f3f
RG
173822011-02-08 Richard Guenther <rguenther@suse.de>
17383
17384 PR tree-optimization/47641
17385 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17386 require type compatibility.
17387
0efb9d64
AK
173882011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17389
17390 * gimple-low.c (lower_function_body): Don't remove the location of
17391 the return statement here.
17392 (lower_gimple_return): Do it here instead but only if the return
17393 statement is actually used twice.
17394
034b8ae4
RG
173952011-02-08 Richard Guenther <rguenther@suse.de>
17396
17397 PR tree-optimization/47632
17398 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17399 unused up_to_stmt parameter, return whether cfg-cleanup is
17400 necessary, remove EH info properly.
17401 (forward_propagate_into_gimple_cond): Adjust caller.
17402 (forward_propagate_into_cond): Likewise.
17403 (forward_propagate_comparison): Likewise.
17404 (tree_ssa_forward_propagate_single_use_vars): Make
17405 forward_propagate_comparison case similar to the two others.
17406
298362c8
NC
174072011-02-08 Nick Clifton <nickc@redhat.com>
17408
17409 * config/mn10300/mn10300.opt (mliw): New command line option.
17410 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17411 (liw_bundling): New automaton.
17412 (liw): New attribute.
17413 (liw_op): New attribute.
17414 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17415 (movsi_internal): Add LIW attributes.
17416 (andsi3): Likewise.
17417 (iorsi3): Likewise.
17418 (xorsi3): Likewise.
17419 (addsi3): Separate register and immediate alternatives.
17420 Add LIW attributes.
17421 (subsi3): Likewise.
17422 (cmpsi): Likewise.
17423 (aslsi3): Likewise.
17424 (lshrsi3): Likewise.
17425 (ashrsi3): Likewise.
17426 (liw): New pattern.
17427 * config/mn10300/mn10300.c (liw_op_names): New
17428 (mn10300_print_operand): Handle 'W' operand descriptor.
17429 (extract_bundle): New function.
17430 (check_liw_constraints): New function.
17431 (liw_candidate): New function.
17432 (mn10300_bundle_liw): New function.
17433 (mn10300_reorg): New function.
17434 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17435 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17436 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17437 __LIW__ or __NO_LIW__.
17438 * doc/invoke.texi: Describe the -mliw command line option.
17439
90488014
JDA
174402011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17441
17442 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17443 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17444 pthread_mutex_unlock): Remove.
17445 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17446 * config/pa/t-pa64: Likewise.
17447 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17448 shared libc if not linking against libpthread.
17449 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17450
689ff841
IS
174512011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17452
17453 PR target/47558
17454 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17455 on 10.6 and later to ensure that we always use the unwinder from
17456 the system. Only add -no_compact_unwind when tarteting darwin
17457 10.6 or later.
17458
821014aa
SE
174592011-02-07 Steve Ellcey <sje@cup.hp.com>
17460
17461 PR target/46997
17462 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17463 (vec_interleave_lowv2sf): Ditto.
17464 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17465 (vec_extract_oddv2sf): Ditto.
17466
41cf94fb
MS
174672011-02-07 Mike Stump <mikestump@comcast.net>
17468
62dea57d 17469 PR target/42333
41cf94fb
MS
17470 Add __ieee_divdc3 entry point.
17471 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17472 entry point.
17473 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17474 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17475 * config/darwin.c (darwin_rename_builtins): Add.
17476 * config/darwin-protos.h (darwin_rename_builtins): Add.
17477
ee09a3dd
MM
174782011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17479
17480 PR target/47636
17481 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17482 for the condition.
17483
83296cd0
MS
174842011-02-07 Mike Stump <mikestump@comcast.net>
17485
ea4c3e65 17486 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 17487
0f4e946f
DC
174882011-02-07 Denis Chertykov <chertykov@gmail.com>
17489
17490 PR target/47534
17491 * config/avr/libgcc.S (exit): Move .endfunc
17492
1ec87690
RG
174932011-02-07 Richard Guenther <rguenther@suse.de>
17494
17495 PR tree-optimization/47615
17496 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17497 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17498 (run_scc_vn): Initialize it.
17499 (visit_reference_op_load): Use it.
17500 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17501
b46ae6da
UW
175022011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17503
17504 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17505 DImode trapping arithmetic libfuncs.
17506
c0aae19c
RG
175072011-02-07 Richard Guenther <rguenther@suse.de>
17508
17509 PR tree-optimization/47621
17510 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17511 two duplicates ...
17512 (execute_update_addresses_taken): ... here. Make it more
17513 conservative in what we accept.
17514
295d926b
JM
175152011-02-06 Joseph Myers <joseph@codesourcery.com>
17516
17517 * config/sparc/freebsd.h (ASM_SPEC): Define.
17518 * config/sparc/vxworks.h (ASM_SPEC): Define.
17519
bdeb2471
JM
175202011-02-06 Joseph Myers <joseph@codesourcery.com>
17521
17522 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17523
d5d3781a
SB
175242011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17525
17526 * doc/invoke.texi: Remove reference to compiler internals from
17527 user documentation.
17528
17529 * reg-notes.def: Remove REG_VALUE_PROFILE.
17530 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17531
c42c09fc
JJ
175322011-02-05 Jakub Jelinek <jakub@redhat.com>
17533
17534 PR middle-end/47610
17535 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 17536 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 17537
beea2755
JZ
175382011-02-05 Jie Zhang <jie@codesourcery.com>
17539
17540 PR debug/42631
17541 * web.c (entry_register): Don't clobber the number of the
17542 first uninitialized reference in used[].
17543
a130584a
SP
175442011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17545
17546 PR tree-optimization/46194
17547 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17548 (build_classic_dist_vector_1): Do not represent classic distance
17549 vectors when the access functions are variating in different loops.
17550
962101ac
JM
175512011-02-04 Joseph Myers <joseph@codesourcery.com>
17552
17553 * config/mips/iris6.opt: New.
17554 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17555
55eaaa5b
RH
175562011-02-04 Richard Henderson <rth@redhat.com>
17557 Steve Ellcey <sje@cup.hp.com>
17558
17559 PR target/46997
17560 * config/ia64/predicates.md (mux1_brcst_element): New.
17561 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17562 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17563 (ia64_unpack_sign): New.
17564 (ia64_expand_unpack): Rewrite using new routines.
17565 (ia64_expand_widen_sum): Ditto.
17566 (ia64_expand_dot_prod_v8qi): Ditto.
17567 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17568 routines, add endian check.
17569 (pmpy2_even): Rename from pmpy2_r, add endian check.
17570 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17571 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17572 (vec_widen_smult_hi_v4hi): Ditto.
17573 (vec_widen_umult_lo_v4hi): Ditto.
17574 (vec_widen_umult_hi_v4hi): Ditto.
17575 (mulv2si3): Change endian checks.
17576 (sdot_prodv4hi): Rewrite with new calls.
17577 (udot_prodv4hi): New.
17578 (vec_pack_ssat_v4hi): Add endian check.
17579 (vec_pack_usat_v4hi): Ditto.
17580 (vec_pack_ssat_v2si): Ditto.
17581 (max1_even): Rename from max1_r, add endian check.
17582 (max1_odd): Rename from max1_l, add endian check.
17583 (*mux1_rev): Format change.
17584 (*mux1_mix): Ditto.
17585 (*mux1_shuf): Ditto.
17586 (*mux1_alt): Ditto.
17587 (*mux1_brcst_v8qi): Use new predicate.
17588 (vec_extract_evenv8qi): Remove endian check.
17589 (vec_extract_oddv8qi): Ditto.
17590 (vec_interleave_lowv4hi): Format change.
17591 (vec_interleave_highv4hi): Ditto.
17592 (mix2_even): Rename from mix2_r, add endian check.
17593 (mix2_odd): Rename from mux2_l, add endian check.
17594 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17595 (vec_extract_evenodd_helper): Format change.
17596 (vec_extract_evenv4hi): Remove endian check.
17597 (vec_extract_oddv4hi): Remove endian check.
17598 (vec_interleave_lowv2si): Format change.
17599 (vec_interleave_highv2si): Format change.
17600 (vec_initv2si): Remove endian check.
17601 (vecinit_v2si): Add endian check.
17602 (reduc_splus_v2sf): Add endian check.
17603 (reduc_smax_v2sf): Ditto.
17604 (reduc_smin_v2sf): Ditto.
17605 (vec_initv2sf): Remove endian check.
17606 (fpack): Add endian check.
17607 (fswap): Add endian check.
17608 (vec_interleave_highv2sf): Add endian check.
17609 (vec_interleave_lowv2sf): Add endian check.
17610 (fmix_lr): Add endian check.
17611 (vec_setv2sf): Format change.
17612 (*vec_extractv2sf_0_be): Use shift to extract operand.
17613 (*vec_extractv2sf_1_be): New.
17614 (vec_pack_trunc_v4hi): Add endian check.
17615 (vec_pack_trunc_v2si): Format change.
17616
dcde5957
JJ
176172011-02-04 Jakub Jelinek <jakub@redhat.com>
17618
17619 PR inline-asm/23200
17620 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 17621 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
17622 (stmt_is_replaceable_p): New function.
17623 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17624 callers.
17625 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17626 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17627 SSA_NAME_DEF_STMT.
17628 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17629
a64a8e5a
JM
176302011-02-04 Joseph Myers <joseph@codesourcery.com>
17631
17632 * config/rs6000/xilinx.opt: New.
17633 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17634
4da2ed2f
JM
176352011-02-04 Joseph Myers <joseph@codesourcery.com>
17636
17637 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17638
a6e508f9
AS
176392011-02-03 Anatoly Sokolov <aesok@post.ru>
17640
17641 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17642 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17643 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17644 secondary_reload_info, xtensa_secondary_reload): Remove.
17645 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17646 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17647 (xtensa_preferred_reload_class): Make static. Change return and
17648 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17649 Use CONST_DOUBLE_P predicate.
17650 (xtensa_preferred_output_reload_class): New function.
17651 (xtensa_secondary_reload): Make static.
17652
82dc0de3
JM
176532011-02-03 Joseph Myers <joseph@codesourcery.com>
17654
17655 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17656 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17657 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17658
7fece979
JJ
176592011-02-03 Jakub Jelinek <jakub@redhat.com>
17660
17661 PR middle-end/31490
17662 * output.h (SECTION_RELRO): Define.
17663 (SECTION_MACH_DEP): Adjust.
17664 (get_variable_section): New prototype.
17665 * varpool.c (varpool_finalize_named_section_flags): New function.
17666 (varpool_assemble_pending_decls): Call it.
17667 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17668 * cgraphunit.c (cgraph_output_in_order): Call
17669 varpool_finalize_named_section_flags.
17670 * varasm.c (get_section): Allow section flags conflicts between
17671 relro and read-only sections if the section hasn't been declared yet.
17672 Set SECTION_OVERRIDE after diagnosing section type conflict.
17673 (get_variable_section): No longer static.
17674 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17675 readonly sections that need relocations.
17676 (decl_readonly_section_1): New function.
17677 (decl_readonly_section): Use it.
17678
17679 Revert:
509d65dd 17680 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
17681 Steve Ellcey <sje@cup.hp.com>
17682
17683 PR middle-end/31490
17684 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17685 if section attribute used.
17686
d18d5478
JJ
176872011-02-03 Jakub Jelinek <jakub@redhat.com>
17688
17689 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17690 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17691 (darwin_init_sections): Remove assertion.
17692
6479ed4b
NC
176932011-02-03 Nick Clifton <nickc@redhat.com>
17694
17695 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17696 lt and ge.
38be4072 17697 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
17698 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17699 instead of "n" and "pz".
17700 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17701 CC_FLAG_S.
17702
89843f5d
JJ
177032011-02-03 Jakub Jelinek <jakub@redhat.com>
17704
65450d64
JJ
17705 PR target/47312
17706 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17707 fma, expand FMA_EXPR as fma{,f,l} call.
17708
7d58701c
JJ
17709 PR lto/47274
17710 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17711 copy them into a unsigned char variable and pass address of it to
17712 lto_output_data_stream.
17713
89843f5d
JJ
17714 PR target/47564
17715 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17716 around backend_init_target and lang_dependent_init_target calls.
17717 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17718 (verify_cgraph_node): Don't call set_cfun here. Use
17719 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17720 Set error_found for incorrectly represented calls to thunks.
17721
4deef538
AO
177222011-02-03 Alexandre Oliva <aoliva@redhat.com>
17723
17724 PR debug/43092
17725 PR rtl-optimization/43494
17726 * rtl.h (for_each_inc_dec_fn): New type.
17727 (for_each_inc_dec): Declare.
17728 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17729 (for_each_inc_dec_find_inc_dec): New fn.
17730 (for_each_inc_dec_find_mem): New fn.
17731 (for_each_inc_dec): New fn.
17732 * dse.c (struct insn_size): Remove.
17733 (replace_inc_dec, replace_inc_dec_mem): Remove.
17734 (emit_inc_dec_insn_before): New fn.
17735 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17736 (canon_address): Pass mem modes to cselib_lookup.
17737 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17738 (cselib_lookup_from_insn): Likewise.
17739 (cselib_subst_to_values): Likewise.
17740 * cselib.c (find_slot_memmode): New var.
17741 (cselib_find_slot): New fn. Use it instead of
17742 htab_find_slot_with_hash everywhere.
17743 (entry_and_rtx_equal_p): Use find_slot_memmode.
17744 (autoinc_split): New fn.
17745 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17746 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17747 Deal with autoinc. Special-case recursion into MEMs.
17748 (cselib_hash_rtx): Likewise.
17749 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17750 address and MEM modes.
17751 (cselib_subst_to_values): Add memmode, pass it on.
17752 Deal with autoinc.
17753 (cselib_lookup): Add memmode argument, pass it on.
17754 (cselib_lookup_from_insn): Add memmode.
17755 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17756 (struct cselib_record_autoinc_data): New.
17757 (cselib_record_autoinc_cb): New fn.
17758 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17759 mode to cselib_lookup. Reset autoinced REGs here instead of...
17760 (cselib_process_insn): ... here.
17761 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17762 to cselib_lookup.
17763 (add_uses): Likewise, also to cselib_subst_to_values.
17764 (add_stores): Likewise.
17765 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17766 cselib_subst_to_values.
17767 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17768 * gcse.c (do_local_cprop): Adjusted.
17769 * postreload.c (reload_cse_simplify_set): Adjusted.
17770 (reload_cse_simplify_operands): Adjusted.
17771 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17772
1551d44a
AO
177732011-02-03 Alexandre Oliva <aoliva@redhat.com>
17774
17775 PR tree-optimization/45122
17776 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17777 unsafe assumptions when there's more than one loop exit.
17778
c9485473
MM
177792011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17780
17781 PR target/47272
17782 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17783 Document using vector double with the load/store builtins, and
17784 that the load/store builtins always use Altivec instructions.
17785
17786 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17787 to use altivec memory instructions, even on VSX.
17788 (vector_altivec_store_<mode>): Ditto.
17789
17790 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17791 function.
17792
17793 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17794 V2DF, V2DI support to load/store overloaded builtins.
17795
17796 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17797 altivec load/store builtins for V2DF/V2DI types.
17798
17799 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17800 set avoid indexed addresses on power6 if -maltivec.
17801 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17802 vector_altivec_load/vector_altivec_store builtins.
17803 (altivec_expand_st_builtin): Ditto.
17804 (altivec_expand_builtin): Add VSX memory builtins.
17805 (rs6000_init_builtins): Add V2DI types to internal types.
17806 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17807 load/store builtins.
17808 (rs6000_address_for_altivec): Insure memory address is appropriate
17809 for Altivec.
17810
17811 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17812 vec_vsx_ld and vec_vsx_st.
17813 (vsx_store_<mode>): Ditto.
17814
17815 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17816 variables to hold long long types for VSX vector memory builtins.
17817 (RS6000_BTI_unsigned_long_long): Ditto.
17818 (long_long_integer_type_internal_node): Ditti.
17819 (long_long_unsigned_type_internal_node): Ditti.
17820
17821 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17822 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17823 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17824
17825 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17826 short cuts.
17827 (vec_vsx_st): Ditto.
17828
b24d1acf
JM
178292011-02-02 Joseph Myers <joseph@codesourcery.com>
17830
17831 * config/pa/pa-hpux10.opt: New.
17832 * config/hpux11.opt (pthread): New Driver option.
17833 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17834 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17835
aa18dd0f
JM
178362011-02-02 Joseph Myers <joseph@codesourcery.com>
17837
17838 * config/ia64/vms.opt: New.
17839 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17840
28fc3eee
MM
178412011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17842
17843 PR target/47580
17844 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17845 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17846 generator functions.
17847 (vsx_floatuns<VSi><mode>2): Ditto.
17848 (vsx_fix_trunc<mode><VSi>2): Ditto.
17849 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17850
b5838b1f
JM
178512011-02-02 Joseph Myers <joseph@codesourcery.com>
17852
17853 * config/i386/djgpp.opt (posix): New Driver option.
17854
0db8fa89
GP
178552011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17856
17857 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17858 Move to the unsupported targets list.
17859
9cd4f22a
PB
178602011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17861
17862 PR rtl-optimization/47525
17863 * df-scan.c: Update copyright years.
17864 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17865 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17866
9ed8059c
RO
178672011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17868
17869 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17870 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17871 (ASM_OUTPUT_ASCII): Remove.
17872 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17873
2a737389
JL
178742011-02-02 Jeff Law <law@redhat.com>
17875
17876 PR middle-end/47543
17877 * reload.c (find_reloads_address): Handle reg+d address where both
17878 components are invalid by reloading the entire address.
17879
9dac82c4
SP
178802011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17881 Richard Guenther <rguenther@suse.de>
17882
17883 PR tree-optimization/40979
17884 PR bootstrap/47044
17885 * passes.c (init_optimization_passes): After LIM call copy_prop
17886 and DCE to clean up.
17887 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17888
14dd9aab
SP
178892011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17890
17891 PR tree-optimization/47576
17892 PR tree-optimization/47555
17893 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17894 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17895 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17896 * tree-scalar-evolution.c (follow_ssa_edge): Use
17897 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17898
5cbf5c20
RG
178992011-02-02 Richard Guenther <rguenther@suse.de>
17900
17901 PR tree-optimization/47566
17902 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17903
83d70792
AO
179042011-02-02 Alexandre Oliva <aoliva@redhat.com>
17905
e829c321
AO
17906 PR debug/47106
17907 PR debug/47402
17908 * tree-inline.c (declare_return_variable): Remove unused caller
17909 variable.
17910
83d70792
AO
17911 PR debug/47106
17912 PR debug/47402
17913 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17914 * cfgexpand.c (account_used_vars_for_block): Use them.
17915 * tree-nrv.c (tree_nrv): Likewise.
17916 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17917 (dump_scope_block): Likewise.
17918 (remove_unused_locals): Likewise.
17919
aaa2ac93
AO
17920 PR debug/47106
17921 PR debug/47402
17922 * tree-inline.c (declare_return_variable): Add result decl to
17923 local decls only once.
17924 * gimple-low.c (record_vars_into): Mark newly-created variables
17925 as referenced.
17926
a59d15cf
AO
179272011-02-02 Alexandre Oliva <aoliva@redhat.com>
17928
17929 PR debug/47498
17930 PR debug/47501
17931 PR debug/45136
17932 PR debug/45130
17933 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17934 debug insns.
17935 (no_real_insns_p, schedule_block, set_priorities): Drop special
17936 treatment of boundary debug insns.
38be4072 17937 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
17938 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17939 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17940 (BOUNDARY_DEBUG_INSN_P): Likewise.
17941 (SCHEDULE_DEBUG_INSN_P): Likewise.
17942 * sched-rgn.c (init_ready_list): Drop special treatment of
17943 boundary debug insns.
17944 * final.c (rest_of_clean_state): Clear notes' BB.
17945
6fc2f091
JM
179462011-02-01 Joseph Myers <joseph@codesourcery.com>
17947
17948 * config/openbsd.opt (assert=): New Driver option.
17949
fc523387
JM
179502011-02-01 Joseph Myers <joseph@codesourcery.com>
17951
17952 * config/i386/nto.opt: New.
17953 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17954
6d9821e5
JM
179552011-02-01 Joseph Myers <joseph@codesourcery.com>
17956
17957 * config/i386/netware.opt: New.
17958 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17959
cef932d4
JM
179602011-02-01 Joseph Myers <joseph@codesourcery.com>
17961
17962 * config/interix.opt (posix): New Driver option.
17963
22843acd
DD
179642011-02-01 DJ Delorie <dj@redhat.com>
17965
56490b74
DD
17966 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17967
22843acd
DD
17968 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17969 class for A0/A1.
17970
199c8f2f
SP
179712011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17972
17973 PR tree-optimization/47561
17974 * toplev.c (process_options): Print the Graphite flags. Add
17975 flag_loop_flatten to the list of options requiring Graphite.
17976
926bcf22
JM
179772011-02-01 Joseph Myers <joseph@codesourcery.com>
17978
17979 * config/i386/cygming.opt (posix): New Driver option.
17980
59793c51
JM
179812011-02-01 Joseph Myers <joseph@codesourcery.com>
17982
17983 * config/arm/vxworks.opt: New.
17984 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17985
183c38a4
JM
179862011-02-01 Joseph Myers <joseph@codesourcery.com>
17987
17988 * config/alpha/elf.opt: New.
17989 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17990 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17991
9939e416
RG
179922011-02-01 Richard Guenther <rguenther@suse.de>
17993
17994 PR tree-optimization/47559
17995 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17996 store-motion on references that can throw.
17997
4a3c9687
BS
179982011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17999
18000 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18001 * tree-pass.h (TDF_CSELIB): New macro.
18002 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18003 cselib_lookup): Check for it rather than for TDF_DETAILS.
18004
dd3b31fb
L
180052011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18006
18007 PR driver/47547
18008 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18009 is HOST_BIT_BUCKET.
18010
18011 * opts.c (finish_options): Don't add x_aux_base_name if it is
18012 HOST_BIT_BUCKET.
18013
34c1de79
RG
180142011-02-01 Richard Guenther <rguenther@suse.de>
18015
18016 PR tree-optimization/47555
18017 Revert
18018 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18019
18020 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18021
dd2804d2
SB
180222011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18023
18024 PR gcc/46692
18025 * config/lm32/t-lm32: Add multilib for all CPU options.
18026
3fd3b156
RG
180272011-02-01 Richard Guenther <rguenther@suse.de>
18028
18029 PR tree-optimization/47541
18030 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18031 sure to have a field at offset zero.
18032
f16072b6
JM
180332011-01-31 Joseph Myers <joseph@codesourcery.com>
18034
18035 * config/arc/arc.opt (EB, EL): New Driver options.
18036
6456cf2e
JM
180372011-01-31 Joseph Myers <joseph@codesourcery.com>
18038
18039 * config/alpha/osf5.opt: New.
18040 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18041
cdde6ab4
JM
180422011-01-31 Joseph Myers <joseph@codesourcery.com>
18043
18044 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18045
7633415c
SP
180462011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18047
18048 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18049 -floop-interchange.
18050 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18051 is an alias of -floop-interchange and that it requires the
18052 Graphite infrastructure.
18053 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18054 flag_loop_interchange based on the value of flag_tree_loop_linear.
18055
0425d6f5
JJ
180562011-01-31 Jakub Jelinek <jakub@redhat.com>
18057 Richard Guenther <rguenther@suse.de>
18058
18059 PR tree-optimization/47538
18060 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18061 type instead of r1type, except for comparisons. For right
18062 shifts and comparisons punt if there are mismatches in
18063 sizetype vs. non-sizetype types.
18064
500b16c3
RO
180652011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18066
18067 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18068 avx_runtime.
18069
e279edb0
RO
180702011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18071
18072 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18073 version number.
18074 * configure: Regenerate.
18075
c6092243
RO
180762011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18077
18078 * configure.ac (gcc_cv_ld_static_option): Define.
18079 (gcc_cv_ld_dynamic_option): Define.
18080 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18081 instead.
18082 (HAVE_LD_STATIC_DYNAMIC): Update message.
18083 (LD_STATIC_OPTION): Define.
18084 (LD_DYNAMIC_OPTION): Define.
18085 * configure: Regenerate.
18086 * config.in: Regenerate.
18087 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18088 HAVE_LD_STATIC_DYNAMIC]: Use them.
18089
d7862be3
NC
180902011-01-31 Nick Clifton <nickc@redhat.com>
18091
18092 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18093 registers inside interrupt handlers if the handler is not a leaf
18094 function.
18095
ba4ec0e0
NC
180962011-01-31 Nick Clifton <nickc@redhat.com>
18097
18098 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18099 reg_renumber returning an INVALID_REGNUM.
18100
29a63921
AO
181012011-01-31 Alexandre Oliva <aoliva@redhat.com>
18102
18103 PR libgcj/44341
18104 * doc/install.texi: Document host options discarded when cross
18105 configuring target libraries.
18106
ef591d3f
AO
181072011-01-31 Alexandre Oliva <aoliva@redhat.com>
18108
18109 Reverted:
18110 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18111 PR debug/45136
18112 PR debug/45130
18113 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18114 debug insns.
18115 (no_real_insns_p, schedule_block, set_priorities): Drop special
18116 treatment of boundary debug insns.
38be4072 18117 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
18118 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18119 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18120 (BOUNDARY_DEBUG_INSN_P): Likewise.
18121 (SCHEDULE_DEBUG_INSN_P): Likewise.
18122 * sched-rgn.c (init_ready_list): Drop special treatment of
18123 boundary debug insns.
18124 * final.c (rest_of_clean-state): Clear notes' BB.
18125
61052244
AM
181262011-01-31 Alan Modra <amodra@gmail.com>
18127
18128 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18129 toc relative expressions as we do in print_operand_address.
18130
c4c8962b
KH
181312011-01-30 Kazu Hirata <kazu@codesourcery.com>
18132
18133 * doc/extend.texi: Follow spelling conventions.
18134 * doc/invoke.texi: Fix a typo.
18135
e543b94c
JM
181362011-01-30 Joseph Myers <joseph@codesourcery.com>
18137
18138 * config/hpux11.opt: New.
18139 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18140 ia64*-*-hpux*): Use hpux11.opt.
18141
509d65dd 181422011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
18143
18144 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18145 to tmake_file.
18146
7be03a0e
GP
181472011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18148
18149 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18150 support sites.
18151
419d1d37
GP
181522011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18153
b596ed64
GP
18154 * doc/install.texi (Binaries): Remove outdated reference for
18155 Motorola 68HC11/68HC12 downloads.
18156
181572011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 18158
419d1d37
GP
18159 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18160 Drepper's paper.
18161
4406d0e9
JW
181622011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18163
18164 PR bootstrap/47147
18165 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18166 used by NetBSD.
18167
38be4072 181682011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
18169
18170 * value-prof.c (check_counter): Corrected error message.
18171
0cd98787
JZ
181722011-01-29 Jie Zhang <jie@codesourcery.com>
18173
18174 * config/arm/arm.c (arm_legitimize_reload_address): New.
18175 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18176 arm_legitimize_reload_address.
38be4072 18177 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 18178
9b798ac5
ILT
181792011-01-28 Ian Lance Taylor <iant@google.com>
18180
18181 * godump.c (go_define): Ignore macros whose definitions include
18182 two adjacent operands.
18183
591e29d9
JJ
181842011-01-28 Jakub Jelinek <jakub@redhat.com>
18185
18186 PR target/42894
18187 * varasm.c (force_const_mem): Store copy of x in desc->constant
18188 instead of x itself.
18189 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18190 itself into REG_EQUAL note.
18191
62dcc44a
JM
181922011-01-28 Joseph Myers <joseph@codesourcery.com>
18193
18194 * config/freebsd.opt (posix, rdynamic): New Driver options.
18195
c9f58b9a
RO
181962011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18197
18198 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18199 -Bstatic/-Bdynamic.
18200 * configure: Regenerate.
18201
5f02b9db
JM
182022011-01-27 Joseph Myers <joseph@codesourcery.com>
18203
18204 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18205 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18206
5df97412
AS
182072011-01-27 Anatoly Sokolov <aesok@post.ru>
18208
18209 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18210 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18211 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18212 (s390_preferred_reload_class): Make static. Change return and
18213 'rclass' argument type to reg_class_t.
18214
779d4b91
JH
182152011-01-27 Jan Hubicka <jh@suse.cz>
18216
18217 PR middle-end/46949
18218 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18219 (process_function_and_variable_attributes): Check defined weakrefs.
18220
e80b21ed
MJ
182212011-01-27 Martin Jambor <mjambor@suse.cz>
18222
18223 PR tree-optimization/47228
18224 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18225 build_ref_for_offset.
18226
6dcc4f31
UW
182272011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18228
18229 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18230
509d65dd 182312011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
18232
18233 PR rtl-optimization/46856
18234 * postreload.c (reload_combine_recognize_const_pattern): Do not
18235 separate cc0 setter and user on cc0 targets.
18236
04af8788
NP
182372011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18238
18239 PR c/43082
18240 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18241 passed a VOID_TYPE expression, immediately emit an error and
18242 return error_mark_node.
18243
f7a60085
JL
182442011-01-26 Jeff Law <law@redhat.com>
18245
18246 PR rtl-optimization/47464
18247 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18248 rather than may_trap_p as needed.
18249
5c2917ec
DD
182502011-01-26 DJ Delorie <dj@redhat.com>
18251
18252 PR rtl-optimization/46878
18253 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18254 setter/user dependency as well.
18255
bef16e87
EB
182562011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18257
18258 PR rtl-optimization/44469
18259 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18260 after removing trivially dead basic blocks.
18261
c75d884b
JM
182622011-01-26 Joseph Myers <joseph@codesourcery.com>
18263
18264 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18265 * config/frv/frv.h (LINK_SPEC): Likewise.
18266 * config/i386/netware.h (LINK_SPEC): Likewise.
18267 * config/m68k/linux.h (ASM_SPEC): Likewise.
18268 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18269 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18270 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18271 * config/sparc/linux.h (ASM_SPEC): Likewise.
18272 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18273 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18274
d3153553
JM
182752011-01-26 Joseph Myers <joseph@codesourcery.com>
18276
18277 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18278 * config/frv/frv.h (ASM_SPEC): Likewise.
18279 * config/m68k/linux.h (ASM_SPEC): Likewise.
18280 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18281 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18282 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18283 * config/sparc/linux.h (ASM_SPEC): Likewise.
18284 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18285 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18286
b89b1e9d
JM
182872011-01-26 Joseph Myers <joseph@codesourcery.com>
18288
18289 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18290 * config/frv/frv.h (LINK_SPEC): Likewise.
18291 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18292
12eb1a9c
JM
182932011-01-26 Joseph Myers <joseph@codesourcery.com>
18294
18295 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18296 * config/frv/frv.h (ASM_SPEC): Likewise.
18297 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18298 * config/m68k/linux.h (ASM_SPEC): Likewise.
18299 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18300 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18301 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18302 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18303 * config/sparc/linux.h (ASM_SPEC): Likewise.
18304 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18305 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18306 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18307
e435f098
SE
183082011-01-26 Steve Ellcey <sje@cup.hp.com>
18309
18310 PR target/46997
18311 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18312 (*mux2): Ditto.
18313 (vec_extract_evenodd_help): Ditto.
18314 (vec_extract_evenv4hi): Ditto.
18315 (vec_extract_oddv4hi): Ditto.
18316 (vec_interleave_lowv2si): Ditto.
18317 (vec_interleave_highv2si): Ditto.
18318 (vec_extract_evenv2si): Ditto.
18319 (vec_extract_oddv2si: Ditto.
18320 (vec_pack_trunc_v2si): Ditto.
18321
34f0eee0
JH
183222011-01-22 Jan Hubicka <jh@suse.cz>
18323
18324 PR target/47237
18325 * cgraph.h (cgraph_local_info): New field can_change_signature.
18326 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18327 signature can change.
18328 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18329 can change.
18330 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18331 (cgraph_function_versioning): We can not change signature of functions
18332 that don't allow that.
18333 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18334 (lto_input_node): Likewise.
38be4072
UB
18335 * ipa-inline.c (compute_inline_parameters): Compute
18336 local.can_change_signature.
34f0eee0 18337 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
18338 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18339 functions that can not change signature.
34f0eee0 18340 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
18341 init_cumulative_args): Do not use local calling conventions
18342 for functions that can not change signature.
34f0eee0 18343
980ca891
JH
183442011-01-22 Jan Hubicka <jh@suse.cz>
18345
18346 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18347
768e3c60
RG
183482011-01-26 Richard Guenther <rguenther@suse.de>
18349
18350 PR tree-optimization/47190
61052244
AM
18351 * cgraphunit.c (process_common_attributes): New function.
18352 (process_function_and_variable_attributes): Use it.
768e3c60 18353
21d6a1c7
RG
183542011-01-26 Richard Guenther <rguenther@suse.de>
18355
18356 PR lto/47423
18357 * cgraphbuild.c (record_eh_tables): Record reference to personality
18358 function.
18359
48bb58b1
AO
183602011-01-26 Alexandre Oliva <aoliva@redhat.com>
18361
18362 PR debug/45454
18363 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18364 non-debug insns from moving up.
18365
58c741a6
DK
183662011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18367
18368 PR target/40125
18369 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18370 t-dlldir{,-x} fragment for build and add it to tmake_file.
18371 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18372 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18373 * config/i386/t-dlldir: New file.
18374 (SHLIB_DLLDIR): Define.
18375 * config/i386/t-dlldir-x: New file.
18376 (SHLIB_DLLDIR): Define.
18377 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18378 (SHLIB_INSTALL): Use it.
18379
bff99262
CLT
183802011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18381
18382 PR target/47246
18383 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18384 lower bound of the allowed Thumb-2 coprocessor load/store
18385 index range to -256. Add explaining comment.
18386
82c03907
ILT
183872011-01-25 Ian Lance Taylor <iant@google.com>
18388
18389 * godump.c (go_define): Improve lexing of macro expansion to only
18390 accept expressions which match Go spec.
18391
47ea1edf
DK
183922011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18393
d4dba752 18394 PR c++/43601
47ea1edf
DK
18395 * tree.c (handle_dll_attribute): Handle it.
18396 * doc/extend.texi (@item dllexport): Mention it.
18397 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18398
744f0946
ILT
183992011-01-25 Ian Lance Taylor <iant@google.com>
18400
18401 PR tree-optimization/26854
18402 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18403 (decl_jump_unsafe): Move higher in file, with no other change.
18404 (bind): Set has_jump_unsafe_decl if appropriate.
18405 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18406 (check_earlier_gotos): Likewise.
18407 (c_check_switch_jump_warnings): Likewise.
18408
5734f2b3
JW
184092011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18410
18411 * doc/invoke.texi (Warning Options): Add missing hyphen.
18412 (-fprofile-dir): Minor grammatical fixes.
18413 (-fbranch-probabilities): Likewise.
18414
9bdbdcef
AO
184152011-01-25 Alexandre Oliva <aoliva@redhat.com>
18416
18417 PR debug/45136
18418 PR debug/45130
18419 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18420 debug insns.
18421 (no_real_insns_p, schedule_block, set_priorities): Drop special
18422 treatment of boundary debug insns.
38be4072 18423 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
18424 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18425 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18426 (BOUNDARY_DEBUG_INSN_P): Likewise.
18427 (SCHEDULE_DEBUG_INSN_P): Likewise.
18428 * sched-rgn.c (init_ready_list): Drop special treatment of
18429 boundary debug insns.
18430 * final.c (rest_of_clean-state): Clear notes' BB.
18431
b305e3da
SP
184322011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18433
18434 * Makefile.in (LAMBDA_H): Removed.
18435 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18436 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18437 lambda-trans.o, and tree-loop-linear.o.
18438 (lto-symtab.o): Remove dependence on LAMBDA_H.
18439 (tree-loop-linear.o): Remove rule.
18440 (lambda-mat.o): Same.
18441 (lambda-trans.o): Same.
18442 (lambda-code.o): Same.
18443 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18444 (tree-vect-slp.o): Same.
18445 * hwint.h (gcd): Moved here.
18446 (least_common_multiple): Same.
18447 * lambda-code.c: Removed.
18448 * lambda-mat.c: Removed.
18449 * lambda-trans.c: Removed.
18450 * lambda.h: Removed.
18451 * tree-loop-linear.c: Removed.
18452 * lto-symtab.c: Do not include lambda.h.
18453 * omega.c (gcd): Removed.
18454 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18455 * tree-data-ref.c (print_lambda_vector): Moved here.
18456 (lambda_vector_copy): Same.
18457 (lambda_matrix_copy): Same.
18458 (lambda_matrix_id): Same.
18459 (lambda_vector_first_nz): Same.
18460 (lambda_matrix_row_add): Same.
18461 (lambda_matrix_row_exchange): Same.
18462 (lambda_vector_mult_const): Same.
18463 (lambda_vector_negate): Same.
18464 (lambda_matrix_row_negate): Same.
18465 (lambda_vector_equal): Same.
18466 (lambda_matrix_right_hermite): Same.
18467 * tree-data-ref.h: Do not include lambda.h.
18468 (lambda_vector): Moved here.
18469 (lambda_matrix): Same.
18470 (dependence_level): Same.
18471 (lambda_transform_legal_p): Removed declaration.
18472 (lambda_collect_parameters): Same.
18473 (lambda_compute_access_matrices): Same.
18474 (lambda_vector_gcd): Same.
18475 (lambda_vector_new): Same.
18476 (lambda_vector_clear): Same.
18477 (lambda_vector_lexico_pos): Same.
18478 (lambda_vector_zerop): Same.
18479 (lambda_matrix_new): Same.
18480 * tree-flow.h (least_common_multiple): Removed declaration.
18481 * tree-parloops.c (lambda_trans_matrix): Moved here.
18482 (LTM_MATRIX): Same.
18483 (LTM_ROWSIZE): Same.
18484 (LTM_COLSIZE): Same.
18485 (LTM_DENOMINATOR): Same.
18486 (lambda_trans_matrix_new): Same.
18487 (lambda_matrix_vector_mult): Same.
18488 (lambda_transform_legal_p): Same.
18489 * tree-pass.h (pass_linear_transform): Removed declaration.
18490 * tree-ssa-loop.c (tree_linear_transform): Removed.
18491 (gate_tree_linear_transform): Removed.
18492 (pass_linear_transform): Removed.
18493 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18494 flag_loop_interchange.
18495
6bdfdb96
JJ
184962011-01-25 Jakub Jelinek <jakub@redhat.com>
18497
18498 PR tree-optimization/47265
18499 PR tree-optimization/47443
18500 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18501 if name still has some uses.
18502
e4cba915
MJ
185032011-01-25 Martin Jambor <mjambor@suse.cz>
18504
18505 PR tree-optimization/47382
18506 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18507 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18508
509d65dd 185092011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
18510
18511 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18512 sjlj_except_unwind_info.
18513
194313e2
RG
185142011-01-25 Richard Guenther <rguenther@suse.de>
18515
18516 PR tree-optimization/47426
18517 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18518 visible functions results escape.
18519
147a0bcf
JJ
185202011-01-25 Jakub Jelinek <jakub@redhat.com>
18521
18522 PR target/45701
18523 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18524 (arm_get_frame_offsets): Use it.
18525
db963b52
SP
185262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18527 Jakub Jelinek <jakub@redhat.com>
18528
18529 PR tree-optimization/47271
18530 * tree-if-conv.c (bb_postdominates_preds): New.
18531 (if_convertible_bb_p): Call bb_postdominates_preds.
18532 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18533 (predicate_scalar_phi): Call bb_postdominates_preds.
18534
bcddd3b9
NC
185352011-01-25 Nick Clifton <nickc@redhat.com>
18536
18537 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18538 * config/rx/rx.c (rx_function_value): Likewise.
18539 (rx_promote_function_mode): Likewise.
18540 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18541 in order to make it legitimate.
38be4072
UB
18542 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18543 make sure that the first operand is the same as the result register.
bcddd3b9
NC
18544 (addsi3_unspec): Delete.
18545 (subdi3): Do not accept immediate operands.
18546 (subdi3_internal): Likewise.
18547
7e6cb022
JL
185482011-01-25 Jeff Law <law@redhat.com>
18549
18550 PR rtl-optimization/37273
18551 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18552 handle them like argument loads from stack slots. Do not double
18553 count memory for memory constants and argument loads from stack slots.
18554
9ffa621e
JJ
185552011-01-25 Jakub Jelinek <jakub@redhat.com>
18556
18557 PR tree-optimization/47427
18558 PR tree-optimization/47428
18559 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18560 coalesce if the new root var would be TREE_READONLY.
18561
5bd6e652
RG
185622011-01-25 Richard Guenther <rguenther@suse.de>
18563
18564 PR middle-end/47414
18565 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18566 correct type for TBAA.
18567
7c48ea69
SP
185682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18569
18570 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18571 (close_phi_written_to_memory): Call for_each_index with
18572 dr_indices_valid_in_loop.
18573
38013f25
SP
185742011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18575
18576 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18577 when it is initialized.
18578
5c640e29
SP
185792011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18580
18581 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18582 call to graphite_find_data_references_in_stmt.
18583 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18584 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18585 call to graphite_find_data_references_in_stmt.
18586 (analyze_drs_in_stmts): Same.
18587 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18588 in which the scalar analysis of indices is performed.
18589 (create_data_ref): Same. Update call to dr_analyze_indices.
18590 (find_data_references_in_stmt): Update call to create_data_ref.
18591 (graphite_find_data_references_in_stmt): Same.
18592 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18593 declaration.
18594 (create_data_ref): Same.
18595 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18596 call to create_data_ref.
18597
ac53c069
SP
185982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18599
18600 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 18601 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 18602
3d17df15
SP
186032011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18604
18605 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18606 VAR_DECL, PARM_DECL, and RESULT_DECL.
18607
c513da01
SP
186082011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18609
18610 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18611 in a reduction PBB.
18612 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18613 that have already been marked as PBB_IS_REDUCTION.
18614
3a292d59
SP
186152011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18616
18617 * graphite-scop-detection.c (same_close_phi_node): New.
18618 (remove_duplicate_close_phi): New.
18619 (make_close_phi_nodes_unique): New.
18620 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18621
ba858447
SP
186222011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18623
18624 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18625 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18626 of both data references to be the same.
18627
8d865c56
SP
186282011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18629
38be4072
UB
18630 * graphite-dependences.c (build_lexicographical_constraint): Remove
18631 the gdim parameter.
18632 (build_lexicographical_constraint): Adjust call to
18633 ppl_powerset_is_empty.
8d865c56
SP
18634 (dependence_polyhedron): Same.
18635 (graphite_legal_transform_dr): Same.
18636 (graphite_carried_dependence_level_k): Same.
38be4072
UB
18637 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18638 parameter.
8d865c56
SP
18639 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18640
50034a36
SP
186412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18642
18643 * graphite-sese-to-poly.c
18644 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18645 (close_phi_written_to_memory): New.
18646 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18647 and unshare_expr.
18648
0deada9e
SP
186492011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18650
18651 * doc/install.texi: Update the expected version number of PPL to 0.11.
18652 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18653 #if PPL_VERSION_MINOR < 11.
18654
d7d3d6af
SP
186552011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18656
18657 * graphite-dependences.c: Include graphite-cloog-util.h.
18658 (new_poly_ddr): Inlined into dependence_polyhedron.
18659 (free_poly_ddr): Moved close by new_poly_ddr.
18660 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18661 Early return NULL when ppl_powerset_is_empty returns true.
18662 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18663 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18664 (graphite_legal_transform_dr): Call new_poly_ddr.
18665 (graphite_carried_dependence_level_k): Same.
18666 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18667 (dot_transformed_deps_stmt_1): Removed.
18668 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18669 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18670 (dot_deps_1): Call dot_deps_2.
18671 * Makefile.in (graphite-dependences.o): Add missing dependence on
18672 graphite-cloog-util.h.
18673
28c5db57
SP
186742011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18675
18676 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18677 (build_lexicographical_constraint): Same.
18678 (dependence_polyhedron_1): Same.
18679 (graphite_legal_transform_dr): Same.
18680 (graphite_carried_dependence_level_k): Same.
18681 * graphite-ppl.c (ppl_powerset_is_empty): New.
18682 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18683 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18684
5168d98f
SP
186852011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18686
18687 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18688 the "a followed by b" relation and document it.
18689
4a40293a
SP
186902011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18691
18692 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18693 iteration when the bag of constraints is empty.
18694
271fb6fa
SP
186952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18696
18697 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18698
92d23680
SP
186992011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18700
18701 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18702 nest and two loop depths as parameters.
18703 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18704 lst_perfect_nestify.
18705
2f51deff
SP
187062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18707
18708 * graphite-dependences.c (print_pddr): Call
18709 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18710
07f3593c
SP
187112011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18712
18713 * graphite-ppl.c (debug_gmp_value): New.
18714 * graphite-ppl.h (debug_gmp_value): Declared.
18715
3fae6099
TG
187162011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18717
18718 * doc/install.texi: Document availability of cloog-0.16.
18719
1c3ba85b
SP
187202011-01-25 Vladimir Kargov <kargov@gmail.com>
18721
18722 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18723 invalid postdominance info.
18724
e8ba94fc
JH
187252011-01-24 Jan Hubicka <jh@suse.cz>
18726
18727 PR c/21659
18728 * doc/extend.texi (weak pragma): Drop claim that it must
18729 appear before definition.
18730 * varasm.c (merge_weak, declare_weak): Only sanity check
18731 that DECL is not output at a time it is declared weak.
18732
2b6e2d13
KZ
187332011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18734
18735 * machmode.def: Fixed comments.
1c3ba85b 18736
9841210f
KT
187372011-01-24 Kai Tietz <kai.tietz@onevision.com>
18738
18739 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18740
187412011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
18742
18743 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 18744 WORDS_BIG_ENDIAN.
e046112d 18745
a6c5070a
L
187462011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18747
18748 PR target/46519
18749 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18750 (block_info): Add scanned and prev.
18751 (move_or_delete_vzeroupper_2): Return if the basic block
18752 has been scanned and the upper 128bit state is unchanged
18753 from the last scan.
18754 (move_or_delete_vzeroupper_1): Return true if the exit
18755 state is changed.
18756 (move_or_delete_vzeroupper): Visit basic blocks using the
18757 work-list based algorithm based on vt_find_locations in
18758 var-tracking.c.
18759
18760 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18761
a40d79d7
NC
187622011-01-24 Nick Clifton <nickc@redhat.com>
18763
18764 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18765 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18766 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18767 then define __v850e1__.
18768 * doc/invoke.texi: Document -mv850es.
18769
440eb8de
RH
187702011-01-24 Richard Henderson <rth@redhat.com>
18771
18772 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18773 compound unordered comparisons.
18774 * config/rx/rx.c (rx_split_fp_compare): Remove.
18775 * config/rx/rx-protos.h: Update.
18776 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18777 (cbranchsf4): Don't call rx_split_fp_compare.
18778 (*cbranchsf4): Use rx_split_cbranch.
18779 (*cmpsf): Don't accept "i" constraint.
18780 (*conditional_branch): Only valid after reload.
18781 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18782
3ff79f99
MM
187832011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18784
18785 PR target/47385
18786 * config/rs6000/altivec.md (vector constant splitters): Add
18787 support for creating vector single precision constants if -mvsx is
18788 used and we would create the constant using Altivec primitives.
18789
ff3d9d08
BS
187902011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18791 Richard Sandiford <rdsandiford@googlemail.com>
18792
18793 PR rtl-optimization/47166
18794 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18795 mechanism for PRE_MODIFY and POST_MODIFY.
18796 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18797 reloadreg.
18798
7fcaf152
AS
187992011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18800
8788adb6 18801 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 18802
d09b58c4
JH
188032011-01-22 Jan Hubicka <jh@suse.cz>
18804
18805 PR lto/47333
18806 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18807
e8ff8c5a
JH
188082011-01-22 Jan Hubicka <jh@suse.cz>
18809
18810 PR tree-optimization/43884
18811 PR lto/44334
8788adb6 18812 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
18813 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18814
ccaed3ba
AS
188152011-01-22 Anatoly Sokolov <aesok@post.ru>
18816
18817 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18818 * config/s390/s390.c (s390_register_move_cost,
18819 s390_memory_move_cost): New.
18820 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18821
0cecee06
UW
188222011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18823
18824 PR middle-end/47401
18825 * except.c (sjlj_assign_call_site_values): Move setting the
18826 crtl->uses_eh_lsda flag to ...
18827 (sjlj_mark_call_sites): ... here.
18828 (sjlj_emit_function_enter): Support NULL dispatch label.
18829 (sjlj_build_landing_pads): In a function with no landing pads
18830 that still has must-not-throw regions, generate code to register
18831 a personality function with empty LSDA.
18832
e692f276
RH
188332011-01-21 Richard Henderson <rth@redhat.com>
18834
1b7ae0b7
RH
18835 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18836
3843787f
RH
18837 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18838
e692f276
RH
18839 * compare-elim.c: New file.
18840 * Makefile.in (OBJS-common): Add it.
18841 (compare-elim.o): New.
18842 * common.opt (fcompare-elim): New.
18843 * opts.c (default_options_table): Add OPT_fcompare_elim.
18844 * tree-pass.h (pass_compare_elim_after_reload): New.
18845 * passes.c (init_optimization_passes): Add it.
18846 * recog.h: Protect against re-inclusion.
18847 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18848 * doc/invoke.texi (-fcompare-elim): Document it.
18849 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18850 * doc/tm.texi: Rebuild.
18851
9a7c2050
NC
188522011-01-22 Nick Clifton <nickc@redhat.com>
18853
18854 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18855 rx_split_fp_compare.
18856
15ba5696
NC
188572011-01-22 Nick Clifton <nickc@redhat.com>
18858
18859 * config/rx/rx.md (UNSPEC_CONST): New.
18860 (deallocate_and_return): Wrap the amount popped off the stack in
18861 an UNSPEC_CONST in order to stop it being rejected by
18862 -mmax-constant-size.
18863 (pop_and_return): Add a "(return)" rtx.
18864 (call): Drop the immediate operand.
18865 (call_internal): Likewise.
18866 (call_value): Likewise.
18867 (call_value_internal): Likewise.
18868 (sibcall_internal): Likewise.
18869 (sibcall_value_internal): Likewise.
18870 (sibcall): Likewise. Generate an explicit call using
18871 sibcall_internal.
18872 (sibcall_value): Likewise.
18873 (mov<>): FAIL if a constant operand is not legitimate.
18874 (addsi3_unpsec): New pattern.
9a7c2050 18875
38be4072 18876 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
18877 (ok_for_max_constant): New function.
18878 (gen_safe_add): New function.
18879 (rx_expand_prologue): Use gen_safe_add.
18880 (rx_expand_epilogue): Likewise.
18881 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18882 UNSPEC CONSTs.
18883
caaf13d3
JL
188842011-01-21 Jeff Law <law@redhat.com>
18885
18886 PR tree-optimization/47053
18887 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18888 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18889 statements are deleted.
18890 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18891 is nonempty, then purge dead edges and cleanup the CFG.
18892
12c30f2f
AO
188932011-01-21 Alexandre Oliva <aoliva@redhat.com>
18894
18895 PR debug/47402
18896 Temporarily revert:
18897 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18898 PR debug/47106
18899 * tree-dfa.c (create_var_ann): Mark variable as used.
18900
7360d2ac
JJ
189012011-01-21 Jakub Jelinek <jakub@redhat.com>
18902
aaa52a96
JJ
18903 PR middle-end/45566
18904 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18905 notes from other section in hot/cold partitioning even if
18906 last_action is -3. Increment call_site_base.
18907
7360d2ac
JJ
18908 PR rtl-optimization/47366
18909 * fwprop.c (forward_propagate_into): Return bool. If
18910 any changes are made, -fnon-call-exceptions is used and
18911 REG_EH_REGION note is present, call purge_dead_edges
18912 and return true if it purged anything.
18913 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18914 any EH edges were purged.
18915
e90b336f
JL
189162011-01-21 Jeff Law <law@redhat.com>
18917
18918 PR rtl-optimization/41619
18919 * caller-save.c (setup_save_areas): Break out code to determine
18920 which hard regs are live across calls by examining the reload chains
18921 so that it is always used.
18922 Eliminate code which checked REG_N_CALLS_CROSSED.
18923
3ffe07e1
JJ
189242011-01-21 Jakub Jelinek <jakub@redhat.com>
18925
18926 PR tree-optimization/47355
18927 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18928 NOP has non-debug uses beyond PHIs in new_bb.
18929
1c7d0b34
AO
189302011-01-21 Alexandre Oliva <aoliva@redhat.com>
18931
18932 PR debug/47106
18933 * cfgexpand.c (account_used_vars_for_block): Only account vars
18934 that are annotated as used.
18935 (estimated_stack_frame_size): Don't set TREE_USED.
18936 * tree-dfa.c (create_var_ann): Mark variable as used.
18937
f99cc488
RG
189382011-01-21 Richard Guenther <rguenther@suse.de>
18939
18940 PR middle-end/47395
18941 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18942
3bc27de7
RG
189432011-01-21 Richard Guenther <rguenther@suse.de>
18944
18945 PR tree-optimization/47365
18946 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18947 (vn_reference_lookup_pieces): Adjust.
18948 (vn_reference_lookup): Likewise.
18949 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18950 (vn_reference_lookup_3): Only look through kills if in
18951 VN_WALKREWRITE mode.
18952 (vn_reference_lookup_pieces): Adjust.
18953 (vn_reference_lookup): Likewise.
18954 (visit_reference_op_load): Likewise.
18955 (visit_reference_op_store): Likewise.
18956 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18957 (compute_avail): Likewise.
18958 (eliminate): Likewise.
18959
d8debb1d
JJ
189602011-01-21 Jakub Jelinek <jakub@redhat.com>
18961
18962 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18963 DECL_IGNORED_P non-reg vars if they are used.
18964
3a2df831
JJ
18965 PR tree-optimization/47391
18966 * varpool.c (const_value_known_p): Return false if
18967 decl is volatile.
18968
1dd584a2
KT
189692011-01-21 Kai Tietz <kai.tietz@onevision.com>
18970
18971 PR bootstrap/47215
18972 * config/i386/i386.c (ix86_local_alignment): Handle
18973 case for va_list_type_node is nil.
18974 (ix86_canonical_va_list_type): Likewise.
18975
7f9f095e
AM
189762011-01-21 Alan Modra <amodra@gmail.com>
18977
18978 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18979 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18980
837b01f6
RR
189812011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18982
18983 * config/arm/arm.md (define_attr type): Rename f_load
18984 and f_store to f_fpa_load and f_fpa_store. Update.
18985 (write_conflict): Deal with rename fallout.
18986 (*push_fp_multi): Likewise.
18987 * config/arm/fpa.md (f_load): Use f_fpa_load.
18988 (f_store): Use f_fpa_store.
18989 (*movsf_fpa): Likewise.
18990 (*movdf_fpa): Likewise.
18991 (*movxf_fpa): Likewise.
18992 (*thumb2_movsf_fpa): Likewise.
18993 (*thumb2_movdf_fpa): Likewise.
18994 (*thumb2_movxf_fpa): Likewise.
18995 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18996 f_loadd and f_stored.
18997 (*thumb2_movdi_vfp): Likewise.
18998 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18999 (*thumb2_movsi_vfp): Likewise.
19000 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19001 Use f_loads instead of f_load.
19002 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19003
a1a79768
AS
190042011-01-20 Anatoly Sokolov <aesok@post.ru>
19005
19006 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19007 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19008 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19009 (xtensa_mode_dependent_address_p): New function.
19010 (constantpool_address_p): Make static. Change return type to bool.
19011 Change argument type to const_rtx. Use CONST_INT_P predicate.
19012
427f6cec
AO
190132011-01-20 Alexandre Oliva <aoliva@redhat.com>
19014
19015 PR debug/46583
19016 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19017
583ac69c
JJ
190182011-01-20 Jakub Jelinek <jakub@redhat.com>
19019
19020 PR debug/47283
19021 * cfgexpand.c (expand_debug_expr): Instead of generating
19022 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19023 etc. handling.
19024
93e452ed
RG
190252011-01-20 Richard Guenther <rguenther@suse.de>
19026
19027 PR middle-end/47370
19028 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19029 the pointer operand of MEM_REFs.
19030
28fc44f3
JJ
190312011-01-20 Jakub Jelinek <jakub@redhat.com>
19032
19033 PR tree-optimization/46130
19034 * ipa-split.c (consider_split): If return_bb contains non-virtual
19035 PHIs other than for retval or if split_function would not adjust it,
19036 refuse to split.
19037
ddd268f2
RG
190382011-01-20 Richard Guenther <rguenther@suse.de>
19039
19040 PR tree-optimization/47167
19041 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19042 Revert previous change, only avoid enumeral type changes.
19043
882020aa
MS
190442011-01-19 Mike Stump <mikestump@comcast.net>
19045
19046 * doc/tm.texi.in (BRANCH_COST): Englishify.
19047 * doc/tm.texi (BRANCH_COST): Likewise.
19048
7edb6247
DS
190492011-01-19 Dodji Seketeli <dodji@redhat.com>
19050
19051 PR c++/47291
19052 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
19053 (gen_scheduled_generic_parms_dies): New functions.
19054 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19055 generation for the end of CU compilation.
19056 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 19057
23d5ed5d
AO
190582011-01-19 Alexandre Oliva <aoliva@redhat.com>
19059
19060 PR debug/46240
19061 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19062 debug bind stmt on merge edges.
19063
37d6a488
AO
190642011-01-19 Alexandre Oliva <aoliva@redhat.com>
19065
19066 PR debug/47079
19067 PR debug/46724
19068 * function.c (instantiate_expr): Instantiate incoming rtl of
19069 implicit arguments, and recurse on VALUE_EXPRs.
19070 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19071 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19072
689f2c82
AO
190732011-01-19 Alexandre Oliva <aoliva@redhat.com>
19074
19075 * c-parser.c (c_parser_for_statement): Initialize
19076 collection_expression.
19077
03029de4
JM
190782011-01-19 Joseph Myers <joseph@codesourcery.com>
19079
19080 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19081
3e03217e
JM
190822011-01-19 Joseph Myers <joseph@codesourcery.com>
19083
19084 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19085 (LINK_SHLIB_SPEC): Don't use %(link_path).
19086 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19087
5bbe9b3f
JM
190882011-01-19 Joseph Myers <joseph@codesourcery.com>
19089
19090 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19091 (NO_SHARED_LIB_SUPPORT): Remove.
19092 (LINK_SHLIB_SPEC): Remove one conditional definition.
19093
368e0b39
JM
190942011-01-19 Joseph Myers <joseph@codesourcery.com>
19095
19096 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19097 %{call_shared}.
19098 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19099 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19100 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19101 %{call_shared} and conditionals on these options not being passed.
19102 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19103 %{call_shared}.
19104
ed7656f6
JJ
191052011-01-19 Jakub Jelinek <jakub@redhat.com>
19106
68457901
JJ
19107 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19108 simplify.
19109
ed7656f6
JJ
19110 * ipa-split.c: Spelling fixes.
19111
e0d1958f
RH
191122011-01-19 Richard Henderson <rth@redhat.com>
19113
19114 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19115 (*mulsi3): Likewise.
19116
27098b6b
RH
19117 * longlong.h [__mn10300__] (count_leading_zeros): New.
19118 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19119 [__mn10300__] (add_ssaaaa, subddmmss): New.
19120 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19121 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19122
d6be7c36
UW
191232011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19124
19125 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19126
b1efde2a
RH
191272011-01-19 Richard Henderson <rth@redhat.com>
19128
44217823
RH
19129 * config/mn10300/mn10300.md (addsi3_flags): New.
19130 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19131 (subsi3_flags, subc_internal, subdi3): New.
19132 (subdi3_internal, *subdi3_degenerate): New.
19133 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19134
37a185d7
RH
19135 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19136 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19137 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19138 * config/mn10300/mn10300-protos.h: Update.
19139 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19140 (return_ret): Likewise. Rename from return_internal_regs.
19141 (return_internal): Remove.
19142
040c5757
RH
19143 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19144 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19145 (mn10300_legitimate_constant_p): Likewise.
19146 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19147 (mn10300_frame_size): New.
19148 (mn10300_expand_prologue): Use it.
19149 (mn10300_expand_epilogue): Likewise.
19150 (mn10300_initial_offset): Likewise.
19151 * config/mn10300/mn10300-protos.h: Update.
19152 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19153 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19154 (prologue, epilogue, return_internal): Tidy output code.
19155 (mn10300_store_multiple_operation, return): Likewise.
19156 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19157 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19158 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19159 (load_pic, am33_load_pic): New.
19160 (mn10300_load_pic0, mn10300_load_pic1): New.
19161
bad41521
RH
19162 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19163 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19164 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19165 (cc_flags_for_mode, cc_flags_for_code): New.
19166 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19167 overflow flag is not valid. Validate that the flags we need
19168 for the comparison are valid.
19169 (mn10300_output_cmp): Remove.
19170 (mn10300_output_add): New.
19171 (mn10300_select_cc_mode): Use cc_flags_for_code.
19172 (mn10300_split_cbranch): New.
19173 (mn10300_match_ccmode): New.
19174 (mn10300_split_and_operand_count): New.
19175 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19176 to the function.
19177 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19178 (addsi3): ... here. Use mn10300_output_add.
19179 (*addsi3_flags): New.
19180 (*am33_subsi3, *mn10300_subsi3): Merge...
19181 (subsi3): ... here. Use attribute isa.
19182 (*subsi3_flags): New.
19183 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19184 when possible.
19185 (*am33_andsi3, *mn10300_andsi3): Merge...
19186 (andsi3): ... here.
19187 (*andsi3_flags): New.
19188 (andsi3 splitters): New.
19189 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19190 (iorsi3): ... here.
19191 (*iorsi3_flags): New.
19192 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19193 (xorsi3): ... here.
19194 (*xorsi3_flags): New.
19195 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19196 (one_cmplsi2): ... here.
19197 (*one_cmplsi2_flags): New.
19198 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19199 instead of "dax" in constraints. Use mn10300_split_cbranch.
19200 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19201 use matching constraints to eliminate a self-comparison.
19202 (*integer_conditional_branch): Rename from integer_conditional_branch.
19203 Use int_mode_flags to match CC_REG.
19204 (*cbranchsi4_btst, *btstsi): New.
19205 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19206 mn10300_split_cbranch.
19207 (*am33_cmpsf): Rename from am33_cmpsf.
19208 (*float_conditional_branch): Rename from float_conditional_branch.
19209 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19210 (zero_extendqisi2): ... here.
19211 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19212 (zero_extendhisi2): ... here.
19213 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19214 (extendqisi2): ... here.
19215 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19216 (extendhisi2): ... here.
19217 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19218 (ashlsi3): ... here.
19219 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19220 (lshrsi3): ... here.
19221 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19222 (ashrsi3): ... here.
19223 (consecutive add peephole): Remove.
19224 * config/mn10300/predicates.md (label_ref_operand): New.
19225 (int_mode_flags): New.
19226 (CCZN_comparison_operator): New.
19227
9efb4993
RH
19228 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19229 (throughput_42_latency_43): New reservation.
19230 (mulsidi3, umulsidi3): New expanders.
19231 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19232 the MDR register to allocation; separately allocate the low and
19233 high parts of the DImode result.
19234 (umulsidi3_internal): Similarly.
19235 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19236 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19237 (udivsi3, umodsi3): Remove.
19238 (udivmodsi4, divmodsi4): New expanders.
19239 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19240 (*divmodsi4): Simiarly.
19241 (ext_internal): New.
19242
c25a21f5
RH
19243 * config/mn10300/constraints.md ("z"): New constraint.
19244 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19245 (FIXED_REGISTERS): Don't fix MDR.
19246 (CALL_USED_REGSITERS): Reformat nicely.
19247 (REG_ALLOC_ORDER): Add MDR.
19248 (enum regclass): Add MDR_REGS.
19249 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19250 (IRA_COVER_CLASSES): Add MDR_REGS.
19251 (REGNO_REG_CLASS): Handle MDR_REG.
19252 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19253 (mn10300_register_move_cost): Likewise.
19254 * config/mn10300/mn10300.md (MDR_REG): New.
19255 (*movsi_internal): Handle moves to/from MDR_REGS.
19256
36846b26
RH
19257 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19258 POST_MODIFY.
19259 (mn10300_secondary_reload): Tidy combination reload classes.
19260 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19261 addresses for AM33. Allow symbolic offsets for reg+imm.
19262 (mn10300_regno_in_class_p): New.
19263 (mn10300_legitimize_reload_address): New.
19264 * config/mn10300/mn10300.h (enum reg_class): Remove
19265 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19266 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19267 SP_OR_GENERAL_REGS.
19268 (REG_CLASS_NAMES): Update to match.
19269 (REG_CLASS_CONTENTS): Likewise.
19270 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19271 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19272 (REGNO_IN_RANGE_P): Remove.
19273 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19274 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19275 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19276 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19277 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19278 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19279 (REGNO_GENERAL_P): New.
19280 (HAVE_POST_MODIFY_DISP): New.
19281 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19282 (LEGITIMIZE_RELOAD_ADDRESS): New.
19283 * config/mn10300/mn10300-protos.h: Update.
19284
8b119bb6
RH
19285 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19286 DATA_REGS for AM33 stack-pointer destination.
19287 (mn10300_preferred_output_reload_class): Likewise.
19288 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19289 into a form appropriate for ...
19290 (TARGET_SECONDARY_RELOAD): New.
19291 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19292 * config/mn10300/mn10300-protos.h: Update.
19293 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19294 reload_insi; use the "A" constraint for the scratch; handle AM33
19295 moves of sp to non-address registers.
19296
b1efde2a
RH
19297 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19298 (*movqi_internal): ... here.
19299 (*am33_movhi, *mn10300_movhi): Merge into...
19300 (*movhi_internal): ... here.
19301 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19302 as the source/destination of moves from/to SP.
19303 (movsf): Only allow for AM33-2.
1c3ba85b 19304 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
19305 any integer constant constraint. Only allow for AM33-2. Tidy
19306 all of the alternative outputs.
19307 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19308 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19309 for MN103.
19310 (udivsi3, umodsi3): New patterns for MN103 only.
19311
b899fd78
JR
193122011-01-19 Joern Rennecke <amylaar@spamcop.net>
19313
19314 * doc/tm.texi.in: Spell out that a lack of register class unions
19315 can lead to ICEs.
19316 * doc/tm.texi: Regenerate.
19317
afaaa67d
JJ
193182011-01-19 Jakub Jelinek <jakub@redhat.com>
19319
2e0642cd
JJ
19320 PR rtl-optimization/47337
19321 * dce.c (check_argument_store): New function.
19322 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19323
afaaa67d
JJ
19324 PR tree-optimization/47290
19325 * tree-eh.c (infinite_empty_loop_p): New function.
19326 (cleanup_empty_eh): Use it.
19327
d2cd871f
SE
193282011-01-18 Steve Ellcey <sje@cup.hp.com>
19329
19330 PR target/46997
19331 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19332 (a64_expand_widen_sum): Ditto.
19333 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19334 (vec_extract_evenodd_help): Ditto.
19335 (vec_extract_evenv4hi): Ditto.
19336 (vec_extract_oddv4hi): Ditto.
19337 (vec_extract_evenv2si): Ditto.
19338 (vec_extract_oddv2si): Ditto.
19339 (vec_extract_evenv2sf): Ditto.
19340 (vec_extract_oddv2sf): Ditto.
19341 (vec_pack_trunc_v4hi: Ditto.
19342 (vec_pack_trunc_v2si): Ditto.
19343 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19344 (vec_interleave_highv8qi): Ditto.
19345 (mix1_r): Ditto.
19346 (vec_extract_oddv8qi): Ditto.
19347 (vec_interleave_lowv4hi): Ditto.
19348 (vec_interleave_highv4hi): Ditto.
19349 (vec_interleave_lowv2si): Ditto.
19350 (vec_interleave_highv2si): Ditto.
19351
41a1208a
JDA
193522011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19353
19354 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19355 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19356 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19357 (pa_c_mode_for_suffix): New.
19358 (TARGET_EXPAND_BUILTIN): Define.
19359 (TARGET_C_MODE_FOR_SUFFIX): Define.
19360 (pa_builtins): Define.
19361 (pa_init_builtins): Register __float128 type and init new support
19362 builtins.
19363 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19364 * config/pa/quadlib.c (_U_Qfcopysign): New.
19365
1ecad98e
EB
193662011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19367
19368 PR middle-end/46894
19369 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19370 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19371 are defined.
19372
d4f2460a
UW
193732011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19374
19375 PR tree-optimization/47179
19376 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19377 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19378
4994da65
RG
193792011-01-18 Richard Guenther <rguenther@suse.de>
19380
19381 PR rtl-optimization/47216
19382 * emit-rtl.c: Include tree-flow.h.
19383 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19384 of replicating it with different semantics.
19385 * Makefile.in (emit-rtl.o): Adjust.
19386
1eb458d1
RR
193872011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19388
38be4072 19389 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 19390 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 19391
e7ef91dc
JJ
193922011-01-18 Jakub Jelinek <jakub@redhat.com>
19393
19394 PR rtl-optimization/47299
19395 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 19396 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
19397 * expmed.c (expand_widening_mult): Don't try to optimize constant
19398 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19399 before using it.
19400
535b7874
RW
194012011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19402
19403 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19404 spacing after 'e.g.', typos, comma, hyphenation.
19405
27bf36f3
RH
194062011-01-17 Richard Henderson <rth@redhat.com>
19407
8a5b5449
RH
19408 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19409 (rx_restricted_mem_operand): New.
19410 (rx_shift_operand): Use register_operand.
19411 (rx_source_operand, rx_compare_operand): Likewise.
19412 * config/rx/rx.md (addsi3_flags): New expander.
19413 (adddi3): Rewrite as expander.
19414 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19415 (subsi3_flags): New expander.
19416 (subdi3): Rewrite as expander.
19417 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19418
784f69be
RH
19419 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19420 (rx_init_builtins): Remove sat builtin.
19421 (rx_expand_builtin): Likewise.
19422 * config/rx/rx.md (ssaddsi3): New.
19423 (*sat): Rename from sat. Represent the CC_REG input.
19424
f033541c
RH
19425 * config/rx/predicates.md (rshift_operator): New.
19426 * config/rx/rx.c (rx_expand_insv): Remove.
19427 * config/rx/rx-protos.h: Update.
19428 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19429 operand to the canonical position.
19430 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19431 (*bitclr, *bitclr_in_memory): Similarly.
19432 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19433 (insv): Retain the zero_extract in the expansion.
19434
34fee389
RH
19435 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19436 (bswaphi2, bitinvert, revw): Likewise.
19437
265c835f
RH
19438 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19439 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19440 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19441 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19442 (bitset, bitset_in_memory): Likewise.
19443 (bitinvert, bitinvert_in_memory): Likewise.
19444 (bitclr, bitclr_in_memory): Likewise.
19445 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19446 (rx_strend, rx_cmpstrn): Likewise.
19447 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19448 (bitop peep2 patterns): Remove.
19449
b4d83be3
RH
19450 * config/rx/rx.c (rx_match_ccmode): New.
19451 * config/rx/rx-protos.h: Update.
19452 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19453 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19454 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19455 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19456 (fix_truncsfsi2, floatsisf2): Likewise.
19457 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19458 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19459 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19460 (*subsi3_flags, *xorsi3_flags): New.
19461
d0acb939
RH
19462 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19463
c06fc3d9
RH
19464 * config/rx/rx.c (rx_print_operand): Remove workaround for
19465 unsplit comparison operations.
19466
2882702b
RH
19467 * config/rx/rx.md (movsicc): Split after reload.
19468 (*movsicc): Merge *movsieq and *movsine via match_operator.
19469 (*stcc): New pattern.
19470
6f7310f2
RH
19471 * config/rx/rx.c (rx_float_compare_mode): Remove.
19472 * config/rx/rx.h (rx_float_compare_mode): Remove.
19473 * config/rx/rx.md (cstoresi4): Split after reload.
19474 (*sccc): New pattern.
19475
e963cb1a
RH
19476 * config/rx/predicates.md (label_ref_operand): New.
19477 (rx_z_comparison_operator): New.
19478 (rx_zs_comparison_operator): New.
19479 (rx_fp_comparison_operator): New.
19480 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19481 Validate that the flags are set properly for the comparison.
19482 (rx_gen_cond_branch_template): Remove.
19483 (rx_cc_modes_compatible): Remove.
19484 (mode_from_flags): New.
19485 (flags_from_code): Rename from flags_needed_for_conditional.
19486 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19487 (rx_select_cc_mode): Likewise.
19488 (rx_split_fp_compare): New.
19489 (rx_split_cbranch): New.
19490 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19491 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19492 (*cbranchsf4): Similarly.
19493 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19494 match_operator and rx_split_cbranch.
19495 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19496 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19497 (*cmpsi): Rename from cmpsi.
19498 (*tstsi): Rename from tstsi.
19499 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19500 (*conditional_branch): Rename from conditional_branch.
19501 (*reveresed_conditional_branch): Remove.
19502 (b<code>): Remove expander.
19503 * config/rx/rx-protos.h: Update.
19504
af530bb4
RH
19505 * config/rx/rx.c (rx_compare_redundant): Remove.
19506 * config/rx/rx.md (cmpsi): Don't use it.
19507 * config/rx/rx-protos.h: Update.
19508
27bf36f3
RH
19509 * config/rx/rx-modes.def (CC_F): New mode.
19510 * config/rx/rx.c (rx_select_cc_mode): New.
19511 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19512 * config/rx/rx-protos.h: Update.
19513
d7fde127
RH
195142011-01-17 Richard Henderson <rth@redhat.com>
19515
19516 * except.c (dump_eh_tree): Fix stray ; after for statement.
19517
6ff38230
RG
195182011-01-17 Richard Guenther <rguenther@suse.de>
19519
19520 PR tree-optimization/47313
19521 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19522 handling before copying the body. Properly deal with
19523 by-reference result in SSA form.
19524
114ce554
ILT
195252011-01-17 Ian Lance Taylor <iant@google.com>
19526
bf5cd92b 19527 PR target/47219
114ce554
ILT
19528 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19529 (struct_value_alias_set): Don't define.
19530 (sparc_option_override): Don't set sparc_sr_alias_set and
19531 struct_value_alias_set.
19532 (save_or_restore_regs): Use gen_frame_mem rather than calling
19533 set_mem_alias_set.
19534 (sparc_struct_value_rtx): Likewise.
19535
98c6d93c
L
195362011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19537
19538 PR target/47318
7a81008b 19539 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
19540 (_mm_maskstore_pd): Likewise.
19541 (_mm_maskload_ps): Likewise.
19542 (_mm_maskstore_ps): Likewise.
19543 (_mm256_maskload_pd): Change mask to __m256i.
19544 (_mm256_maskstore_pd): Likewise.
19545 (_mm256_maskload_ps): Likewise.
19546 (_mm256_maskstore_ps): Likewise.
19547
19548 * config/i386/i386-builtin-types.def: Updated.
19549 (ix86_expand_special_args_builtin): Likewise.
19550
19551 * config/i386/i386.c (bdesc_special_args): Update
19552 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19553 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19554 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19555 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19556
19557 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19558 Use <avxpermvecmode> on mask register.
19559 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19560
b9361af2 195612011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
19562 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19563 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
19564
19565 PR target/46655
19566 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19567 if <= USHRT_MAX in 32-bit mode.
19568
b7ae9eb5
RW
195692011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19570
19571 * doc/install.texi (Configuration, Specific): Wrap long
19572 lines in examples. Allow line wrapping in long options
19573 and URLs where beneficial for PDF output.
19574
4377fad9
RS
195752011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19576
19577 * config/mips/mips.c (mips_classify_symbol): Don't return
19578 SYMBOL_PC_RELATIVE for nonlocal labels.
19579
55959ffa 195802011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 19581
55959ffa
EB
19582 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19583
195842011-01-15 Jan Hubicka <jh@suse.cz>
19585
19586 PR tree-optimization/47276
be46831f
JH
19587 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19588 declarations as needed.
19589
05842ff5
MJ
195902011-01-15 Martin Jambor <mjambor@suse.cz>
19591
19592 * common.opt (fdevirtualize): New flag.
19593 * doc/invoke.texi (Option Summary): Document it.
19594 * opts.c (default_options_table): Add devirtualize flag.
19595 * ipa-prop.c (detect_type_change): Return immediately if
19596 devirtualize flag is not set.
19597 (detect_type_change_ssa): Likewise.
19598 (compute_known_type_jump_func): Likewise.
19599 (ipa_analyze_virtual_call_uses): Likewise.
19600
f65cf2b7
MJ
196012011-01-14 Martin Jambor <mjambor@suse.cz>
19602
19603 PR tree-optimization/45934
19604 PR tree-optimization/46302
19605 * ipa-prop.c (type_change_info): New type.
19606 (stmt_may_be_vtbl_ptr_store): New function.
19607 (check_stmt_for_type_change): Likewise.
19608 (detect_type_change): Likewise.
19609 (detect_type_change_ssa): Likewise.
19610 (compute_complex_assign_jump_func): Check for dynamic type change.
19611 (compute_complex_ancestor_jump_func): Likewise.
19612 (compute_known_type_jump_func): Likewise.
19613 (compute_scalar_jump_functions): Likewise.
19614 (ipa_analyze_virtual_call_uses): Likewise.
19615 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19616
eb5bb0fd
JM
196172011-01-14 Joseph Myers <joseph@codesourcery.com>
19618
19619 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19620 * config/i386/i386.opt (msse5): New Alias.
19621
f2060fbe
JM
196222011-01-14 Joseph Myers <joseph@codesourcery.com>
19623
19624 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19625 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19626 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19627 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19628
3a7b4385
JM
196292011-01-14 Joseph Myers <joseph@codesourcery.com>
19630
19631 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19632 -mcpu options.
19633 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19634 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19635 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19636 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19637 Likewise.
19638 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19639
a7b778f8
JM
196402011-01-14 Joseph Myers <joseph@codesourcery.com>
19641
38be4072 19642 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 19643
a7edae0a
MS
196442011-01-14 Mike Stump <mikestump@comcast.net>
19645
19646 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19647 * config/fr30/fr30.md: Likweise
19648 (movsi_push): Likewise.
19649 (movsi_pop): Likewise.
19650 (enter_func): Likewise.
19651 * config/moxie/moxie.md (movsi_push): Likewise.
19652 (movsi_pop): Likewise.
19653
cbabf03f
JM
196542011-01-14 Joseph Myers <joseph@codesourcery.com>
19655
19656 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19657 %{no_archive} %{exact_version}.
19658 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19659 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19660 %{no_archive} %{exact_version}.
19661 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19662 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19663 * config/mips/vxworks.h: Likewise.
19664
438da41a
JM
196652011-01-14 Joseph Myers <joseph@codesourcery.com>
19666
38be4072 19667 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 19668
da290a42
JM
196692011-01-14 Joseph Myers <joseph@codesourcery.com>
19670
19671 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19672 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19673
8989d00e
JM
196742011-01-14 Joseph Myers <joseph@codesourcery.com>
19675
19676 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19677 -nodefaultlib.
19678
a3010a69
JM
196792011-01-14 Joseph Myers <joseph@codesourcery.com>
19680
19681 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19682 for mcpu not cpu.
19683 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19684 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19685 not cpu.
19686 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19687 Don't handle -shlib.
19688
e7f2f537
JM
196892011-01-14 Joseph Myers <joseph@codesourcery.com>
19690
19691 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19692 (CC1_SPEC): Don't handle -profile.
19693
34830bfd
JM
196942011-01-14 Joseph Myers <joseph@codesourcery.com>
19695
19696 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19697 * config/mips/mips.h (CC1_SPEC): Likewise.
19698
b2d36e74
JM
196992011-01-14 Joseph Myers <joseph@codesourcery.com>
19700
19701 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19702 * config/mips/mips.h (CC1_SPEC): Likewise.
19703
dabadc52
JM
197042011-01-14 Joseph Myers <joseph@codesourcery.com>
19705
19706 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19707 * config/m32r/linux.h (LINK_SPEC): Likewise.
19708 * config/mips/linux.h (LINK_SPEC): Likewise.
19709 * config/mips/linux64.h (LINK_SPEC): Likewise.
19710 * config/sparc/linux.h (LINK_SPEC): Likewise.
19711 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19712 LINK_SPEC): Likewise.
19713 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19714
43ee6785
JM
197152011-01-14 Joseph Myers <joseph@codesourcery.com>
19716
19717 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19718 %{version:-v}.
19719 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19720
45e79dfd
JM
197212011-01-14 Joseph Myers <joseph@codesourcery.com>
19722
19723 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19724 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19725
37e9e71d
JM
197262011-01-14 Joseph Myers <joseph@codesourcery.com>
19727
19728 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19729
bb127cd8
RO
197302011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19731
19732 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19733 supports -Bstatic/-Bdynamic.
19734 * configure: Regenerate.
19735
89a012ea 197362011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 19737 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
19738
19739 PR target/46037
19740 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19741 when checking debug_info_level. Test write_symbols instead of
19742 debug_hooks->var_location when setting flag_var_tracking_uninit.
19743
7352c013
RG
197442011-01-14 Richard Guenther <rguenther@suse.de>
19745
19746 PR tree-optimization/47179
19747 * target.def (ref_may_alias_errno): New target hook.
19748 * targhooks.h (default_ref_may_alias_errno): Declare.
19749 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19750 (default_ref_may_alias_errno): New function.
19751 * target.h (struct ao_ref_s): Declare.
19752 * tree-ssa-alias.c: Include target.h.
19753 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19754 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19755 (targhooks.o): Likewise.
19756 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19757 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19758
9a6c9288
RG
197592011-01-14 Richard Guenther <rguenther@suse.de>
19760
19761 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19762
0fdb0d27
RG
197632011-01-14 Richard Guenther <rguenther@suse.de>
19764
19765 PR tree-optimization/47280
19766 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19767 return CFG changes.
19768 (tree_ssa_forward_propagate_single_use_vars): Deal with
19769 CFG changes from associate_plusminus.
19770
8f66db3b
RG
197712011-01-14 Richard Guenther <rguenther@suse.de>
19772
19773 PR middle-end/47281
19774 Revert
19775 2011-01-11 Richard Guenther <rguenther@suse.de>
19776
280d9630
EB
19777 PR tree-optimization/46076
19778 * tree-ssa.c (useless_type_conversion_p): Conversions from
19779 unprototyped to empty argument list function types are useless.
8f66db3b 19780
6c0c92e6
RG
197812011-01-14 Richard Guenther <rguenther@suse.de>
19782
19783 PR tree-optimization/47286
280d9630 19784 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 19785
db09f943
MJ
197862011-01-14 Martin Jambor <mjambor@suse.cz>
19787
19788 PR middle-end/46823
19789 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19790
dde8a3a4
AS
197912011-01-13 Anatoly Sokolov <aesok@post.ru>
19792
19793 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19794 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19795 * config/xtensa/xtensa.c (xtensa_libcall_value,
19796 xtensa_function_value_regno_p): New functions.
19797 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19798
a2b63a20
KT
197992011-01-13 Kai Tietz <kai.tietz@onevision.com>
19800
19801 PR c++/47213
19802 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19803 PE specific hook.
19804 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19805 New function prototype.
19806 * config/i386/winnt.c (i386_pe_assemble_visibility):
19807 Warn only if attribute was specified by user.
19808
b41f0b34
MM
198092011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19810
19811 PR target/47251
19812 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19813 floating point.
19814 (floatunsdidf2_fcfidu): Ditto.
19815
3f3c098d
AK
198162011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19817
19818 * config/s390/s390.c (print_operand_address): Replace 'error' with
19819 'output_operand_lossage'.
19820 (print_operand): Likewise.
19821
29fa95ed
JL
198222011-01-13 Jeff Law <law@redhat.com>
19823
280d9630 19824 PR rtl-optimization/39077
29fa95ed
JL
19825 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19826 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19827 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19828 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19829 * gcse.c (prune_insertions_deletions): New function.
19830 (compute_pre_data): Use it.
19831
71d12276
DS
198322011-01-13 Dodji Seketeli <dodji@redhat.com>
19833
19834 PR debug/PR46973
19835 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19836 static function.
61052244 19837 (prune_unused_types_mark): Use it.
71d12276 19838
9b0f04e7
AB
198392011-01-13 Andrey Belevantsev <abel@ispras.ru>
19840
19841 PR rtl-optimization/45352
1c3ba85b 19842 * sel-sched.c: Update copyright years.
9b0f04e7 19843 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 19844 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 19845
d6a3e264
RH
198462011-01-12 Richard Henderson <rth@redhat.com>
19847
a49b692a
RH
19848 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19849 (TARGET_MD_ASM_CLOBBERS): New.
19850
126b1483
RH
19851 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19852 (TARGET_DELEGITIMIZE_ADDRESS): New.
19853
f3d9d2e0
RH
19854 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19855 (clzsi2, *bsch): New patterns.
19856
d84760c9
RH
19857 * config/mn10300/mn10300.md (INT): New mode iterator.
19858 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19859
ec815d65
RH
19860 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19861 flag_split_wide_types.
19862
d6a3e264
RH
19863 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19864 (mn10300_trampoline_init): Rewrite without a template, an immediate
19865 load and a direct branch.
19866 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19867
0f8ab434
AS
198682011-01-12 Anatoly Sokolov <aesok@post.ru>
19869
19870 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19871 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19872 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19873 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19874
d8a24b65
KT
198752011-01-12 Kai Tietz <kai.tietz@onevision.com>
19876
19877 PR debug/47209
19878 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19879 of type.
19880
56e22cab
JH
198812011-01-12 Jan Hubicka <jh@suse.cz>
19882
19883 PR driver/47244
19884 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19885 (PLUGIN_COND_CLOSE): New macro.
19886 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19887
4b18b3c2
RG
198882011-01-12 Richard Guenther <rguenther@suse.de>
19889
19890 PR lto/47259
19891 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19892 register variables in a MEM_REF.
19893
8e38461c
JM
198942011-01-12 Joseph Myers <joseph@codesourcery.com>
19895
19896 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19897 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19898 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19899 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19900 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19901 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19902 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19903 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19904 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19905 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19906 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19907 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19908 * config/gnu-user.h: New. Copied from linux.h.
19909 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19910 GNU_USER_TARGET_STARTFILE_SPEC.
19911 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19912 GNU_USER_TARGET_ENDFILE_SPEC.
19913 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19914 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19915 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19916 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19917 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19918 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19919 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19920 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19921 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19922 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19923 * config/arm/linux-eabi.h (CC1_SPEC): Use
19924 GNU_USER_TARGET_CC1_SPEC.
19925 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19926 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19927 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19928 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19929 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19930 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19931 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19932 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19933
a570fc16
RG
199342011-01-12 Richard Guenther <rguenther@suse.de>
19935
19936 PR other/46946
19937 * doc/invoke.texi (ffast-math): Document it is turned on
19938 with -Ofast.
19939
b0223c3e
JH
199402011-01-12 Jan Hubicka <jh@suse.cz>
19941
19942 PR tree-optimization/47233
ca1e00b3
EB
19943 * opts.c (common_handle_option): Disable ipa-reference with profile
19944 feedback.
b0223c3e 19945
1c3ba85b 199462011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
19947
19948 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
19949 error message.
19950
d853ee42
NP
199512011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19952
19953 * c-parser.c (c_lex_one_token): Updated and reindented some
19954 comments. No changes in code.
19955
4053a5a0
ILT
199562011-01-11 Ian Lance Taylor <iant@google.com>
19957
19958 * godump.c (go_output_var): Don't output the variable if there is
19959 already a type with the same name.
19960
fa3e04d2
ILT
199612011-01-11 Ian Lance Taylor <iant@google.com>
19962
19963 * godump.c (go_format_type): Don't generate float80.
19964
885fe07c
RH
199652011-01-11 Richard Henderson <rth@redhat.com>
19966
72d6e3c5
RH
19967 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19968 declaration. Rewrite for both speed and size.
19969 (mn10300_address_cost_1): Remove.
19970 (mn10300_register_move_cost): New.
19971 (mn10300_memory_move_cost): New.
19972 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19973 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19974 extensions, shifts, BSWAP, CLZ.
19975 (mn10300_wide_const_load_uses_clr): Remove.
19976 (TARGET_REGISTER_MOVE_COST): New.
19977 (TARGET_MEMORY_MOVE_COST): New.
19978 * config/mn10300/mn10300-protos.h: Update.
19979 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19980
df37c023
RH
19981 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19982 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19983 * config/mn10300/mn10300-protos.h: Update.
19984 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19985 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19986 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19987 (*test_int_bitfield, *test_byte_bitfield): Remove.
19988 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 19989 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 19990
85a337b5
RH
19991 * config/mn10300/constraints.md ("c"): Rename from "A".
19992 ("A", "D"): New constraint letters.
19993 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19994 (fmssf4, fnmasf4, fnmssf4): Likewise.
19995
a5c727e3
RH
19996 * config/mn10300/mn10300.md (isa): New attribute.
19997 (enabled): New attribute.
19998
0d9e23f4
RH
19999 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20000 (abssf2, negsf2): Define only for hardware fp.
20001 (sqrtsf2): Reformat.
20002 (addsf3, subsf3, mulsf3): Merge expander and insn.
20003
c157b3f0
RH
20004 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20005 (DEBUGGER_AUTO_OFFSET): Remove.
20006 (DEBUGGER_ARG_OFFSET): Remove.
20007
cc909bba
RH
20008 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20009 Emit register stores with the same offsets as the hardware.
20010 (mn10300_store_multiple_operation): Don't check that the register
20011 save offsets are monotonic.
20012 * config/mn10300/mn10300-protos.h: Update.
20013
e3b5c2f3
RH
20014 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20015
885fe07c
RH
20016 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20017 in terms of the value on the stack, not the MDR register.
20018
6e701822
JH
200192011-01-11 Jan Hubicka <jh@suse.cz>
20020
20021 PR lto/45721
20022 PR lto/45375
20023 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20024 (symbol_alias_set_destroy, symbol_alias_set_contains,
20025 propagate_aliases_backward): Declare.
20026 * lto-streamer-out.c (struct sets): New sturcture.
20027 (trivally_defined_alias): New function.
20028 (output_alias_pair_p): Rewrite.
20029 (output_unreferenced_globals): Fix output of alias pairs.
20030 (produce_symtab): Likewise.
20031 * ipa.c (function_and_variable_visibility): Set weak alias destination
20032 as needed in lto.
20033 * varasm.c (symbol_alias_set_t): Remove.
20034 (symbol_alias_set_destroy): Export.
20035 (propagate_aliases_forward, propagate_aliases_backward): New functions
20036 based on ...
20037 (compute_visible_aliases): ... this one; remove.
20038 (trivially_visible_alias): New
20039 (trivially_defined_alias): New.
20040 (remove_unreachable_alias_pairs): Rewrite.
20041 (finish_aliases_1): Reorganize code checking if alias is defined.
20042 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20043 in LTO mode.
20044
1b248907
RG
200452011-01-11 Richard Guenther <rguenther@suse.de>
20046
20047 PR tree-optimization/46076
20048 * tree-ssa.c (useless_type_conversion_p): Conversions from
20049 unprototyped to empty argument list function types are useless.
20050
b1923f0a
RG
200512011-01-11 Richard Guenther <rguenther@suse.de>
20052
20053 PR middle-end/45235
20054 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20055 volatile MEMs as MEM_READONLY_P.
20056
e98965af
RG
200572011-01-11 Richard Guenther <rguenther@suse.de>
20058
20059 PR tree-optimization/47239
20060 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20061
9f9ca914
JL
200622011-01-11 Jeff Law <law@redhat.com>
20063
1ee3ea05 20064 PR tree-optimization/47086
9f9ca914
JL
20065 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20066 IVs from statements that might throw.
20067
345fdcb7
JH
200682011-01-10 Jan Hubicka <jh@suse.cz>
20069
20070 PR lto/45375
20071 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20072
c459c97b
JH
200732011-01-10 Jan Hubicka <jh@suse.cz>
20074
20075 PR lto/45375
20076 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20077 when correcting profile.
20078
06c9eb51
JH
200792011-01-10 Jan Hubicka <jh@suse.cz>
20080
20081 PR lto/46083
20082 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20083 DECL_FINI_PRIORITY.
20084 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20085 Restore DECL_FINI_PRIORITY.
20086
ae9fd815
RW
200872011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20088
20089 * doc/gimple.texi: Fix quoting of multi-word return values in
20090 @deftypefn statements. Ensure presence of return value. Wrap
20091 overlong @deftypefn lines.
20092 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20093 descriptions of removed functions.
20094 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20095 of multi-word return value in @deftypefn statement.
20096
0ecb4a7c
RW
200972011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20098
20099 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20100 (Conditional Expressions, Logical Operators)
20101 (Statement and operand traversals): Do not indent smallexample
20102 code. Fix duplicate function argument in example.
20103
2e5e346d
JL
201042011-01-10 Jeff Law <law@redhat.com>
20105
1ee3ea05 20106 PR tree-optimization/47141
2e5e346d
JL
20107 * ipa-split.c (split_function): Handle case where we are
20108 returning a value and the return block has a virtual operand phi.
20109
cf9712cc
JH
201102011-01-10 Jan Hubicka <jh@suse.cz>
20111
1c3ba85b 20112 PR tree-optimization/47234
cf9712cc
JH
20113 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20114 (pass_feedback_split_functions): Declare.
20115 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20116 tree-profile.
20117 * ipa-split.c (gate_split_functions): Update comments; disable
20118 split-functions for profile_arc_flag and branch_probabilities.
20119 (gate_feedback_split_functions): New function.
20120 (execute_feedback_split_functions): New function.
20121 (pass_feedback_split_functions): New global var.
20122
94cd932c
L
201232011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20124
20125 PR lto/46760
20126 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20127 calling gimple_call_set_cannot_inline.
20128
fbbfcaf1
IS
201292011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20130
20131 * config/darwin-sections.def: Remove unused section.
20132
d06865bf
DK
201332011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20134
20135 PR c++/47218
20136 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20137
96bbfbac
NP
201382011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20139
20140 PR objc/47232
20141 * c-parser.c (c_parser_declaration_or_fndef): Improved
20142 error message.
20143
1ba6516f
KT
201442011-01-09 Kai Tietz <kai.tietz@onevision.com>
20145
20146 * config/i386/winnt.c (i386_pe_start_function): Make sure
20147 to switch back to function's section.
20148
0c5d770e
IS
201492011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20150
20151 PR gcc/46902
20152 PR testsuite/46912
20153 * plugin.c: Move include of dlfcn.h from here...
20154 * system.h: ... to here.
20155
201562011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
20157
20158 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20159 file name.
20160 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20161 two extra empty pages in PDF output.
20162
046608a3
NP
201632011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20164
20165 PR objc/47078
20166 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20167 for error recovery purposes behave as if it was not specified so
20168 that the default type is usd.
20169
8cb114b9
JH
201702011-01-07 Jan Hubicka <jh@suse.cz>
20171
20172 PR tree-optmization/46469
20173 * ipa.c (function_and_variable_visibility): Clear needed flags on
20174 nodes with external decls; handle weakrefs merging correctly.
20175
b294a75e
JM
201762011-01-07 Joseph Myers <joseph@codesourcery.com>
20177
20178 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20179 not false.
20180
96bdf9b4
JH
201812011-01-07 Jan Hubicka <jh@suse.cz>
20182
f60c2554 20183 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
20184 and no longer claim that gold is required for linker plugin.
20185 * configure: Regenerate.
20186 * gcc.c (PLUGIN_COND): New macro.
20187 (LINK_COMMAND_SPEC): Use it.
20188 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20189 * config.in (HAVE_LTO_PLUGIN): New.
20190 * configure.ac (--with-lto-plugin): New parameter; autodetect
20191 HAVE_LTO_PLUGIN.
20192
17afc0fe
JH
201932011-01-07 Jan Hubicka <jh@suse.cz>
20194
20195 PR tree-optimization/46367
20196 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20197 when we can update original.
20198 (cgraph_mark_inline_edge): Sanity check.
20199 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20200
d4c48c0f
UW
202012011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20202
20203 * config/spu/spu.h (ASM_COMMENT_START): Define.
20204
96f5b137
L
202052011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20206
20207 PR driver/42445
20208 * gcc.c (%>S): New.
20209 (SWITCH_KEEP_FOR_GCC): Likewise.
20210 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20211 (do_spec_1): Handle "%>".
20212
20213 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20214
c6a8f6de
JJ
202152011-01-07 Jakub Jelinek <jakub@redhat.com>
20216
c21bbd7a
JJ
20217 PR target/47201
20218 * config/i386/i386.c (ix86_delegitimize_address): If
20219 simplify_gen_subreg fails, return orig_x.
20220
c6a8f6de
JJ
20221 PR bootstrap/47187
20222 * value-prof.c (gimple_stringop_fixed_value): Handle
20223 lhs of the call properly.
20224
fe95fbf9
JH
202252011-01-07 Jan Hubicka <jh@suse.cz>
20226
20227 PR lto/45375
20228 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20229
14d11d40
IS
202302011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20231
72e961c8
EB
20232 * target.def (function_switched_text_sections): New hook.
20233 * doc/tm.texi: Regenerated.
20234 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20235 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
20236 (final_scan_insn): Call function_switched_text_sections when a
20237 mid-function section change occurs.
14d11d40 20238 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
20239 * config/darwin-protos.h (darwin_function_switched_text_sections):
20240 Likewise.
14d11d40 20241 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 20242 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20243
0b764288
IS
202442011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20245
20246 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20247 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20248 the secondary code fragment when outputting for DWARF == 2.
20249
2ac6bb04
AS
202502011-01-07 Anatoly Sokolov <aesok@post.ru>
20251
20252 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20253 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20254 Remove.
20255 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20256 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20257
9f82de11
EB
202582011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20259
20260 PR debug/46704
280d9630
EB
20261 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20262 when it is not empty.
9f82de11
EB
20263
202642011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 20265
1ed72abf 20266 Bobcat Enablement
14b52538 20267 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 20268 (case ${target}): Add btver1.
14b52538 20269 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 20270 -march=native recognize btver1 processors.
14b52538 20271 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 20272 btver1 def_and_undef
14b52538 20273 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
20274 btver1 cost table.
20275 (m_BTVER1): New definition.
20276 (m_AMD_MULTIPLE): Includes m_BTVER1.
20277 (initial_ix86_tune_features): Add btver1 tune.
20278 (processor_target_table): Add btver1 entry.
20279 (static const char *const cpu_names): Add btver1 entry.
20280 (software_prefetching_beneficial_p): Add btver1.
20281 (ix86_option_override_internal): Add btver1 instruction sets.
20282 (ix86_issue_rate): Add btver1.
20283 (ix86_adjust_cost): Add btver1.
14b52538 20284 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
20285 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20286 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
20287 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20288
e1a973d8
RO
202892011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20290
20291 PR target/43309
20292 * config/i386/i386.c (legitimize_tls_address)
20293 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20294 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20295 (tls_initial_exec_64_sun): New pattern.
20296
c73f67c5
GP
202972011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20298
20299 * doc/invoke.texi (Overall Options): Improve wording and markup
20300 of the description of -wrapper.
20301
bc4c6f9c
JM
203022011-01-06 Joseph Myers <joseph@codesourcery.com>
20303
20304 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20305 rdynamic, threads): New Driver options.
20306
adb75db0
RO
203072011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20308
20309 PR target/38118
20310 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20311 if coming from .tdata.
20312 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20313
402c1cb4
JH
203142011-01-06 Jan Hubicka <jh@suse.cz>
20315
20316 PR lto/47188
20317 * collect2.c (main): Do not enable LTOmode when plugin is active.
20318
a4da6485
RO
203192011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20320
20321 PR other/45915
20322 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20323 --version output if supported.
20324 * configure: Regenerate.
20325
028dbdf4
JM
203262011-01-06 Joseph Myers <joseph@codesourcery.com>
20327
20328 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20329 Driver options.
20330
dfe776dd
JJ
203312011-01-06 Jakub Jelinek <jakub@redhat.com>
20332
20333 PR c/47150
20334 * c-convert.c (convert): When converting a complex expression
20335 other than COMPLEX_EXPR to a different complex type, ensure
20336 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20337 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20338 when converting COMPLEX_TYPE.
20339
210dedfe
IR
203402011-01-06 Ira Rosen <irar@il.ibm.com>
20341
20342 PR tree-optimization/47139
20343 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20344 only the last reduction value is used outside the loop. Update
20345 documentation.
20346
cd33a412
JM
203472011-01-05 Joseph Myers <joseph@codesourcery.com>
20348
20349 * config/rtems.opt: New.
20350 * config.gcc (*-*-rtems*): Use rtems.opt.
20351
819edd94
CF
203522011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20353
20354 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20355 processors do not support 3DNow instructions.
20356
dc242c4a
UW
203572011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20358
20359 * config/spu/spu.c (spu_option_override): Set parameter
20360 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20361
be286227
JH
203622011-01-05 Jan Hubicka <jh@suse.cz>
20363
20364 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20365 at the command line.
20366
644e637f
MJ
203672011-01-05 Martin Jambor <mjambor@suse.cz>
20368
20369 PR lto/47162
20370 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20371 deltas on streamed outgoing edges.
20372 (output_node_opt_summary): Output info for outgoing edges only when
20373 the node is in new parameter set.
20374 (output_cgraph_opt_summary): New parameter set, passed to the two
20375 aforementioned functions. Update its forward declaration and its
20376 callee too.
20377
7bd11157
TT
203782011-01-05 Tom Tromey <tromey@redhat.com>
20379
20380 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20381 operator to c_finish_omp_atomic.
20382 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20383 (build_unary_op): Update.
20384 (build_modify_expr): Update.
20385 (build_asm_expr): Update.
20386
f626b979
UW
203872011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20388
20389 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20390 newly inserted insns.
20391 (pad_bb): Likewise.
20392 (spu_emit_branch_hint): Likewise.
20393 (insert_hbrp_for_ilb_runout): Likewise.
20394 (spu_machine_dependent_reorg): Call df_finish_pass after
20395 schedule_insns returns.
20396
4c825c02
UW
203972011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20398
20399 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20400
5e9fba51
EB
204012011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20402
20403 PR tree-optimization/47005
20404 * tree-sra.c (struct access): Add 'non_addressable' bit.
20405 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20406 (decide_one_param_reduction): Return 0 if the parameter is passed by
20407 reference and one of the accesses in the group is non_addressable.
20408
3ebb5ca6
EB
204092011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20410
20411 PR tree-optimization/47056
20412 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20413 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20414 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20415
d5d4d14e
EB
204162011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20417
20418 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20419 initializer. Skip view conversions from aggregate types.
20420
d996ef70
KT
204212011-01-04 Kai Tietz <kai.tietz@onevision.com>
20422
20423 PR bootstrap/47055
20424 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20425
509d65dd 204262011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
20427
20428 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20429 obvious typo.
20430
55c623b5
UW
204312011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20432
20433 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20434 on empty epilogue sequences.
20435
b98d6b35
JM
204362011-01-04 Joseph Myers <joseph@codesourcery.com>
20437
20438 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20439 non-static): New Driver options.
20440
a0d43bac
JZ
204412011-01-04 Jie Zhang <jie@codesourcery.com>
20442
20443 PR driver/47137
20444 * gcc.c (default_compilers[]): Set combinable field to 0
20445 for all assembly languages.
20446
2b18eb32
MX
204472011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20448
20449 * config/mips/loongson3a.md: New file.
20450 * config/mips/mips.md: Include loongson3a.md.
20451 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20452 TUNE_LOONGSON_3A.
20453
42a48c4f
EB
204542011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20455
20456 PR middle-end/47017
20457 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20458 instead of convert_memory_address_addr_space on the base expression.
20459
9c1732c4
UW
204602011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20461
20462 * config/spu/spu.c (spu_option_override): Update error text
20463 for bad -march= / -mtune= values.
20464
aa474365
UW
204652011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20466
20467 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20468 if branch-hint optimization will be performed.
20469
9766135b
JJ
204702011-01-03 Jakub Jelinek <jakub@redhat.com>
20471
371556ee
JJ
20472 PR tree-optimization/47148
20473 * ipa-split.c (split_function): Convert arguments to
20474 DECL_ARG_TYPE if possible.
20475
1ac12fa2
JJ
20476 PR tree-optimization/47155
20477 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20478 when computing uns.
20479
9766135b
JJ
20480 PR rtl-optimization/47157
20481 * combine.c (try_combine): If undobuf.other_insn becomes
20482 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20483 and set *new_direct_jump_p too.
20484
f4a2e571
SP
204852011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20486
20487 PR tree-optimization/47021
20488 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20489
9f8e43c0
JJ
204902011-01-03 Jakub Jelinek <jakub@redhat.com>
20491
20492 * gcc.c (process_command): Update copyright notice dates.
20493 * gcov.c (print_version): Likewise.
20494 * gcov-dump.c (print_version): Likewise.
20495 * mips-tfile.c (main): Likewise.
20496 * mips-tdump.c (main): Likewise.
20497
1a2e38f3
MJ
204982011-01-03 Martin Jambor <mjambor@suse.cz>
20499
20500 PR tree-optimization/46801
20501 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20502 aggregate fields start at byte boundary instead of the bit-field flag.
20503
56b721c5
L
205042011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20505
20506 PR driver/47137
20507 * gcc.c (main): Revert revision 168407.
20508
839d549b
MJ
205092011-01-03 Martin Jambor <mjambor@suse.cz>
20510
20511 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20512
4ce99a20 205132011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
20514
20515 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20516 vector optab to expand vector/scalar shift, update gimple to vector.
20517
76df0ae6
MJ
205182011-01-03 Martin Jambor <mjambor@suse.cz>
20519
20520 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20521 a thunk.
20522
ce47fda3
MJ
205232011-01-03 Martin Jambor <mjambor@suse.cz>
20524
20525 PR tree-optimization/46984
20526 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20527 HOST_WIDE_INT.
20528 (cgraph_create_indirect_edge): Fixed line length.
20529 (cgraph_indirect_call_info): Declare.
20530 (cgraph_make_edge_direct) Update declaration.
20531 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20532 (cgraph_create_indirect_edge): Use it.
20533 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20534 callees.
20535 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20536 the new thunk_delta representation.
20537 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20538 HOST_WIDE_INT.
20539 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20540 (ipa_read_indirect_edge_info): Likewise.
20541 * lto-cgraph.c (output_edge_opt_summary): New function.
20542 (output_node_opt_summary): Call it on all outgoing edges.
20543 (input_edge_opt_summary): New function.
20544 (input_node_opt_summary): Call it on all outgoing edges.
20545
1e67fa1f
L
205462011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20547
20548 PR driver/47137
20549 * gcc.c (main): Don't check have_o when settting combine_inputs.
20550
6656b2ac
EB
205512011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20552
20553 * regrename.c: Add general comment describing the pass.
20554 (struct du_head): Remove 'length' field.
20555 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20556 (regrename_optimize): Do not sort chains. Rework comments, add others.
20557 Force renaming to the preferred class (if any) in the first pass and do
20558 not consider registers that belong to it in the second pass.
20559 (create_new_chain): Do not set 'length' field.
20560 (scan_rtx_reg): Likewise.
20561
bc470c24
JJ
205622011-01-02 Jakub Jelinek <jakub@redhat.com>
20563
4e996296
JJ
20564 PR tree-optimization/47140
20565 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20566 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20567 to bit_value_binop.
20568
bc470c24 20569 PR rtl-optimization/47028
6656b2ac
EB
20570 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20571 parm_birth_insn instead of at the beginning of first bb.
bc470c24 20572
5af62fcd 205732011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
20574
20575 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20576 Remove the word "see" before "@pxref".
20577 * doc/rtl.texi: Remove the word "see" before "@pxref".
20578
0e20c89f
JH
205792011-01-01 Jan Hubicka <jh@suse.cz>
20580
6656b2ac
EB
20581 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20582 memory.
0e20c89f 20583
220e83ca
KT
205842011-01-01 Kai Tietz <kai.tietz@onevision.com>
20585
20586 PR target/38662
6656b2ac 20587 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 20588
ad41bd84 20589\f
797103eb 20590Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
20591
20592Copying and distribution of this file, with or without modification,
20593are permitted in any medium without royalty provided the copyright
20594notice and this notice are preserved.