]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
sol2.h (ASM_SPEC): Split into ...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
fcf7471a
RO
12011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * config/sol2.h (ASM_SPEC): Split into ...
4 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
6 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
7 (ASM_SPEC): Use ASM_SPEC_BASE.
8 * config/sparc/sol2.h (ASM_SPEC): Redefine.
9
1e6a67d1
GJL
102011-07-07 Georg-Johann Lay <avr@gjlay.de>
11
12 * config/avr/avr.md (*reload_insi): Change predicate #1 to
13 const_int_operand. Ditto for peep2 producing this insn.
14 Add argument to output_reload_insisf call.
15 (*movsi,*movsf): Add argument to output_movsisf call.
16 (*reload_insf): New insn and new peep2 to produce it.
17 * config/avr/avr-protos.h (output_movsisf): Change prototype.
18 (output_reload_insisf): Change prototype.
19 * config/avr/avr.c (avr_asm_len): New function.
20 (output_reload_insisf): Rewrite.
21 (output_movsisf): Change prototype. output_reload_insisf for
22 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
23 (adjust_insn_length): Add argument to output_movsisf and
24 output_reload_insisf call.
25
6a4bdc79
BS
262011-07-07 Bernd Schmidt <bernds@codesourcery.com>
27
28 * emit-rtl.c (paradoxical_subreg_p): New function.
29 * rtl.h (paradoxical_subreg_p): Declare.
30 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
31 apply_distributive_law, simplify_comparison, simplify_set): Use it.
32 * cse.c (record_jump_cond, cse_insn): Likewise.
33 * expr.c (force_operand): Likewise.
34 * rtlanal.c (num_sign_bit_copies1): Likewise.
35 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
36 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
37 (push_reload): Use precision to check for paradoxical subregs.
38 * expmed.c (extract_bit_field_1): Likewise.
39
46c9550f
BS
40 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
41 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
42 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
43 simplify_set, simplify_logical, expand_compound_operation,
44 make_extraction, force_to_mode, if_then_else_cond, extended_count,
45 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
46 record_value_for_reg): Likewise.
47 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
48 * simplify-rtx. c (simplify_unary_operation_1,
49 simplify_binary_operation_1, simplify_const_relational_operation):
50 Likewise.
51
5511bc5a
BS
52 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
53 instead of GET_MODE_BITSIZE where appropriate.
54 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
55 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
56 init_num_sign_bit_copies_in_rep): Likewise.
57 * cse.c (fold_rtx, cse_insn): Likewise.
58 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
59 * simplify-rtx.c (simplify_unary_operation_1,
60 simplify_const_unary_operation, simplify_binary_operation_1,
61 simplify_const_binary_operation, simplify_ternary_operation,
62 simplify_const_relational_operation, simplify_subreg): Likewise.
63 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
64 simplify_if_then_else, simplify_set, expand_compound_operation,
65 expand_field_assignment, make_extraction, if_then_else_cond,
66 make_compound_operation, force_to_mode, make_field_assignment,
67 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
68 extended_count, try_widen_shift_mode, simplify_shift_const_1,
69 simplify_comparison, record_promoted_value, simplify_compare_const,
70 record_dead_and_set_regs_1): Likewise.
71
d58c1a38
BS
72 Revert:
73 * simplify-rtx.c (simplify_const_binary_operation): Use the
74 shift_truncation_mask hook instead of performing modulo by
75 width. Compare against mode precision, not bitsize.
76 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
77 Use shift_truncation_mask instead of constructing the value
78 manually.
79
76594d53
MM
802011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
81
82 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
83 declaration.
84 (rs6000_save_toc_in_prologue_p): Ditto.
85
86 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
87 up the static chain (r11) during indirect function calls.
88 (-msave-toc-indirect): New undocumented debug switch.
89
90 * config/rs6000/rs6000.c (struct machine_function): Add
91 save_toc_in_prologue field to note whether the prologue needs to
92 save the TOC value in the reserved stack location.
93 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
94 to save the TOC in the prologue, do so.
95 (rs6000_trampoline_init): Don't allow creating AIX style
96 trampolines if -mno-r11 is in effect.
97 (rs6000_call_indirect_aix): New function to create AIX style
98 indirect calls, adding support for -mno-r11 to suppress loading
99 the static chain, and saving the TOC in the prologue instead of
100 the call body.
101 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
102 TOC in the prologue.
103
104 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
105 register numbers.
106 (TOC_REGNUM): Ditto.
107 (STATIC_CHAIN_REGNUM): Ditto.
108 (ARG_POINTER_REGNUM): Ditto.
109 (SFP_REGNO): Delete, unused.
110 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
111 function descriptor offsets.
112 (TOC_SAVE_OFFSET_64BIT): Ditto.
113 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
114 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
115 (AIX_FUNC_DESC_SC_32BIT): Ditto.
116 (AIX_FUNC_DESC_SC_64BIT): Ditto.
117 (ptrload): New mode attribute for the appropriate load of a
118 pointer.
119 (call_indirect_aix32): Delete, rewrite AIX indirect function
120 calls.
121 (call_indirect_aix64): Ditto.
122 (call_value_indirect_aix32): Ditto.
123 (call_value_indirect_aix64): Ditto.
124 (call_indirect_nonlocal_aix32_internal): Ditto.
125 (call_indirect_nonlocal_aix32): Ditto.
126 (call_indirect_nonlocal_aix64_internal): Ditto.
127 (call_indirect_nonlocal_aix64): Ditto.
128 (call): Rewrite AIX indirect function calls. Add support for
129 eliminating the static chain, and for moving the save of the TOC
130 to the function prologue.
131 (call_value): Ditto.
132 (call_indirect_aix<ptrsize>): Ditto.
133 (call_indirect_aix<ptrsize>_internal): Ditto.
134 (call_indirect_aix<ptrsize>_internal2): Ditto.
135 (call_indirect_aix<ptrsize>_nor11): Ditto.
136 (call_value_indirect_aix<ptrsize>): Ditto.
137 (call_value_indirect_aix<ptrsize>_internal): Ditto.
138 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
139 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
140 (call_nonlocal_aix32): Relocate in the rs6000.md file.
141 (call_nonlocal_aix64): Ditto.
142
143 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
144 -mno-r11 documentation.
145
49d6830d
JW
1462011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
147
148 PR other/49658
149 * doc/extend.texi (Compound Literals): Fix typo.
150
c884924f
JG
1512011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
152
153 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
154 __ARM_FEATURE_DSP.
155
bf588455
BS
1562011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
157
158 * configure.ac (plugin-version.h): Generate
159 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
160 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
161 macros.
162
163 * configure: Regenerate.
164
165 * doc/plugins.texi (Building GCC plugins): Mention
166 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
167
d0edd768
BS
1682011-07-06 Bernd Schmidt <bernds@codesourcery.com>
169
170 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
171 * combine.c (make_extraction, gen_lowpart_or_truncate,
172 apply_distributive_law, simplify_comparison,
173 reg_truncated_to_mode, record_truncated_value): Use it.
174 * cse.c (notreg_cost): Likewise.
175 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
176 * expr.c (convert_move, convert_modes): Likewise.
177 * optabs.c (expand_binop, expand_unop): Likewise.
178 * postreload.c (move2add_last_label): Likewise.
179 * regmove.c (optimize_reg_copy_3): Likewise.
180 * rtlhooks.c (gen_lowpart_general): Likewise.
181 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
182
e5cabdfb
JM
1832011-07-06 Joseph Myers <joseph@codesourcery.com>
184
185 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
186
2d0c270f
BS
1872011-07-06 Bernd Schmidt <bernds@codesourcery.com>
188
189 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
190 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
191 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
192 (simplify_const_unary_operation, simplify_binary_operation_1,
193 simplify_const_binary_operation,
194 simplify_const_relational_operation): Use them. Use
195 GET_MODE_MASK for masking and sign-extensions.
196 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
197 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
198 simplify_shift_const_1, simplify_comparison): Likewise.
199 * expr.c (convert_modes): Likewise.
200 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
201 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
202 Likewise.
203 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
204
f9c08345
BS
205 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
206
6d6c9525
RG
2072011-07-06 Richard Guenther <rguenther@suse.de>
208
209 PR tree-optimization/49645
210 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
211 register variables.
212 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
213 in type qualification here ...
214 (copy_reference_ops_from_ref): ... not here.
215 (vn_reference_lookup_3): ... or here.
216 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
217 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
218
d1a6ec10
ILT
2192011-07-06 Ian Lance Taylor <iant@google.com>
220
221 * doc/install.texi (Configuration): It's
222 --enable-gnu-indirect-function, not --enable-indirect-function.
223
ff3e08af
BS
2242011-07-06 Bernd Schmidt <bernds@codesourcery.com>
225
226 * simplify-rtx.c (simplify_const_binary_operation): Use the
227 shift_truncation_mask hook instead of performing modulo by
228 width. Compare against mode precision, not bitsize.
229 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
230 Use shift_truncation_mask instead of constructing the value
231 manually.
232
a369b639
L
2332011-07-06 H.J. Lu <hongjiu.lu@intel.com>
234
235 PR middle-end/47383
236 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
237 address computation and convert to address_mode if needed.
238
1a072294
RG
2392011-07-06 Richard Guenther <rguenther@suse.de>
240
241 * tree.c (build_common_tree_nodes_2): Merge with
242 build_common_tree_nodes.
243 * tree.h (build_common_tree_nodes): Adjust prototype.
244 (build_common_tree_nodes_2): Remove.
245 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
246 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
247
f2c3a8ce
JJ
2482011-07-05 Jakub Jelinek <jakub@redhat.com>
249
250 PR tree-optimization/49618
251 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
252 t recurse on the decl.
253 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
254 return true if expr isn't known to be defined in current
255 TU or some other LTO partition.
256
3aa439ed
MM
2572011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
258
259 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
260 override CASE_VALUES_THRESHOLD.
261
262 * stmt.c (toplevel): Include params.h.
263 (case_values_threshold): Use the --param case-values-threshold
264 value if non-zero, otherwise use machine dependent value.
265 (expand_case): Use case_values_threshold.
266
267 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
268
269 * doc/invoke.texi (--param case-values-threshold): Document.
270
49956667
RH
2712011-07-05 Richard Henderson <rth@redhat.com>
272
273 * dwarf2out.c (dwarf2out_cfi_label): Make static.
274 (dwarf2out_flush_queued_reg_saves): Make static.
275 (dwarf2out_reg_save): Remove.
276 (dwarf2out_return_save): Remove.
277 (dwarf2out_return_reg): Remove.
278 (dwarf2out_reg_save_reg): Remove.
279 (dwarf2out_def_cfa): Merge into ...
280 (dwarf2out_frame_init): ... here.
281 * dwarf2out.h, tree.h: Remove declarations as necessary.
282
9f2ff8e5
RH
2832011-07-05 Richard Henderson <rth@redhat.com>
284
c2b40eba
RH
285 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
286 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
287 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
288 the alloc insn.
289
7d3c6cd8
RH
290 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
291 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
292 (process_epilogue): Don't call dwarf2out_def_cfa.
293
5f740973
RH
294 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
295 indicate the return address save.
296 (process_cfa_register): Likewise.
297
a1880147
RH
298 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
299 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
300
9f2ff8e5
RH
301 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
302 for ar.pfs save at alloc insn.
303
ddc6e7d6
RH
3042011-07-05 Richard Henderson <rth@redhat.com>
305
306 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
307 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
308 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
309 stack pointer save.
310 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
311 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
312 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
313 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
314
a3515605
RH
3152011-07-05 Richard Henderson <rth@redhat.com>
316
317 * config/vax/vax.md (define_c_enum unspecv): New. Define the
318 VUNSPEC_* constants here instead of via define_constants.
319 (VUNSPEC_PEM): New constant.
320 (procedure_entry_mask): New insn.
321 (prologue): New expander.
322 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
323 (vax_expand_prologue): Rename from vax_output_function_prologue;
324 emit rtl instead of text.
325 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
326 (print_operand): Add 'x' prefix.
327
a7adbbcb
L
3282011-07-05 H.J. Lu <hongjiu.lu@intel.com>
329
330 PR middle-end/47715
331 * calls.c (precompute_register_parameters): Promote the function
332 argument before checking non-legitimate constant.
333
cec11ec4
SP
3342011-07-05 Sebastian Pop <sebastian.pop@amd.com>
335
336 PR tree-optimization/47654
337 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
338 (lst_do_strip_mine_loop): Return an int.
339 (lst_do_strip_mine): Same.
340 (scop_do_strip_mine): Same.
341 (scop_do_block): Loop blocking should strip-mine at least two loops.
342 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
343 (scop_do_interchange): Same.
344 * graphite-poly.h (scop_do_interchange): Update declaration.
345 (scop_do_strip_mine): Same.
346
9b0d314a
SP
3472011-07-05 Sebastian Pop <sebastian.pop@amd.com>
348
349 * graphite-clast-to-gimple.c (precision_for_value): Removed.
350 (precision_for_interval): Removed.
351 (gcc_type_for_interval): Use mpz_sizeinbase.
352
81d6d080
SP
3532011-07-05 Sebastian Pop <sebastian.pop@amd.com>
354
355 * graphite-ppl.h (value_max): Correct computation of max.
356
369e3430
SP
3572011-07-05 Sebastian Pop <sebastian.pop@amd.com>
358
359 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
360
fce5dddd
RG
3612011-07-05 Richard Guenther <rguenther@suse.de>
362
363 * c-decl.c (c_init_decl_processing): Defer building common
364 tree nodes to c_common_nodes_and_builtins.
365
12037899
RL
3662011-07-05 Razya Ladelsky <razya@il.ibm.com>
367
368 PR tree-optimization/49580
369 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
370 the loop's number of iterations.
371 * tree-parloops.c (transform_to_exit_first_loop): Add the
372 handling of the loop's number of iterations before the call
373 to gimple_duplicate_sese_tail.
374 Insert the stmt caclculating the new rhs of the loop's
375 condition stmt to the preheader instead of iters_bb.
376
509a31f8
L
3772011-07-05 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR rtl-optimization/47449
380 * fwprop.c (forward_propagate_subreg): Don't propagate hard
381 register nor zero/sign extended hard register.
382
39becbac
RG
3832011-07-05 Richard Guenther <rguenther@suse.de>
384
385 PR tree-optimization/49518
386 PR tree-optimization/49628
387 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
388 irrelevant and invariant data-references.
389 (vect_analyze_data_ref_access): For invariant loads clear the
390 group association.
391
15923c25
JJ
3922011-07-04 Jakub Jelinek <jakub@redhat.com>
393
af421d9c
JJ
394 PR rtl-optimization/49619
395 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
396 pass VOIDmode as op0_mode to recursive call, and return temp even
397 when different from tor, just if it is not IOR of the original
398 PLUS arguments.
399
707f9919
JJ
400 PR rtl-optimization/49472
401 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
402 negating MULT, negate the second operand instead of first.
403 (simplify_binary_operation_1) <case MULT>: If one operand is
404 a NEG and the other is MULT, don't attempt to optimize by
405 negation of the MULT operand if it only moves the NEG operation
406 around.
407
15923c25
JJ
408 PR debug/49602
409 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
410 get_current_def return value if it can't be trusted to be
411 the current value of the variable in the current bb.
412
0d5e0c1b
UB
4132011-07-04 Uros Bizjak <ubizjak@gmail.com>
414
415 PR target/49600
416 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
417 general register to memory for !TARGET_INTER_UNIT_MOVES.
418
db297e20
GJL
4192011-07-04 Georg-Johann Lay <avr@gjlay.de>
420
421 PR target/44643
422 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
423 instead of TREE_READONLY.
424
f451d14d
GJL
4252011-07-04 Georg-Johann Lay <avr@gjlay.de>
426
427 * doc/extend.texi (AVR Built-in Functions): Update documentation
428 of __builtin_avr_fmul*.
0d5e0c1b 429 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
430 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
431 * config/avr/avr.md (fmul): Rename to fmul_insn.
432 (fmuls): Rename to fmuls_insn.
433 (fmulsu): Rename to fmulsu_insn.
434 (fmul,fmuls,fmulsu): New expander.
435 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
436 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
437 * config/avr/libgcc.S (__fmul): New function.
438 (__fmuls): New function.
439 (__fmulsu,__fmulsu_exit): New function.
440
30f1e6de
RG
4412011-07-04 Richard Guenther <rguenther@suse.de>
442
443 PR tree-optimization/49615
444 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
445 basic-block index check.
446
6dab9931
GJL
4472011-07-04 Georg-Johann Lay <avr@gjlay.de>
448
449 * longlong.h (count_leading_zeros, count_trailing_zeros,
450 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
451 resp. 64.
452
b5066d8b
IR
4532011-07-03 Ira Rosen <ira.rosen@linaro.org>
454
455 PR tree-optimization/49610
456 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
457 a basic block.
458
bc712852
EB
4592011-07-02 Eric Botcazou <ebotcazou@adacore.com>
460 Olivier Hainque <hainque@adacore.com>
461 Nicolas Setton <setton@adacore.com>
462
463 * tree.h (TYPE_ARTIFICIAL): New flag.
464 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
465 the DIE of the type if it is artificial.
466 (gen_array_type_die): Likewise.
467 (gen_enumeration_type_die): Likewise.
468 (gen_struct_or_union_type_die): Likewise.
469 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
470 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
471
8b1bdcc5
JJ
4722011-07-01 Jakub Jelinek <jakub@redhat.com>
473
474 * tree-object-size.c (pass_through_call): Handle
475 BUILT_IN_ASSUME_ALIGNED.
476
06e88d73
MJ
4772011-07-01 Martin Jambor <mjambor@suse.cz>
478
479 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
480
6bbec3e1
L
4812011-07-01 H.J. Lu <hongjiu.lu@intel.com>
482
483 PR middle-end/48016
484 * explow.c (update_nonlocal_goto_save_area): Use proper mode
485 for stack save area.
486 * function.c (expand_function_start): Likewise.
487
e8fdf1cd
RG
4882011-07-01 Richard Guenther <rguenther@suse.de>
489
490 PR middle-end/49596
491 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
492 may have unknown refs.
493
80d3dd38
KT
4942011-07-01 Kai Tietz <ktietz@redhat.com>
495
496 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
497
179fc656
RO
4982011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
499
500 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
501 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
502 (Specific, mips-sgi-irix6): Likewise.
503
14a393a3
RO
5042011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505
506 PR libmudflap/49549
507 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
508
3aecd443
JJ
5092011-07-01 Jakub Jelinek <jakub@redhat.com>
510
511 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
512 [idx]= and [idx1 ... idx2]= before initializers if needed for
513 array initializers.
514
7474f719
CL
5152011-07-01 Chen Liqin <liqin.gcc@gmail.com>
516
517 * config.gcc (score-*-elf): Remove score7.o.
518 * config/score/t-score-elf: Likewise.
519 * config/score/score.c: Merge score7 to score.c and
520 remove forwarding functions.
521 * config/score/score7.c: Deleted.
522 * config/score/score7.h: Deleted.
523
ab70d825
RG
5242011-07-01 Richard Guenther <rguenther@suse.de>
525
526 PR tree-optimization/49603
0d5e0c1b 527 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 528
1ac93f10
MJ
5292011-06-30 Martin Jambor <mjambor@suse.cz>
530
531 * tree-sra.c (struct access): Rename total_scalarization to
532 grp_total_scalarization
533 (completely_scalarize_var): New function.
534 (sort_and_splice_var_accesses): Set total_scalarization in the
535 representative access.
536 (analyze_access_subtree): Propagate total scalarization accross the
537 tree, no holes in totally scalarized trees, simplify coverage
538 computation.
539 (analyze_all_variable_accesses): Call completely_scalarize_var instead
540 of completely_scalarize_record.
541
97f309c3
RH
5422011-06-30 Richard Henderson <rth@redhat.com>
543
544 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
545 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
546 * config/i386/i386.c: Don't include dwarf2out.h.
547 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
548 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
549 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
550 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
551 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
552
ef284364
RH
5532011-06-30 Richard Henderson <rth@redhat.com>
554
555 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
556 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
557 * final.c (final_scan_insn): Look for it, and invoke
558 dwarf2out_frame_debug before the insn if found.
559
c8412f97
RH
5602011-06-30 Richard Henderson <rth@redhat.com>
561
562 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
563 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
564
e3f903d8
RH
5652011-06-30 Richard Henderson <rth@redhat.com>
566
567 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
568 Define a vector of this type.
569 (regs_saved_in_regs): Use a VEC.
570 (num_regs_saved_in_regs): Remove.
571 (compare_reg_or_pc): New.
572 (record_reg_saved_in_reg): Split out from...
573 (dwarf2out_flush_queued_reg_saves): ... here.
574 (clobbers_queued_reg_save): Update for VEC.
575 (reg_saved_in): Likewise.
576 (dwarf2out_frame_debug_init): Likewise.
577 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
578 (dwarf2out_frame_debug_cfa_register): Likewise.
579
e2c9010a
EB
5802011-06-30 Eric Botcazou <ebotcazou@adacore.com>
581
582 PR tree-optimization/49572
583 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
584 type of the RHS instead of that of the LHS for the expression type.
585
dbb07bbc
EB
5862011-06-30 Eric Botcazou <ebotcazou@adacore.com>
587
588 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
589 unconditionally.
590
1565af08
RG
5912011-06-30 Richard Guenther <rguenther@suse.de>
592
593 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
594 * tree-ssa-structalias.c (create_variable_info_for): Do not
595 add initial constraints for non-var-decls. Properly handle
596 globals in other ltrans partitions.
597 (intra_create_variable_infos): Manually create constraints for
598 the fake no-alias parameter.
599 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
600 and assert there are no clones.
601
42373e0b
RG
6022011-06-30 Richard Guenther <rguenther@suse.de>
603
604 PR tree-optimization/46787
605 * tree-data-ref.c (dr_address_invariant_p): Remove.
606 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 607 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
608 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
609 invariant loads.
610
7aa62ea1
MJ
6112011-06-30 Martin Jambor <mjambor@suse.cz>
612
613 PR tree-optimization/49094
614 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
615 (build_accesses_from_assign): Use it.
616
f60f32b3
JJ
6172011-06-30 Jakub Jelinek <jakub@redhat.com>
618
d9048d16
JJ
619 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
620 handling of BUILT_IN_ASSUME_ALIGNED.
621
f60f32b3
JJ
622 PR debug/49364
623 * dwarf2out.c (output_abbrev_section): Don't return early
624 if abbrev_die_table_in_use is 1.
625 (dwarf2out_finish): Instead don't call output_abbrev_section
626 nor emit abbrev_section_label in that case.
627
7cce15d4
NC
6282011-06-30 Nick Clifton <nickc@redhat.com>
629
630 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
631 for the V850E.
632
ce7e54ff
JJ
6332011-06-30 Jakub Jelinek <jakub@redhat.com>
634
635 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
636 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
637
83197f37
IR
6382011-06-30 Ira Rosen <ira.rosen@linaro.org>
639
640 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
641 both pattern and original statements if necessary.
642 (vect_transform_loop): Likewise.
643 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
644 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
645 Mark the pattern statement only if the original statement doesn't
646 have its own uses.
647 (process_use): Call vect_mark_relevant with additional parameter.
648 (vect_mark_stmts_to_be_vectorized): Likewise.
649 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
650 (vect_analyze_stmt): Handle both pattern and original statements
651 if necessary.
652 (vect_transform_stmt): Don't store vectorized pattern statement
653 in the original statement.
654 (vect_is_simple_use_1): Use related pattern statement only if the
655 original statement is irrelevant.
656 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
657
dbb07bbc 6582011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 659
dbb07bbc
EB
660 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
661 option.
662 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
663 entry.
5c0d88e6
CF
664 (TARGET_AVX128_OPTIMAL): New definition.
665 * config/i386/i386.c (initial_ix86_tune_features): Initialize
666 X86_TUNE_AVX128_OPTIMAL entry.
667 (ix86_option_override_internal): Enable the generation
668 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
669 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
670 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
671
931050d0
EB
6722011-06-29 Eric Botcazou <ebotcazou@adacore.com>
673
674 PR tree-optimization/49539
675 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
676 names by means of stmt_references_abnormal_ssa_name.
677 (associate_plusminus): Call can_propagate_from before propagating
678 from definition statements.
679 (ssa_forward_propagate_and_combine): Remove superfluous newline.
680
dfedbe40
RG
6812011-06-29 Richard Guenther <rguenther@suse.de>
682
683 * doc/invoke.texi: Document -scev dump modifier.
684 * tree-pass.h (TDF_SCEV): New dump flag.
685 * tree-dump.c (dump_option_value_in): Add scev.
686 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
687 * tree-scalar-evolution.c: Likewise.
688
3a86cfeb
NS
6892011-06-29 Nathan Sidwell <nathan@codesourcery.com>
690
691 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
692 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
693 (__gnu_unwind_pr_common): Reconstruct additional indirection
694 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 695
f3678bfb
UW
6962011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
697
698 PR rtl-optimization/49114
699 * reload.c (struct replacement): Remove SUBREG_LOC member.
700 (push_reload): Do not set it.
701 (push_replacement): Likewise.
702 (subst_reload): Remove dead code.
703 (copy_replacements): Remove assertion.
704 (copy_replacements_1): Do not handle SUBREG_LOC.
705 (move_replacements): Likewise.
706 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
707 Detect subregs via recursive descent instead of via SUBREG_LOC.
708
433ba0a5 7092011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 710
433ba0a5
GJL
711 * config/avr/avr.c (avr_encode_section_info): Dispatch to
712 default_encode_section_info.
713
73f6eabc
RS
7142011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
715
716 PR tree-optimization/49545
717 * builtins.c (get_object_alignment_1): Update function comment.
718 Do not use DECL_ALIGN for functions, but test
719 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
720 * fold-const.c (get_pointer_modulus_and_residue): Don't check
721 for functions here.
722 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
723
a0f33d3a
JJ
7242011-06-29 Jakub Jelinek <jakub@redhat.com>
725
726 PR debug/49567
0d5e0c1b
UB
727 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
728 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 729
946c8b23 7302011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 731
946c8b23 732 PR target/34734
0d5e0c1b 733 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
734 about uninitialized data attributed 'progmem' from here...
735 (avr_encode_section_info): ...to this new function.
736 (TARGET_ENCODE_SECTION_INFO): New define.
737 (avr_section_type_flags): For data in ".progmem.data", remove
738 section flag SECTION_WRITE.
739
9a63dee4 7402011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 741
9a63dee4
GJL
742 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
743 _xmulhisi3_exit.
744 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
745 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
746 (__umulhisi3): Ditto.
747 * config/avr/avr.md (mulhisi3): New insn expender.
748 (umulhisi3): New insn expender.
749 (*mulhisi3_call): New insn.
750 (*umulhisi3_call): New insn.
751
4374ce45
JM
7522011-06-28 Joseph Myers <joseph@codesourcery.com>
753
754 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
755
94759030
RH
7562011-06-28 Richard Henderson <rth@redhat.com>
757
758 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
759 all code and arguments that handled pushes. Update all callers.
760
d018b46e
RH
7612011-06-28 Richard Henderson <rth@redhat.com>
762
763 * config/arm/arm.c (arm_output_function_prologue): Don't call
764 thumb1_output_function_prologue.
765 (arm_expand_prologue): Avoid dead store.
766 (number_of_first_bit_set): Use ctz_hwi.
767 (thumb1_emit_multi_reg_push): New.
768 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
769 to emit the entire prologue as rtl.
770 (thumb1_output_interwork): Split out from
771 thumb1_output_function_prologue.
772 (thumb1_output_function_prologue): Remove.
773 (arm_attr_length_push_multi): Handle thumb1.
774 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
775 (prologue_thumb1_interwork): New.
776 (*push_multi): Allow thumb1; use push_mult_memory_operand.
777 * config/arm/predicates.md (push_mult_memory_operand): New.
778
97269a23
EB
7792011-06-28 Eric Botcazou <ebotcazou@adacore.com>
780
781 * config/sparc/sync.md (*stbar): Delete.
782 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
783
4a9206ce
EB
7842011-06-28 Eric Botcazou <ebotcazou@adacore.com>
785
786 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
787
6138f9bd
RO
7882011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
789
790 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
791 (TARGET_64BIT_DEFAULT): Define.
792 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
793 of tm_file.
794 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
795
a7d0d30f
JM
7962011-06-28 Joseph Myers <joseph@codesourcery.com>
797
798 * common.opt (in_lto_p): New Variable entry.
799 * flags.h (in_lto_p): Move to common.opt.
800 * gcc.c: Include params.h.
801 (set_option_handlers): Also use common_handle_option and
802 target_handle_option.
0d5e0c1b 803 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
804 * opts.c (debug_type_names): Move from toplev.c.
805 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
806 (common_handle_option): Return early in the driver for some options.
807 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
808 opts pointer.
a7d0d30f
JM
809 * toplev.c (in_lto_p): Move to common.opt.
810 (debug_type_names): Move to opts.c.
811 * Makefile.in (OBJS): Remove opts.o.
812 (OBJS-libcommon-target): Add opts.o.
813 (gcc.o): Update dependencies.
814
420863a9
KT
8152011-06-28 Kai Tietz <ktietz@redhat.com>
816
0d5e0c1b 817 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 818
0498a2be
RR
8192011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
820
821 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
822 with '=' constraint modifier.
823 (*divdf3_vfp): Likewise.
824 ("*mulsf3_vfp"): Likewise.
825 ("*muldf3_vfp"): Likewise.
826 ("*mulsf3negsf_vfp"): Likewise.
827 ("*muldf3negdf_vfp"): Likewise.
828
4a68b724
NC
8292011-06-28 Nick Clifton <nickc@redhat.com>
830
831 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
832 relaxation when performing an incremental link.
833
72a32729
KT
8342011-06-28 Kai Tietz <ktietz@redhat.com>
835
836 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
837 within BB from last to first.
838
88a00ef7
JM
8392011-06-28 Joseph Myers <joseph@codesourcery.com>
840
841 * genattr-common.c: New. Based on genattr.c.
842 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
843 (MOSTLYCLEANFILES): Add insn-attr-common.h.
844 (opts.o): Update dependencies.
845 (.PRECIOUS): Add insn-attr-common.h.
846 (simple_rtl_generated_h): Add insn-attr-common.h.
847 (build/genattr-common.o): New.
848 (genprogrtl): Add attr-common.
849 * genattr.c (main): Include insn-attr-common.h. Don't generate
850 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 851 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 852
880962ac
GJL
8532011-06-28 Georg-Johann Lay <avr@gjlay.de>
854
4a68b724 855 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 856 avr-*-* and avr-*-rtems* targets.
4a68b724 857
880962ac
GJL
858 * config/avr/elf.h: New file.
859 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
860 (TARGET_ASM_SELECT_SECTION): Define.
861 (INIT_SECTION_ASM_OP): Undefine.
862 (FINI_SECTION_ASM_OP): Undefine.
863 (READONLY_DATA_SECTION_ASM_OP): Undefine.
864 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
865 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
866 * config/avr/avr.h:
867 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
868 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
869 (MAX_OFILE_ALIGNMENT): Move to elf.h.
870 (STRING_LIMIT): Move to elf.h.
871 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
872 (ASM_DECLARE_OBJECT_NAME): Remove.
873 (ESCAPES): Remove.
874 (ASM_OUTPUT_SKIP): Remove.
875 (DWARF2_DEBUGGING_INFO): Remove.
876 (OBJECT_FORMAT_ELF): Remove.
877 (USER_LABEL_PREFIX): Remove.
878 (ASM_OUTPUT_EXTERNAL): Remove.
879 (ASM_OUTPUT_ASCII): Remove.
880 (TYPE_ASM_OP): Remove.
881 (SIZE_ASM_OP): Remove.
882 (WEAK_ASM_OP): Remove.
883 (STRING_ASM_OP): Remove.
884 (SET_ASM_OP): Remove.
885 (ASM_WEAKEN_LABEL): Remove.
886 (TYPE_OPERAND_FMT): Remove.
887 (ASM_DECLARE_FUNCTION_SIZE): Remove.
888 (ASM_FINISH_DECLARE_OBJECT): Remove.
889 (NO_DOLLAR_IN_LABEL): Remove.
890 (ASM_GENERATE_INTERNAL_LABEL): Remove.
891 (ASM_OUTPUT_CASE_LABEL): Remove.
892 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
893 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
894 (gas_output_ascii): Remove.
895 (gas_output_limited_string): Remove.
896 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
897 * config/avr/avr-protos.h
898 (gas_output_ascii): Remove prototye.
899 (gas_output_limited_string): Remove prototype.
900
a1b5eb93
RE
9012011-06-27 Richard Earnshaw <rearnsha@arm.com>
902
903 PR target/48637
904 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
905 asm operands.
906
310e71a8
JH
9072011-06-27 Jan Hubicka <jh@suse.cz>
908
4a9206ce
EB
909 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
910 node instead of references in node.
310e71a8 911
171da07a
RH
9122011-06-27 Richard Henderson <rth@redhat.com>
913
914 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
915 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
916 inside ifdef.
917
dc2a58da
JJ
9182011-06-27 Jakub Jelinek <jakub@redhat.com>
919
56300785
JJ
920 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
921
45d439ac
JJ
922 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
923 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
924 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
925 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
926 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
927 (evaluate_stmt, execute_fold_all_builtins): Handle
928 BUILT_IN_ASSUME_ALIGNED.
929 * tree-ssa-dce.c (propagate_necessity): Likewise.
930 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
931 call_may_clobber_ref_p_1): Likewise.
932 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
933 (expand_builtin_assume_aligned): New function.
934 * doc/extend.texi (__builtin_assume_aligned): Document.
935
dc2a58da
JJ
936 PR debug/49544
937 * cselib.c (promote_debug_loc): If cselib_preserve_constants
938 and l has two DEBUG_INSN owned locs instead of just one, adjust
939 the second location's setting_insn too.
940
0d72f628
RO
9412011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
942
943 PR libmudflap/38738
944 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
945
bebd619e
NC
9462011-06-27 Nick Clifton <nickc@redhat.com>
947
0d5e0c1b
UB
948 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
949 bit position of highest bit set into a count of the high zero bits.
bebd619e 950
353b39fa
EB
9512011-06-27 Eric Botcazou <ebotcazou@adacore.com>
952
953 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
954
a7af037b
EB
9552011-06-27 Eric Botcazou <ebotcazou@adacore.com>
956
957 PR lto/48492
958 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
959 to a NULL parent.
960
1c86160a
RG
9612011-06-27 Richard Guenther <rguenther@suse.de>
962
963 PR tree-optimization/49394
964 * passes.c (execute_one_pass): Restore current_pass after
965 applying IPA transforms.
966
5da49a9d
KT
9672011-06-27 Kai Tietz <ktietz@redhat.com>
968
969 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
970 out of type precision after operation.
0d5e0c1b
UB
971 (find_bswap): Take for limit value the integer auto-promotion
972 into account.
5da49a9d 973
9242213f
EB
9742011-06-27 Eric Botcazou <ebotcazou@adacore.com>
975
976 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
977 forward scan as well.
978
db8b22ef
TG
9792011-06-27 Tristan Gingold <gingold@adacore.com>
980
981 PR target/44241
982 * config/vms/vms-protos.h: New file.
983 * config/vms/vms-crtlmap.map: New file.
984 * config/vms/vms.c: New file.
985 * config/vms/make-crtlmap.awk: New file.
986 * config/vms/vms-crtl.h: File removed.
987 * config/vms/vms-crtl-64.h: File removed.
988 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
989 * config/alpha/vms64.h: Do not include vms-crtl-64.h
990 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
991 clear some builtins on VMS. Calls vms_patch_builtins.
992 (avms_asm_output_external): Remove.
993 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
994 (struct crtl_name_spec): Remove
995 (DO_CTRL_NAMES): Remove.
996 * config/ia64/vms.h (struct crtl_name_spec): Remove
997 (DO_CTRL_NAMES): Remove.
998 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
999 clear some builtins on VMS. Calls vms_patch_builtins.
1000 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1001 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 1002 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 1003
b213221d
TG
10042011-06-27 Tristan Gingold <gingold@adacore.com>
1005
1006 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1007 directive on VMS.
1008
157b9300
EB
10092011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1010
1011 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1012 the function receives nonlocal gotos.
1013
ccbf5bb4
RG
10142011-06-27 Richard Guenther <rguenther@suse.de>
1015
1016 PR tree-optimization/49536
1017 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1018 For non-scalar inner types use a scalar type according to
1019 the scalar inner mode.
1020
fe4cd14b
RG
10212011-06-27 Richard Guenther <rguenther@suse.de>
1022
1023 PR tree-optimization/49365
1024 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1025
afc3f22f
RS
10262011-06-27 Richard Guenther <rguenther@suse.de>
1027
1028 PR tree-optimization/49169
1029 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1030 the alignment of function decls.
1031
92590751 10322011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
1033
1034 PR target/47997
1035 * config/darwin.c (darwin_mergeable_string_section): Place string
1036 constants in '.cstring' rather than '.const' when CF/NSStrings are
1037 active.
1038
605354f3
EB
10392011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1040
1041 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1042 (emit_save_register_window): Likewise.
1043 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1044 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1045 Swap back %o7/%i7 in register naming.
1046
0e9197f5
IS
10472011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1048
1049 PR driver/49371
1050 * config/darwin.c (darwin_override_options): Improve warning when
1051 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1052 is given with fpie/fPIE.
1053 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1054 * config/darwin9.h (PIE_SPEC): New.
53461199 1055
605354f3 10562011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
1057
1058 * timevar.c (timevar_print): Increase width for display of timevar
1059 name.
1060
f796c438
JJ
10612011-06-24 Jakub Jelinek <jakub@redhat.com>
1062
1063 PR c++/46400
1064 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1065 instead of TYPE_CHAIN for chain_next for types.
1066
a7289eaf
RH
10672011-06-24 Richard Henderson <rth@redhat.com>
1068
1069 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1070 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1071 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1072 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1073 (sparc_flat_expand_prologue): Emit individual instructions
1074 instead of one of the above.
1075
c4b9a87e
ER
10762011-06-24 Easwaran Raman <eraman@google.com>
1077
1078 PR rtl-optimization/49429
1079 PR target/49454
1080 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1081 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1082 used to copy y into x.
1083 * calls.c (initialize_argument_information): Mark
1084 an argument addressable if it is passed by invisible reference.
1085 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1086 if it is passed by reference.
1087
5ac6c59e
L
10882011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1089
1090 PR rtl-optimization/49504
1091 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
1092 subtraction of a pointer in Pmode if pointers extend unsigned.
1093 (num_sign_bit_copies1): Likewise.
5ac6c59e 1094
b807e627
MJ
10952011-06-24 Martin Jambor <mjambor@suse.cz>
1096
1097 PR tree-optimizations/49516
1098 * tree-sra.c (sra_modify_assign): Choose the safe path for
1099 aggregate copies if we also did scalar replacements.
1100
9a1ea4b9
RR
11012011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1102
1103 PR target/49335
1104 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 1105 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 1106
949cfd0a
AK
11072011-06-24 Andi Kleen <ak@linux.intel.com>
1108
1109 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1110 parameter. Split up ifs and report reason in *msg.
1111 (reject): Add.
1112 (find_var_candiate): Add msg variable.
1113 Split up ifs and report reason to reject.
1114 (find_param_candidates): Add msg variable.
1115 Pass msg to type_internals_preclude_sra_p.
1116
49e9c661 11172011-06-23 Jeff Law <law@redhat.com>
ad3577df 1118
b0c11403
JL
1119 PR middle-end/48770
1120 * reload.h (reload): Change to return a bool.
1121 * ira.c (ira): If requested by reload, run a fast DCE pass after
1122 reload has completed. Fix comment typo.
1123 * reload1.c (need_dce): New file scoped static.
1124 (reload): Set reload_completed here. Return whether or not a DCE
1125 pass after reload is needed.
1126 (delete_dead_insn): Set need_dce as needed.
1127
ad3577df
JL
1128 PR middle-end/49465
1129 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1130 to detect threading through joiner block. If there was already
1131 an edge to the new target, then do not change the PHI nodes.
1132
7cf64710
JJ
11332011-06-23 Jakub Jelinek <jakub@redhat.com>
1134
1135 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1136 get_pointer_alignment to see if base isn't sufficiently aligned.
1137
febb1302
JH
11382011-06-23 Jan Hubicka <jh@suse.cz>
1139
1140 PR tree-optimize/49373
1141 * tree-pass.h (all_late_ipa_passes): Declare.
1142 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
1143 (cgraph_optimize): Execute late passes; remove unreachable funcions
1144 after materialization.
1145 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1146 LTOing.
febb1302
JH
1147 * passes.c (all_late_ipa_passes): Declare.
1148 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
1149 (init_optimization_passes): Move ipa_pta to late passes; schedule
1150 fixup_cfg at beggining of all_passes.
febb1302
JH
1151 (apply_ipa_transforms): New function.
1152 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1153
4c77620d
JM
11542011-06-23 Joseph Myers <joseph@codesourcery.com>
1155
1156 * params.c: Include common/common-target.h. Don't include tm.h.
1157 (lang_independent_params): Move from toplev.c.
1158 (global_init_params): New.
1159 * params.h (global_init_params): Declare.
1160 * target.def (default_params): Move to common-target.def.
1161 * toplev.c (lang_independent_options): Remove.
1162 (lang_independent_params): Move to params.c.
1163 (general_init): Use global_init_params.
1164 * common/common-target.def (option_default_params): Move from
1165 target.def.
1166 * common/config/ia64/ia64-common.c: Include params.h.
1167 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1168 from ia64.c.
1169 * common/config/rs6000/rs6000-common.c: Include params.h.
1170 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1171 from rs6000.c.
1172 * common/config/sh/sh-common.c: Include params.h.
1173 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1174 from sh.c.
1175 * common/config/spu/spu-common.c: Include params.h.
1176 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1177 from spu.c.
1178 * config/ia64/ia64.c (ia64_option_default_params,
1179 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1180 * config/rs6000/rs6000.c (rs6000_option_default_params,
1181 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1182 * config/sh/sh.c (sh_option_default_params,
1183 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1184 * config/spu/spu.c (spu_option_default_params,
1185 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1186 * Makefile.in (OBJS): Remove params.o.
1187 (OBJS-libcommon-target): Add params.o.
1188 (params.o, $(common_out_object_file)): Update dependencies.
1189 * doc/tm.texi: Regenerate.
1190
6aad1e38
AM
11912011-06-23 Alan Modra <amodra@gmail.com>
1192
1193 PR bootstrap/49383
1194 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1195 invocation for 2011-06-09 changes.
1196
4fb489e7
JJ
11972011-06-22 Jakub Jelinek <jakub@redhat.com>
1198
fb79f500
JJ
1199 PR libgomp/49490
1200 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
1201 use n ceil/ nthreads size for the first n % nthreads threads in the
1202 team instead of all threads except for the last few ones which
fb79f500
JJ
1203 get less work or none at all.
1204
4fb489e7
JJ
1205 PR debug/49496
1206 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1207 uses.
1208
9c7c9f10
RG
12092011-06-22 Richard Guenther <rguenther@suse.de>
1210
1211 PR tree-optimization/49493
1212 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1213 Refer to the alias target of variables.
1214 (associate_varinfo_to_alias_1): Remove.
1215 (ipa_pta_execute): Do not associate aliases with anything.
1216 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1217 (cgraph_function_node): Likewise.
1218 (cgraph_function_or_thunk_node): Likewise.
1219 (varpool_variable_node): Likewise.
1220
7cf13d1f
NS
12212011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1222
0d5e0c1b 1223 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
1224 * config.gcc (arm*-*-linux*): Default to gnu tls.
1225 (arm*-*-*): Add --with-tls option.
1226 (all_defaults): Add 'tls'.
1227
78a8eb4e
RH
12282011-06-22 Richard Henderson <rth@redhat.com>
1229
1230 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1231 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1232 (dwarf2out_frame_debug_cfa_window_save): Rename from
1233 dwarf2out_window_save; make static.
1234 * tree.h (dwarf2out_window_save): Don't declare.
1235
1236 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1237 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1238 (emit_save_register_window): Rename from gen_save_register_window;
1239 emit the insn and add REG_CFA_* notes.
1240 (sparc_expand_prologue): Update to match.
1241 * config/sparc/sparc.md (save_register_window_1): Simplify from
1242 save_register_window<P:mode>.
1243
3b4c46d7
L
12442011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1245
1246 PR target/49497
1247 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1248 (*lea_general_2_zext): Likewise.
1249 (imul to lea peepholes): Use const359_operand and check
1250 TARGET_PARTIAL_REG_STALL.
1251
1252 * config/i386/predicates.md (const359_operand): New.
1253
4399cf59
MM
12542011-06-22 Michael Matz <matz@suse.de>
1255
1256 * cgraphunit.c (assemble_thunk): Use correct return type.
1257
31a0c825 12582011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 1259 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
1260
1261 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1262 (neon_output_shift_immediate): Ditto.
1263 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1264 prototype.
1265 (neon_output_shift_immediate): Ditto.
1266 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1267 (vashr<mode>3_imm): New insn pattern.
1268 (vlshr<mode>3_imm): Ditto.
1269 (vashr<mode>3): Modified constraint.
1270 (vlshr<mode>3): Ditto.
1271 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1272 predicate.
1273 (imm_for_neon_rshift_operand): Ditto.
1274 (imm_lshift_or_reg_neon): Ditto.
1275 (imm_rshift_or_reg_neon): Ditto.
1276
1277 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1278
ddb555ed
JJ
12792011-06-22 Jakub Jelinek <jakub@redhat.com>
1280
36dc1a88
JJ
1281 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1282 builtin calls even if likelyvalue is not CONSTANT.
1283 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1284 Return get_value_for_expr of first operand
1285 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1286 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1287 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1288 their non-checking counterparts.
1289 (call_may_clobber_ref_p_1): Likewise.
1290 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1291 like their non-checking counterparts.
1292 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1293 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1294 like their non-checking counterparts.
1295 (find_func_clobbers): Likewise.
1296 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1297 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1298
41cd4957
JJ
1299 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1300 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1301 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1302 of base type reference as argument.
1303 (resolve_addr_in_expr): Likewise. Fix keep computation.
1304 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
1305 (convert_descriptor_to_mode): ... this. For wider types convert to
1306 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
1307 (typed_binop): New function.
1308 (scompare_loc_descriptor, ucompare_loc_descriptor,
1309 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1310 default to unsigned type instead of signed.
1311
ddb555ed
JJ
1312 PR debug/47858
1313 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1314 (gimple_build_debug_source_bind_stat): New prototype.
1315 (gimple_build_debug_source_bind): Define.
1316 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1317 gimple_debug_source_bind_get_value,
1318 gimple_debug_source_bind_get_value_ptr,
1319 gimple_debug_source_bind_set_var,
1320 gimple_debug_source_bind_set_value): New inlines.
1321 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1322 * gimple-pretty-print.c (dump_gimple_debug): Handle
1323 GIMPLE_DEBUG_SOURCE_BIND.
1324 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1325 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1326 * tree-parloops.c (eliminate_local_variables,
1327 separate_decls_in_region): Likewise.
1328 (separate_decls_in_region_debug): Renamed from
1329 separate_decls_in_region_debug_bind. Handle
1330 gimple_debug_source_bind_p.
1331 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1332 prototypes.
1333 (DECL_HAS_DEBUG_ARGS_P): Define.
1334 (struct tree_function_decl): Add has_debug_args_flag field.
1335 * tree.c (debug_args_for_decl): New variable.
1336 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1337 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1338 (rewrite_debug_stmt_uses): New function.
1339 (rewrite_stmt): Use it to rewrite debug stmt uses.
1340 * rtl.def (DEBUG_PARAMETER_REF): New.
1341 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1342 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1343 DEBUG_PARAMETER_REF.
1344 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1345 * print-rtl.c (print_rtx): Likewise.
1346 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1347 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1348 debug stmts in the first bb.
1349 * tree-inline.c (remap_ssa_name): If remapping default def
1350 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1351 a source bind debug stmt.
1352 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1353 (maybe_move_debug_stmts_to_successors): Likewise.
1354 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1355 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1356 debug args vector from old_decl to new_decl.
1357 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1358 or modified parameters, add debug bind stmts before call
0d5e0c1b 1359 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
1360 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1361 on DECL_DEBUG_EXPRs from debug args vector.
1362 (expand_debug_source_expr): New function.
1363 (expand_debug_locations): Use it for source bind insns.
1364 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1365 * var-tracking.c (prepare_call_arguments): Add debug args
1366 to call_arguments if any.
1367 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
1368 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1369 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
1370 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1371 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1372 (gen_subprogram_die): Handle parameters identified by
1373 DEBUG_PARAMETER_REF.
1374
ccdc2164
NS
13752011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1376
1377 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1378 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
1379 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1380 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1381 (arm_tls_descseq_addr): New.
1382 (legitimize_tls_address): Add tlsdesc support.
1383 (arm_cannot_copy_insn_p): Check for tlscall.
1384 (arm_emit_tls_decoration): Likewise.
1385 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1386 (OPTION_DEFAULT_SPECS): Add with-tls support.
1387 * config/arm/arm.md (R1_REGNUM): Define.
1388 (tlscall): New.
1389 * config/arm/arm.opt (tls_type): New enumeration type and values.
1390 (mtls-dialect): New switch.
1391 * config/arm/arm-opts.h (enum tls_type): New.
1392
70e41a6a
NP
13932011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1394
1395 * attribs.c (register_attribute): Added assert to check that all
1396 attribute specs are registered with a name that is not empty and
1397 does not start with '_'.
1398 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1399 if the function has no attributes.
1400 * tree.c (is_attribute_with_length_p): Removed.
1401 (is_attribute_p): Removed.
0d5e0c1b 1402 (private_is_attribute_p): New.
70e41a6a
NP
1403 (private_lookup_attribute): New.
1404 (lookup_attribute): Removed.
1405 (lookup_ident_attribute): New.
1406 (remove_attribute): Require the first argument to be in the form
1407 'text', not '__text__'. Updated asserts.
1408 (merge_attributes): Use lookup_ident_attributes instead of
1409 lookup_attribute.
1410 (merge_dllimport_decl_attributes): Use remove_attribute.
1411 (attribute_list_contained): Likewise.
1412 (attribute_list_equal): Immediately return 1 if the arguments are
1413 identical pointers.
1414 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1415 'int'. Require the first argument to be in the form 'text', not
1416 '__text__'. Require the second argument to be an identifier.
1417 (lookup_attribute): Made inline. Require the first argument to be
1418 in the form 'text', not '__text__'.
1419 (private_is_attribute_p, private_lookup_attribute): New.
1420 Updated comments.
0d5e0c1b 1421
e0a8ecf2
AM
14222011-06-21 Andrew MacLeod <amacleod@redhat.com>
1423
1424 * builtins.c: Add sync_ or SYNC__ to builtin names.
1425 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1426 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1427
663827d3 14282011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 1429
663827d3
GJL
1430 PR target/33049
1431 * config/avr/avr.md (extzv): New expander.
1432 (*extzv): New insn.
1433 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1434 * config/avr/constraints.md (C04): New constraint.
1435 * doc/md.texi (Machine Constraints): Document it.
1436
146aef0b
JJ
14372011-06-21 Jakub Jelinek <jakub@redhat.com>
1438
1439 PR middle-end/49489
1440 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1441 unsignedp argument instead of 1 for clrsb_optab.
1442 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1443 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1444 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1445 * optabs.c (widen_leading): Call widen_operand and expand_unop
1446 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 1447 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 1448
c0503294
GJL
14492011-06-21 Georg-Johann Lay <avr@gjlay.de>
1450
1451 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1452
3801c801
BS
14532011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1454
0bddee8e
BS
1455 * gensupport.c (add_define_attr): New static function.
1456 (is_predicable): Allow multi-alternative lists for the "predicable"
1457 attribute.
1458 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1459 (process_one_cond_exec): Call alter_attrs_for_insn.
1460 * doc/md.texi (Defining Attributes): Mention some standard names.
1461 (Conditional Execution): Update documentation for "predicable".
1462
3801c801
BS
1463 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1464 __builtin_clrsbll): Document.
1465 * doc/rtl.texi (clrsb): New entry.
1466 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1467 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1468 (expand_unop): Handle clrsb_optab.
1469 (init_optabs): Initialize it.
1470 * optabs.h (enum optab_index): New entry OTI_clrsb.
1471 (clrsb_optab): Define.
1472 * genopinit.c (optabs): Add an entry for it.
1473 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1474 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1475 BUILT_IN_CLRSBLL): New.
1476 * rtl.def (CLRSB): New code.
1477 * dwarf2out.c (mem_loc_descriptor): Handle it.
1478 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1479 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1480 and popcount.
1481 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1482 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1483 (__ctzDI2): Move declaration.
1484 * config/bfin/bfin.md (clrsbsi2): New expander.
1485 (signbitssi2): Use the CLRSB rtx.
1486 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1487 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1488
55f01229
RG
14892011-06-21 Richard Guenther <rguenther@suse.de>
1490
637c11bd 1491 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 1492
5181cd6a
IR
14932011-06-21 Ira Rosen <ira.rosen@linaro.org>
1494
1495 PR tree-optimization/49478
1496 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1497 with constant operand.
1498
e4ee3d70
RG
14992011-06-21 Richard Guenther <rguenther@suse.de>
1500
1501 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 1502
7b7ec6c5
RG
15032011-06-21 Richard Guenther <rguenther@suse.de>
1504
1505 PR tree-optimization/49483
1506 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1507 VIEW_CONVERT_EXPR conversions.
1508
1b916ca6
JM
15092011-06-21 Joseph Myers <joseph@codesourcery.com>
1510
1511 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1512 * config/avr/avr-tables.opt: New file (generated).
1513 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1514 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1515 avr-mcus.def.
1516 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1517 (avr_option_override): Don't process -mmcu= argument here. Set
1518 avr_current_device using avr_mcu_index.
637c11bd 1519 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
1520 * config/avr/avr.opt (mmcu=): Use Enum.
1521 * config/avr/t-avr (avr-devices.o): Update dependencies.
1522 ($(srcdir)/config/avr/avr-tables.opt): New.
1523 * target.def (help): Remove.
1524 * doc/tm.texi.in (TARGET_HELP): Remove.
1525 * doc/tm.texi: Regenerate.
1526 * opts.c: Don't include target.h.
1527 (common_handle_option): Don't call targetm.help.
1528 * system.h (TARGET_HELP): Poison.
1529 * Makefile.in (opts.o): Update dependencies.
1530
7ecfa34f
RO
15312011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1532
1533 * config/usegld.h: New file.
1534 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1535 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 1536 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
1537 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1538 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
1539 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1540 Define.
7ecfa34f
RO
1541 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1542 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1543 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1544 (STACK_CHECK_STATIC_BUILTIN): Define.
1545 * config/sol2.opt (compat-bsd): Remove.
1546 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1547 * config/sol2-bi.h: New file.
1548 * config/sol2-gld.h: Remove.
1549 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1550 (NO_DBX_BNSYM_ENSYM): Remove.
1551 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1552 (STACK_CHECK_STATIC_BUILTIN): Remove.
1553 Test USE_GLD instead of TARGET_GNU_LD.
1554 * config/i386/sol2-10.h: Rename to ...
1555 * config/i386/sol2-bi.h .. this.
1556 (SUBTARGET_EXTRA_SPECS): Redefine.
1557 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1558 (MULTILIB_DEFAULTS): Remove.
1559 (DEFAULT_ARCH32_P): Define.
1560 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1561 (ARCH64_SUBDIR): Define.
1562 Test USE_GLD instead of TARGET_GNU_LD.
1563 (I386_EMULATION): Rename to ...
1564 (ARCH32_EMULATION): ... this.
1565 (X86_64_EMULATION): Rename to ...
1566 (ARCH64_EMULATION): ... this.
1567 (TARGET_LD_EMULATION): Remove.
1568 (LINK_ARCH_SPEC): Remove.
1569 * config/i386/sol2-gas.h: Remove.
1570 * config/i386/t-sol2-10: Rename to ...
1571 * config/i386/t-sol2-64: ... this.
1572 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1573 (AS_SPARC64_FLAG): Define.
1574 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1575 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1576 depending on TARGET_CPU_DEFAULT.
1577 (CPP_CPU_SPEC): Redefine.
1578 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1579 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1580 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1581 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1582 ASM_ARCH_DEFAULT_SPEC): Redefine.
1583 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1584 LINK_ARCH_DEFAULT_SPEC.
1585 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1586 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1587 (ARCH64_SUBDIR): Define.
1588 (LINK_ARCH64_SPEC): Redefine.
1589 (CC1_SPEC): Redefine.
1590 (OPTION_DEFAULT_SPECS): Redefine.
1591 (MULTILIB_DEFAULTS): Define.
1592 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1593 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1594 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1595 (NO_DBX_BNSYM_ENSYM): Remove.
1596 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1597 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1598 (TARGET_ASM_NAMED_SECTION): Likewise.
1599 (STACK_CHECK_STATIC_BUILTIN): Remove.
1600 * config/sparc/sol2-bi.h: Remove.
1601 * config/sparc/sol2-gas-bi.h: Remove.
1602 * config/sparc/sol2-gas.h: Remove.
1603 * config/sparc/sol2-gld-bi.h: Remove.
1604 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1605 common parts ...
1606 (*-*-solaris2*): ... here.
1607
4b583c43 16082011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 1609
4b583c43 1610 PR other/43564
637c11bd
UB
1611 * ipa-inline.c (can_inline_edge_p): Check
1612 !DECL_DISREGARD_INLINE_LIMITS.
1613
3bb556ad 16142011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 1615
3bb556ad
CB
1616 PR middle-end/49139
1617 * cgraphunit.c (process_function_and_variable_attributes): warn when
1618 always_inline functions that are not inline.
637c11bd
UB
1619 * ipa-inline-transform.c (inline_transform): Always call
1620 optimize_inline.
1621 * tree-inline.c (tree_inlinable_function_p): Use error instead
1622 of sorry.
3bb556ad 1623 (expand_call_inline): Likewise.
637c11bd 1624
f1ee724c
JJ
16252011-06-21 Jakub Jelinek <jakub@redhat.com>
1626
1627 * Makefile.in (dg_target_exps): Set.
1628 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1629 instead of 7, try to divide it more evenly.
1630
16312011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 1632
931050d0 1633 PR target/49089
97ef5ae6
CF
1634 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1635 (avx256_split_unaligned_store): New definition.
1636 (ix86_option_override_internal): Enable avx256 unaligned load/store
1637 splitting only when avx256_split_unaligned_load/store is set.
1638
998c75b6
BS
16392011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1640
1641 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1642 open chain in a smaller mode without failing the entire block.
1643
83a8cbda
L
16442011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1645
1646 PR middle-end/47725
1647 * combine.c (cant_combine_insn_p): Don't check zero/sign
1648 extended hard registers.
1649
3a769784
AM
16502011-06-21 Alan Modra <amodra@gmail.com>
1651
1652 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1653 CONST high part large-toc address.
1654 (rs6000_tls_referenced_p): Make static.
1655 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1656
d1e32c4a
L
16572011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1658
1659 PR middle-end/47725
1660 * combine.c (cant_combine_insn_p): Check zero/sign extended
1661 hard registers.
1662
c2954af9
RR
16632011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1664
1665 PR target/49385
1666 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1667 one of the operands is a register.
1668
a95015b6
KT
16692011-06-20 Kai Tietz <ktietz@redhat.com>
1670
637c11bd
UB
1671 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1672 operations in combination with binary and.
a95015b6 1673
49a30d00
BS
16742011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1675
1676 * regrename.c (do_replace): Don't update notes.
1677
3bae1d98
AM
16782011-06-20 Alan Modra <amodra@gmail.com>
1679
1680 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1681 of toc-relative address in CONST.
1682 (rs6000_delegitimize_address): Recognize changed address.
1683 (rs6000_legitimize_reload_address): Likewise.
1684 (rs6000_emit_move): Don't force these constants to memory.
1685 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1686 toc-relative address in CONST.
1687 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1688 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1689
10937b0c
L
16902011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1691
637c11bd 1692 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
1693 (count_trailing_zeros): Likewise.
1694
0c587260
L
16952011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1696
1697 PR other/49325
1698 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1699 .init_array can be used with .ctors on targets.
1700 * configure: Regenerated.
1701
c020c92b
EB
17022011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1703
1704 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1705 if the element type is volatile.
1706
cd35bcf7
JH
17072011-06-18 Jan Hubicka <jh@suse.cz>
1708
1709 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1710 extra name aliases.
1711 (lto_symtab_resolve_can_prevail_p): Likewise.
1712 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1713 * cgraphbuild.c (record_reference): Remove extra body alias code.
1714 (mark_load): Likewise.
1715 (mark_store): Likewise.
1716 * cgraph.h (varpool_node): Remove extra_name filed;
1717 add alias_of and extraname_alias.
1718 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1719 (varpool_alias_aliased_node): New inline function.
1720 (varpool_variable_node): New function.
1721 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1722 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1723 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1724 (input_varpool_node): Likewise.
1725 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1726 (varpool_externally_visible_p): Remove extra body alias code.
1727 (function_and_variable_visibility): Likewise.
1728 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1729 (ipa_pta_execute): Use it.
1730 * varpool.c (varpool_remove_node): Remove extra name alias code.
1731 (varpool_mark_needed_node): Likewise.
1732 (varpool_analyze_pending_decls): Analyze aliases.
1733 (assemble_aliases): New functoin.
1734 (varpool_assemble_decl): Use it.
1735 (varpool_create_variable_alias): New function.
1736 (varpool_extra_name_alias): Rewrite.
1737 (varpool_for_node_and_aliases): New function.
1738
c96b4102
JJ
17392011-06-18 Jakub Jelinek <jakub@redhat.com>
1740
1741 PR target/49411
1742 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1743 last_arg_constant and last argument doesn't match its predicate,
1744 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1745 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1746 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1747 spelling of error message.
1748 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1749 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1750 const_0_to_255_operand instead of const_int_operand.
1751
1752 Revert:
1753 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1754
1755 * config/i386/sse.md (blendbits): Remove mode attribute.
1756 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1757 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1758 Check integer value of operand 3 in insn constraint.
1759
9a2091cd
HPN
17602011-06-17 Hans-Peter Nilsson <hp@axis.com>
1761
1762 PR rtl-optimization/48542
1763 * reload.c (find_equiv_reg): Stop looking when finding a
1764 setjmp-type call.
1765 * reload1.c (reload_as_needed): Invalidate all reload
1766 registers when crossing a setjmp-type call.
1767
361b51c0
JL
17682011-06-16 Jeff Law <law@redhat.com>
1769
1770 * tree-ssa-threadupdate.c (struct redirection_data): New field
1771 intermediate_edge.
1772 (THREAD_TARGET2): Define.
637c11bd 1773 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
1774 (lookup_redirection_data): Drop useless argument. Extract the
1775 outgoing_edge and intermediate edge from E. Callers updated.
1776 (copy_phi_args, update_destination_phis): New functions.
1777 (fix_duplicate_block_edges): Likewise.
1778 (create_edge_and_update_destination_phis): Duplicate all the edges
1779 hung off e->aux. Use copy_phi_args.
1780 (create_duplicates): Use fix_duplicate_block_edges.
1781 (fixup_template_block): Likewise.
1782 (redirect_edges): If necessary, redirect the joiner block's incoming
1783 edge to the duplicate of the joiner block.
1784 (thread_block): Don't muck up loops when threading through a joiner
1785 block.
637c11bd 1786 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
1787 (mark_threaded_blocks, register_jump_thread): Likewise.
1788 * tree-flow.h (register_jump_thread): Add new argument. Callers
1789 updated.
1790 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1791 (thread_across_edge): Handle threading through a joiner block.
637c11bd 1792
ee460e75
MJ
17932011-06-16 Martin Jambor <mjambor@suse.cz>
1794
1795 PR tree-optimization/49343
1796 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1797 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1798
a285ba2e
IS
17992011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1800
1801 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1802 inside RTX_CODE ifdef.
1803
0703f020
TV
18042011-06-16 Tom de Vries <tom@codesourcery.com>
1805
1806 PR target/45098
637c11bd
UB
1807 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1808 Disallow NULL pointer for pointer arithmetic.
0703f020 1809
900c07da
RR
18102011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1811
1812 PR target/49398
1813 Revert.
1814 2011-06-10 Wei Guozhi <carrot@google.com>
1815
1816 PR target/45335
1817 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1818 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1819 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1820 related peephole2.
1821 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1822 related peephole2.
1823 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1824 (arm_legitimate_ldrd_p): New prototype.
1825 (arm_output_ldrd): New prototype.
1826 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1827 (arm_legitimate_ldrd_p): New function.
1828 (arm_output_ldrd): New function.
1829
c020c92b 18302011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
1831
1832 PR middle-end/46500
1833 * doc/tm.texi.in: Update Copyright date.
1834 * doc/tm.texi: Regenerate.
1835 * targhooks.c (default_setup_incoming_varargs): Replace
1836 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1837 (default_pretend_outgoing_varargs_named): Likewise.
1838 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1839 (hook_callee_copies_named): Likewise.
1840 (default_function_arg_advance): Likewise.
1841 (default_function_arg): Likewise.
1842 (default_function_incoming_arg): Likewise.
1843 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1844 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1845 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1846 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1847 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1848 * targhooks.h (default_setup_incoming_varargs): Likewise.
1849 (default_pretend_outgoing_varargs_named): Likewise.
1850 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1851 (hook_callee_copies_named): Likewise.
1852 (default_function_arg_advance): Likewise.
1853 (default_function_arg): Likewise.
1854 (default_function_incoming_arg): Likewise.
1855 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1856 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1857 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1858 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1859 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1860 * target.def (pass_by_reference): Likewise.
1861 (setup_incoming_varargs, strict_argument_naming): Likewise.
1862 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1863 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1864 (function_incoming_arg): Likewise.
1865 * target.h: Don't include "tm.h" .
1866 (cumulative_args_t): New typedef.
1867 [GCC_TM_H] (get_cumulative_args): New static inline function.
1868 [GCC_TM_H] (pack_cumulative_args): Likewise.
1869 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1870 argument type with cumulative_args_t.
1871 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1872 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1873 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1874 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1875 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1876 (frv_function_arg_1): Likewise.
1877 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1878 (s390_function_arg_advance, s390_function_arg): Likewise.
1879 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1880 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1881 (m32c_strict_argument_naming): Likewise.
1882 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1883 (spu_function_arg_advance): Likewise.
1884 (spu_setup_incoming_varargs): Likewise. Make static.
1885 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1886 Remove prototype.
1887 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1888 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1889 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1890 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1891 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1892 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1893 (mep_pass_by_reference, mep_function_arg): Likewise.
1894 (mep_function_arg_advance): Likewise.
1895 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1896 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1897 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1898 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1899 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1900 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1901 (ix86_setup_incoming_varargs): Likewise.
1902 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1903 (sh_strict_argument_naming): Likewise.
1904 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1905 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1906 (sh_function_arg_advance, sh_function_arg): Likewise.
1907 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1908 (pdp11_function_arg_advance): Likewise.
1909 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1910 Likewise.
1911 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1912 * config/avr/avr.c (avr_function_arg): Likewise.
1913 (avr_function_arg_advance): Likewise.
1914 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1915 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1916 (xtensa_function_arg_1): Likewise.
637c11bd
UB
1917 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1918 Likewise.
d5cc9181
JR
1919 (xstormy16_function_arg): Likewise.
1920 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1921 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1922 (fr30_function_arg_advance): Likewise.
1923 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1924 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1925 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1926 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1927 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1928 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1929 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1930 (cris_function_arg, cris_function_incoming_arg): Likewise.
1931 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1932 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1933 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1934 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1935 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1936 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1937 (mn10300_arg_partial_bytes): Likewise.
1938 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1939 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1940 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1941 (ia64_function_arg_1): Likewise.
1942 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1943 (m68k_function_arg): Likewise.
1944 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1945 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1946 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1947 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1948 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1949 (picochip_arg_advance): Likewise.
1950 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1951 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1952 (mcore_function_arg_advance): Likewise.
1953 * config/score/score.c (score_pass_by_reference): Likewise.
1954 (score_function_arg_advance): Likewise.
1955 (score_arg_partial_bytes): Likewise. Make static.
1956 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1957 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1958 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1959 (arm_function_arg, arm_function_arg_advance): Likewise.
1960 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1961 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1962 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1963 (pa_function_arg): Likewise.
1964 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1965 (mips_function_arg, mips_function_arg_advance): Likewise.
1966 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1967 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1968 * config/vax/vax.c (vax_function_arg): Likewise.
1969 (vax_function_arg_advance): Likewise.
1970 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1971 (h8300_function_arg_advance): Likewise.
1972 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1973 (v850_strict_argument_naming, v850_function_arg): Likewise.
1974 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1975 (v850_setup_incoming_varargs): Likewise.
1976 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1977 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1978 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1979 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1980 with const void *.
1981 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1982 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1983 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1984 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1985 * calls.c (emit_call_1): Change type of args_so_far to
1986 cumulative_args_t. Changed all callers.
1987 (initialize_argument_information): Likewise.
1988 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1989 * dse.c (get_call_args): Likewise.
1990 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1991 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1992 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1993 New member args_so_far_v. Changed all users.
1994 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1995 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1996 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1997 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1998 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
1999 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2000 Likewise.
d5cc9181
JR
2001 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2002 m32r_pass_by_reference.
2003
51312233
IR
20042011-06-16 Ira Rosen <ira.rosen@linaro.org>
2005
2006 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2007 argument to be a VEC of statements.
637c11bd
UB
2008 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2009 assert that pattern statements have to have their vector type set.
51312233
IR
2010 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2011 Change the first argument to be a VEC of statements. Update
2012 documentation.
2013 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2014 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
2015 (vect_recog_widen_mult_pattern): Change the first argument to be a
2016 VEC of statements. Update documentation. Check that the constant is
2017 INTEGER_CST. Support multiplication by a constant that fits an
2018 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
2019 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2020 call. Handle additional pattern statements if necessary.
2021
fd4df33d
NC
20222011-06-16 Nick Clifton <nickc@redhat.com>
2023
2024 PR target/49427
2025 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2026 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2027 md_file, extra_modes, out_file and extra_options are these are all
2028 deduced from cpu_type.
2029
fbd05da0
GJL
20302011-06-16 Georg-Johann Lay <avr@gjlay.de>
2031
2032 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2033 truncation mask to 63.
2034
0ad8bb3b
GJL
20352011-06-16 Georg-Johann Lay <avr@gjlay.de>
2036
2037 PR target/49313
2038 PR target/29524
2039 * longlong.h: Add AVR support:
2040 (count_leading_zeros): New macro.
2041 (count_trailing_zeros): New macro.
2042 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
2043 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2044 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2045 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2046 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
2047 (LIB2FUNCS_EXCLUDE): Add _clz.
2048 * config/avr/libgcc.S (XCALL): Move up in file.
2049 (XJMP): New C Macro.
2050 (DEFUN): New asm macro.
2051 (ENDF): New asm macro.
2052 (__ffssi2): New function.
2053 (__ffshi2): New function.
2054 (__loop_ffsqi2): New function.
2055 (__ctzsi2): New function.
2056 (__ctzhi2): New function.
2057 (__clzdi2): New function.
2058 (__clzsi2): New function.
2059 (__clzhi2): New function.
2060 (__paritydi2): New function.
2061 (__paritysi2): New function.
2062 (__parityhi2): New function.
59c1e10b 2063 (__parityqi2): New function.
0ad8bb3b
GJL
2064 (__popcounthi2): New function.
2065 (__popcountsi2): New function.
2066 (__popcountdi2): New function.
2067 (__popcountqi2): New function.
2068 (__bswapsi2): New function.
2069 (__bswapdi2): New function.
2070 (__ashldi3): New function.
2071 (__ashrdi3): New function.
2072 (__lshrdi3): New function.
2073 Fix suspicous lines.
2074
12430896
RG
20752011-06-16 Richard Guenther <rguenther@suse.de>
2076
2077 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2078 the same as x != 0.
637c11bd
UB
2079 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2080 to (bool) X & 1.
12430896
RG
2081 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2082 equality compares against zero for the lower bit.
2083
09302442
JJ
20842011-06-16 Jakub Jelinek <jakub@redhat.com>
2085
2086 PR tree-optimization/49419
2087 * tree-vrp.c (execute_vrp): Call init_range_assertions
2088 before estimate_numbers_of_iterations, call
2089 free_number_of_iterations_estimates before calling
2090 remove_range_assertions.
2091
81c41166
RE
20922011-06-16 Revital Eres <revital.eres@linaro.org>
2093
2094 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2095 (struct partial_schedule): Add rows_length field.
2096 (verify_partial_schedule): Check rows_length.
2097 (ps_insert_empty_row): Handle rows_length.
2098 (create_partial_schedule): Likewise.
2099 (free_partial_schedule): Likewise.
2100 (reset_partial_schedule): Likewise.
2101 (create_ps_insn): Remove rest_count argument.
2102 (remove_node_from_ps): Update rows_length.
2103 (add_node_to_ps): Update rows_length and call create_ps_insn
2104 without passing row_rest_count.
2105 (rotate_partial_schedule): Update rows_length.
2106
d24dc7b3
RE
21072011-06-16 Revital Eres <revital.eres@linaro.org>
2108
2109 * ddg.c (add_intra_loop_mem_dep): New function.
2110 (build_intra_loop_deps): Call it.
2111
361b51c0 21122011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
2113
2114 * df-problems.c (df_lr_local_compute): Manually CSE
2115 PIC_OFFSET_TABLE_REGNUM.
2116 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2117 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2118
85ce9375
JH
21192011-06-13 Jan Hubicka <jh@suse.cz>
2120
2121 * cgraphunit.c (handle_alias_pairs): New function.
2122 (cgraph_finalize_compilation_unit): Use it.
2123 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2124 as externally visible.
2125
a577c405
RG
21262011-06-15 Richard Guenther <rguenther@suse.de>
2127
2128 * expr.c (expand_expr_real_2): Reduce all integral types to
2129 bitfield precision.
2130 (expand_expr_real_1): Likewise.
2131
93536c97
MJ
21322011-06-15 Martin Jambor <mjambor@suse.cz>
2133
2134 PR tree-optimization/48613
2135 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2136 ipa_node_params_vector is NULL.
fd4df33d 2137
ba45cfc4
JJ
21382011-06-15 Jakub Jelinek <jakub@redhat.com>
2139
2140 PR debug/49382
2141 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
2142 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2143 location in the list, even if it is modified before first real insn.
ba45cfc4 2144 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 2145 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 2146
6fc5966f
AM
21472011-06-15 Alexander Monakov <amonakov@ispras.ru>
2148
2149 PR target/49349
2150 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2151 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2152 above a fence. Update comments.
2153 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2154 placed just above it. Do not allow NULL place_to_insert.
2155
9d5e7640
IR
21562011-06-15 Ira Rosen <ira.rosen@linaro.org>
2157
2158 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2159 (slpeel_tree_peel_loop_to_edge): Don't call
2160 remove_dead_stmts_from_loop.
2161 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2162 remove irrelevant pattern statements. For irrelevant statements
2163 check if it is the last statement of a detected pattern, use
2164 corresponding pattern statement instead.
2165 (destroy_loop_vec_info): No need to remove pattern statements,
2166 only free stmt_vec_info.
2167 (vect_transform_loop): For irrelevant statements check if it is
2168 the last statement of a detected pattern, use corresponding
2169 pattern statement instead.
2170 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2171 pattern statements. Set basic block for the new statement.
2172 (vect_pattern_recog): Update documentation.
2173 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2174 operands of pattern statements.
2175 (vectorizable_call): Fix printing. In case of a pattern statement
2176 use the lhs of the original statement when creating a dummy
2177 statement to replace the original call.
2178 (vect_analyze_stmt): For irrelevant statements check if it is
2179 the last statement of a detected pattern, use corresponding
2180 pattern statement instead.
2181 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2182 statements use gsi of the original statement.
2183
677f3fa8
JM
21842011-06-14 Joseph Myers <joseph@codesourcery.com>
2185
2186 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2187 common/common-target-def.h.
2188 * target.def (default_target_flags, handle_option,
2189 supports_split_stack, optimization_table, init_struct,
2190 except_unwind_info, unwind_tables_default, have_named_sections):
2191 Move to common/common-target.def.
2192 * target.h (enum opt_levels, struct default_options): Move to
2193 common/common-target.h.
2194 * targhooks.c (default_except_unwind_info,
2195 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2196 default_target_handle_option, empty_optimization_table): Move to
2197 common/common-targhooks.c.
2198 * targhooks.h (default_except_unwind_info,
2199 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2200 default_target_handle_option, empty_optimization_table): Move to
2201 common/common-targhooks.h.
2202 * common/common-target-def.h: Include common/common-targhooks.h.
2203 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2204 defined.
2205 * common/common-target.def (handle_option, option_init_struct,
2206 option_optimization_table, default_target_flags,
2207 except_unwind_info, supports_split_stack, unwind_tables_default,
2208 have_named_sections): Move from target.def.
2209 (HOOK_PREFIX): Undefine at end of file.
2210 * common/common-target.h: Include input.h.
2211 (enum opt_levels, struct default_options): Move from target.h.
2212 * common/common-targhooks.c, common/common-targhooks.h: New.
2213 * config.gcc (target_has_targetm_common): Default to yes.
2214 (moxie*): Set target_has_targetm_common=no.
2215 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2216 * doc/tm.texi: Regenerate.
2217 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2218 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2219 (GCC_OBJS): Remove vec.o.
2220 (OBJS): Remove hooks.o and vec.o.
2221 (OBJS-libcommon-target): Add vec.o, hooks.o and
2222 common/common-targhooks.o.
2223 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2224 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2225 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2226 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2227 Update dependencies.
2228 (common/common-targhooks.o): New.
637c11bd 2229 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
2230 * common/config/pa/pa-common.c: Include more headers. Take
2231 copyright dates from pa.c.
2232 (pa_option_optimization_table, pa_handle_option,
2233 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2234 TARGET_HANDLE_OPTION): Move from pa.c.
2235 * common/config/alpha/alpha-common.c,
2236 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2237 common/config/bfin/bfin-common.c,
2238 common/config/cris/cris-common.c,
2239 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2240 common/config/h8300/h8300-common.c,
2241 common/config/i386/i386-common.c,
2242 common/config/ia64/ia64-common.c,
2243 common/config/iq2000/iq2000-common.c,
2244 common/config/lm32/lm32-common.c,
2245 common/config/m32c/m32c-common.c,
2246 common/config/m32r/m32r-common.c,
2247 common/config/m68k/m68k-common.c,
2248 common/config/mcore/mcore-common.c,
2249 common/config/mep/mep-common.c,
2250 common/config/microblaze/microblaze-common.c,
2251 common/config/mips/mips-common.c,
2252 common/config/mmix/mmix-common.c,
2253 common/config/mn10300/mn10300-common.c,
2254 common/config/pdp11/pdp11-common.c,
2255 common/config/picochip/picochip-common.c,
2256 common/config/rs6000/rs6000-common.c,
2257 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2258 common/config/score/score-common.c, common/config/sh/sh-common.c,
2259 common/config/sparc/sparc-common.c,
2260 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2261 common/config/vax/vax-common.c,
2262 common/config/xstormy16/xstormy16-common.c,
2263 common/config/xtensa/xtensa-common.c: New.
2264 * config/alpha/alpha.c: Include common/common-target.h.
2265 (alpha_option_optimization_table, alpha_handle_option,
2266 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2267 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2268 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2269 * config/arm/arm.c (arm_option_optimization_table,
2270 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2271 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2272 arm-common.c.
2273 * config/avr/avr.c (avr_option_optimization_table,
2274 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2275 to avr-common.c.
2276 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2277 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2278 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2279 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2280 * config/cris/cris.c (cris_option_optimization_table,
2281 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2282 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2283 cris-common.c.
2284 * config/fr30/fr30.c (fr30_option_optimization_table,
2285 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2286 to fr30-common.c.
2287 * config/frv/frv.c (frv_option_optimization_table,
2288 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2289 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2290 * config/h8300/h8300.c (h8300_option_optimization_table,
2291 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2292 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2293 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2294 * config/i386/i386.c: Include common/common-target.h.
2295 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2296 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2297 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2298 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2299 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2300 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2301 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2302 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2303 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2304 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2305 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2306 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2307 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2308 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2309 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2310 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2311 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2312 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2313 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2314 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2315 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2316 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2317 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2318 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2319 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2320 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2321 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2322 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2323 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2324 ix86_option_optimization_table, ix86_option_init_struct,
2325 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2326 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2327 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2328 i386-common.c.
2329 * config/i386/t-i386 (i386.o): Update dependencies.
2330 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2331 * config/ia64/ia64.c (ia64_option_optimization_table,
2332 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2333 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2334 ia64_handle_option): Move to ia64-common.c.
2335 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2336 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2337 * config/lm32/lm32.c (lm32_option_optimization_table,
2338 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2339 to lm32-common.c.
2340 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2341 m32c-common.c.
2342 * config/m32r/m32r.c (m32r_option_optimization_table,
2343 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2344 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2345 m32r_handle_option): Move to m32r-common.c.
2346 (m32r_memory_move_cost): Remove comment referring to
2347 TARGET_HANDLE_OPTION.
2348 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2349 Move to m68k-common.c.
2350 * config/mcore/mcore.c (mcore_option_optimization_table,
2351 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2352 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2353 * config/mep/mep.c (mep_option_optimization_table,
2354 mep_handle_option, TARGET_HANDLE_OPTION,
2355 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2356 Move to mep-common.c.
2357 * config/microblaze/microblaze.c
2358 (microblaze_option_optimization_table,
2359 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2360 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2361 * config/mips/mips.c (mips_handle_option,
2362 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2363 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2364 mips-common.c.
2365 * config/mmix/mmix.c (mmix_option_optimization_table,
2366 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2367 Move to mmix-common.c.
2368 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2369 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2370 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2371 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2372 * config/pa/pa.c: Include common/common-target.h.
2373 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2374 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2375 pa_handle_option): Move to pa-common.c.
2376 (pa_option_override): Use targetm_common.except_unwind_info.
2377 (pa_asm_output_mi_thunk, pa_function_section): Use
2378 targetm_common.have_named_sections.
2379 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2380 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2381 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2382 pdp11_handle_option, pdp11_option_init_struct): Move to
2383 pdp11-common.c.
2384 * config/picochip/picochip.c (picochip_option_optimization_table,
2385 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2386 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2387 * config/rs6000/rs6000.c: Include common/common-target.h.
2388 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2389 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2390 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2391 rs6000_handle_option): Move to rs6000-common.c.
2392 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2393 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2394 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2395 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2396 * config/s390/s390.c (processor_flags_table,
2397 s390_option_optimization_table, s390_option_init_struct,
2398 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2399 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2400 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2401 * config/s390/s390.h (processor_flags_table): Declare.
2402 * config/score/score.c (score_option_optimization_table,
2403 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2404 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2405 score_handle_option): Move to score-common.c.
2406 * config/sh/sh.c (sh_option_optimization_table,
2407 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2408 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2409 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2410 * config/sparc/sparc.c: Include common/common-target.h.
2411 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2412 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2413 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2414 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2415 spu_option_init_struct): Move to spu-common.c.
2416 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2417 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2418 * config/v850/v850.c (small_memory_physical_max,
2419 v850_handle_memory_optionn v850_handle_option,
2420 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2421 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2422 v850-common.c.
637c11bd 2423 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
2424 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2425 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2426 Move to xtensa-common.c.
2427 * cfglayout.c: Include common/common-target.h.
2428 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2429 * cfgrtl.c: Include common/common-target.h.
2430 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2431 targetm_common.have_named_sections.
2432 * dbxout.c: Include common/common-target.h.
2433 (dbxout_function_end): Use targetm_common.have_named_sections.
2434 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2435 targetm_common.except_unwind_info.
2436 * dwarf2out.c: Include common/common-target.h.
2437 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2438 dwarf2out_begin_prologue, dwarf2out_frame_init,
2439 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2440 targetm_common.except_unwind_info.
2441 * except.c: Include common/common-target.h.
2442 (init_eh, finish_eh_generation,
2443 output_one_function_exception_table): Use
2444 targetm_common.except_unwind_info.
637c11bd 2445 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
2446 * explow.c: Include common/common-target.h.
2447 * expr.c: Include common/common-target.h.
637c11bd 2448 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
2449 * function.c: Include common/common-target.h.
2450 (expand_function_end): Use targetm_common.except_unwind_info.
2451 * haifa-sched.c: Include common/common-target.h.
637c11bd 2452 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
2453 * lto-opts.c: Include common/common-target.h instead of target.h.
2454 (lto_reissue_options): Use targetm_common.handle_option.
2455 * opts.c: Include common/common-target.h.
2456 (target_handle_option): Use targetm_common.handle_option.
2457 (init_options_struct): Update comment referring to
2458 targetm.target_option.optimization. Use
2459 targetm_common.default_target_flags,
2460 targetm_common.unwind_tables_default and
2461 targetm_common.option_init_struct.
2462 (default_options_optimization): Use
2463 targetm_common.option_optimization_table.
2464 (finish_options): Use targetm_common.except_unwind_info,
2465 targetm_common.unwind_tables_default,
2466 targetm_common.have_named_sections and
2467 targetm_common.supports_split_stack.
2468 * toplev.c: Include common/common-target.h.
2469 (process_options): Use targetm_common.have_named_sections.
2470 * tree-tailcall.c: Include common/common-target.h.
637c11bd 2471 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 2472 * tree.c: Include common/common-target.h.
637c11bd 2473 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
2474 * varasm.c: Include common/common-target.h.
2475 (resolve_unique_section, hot_function_section,
2476 default_function_section): Use targetm_common.have_named_sections.
2477
d26c7090
ER
24782011-06-14 Easwaran Raman <eraman@google.com>
2479
2480 PR rtl-optimization/44194
2481 * dse.c: Include tree-flow.h
2482 (insn_info): Add new field non_frame_wild_read.
2483 (group_info): Add new fields escaped_n and escaped_p.
2484 (kill_on_calls): New variable.
2485 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2486 (dse_step0): Initialize kill_on_calls.
2487 (can_escape): New function.
2488 (set_usage_bits): Add additional parameter; record information
2489 about escaped locations.
637c11bd 2490 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
2491 (dse_step2_nospill): Set kill_on_calls based on
2492 group->escaped_n and group->escaped_n.
2493 (add_wild_read): Refactor into...
2494 (reset_active_stores): ... New function, and
2495 (free_read_records): ... New function.
2496 (add_non_frame_wild_read): New function.
2497 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 2498 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
2499 (dse_step5_nospill): Call scan_reads_nospill for instructions
2500 marked as non_frame_wild_read.
637c11bd 2501 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 2502
c49a6962
JM
25032011-06-14 Joseph Myers <joseph@codesourcery.com>
2504
2505 * common/common-target-def.h, common/common-target.def,
2506 common/common-target.h, common/config/default-common.c,
2507 common/config/pa/pa-common.c: New files.
2508 * Makefile.in (common_out_file, common_out_object_file,
2509 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2510 (OBJS-libcommon-target): Include $(common_out_object_file).
2511 (prefix.o): Update dependencies.
2512 ($(common_out_object_file), common/common-target-hooks-def.h,
2513 s-common-target-hooks-def-h): New.
2514 (s-tm-texi): Also check timestamp on common-target.def.
2515 (build/genhooks.o): Update dependencies.
2516 * config.gcc (common_out_file, target_has_targetm_common): Define.
2517 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2518 TARGET_ALWAYS_STRIP_DOTDOT.
2519 * configure.ac (common_out_object_file): Define.
2520 (common_out_file, common_out_object_file): Substitute.
2521 (common): Create directory.
2522 * configure: Regenerate.
2523 * doc/tm.texi.in (targetm_common): Document.
2524 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2525 * doc/tm.texi: Regenerate.
2526 * genhooks.c (hook_array): Also include common/common-target.def.
2527 * prefix.c (tm.h): Don't include.
2528 (common/common-target.h): Include.
2529 (ALWAYS_STRIP_DOTDOT): Don't define.
2530 (update_path): Use targetm_common.always_strip_dotdot instead of
2531 ALWAYS_STRIP_DOTDOT.
2532 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2533
22c5fa5f
DL
25342011-06-14 David Li <davidxl@google.com>
2535
2536 * passes.c (execute_function_todo): Remove TODO_dump_func.
2537 (execute_one_pass): Remove TODO_dump_func.
2538 (execute_function_dump): New function.
2539 * tree-vrp.c: Remove TODO_dump_func.
2540 * regrename.c: Remove TODO_dump_func.
2541 * fwprop.c: Remove TODO_dump_func.
2542 * tree-into-ssa.c: Remove TODO_dump_func.
2543 * tree-complex.c: Remove TODO_dump_func.
2544 * tracer.c: Remove TODO_dump_func.
2545 * tree-loop-distribution.c: Remove TODO_dump_func.
2546 * postreload-gcse.c: Remove TODO_dump_func.
2547 * postreload.c: Remove TODO_dump_func.
2548 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2549 * tree-tailcall.c: Remove TODO_dump_func.
2550 * ipa-cp.c: Remove TODO_dump_func.
2551 * final.c: Remove TODO_dump_func.
2552 * tree-emutls.c: Remove TODO_dump_func.
2553 * omp-low.c: Remove TODO_dump_func.
2554 * tree-ssa-dse.c: Remove TODO_dump_func.
2555 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2556 * auto-inc-dec.c: Remove TODO_dump_func.
2557 * reorg.c: Remove TODO_dump_func.
2558 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2559 * tree-ssa-ccp.c: Remove TODO_dump_func.
2560 * compare-elim.c: Remove TODO_dump_func.
2561 * mode-switching.c: Remove TODO_dump_func.
2562 * modulo-sched.c: Remove TODO_dump_func.
2563 * tree-call-cdce.c: Remove TODO_dump_func.
2564 * cse.c: Remove TODO_dump_func.
2565 * web.c: Remove TODO_dump_func.
2566 * tree-stdarg.c: Remove TODO_dump_func.
2567 * lto-streamer-out.c: Remove TODO_dump_func.
2568 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2569 * tree-ssa-dom.c: Remove TODO_dump_func.
2570 * tree-nrv.c: Remove TODO_dump_func.
2571 * loop-init.c: Remove TODO_dump_func.
2572 * gimple-low.c: Remove TODO_dump_func.
2573 * ipa-inline.c: Remove TODO_dump_func.
2574 * tree-ssa-sink.c: Remove TODO_dump_func.
2575 * jump.c: Remove TODO_dump_func.
2576 * ifcvt.c: Remove TODO_dump_func.
2577 * tree-ssa-loop.c: Remove TODO_dump_func.
2578 * recog.c: Remove TODO_dump_func.
2579 * dse.c: Remove TODO_dump_func.
2580 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2581 * matrix-reorg.c: Remove TODO_dump_func.
2582 * tree-eh.c: Remove TODO_dump_func.
2583 * regmove.c: Remove TODO_dump_func.
2584 * function.c: Remove TODO_dump_func.
2585 * tree-vectorizer.c: Remove TODO_dump_func.
2586 * ipa-split.c: Remove TODO_dump_func.
2587 * gcse.c: Remove TODO_dump_func.
2588 * tree-if-conv.c: Remove TODO_dump_func.
2589 * init-regs.c: Remove TODO_dump_func.
2590 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2591 * implicit-zee.c: Remove TODO_dump_func.
2592 * lower-subreg.c: Remove TODO_dump_func.
2593 * bt-load.c: Remove TODO_dump_func.
2594 * tree-dfa.c: Remove TODO_dump_func.
2595 * except.c: Remove TODO_dump_func.
2596 * emit-rtl.c: Remove TODO_dump_func.
2597 * store-motion.c: Remove TODO_dump_func.
2598 * cfgexpand.c: Remove TODO_dump_func.
2599 * tree-cfgcleanup.c: Remove TODO_dump_func.
2600 * cfgcleanup.c: Remove TODO_dump_func.
2601 * tree-ssa-pre.c: Remove TODO_dump_func.
2602 * tree-sra.c: Remove TODO_dump_func.
2603 * tree-mudflap.c: Remove TODO_dump_func.
2604 * tree-ssa-copy.c: Remove TODO_dump_func.
2605 * cfglayout.c: Remove TODO_dump_func.
2606 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2607 * tree-ssa-dce.c: Remove TODO_dump_func.
2608 * ira.c: Remove TODO_dump_func.
2609 * tree-ssa.c: Remove TODO_dump_func.
2610 * integrate.c: Remove TODO_dump_func.
2611 * tree-optimize.c: Remove TODO_dump_func.
2612 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2613 * tree-object-size.c: Remove TODO_dump_func.
2614 * combine.c: Remove TODO_dump_func.
2615 * bb-reorder.c: Remove TODO_dump_func.
2616 * cprop.c: Remove TODO_dump_func.
2617 * var-tracking.c: Remove TODO_dump_func.
2618 * tree-profile.c: Remove TODO_dump_func.
2619 * tree-vect-generic.c: Remove TODO_dump_func.
2620 * reg-stack.c: Remove TODO_dump_func.
2621 * sched-rgn.c: Remove TODO_dump_func.
2622 * tree-ssa-structalias.c: Remove TODO_dump_func.
2623 * tree-switch-conversion.c: Remove TODO_dump_func.
2624 * tree-cfg.c: Remove TODO_dump_func.
2625 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2626 * combine-stack-adj.c: Remove TODO_dump_func.
2627 * dce.c: Remove TODO_dump_func.
2628 * tree-ssanames.c: Remove TODO_dump_func.
2629 * regcprop.c: Remove TODO_dump_func.
2630
fa465762
L
26312011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2632
2633 PR middle-end/47364
2634 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2635 and properly handle result not in Pmode.
2636
7d8d16c3
RM
26372011-06-14 Robert Millan <rmh@gnu.org>
2638
2639 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2640 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2641 `config/linux.h'.
2642
2643 * config/i386/kfreebsd-gnu64.h: New file.
2644 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2645 with `i386/kfreebsd-gnu64.h'.
2646
2647 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2648 (GNU_USER_LINK_EMULATION64): New macros.
2649 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2650 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2651 of hardcoding `elf_i386' and `elf_x86_64'.
2652
0ccef3d2
NC
26532011-06-14 Nick Clifton <nickc@redhat.com>
2654
2655 PR target/49403
2656 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2657
2658 PR target/49402
2659 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2660
8a76c4a0
JJ
26612011-06-14 Jakub Jelinek <jakub@redhat.com>
2662
1ace6185
JJ
2663 PR fortran/49103
2664 * tree.h (DECL_NONSHAREABLE): Define.
2665 (struct tree_decl_common): Change decl_common_unused to
2666 decl_nonshareable_flag.
2667 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2668 Ignore vars with DECL_NONSHAREABLE bit set.
2669 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2670 on stores to automatic aggregate vars.
2671
8a76c4a0
JJ
2672 PR rtl-optimization/49390
2673 Revert:
2674 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2675
2676 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2677 MEM_ALIAS_SET.
2678
b4a9343c
ZD
26792011-06-14 Zdenek Dvorak <ook@ucw.cz>
2680 Tom de Vries <tom@codesourcery.com>
2681
2682 PR target/45098
2683 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2684 Document changed semantics.
2685 (max_stmt_executions, max_stmt_executions_int): Declare.
2686 * tree-data-ref.c (estimated_loop_iterations)
2687 (estimated_loop_iterations_int): Move functions...
2688 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2689 (estimated_loop_iterations_int): here.
2690 (record_estimate): Change nb_iterations_upper_bound and
2691 nb_iterations_estimate semantics.
2692 (max_stmt_executions, max_stmt_executions_int): New function.
2693 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2694 (max_stmt_executions_tree): this.
2695 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2696 estimated_loop_iterations_tree.
2697 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2698 max_stmt_executions_int instead of estimated_loop_iterations_int.
2699 * predict.c (predict_loops): Idem.
2700 * tree-parloops.c (parallelize_loops): Idem.
2701 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2702 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2703 (init_omega_for_ddr_1): Idem.
2704 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2705 (loop_prefetch_arrays): Idem
2706 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2707 max_stmt_executions instead of estimated_loop_iterations.
2708 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2709 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2710 instead of nb_iterations_upper_bound.
2711
d2640c43
JH
27122011-06-13 Jan Hubicka <jh@suse.cz>
2713
2714 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2715
40873cdd
RH
27162011-06-14 Richard Henderson <rth@redhat.com>
2717
2718 PR debug/48459
2719 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2720 (based_loc_descr): Assert it's true.
2721 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2722 aborting immediately.
2723
73e8cb24
SL
27242011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2725 Mingfeng Wu <mingfeng@faraday-tech.com>
2726
2727 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2728
f835f0a7
JH
27292011-06-13 Jan Hubicka <jh@suse.cz>
2730
2731 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2732
ee6f1177
JH
27332011-06-13 Jan Hubicka <jh@suse.cz>
2734
2735 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2736 similarly to DECL_COMDAT.
2737 * cgraphunit.c (cgraph_analyze_function): Likewise.
2738 * ipa.c (function_and_variable_visibility): Likewise.
2739
618abf9a
JH
27402011-06-13 Jan Hubicka <jh@suse.cz>
2741
2742 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2743 BINFO_VIRTUALS when streaming for ltrans unit.
2744
a45fe02f
DE
27452011-06-13 David Edelsohn <dje.gcc@gmail.com>
2746
2747 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2748 (movdi_internal64): Same.
2749
27502011-06-13 Edmar Wienskoski <edmar@freescale.com>
2751
e641e495 2752 PR target/44618
7d8d16c3
RM
2753 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2754 a set of similar patterns, where the MATCH_OPERAND for the function
2755 argument is replaced with individual references to hardware registers.
a45fe02f
DE
2756 (save_fpregs_<mode>): Ditto
2757 (restore_gpregs_<mode>): Ditto
2758 (return_and_restore_gpregs_<mode>): Ditto
2759 (return_and_restore_fpregs_<mode>): Ditto
2760 (return_and_restore_fpregs_aix_<mode>): Ditto
2761
8775a18b
JH
27622011-06-13 Jan Hubicka <jh@suse.cz>
2763
2764 * ipa-utils.c (postorder_stack): New structure.
2765 (ipa_reverse_postorder): Handle aliases.
2766
27672011-06-13 Jan Hubicka <jh@suse.cz>
2768
2769 * ipa-inline.c (reset_edge_caches): Walk aliases.
2770 (update_caller_keys): Do not test inlinability of aliases.
2771 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2772 (do_estimate_growth): Fix typo.
2773
6c69a029
JH
27742011-06-13 Jan Hubicka <jh@suse.cz>
2775
2776 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2777 (can_remove_node_now_p): ... here; handle same comdat groups.
2778 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2779 (inline_call): Update use of can_remove_node_now_p.
2780
10c63ba4 27812011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 2782
10c63ba4 2783 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
2784 condition to disallow non-identical memory locations.
2785 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2786 preference to bit manipulation instructions.
495f8c14 2787
9aa3f5c5
JH
27882011-06-13 Jan Hubicka <jh@suse.cz>
2789
2790 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2791 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2792 (nonremovable_p): New function.
2793 (cgraph_can_remove_if_no_direct_calls_p): New function.
2794 (used_from_object_file_p): New functoin.
10c63ba4
EB
2795 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2796 references from aliases.
9aa3f5c5
JH
2797 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2798 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
2799 (want_inline_function_called_once_p): Use it; accept aliases called
2800 once, too.
9aa3f5c5
JH
2801 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2802
30cecf17
RR
28032011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2804
2805 PR target/48454
2806 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2807 correctly for the case with Quad vectors.
2808
29f85237
JJ
28092011-06-13 Jakub Jelinek <jakub@redhat.com>
2810 Ira Rosen <ira.rosen@linaro.org>
2811
2812 PR tree-optimization/49352
2813 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2814 all, make sure loop_use_stmt after the loop is a def stmt of a used
2815 SSA_NAME that is the only one defined inside of the loop. Don't
2816 check for COND_EXPR and GIMPLE_BINARY_RHS.
2817 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2818 check_reduction is true.
2819
c3e3f090
JH
28202011-06-11 Jan Hubicka <jh@suse.cz>
2821
2822 PR middle-end/49373
2823 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2824
516e0768
JH
28252011-06-11 Jan Hubicka <jh@suse.cz>
2826
2827 PR middle-end/48836
2828 * ipa-inline-transform.c: Include tree-pass.h
2829 (inline_transform): Set TODO_update_ssa_only_virtuals.
2830 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2831
903b0a8b
JH
28322011-06-11 Jan Hubicka <jh@suse.cz>
2833
2834 PR middle-end/49378
2835 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2836 aliases and thunks.
2837
44542f8e
IR
28382011-06-12 Ira Rosen <ira.rosen@linaro.org>
2839
2840 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2841 Take number of iterations to peel into account for equally frequent
2842 misalignment values.
2843
ea89702b
JH
28442011-06-11 Jan Hubicka <jh@suse.cz>
2845
637c11bd
UB
2846 * lto-streamer-out.c (produce_symtab): Stream out the newly
2847 represented aliases.
ea89702b 2848
380ed5ed
JH
28492011-06-11 Jan Hubicka <jh@suse.cz>
2850
637c11bd
UB
2851 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2852 varying args.
380ed5ed
JH
2853 (ipa_update_after_lto_read): Likewise.
2854 (ipa_write_node_info): Do not sream call_with_var_arguments.
2855 (ipa_read_node_info): Likewise.
2856
00cfc363
JH
28572011-06-11 Jan Hubicka <jh@suse.cz>
2858
2859 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2860
39e2db00
JH
28612011-06-11 Jan Hubicka <jh@suse.cz>
2862
2863 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2864 (lto_symtab_resolve_can_prevail_p): Likewise.
2865 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2866 * cgraph.c (same_body_aliases_done): New global var.
2867 (cgraph_same_body_alias_1): Rename to ...
2868 (cgraph_create_function_alias): ... this one; reorg to new
2869 representation.
2870 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2871 record references when asked to.
2872 (cgraph_add_thunk): Fix formating.
2873 (cgraph_get_node): Kill same body alias code.
2874 (cgraph_node_for_asm): Likewise.
2875 (cgraph_remove_same_body_alias): Remove.
2876 (cgraph_remove_node): Kill same body alias code.
2877 (cgraph_mark_address_taken_node): Mark also the aliased function
2878 as having address taken.
2879 (dump_cgraph_node): Dump same body aliases.
2880 (cgraph_for_node_thunks_and_aliases): Update for new alias
2881 representation.
2882 (cgraph_for_node_and_aliases): Likewise.
2883 * cgraph.h (same_body): Kll pointer.
2884 (same_body_alias): Update comment.
2885 (same_body_aliases_done): Declare.
2886 (cgraph_remove_same_body_alias): Remove declaration.
2887 (cgraph_create_function_alias): Declare.
2888 (cgraph_process_same_body_aliases): Declare.
2889 (cgraph_function_with_gimple_body_p): Check for alias.
2890 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2891 (cgraph_alias_aliased_node): New function.
2892 (cgraph_function_node): Update for new aliases.
2893 (cgraph_function_or_thunk_node): Likewise.
2894 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2895 (inline_call): Remove dead aliases.
10c63ba4
EB
2896 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2897 name hack for same body aliases.
39e2db00
JH
2898 (clone_of_p): Look through aliases.
2899 (verify_cgraph_node): Verify aliases.
2900 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2901 (cgraph_process_same_body_aliases): New function.
2902 (process_function_and_variable_attributes): Disable weakref warning on
2903 alias.
2904 (cgraph_analyze_functions): Handle aliases.
2905 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2906 (assemble_thunks): Rename to ...
2907 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2908 (cgraph_expand_function): Remove alias output code.
2909 (cgraph_output_in_order): Skip aliases.
2910 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2911 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2912 (ipa_record_reference): Do not assert on alias references.
2913 (ipa_ref_has_aliases_p): New function.
2914 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2915 (ipa_ref_has_aliases_p): Declare.
2916 * lto-cgraph.c (lto_output_node): Handle aliases.
2917 (input_node): Likewise.
2918 * lto-streamer-out.c (lto_output): Skip aliases.
2919 (produce_symtab): Kill same_body_alias code.
2920 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2921 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2922 * ipa-inline.c (update_caller_keys): Walk aliases.
2923 (inline_small_functions): Fix thinko in previous patch.
2924 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2925 (function_and_variable_visibility): Do not walk same body aliases.
2926 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2927 (ipa_pta_execute): Use it.
2928
9ee65b55
UB
29292011-06-11 Uros Bizjak <ubizjak@gmail.com>
2930
2931 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2932 (*vec_dupv2df): Rename from vec_dupv2df.
2933 (vec_dupv2df): New expander.
2934
29352011-06-11 Uros Bizjak <ubizjak@gmail.com>
2936
2937 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2938
29392011-06-11 Uros Bizjak <ubizjak@gmail.com>
2940
2941 * config/i386/i386.md: Use default value in "isa" attribute.
2942 * config/i386/sse.md: Ditto.
2943 * config/i386/mmx.md: Ditto.
2944
ba68a139
WG
29452011-06-10 Wei Guozhi <carrot@google.com>
2946
2947 PR target/45335
2948 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2949 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2950 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2951 related peephole2.
2952 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2953 related peephole2.
2954 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2955 (arm_legitimate_ldrd_p): New prototype.
2956 (arm_output_ldrd): New prototype.
2957 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2958 (arm_legitimate_ldrd_p): New function.
2959 (arm_output_ldrd): New function.
2960
deced1e2
XDL
29612011-06-10 David Li <davidxl@google.com>
2962
2963 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2964 * passes.c (passr_eq): New function.
2965 (create_pass_tab): New function.
2966 (pass_traverse): New function.
2967 (dump_one_pass): New function.
2968 (dump_pass_list): New function.
2969 (dump_passes): New function.
2970
71fb4f92
JH
29712011-06-10 Jan Hubicka <jh@suse.cz>
2972
2973 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2974 setting the nothrow flag.
2975 * ipa-reference.c (propagate): Skip aliases.
2976 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2977 (propagate_nothrow): Skip aliases; do not update cgraph.
2978 (local_pure_const): Do not update cgraph.
2979 * tree-profile.c (tree_profiling): Do fixup_cfg.
2980
41817394
JH
29812011-06-10 Jan Hubicka <jh@suse.cz>
2982
2983 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2984 (cgraph_local_node_p): ... here; handle aliases.
2985 (has_addr_references_p): Break out from ...;
2986 (cgraph_remove_unreachable_nodes) ... here.
2987
fb37c1de
JH
29882011-06-10 Jan Hubicka <jh@suse.cz>
2989
2990 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
2991 * common.opt (flag_inline_functions_called_once): Do not
2992 initialize to 1.
fb37c1de 2993
0818c24c
JH
29942011-06-10 Jan Hubicka <jh@suse.cz>
2995
2996 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
2997 (ipcp_initialize_node_lattices): Do not deal with aliases;
2998 Do not try to propagate through thunks.
0818c24c
JH
2999 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3000
c8246dbe
JH
30012011-06-10 Jan Hubicka <jh@suse.cz>
3002
9ee65b55
UB
3003 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3004 for indirect calls.
c8246dbe
JH
3005 (ipa_read_node_info): Likewise.
3006
d7e2a1c1
BS
30072011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3008
3009 PR lto/49302
3010 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3011 (build_and_insert_call): Likewise.
3012 (build_and_insert_ref): New.
3013 (gimple_expand_builtin_pow): Minor cleanup.
3014 (gimple_expand_builtin_cabs): New.
3015 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 3016
749f25d8
JH
30172011-06-10 Jan Hubicka <jh@suse.cz>
3018
3019 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3020 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3021 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3022 (ipcp_propagate_stage): Skip aliases when propagating.
3023 (ipcp_need_redirect_p): Skip aliases.
3024 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3025 collect_callers_of_node.
3026 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3027 for aliases.
3028 (ipa_compute_jump_functions): Look through aliases.
3029
8340fbd7
RO
30302011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031
3032 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3033
9aaa7e47
HPN
30342011-06-10 Hans-Peter Nilsson <hp@axis.com>
3035
3036 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3037 Adjust comments.
3038 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3039
f1724940
JH
30402011-06-10 Jan Hubicka <jh@suse.cz>
3041
3042 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3043 Update call of gimple_get_virt_method_for_binfo.
3044 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3045 refuse_thunks parameter.
3046 (gimple_fold_call): Update.
3047 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3048
a6f834c5
JH
30492011-06-10 Jan Hubicka <jh@suse.cz>
3050
3051 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3052 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3053 worker for cgraph_for_node_and_aliases.
3054 (convert_callers_for_node): Break out from ...
3055 (convert_callers): ... here.
3056 (modify_function): Use collect_callers_of_node.
3057 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3058
7871eee3
RG
30592011-06-10 Richard Guenther <rguenther@suse.de>
3060
3061 PR tree-optimization/49361
3062 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3063 when not already in gimple form.
3064
dae957ae
RG
30652011-06-10 Richard Guenther <rguenther@suse.de>
3066
3067 PR bootstrap/49344
3068 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3069 FOR_EACH_PHI_OR_STMT_USE.
3070
a5b1779f
JH
30712011-06-10 Jan Hubicka <jh@suse.cz>
3072
3073 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3074 (clone_inlined_nodes): ... here.
3075 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3076 to real destination prior inlining.
3077 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3078 can_early_inline_edge_p, want_early_inline_function_p,
3079 want_early_inline_function_p, want_inline_small_function_p,
3080 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3081 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3082 add_new_edges_to_heap, inline_small_functions, flatten_function,
3083 inline_always_inline_functions, early_inline_small_functions): Use
3084 cgraph_function_or_thunk_node.
3085 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3086 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3087 (do_estimate_edge_growth_1): Break out from ...
3088 (do_estimate_growth) ... here; walk aliases.
3089 (inline_generate_summary): Skip aliases.
3090
c1ae3ca5
RG
30912011-06-10 Richard Guenther <rguenther@suse.de>
3092
9ee65b55
UB
3093 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3094 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 3095
b504a918
PC
30962011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3097
3098 * tree.h (error_operand_p): Add.
3099 * dbxout.c (dbxout_type_fields): Use the latter.
3100 * c-decl.c (add_stmt): Likewise.
3101 * gimplify.c (omp_add_variable, omp_notice_variable,
3102 gimplify_scan_omp_clauses): Likewise.
3103
3f5ea9dc 31042011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 3105
3f5ea9dc
GJL
3106 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3107 when a value is actually passed in regs.
3108
b11b0904 31092011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 3110 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
3111
3112 * doc/invoke.texi (SPARC options): Add -mflat.
3113 * config/sparc/sparc.opt: Likewise.
3114 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3115 (sparc_flat_expand_prologue): Declare.
3116 (sparc_flat_expand_epilogue): Likewise.
3117 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3118 (CPP_ENDIAN_SPEC): Replace with...
3119 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3120 (CPP_SPEC): Adjust to above change.
3121 (EXTRA_SPECS): Likewise.
3122 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3123 (INCOMING_REGNO): Likewise.
3124 (OUTGOING_REGNO): Likewise.
3125 (LOCAL_REGNO): Likewise.
3126 (SETUP_FRAME_ADDRESSES): Likewise.
3127 (FIXED_REGISTERS): Set 0 for %fp.
3128 (CALL_USED_REGISTERS): Likewise.
3129 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3130 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3131 (RETURN_ADDR_REGNUM): Define.
3132 (RETURN_ADDR_RTX): Use it.
3133 (INCOMING_RETURN_ADDR_REGNUM): Define.
3134 (INCOMING_RETURN_ADDR_RTX): Use it.
3135 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3136 (EH_RETURN_REGNUM): Define.
3137 (EH_RETURN_STACKADJ_RTX): Use it.
3138 (EH_RETURN_HANDLER_RTX): Delete.
3139 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3140 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3141 Delete.
3142 (struct machine_function): Add frame_size, apparent_frame_size,
3143 frame_base_reg, frame_base_offset, n_global_fp_regs and
3144 save_local_in_regs_p fields.
3145 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3146 sparc_frame_base_offset, sparc_n_global_fp_regs,
3147 sparc_save_local_in_regs_p): New macros.
3148 (sparc_option_override): Error out if -fcall-saved-REG is specified
3149 for Out registers.
3150 (eligible_for_restore_insn): Fix formatting.
3151 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3152 (eligible_for_sibcall_delay): Likewise.
3153 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3154 (sparc_legitimate_address_p): Adjust to above change.
3155 (save_global_or_fp_reg_p): New predicate.
3156 (return_addr_reg_needed_p): Likewise.
3157 (save_local_or_in_reg_p): Likewise.
3158 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3159 (SORR_SAVE, SORR_RESTORE): Delete.
3160 (sorr_pred_t): New typedef.
3161 (sorr_act_t): New enum.
3162 (save_or_restore_regs): Rename to...
3163 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3164 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3165 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3166 mechanism. Add CFI information for double-word saves in 32-bit mode.
3167 (emit_adjust_base_to_offset): New function extracted from...
3168 (emit_save_or_restore_regs): ...this. Rename the rest to...
3169 (emit_save_or_restore_regs_global_fp_regs): ...this.
3170 (emit_save_or_restore_regs_local_in_regs): New function.
3171 (gen_create_flat_frame_[123]): New functions.
3172 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3173 (sparc_flat_expand_prologue): New function.
3174 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3175 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3176 (sparc_flat_expand_epilogue): New function.
3177 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3178 (output_return): Likewise.
3179 (output_sibcall): Likewise.
3180 (sparc_output_mi_thunk): Likewise.
3181 (sparc_frame_pointer_required): Likewise.
3182 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3183 function optimization.
3184 * config/sparc/sparc.md (flat): New attribute.
3185 (prologue): Add TARGET_FLAT handling.
3186 (save_register_window): Disable if TARGET_FLAT.
3187 (create_flat_frame_[123]): New patterns.
3188 (epilogue): Add TARGET_FLAT handling.
3189 (sibcall_epilogue): Likewise.
3190 (eh_return): New expander.
3191 (eh_return_internal): New insn and splitter.
3192 (return_internal): Add TARGET_FLAT handling.
3193 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3194 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3195 (nonlocal_goto): Add TARGET_FLAT handling.
3196 * config/sparc/t-elf: Add -mflat multilib.
3197 * config/sparc/t-leon: Likewise.
3198
fede8efa
JH
31992011-06-10 Jan Hubicka <jh@suse.cz>
3200
3201 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3202 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3203 (self_recursive_p): Use cgraph_function_node.
3204 (propagate_pure_const): Likewise.
3205 (propagate_nothrow): Likewise.
3206 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3207 cgraph_function_node.
3208 (propagate_bits): Likewise.
3209 (propagate): Likewise.
3210
0127c76f
RR
32112011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3212 Richard Earnshaw <rearnsha@arm.com>
3213
9ee65b55 3214 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
3215 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3216 (*thumb2_movdi_vfp): Delete.
3217 (*arm_movdi_vfp_cortexa8): Delete.
3218 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3219 (*movdi_vfp_cortexa8): Likewise.
3220
f93fe5a0
RG
32212011-06-10 Richard Guenther <rguenther@suse.de>
3222
3223 * stor-layout.c (initialize_sizetypes): Give names to all
3224 sizetype kinds.
3225
f2164f87
IR
32262011-06-10 Ira Rosen <ira.rosen@linaro.org>
3227
3228 PR tree-optimization/49318
3229 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3230 irrelevant pattern statements.
3231
3f91c962
HPN
32322011-06-10 Hans-Peter Nilsson <hp@axis.com>
3233
3d223145
HPN
3234 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3235
3f91c962
HPN
3236 PR bootstrap/49354
3237 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3238 to last assignment.
3239
b125ad45
JH
32402011-06-09 Jan Hubicka <jh@suse.cz>
3241
3242 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3243 do not recompute reachable flag.
3244 (cgraph_finalize_function, cgraph_analyze_functions): Set
3245 redefined_extern_inline here.
3246
be330ed4
JH
32472011-06-09 Jan Hubicka <jh@suse.cz>
3248
3249 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3250 (cgraph_only_called_directly_p): ... this one; bring offline.
3251 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3252 varpool_used_from_object_file_p): Drop names from the declaratoin.
3253 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3254 collect_callers_of_node): New.
3255 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3256 (cgraph_edge_recursive_p): Use cgraph_function_node.
3257 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3258 (cgraph_node_cannot_be_local_p_1): Break out from ...
3259 (cgraph_node_can_be_local_p): ... here; walk aliases.
3260 (cgraph_for_node_thunks_and_aliases): New function.
3261 (cgraph_for_node_and_aliases): New function.
3262 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
3263 (cgraph_make_node_local) ... here; use
3264 cgraph_for_node_thunks_and_aliases.
be330ed4 3265 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
3266 (cgraph_set_nothrow_flag) ... here;
3267 use cgraph_for_node_thunks_and_aliases.
be330ed4 3268 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
3269 (cgraph_set_const_flag) ... here;
3270 use cgraph_for_node_thunks_and_aliases.
be330ed4 3271 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
3272 (cgraph_set_pure_flag) ... here;
3273 use cgraph_for_node_thunks_and_aliases.
be330ed4 3274 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
3275 (cgraph_propagate_frequency) ... here; use
3276 cgraph_for_node_thunks_and_aliases.
be330ed4 3277 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
3278 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3279 New functions.
be330ed4
JH
3280 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3281
2ea91d6b
HPN
32822011-06-10 Hans-Peter Nilsson <hp@axis.com>
3283
3284 PR rtl-optimization/49154
3285 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3286 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3287 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3288 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3289 * config/cris/cris.h (cris_register_move_cost): Remove
3290 !TARGET_V32 code. Tweak comments.
3291
9cf4fb5a
JH
32922011-06-09 Jan Hubicka <jh@suse.cz>
3293
3294 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3295 address taken.
3296
6049a4c8
HPN
32972011-06-10 Hans-Peter Nilsson <hp@axis.com>
3298
c577822e 3299 PR rtl-optimization/49154
9ee65b55
UB
3300 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3301 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 3302
54e1e4f7 3303 PR rtl-optimization/49154
6049a4c8
HPN
3304 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3305 register classes.
3306 * doc/tm.texi: Regenerate.
3307
3be68b64
KK
33082011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3309
3310 PR target/49307
3311 * config/sh/sh.md (UNSPEC_CHKADD): New.
3312 (chk_guard_add): New define_insn_and_split.
3313 (symGOT_load): Use chk_guard_add instead of blockage.
3314
bf806a90
KT
33152011-06-09 Kai Tietz <ktietz@redhat.com>
3316
3317 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3318
d5a9738b
EB
33192011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3320
3321 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3322
527e82c2
WG
33232011-06-09 Wei Guozhi <carrot@google.com>
3324
3325 PR target/46975
3326 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3327 (peephole2 for conditional move): Generate 16 bit instructions.
3328
b8bc3a43
UB
33292011-06-09 Uros Bizjak <ubizjak@gmail.com>
3330
3331 * config/i386/i386.md (*movdi_internal_rex64): Merge
3332 alternatives 6 and 8.
3333
4745da6e
DL
33342011-06-09 David Li <davidxl@google.com>
3335
3336 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3337 * passes.c (passr_eq): New function.
3338 (create_pass_tab): New function.
3339 (pass_traverse): New function.
3340 (dump_one_pass): New function.
3341 (dump_pass_list): New function.
3342 (dump_passes): New function.
3343
bdf67bcb
DL
33442011-06-09 David Li <davidxl@google.com>
3345
3346 * tree-complex.c (tree_lower_complex): Gate cleanup.
3347 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3348 (execute_optimize_stdarg): Ditto.
3349 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3350 (execute_cleanup_eh_1): Ditto.
3351 (execute_cleanup_eh): Ditto.
3352 * gcse.c (gate_rtl_pre): Ditto.
3353 (execute_rtl_pre): Ditto.
3354 * except.c (finish_eh_generation): Ditto.
3355 (convert_to_eh_region_ranges): Ditto.
3356 * cprop.c (one_cprop_pass): Ditto.
3357
547fdef8
BS
33582011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3359
3360 PR target/48673
3361 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3362 in all basic blocks.
3363
10e48e39
RO
33642011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3365
3366 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3367 (HAVE_ENABLE_EXECUTE_STACK): Define.
3368 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3369 (HAVE_ENABLE_EXECUTE_STACK): Define.
3370 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3371 (HAVE_ENABLE_EXECUTE_STACK): Define.
3372 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3373 (ENABLE_EXECUTE_STACK): Remove.
3374 (HAVE_ENABLE_EXECUTE_STACK): Define.
3375 [IN_LIBGCC2]: Don't include <windows.h>.
3376 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3377 (HAVE_ENABLE_EXECUTE_STACK): Define.
3378 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3379 (HAVE_ENABLE_EXECUTE_STACK): Define.
3380 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3381 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3382 (HAVE_ENABLE_EXECUTE_STACK): Define.
3383 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3384 (HAVE_ENABLE_EXECUTE_STACK): Define.
3385 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3386 (HAVE_ENABLE_EXECUTE_STACK): Define.
3387 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3388 (HAVE_ENABLE_EXECUTE_STACK): Define.
3389 * config/alpha/alpha.c (alpha_trampoline_init): Test
3390 HAVE_ENABLE_EXECUTE_STACK.
3391 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3392 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3393 (sparc64_initialize_trampoline): Likewise.
3394 * libgcc2.c [L_enable_execute_stack]: Remove.
3395 * system.h (ENABLE_EXECUTE_STACK): Poison.
3396 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3397 * doc/tm.texi: Regenerate.
3398 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3399
8ced31fe
JJ
34002011-06-09 Jakub Jelinek <jakub@redhat.com>
3401
3402 PR middle-end/49308
3403 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3404 variable. After resetting and rescanning insn continue with previous
3405 statement.
3406
ee610fcd
RO
34072011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3408
3409 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3410 (gcc_cv_ld_hidden): Likewise.
3411 * configure: Regenerate.
3412 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3413 (ix86_stack_protect_fail): Mark unused.
3414 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3415 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3416 [TARGET_MACHO]: Don't define.
3417 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3418 (TARGET_STACK_PROTECT_FAIL): Likewise.
3419 (rs6000_stack_protect_fail): Mark unused.
3420 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 3421 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 3422
8f2e22ff
AK
34232011-06-08 Andi Kleen <ak@linux.intel.com>
3424
3425 * varasm.c (get_section): Print location of other conflict
3426 for section conflicts.
3427
815cecbe
AK
34282011-06-08 Andi Kleen <ak@linux.intel.com>
3429
3430 * config/i386/driver-i386.c (host_detect_local_cpu):
3431 Add model 0x2d Intel CPU.
3432
1460ec5c
AK
34332011-06-08 Andi Kleen <ak@linux.intel.com>
3434
3435 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
3436 (globalize_reg): Add decl parameter. Compute location. Pass location
3437 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
3438 * rtl.h (globalize_reg): Update prototype.
3439 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3440
df17530a
MX
34412011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3442
3443 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3444
409fed48
KK
34452011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3446
3447 PR target/49305
3448 * config/sh/predicates.md (general_movsrc_operand): Check
3449 mode for memory with indexed address for QI and HImode.
3450 (general_movdst_operand): Likewise.
3451
87c16a45
NP
34522011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3453
b8bc3a43 3454 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 3455
49931fcb
AO
34562011-06-08 Alexandre Oliva <aoliva@redhat.com>
3457
3458 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3459 (num_ssa_operands): Likewise.
3460 (op_iter_init_phiuse): Forward-declare.
3461 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3462
29494d1f
NC
34632011-06-08 Nick Clifton <nickc@redhat.com>
3464
3465 * doc/invoke.texi (ARM Options): Update description of
3466 -mthumb-interwork.
3467
4ffae7ff
L
34682011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3469
3470 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3471 unknown Intel family 0x6 CPUs.
3472
d9c77712
MJ
34732011-06-08 Martin Jambor <mjambor@suse.cz>
3474
3475 * tree-sra.c (mark_rw_status): Removed.
3476 (analyze_access_subtree): New parameter parent instead of
3477 mark_read and mark_write, propagate from that.
3478
b1def36c
JB
34792011-06-08 Julian Brown <julian@codesourcery.com>
3480
3481 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3482 for double-precision helper functions in hard-float mode if only
3483 single-precision arithmetic is supported in hardware.
3484
6c8e9fc9
AM
34852011-06-08 Alexander Monakov <amonakov@ispras.ru>
3486
3487 PR rtl-optimization/49303
3488 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3489 code_motion_path_driver returned 0 or 1.
3490 (sel_region_finish): Clear h_d_i_d.
3491
c2bbcb0d
KK
34922011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3493
3494 * config/sh/sh.c (prepare_move_operands): Set pic register
3495 appropriately for global and local dynamic tls models even
3496 if flag_pic is unset.
3497
6976ae51
JM
34982011-06-07 Jason Merrill <jason@redhat.com>
3499
3500 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3501
bb5b1f5e
XDL
35022011-06-07 Xinliang David Li <davidxl@google.com>
3503 * passes.c (enable_disable_pass): Handle assembler name.
3504 (is_pass_explicitly_enabled_or_disabled): Ditto.
3505
91ffe356
RO
35062011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507
3508 PR tree-optimization/48497
3509 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3510
06bc3ec7
BS
35112011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3512
3513 PR tree-optimization/46728
3514 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3515 to use gimple_val_nonnegative_real_p.
3516 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3517 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 3518
c074d740
L
35192011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3520
3521 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3522
8973b112
SG
35232011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3524
3525 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3526 constant vectors.
3527
67b88453
RG
35282011-06-07 Richard Guenther <rguenther@suse.de>
3529
3530 * stor-layout.c (initialize_sizetypes): Initialize all
3531 sizetypes based on target definitions.
3532 (set_sizetype): Remove.
3533 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3534 * tree.h (set_sizetype): Remove.
3535
1dcad079
NC
35362011-06-07 Nick Clifton <nickc@redhat.com>
3537
3538 * config.gcc: Unify V850 architecture options and add support for
3539 newer V850 architectures.
3540 * config/v850/t-v850e: Delete.
3541
009db074
RG
35422011-06-07 Richard Guenther <rguenther@suse.de>
3543
3544 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3545 Call set_sizetype from here.
3546
f373314f
AS
35472011-06-07 Andrew Stubbs <ams@codesourcery.com>
3548
3549 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3550 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3551
c536876e
AS
35522011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3553 Andrew Stubbs <ams@codesourcery.com>
3554
3555 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3556 multiplies.
3557 * doc/md.texi (Canonicalization of Instructions): Document widening
3558 multiply canonicalization.
3559
308dc890
JJ
35602011-06-07 Jakub Jelinek <jakub@redhat.com>
3561
3562 PR gcov-profile/49299
b8bc3a43 3563 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 3564
383d9c83
IR
35652011-06-07 Ira Rosen <ira.rosen@linaro.org>
3566
3567 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3568 a pointer.
3569 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3570 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3571 vect_recog_pow_pattern): Likewise.
3572 (vect_pattern_recog_1): Remove declaration.
3573 (widened_name_p): Remove declaration. Add new argument to specify
3574 whether to check that both types are either signed or unsigned.
3575 (vect_recog_widen_mult_pattern): Update documentation. Handle
3576 unsigned patterns and multiplication by constants.
3577 (vect_pattern_recog_1): Update vect_recog_func references. Use
3578 statement information from the statement returned from pattern
3579 detection functions.
3580 (vect_pattern_recog): Update vect_recog_func reference.
3581 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3582 multiplication by a constant use the type of the other operand.
3583
4de4b0f2
RS
35842011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3585
3586 PR rtl-optimization/49145
3587 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3588
a9d24544
JJ
35892011-06-06 Jakub Jelinek <jakub@redhat.com>
3590
99a5e049
JJ
3591 PR debug/49262
3592 * dwarf2out.c (native_encode_initializer): Decrement count in each
3593 iteration.
3594
04902d4c
JJ
3595 PR debug/49294
3596 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3597 non-MODE_INT modes.
3598
a9d24544
JJ
3599 PR c++/49264
3600 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3601 if stmt folded into nothing.
b8bc3a43
UB
3602 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3603 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
3604 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3605 to be NULL. Don't compute count and frequency if new_call is NULL.
3606
47c79d56
DN
36072011-06-04 Diego Novillo <dnovillo@google.com>
3608
3609 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3610 (cgraph.o): Likewise.
3611 (cgraphunit.o): Likewise.
3612 * cgraphunit.c: Include lto-streamer.h
3613 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3614 if LTO is enabled.
3615 * lto-streamer-in.c (unpack_value_fields): Call
3616 streamer_hooks.unpack_value_fields if set.
3617 (lto_materialize_tree): For unhandled nodes, first try to
3618 call lto_streamer_hooks.alloc_tree, if it exists.
3619 (lto_input_ts_decl_common_tree_pointers): Move reading of
3620 DECL_INITIAL to lto_streamer_read_tree.
3621 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3622 (lto_streamer_read_tree): New.
3623 (lto_reader_init): Rename from lto_init_reader.
3624 Move initialization code to lto/lto.c.
3625 * lto-streamer-out.c (pack_value_fields): Call
3626 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
3627 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3628 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 3629 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
3630 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3631 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3632 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3633 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
3634 (lto_streamer_write_tree): New.
3635 (lto_output): Call lto_streamer_init directly.
3636 (lto_writer_init): Remove.
3637 * lto-streamer.c (streamer_hooks): New.
3638 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3639 instead of lto_preload_common_nodes.
3640 (lto_is_streamable): Move from lto-streamer.h
3641 (lto_streamer_hooks_init): New.
3642 (streamer_hooks): New.
3643 (streamer_hooks_init): New.
3644 * lto-streamer.h (struct output_block): Forward declare.
3645 (struct lto_input_block): Likewise.
3646 (struct data_in): Likewise.
3647 (struct bitpack_d): Likewise.
3648 (struct streamer_hooks): Declare.
3649 (streamer_hooks): Declare.
3650 (lto_streamer_hooks_init): Declare.
3651 (lto_streamer_write_tree): Declare.
3652 (lto_streamer_read_tree): Declare.
3653 (streamer_hooks_init): Declare.
3654 (lto_is_streamable): Move to lto-streamer.c
3655
22afe143
AK
36562011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3657
3658 * longlong.h (smul_ppmm): The resulting register pair contains the
3659 higher order word first.
3660
3906ea1b
BS
36612011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3662
3663 PR tree-optimization/46728
3664 * builtins.c (powi_table): Remove.
3665 (powi_lookup_cost): Remove.
3666 (powi_cost): Remove.
3667 (expand_powi_1): Remove.
3668 (expand_powi): Remove.
3669 (expand_builtin_pow_root): Remove.
3670 (expand_builtin_pow): Remove.
3671 (expand_builtin_powi): Eliminate handling of constant exponent.
3672 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 3673
3598cabd
AO
36742011-06-06 Alexandre Oliva <aoliva@redhat.com>
3675
3676 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3677
a7a110bb
AO
36782011-06-06 Alexandre Oliva <aoliva@redhat.com>
3679
3680 * dce.c (reset_unmarked_insns_debug_uses): New.
3681 (delete_unmarked_insns): Skip debug insns.
3682 (prescan_insns_for_dce): Likewise.
3683 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3684 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3685 active reg can be found.
3686 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3687 (convert_regs_1): Use it.
3688
6d8402ac
AO
36892011-06-06 Alexandre Oliva <aoliva@redhat.com>
3690
3691 * tree-pretty-print.c (dump_function_header): Add flags.
3692 Don't dump decl_uid with nouid.
3693 * tree-pretty-print.h (dump_function_header): Adjust.
3694 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3695 * passes.c (pass_init_dump_file): Pass dump_flags on.
3696 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3697
f75e1f1e
AO
36982011-06-06 Alexandre Oliva <aoliva@redhat.com>
3699
3700 PR bootstrap/49270
3701 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3702
275311c4
MP
37032011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3704
3705 PR tree-optimization/49243
3706 * calls.c (setjmp_call_p): Also check if fndecl has the
3707 returns_twice attribute.
3708
aa4203e7
RO
37092011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3710
3711 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3712 -ffast-math etc.
3713
48f9d59a
RH
37142011-06-06 Richard Henderson <rth@redhat.com>
3715 Georg-Johann Lay <avr@gjlay.de>
3716
3717 PR target/42210
3718 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3719 New predicates.
3720 * config/avr/avr.md ("insv"): New insn expander.
3721 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3722 "*insv.not.io", "*insv.reg"): New insns.
3723
11494830
HPN
37242011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3725
3726 PR target/49285
b8bc3a43
UB
3727 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3728 to nonimmediate_operand from memory_operand for the operand that is to
3729 be forced to memory by the expander. Lose the constraints.
11494830 3730
679e70df
EB
37312011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3732
3733 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3734 EH return when delayed branches are disabled.
3735
4d3d7f15
UB
37362011-06-05 Uros Bizjak <ubizjak@gmail.com>
3737
3738 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3739 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3740 calculation.
3741 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3742 Simplify MODE_V1DF and MODE_V2SF handling.
3743 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3744 Simplify MODE_SF handling.
3745
a45c0557
JH
37462011-06-04 Jan Hubicka <jh@suse.cz>
3747
3748 PR tree-optimization/48893
3749 PR tree-optimization/49091
3750 PR tree-optimization/49179
3751 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3752 Bounds check.
3753
26740835
JH
37542011-06-04 Jan Hubicka <jh@suse.cz>
3755
3756 PR lto/48954
b8bc3a43
UB
3757 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3758 bitmaps.
26740835 3759
014ab419
JW
37602011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3761
3762 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3763
407bcba7
JJ
37642011-06-04 Jakub Jelinek <jakub@redhat.com>
3765
3766 PR target/49281
3767 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3768 to be strictly smaller than 1 << shiftcount.
3769
e3195c52
JH
37702011-06-04 Jan Hubicka <jh@suse.cz>
3771
3772 PR tree-optimize/48929
3773 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3774 of empty predicate.
3775
047d33a0
AO
37762011-06-04 Alexandre Oliva <aoliva@redhat.com>
3777
3778 PR debug/48333
3779 * calls.c (emit_call_1): Prefer the __builtin declaration of
3780 builtin functions.
3781
dc587809
DN
37822011-06-03 Diego Novillo <dnovillo@google.com>
3783
3784 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3785 (lto_input_tree_pointers): Likewise.
3786 * lto-streamer-out.c (pack_value_fields): Likewise.
3787 (lto_output_tree_pointers): Likewise.
3788 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3789 and OPTIMIZATION_NODE.
3790
58cd1d70
RO
37912011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3792
3793 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3794 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3795 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3796 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3797 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3798 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3799 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3800 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3801 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3802 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3803 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3804 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3805 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3806 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3807 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3808 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3809 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3810 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3811 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3812 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3813 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3814 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3815 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3816 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3817 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3818 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3819 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3820 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3821 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3822 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3823 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3824 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3825 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3826 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3827 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3828 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3829 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3830 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3831 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3832 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3833 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3834 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3835 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3836 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3837 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3838 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3839 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3840 * system.h (MD_UNWIND_SUPPORT): Poison.
3841 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3842 * doc/tm.texi: Regenerate.
3843 * unwind-dw2.c: Include md-unwind-support.h instead of
3844 MD_UNWIND_SUPPORT.
3845 * config/ia64/unwind-ia64.c: Likewise.
3846 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3847
10c63ba4 38482011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
3849
3850 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3851
1b7a0148
RH
38522011-06-03 Richard Henderson <rth@redhat.com>
3853 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3854
3855 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3856 (sigill_hdlr): Correct insn, insn size.
3857 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3858
737346fa
RO
38592011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3860
3861 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3862 t-slibgcc-dummy.
3863 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3864 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3865 * config/mips/t-iris: Remove.
3866 * config/mips/t-irix6: New file.
3867 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3868
c192cee6
RO
38692011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3870
3871 * Makefile.in (LIB2ADDEHDEP): Remove.
3872 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3873 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3874 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3875 * config/t-darwin (LIB2ADDEHDEP): Remove.
3876 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3877 * config/t-linux (LIB2ADDEHDEP): Remove.
3878
d5828cc7
DN
38792011-06-03 Diego Novillo <dnovillo@google.com>
3880
3881 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3882 (lto_register_var_decl_in_symtab): Likewise.
3883 (lto_register_function_decl_in_symtab): Likewise.
3884 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 3885 logic to uniquify_nodes.
d5828cc7 3886
ee33b5f0
RO
38872011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3888
3889 * config/alpha/t-osf5: Remove.
3890 * config/alpha/t-osf-pthread: Remove.
3891 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3892 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3893
16868d84
JB
38942011-06-03 Julian Brown <julian@codesourcery.com>
3895
3896 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3897 (strongarm1110): Use strongarm tuning.
4d3d7f15 3898 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
3899 * config/arm/arm.c (arm_strongarm_tune): New.
3900 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3901 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3902 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3903 setting, using previous defaults or 1 for Cortex-A5.
3904 (arm_option_override): Set max_insns_skipped from current tuning.
3905
1cec1285
NS
39062011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3907
3908 * doc/install.texi (Options specification): Document --with-specs.
3909
eed55426
RR
39102011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3911
3912 * config/arm/neon.md (orndi3_neon): Actually split it.
3913
d5b6cc25
AO
39142011-06-02 Alexandre Oliva <aoliva@redhat.com>
3915
3916 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3917 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3918
2ba42841
AO
39192011-06-02 Alexandre Oliva <aoliva@redhat.com>
3920
3921 PR debug/47590
3922 * target.def (delay_sched2, delay_vartrack): New.
3923 * doc/tm.texi.in: Update.
3924 * doc/tm.texi: Rebuild.
3925 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3926 * var-tracking.c (gate_handle_var_tracking): Likewise.
3927 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3928 (bfin_flag_var_tracking): Drop.
3929 (output_file_start): Don't save and override flag_var_tracking.
3930 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3931 (bfin_reorg): Test original variables.
3932 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3933 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3934 (ia64_flag_var_tracking): Drop.
3935 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3936 (ia64_file_start): Don't save and override flag_var_tracking.
3937 (ia64_override_options_after_change): Ditto
3938 flag_schedule_insns_after_reload.
3939 (ia64_reorg): Test original variables.
3940 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3941 (picochip_flag_var_tracking): Drop.
3942 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3943 (picochip_option_override): Don't save and override
3944 flag_schedule_insns_after_reload.
3945 (picochip_asm_file_start): Ditto flag_var_tracking.
3946 (picochip_reorg): Test original variables.
3947 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3948 (TARGET_DELAY_VARTRACK): Define.
3949 (spu_var_tracking): New.
3950 (spu_machine_dependent_reorg): Call it.
3951 (asm_file_start): Don't save and override flag_var_tracking.
3952
a700b5f0
KK
39532011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3954
3955 PR target/49163
3956 * config/sh/predicates.md (general_movsrc_operand): Return 0
3957 for memory and memory subreg of which address is an invalid
3958 indexed address for QI and HImode.
3959 (general_movdst_operand): Likewise.
3960
76015c34
EB
39612011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3962
3963 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3964 edges only, when there is a non-local label in the function.
3965 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3966
4e76acd2
UB
39672011-06-02 Uros Bizjak <ubizjak@gmail.com>
3968
3969 * config/i386/constraints.md (Y3): New register constraint.
3970 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3971 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3972 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3973 *sse2_interleave_lowv2df.
3974
288f605f
JB
39752011-06-02 Julian Brown <julian@codesourcery.com>
3976
3977 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3978 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3979 (arm_cortex_a5_tune): New.
3980
7ec70105
JB
39812011-06-02 Julian Brown <julian@codesourcery.com>
3982
153668ec
JB
3983 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3984 * config/arm/arm.c (arm_default_branch_cost): New.
3985 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3986 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3987 (arm_fa726_tune): Set branch_cost field using
3988 arm_default_branch_cost.
3989 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3990 current_tune structure.
3991 * dojump.c (tm_p.h): Include file.
3992
39932011-06-02 Julian Brown <julian@codesourcery.com>
3994
3995 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3996 tuning.
7ec70105
JB
3997 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3998 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3999 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4000 field.
4001 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4002 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4003 (arm_fa726te_tune): Add prefer_constant_pool setting.
4004 (arm_v6t2_tune, arm_cortex_tune): New.
4005 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4006 prefer_constant_pool setting.
4007
aad61732
UB
40082011-06-02 Uros Bizjak <ubizjak@gmail.com>
4009
4e76acd2
UB
4010 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4011 switch statement.
aad61732
UB
4012 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4013 (*movdf_internal) <case 6,7,8>: Ditto.
4014
4e76acd2 4015 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
4016 * config/i386/sse.md (vec_set<mode>_0): Merge with
4017 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4018 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4019 *vec_extractv2di_1_sse.
4020 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4021 and *vec_concatv2di_rex64_sse.
4022
6e588138
SH
40232011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4024
4025 PR target/48807
4026 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4027 of cgraph_local_info for null before attempting to use it.
4028
bc6d3f91
EB
40292011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4030
4031 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4032 (current_function_dynamic_alloc_count): Delete.
4033 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4034 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4035 (expand_builtin_update_setjmp_buf): Remove dead code.
4036 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4037 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4038 support.
4039 * function.c (instantiate_virtual_regs): Likewise.
4040 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4041 for a block with a single abnormal incoming edge.
4042 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 4043 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
4044 * config/sparc/sparc-protos.h (load_got_register): Declare.
4045 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4046 (load_got_register): Make global.
4047 (sparc_frame_pointer_required): Add 'static'.
4048 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4049 (sparc_builtin_setjmp_frame_value): New function.
4050 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4051 (save_stack_nonlocal): New expander.
4052 (restore_stack_nonlocal): Likewise.
4053 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4054 (nonlocal_goto_internal): New insn.
4055 (goto_handler_and_restore): Delete.
4056 (builtin_setjmp_setup): Likewise.
4057 (do_builtin_setjmp_setup): Likewise.
4058 (setjmp): Likewise.
4059 (builtin_setjmp_receiver): New expander.
4060
69282fee
DL
40612011-06-01 David Li <davidxl@google.com>
4062
4063 PR middle-end/49261
4064 * tree-pretty-print.c (dump_function_header): Format cleanup.
4065
e95873dd
KK
40662011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4067
4068 PR target/49238
4069 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4070 needed when original operands are used for msw_skip comparison.
4071
88c15821
JJ
40722011-06-01 Jakub Jelinek <jakub@redhat.com>
4073
4074 PR debug/49250
4075 * var-tracking.c (add_uses, add_stores): Don't call
4076 cselib_subst_to_values on ENTRY_VALUE.
4077
07233947
DN
40782011-06-01 Diego Novillo <dnovillo@google.com>
4079
4080 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4081 output_record_start with LTO_null instead of output_zero.
4082 (lto_output_ts_binfo_tree_pointers): Likewise.
4083 (lto_output_tree): Likewise.
4084 (output_eh_try_list): Likewise.
4085 (output_eh_region): Likewise.
4086 (output_eh_lp): Likewise.
4087 (output_eh_regions): Likewise.
4088 (output_bb): Likewise.
4089 (output_function): Likewise.
4090 (output_unreferenced_globals): Likewise.
4091 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4092 instead of NUM_TREE_CODES.
4093 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4094 (lto_output_int_in_range): Change << to >> when shifting VAL.
4095
4ee3537a
DN
40962011-06-01 Diego Novillo <dnovillo@google.com>
4097
4098 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4099 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4100
02972eaf
RS
41012011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4102
4103 PR target/45074
4104 * optabs.h (valid_multiword_target_p): Declare.
4105 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4106 doing multi-word operations.
4107 * optabs.c (expand_binop): Likewise.
4108 (expand_doubleword_bswap): Likewise.
4109 (expand_absneg_bit): Likewise.
4110 (expand_unop): Likewise.
4111 (expand_copysign_bit): Likewise.
4112 (multiword_target_p): New function.
4113
4d41c2d1
RS
41142011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4115
4116 PR rtl-optimization/48830
4117 PR rtl-optimization/48808
4118 PR rtl-optimization/48792
4119 * reload.c (push_reload): Check contains_reg_of_mode.
4120 * reload1.c (strip_paradoxical_subreg): New function.
4121 (gen_reload_chain_without_interm_reg_p): Use it to handle
4122 paradoxical subregs.
4123 (emit_output_reload_insns, gen_reload): Likewise.
4124
5f57dccb
DL
41252011-06-01 David Li <davidxl@google.com>
4126
4127 * predict.c : Change pass name
4128 * ipa.c: Ditto.
4129 * dce.c: Ditto.
4130 * tree-profile.c: Ditto.
4131 * except.c: Ditto.
4132
ea6cf778
DL
41332011-06-01 David Li <davidxl@google.com>
4134
4135 * tree-pretty-print.c (dump_function_header): New function.
4136 * final.c (rest_of_clean_state): Use header dumper.
4137 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4138 * passes.c (pass_init_dump_file): Use header dumper.
4139
ebdc0d4b
JJ
41402011-06-01 Jakub Jelinek <jakub@redhat.com>
4141
eeeb9b49
JJ
4142 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4143 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4144 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4145 New functions.
4146 (mem_loc_descriptor): Use them.
4147
ebdc0d4b
JJ
4148 * var-tracking.c (create_entry_value): New function.
4149 (vt_add_function_parameter): Use it.
4150
0699e415
RO
41512011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4152
4153 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4154 Include <signal.h>, <ucontext.h>.
4155 (sigill_caught): Define.
4156 (sigill_hdlr): New function.
4157 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4158 insns can be executed.
aad61732 4159 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
4160 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4161
ca24c5ad
RO
41622011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4163
4164 * config/t-slibgcc-darwin: Move to ...
aad61732 4165 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
4166 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4167 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4168 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 4169 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
4170 Remove i386/t-crtstuff from tmake_file.
4171 (i[34567]86-*-solaris2*): Remove t-svr4,
4172 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4173 t-slibgcc-dummy.
4174 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4175 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4176 sparc/t-crtfm from tmake_file.
4177 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4178 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4179 Remove extra_parts.
4180 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4181 * config/i386/t-nwld (SHLIB_LINK): Remove.
4182 * config/i386/t-rtems-i386: Rename to ...
4183 * config/i386/t-rtems: ... this.
4184 ($(T)crti.o, $(T)crtn.o): Remove.
4185 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4186 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4187 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4188 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4189 EXTRA_MULTILIB_PARTS): Remove.
4190 * config/sparc/t-sol2-64: Likewise.
4191 * config/sparc/t-sol2: Remove.
4192 * config/sparc/t-crtin: Remove.
4193 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4194 * config/i386/gmon-sol2.c: Remove.
4195 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4196 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4197 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4198 * config/i386/sol2-gc1.asm: Remove.
4199 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4200 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4201 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4202 * config/t-slibgcc-sld: Remove.
4203
a78d13c3
JJ
42042011-06-01 Jakub Jelinek <jakub@redhat.com>
4205
4206 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4207 base_type_for_mode with op_mode instead of mode.
4208
572070ef
PB
42092011-06-01 Paul Brook <paul@cpodesourcery.com>
4210
4211 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4212 Cortex-A15.
4213 * config/arm/arm-tune.md: Regenerate.
4214 * config/arm/arm-tables.opt: Regenerate.
4215 * config/arm/arm.c (FL_DIV): Rename...
4216 (FL_THUMB_DIV): ... to this.
4217 (FL_ARM_DIV): Define.
4218 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4219 (arm_arch_hwdiv): Remove.
4220 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4221 (arm_issue_rate): Add cortexr5.
4222 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4223 __ARM_ARCH_EXT_IDIV__.
4224 (TARGET_IDIV): Define.
4225 (arm_arch_hwdiv): Remove.
4226 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4227 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4228 (divsi3, udivsi3): New patterns.
4229 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4230 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4231
11026b51
MJ
42322011-06-01 Martin Jambor <mjambor@suse.cz>
4233
4234 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4235 * ipa-utils.c (searchc): Set scc_no.
4236
b6156cf2
MJ
42372011-06-01 Martin Jambor <mjambor@suse.cz>
4238
4239 * ipa-utils.c (searchc_env): New field allow_overwritable.
4240 (searchc): do not ignore edges to overwritable nodes if indicated
4241 by env->allow_overwritable.
4242 (ipa_reduced_postorder): Set env.allow_overwritable.
4243
6807da97
RG
42442011-06-01 Richard Guenther <rguenther@suse.de>
4245
4246 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4247 char_type_node.
4248 * lto-streamer.c (lto_record_common_node): Take node pointer,
4249 do not register types.
4250 (lto_preload_common_nodes): Explicitly skip preloading nodes
4251 that differ between frontends.
4252
66bd20e7 42532011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
4254
4255 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4256 NON_FLOAT_REGS.
4257
66bd20e7 42582011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
4259
4260 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4261 parameter value for dump. Dump cost on outermost call only.
4262 (rs6000_memory_move_cost): Dump cost on outermost call only.
4263
7351d8da
JJ
42642011-05-31 Jakub Jelinek <jakub@redhat.com>
4265
ead7c399
JJ
4266 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4267 DW_OP_GNU_convert ops.
4268
509f4495
JJ
4269 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4270 cselib_preserve_constants.
4271 (cselib_lookup_1): If cselib_preserve_constants,
4272 a new VALUE is being created for REG and there is a VALUE for the
4273 same register in wider mode, add another loc with lowpart SUBREG of
4274 the wider VALUE.
4275 (cselib_subst_to_values): Handle ENTRY_VALUE.
4276 * var-tracking.c (replace_expr_with_values): Return NULL for
4277 ENTRY_VALUE too.
4278 * dwarf2out.c (convert_descriptor_to_signed): New function.
4279 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4280 instead of two shifts.
4281 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4282 the right mode if needed.
4283 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4284 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4285 convert_descriptor_to_signed.
4286 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4287 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4288
7351d8da
JJ
4289 PR target/48688
4290 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4291
5cc93ee0
UB
42922011-05-31 Uros Bizjak <ubizjak@gmail.com>
4293
4294 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4295 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4296 (SWI248x): New mode iterator, rename from X87MODEI.
4297 (X87MODEI): Remove mode iterator.
4298 (X87MODEI12): Ditto.
4299 (SSEMODEI24): Ditto.
4300
f0686e78
AO
43012011-05-31 Alexandre Oliva <aoliva@redhat.com>
4302
4303 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4304 * doc/invoke.texi: Document max-vartrack-expr-depth.
4305 * var-tracking.c (EXPR_DEPTH): New.
4306 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4307
f3308413
AO
43082011-05-31 Alexandre Oliva <aoliva@redhat.com>
4309
4310 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4311 * config/i386/sse.md: Add n to negated FMA pattern names.
4312
28c14a04
AO
43132011-05-31 Alexandre Oliva <aoliva@redhat.com>
4314
4315 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4316
70efc82d
AO
43172011-05-31 Alexandre Oliva <aoliva@redhat.com>
4318
5cc93ee0 4319 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 4320
6ba5d856
UB
43212011-05-31 Uros Bizjak <ubizjak@gmail.com>
4322
4323 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4324 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4325
43262011-05-31 Uros Bizjak <ubizjak@gmail.com>
4327
4328 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4329 registers. Penalize F*r->o alternative to prevent partial memory
4330 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4331 CONST_DOUBLE immediates when optimizing function for size. Do not move
4332 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4333 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4334 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4335 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4336 alternatives.
4337 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4338
4339 (fp_register_operand splitters): Use fp_register_operand
4340 constraint. Do not use FP_REG_P in insn condition.
4341 (any_fp_register_operand splitters): Use any_fp_register_operand
4342 constraint. Do not use ANY_FP_REG_P in insn condition.
4343
533c07c5
JH
43442011-05-31 Jan Hubicka <jh@suse.cz>
4345
4346 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4347 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4348 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4349 (lto_output_edge): Use output_enum and var_len_unsigned.
4350 (lto_output_varpool_node): Likewise.
4351 (input_overwrite_node): Do not take resolution parameter;
4352 extract it from a bitpack.
4353 (input_node): Do not read resolution; use input_enum and
4354 var_len_unsigned.
4355 (input_varpool_node): Likewise.
4356 (input_edge): Likewise.
4357 (input_cgraph_1): Likewise.
4358
2611db71
RG
43592011-05-31 Richard Guenther <rguenther@suse.de>
4360
4361 * gimple.c (gimple_register_canonical_type): Do not register
4362 any types via gimple_register_type.
4363
b9e57365
JH
43642011-05-31 Jan Hubicka <jh@suse.cz>
4365
4366 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4367 of thunks.
4368
35979cc2
JJ
43692011-05-31 Jakub Jelinek <jakub@redhat.com>
4370
4371 PR rtl-optimization/49235
4372 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4373 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4374
8f7de592
IR
43752011-05-31 Ira Rosen <ira.rosen@linaro.org>
4376
4377 PR tree-optimization/49093
4378 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4379 data references.
4380
8d8a3bda
DS
43812011-05-31 Dodji Seketeli <dodji@redhat.com>
4382
4383 PR debug/49047
4384 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 4385 for concrete functions containing the code of cloned functions.
8d8a3bda 4386
2e87621c
RG
43872011-05-31 Richard Guenther <rguenther@suse.de>
4388
4389 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4390 to ...
4391 (forward_propagate_into_comparison_1): ... this.
4392 (forward_propagate_comparison): Rename to ...
4393 (forward_propagate_into_comparison): ... this. Split out
4394 real forward propagation code to ...
4395 (forward_propagate_comparison): ... this.
4396 (forward_propagate_into_gimple_cond): Remove looping.
4397 (forward_propagate_into_cond): Likewise.
4398 (simplify_not_neg_expr): Return whether we have done something.
4399 (simplify_gimple_switch): Likewise.
4400 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4401 (ssa_forward_propagate_and_combine): ... this. Re-structure
4402 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 4403 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
4404 (pass_forwprop): Adjust.
4405
5a880d5d
ILT
44062011-05-30 Ian Lance Taylor <iant@google.com>
4407
4408 * godump.c (go_format_type): Correct length of name added to
4409 obstack for anonymous field.
4410
5f133038
KK
44112011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4412
4413 PR target/49186
4414 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4415 part of the second operand is 0.
4416
b17d5426
UB
44172011-05-30 Uros Bizjak <ubizjak@gmail.com>
4418
4419 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4420 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4421 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4422 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 4423 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
4424 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4425 when optimizing function for size. Do not move CONST_DOUBLEs
4426 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
4427 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4428 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
4429 check for ANY_FP_REGNO_P instead.
4430 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4431 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4432 function for speed.
4433 * config/i386/i386.c (ix86_option_override_internal): Do not
4434 set TARGET_INTEGER_DFMODE_MOVES here.
4435
a0cd843f
L
44362011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4437
4438 PR target/49168
aad61732 4439 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 4440
006a5f38
JJ
44412011-05-30 Jakub Jelinek <jakub@redhat.com>
4442
4443 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4444 DW_TAG_rvalue_reference_type even for
4445 -gdwarf-4 -fno-debug-types-section.
4446
6e96f98a
BS
44472011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4448
4449 PR tree-optimization/46728
4450 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4451 (build_and_insert_binop): New.
4452 (gimple_expand_builtin_pow): Reorder args for
4453 build_and_insert_call; use build_and_insert_binop; add more
4454 optimizations for fractional exponents.
b17d5426 4455
4f60111f
NF
44562011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4457
4458 PR bootstrap/49190
4459
4460 Revert:
4461 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4462
4463 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4464 tree_common.
4465 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4466 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4467 TS_BASE instead of TS_COMMON.
4468 * varasm.c (assemble_name): Remove assert.
4469
3fd7879d
RS
44702011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4471
4472 * config.gcc: Keep obselete list sorted.
4473
80060f7a
JJ
44742011-05-30 Jakub Jelinek <jakub@redhat.com>
4475 Eric Botcazou <ebotcazou@adacore.com>
4476
4477 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4478 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4479 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4480 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4481 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4482
17e99cdb
RG
44832011-05-30 Richard Guenther <rguenther@suse.de>
4484
4485 * gimple.c (gimple_types_compatible_p_1): Compare record
4486 and union type members properly.
4487
42b05b6e
RG
44882011-05-30 Richard Guenther <rguenther@suse.de>
4489
4490 PR tree-optimization/49210
6ba5d856
UB
4491 * ipa-split.c (split_function): Care for the case where the call
4492 result is not trivially convertible to the result holding variable.
42b05b6e 4493
f3321158
RG
44942011-05-30 Richard Guenther <rguenther@suse.de>
4495
4496 PR tree-optimization/49218
4497 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4498 overflow occured.
4499
d12d8efe
RG
45002011-05-30 Richard Guenther <rguenther@suse.de>
4501
4502 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4503 New function split out from ...
4504 (forward_propagate_into_gimple_cond): ... here. Adjust.
4505 (forward_propagate_into_cond): Likewise.
4506 (forward_propagate_comparison): Also propagate into
4507 comparisons on assignment RHS. Change return value to
4508 behave similar to forward_propagate_into_cond.
4509 (tree_ssa_forward_propagate_single_use_vars): Handle
4510 strict-overflow warnings properly for forward_propagate_comparison.
4511
df33b41f
RO
45122011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4513
4514 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4515 from plugin linker.
4516 * configure: Regenerate.
4517
69940d4d
IR
45182011-05-30 Ira Rosen <ira.rosen@linaro.org>
4519
4520 PR tree-optimization/49199
4521 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 4522 non-reduction operands are either defined in the loop or by induction.
69940d4d 4523
226c52aa
XDL
45242011-05-29 Xinliang David Li <davidxl@google.com>
4525
4526 * opts-global.c (handle_common_deferred_options): Handle new options.
4527 * passes.c (register_one_dump_file): Call register_pass_name.
4528 (execute_one_pass): Check explicit enable/disable flag.
4529 (passr_hash): New function.
4530 (passr_eq): Ditto.
4531 (register_pass_name): Ditto.
4532 (get_pass_by_name): Ditto.
4533 (pass_hash): Ditto.
4534 (pass_eq): Ditto.
4535 (enable_pass): Ditto.
4536 (disable_pass): Ditto.
4537 (is_pass_explicitly_enabled_or_disabled): Ditto.
4538
491d8eed
UB
45392011-05-29 Uros Bizjak <ubizjak@gmail.com>
4540
4541 * config/i386/i386.md (*movoi_internal_avx): Use
4542 standard_sse_constant_opcode for alternative 0.
4543 (*movti_internal_sse): Ditto.
4544 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4545 alternative 2.
4546 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4547 sselog1 type moves.
4548 (*movsi_internal): Ditto.
4549 (*movdi_internal): Ditto. Add ssecvt type moves.
4550
eb93b31f
EB
45512011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4552
4553 PR target/48830
4554 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4555
3f831b7d
JJ
45562011-05-29 Jakub Jelinek <jakub@redhat.com>
4557
4558 PR rtl-optimization/49095
4559 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4560 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4561
ee3ee488
RS
45622011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4563
4564 PR target/43995
4565 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4566 recurse_p argument. Only follow register copies if it is set,
4567 and prevent mips_find_pic_call_symbol from recursing.
4568 (mips_find_pic_call_symbol): Add a recurse_p argument.
4569 Pass it to mips_pic_call_symbol_from_set.
4570 (mips_annotate_pic_calls): Update accordingly.
4571
65f3dedb
RS
45722011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4573
4574 * emit-rtl.c (try_split): Use a loop to search for
4575 NOTE_INSN_CALL_ARG_LOCATIONs.
4576
61e374ab
RG
45772011-05-29 Richard Guenther <rguenther@suse.de>
4578
4579 PR tree-optimization/49217
4580 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4581
fac009a8
JH
45822011-05-28 Jan Hubicka <jh@suse.cz>
4583
4584 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4585 length.
4586 (string_slot_free): Remove
4587 (create_output_block): Initialize obstack.
4588 (destroy_output_block): Free obstack.
4589 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4590 the string unless it needs to be added into the hash.
4591 (lto_output_string_with_length): Add persistent attribute;
4592 handle NULL strings.
4593 (lto_output_string): Add PERSISTENT parameter.
4594 (output_string_cst, output_identifier): Simplify.
4595 (lto_output_location_bitpack): Update.
4596 (lto_output_builtin_tree): Update.
4597 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
4598 (lto_output_string, lto_output_string_with_length): Remove
4599 declarations; functions are static now.
fac009a8 4600
fa766006
JH
46012011-05-28 Jan Hubicka <jh@suse.cz>
4602
4603 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4604 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4605 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4606 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4607 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4608 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4609 unpack_ts_decl_with_vis_value_fields,
4610 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4611 lto_get_builtin_tree): Use enum and variable length i/o.
4612 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4613 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4614 New functions.
4615 (bp_pack_enum, bp_unpack_enum): New macros.
4616
e092158b
RS
46172011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4618
4619 * genrecog.c: Remove redundant forward declarations.
4620
7ca2afa0
RS
46212011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4622
4623 * config.gcc: Deprecate mips*-*-openbsd*.
4624
a601a53a
RS
46252011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4626
4627 PR bootstrap/49195
4628 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4629 for match_op_dup.
4630
fc64b448
AP
46312011-05-27 Andrew Pinski <pinskia@gmail.com>
4632
4633 PR middle-end/48981
4634 * gengtype.c (vec_prefix_type): New function.
4635 (note_def_vec): Use vec_prefix_type and change the length
4636 attribute to be based on the prefix.
4637 * vec.c: Include coretypes.h before vec.h.
4638 (struct vec_prefix): Remove.
4639 (vec_gc_p_reserve): Change the offsetof to sizeof.
4640 (vec_gc_p_reserve_exact): Likewise.
4641 (vec_heap_p_reserve): Likewise.
4642 (vec_heap_p_reserve_exact): Likewise.
4643 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4644 (vec_stack_p_reserve): Change the offsetof to sizeof.
4645 (vec_stack_p_reserve_exact): Likewise.
4646 * vec.h (struct vec_prefix): New struct definition.
4647 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4648 (VEC_T_GTY(T,B)): Likewise.
4649 (DEF_VEC_FUNC_P(T)): Use prefix field.
4650 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4651 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4652
ba869341
BS
46532011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4654
4655 PR tree-optimization/46728
4656 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4657 (powi_as_mults): Add gimple_set_location.
4658 (build_and_insert_call): New.
4659 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4660 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 4661
d296760d
AM
46622011-05-27 Alexander Monakov <amonakov@ispras.ru>
4663
4664 * doc/contrib.texi: Update copyright years.
4665 (Contributors): Add Zdenek Sojka.
4666
38e01f9e
NF
46672011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4668
4669 * c-decl.c (c_push_function_context): Copy the current statement
4670 list stack.
4671 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4672 (finish_struct): Call building_stmt_list_p instead of checking
4673 cur_stmt_list.
4674 * c-parser.c (c_parser_postfix_expression): Likewise.
4675 * c-typeck.c (c_end_compound_stmt): Likewise.
4676 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4677 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4678 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4679 (free_stmt_list): Likewise.
4680 * tree.h (struct tree_statement_list): Include typed_tree instead
4681 of tree_common.
4682 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4683 as TS_TYPED instead of TS_COMMON.
4684
8950516e 46852011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 4686 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
4687
4688 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4689 (HAVE_AS_IX86_TLSGDPTL): Define.
4690 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4691 (HAVE_AS_IX86_TLSLDMPLT): Define.
4692 * configure: Regenerate.
4693 * config.in: Regenerate.
4694 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4695 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4696 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4697 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4698 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4699 @tlsldmplt or @plt.
4700 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4701
b0bd15f7
BS
47022011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4703
4704 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4705 and reverse_cond.
4706 (INSN_COND, INSN_REVERSE_COND): New macros.
4707 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4708 once.
4709 (sched_get_condition_with_rev): Cache the results, and look them up
4710 if possible.
4711 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4712 are clobbered by the current insn.
4713 * target.def (exposed_pipline): New sched data hook.
4714 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4715 * doc/tm.texi: Regenerate.
4716
fa65a9cf
BS
47172011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4718
4719 PR tree-optimization/49170
4720 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4721 sincos or cexp.
b0bd15f7 4722
c2299dfe
RG
47232011-05-27 Richard Guenther <rguenther@suse.de>
4724
4725 PR middle-end/49189
4726 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4727 of comparisons.
4728
a95b23b4
BS
47292011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4730
4731 * haifa-sched.c (sched_scan_info): Remove.
4732 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4733 with NULL args.
4734 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4735 Remove functions.
4736 (sched_scan): Remove.
4737 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4738 static. All callers changed.
4739 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4740 static. All callers changed.
4741 (sched_init_luids): Remove all arguments except the first. All
4742 callers changed. Don't use sched_scan.
4743 (haifa_init_h_i_d): Likewise.
4744 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4745 manually rather than using sched_init_luids. Likewise with
4746 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4747 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4748 rather than sched_init_luids with NULL args.
4749 * sel-sched-ir.c (new_insns): Remove variable.
4750 (sched_scan): New static function, previously in haifa-sched.c. Remove
4751 all arguments but the first two; all callers changed.
4752 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4753 rather than sched_init_luids.
4754 (sel_init_bbs): Remove second argument. All callers changed.
4755 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4756 with NULL arguments.
4757 (create_insn_rtx_from_pattern): Likewise.
4758 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4759 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4760 (sched_init_insn_luid, sched_extend_luids): Declare.
4761 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4762 declarations.
4763
f8f972fc
RB
47642011-05-27 Richard Guenther <rguenther@suse.de>
4765
4766 PR middle-end/49177
4767 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4768 A CMP B ? (T) true : (T) false for non-integral types T again.
4769
51a9ed47
JH
47702011-05-27 Jan Hubicka <jh@suse.cz>
4771
4772 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4773 so 0 means NULL string.
4774 (lto_output_string_with_length): ... here.
f8f972fc
RB
4775 (lto_output_string, output_string_cst, output_identifier): Update
4776 handling of NULL strings.
51a9ed47
JH
4777 (lto_output_location_bitpack): New function.
4778 (lto_output_location): Use it.
4779 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
4780 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4781 len values.
4782 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4783 values by 1.
491d8eed 4784 (input_string_internal): ... here;
f8f972fc
RB
4785 (input_string_cst, input_identifier, lto_input_string): Update handling
4786 of NULL strings.
51a9ed47
JH
4787 (lto_input_location_bitpack): New function
4788 (lto_input_location): Use it.
f8f972fc
RB
4789 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4790 values.
51a9ed47
JH
4791 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4792 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4793 (bp_pack_value): Sanity check the value range.
4794 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4795 New functions.
4796 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4797 New functions.
4798
66bd20e7 47992011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
4800
4801 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4802 call_arg_location instructions down the floor.
4803
574e418a
VM
48042011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4805
4806 PR rtl-optimization/49154
4807 * ira.c (setup_pressure_classes): Process class without sublcasses
4808 as a candidate for pressure classes.
4809
6a1a787e
RS
48102011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4811
4812 PR rtl-optimization/48575
4813 * genrecog.c (position_type): New enum.
4814 (position): New structure.
4815 (decision): Use position structure instead of a string.
4816 (root_pos, peep2_insn_pos_list): New variables.
4817 (next_position, compare_positions): New functions.
4818 (new_decision): Use position structures instead of strings.
4819 (maybe_both_true): Likewise.
4820 (change_state): Likewise.
4821 (write_tree): Likewise.
4822 (make_insn_sequence): Likewise.
4823
92e948a8
NF
48242011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4825
4826 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4827 TS_BASE instead of TS_COMMON.
4828 (find_decls_types_r): Check for TS_TYPED structure before looking at
4829 TREE_TYPE.
4830 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4831 Add chain field.
4832 (BLOCK_CHAIN): Use new chain field.
4833
66bd20e7 48342011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
4835
4836 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4837 moves expensive on Power7 also.
4838
1f498652
RG
48392011-05-26 Richard Guenther <rguenther@suse.de>
4840
4841 * fold-const.c (fold_unary_loc): Remove bogus code.
4842
a2fc3e63
NF
48432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4844
4845 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4846 tree_common.
4847 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4848 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4849 TS_BASE instead of TS_COMMON.
4850 * varasm.c (assemble_name): Remove assert.
4851
d11bf18f
BS
48522011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4853
4854 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4855 substituted first.
4856 * libgcc-std.ver: Delete file.
4857
ac8e1875
RG
48582011-05-26 Richard Guenther <rguenther@suse.de>
4859
4860 PR tree-optimization/48702
4861 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4862 only when we know the base address is within bounds.
4863 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4864 assume the base address of TARGET_MEM_REFs is in bounds.
4865
7e32e652
RO
48662011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4867
4868 PR target/49099
4869 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4870 declaration in TARGET_SOLARIS.
4871
66bd20e7 48722011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
4873
4874 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 4875 The instruction is then expanded explicitly.
43660e0b
HS
4876 (supported_compare): Callable instruction.
4877 (compare): Likewise.
4878
1537737f
JJ
48792011-05-26 Jakub Jelinek <jakub@redhat.com>
4880
4881 PR c++/49165
4882 * gimplify.c (shortcut_cond_r): Don't special case
4883 COND_EXPRs if they have void type on one of their arms.
4884
7b1ac803
BS
48852011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4886
4887 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4888 to reduce duplication, and to achieve a slightly more logical order
4889 of operations.
4890
1aa9438f
JJ
48912011-05-26 Jakub Jelinek <jakub@redhat.com>
4892
4893 PR tree-optimization/49161
4894 * tree-vrp.c (struct case_info): New type.
4895 (compare_case_labels): Sort case_info structs instead of
4896 trees, and not primarily by CASE_LABEL uids but by
4897 label_for_block indexes.
4898 (find_switch_asserts): Put case labels into struct case_info
4899 array instead of TREE_VEC, adjust sorting, compare label_for_block
4900 values instead of CASE_LABELs.
4901
50fed7bf
RR
49022011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4903
4904 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4905 ("orndi3_neon"): Likewise.
4906 ("bic<mode>3_neon"): Likewise.
4907
48df3fa6
IR
49082011-05-26 Ira Rosen <ira.rosen@linaro.org>
4909
4910 PR tree-optimization/49038
4911 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4912 Ensure at least one epilogue iteration if required by data
4913 accesses with gaps.
4914 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4915 to mark loops that require peeling for gaps.
4916 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4917 (vect_get_known_peeling_cost): Take peeling for gaps into
4918 account.
4919 (vect_transform_loop): Generate epilogue if required by data
4920 access with gaps.
4921 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4922 loop as requiring an epilogue if there are gaps in the end of
4923 the strided group.
4924
53febcba
ILT
49252011-05-25 Ian Lance Taylor <iant@google.com>
4926
4927 * godump.c (go_format_type): Output the first field with a usable
4928 Go type, if any.
4929
dbbc4d4c
ILT
49302011-05-25 Ian Lance Taylor <iant@google.com>
4931
4932 * godump.c (go_format_type): Check for invalid type names, pointer
4933 target types, and struct field types.
4934
f03a5402
JM
49352011-05-25 Jason Merrill <jason@redhat.com>
4936
4937 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4938
c497c412
UB
49392011-05-25 Uros Bizjak <ubizjak@gmail.com>
4940
4941 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4942
e470affe
L
49432011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4944
4945 * config/i386/i386.md (*movqi_extv_1)): Put back
4946 "register_operand" check in "type" calculation.
4947 (*movqi_extzv_2): Likewise.
4948
6c81b2bc
L
49492011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4950
c497c412 4951 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 4952
0c007eb2
BS
49532011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4954
4955 PR bootstrap/49160
4956 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4957 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4958 __divxc3, __divtc3): Wrap definitions in #ifndef.
4959
521ca78e
L
49602011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4961
4962 PR target/49142
4963 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4964 "register_operand" check and replace q_regs_operand with
4965 QIreg_operand in "type" calculation.
4966 (*movqi_extv_1): Likewise.
4967 (*movqi_extzv_2_rex64): Likewise.
4968 (*movqi_extzv_2): Likewise.
4969
4970 * config/i386/predicates.md (QIreg_operand): New.
4971
29f8b844
RG
49722011-05-25 Richard Guenther <rguenther@suse.de>
4973
4974 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4975 type-based offset disambiguation, streamline MEM_REF and
4976 TARGET_MEM_REF handling.
4977
74838de3
L
49782011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4979
4980 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4981 (bdesc_special_args): Add pause intrinsic.
4982
4983 * config/i386/i386.md (UNSPEC_PAUSE): New.
4984 (pause): Likewise.
4985 (*pause): Likewise.
4986 * config/i386/ia32intrin.h (__pause): Likewise.
4987
4988 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4989 pause intrinsic.
4990
d24ad7d6
BS
49912011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4992
4993 PR tree-optimization/46728
4994 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4995 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 4996
d9f8303f
NF
49972011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4998
4999 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5000 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5001 instead of TS_COMMON.
5002
cdbf4541
BS
50032011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5004
5005 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5006 LIBGCC2_GNU_PREFIX is defined.
5007 (__N): New macro.
5008 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5009 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5010 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5011 __clz_tab): Define using __N.
5012 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5013 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5014 * target.def (libfunc_gnu_prefix): New hook.
5015 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5016 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5017 * doc/tm.texi: Regenerate.
5018 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5019 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5020 account.
5021 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5022 (init_optabs): Likewise for the bswap libfuncs.
5023 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5024 and divide.
5025 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5026 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5027 * libgcc-std.ver: Remove.
5028 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5029 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5030 libgcc-std.ver.
5031 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5032 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5033 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5034 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5035 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5036 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5037 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5038 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5039 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5040 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5041
f242c0a5
JH
50422011-05-25 Jan Hubicka <jh@suse.cz>
5043
5044 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5045 (lto_output_tree): Use output_record_start.
5046 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5047 (lto_get_pickled_tree): Use input_record_start.
5048 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5049 (lto_value_range_error): New function.
5050 * lto-streamer.h (lto_value_range_error): Declare.
5051 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5052 (lto_output_enum, lto_input_enum): New macros.
5053
a11e0df4
EB
50542011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5055
5056 * common.opt (flag_stack_usage_info): New variable.
5057 (-Wstack-usage): New option.
5058 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5059 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5060 <OPT_fstack_usage>: Likewise.
5061 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5062 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5063 of flag_stack_usage.
5064 (emit_library_call_value_1): Likewise.
5065 * explow.c (allocate_dynamic_stack_space): Likewise.
5066 * function.c (instantiate_virtual_regs ): Likewise.
5067 (prepare_function_start): Likewise.
5068 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5069 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5070 * config/arm/arm.c (arm_expand_prologue): Likewise.
5071 (thumb1_expand_prologue): Likewise.
5072 * config/avr/avr.c (expand_prologue): Likewise.
5073 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5074 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5075 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5076 * config/mips/mips.c (mips_expand_prologue): Likewise.
5077 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5078 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5079 * config/s390/s390.c (s390_emit_prologue): Likewise.
5080 * config/sh/sh.c (sh_expand_prologue): Likewise.
5081 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5082 * config/spu/spu.c (spu_expand_prologue): Likewise.
5083
e7cfe241
RG
50842011-05-25 Richard Guenther <rguenther@suse.de>
5085
5086 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5087 (gimple_canonical_types_compatible_p): Likewise.
5088
c5235f4c
JH
50892011-05-25 Jan Hubicka <jh@suse.cz>
5090
5091 PR middle-end/49062
5092 * ipa.c (function_and_variable_visibility): Only add to same
5093 comdat group list if DECL_ONE_ONLY.
5094
8242a0f6
AB
50952011-05-25 Andrey Belevantsev <abel@ispras.ru>
5096
5097 PR rtl-optimization/49014
5098 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5099
642a011d
JJ
51002011-05-25 Jakub Jelinek <jakub@redhat.com>
5101
5102 PR target/49128
5103 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5104
30a435d8
VM
51052011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5106
5107 PR rtl-optimization/48757
5108 * ira-build.c (loop_with_eh_edge_p): Rename to
5109 loop_with_complex_edge_p, check edges on complexity, make function
5110 conditional.
5111 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5112 conditional.
5113
24d1bbc7
EB
51142011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5115
5116 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5117 force flag_ira_share_save_slots to 0.
5118
65773087
EB
51192011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5120
5121 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5122 (vt_initialize): Set PROLOGUE_BB unconditionally.
5123 Add block comment about CFA_BASE_RTX machinery.
5124 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5125 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5126
4e26ba90
NP
51272011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5128
5129 PR objc/48187
5130 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5131 parsing of syntax error in ObjC instance variable lists. In
5132 particular, avoid an infinite loop if there is a stray ']'.
5133 Updated error message.
5134
936fd13c
ILT
51352011-05-24 Ian Lance Taylor <iant@google.com>
5136
5137 * godump.c (go_define): Don't accept a string immediately after
5138 another operand.
5139
f17333e3
ILT
51402011-05-24 Ian Lance Taylor <iant@google.com>
5141
5142 * godump.c (struct godump_container): Add invalid_hash field.
5143 (go_format_type): Return false if type is found in invalid_hash.
5144 (go_output_typedef): Add invalid type to invalid_hash.
5145 (go_finish): Create and delete invalid_hash.
5146
d24ad7d6 51472011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 5148
78be79d5
BS
5149 PR tree-optimization/46728
5150 * tree-ssa-math-opts.c (powi_table): New.
5151 (powi_lookup_cost): New.
5152 (powi_cost): New.
5153 (powi_as_mults_1): New.
5154 (powi_as_mults): New.
5155 (gimple_expand_builtin_powi): New.
5156 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5157 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 5158
caee412b
RO
51592011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5160
5161 PR target/3746
5162 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5163 mips-tdump native.
5164 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5165 * mips-tdump.c: Likewise.
5166
5eed4f27
L
51672011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5168
5169 PR target/49128
5170 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5171 add -mno-XXX. Handle FMA.
5172
8c5fdaae
VM
51732011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5174
5175 PR rtl-optimization/48633
5176 * ira-build.c (loop_with_eh_edge_p): New function.
5177 (mark_loops_for_removal): Use it.
5178
51792011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
5180
5181 PR rtl-optimization/48971
5182 * ira.c (setup_pressure_classes): Don't check register move cost
5183 for classes with one registers. Don't add pressure class if there
5184 is a pressure class with the same available hard registers.
5185 Check contains_reg_of_mode. Fix a typo in collecting
5186 temp_hard_regset. Ignore hard registers not belonging to a class.
5187
df1f7315
UB
51882011-05-24 Uros Bizjak <ubizjak@gmail.com>
5189
5190 PR target/49133
5191 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5192
ee0cb37c
EB
51932011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5194 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5195
5196 PR gcov-profile/48845
5197 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5198
6a20ce76
RG
51992011-05-24 Richard Guenther <rguenther@suse.de>
5200
5201 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5202 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5203 (gimple_types_compatible_p_1): Adjust.
5204 (iterative_hash_canonical_type): Do not bother about complete vs.
5205 incomplete types.
5206 (gimple_canonical_types_compatible_p): Likewise.
5207
2fcb858c
RO
52082011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5209
5210 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5211
96d91dcf
RG
52122011-05-24 Richard Guenther <rguenther@suse.de>
5213
5214 PR bootstrap/49078
5215 * gimple.c (gimple_register_canonical_type): Revert
5216 previous change.
5217 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5218 does not for a tree for the case where it matters. Cache
5219 pointer-type alias-sets.
5220
1ed1641d
JM
52212011-05-24 Joseph Myers <joseph@codesourcery.com>
5222
5223 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5224 (OBJS): Remove options.o, opts-common.o and prefix.o.
5225 (OBJS-libcommon-target): New.
5226 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5227 (BACKEND): Include libcommon-target.a.
5228 (MOSTLYCLEANFILES): Include libcommon-target.a.
5229 (libcommon-target.a): New.
5230 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5231 prefix.o.
5232
57dfdff0
JM
52332011-05-23 Joseph Myers <joseph@codesourcery.com>
5234
5235 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5236 parts of output shared with the driver.
5237 * optc-gen.awk: Don't generate parts of output not shared with the
5238 driver.
5239 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5240 * doc/options.texi (SourcerInclude): Mention options-save.c.
5241 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5242 (OBJS): Add options-save.o.
5243 (options-save.c, options-save.o): New.
5244 (options.o): Update dependencies.
5245 (gcc-options.o): Remove.
5246 (mostlyclean): Remove options-save.c.
5247
0e0d82a7
JJ
52482011-05-23 Jakub Jelinek <jakub@redhat.com>
5249
9166988f
JJ
5250 PR debug/49032
5251 * dbxout.c: Include cgraph.h.
5252 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5253 and without value expr, return NULL if no varpool node exists for
5254 it or if it is not needed.
5255 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5256
0e0d82a7
JJ
5257 PR c/49120
5258 * c-decl.c (start_decl): Convert expr to void_type_node.
5259
65712d5c
RS
52602011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5261
5262 PR rtl-optimization/48826
5263 * emit-rtl.c (try_split): When splitting a call that is followed
5264 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5265
9025085e
JJ
52662011-05-23 Jakub Jelinek <jakub@redhat.com>
5267
5268 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5269 parameters passed in memory prefer using DECL_INCOMING_RTL over
5270 the pseudos it will be copied into.
5271
34a061be
L
52722011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5273
5274 PR target/47315
5275 * config/i386/i386.c (ix86_option_override_internal): Save the
5276 initial options after checking vzeroupper.
5277
c375a3a4
DL
52782011-05-23 David Li <davidxl@google.com>
5279
5280 PR tree-optimization/48988
5281 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5282 Initialize has_valid_pred for each pred chain.
5283
e1caba18
RG
52842011-05-23 Richard Guenther <rguenther@suse.de>
5285
5286 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5287 (iterative_hash_gimple_type): Always hash type names.
5288
dde05067
NF
52892011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5290
5291 * c-typeck.c (build_function_call_vec): Tweak call to
5292 check_function_arguments.
5293
094f6ab3
RG
52942011-05-23 Richard Guenther <rguenther@suse.de>
5295
5296 PR tree-optimization/49115
5297 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5298 is not necessarily carried out, do not claim it kills the ref.
5299 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5300
9a9822e1
RG
53012011-05-23 Richard Guenther <rguenther@suse.de>
5302
5303 PR middle-end/15419
5304 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5305 what pointer types we accept for folding.
5306
c8028650
RO
53072011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5308
5309 * gthr-gnat.c: Remove.
5310 * gthr-gnat.h: Remove.
5311 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5312 * config/t-freebsd (LIB2ADDEH): Likewise.
5313 * config/t-linux (LIB2ADDEH): Likewise.
5314 * config/t-sol2 (LIB2ADDEH): Likewise.
5315 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5316 * configure.ac (target_thread_file): Remove gnat handling.
5317 * configure: Regenerate.
5318 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5319
15882fe9
TG
53202011-05-23 Tristan Gingold <gingold@adacore.com>
5321 Eric Botcazou <ebotcazou@adacore.com>
5322
5323 * gcov.c (create_file_names): If no object directory is specified,
5324 keep the directory of the file.
5325
da90c957
RO
53262011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5327
5328 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5329 * configure: Regenerate.
5330
7bba408b
JJ
53312011-05-23 Jakub Jelinek <jakub@redhat.com>
5332
5333 PR middle-end/48973
5334 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5335 failed and the comparison has a single bit signed type, use
5336 constm1_rtx instead of const1_rtx for true value.
5337 (do_store_flag): If ops->type is single bit signed type, disable
5338 signel bit test optimization and pass -1 instead of 1 as last
5339 parameter to emit_store_flag_force.
5340
bc69f7ff
TV
53412011-05-23 Tom de Vries <tom@codesourcery.com>
5342
5343 PR target/45098
5344 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5345 function.
5346 (infer_loop_bounds_from_undefined): Use new function.
5347
29cedf8e
RS
53482011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5349
5350 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5351 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5352 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5353 and -O0 otherwise.
5354 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5355
afe8b6ec
EB
53562011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5357
5358 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5359 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5360 returns true.
5361
872dab53
RS
53622011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5363
5364 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5365
145f6c5b
EB
53662011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5367
5368 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5369 UNSPEC_MOVE_PIC pattern.
5370
8ac79835
EB
53712011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5372
5373 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5374 (sparc-*-rtems*): Likewise.
5375 (sparc64-*-elf*): Likewise.
5376 (sparc64-*-rtems*): Likewise.
5377 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5378 * config/sparc/t-crtin: New file.
5379 * config/sparc/t-sol2 (crti.o): Delete rule.
5380 (crtn.o): Likewise.
5381 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5382 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5383 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5384 (ENDFILE_SPEC): Add crtn.o.
5385
5fb43dd8
TV
53862011-05-22 Tom de Vries <tom@codesourcery.com>
5387
5388 PR middle-end/48689
5389 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5390 CODE_CONTAINS_STRUCT (TS_COMMON).
5391
ccb1b17b
JJ
53922011-05-22 Jakub Jelinek <jakub@redhat.com>
5393
5394 PR middle-end/49029
5395 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5396 only after deciding which mode to use.
5397
50ad7db2
TV
53982011-05-22 Tom de Vries <tom@codesourcery.com>
5399
5400 PR target/45098
dc0a3366 5401 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
5402 for call to get_shiftadd_cost.
5403
ef230b38
UB
54042011-05-22 Uros Bizjak <ubizjak@gmail.com>
5405
5406 PR target/49104
5407 * config/i386/cpuid.h (bit_MMXEXT): New define.
5408
15f072f9
NC
54092011-05-22 Nick Clifton <nickc@redhat.com>
5410
5411 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5412 initialisation of non-existant args[2] element. Use args[] array
5413 not arg[] array to pass arguments to build_function_type_list.
5414
e38fdc94
IR
54152011-05-22 Ira Rosen <ira.rosen@linaro.org>
5416
5417 PR tree-optimization/49087
ef230b38 5418 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 5419
5b018c65
JM
54202011-05-21 Jason Merrill <jason@redhat.com>
5421
5422 PR c++/49092
5423 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5424 static storage duration.
5425
abd9a770
EB
54262011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5429 frame pointer.
5430
bd9a3248
EB
54312011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5432
5433 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5434 false if there are call-saved registers here...
5435 (sparc_can_use_return_insn_p): ...but here instead.
5436 (save_or_restore_regs): Fix thinko.
5437 (sparc_expand_prologue): Use current_function_is_leaf.
5438 (sparc_frame_pointer_required): Likewise.
5439
a5dfec9a
NC
54402011-05-21 Nick Clifton <nickc@redhat.com>
5441
5442 PR target/49098
5443 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5444
555c3771
NP
54452011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5446
5447 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5448 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5449
86fa5de4
JM
54502011-05-21 Joseph Myers <joseph@codesourcery.com>
5451
5452 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5453 * optc-gen.awk: Move common code to opt-read.awk.
5454 * opth-gen.awk: Likewise.
ef230b38 5455 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 5456
bce33ab2
NF
54572011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5458
5459 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5460
e6450c11
TV
54612011-05-20 Tom de Vries <tom@codesourcery.com>
5462
5463 PR target/45098
5464 * tree-ssa-loop-ivopts.c: Include expmed.h.
5465 (get_shiftadd_cost): New function.
5466 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5467
0e8b84ec
JJ
54682011-05-20 Jakub Jelinek <jakub@redhat.com>
5469
5470 PR bootstrap/49086
5471 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5472 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5473
946bdf67
JM
54742011-05-20 Joseph Myers <joseph@codesourcery.com>
5475
5476 * Makefile.in: Update comment referring to $(OBJS-common).
5477
c53aafdf
ILT
54782011-05-20 Ian Lance Taylor <iant@google.com>
5479
5480 * godump.c (go_output_typedef): Put enum constants in the macro
5481 hash table to avoid duplicate Go const definitions.
5482
2691e6d7
JM
54832011-05-20 Joseph Myers <joseph@codesourcery.com>
5484
5485 * Makefile.in (LIBDEPS): Add libcommon.a.
5486 (LIBS): Likewise.
5487 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5488 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5489 pretty-print.o and version.o.
5490 (OBJS-libcommon): New.
5491 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5492 (BACKEND): Add libcommon.a.
5493 (MOSTLYCLEANFILES): Likewise.
5494 (libcommon.a): New.
5495 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5496 (cpp$(exeext)): Likewise.
5497 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5498 pretty-print.o and input.o.
5499 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5500 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5501 (errors.o): Remove.
5502 (mips-tfile): Don't explicitly use version.o.
5503 (mips-tdump): Likewise.
5504 (gcov.o): Depend on $(DIAGNOSTIC_H).
5505 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5506 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5507 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5508 * gcov-dump.c: Include intl.h and diagnostic.h.
5509 (main): Initialize diagnostics.
5510 * gcov.c: Include diagnostic.h.
5511 (fnotice): Remove.
5512 (main): Initialize diagnostics.
5513 * lto-wrapper.c: Include diagnostic.h.
5514 (main): Initialize diagnostics.
5515
252b3e8c
MM
55162011-05-20 Michael Matz <matz@suse.de>
5517
5518 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5519
2ee36ba6
MM
55202011-05-20 Michael Matz <matz@suse.de>
5521 Richard Guenther <rguenther@suse.de>
5522
5523 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5524 use lto_streamer_cache_append directly instead of returning a VEC.
5525 (preload_common_node): Remove.
5526 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5527 track seen nodes.
5528 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5529
90ff582f
RG
55302011-05-20 Richard Guenther <rguenther@suse.de>
5531
5532 PR tree-optimization/49079
5533 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5534 MEM_REFs correctly for the trailing array access detection.
5535 Special case constants the same way as decls for overall size
5536 constraining.
5537
3cda91d8
UB
55382011-05-20 Uros Bizjak <ubizjak@gmail.com>
5539
5540 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5541 argument expansion.
5542
6c66f733
JJ
55432011-05-20 Jakub Jelinek <jakub@redhat.com>
5544
5545 PR tree-optimization/49073
3cda91d8
UB
5546 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5547 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
5548 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5549
0ea80a16
RG
55502011-05-20 Richard Guenther <rguenther@suse.de>
5551
5552 PR middle-end/48849
5553 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5554 of pointer types the same way the middle-end does.
5555
fb291a1e
RG
55562011-05-20 Richard Guenther <rguenther@suse.de>
5557
3cda91d8
UB
5558 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5559 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 5560
37cb25ed
QN
55612011-05-19 Quentin Neill <quentin.neill@amd.com>
5562
5563 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5564 (fma4_fmaddsub): Likewise
5565
a30726a4
JH
55662011-05-19 Jan Hubicka <jh@suse.cz>
5567
5568 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5569 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5570 (type_pair_cache): New static var.
5571 (lookup_type_pair): Use fixed sized custom hash; make inline.
5572 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5573 calls of lookup_type_pair.
5574 (print_gimple_types_stats): Remove cache stats.
5575 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5576 and gtc_ob.
5577
0955cf61
UB
55782011-05-19 Uros Bizjak <ubizjak@gmail.com>
5579
5580 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5581 when TARGET_RDRND is active.
5582 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5583 Generate dummy SImode target register when target is NULL.
5584
12d844c8
JM
55852011-05-19 Joseph Myers <joseph@codesourcery.com>
5586
5587 * config/arm/arm-fpus.def: New.
5588 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5589 arm-fpus.def.
5590 * config/arm/arm-tables.opt: Regenerate.
5591 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5592 (arm_option_override): Don't decode FPU name to string here.
5593 * config/arm/arm.opt (mfpu=): Use Enum.
5594 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5595 Update dependencies.
5596
9e350e99
JM
55972011-05-19 Joseph Myers <joseph@codesourcery.com>
5598
5599 * collect2.c: Include diagnostic.h.
5600 (fatal_perror, fatal, error, fancy_abort): Remove.
5601 (main): Set progname. Call xmalloc_set_program_name and
5602 diagnostic_initialize.
5603 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5604 scan_libraries, resolve_lib_name): Call fatal_error instead of
5605 fatal and fatal_perror.
5606 * collect2.h (error, fatal, fatal_perror): Don't declare.
5607 * tlink.c: Include diagnostic-core.h.
5608 (recompile_files): Call fatal_error instead of fatal_perror.
5609 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5610 pretty-print.o and input.o.
5611 (collect2.o, tlink.o): Update dependencies.
5612
86ff4081
RO
56132011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5614
5615 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5616
2ca48caa
RO
56172011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5618
5619 PR target/40483
5620 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5621 COMDAT group syntax, both SPARC and x86 variants.
5622 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5623 * configure: Regenerate.
5624 * config/sol2.h (TARGET_SOLARIS): Define.
5625 (PUSHSECTION_FORMAT): Remove.
5626 (SECTION_NAME_FORMAT): Define.
5627 * config/sol2.c: Include hashtab.h.
5628 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5629 expansion, using SECTION_NAME_FORMAT.
5630 (solaris_comdat_htab): New variable.
5631 (struct comdat_entry): Define.
5632 (comdat_hash): New function.
5633 (comdat_eq): New function.
5634 (solaris_elf_asm_comdat_section): New function.
5635 (solaris_define_comdat_signature): New function.
5636 (solaris_code_end): New function.
5637 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5638 (solaris_code_end): Declare.
5639 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5640 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5641 solaris_code_end.
5642 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5643 Remove ATTRIBUTE_UNUSED.
5644 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5645 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 5646 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
5647 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5648 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5649 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5650 (PUSHSECTION_FORMAT): Remove.
5651 (SECTION_NAME_FORMAT): Redefine.
5652
da5fb469
KT
56532011-05-19 Kai Tietz <ktietz@redhat.com>
5654
5655 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5656 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5657 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5658
1651e703 56592011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
5660 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5661
5662 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5663
e497b9bd
RG
56642011-05-19 Richard Guenther <rguenther@suse.de>
5665
5666 PR middle-end/48985
5667 * tree-object-size.c (addr_object_size): If the pointed-to
5668 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5669
31b3ca64
RG
56702011-05-19 Richard Guenther <rguenther@suse.de>
5671
5672 * gimple.c (gimple_types_compatible_p_1): Compare names of
5673 the types themselves.
5674 (iterative_hash_gimple_type): And hash them that way.
5675 (gimple_register_type_1): If we register a main variant properly
5676 initialize the leader to ourselves.
5677
bb8d292d
TV
56782011-05-19 Tom de Vries <tom@codesourcery.com>
5679
5680 PR target/45098
5681 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5682 get_loop_invariant_expr_id.
5683 (get_loop_invariant_expr_id): Use get_expr_id.
5684 (parm_decl_cost): New function.
5685 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5686 Improve bound cost estimation. Use different inv_expr_id for elim and
5687 express cases.
5688
a53c5024
TV
56892011-05-19 Tom de Vries <tom@codesourcery.com>
5690
5691 PR target/45098
5692 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5693 cost_base.cost == 0.
5694
31f9eb59
L
56952011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5696
5697 PR target/49002
66bd20e7
EB
5698 * config/i386/sse.md
5699 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5700 load cast.
31f9eb59 5701
681056ae
JJ
57022011-05-18 Jakub Jelinek <jakub@redhat.com>
5703
5704 PR tree-optimization/49039
5705 * tree-vrp.c (extract_range_from_binary_expr): For
5706 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5707 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5708
b5ee6752
TV
57092011-05-18 Tom de Vries <tom@codesourcery.com>
5710
5711 PR target/45098
5712 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5713
0bda47a3
UB
57142011-05-18 Uros Bizjak <ubizjak@gmail.com>
5715
5716 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5717 (*tls_global_dynamic_64): Ditto.
5718 (*tls_local_dynamic_base_32_gnu): Ditto.
5719 (*tls_local_dynamic_base_64): Ditto.
5720 (tls_initial_exec_64_sun): Ditto.
5721
033b0805
SH
57222011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5723
5724 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5725 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5726 bf592-none.
5727 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5728 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5729 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5730 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 5731 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
5732 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5733 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5734
ba163417
JM
57352011-05-18 Joseph Myers <joseph@codesourcery.com>
5736
5737 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 5738 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
5739 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5740 target_thread_pointer, arm_structure_size_boundary, struct
5741 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5742 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
5743 (arm_option_override) Don't process most enumerated option values here.
5744 Don't process target_fpe_name here. Work with integer not string for
5745 structure size boundary; use separate diagnostics for each case.
ba163417
JM
5746 * config/arm/arm.h (enum float_abi_type, enum
5747 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5748 to arm-opts.h.
5749 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5750 arm_structure_size_boundary): Remove.
5751 * config/arm/arm.opt (mabi=): Use Enum and Init.
5752 (arm_abi_type): New Enum and EnumValue entries.
5753 (mfloat-abi=): Use Enum and Init.
5754 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 5755 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
5756 (mfp16-format=): Use Enum and Init.
5757 (arm_fp16_format_type): New Enum and EnumValue entries.
5758 (mstructure-size-boundary=): Use UInteger and Init.
5759 (mtp=): Use Enum and Init.
5760 (arm_tp_type): New Enum and EnumValue entries.
5761
179184e3
RG
57622011-05-18 Richard Guenther <rguenther@suse.de>
5763
5764 PR tree-optimization/49018
5765 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5766 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5767 gimple_has_side_effects.
5768
93b2a207
RG
57692011-05-18 Richard Guenther <rguenther@suse.de>
5770
5771 * gimple.c (gimple_register_type_1): New function, split out from ...
5772 (gimple_register_type): ... here. Avoid infinite recursion.
5773
b010117a
IR
57742011-05-18 Ira Rosen <ira.rosen@linaro.org>
5775
5776 PR tree-optimization/41881
5777 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5778 reduction_chains along with a macro for its access.
5779 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5780 (destroy_loop_vec_info): Free reduction chains.
5781 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5782 (vect_is_slp_reduction): New function.
5783 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5784 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5785 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5786 definition types for reduction chains.
5787 (vect_supported_load_permutation_p): Don't allow permutations for
5788 reduction chains.
5789 (vect_analyze_slp_instance): Support reduction chains.
5790 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5791 (vect_get_constant_vectors): Handle reduction chains.
5792 (vect_schedule_slp_instance): Mark the first statement of the
5793 reduction chain as reduction.
5794
e14c1050
IR
57952011-05-18 Ira Rosen <ira.rosen@linaro.org>
5796
5797 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5798 names for group elements access.
5799 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5800 reduction chains as well. Remove data reference and interleaving
5801 related words from the fields names.
5802 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5803 elements access.
5804 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5805 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5806 vect_update_interleaving_chain, vect_same_range_drs,
5807 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5808 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5809 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5810 vect_analyze_group_access, vect_analyze_data_ref_access,
5811 vect_create_data_ref_ptr, vect_transform_strided_load,
5812 vect_record_strided_load_vectors): Likewise.
5813 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5814 vect_model_load_cost, vectorizable_store, vectorizable_load,
5815 vect_remove_stores, new_stmt_vec_info): Likewise.
5816 * tree-vect-slp.c (vect_build_slp_tree,
5817 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5818
51c213f7
RG
58192011-05-18 Richard Guenther <rguenther@suse.de>
5820
5821 PR middle-end/48989
5822 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5823 operand verification.
5824 (verify_gimple_assign_binary): Likewise.
5825 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5826 to non-1-precision BOOLEAN_TYPEs.
5827
8f5e5434
TV
58282011-05-18 Tom de Vries <tom@codesourcery.com>
5829
5830 PR target/45098
5831 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5832
116bc3a4
JJ
58332011-05-18 Jakub Jelinek <jakub@redhat.com>
5834
5835 PR tree-optimization/49000
5836 * tree-ssa.c (execute_update_addresses_taken): Call
5837 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5838 be rewritten and decl has been marked for renaming, reset
5839 the debug stmt.
5840
26a8964c
JM
58412011-05-17 Joseph Myers <joseph@codesourcery.com>
5842
5843 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5844 enum_opts_set when testing if attributes have set -mfpmath=.
5845
82bd45d7
RS
58462011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5847
5848 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5849
267ffce3
UB
58502011-05-17 Uros Bizjak <ubizjak@gmail.com>
5851
5852 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5853 info->entry with 0
5854 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5855 id.transform_lang_insert_block with NULL.
5856
58572011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
5858
5859 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5860 (output_fp_compare): Change args 3 and 4 to bool.
5861 (ix86_expand_call): Change arg 6 to bool.
5862 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5863 (ix86_attr_length_vex_default): Change arg 3 to bool.
5864 * config/i386/i386.md: Update all uses.
5865 * config/i386/i386.c: Ditto.
5866 (ix86_flags_dependent): Change return type to bool.
5867
5beaf664
RG
58682011-05-17 Richard Guenther <rguenther@suse.de>
5869
5870 * gimple.c (type_hash_pair_compare): Fix comparison.
5871
008bad7a
RG
58722011-05-17 Richard Guenther <rguenther@suse.de>
5873
5874 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5875 case some more, fix final hash value of the non-singleton case.
5876
36461340
RG
58772011-05-17 Richard Guenther <rguenther@suse.de>
5878
5879 PR bootstrap/49013
5880 Revert
5881 2011-05-16 Richard Guenther <rguenther@suse.de>
5882
5883 * gimple.c (gimple_types_compatible_p_1): Use names of the
5884 type itself, not its main variant.
5885 (iterative_hash_gimple_type): Likewise.
5886
6b6a59f3
RG
58872011-05-17 Richard Guenther <rguenther@suse.de>
5888
5889 * gimple.c (gimple_register_canonical_type): Use the main-variant
5890 leader for computing the canonical type.
5891
4ffc4134
NC
58922011-05-17 Nick Clifton <nickc@redhat.com>
5893
a1d8754e
NC
5894 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5895 moves.
5896
4ffc4134
NC
5897 * config/rx/rx.md: Add peephole to remove redundant extensions
5898 after loads.
39960f7a
NC
5899 (bitset_in_memory): Use rx_restricted_mem_operand.
5900 (bitinvert_in_memory): Likewise.
5901 (bitclr_in_memory): Likewise.
4ffc4134 5902
b3db92ac
KI
59032011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5904 Nick Clifton <nickc@redhat.com>
5905
5906 * config/rx/rx.md: Add peepholes to match a register move followed
5907 by a comparison of the moved register. Replace these with an
5908 addition of zero that does both actions in one instruction.
5909
8637e32a
JJ
59102011-05-17 Jakub Jelinek <jakub@redhat.com>
5911
5912 PR target/48986
5913 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5914 predicate to allow CONST_INT.
5915 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5916
8023568e
JM
59172011-05-16 Joseph Myers <joseph@codesourcery.com>
5918
5919 * opts-common.c (opt_enum_arg_to_value): New.
5920 * opts.h (opt_enum_arg_to_value): Declare.
5921 * config/i386/i386.opt (fpmath): Remove.
5922 (mfpmath=): Use Enum, Init and Save.
5923 (fpmath_unit): New Enum and EnumValue entries.
5924 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5925 name for function fpmath state.
5926 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5927 * config/i386/i386.c: Include diagnostic.h.
5928 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 5929 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 5930 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 5931 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
5932 (x86_function_specific_save, ix86_function_specific_restore):
5933 Don't handle fpmath state specially.
5934 (ix86_function_specific_print): Pass fpmath state to
5935 ix86_target_string instead of printing in this function.
5936 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5937 Handle enum attributes.
5938 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5939 (ix86_valid_target_attribute_tree): Update option_strings
5940 handling. Handle fpmath as enum option.
5941 (ix86_can_inline_p): Update field names for function fpmath state.
5942 (ix86_expand_builtin): Update call to ix86_target_string.
5943 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5944 (ix86_fpmath): Remove.
5945 * config/i386/t-i386 (i386.o): Update dependencies.
5946
9e8d926e
JM
59472011-05-16 Joseph Myers <joseph@codesourcery.com>
5948
5949 PR preprocessor/48677
5950 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5951 from decoded_options[0], not from itself.
5952
f6449011
UB
59532011-05-16 Uros Bizjak <ubizjak@gmail.com>
5954
5955 * config/i386/constraints.md (z): New constraint.
5956 * config/i386/i386.c (c): New mode attribute.
5957 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5958 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5959 constraint for operand 0.
5960 (*call_vzeroupper): Ditto.
5961 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5962 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5963 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5964 Use "lzm" constraint for operand 0.
5965 (*call_pop_vzeroupper): Ditto.
5966 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5967 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5968 constraint for operand 0.
5969 (*sibcall_vzeroupper): Ditto.
5970 (*sibcall_rex64_ms_sysv): Ditto.
5971 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5972 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5973 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5974 (*sibcall_pop_vzeroupper): Ditto.
5975 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5976 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5977 mode iterator. Use "<c>zm" constraint for operand 1.
5978 (*call_value_vzeroupper): Ditto.
5979 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 5980 for operand 1.
f6449011
UB
5981 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5982 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5983 *call_value_pop_1. Use "lzm" constraint for operand 1.
5984 (*call_value_pop_vzeroupper): Ditto.
5985 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5986 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5987 mode iterator. Use "Uz" constraint for operand 1.
5988 (*sibcall_value_vzeroupper): Ditto.
5989 (*sibcall_value_rex64_ms_sysv): Ditto.
5990 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5991 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5992 constraint for operand 1.
5993 (*sibcall_value_pop_vzeroupper): Ditto.
5994 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5995 and "z" constraint for operand 2.
5996 (*tls_global_dynamic_32_gnu): Ditto.
5997 (*tls_local_dynamic_base_32_gnu): Ditto.
5998 (*tls_local_dynamic_base_64): Ditto.
5999 (*tls_local_dynamic_32_once): Ditto.
6000 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6001 Update all callers.
6002 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6003
c11b6902
RG
60042011-05-16 Richard Guenther <rguenther@suse.de>
6005
6006 * gimple.c (gimple_types_compatible_p_1): Use names of the
6007 type itself, not its main variant.
6008 (iterative_hash_gimple_type): Likewise.
6009
1e83b5f1
RG
60102011-05-16 Richard Guenther <rguenther@suse.de>
6011
f6449011
UB
6012 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6013 always visit pointer target and function result and argument types.
1e83b5f1 6014
62e36382
JM
60152011-05-16 Jason Merrill <jason@redhat.com>
6016
6017 PR c++/48999
6018 * tree-inline.c (copy_statement_list): Put back recursion.
6019
687027a4
GJL
60202011-05-16 Georg-Johann Lay <avr@gjlay.de>
6021
6022 PR target/27663
6023 PR target/41076
6024 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6025 * config/avr/avr.md ("*ior<mode>qi.byte0",
6026 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6027
f24a5190
GJL
60282011-05-16 Georg-Johann Lay <avr@gjlay.de>
6029
6030 PR target/45099
6031 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6032 register is needed for a function argument.
6033
3066f593
RG
60342011-05-16 Richard Guenther <rguenther@suse.de>
6035
6036 * gimple.c (struct type_hash_pair): New type.
6037 (type_hash_pair_compare): New function.
f6449011 6038 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 6039
b2ab2cf4
RE
60402011-05-16 Revital Eres <revital.eres@linaro.org>
6041
f6449011 6042 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 6043
dfb737fc
UB
60442011-05-15 Uros Bizjak <ubizjak@gmail.com>
6045
6046 * config/i386/i386.md (floating point move splitters): Fix
6047 usage of standard_80387_constant_p.
f6449011 6048 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 6049
8caa1de0
UB
60502011-05-15 Uros Bizjak <ubizjak@gmail.com>
6051
6052 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6053
8a519095
EB
60542011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6055
6056 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6057 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6058 (tree_ssa_lim_finalize): Likewise.
6059
479fecd3
UB
60602011-05-14 Uros Bizjak <ubizjak@gmail.com>
6061
6062 * config/i386/constraint.md (Yd, Yx): New register constraints.
6063 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6064 Yd conditional register constraint.
6065 (*movtf_internal): Use standard_sse_constant_opcode.
6066 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6067 Yx conditional register constraint.
6068 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6069 Yd conditional register constraint. Use standard_sse_constant_p to
6070 check for valid SSE constants and call standard_sse_constant_opcode to
6071 output SSE insn.
6072 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6073 constants and call standard_sse_constant_opcode to output SSE insn.
6074 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6075 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6076 optimize_size is set.
6077 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6078
2d8c9ad5
TB
60792011-05-14 Tobias Burnus <burnus@net-b.de>
6080
6081 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6082
411a20d6
MJ
60832011-05-13 Martin Jambor <mjambor@suse.cz>
6084
6085 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6086 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6087 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6088 (evaluate_conditions_for_ipcp_clone): Removed.
6089 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6090 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6091 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6092
dc764d10
EB
60932011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6094
6095 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6096 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6097 lieu of MAY_HAVE_DEBUG_STMTS.
6098 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6099 debug statements if !MAY_HAVE_DEBUG_STMTS.
6100
9f47a24e
MT
61012011-05-13 Martin Thuresson <martint@google.com>
6102
6103 PR gcov-profile/47793
6104 * libgcov.c (gcov_exit): Support relative profile paths.
6105 * doc/invoke.texi (-fprofile-dir): Update for above change.
6106
b8a71aed
RG
61072011-05-13 Richard Guenther <rguenther@suse.de>
6108
6109 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6110 type-pair caching, do not compare hashes.
6111
eb9f9259
NF
61122011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6113
6114 PR middle-end/48965
6115 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6116 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6117
3c6cbf7a
KT
61182011-05-13 Kai Tietz <ktietz@redhat.com>
6119
6120 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6121 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6122 compatible type for TRUTH_NOT_EXPR.
6123
2e7f5dc0
L
61242011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6125
dc764d10 6126 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
6127 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6128 can_create_pseudo_p ().
6129
e834e95c
RG
61302011-05-13 Richard Guenther <rguenther@suse.de>
6131
6132 PR lto/48978
6133 * gimple.c (iterative_hash_gimple_type): Revert change in
6134 pointer target and function result and argument hashing.
6135
34203483
UB
61362011-05-13 Uros Bizjak <ubizjak@gmail.com>
6137
6138 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6139 (*movxf_internal_nointeger): Ditto.
6140 (*movdf_internal_rex64): Ditto.
6141 (*movdf_internal): Ditto.
6142 (*movdf_internal_nointeger): Ditto.
6143 (*movsf_internal): Ditto.
6144 (sincos splitters): Use can_create_pseudo ().
6145
7eb68c06
JM
61462011-05-13 Joseph Myers <joseph@codesourcery.com>
6147
6148 * config/i386/i386-opts.h: New.
6149 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6150 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6151 ix86_section_threshold): Remove.
6152 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6153 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6154 OPT_mbranch_cost_.
6155 (ix86_option_override_internal): Don't decode strings for options
6156 other than -march=, -mtune= and -mfpmath=. Don't allow for
6157 __attribute__ uses in remaining diagnostics for options with
34203483 6158 string arguments. Don't check for integer arguments being negative.
7eb68c06 6159 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 6160 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
6161 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6162 ix86_branch_cost, ix86_section_threshold): Remove.
6163 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6164 HeaderInclude.
6165 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6166 but not Var.
6167 (masm=): Use Enum and Init.
6168 (asm_dialect): New Enum and EnumValue entries.
6169 (mbranch-cost=): Use UInteger.
6170 (mlarge-data-threshold=): Use UInteger and Init.
6171 (mcmodel=): Use Enum and Init.
6172 (cmodel): New Enum and EnumValue entries.
6173 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6174 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6175 mregparm=): Use UInteger.
6176 (mstringop-strategy=): Use Enum and Init.
6177 (stringop_alg): New Enum and EnumValue entries.
6178 (mtls-dialect=): Use Enum and Init.
6179 (tls_dialect): New Enum and EnumValue entries.
6180 (mabi=): Use Enum and Init.
6181 (calling_abi): New Enum and EnumValue entries.
6182 (mveclibabi=): Use Enum and Init.
6183 (ix86_veclibabi): New Enum and EnumValue entries.
6184
f67e203c
NC
61852011-05-13 Nick Clifton <nickc@redhat.com>
6186
34203483
UB
6187 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6188 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 6189
221df0b6
KT
61902011-05-13 Kai Tietz <ktietz@redhat.com>
6191
6192 PR middle-end/48984
6193 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6194 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6195 (gimple_boolify): Check for cast for boolean_type_node instead for
6196 BOOLEAN_TYPE.
6197
208cb8cb
RG
61982011-05-13 Richard Guenther <rguenther@suse.de>
6199
6200 PR tree-optimization/48172
6201 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6202 multiplying by number of iterations for equal step.
6203 (vect_create_cond_for_alias_checks): Likewise.
6204
b88ecf55
AS
62052011-05-13 Andreas Schwab <schwab@redhat.com>
6206
6207 * configure.ac: Use AS_HELP_STRING throughout.
6208 * configure: Regenerate.
6209
569b527e
L
62102011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6211
34203483 6212 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
6213 (ix86_emit_restore_regs_using_mov): Likewise.
6214 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6215
8b9a1428
AS
62162011-05-12 Anatoly Sokolov <aesok@post.ru>
6217
6218 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6219 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6220 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6221 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6222 RTX_OK_FOR_OLO10_P): ...here.
6223 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6224 SYMBOLIC_CONST.
6225
1d15f620
KT
62262011-05-12 Kai Tietz <ktietz@redhat.com>
6227
6228 * gimplify.c (gimple_boolify): Re-boolify expression
6229 arguments even if expression type is of kind BOOLEAN_TYPE.
6230 (gimplify_boolean_expr): Removed.
6231 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6232 and XOR. Additional take care that we keep expression's type.
6233 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6234 of TRUTH_AND|OR|XOR_EXPR.
6235
c2b5fc8d
JJ
62362011-05-12 Jakub Jelinek <jakub@redhat.com>
6237
6238 PR tree-optimization/48975
6239 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6240 on all bbs here and free and clear ifc_bbs at the end.
6241
61332f77
RG
62422011-05-12 Richard Guenther <rguenther@suse.de>
6243
6244 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6245 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6246 until after simple checks.
6247 (gimple_types_compatible_p): Likewise.
6248 (iterative_hash_gimple_type): Always hash pointer targets
6249 and function return and argument types.
6250 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6251 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6252 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6253 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6254 completely in the simple compare section.
6255 (gimple_register_canonical_type): Query the cache again after
6256 registering.
6257
e2a3a5f1
RG
62582011-05-12 Richard Guenther <rguenther@suse.de>
6259
6260 PR tree-optimization/48172
6261 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6262 the number of iterations from the segment size calculation.
6263 (vect_create_cond_for_alias_checks): Adjust.
6264
2c703f3a
JJ
62652011-05-12 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR debug/48967
6268 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6269 if validate_subreg fails.
6270
62712011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
6272
6273 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6274 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6275 early.
6276
87e91fca
DD
62772011-05-12 DJ Delorie <dj@redhat.com>
6278
d53903d6 6279 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
6280 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6281 created builtin into rx_builtins array.
6282 (rx_builtin_decl): New function.
34203483 6283 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 6284
5f2f13fd
DD
62852011-05-12 DJ Delorie <dj@redhat.com>
6286 Nick Clifton <nickc@redhat.com>
6287
6288 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6289 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6290 (rx_is_legitimate_address): Add pre-decrement and post-increment
6291 addressing in HImode and QImode. Fix test for out of range
6292 REG+INT addressing.
87e91fca 6293 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 6294 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 6295 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 6296 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 6297
57421f45
JM
62982011-05-11 Jason Merrill <jason@redhat.com>
6299
6300 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6301
898c90c0
EB
63022011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6303
6304 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6305 reindent the subsequent block.
6306
79bec923
ST
63072011-05-11 Satoru Takabayashi <satorux@google.com>
6308 Paul Pluzhnikov <ppluzhnikov@google.com>
6309
34203483 6310 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
6311 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6312 * config.in: Add LINKER_HASH_STYLE.
6313 * configure.ac: Add --with-linker-hash-style.
6314 * configure: Regenerate.
79bec923 6315
d0340959
RG
63162011-05-11 Richard Guenther <rguenther@suse.de>
6317
6318 PR middle-end/48964
6319 * gimple.c (iterative_hash_canonical_type): Fix typo.
6320
cb032fee
UB
63212011-05-11 Uros Bizjak <ubizjak@gmail.com>
6322
6323 * config/i386/i386.c (legitimize_tls_address)
479fecd3 6324 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
6325 expanders directly for TARGET_GNU2_TLS. Determine pic and
6326 __tls_get_addr symbol reference here. Update call to
6327 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 6328 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
6329 expanders directly for TARGET_GNU2_TLS. Determine
6330 __tls_get_addr symbol reference here. Update call to
6331 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6332 unique UNSPEC REG_EQUIV to libcall block.
6333 (ix86_tls_get_addr): Declare static.
6334 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6335 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6336 Do not determine pic and __tls_get_addr symbol reference here. Do not
6337 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6338 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6339 (tls_global_dynamic_64): Add operand 2. Do not determine
6340 __tls_get_addr symbol reference here. Do not call
6341 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6342 (tls_local_dynamic_base64): Ditto for operand 1.
6343
6d3cc8f0
EB
63442011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6345
6346 * function.c (expand_function_start): Initialize stack_check_probe_note
6347 only if the generic stack checking mechanism is used.
6348
51e020fc
RG
63492011-05-11 Richard Guenther <rguenther@suse.de>
6350
6351 PR tree-optimization/15256
6352 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6353 (A & B) | C, combine (A op CST1) op CST2.
6354 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6355 visit assigns that have uses.
6356
51545682
NF
63572011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6358
cb032fee 6359 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
6360 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6361 (unpack_ts_type_common_value_fields): ...this. Update comment.
6362 (unpack_value_fields): Adjust for renaming.
6363 (lto_input_ts_type_tree_pointers): Split into...
6364 (lto_input_ts_type_common_tree_pointer): ...this and...
6365 (lto_input_ts_type_non_common_tree_pointers): ...this.
6366 (lto_input_tree_pointers): Adjust for above split.
6367 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6368 (pack_ts_type_common_value_fields): ...this. Update comment.
6369 (lto_output_ts_type_tree_pointers): Split into...
6370 (lto_output_ts_type_common_tree_pointers): ...this and...
6371 (lto_output_ts_type_non_common_tree_pointers): ...this.
6372 (lto_output_tree_pointers): Adjust for above split.
6373 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6374 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6375 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6376 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6377 Define.
6378 (struct tree_type): Split into...
6379 (struct tree_type_common: ...this and...
6380 (struct tree_type_with_lang_specific): ...this and...
6381 (struct tree_type_non_common): ...this. Adjust accessor macros
6382 accordingly.
6383 (TYPE_VALUES_RAW): Define.
6384 (union tree_node): Update for above changes.
6385 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6386 TS_TYPE_NON_COMMON.
6387 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6388 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6389 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6390 * treestructu.def (TS_TYPE): Remove.
6391 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6392 Define.
6393
b03c3082
JJ
63942011-05-11 Jakub Jelinek <jakub@redhat.com>
6395
6396 PR debug/48159
6397 * tree-ssa.c (reset_debug_uses): New function.
6398 * tree-flow.h (reset_debug_uses): New prototype.
6399 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6400 * tree-loop-distribution.c (generate_loops_for_partition): Call
6401 reset_debug_uses on the stmts that will be removed. Keep around
6402 all debug stmts, don't count them as bits in partition bitmap.
6403 (generate_builtin): Don't count debug stmts or labels as bits in
6404 partition bitmap.
6405
b5e04de5
RG
64062011-05-11 Richard Guenther <rguenther@suse.de>
6407
6408 * gimple.c (gimple_type_hash_1): Merge with ...
6409 (gimple_type_hash): ... this.
6410 (gtc_visit): Remove mode parameter and simplify accordingly.
6411 (gimple_types_compatible_p_1): Likewise.
6412 (gimple_types_compatible_p): Likewise.
6413 (iterative_hash_gimple_type): Likewise.
6414 (visit): Likewise.
6415 (gimple_type_eq): Adjust.
6416
fc6970e4
RE
64172011-05-11 Revital Eres <revital.eres@linaro.org>
6418
6419 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6420 enters the branch create an anti edge in the opposite direction
6421 to prevent the creation of reg-moves.
6422 * modulo-sched.c: Adjust comment to reflect the fact we are
6423 scheduling closing branch.
6424 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6425 (stage_count): New field in struct partial_schedule.
6426 (calculate_stage_count): New function.
6427 (normalize_sched_times): Rename to reset_sched_times and handle
6428 incrementing the sched time of the nodes by a constant value
6429 passed as parameter.
6430 (duplicate_insns_of_cycles): Skip closing branch.
6431 (sms_schedule_by_order): Schedule closing branch.
6432 (ps_insn_find_column): Handle closing branch.
6433 (sms_schedule): Call reset_sched_times and adjust the code to
6434 support scheduling of the closing branch.
6435 (ps_insert_empty_row): Update calls to normalize_sched_times
6436 and rotate_partial_schedule functions.
6437
41a58a92
RG
64382011-05-11 Richard Guenther <rguenther@suse.de>
6439
6440 PR middle-end/48953
6441 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6442
e9f8dcf9
JM
64432011-05-11 Joseph Myers <joseph@codesourcery.com>
6444
cb032fee
UB
6445 * opts.c (finish_options): Move warning settings from process_options.
6446 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 6447
10c224a9
RG
64482011-05-11 Richard Guenther <rguenther@suse.de>
6449
6450 PR tree-optimization/18041
6451 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6452 (simplify_bitwise_binary): ... this. Handle operand conversions
6453 by applying them to the result instead.
6454 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6455
825b27de
RG
64562011-05-11 Richard Guenther <rguenther@suse.de>
6457
6458 * gimple.c (gimple_canonical_types_compatible_p): Split out
6459 from gimple_types_compatible_p and friends. Do not recurse
6460 to pointed-to types.
6461 (gimple_canonical_type_eq): Use it.
6462 (iterative_hash_canonical_type): Split out from
6463 iterative_hash_gimple_type and friends. Do not recurse
6464 to pointed-to types.
6465 (gimple_canonical_type_hash): Use it, allocate the hash here.
6466
ca756625
RE
64672011-05-11 Revital Eres <revital.eres@linaro.org>
6468
6469 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6470 recognizing doloop.
6471
b8abece3
RE
64722011-05-11 Revital Eres <revital.eres@linaro.org>
6473
6474 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6475 instead of PREV_INSN.
6476
ce7b3761
RE
64772011-05-11 Revital Eres <revital.eres@linaro.org>
6478
6479 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6480 * loop-doloop.c (doloop_condition_get): Likewise.
6481 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6482 (doloop_end): New.
6483 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6484
a9dc9d37
NF
64852011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6486
6487 * tree.def (CASE_LABEL_EXPR): Add an operand.
6488 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6489
96703596
JM
64902011-05-10 Joseph Myers <joseph@codesourcery.com>
6491
6492 * c-decl.c (c_override_global_bindings_to_false): Remove.
6493 (global_bindings_p): Don't check
6494 c_override_global_bindings_to_false.
6495 * c-tree.h (c_override_global_bindings_to_false): Remove.
6496 * c-typeck.c (composite_type): Don't set
6497 c_override_global_bindings_to_false.
6498
dbcc9f08
MM
64992011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6500
6501 PR target/48857, 48495
6502 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6503 (VSX_MODE): Ditto.
6504 (VSX_MOVE_MODE): Ditto.
6505 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6506 VSX vector types. Add V2DImode.
6507 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6508 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6509 (MODES_TIEABLE_P): Ditto.
6510
6511 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6512 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6513 VSX_VECTOR_MODE.
6514 (init_cumulative_args): Ditto.
6515 (rs6000_function_arg_boundary): Ditto.
6516 (rs6000_function_arg_advance_1): Ditto.
6517 (rs6000_function_arg): Ditto.
6518 (rs6000_function_ok_for_sibcall): Ditto.
6519 (emit_frame_save): Ditto.
6520 (rs6000_function_value): Ditto.
6521 (rs6000_libcall_value): Ditto.
6522
4a68b4ca
JM
65232011-05-10 Joseph Myers <joseph@codesourcery.com>
6524
6525 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6526 i386/darwin-lib.h to $libgcc_tm_file.
6527 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6528
bcb521e9
JM
65292011-05-10 Joseph Myers <joseph@codesourcery.com>
6530
6531 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6532
f10d3ac9
JM
65332011-05-10 Joseph Myers <joseph@codesourcery.com>
6534
cb032fee 6535 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
6536 * config/rs6000/rs6000-tables.opt: New file (generated).
6537 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6538 rs6000/rs6000-tables.opt to extra_options.
6539 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6540 * config/rs6000/rs6000.c (rs6000_select): Remove.
6541 (processor_target_table): Move contents to rs6000-cpus.def.
6542 (darwin_rs6000_override_options): Check
6543 global_options_set.x_rs6000_cpu_index instead of
6544 rs6000_select[1].string.
6545 (rs6000_option_override_internal): Likewise.
6546 (rs6000_handle_option): Don't assert that global structures are in
6547 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6548 (rs6000_default_cpu): New variable.
6549 (rs6000_file_start): Set it instead of local default_cpu. Check
6550 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6551 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6552 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6553 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6554 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6555 rs6000_select): Remove.
6556 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6557 Remove.
6558 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6559 * config/rs6000/t-rs6000
6560 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6561 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6562 global_options_set.x_rs6000_cpu_index instead of
6563 rs6000_select[1].string.
6564 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6565 global_options_set.x_rs6000_cpu_index instead of
6566 rs6000_select[1].string.
6567
80cf2e08
JM
65682011-05-10 Joseph Myers <joseph@codesourcery.com>
6569
6570 * config.gcc (libgcc_tm_file): Define instead of including files
6571 from ../../libgcc/config/ in tm_file.
cb032fee 6572 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
6573 * configure: Regenerate.
6574 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6575 libgcc_tm.h, cs-libgcc_tm.h): New.
6576 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6577 (clean): Remove libgcc_tm.h.
6578 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6579 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6580 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6581
fd01a351
GJL
65822011-05-10 Georg-Johann Lay <avr@gjlay.de>
6583
6584 PR target/48896
6585 * config/avr/avr.c (avr_ret_register): Return unsigned int
6586 instead of int.
6587 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6588 it to avr_libcall_value.
6589 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6590 expand_expr.
6591 (avr_expand_binop_builtin): Ditto.
6592 (avr_expand_unop_builtin): Ditto.
6593
34cc3c86
DD
65942011-05-10 DJ Delorie <dj@redhat.com>
6595
6596 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6597 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6598 * config/rx/rx.c (rx_align_for_label): Add label and
6599 uses_threshold parameters. Do not align when the label is not
6600 used enough.
6601 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6602
be173289
RG
66032011-05-10 Richard Guenther <rguenther@suse.de>
6604
6605 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6606 a series of conversions and apply foldings similar to what
6607 fold-const does.
6608 (tree_ssa_forward_propagate_single_use_vars): Call it.
6609
e7f78021
JJ
66102011-05-10 Jakub Jelinek <jakub@redhat.com>
6611
6ae70ea2
JJ
6612 PR tree-optimization/48611
6613 PR tree-optimization/48794
6614 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6615 referenced from RESX or EH_DISPATCH arguments.
6616
e7f78021
JJ
6617 PR debug/48928
6618 * dfp.c (decimal_to_decnumber): Handle conversion from
6619 dconst{1,2,m1,half}.
6620
fca132b9
UB
66212011-05-09 Uros Bizjak <ubizjak@gmail.com>
6622
6623 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6624 for !flag_prefer_avx128.
6625 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6626
e4c03378
EB
66272011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6628
6629 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6630 (fold_ternary_loc): Use expr_location_or.
6631
805d6a75
L
66322011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6633
6634 PR debug/48853
6635 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6636 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6637 Pmode and mem_mode is not VOIDmode.
6638
e4c03378 66392011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 6640
e4c03378
EB
6641 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6642 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 6643
51e7f377
UB
66442011-05-09 Uros Bizjak <ubizjak@gmail.com>
6645
6646 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6647 (const_pow2_1_to_8_operand): Ditto.
6648 (const_pow2_1_to_128_operand): Ditto.
6649 (const_pow2_1_to_32768_operand): Ditto.
6650 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6651 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6652 in insn constraint to check integer value of operand 3.
6653 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6654
6655 (PINSR_MODE): New mode iterator.
6656 (sse2p4_1): New mode attribute.
6657 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6658 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6659 iterator. Use const_int_operand instead of
6660 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6661 exact_log2 in insn constraint to check integer value of operand 3.
6662
66632011-05-09 Uros Bizjak <ubizjak@gmail.com>
6664
6665 * config/i386/sse.md (blendbits): Remove mode attribute.
6666 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6667 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6668 Check integer value of operand 3 in insn constraint.
6669
0ca8de87
RG
66702011-05-09 Richard Guenther <rguenther@suse.de>
6671
6672 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6673 for diagnostics.
6674 (lto_symtab_merge): Likewise. Do not register types here.
6675 (lto_symtab_merge_decls_2): Likewise.
6676 (lto_symtab_merge_decls_1): Likewise.
6677 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6678 * gimple.c (enum gtc_mode): Declare.
6679 (gimple_types_compatible_p): Make static.
6680
a9e6994a
AK
66812011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6682
6683 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6684 temporary register to match Pmode.
6685
fb55d62e
UB
66862011-05-09 Uros Bizjak <ubizjak@gmail.com>
6687
6688 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6689 and *vec_concatv4si_1_avx.
6690
eb1485a6
UB
66912011-05-09 Uros Bizjak <ubizjak@gmail.com>
6692
6693 PR rtl-optimization/48927
6694 * ira-conflicts.c (commutative_constraint_p): Use
6695 recog_data.alternative_enabled_p to disable alternatives where
6696 "enabled" attribute is false.
6697 (get_dup_num): Ditto.
6698 * ira-lives.c (single_reg_class): Ditto.
6699 (ira_implicitly_set_insn_hard_regs): Ditto.
6700
c46d001a
EB
67012011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6702
6703 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6704 (dataflow_set_preserve_mem_locs): Likewise.
6705
67062011-05-09 Philipp Thomas <pth@suse.de>
6707
6d9e7c41
PT
6708 * config/mep/mep.c (mep_validate_vliw): Syntax description
6709 should not be translated.
6710
d371df6f
JM
67112011-05-09 Joseph Myers <joseph@codesourcery.com>
6712
6713 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6714 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 6715 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
6716 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6717 MIPS_ARCH_OPTION_NATIVE): Define.
6718 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6719 mips-cpus.def.
6720 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6721 mips_parse_cpu): Remove.
6722 (mips_cpu_info_from_opt, mips_default_arch): New.
6723 (mips_handle_option): Don't assert that global structures are in
6724 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6725 (mips_option_override): Use new variables and functions to set
eb1485a6 6726 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
6727 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6728 definition.
6729 * config/mips/mips.opt (march=): Use ToLower and Enum.
6730 (mips): Use ToLower, Enum and Var.
6731 (mtune=): Use ToLower and Enum.
6732 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6733
4fc07af9
JH
67342011-05-08 Jan Hubicka <jh@suse.cz>
6735
6736 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6737 Arrange type pairs to be UID ordered.
6738 (gimple_lookup_type_leader): Make inline.
6739
2cf320a8
NC
67402011-05-09 Nick Clifton <nickc@redhat.com>
6741
61d6def5
NC
6742 PR target/48899
6743 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6744 PROCESSOR_DEFAULT.
6745
2cf320a8
NC
6746 PR target/48897
6747 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6748 variable 's'.
6749
4f82319d
CLT
67502011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6751
6752 * combine.c (simplify_comparison): Abstract out parts into...
6753 (simplify_compare_const): ... new function.
6754 (try_combine): Generalize parallel arithmetic/compare combining
6755 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6756
74605a11
JH
67572011-05-08 Jan Hubicka <jh@suse.cz>
6758
6759 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
6760 (cgraph_create_virtual_clone): Call hooks once virtual clone
6761 is finished.
74605a11 6762 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
6763 * ipa-cp.c (ipcp_estimate_growth): Use
6764 estimate_ipcp_clone_size_and_time.
74605a11
JH
6765 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6766 * lto-cgraph.c (input_node): Update.
6767 * ipa-inline.c (recursive_inlining): Update.
6768 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6769 (evaluate_conditions_for_known_args): Break out from ...
6770 (evaluate_conditions_for_edge): ... here.
6771 (evaluate_conditions_for_ipcp_clone): New function.
6772 (inline_node_duplication_hook): Update clone summary based
6773 on parameter map.
6774 (estimate_callee_size_and_time): Rename to ...
6775 (estimate_node_size_and_time): take NODE instead of EDGE;
6776 take POSSIBLE_TRUTHS as argument.
6777 (estimate_callee_size_and_time): Update.
6778 (estimate_ipcp_clone_size_and_time): New function.
6779 (do_estimate_edge_time): Update.
6780
5c049507
RG
67812011-05-08 Richard Guenther <rguenther@suse.de>
6782
6783 PR middle-end/48908
6784 PR middle-end/48905
6785 * expmed.c (expand_shift_1): Compute adjusted constant shift
6786 amount manually.
6787
f64c36ba
EB
67882011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6789
6790 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6791
c461a957
EB
67922011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6793
6794 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6795
7c74e556
JW
67962011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6797
6798 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6799
b4c0a884
JH
68002011-05-07 Jan Hubicka <jh@suse.cz>
6801
a9bcb3f0
EB
6802 * ipa-inline-transform.c (inline_call): Account when program size
6803 decreases.
b4c0a884 6804 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
6805 (edge_badness): Reorganize to be power 2 based; fix thinko when
6806 computing badness for negative growth; update comments to match
6807 reality; better dumps.
b4c0a884 6808
c99c0026
EB
68092011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6810
6811 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6812 type to bool and adjust comment.
6813 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6814 (fold_mathfn_compare): Remove calls to global_bindings_p.
6815 (fold_inf_compare): Likewise.
6816 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6817 * c-tree.h (global_bindings_p): Adjust prototype.
6818 * c-decl.c (global_bindings_p): Return bool and simplify.
6819
1400c8e5
ZD
68202011-05-07 Zdenek Dvorak <ook@ucw.cz>
6821
6822 PR tree-optimization/48837
6823 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6824 when accumulator transformation is performed.
6825
5d0878e7
JH
68262011-05-06 Jan Hubicka <jh@suse.cz>
6827
a9bcb3f0
EB
6828 * i386.h (ix86_tune_indices): Add
6829 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 6830 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
6831 * i386.c (initial_ix86_tune_features): Add
6832 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
6833 (software_prefetching_beneficial_p): Remove predicate.
6834 (ix86_option_override_internal): Use new macro.
6835
58696ce5
JH
68362011-05-06 Jan Hubicka <jh@suse.cz>
6837
6838 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6839
c47d0034
JH
68402011-05-06 Jan Hubicka <jh@suse.cz>
6841
6842 * cgraph.c (cgraph_add_thunk): Create real function node instead
6843 of alias node; finalize it and mark needed/reachale; arrange visibility
6844 to be right and add it into the corresponding same comdat group list.
6845 (dump_cgraph_node): Dump thunks.
6846 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
6847 cgraph_function_with_gimple_body_p,
6848 cgraph_first_function_with_gimple_body,
c47d0034
JH
6849 cgraph_next_function_with_gimple_body): New functions.
6850 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6851 New macros.
6852 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6853 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6854 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6855 devirtualization when optimizing.
6856 (verify_cgraph_node): Verify thunks.
6857 (cgraph_analyze_function): Analyze thunks.
6858 (cgraph_mark_functions_to_output): Output thunks only in combination
6859 with function they are assigned to.
6860 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6861 alias into normal node.
6862 (assemble_thunks): New functoin.
6863 (cgraph_expand_function): Use it.
6864 * lto-cgraph.c (lto_output_node): Stream thunks.
6865 (input_overwrite_node): Stream in thunks.
6866 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6867 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6868 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6869 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6870 (inline_analyze_function): Do not care about thunk jump functions.
6871 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
6872 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6873 cgraph_function_with_gimple_body_p.
6874 * passes.c (do_per_function_toporder): Use
6875 cgraph_function_with_gimple_body_p.
c47d0034
JH
6876 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6877 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6878 (function_called_by_processed_nodes_p): Likewise.
6879
d8f426ec
JM
68802011-05-06 Joseph Myers <joseph@codesourcery.com>
6881
6882 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6883 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6884 entries.
6885 (mabi=): Replace with separate entries for mabi=altivec,
6886 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6887 mabi=ieeelongdouble and mabi=ibmlongdouble.
6888 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6889 check for -mabi=spe without SPE ABI support here.
6890 (rs6000_handle_option): Replace OPT_mabi_ handling with
6891 OPT_mabi_altivec and OPT_mabi_spe handling.
6892
80bde45b
CC
68932011-05-06 Cary Coutant <ccoutant@google.com>
6894
6895 * dwarf2out.c (contains_subprogram_definition): New function.
6896 (should_move_die_to_comdat): Call it.
6897
a91926b9
JL
68982011-05-06 Jeff Law <law@redhat.com>
6899
6900 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6901 remove_ctrl_stmt_and_useless_edges.
6902 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6903 (fixup_template_block, thread_single_edge): Likewise.
6904 (mark_threaded_blocks): Use THREAD_TARGET.
6905
1fc1b66d
AM
69062011-05-06 Alan Modra <amodra@gmail.com>
6907
6908 PR target/48900
6909 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6910 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6911
e194de64
UB
69122011-05-06 Uros Bizjak <ubizjak@gmail.com>
6913
6914 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6915 constraint modifier to "r".
6916
d740dc9e
JM
69172011-05-06 Joseph Myers <joseph@codesourcery.com>
6918
6919 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6920 fall through for OPT_mcmodel_.
6921
cab78b15
AK
69222011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6923
6924 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6925 instruction sizes.
e194de64 6926 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 6927
ee6824ae
RR
69282011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6929
eb1485a6
UB
6930 PR target/47930
6931 * config/arm/arm.opt (marm): Document it.
6932 (mthumb): Reject negative variant.
ee6824ae 6933
9ef58464
UB
69342011-05-06 Uros Bizjak <ubizjak@gmail.com>
6935
6936 PR target/48898
6937 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6938 Fix typo in "ccvt" variable name.
6939
155b6176
TG
69402011-05-06 Tristan Gingold <gingold@adacore.com>
6941
6942 PR target/48895
6943 * config/vms/vms-ar.c (main): Remove cwd variable.
6944
3becc47b
JJ
69452011-05-06 Jakub Jelinek <jakub@redhat.com>
6946
6947 PR debug/48902
6948 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6949
3d528853
NF
69502011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6951
6952 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6953 * gimplify.c (gimplify_switch_expr): Likewise.
6954 * omp-low.c (expand_omp_sections): Likewise.
6955 * tree-eh.c (lower_try_finally_switch): Likewise.
6956 (lower_eh_dispatch): Likewise.
6957 * tree.h (build_case_label): Declare.
6958 * tree.c (build_case_label): Define.
6959
deb5046b
JM
69602011-05-05 Jason Merrill <jason@redhat.com>
6961
6962 PR c++/40975
6963 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6964 (copy_statement_list): Don't recurse.
6965 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6966 STATEMENT_LIST.
6967
013c0411
JM
69682011-05-05 Joseph Myers <joseph@codesourcery.com>
6969
6970 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6971 through from -mfpu= handling.
6972 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6973
a0905f8b
BS
69742011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6975
6976 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6977 POST_MODIFY.
6978
fc4538e4
SE
69792011-05-05 Steve Ellcey <sje@cup.hp.com>
6980
6981 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6982 for 11.31.
6983 (hppa[12]*-*-hpux11*): Ditto.
6984 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6985 * config/ia64/hpux-unix2003.h: New.
6986 * config/pa/pa-hpux1131.opt: New.
6987 * config/pa/pa-hpux1131.h: New.
6988 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6989 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 6990 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 6991
1e30c578
JJ
69922011-05-05 Jakub Jelinek <jakub@redhat.com>
6993
6994 PR debug/48853
6995 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6996 instead of mode as 3rd argument to recursive call.
6997 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6998 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6999 VOIDmode.
7000 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7001 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7002 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7003 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7004
d19eb620
JB
70052011-05-05 Julian Brown <julian@codesourcery.com>
7006
7007 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7008 parenthesis in D-register case.
7009
c860fe8c
JM
70102011-05-05 Joseph Myers <joseph@codesourcery.com>
7011
7012 * opt-functions.awk (var_type_struct): Handle Enum options.
7013 * optc-gen.awk: Don't check range of variables of character type.
7014 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7015 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7016 rs6000_sdata_name, rs6000_explicit_options): Remove.
7017 (rs6000_option_override_internal): Check for -malign-power here.
7018 Use global_options_set instead of rs6000_explicit_options.
7019 (rs6000_parse_fpu_option): Remove.
7020 (rs6000_handle_option): Access variables via opts and opts_set
7021 pointers. Use error_at and warning_at. Add fall-through
7022 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7023 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7024 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7025 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7026 here. Don't use rs6000_parse_fpu_option.
7027 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7028 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7029 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7030 (mrecip=): Use Var.
7031 (mspe): Use Var and Save.
7032 (mtraceback=): Use Enum and Var.
7033 (rs6000_traceback_type): New Enum and EnumValue entries.
7034 (mfloat-gprs=): Use Enum, Var and Save.
7035 (rs6000_float_gprs): New Enum and EnumValue entries.
7036 (mlong-double-): use Var and Save.
7037 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7038 (malign-): Use Enum and Var.
7039 (rs6000_alignment_flags): New Enum and EnumValue entries.
7040 (mfpu=): Use Enum.
7041 (fpu_type_t): New Enum and EnumValue entries.
7042 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7043 global_options_set instead of rs6000_explicit_options.
7044 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7045 global_options_set instead of rs6000_explicit_options.
7046 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7047 global_options_set instead of rs6000_explicit_options.
7048 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7049 global_options_set instead of rs6000_explicit_options.
7050 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7051 global_options_set instead of rs6000_explicit_options.
7052 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7053 global_options_set instead of rs6000_explicit_options.
7054 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7055 definition.
7056 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7057 global_options_set instead of rs6000_explicit_options.
7058 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7059 (rs6000_cmodel): New Enum and EnumValue entries.
7060 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7061 global_options_set instead of rs6000_explicit_options.
7062 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7063 (mtls-size=): Use Enum and Var.
7064 (rs6000_tls_size): New Enum and EnumValue entries.
7065
0691dde9
MM
70662011-05-05 Michael Matz <matz@suse.de>
7067
7068 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7069 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7070 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7071 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7072 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7073 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7074 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7075 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7076 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7077 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7078 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7079 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7080 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7081 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7082 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7083 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7084
86529a49
RG
70852011-05-05 Richard Guenther <rguenther@suse.de>
7086
7087 * expmed.c (expand_variable_shift): Rename to ...
7088 (expand_shift_1): ... this. Take an expanded shift amount.
7089 For rotates recurse directly not building trees for the shift amount.
7090 (expand_variable_shift): Wrap around expand_shift_1.
7091 (expand_shift): Adjust.
7092
d0228c2e
JJ
70932011-05-05 Jakub Jelinek <jakub@redhat.com>
7094
7095 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7096
907a08d9
EB
70972011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7098
7099 * tree.h (get_pending_sizes): Remove prototype.
7100 (put_pending_size): Likewise.
7101 (put_pending_sizes): Likewise.
7102 * stor-layout.c (pending_sizes): Delete.
7103 (get_pending_sizes): Likewise.
7104 (put_pending_size): Likewise.
7105 (put_pending_sizes): Likewise.
7106 (variable_size): Do not call put_pending_size and tidy up.
7107 * function.h (struct function): Remove dont_save_pending_sizes_p.
7108 * lto-streamer-in.c (input_function): Do not stream it.
7109 * lto-streamer-out.c (output_function): Likewise.
7110 * tree-inline.c (initialize_cfun): Do not copy it.
7111 * c-decl.c (store_parm_decls): Do not set it.
7112 * omp-low.c (create_task_copyfn): Likewise.
7113 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7114
386d9c57
UB
71152011-05-05 Uros Bizjak <ubizjak@gmail.com>
7116
7117 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7118 conditions.
7119 (*movdf_internal): Ditto.
7120 (*movdf_internal_nointeger): Ditto.
7121 (*movsf_internal): Ditto.
7122
a04a722b
JM
71232011-05-05 Joseph Myers <joseph@codesourcery.com>
7124
7125 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7126 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7127 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7128 (c_variable_size): Remove.
7129 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7130 call put_pending_sizes.
7131 (get_parm_info): Add parameter expr. Use it to set
7132 arg_info->pending_sizes.
7133 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7134 get_pending_sizes.
7135 * c-parser.c (c_parser_parms_declarator): Update call to
7136 c_parser_parms_list_declarator.
7137 (c_parser_parms_list_declarator): Take parameter expr. Update
7138 call to push_parm_decl. Update recursive call. Don't call
7139 get_pending_sizes. Update calls to get_parm_info.
7140 (c_parser_objc_method_definition): Update calls to
7141 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 7142 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
7143 (c_parser_objc_method_decl): Add parameter expr. Update call to
7144 grokparm.
386d9c57 7145 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
7146 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7147 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7148
c92a6f97
MH
71492011-05-05 Michael Hope <michael.hope@linaro.org>
7150
386d9c57
UB
7151 PR pch/45979
7152 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7153 __ARM_EABI__ hosts.
c92a6f97 7154
07ea0048
UW
71552011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7156
7157 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7158 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7159 (spu_output_mi_thunk): New function.
7160
d634bfa1
RO
71612011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7162
7163 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7164 targetm.asm_out.print_operand.
7165 * config/sol2.c: Include target.h.
7166
40fda55b
JH
71672011-05-04 Jan Hubicka <jh@suse.cz>
7168
7169 * ipa-inline.c (reset_edge_caches): New function.
7170 (update_caller_keys): Add check_inlinablity_for; do not
7171 reset edge caches; remove now unnecesary loop.
386d9c57 7172 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
7173 (update_all_callee_keys): Likewise.
7174 (inline_small_functions): Sanity check cache; update code
7175 recomputing it.
7176
0360f70d
BS
71772011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7178
7179 PR rtl-optimization/47612
7180 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7181 as the last insn of the sequence to be moved.
7182
7a994646
TB
71832011-05-04 Tobias Burnus <burnus@net-b.de>
7184
7185 PR fortran/48864
7186 * doc/invoke.texi (Ofast): Document that it
7187 enables Fortran's -fno-protect-parens.
7188
7a2f7208
UB
71892011-05-04 Uros Bizjak <ubizjak@gmail.com>
7190
7191 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7192
a2d42931
EB
71932011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7194
7195 * stor-layout.c (variable_size): Do not issue errors.
7196
f81b1a3d
RG
71972011-05-04 Richard Guenther <rguenther@suse.de>
7198
7199 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7200 for array-ref indices.
7201 (tree_coverage_counter_addr): Likewise.
7202 (build_fn_info_type): Use size_int for index types.
7203 (build_gcov_info): Likewise.
7204
c62c040f
RG
72052011-05-04 Richard Guenther <rguenther@suse.de>
7206
7207 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7208 to build_int_cst.
7209 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7210 for constructor indices.
7211 (push_init_level): Likewise.
7212
1e3287d0
RG
72132011-05-04 Richard Guenther <rguenther@suse.de>
7214
7215 * explow.c (promote_mode): Move variable declarations before code.
7216
6c32445b
NF
72172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7218
7219 * tree.h (build_function_type_array): Declare.
7220 (build_varargs_function_type_array): Declare.
7221 (build_function_type_vec, build_varargs_function_type_vec): Define.
7222 * tree.c (build_function_type_array_1): New function.
7223 (build_function_type_array): New function.
7224 (build_varargs_function_type_array): New function.
7225
fdabf269
RS
72262011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7227
7228 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7229 before setting STMT_VINFO_TYPE.
7230
a207915a
UW
72312011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7232
7233 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7234 instead of spu_pass_by_reference.
7235
5e617be8
AK
72362011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7237
7238 * calls.c (emit_library_call_value_1): Invoke
7239 promote_function_mode hook on libcall arguments.
7240 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7241 argument being NULL.
7242 * targhooks.c (default_promote_function_mode): Lisewise.
7243 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7244 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7245
7246 * doc/tm.texi: Document that TYPE argument might be NULL.
7247
486d04be
SH
72482011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7249
7250 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7251
9b19b026
SH
72522011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7253
7254 From Bernd Schmidt
7255 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7256
502bc3df
RO
72572011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7258
7259 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7260 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7261 Move ...
7262 * mips-tfile.c: ... here.
7263 Don't include coretypes.h, tm.h, filenames.h.
7264 (saber_stop): Remove definition and all calls.
7265 [__SABER__]: Remove.
7266 (__LINE__): Remove default.
7267 (Size_t, Ptrdiff_t): Remove definitions.
7268 Replace by size_t, ptrdiff_t.
7269 [!MIPS_DEBUGGING_INFO]: Remove.
7270 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7271 (progname): Add const.
7272 (STATIC): Remove.
7273 Replace all uses by static.
7274 (ALIGN_SYMTABLE_OFFSET): Remove default.
7275 * mips-tdump.c: Don't include coretypes.h, tm.h.
7276 Remove !MIPS_IS_STAB guard.
7277 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7278 $(TM_H), filenames.h dependencies.
7279 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7280
991eb6ef
SH
72812011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7282
7283 From Jie Zhang
7284 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7285 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7286
420ccc84
SH
72872011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7288
7289 From Bernd Schmidt
7290 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7291 account and save/restore RETS.
7292 (PROFILE_BEFORE_PROLOGUE): Define.
7293 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7294 the push insn to use predecrement.
7295
9f8d69ee
SH
72962011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7297
7298 From Jie Zhang
7299 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7300
662c03f4
NC
73012011-05-04 Nick Clifton <nickc@redhat.com>
7302
7303 * config/mn10300/mn10300.c: Include cfgloop.h.
7304 (DUMP): New macro.
7305 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7306 Lcc or a FLcc insn into the instruction stream.
7307 (mn10300_block_contains_call): New function. Returns true if the
7308 given basic block contains a CALL insn.
7309 (mn10300_loop_contains_call_insn): New function. Returns true if
7310 the given loop contains a CALL insn.
7311 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7312 to use the SETLB and Lcc or FLcc insns.
7313 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7314 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7315 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7316 disable the SETLB optimization.
7317 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7318 __SETLB__ or __NO_SETLB__.
7319 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7320 (movsf_internal): Handle MDR register.
7321 (cmpsi): Make visible.
7322 (setlb): New pattern.
7323 (Lcc): New pattern.
7324 (FLcc): New pattern.
7325
843b6915
UB
73262011-05-04 Uros Bizjak <ubizjak@gmail.com>
7327
7328 PR target/48860
7329 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7330 for reg<->xmm moves.
7331 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7332 (vec_concatv2di_rex64_sse): Ditto.
7333 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7334 (*vec_extractv2di_1_rex64): Ditto.
7335
7336 Revert:
7337 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7338
7339 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7340 reg<->xmm moves.
7341 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7342
d35936ab
RG
73432011-05-04 Richard Guenther <rguenther@suse.de>
7344
7345 * tree.h (int_const_binop): Remove notrunc argument.
7346 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7347 create integer constants that are properly truncated.
7348 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7349 (const_binop): Remove zero notrunc argument to int_const_binop.
7350 (size_binop_loc): Likewise.
7351 (fold_div_compare): Likewise.
7352 (maybe_canonicalize_comparison_1): Likewise.
7353 (fold_comparison): Likewise.
7354 (fold_binary_loc): Likewise.
7355 (multiple_of_p): Likewise.
7356 * expr.c (store_constructor): Likewise.
7357 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7358 (maybe_fold_stmt_addition): Likewise.
7359 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7360 * stor-layout.c (layout_type): Likewise.
7361 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7362 * tree-sra.c (build_ref_for_offset): Likewise.
7363 (build_user_friendly_ref_for_offset): Likewise.
7364 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7365 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7366 * tree-ssa-loop-niter.c (inverse): Likewise.
7367 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7368 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7369 * tree-switch-conversion.c (check_range): Likewise.
7370 (build_constructors): Likewise.
7371 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7372 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7373 (extract_range_from_assert): Likewise.
7374 (vrp_int_const_binop): Likewise.
7375 (extract_range_from_binary_expr): Likewise.
7376 (extract_range_from_unary_expr): Likewise.
7377 (check_array_ref): Likewise.
7378 (find_case_label_range): Likewise.
7379 (simplify_div_or_mod_using_ranges): Likewise.
7380 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7381 comparing case labels for merging.
7382
8992c063
MW
73832011-05-03 Mark Wielaard <mjw@redhat.com>
7384
7385 * dwarf2out.c (debug_str_hash_forced): Removed.
7386 (gen_label_for_indirect_string): Removed.
7387 (get_debug_string_label): Removed.
7388 (AT_string_form): Generate label directly.
7389 (output_indirect_string): Test indirect_string_node for
7390 DW_FORM_strp instead of checking label and refcount.
7391 (prune_indirect_string): Removed.
7392 (prune_unused_types): Don't check debug_str_hash_forced or
7393 call prune_indirect_string.
7394
4868e6ea
AO
73952011-05-04 Alexandre Oliva <aoliva@redhat.com>
7396
7397 PR other/48093
7398 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7399
01a5c0ab
AO
74002011-05-04 Alexandre Oliva <aoliva@redhat.com>
7401
7402 PR debug/47994
7403 PR debug/47919
7404 * combine.c (try_combine): Skip debug insns at m_split tests.
7405
6ac00218
MW
74062011-04-26 Mark Wielaard <mjw@redhat.com>
7407
7408 PR42288
7409 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7410 when info_section_emitted.
7411
3af42a7b
JM
74122011-05-03 Joseph Myers <joseph@codesourcery.com>
7413
7414 * config/mips/mips-opts.h: New.
7415 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7416 to mips-opts.h.
7417 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7418 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7419 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7420 via opts pointer.
7421 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7422 mips-opts.h.
7423 (mips_abi, mips_code_readable): Don't declare.
843b6915 7424 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
7425 (mabi=): Use Enum and Var.
7426 (mips_abi): New Enum and EnumValue entries.
7427 (mcode-readable=): Use Enum and Var.
7428 (mips_code_readable_setting): New Enum and EnumValue entries.
7429 (mr10k-cache-barrier=): Use Enum and Var.
7430 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7431
1cb1a99f
JH
74322011-05-03 Jan Hubicka <jh@suse.cz>
7433
7434 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7435 replace hash by pointer map.
7436 (cgraph_node_set_element_def, cgraph_node_set_element,
7437 const_cgraph_node_set_element, varpool_node_set_element_def,
7438 varpool_node_set_element, const_varpool_node_set_element): Remove.
7439 (free_cgraph_node_set, free_varpool_node_set): New function.
7440 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7441 * tree-emutls.c: Free varpool node set.
7442 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7443 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7444 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7445 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7446 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7447 Move here from ipa.c; implement using pointer_map
7448 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7449 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7450 debug_cgraph_node_set, varpool_node_set_new,
7451 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7452 dump_varpool_node_set, debug_varpool_node_set):
7453 Move to ipa-uitls.c.
7454 * passes.c (ipa_write_summaries): Update.
7455
7f31f4db
SH
74562011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7457
7a2f7208
UB
7458 From Mike Frysinger:
7459 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7460 bf542/bf544/bf547/bf548/bf549.
7f31f4db 7461
b70fce6d
UB
74622011-05-03 Uros Bizjak <ubizjak@gmail.com>
7463
7464 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7465
265b1d82
SH
74662011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7467
7468 From Bernd Schmidt:
7469 * config/bfin/bfin.md (MOVCC): New mode_macro.
7470 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7471 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7472 comments from generated assembly.
7473
f0b568f3
SH
74742011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7475
7476 From Bernd Schmidt
7477 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7478 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7479 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7480 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7481 * config/bfin/lib1funcs.asm (___muldi3): New function.
7482
2c67cf6e
NF
74832011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7484
7485 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7486 build_function_type_list instead of build_function_type.
7487 Rearrange initialization of `args' to do so.
7488
f9ac28ad
NF
74892011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7490
7491 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7492 instead of build_function_type.
7493
22b8798c
NF
74942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7495
7496 * config/rs6000/rs6000.c (spe_init_builtins): Call
7497 build_function_type_list instead of build_function_type.
7498 (paired_init_builtins, altivec_init_builtins): Likewise.
7499 (builtin_function_type): Likewise.
7500
4cb44528
NF
75012011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7502
7503 * config/sh/sh.c (sh_media_init_builtins): Call
7504 build_function_type_list instead of build_function_type.
7505
4c203a6a
NF
75062011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7507
7508 * config/sparc/sparc.c (sparc_file_end): Call
7509 build_function_type_list instead of build_function_type.
7510
d6a3d62b
NF
75112011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7512
7513 * config/alpha/alpha.c (alpha_init_builtins): Call
7514 build_function_type_list instead of build_function_type.
7515
de530b86
NF
75162011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7517
7518 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7519 build_function_type_list instead of build_function_type.
7520
baeec5f2
NF
75212011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7522
7523 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7524 build_function_type_list instead of build_function_type.
7525 Delete `endlink' variable.
7526
c19afe52
NF
75272011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7528
7529 * config/avr/avr.c (avr_init_builtins): Call
7530 build_function_type_list instead of build_function_type.
7531
a341df0a
NF
75322011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7533
7534 * config/picochip/picochip.c (picochip_init_builtins): Call
7535 build_function_type_list instead of build_function_type.
7536 Delete `endlink' variable.
7537
2102b1e1
NF
75382011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7539
7540 * config/bfin/bfin.c (bfin_init_builtins): Call
7541 build_function_type_list instead of build_function_type.
7542
9f111209
SH
75432011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7544
7545 From Bernd Schmidt
7546 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7547 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7548
7071d064
SH
75492011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7550
7551 From Jie Zhang:
7552 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7553 libbffastfp overrides libgcc when -mfast-fp.
7554
748f7574 75552011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
7556
7557 Originally from Bernd Schmidt
7558 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7559 * config/bfin/bfin.c (override_options): Test it and error if
7560 TARGET_FDPIC.
7561
1a3a9152
SH
75622011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7563
7564 Originally From Bernd Schmidt
7565 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7566 FD-PIC.
7567
7134c090
JL
75682011-05-03 Jeff Law <law@redhat.com>
7569
7570 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7571 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7572 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
7573 than accessing AUX field directly. Free the AUX field before
7574 clearing it.
7134c090
JL
7575 (thread_block, thread_through_loop_header): Likewise.
7576 (thread_single_edge, mark_threaded_blocks): Likewise.
7577 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7578 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 7579
2c7eebae
BS
75802011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7581
7582 * function.c (init_function_start): Call decide_function_section.
7583 * varasm.c (decide_function_section): New function.
7584 (assemble_start_function): When not using
7585 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7586 or first_function_block_is_cold.
7587 * rtl.h (decide_function_section): Declare.
7588
17038fcf
JJ
75892011-05-03 Uros Bizjak <ubizjak@gmail.com>
7590 Jakub Jelinek <jakub@redhat.com>
7591
7592 PR target/48774
7593 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7594 only succeed if req_mode is the same as set_mode.
7595
3810076b
BS
75962011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7597
7598 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7599 * genemit.c (gen_exp): Handle RETURN.
7600 * emit-rtl.c (verify_rtx_sharing): Likewise.
7601 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7602 * rtl.c (copy_rtx): RETURN is shared.
7603 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7604 (ret_rtx): New.
7605 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7606 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7607 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7608 * config/cris/cris.c (cris_expand_return): Likewise.
7609 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7610 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7611 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7612 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7613 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7614 Likewise.
7615 * config/v850/v850.c (expand_epilogue): Likewise.
7616 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7617 * config/arm/arm.md (epilogue): Likewise.
7618 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7619 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7620 variable to ret_reg.
7621
9efdb4ad
RG
76222011-05-03 Richard Guenther <rguenther@suse.de>
7623
7624 PR lto/48846
7625 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7626 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7627 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7628
60a45536
RG
76292011-05-03 Richard Guenther <rguenther@suse.de>
7630
7631 * c-decl.c (grokdeclarator): Instead of looking at
7632 TREE_OVERFLOW check if the constant fits in the index type.
7633
3188ed59
RS
76342011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7635
7636 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7637 (vec_store_lanes<mode><mode>): Likewise.
7638
272c6793
RS
76392011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7640
7641 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7642 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7643 convert_optab_index values.
7644 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7645 * genopinit.c (optabs): Initialize the new optabs.
7646 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7647 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7648 (expand_STORE_LANES): New functions.
7649 * tree.h (build_array_type_nelts): Declare.
7650 * tree.c (build_array_type_nelts): New function.
7651 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7652 (vect_model_load_cost): Likewise.
7653 (vect_store_lanes_supported, vect_load_lanes_supported)
7654 (vect_record_strided_load_vectors): Declare.
7655 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7656 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7657 (vect_transform_strided_load): Split out statement recording into...
7658 (vect_record_strided_load_vectors): ...this new function.
7659 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7660 (write_vector_array, create_array_ref): New functions.
7661 (vect_model_store_cost): Add store_lanes_p argument.
7662 (vect_model_load_cost): Add load_lanes_p argument.
7663 (vectorizable_store): Try to use store-lanes functions for
7664 interleaved stores.
7665 (vectorizable_load): Likewise load-lanes and loads.
7666 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7667 to vect_model_store_cost.
7668 (vect_build_slp_tree): Likewise vect_model_load_cost.
7669
0f6d54f7
RS
76702011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7671
7672 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7673 * hooks.c (hook_bool_mode_uhwi_false): New function.
7674 * target.def (array_mode_supported_p): New hook.
7675 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7676 * doc/tm.texi: Regenerate.
7677 * stor-layout.c (mode_for_array): New function.
7678 (layout_type): Use it.
7679 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7680 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7681
b15eacc7
EB
76822011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7683
7684 PR target/48723
7685 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7686 for -fstack-check if the size to allocate is negative.
7687
575bfb00
LC
76882011-05-02 Lawrence Crowl <crowl@google.com>
7689
7690 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7691 (timevar_cond_start): New for starting a timer only when it is not
7692 already running.
7693 (timevar_cond_stop): New for stopping a timer when it was not already
7694 running.
7695
7696 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7697 (timevar_cond_start): New as above.
7698 (timevar_cond_stop): New as above.
7699
7700 * timevar.def: Add start/stop timers for compiler phases,
7701 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7702 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7703 and TV_PHASE_FINALIZE.
7704 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7705 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7706 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7707 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7708 Make unused TV_OVERLOAD into a start/stop timer.
7709
7710 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7711 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7712 to indicate that they are start/stop timers.
7713
7714 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7715 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7716 Move initialization to do_compile.
7717 (do_compile): Add initialization from above.
7718 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7719
7720 * c-decl.c (c_write_global_declarations): Add start/stop of
7721 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7722
7723 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7724 or TV_PARSE_INLINE, as appropriate.
7725 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7726 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7727
3533b943
JM
77282011-05-02 Jason Merrill <jason@redhat.com>
7729
7730 PR c++/40975
7731 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7732
2609a0ce
SM
77332011-05-02 Simon Martin <simartin@users.sourceforge.net>
7734
7735 PR c/35445
7736 * c-decl.c (finish_decl): Only create a composite if the types are
7737 compatible.
7738
6b0e4cbb
JM
77392011-05-02 Joseph Myers <joseph@codesourcery.com>
7740
7741 * config/fr30/fr30-protos.h (Mmode): Don't define.
7742 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7743 definition where used.
7744 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7745 define. Expand definitions where used.
7746 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7747 Expand definitions where used.
7748 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7749 rx_function_arg, rx_function_arg_advance,
7750 rx_function_arg_boundary): Expand definitions of those macros.
7751 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7752 definition where used.
7753
4e938ce6
UB
77542011-05-02 Uros Bizjak <ubizjak@gmail.com>
7755
7756 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7757 reg<->xmm moves.
7758 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7759 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7760 with *movv2sf_internal_rex64_avx.
7761 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7762 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7763 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7764 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7765 "vex" in "prefix" attribute calculation.
7766 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7767
36019c19
SH
77682011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7769
7a2f7208
UB
7770 PR target/47951
7771 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7772 inputs match the output.
36019c19 7773
f69ea688
AS
77742011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7775
7776 PR target/47955
7777 * config/m68k/m68k.c (m68k_expand_prologue): Set
7778 current_function_static_stack_size.
7779
c33406f5
JH
77802011-05-02 Jan Hubicka <jh@suse.cz>
7781
7782 * lto-streamer.c (lto_streamer_cache_insert_1,
7783 lto_streamer_cache_lookup, lto_streamer_cache_create,
7784 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7785 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7786
47c94d21
JM
77872011-05-02 Joseph Myers <joseph@codesourcery.com>
7788
7789 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7790 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7791 config/m68k/t-opts: New files.
7792 * config/m68k/m68k-tables.opt: New file (generated).
7793 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7794 extra_options and m68k/t-opts to tmake_file.
7795 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7796 (all_isas): Initialize using m68k-isas.def.
7797 (all_microarchs): Initialize using m68k-microarchs.def.
7798 (m68k_find_selection): Remove.
7799 (m68k_handle_option): Don't assert that global structures are in
7800 use. Use error_at. Access variables via opts pointer. Don't
7801 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7802 directly for -m68020-40 and -m68020-60.
7803 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7804 m68k_tune_entry here.
7805 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7806 to m68k-opts.h.
7807 (m68k_library_id_string): Remove declaration.
4e938ce6 7808 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
7809 (m68k_library_id_string): New Variable.
7810 (march=, mcpu=, mtune=): Use Enum and Var.
7811
e562bf36
RG
78122011-05-02 Richard Guenther <rguenther@suse.de>
7813
7814 * varasm.c (output_constructor_regular_field): Compute zero-based
7815 index with double-ints. Make sure to ICE instead of producing
7816 wrong code.
7817 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7818 in asserts. Properly use a signed type.
7819
6bec6c98
UB
78202011-05-02 Uros Bizjak <ubizjak@gmail.com>
7821
7822 * config/i386/sse.md (V): New mode iterator.
7823 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7824 TARGET_SSE2.
7825 (V_256): Rename from AVX256MODE.
7826 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7827 condition to all users.
7828 (VF1): Ditto.
7829 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7830 condition to all users.
7831 (VF_128): Make V4SF mode unconditional.
7832 (VF_256): Rename from AVX256MODEF2P.
7833 (VI4F_128): Rename from SSEMODE4S.
7834 (VI8F_128): Rename from SSEMODE2D.
7835 (VI4F_256): Rename from AVX256MODE8P.
7836 (VI8F_256): Rename from AVX256MODE4P.
7837 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7838 (ssescalarmodesuffix): Remove SF and DF modes.
7839 (SSEMODE124): Remove.
7840 (SSEMODE1248): Ditto.
7841 (SSEMODEF2P): Ditto.
7842 (AVXMODEF2P): Ditto.
7843 (AVXMODEFDP): Ditto.
7844 (AVXMODEFSP): Ditto.
7845 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7846 unconditional.
7847 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7848 unconditional.
7849 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7850 xop_pcmov_<mode>256. Use V mode iterator.
7851
7852 Adjust RTX patterns globally for renamed mode attributes.
7853
2dfdcb4b
UW
78542011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7855
7856 * haifa-sched.c (sched_emit_insn): Emit insn before first
7857 non-scheduled insn. Inform back-end about new insn. Add
7858 new insn to scheduled_insns list.
7859
90bc4623
RG
78602011-05-02 Richard Guenther <rguenther@suse.de>
7861
7862 PR tree-optimization/48822
7863 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7864 (process_scc): Indicate which iteration we start.
7865
bc0fe8cb
JH
78662011-05-02 Jan Hubicka <jh@suse.cz>
7867
7868 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7869 (lto_section_overrun): New.
7870 * lto-section-out.c (append_block): Rename to ...
7871 (lto_append_block): ... this one; export.
7872 (lto_output_1_stream): Move lto lto-streamer.h
7873 (lto_output_data_stream): Update.
7874 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7875 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7876 functions.
7877
f070a9d1
RG
78782011-05-02 Richard Guenther <rguenther@suse.de>
7879
7880 * tree.c (tree_code_counts): New global array.
7881 (record_node_allocation_statistics): Count individual tree codes.
7882 (dump_tree_statistics): Dump individual code stats.
7883
09dfe187
JH
78842011-05-01 Jan Hubicka <jh@suse.cz>
7885
7886 * ipa-inline.c (caller_growth_limits): Fix thinko when
7887 looking for largest stack frame.
7888 * ipa-inline.h (dump_inline_summary): Declare.
7889 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7890 on stack usage.
7891 (dump_inline_summary): Export.
7892 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7893
6f76a878
AS
78942011-05-01 Anatoly Sokolov <aesok@post.ru>
7895
7896 * reginfo.c (memory_move_cost): Change rclass argument type form
7897 'enum reg_class' to reg_class_t.
7898 * reload.h (memory_move_cost): Update prototype.
7899 * postreload.c reload_cse_simplify_set): Change type dclass var to
7900 reg_class_t.
7901 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7902 Update prototype.
7903 (ira_allocate_and_set_costs): Change aclass argument type form
7904 'enum reg_class' to reg_class_t.
6bec6c98 7905 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
7906 Change aclass argument type to reg_class_t.
7907 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7908 to reg_class_t.
7909 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7910 memory_move_cost call.
7911
7912 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7913 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7914 Change type tmp var to reg_class_t.
7915
9a4ac625
JH
79162011-04-30 Jan Hubicka <jh@suse.cz>
7917
7918 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7919 inlining into function with flatten attribute.
7920 (want_inline_small_function_p): Be more realistic about inlining
7921 cold calls where callee size grows.
7922
dd8352ee
JH
79232011-04-30 Jan Hubicka <jh@suse.cz>
7924
7925 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7926 flags.
7927
46e43d2b
AS
79282011-04-30 Anatoly Sokolov <aesok@post.ru>
7929
7930 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7931 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7932 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7933 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7934 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7935 (print_operand): Rename to...
7936 (sparc_print_operand): ...this. Make static. Adjust
7937 sparc_print_operand function call.
7938 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7939 functions.
7940
ecb62563
JH
79412011-04-30 Jan Hubicka <jh@suse.cz>
7942
6bec6c98 7943 PR middle-end/48752
ecb62563
JH
7944 * ipa-inline.c (early_inliner): Disable when doing late
7945 addition of function.
7946
edb9b69e
JJ
79472011-04-30 Jakub Jelinek <jakub@redhat.com>
7948
be80a87e
JJ
7949 * dwarf2out.c (get_address_mode): New inline.
7950 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7951 if not dwarf_strict emit
7952 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7953 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7954 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7955 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7956 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7957 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7958 mem_loc_descriptor callers.
7959 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7960 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7961 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7962 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7963 (base_types): New variable.
7964 (get_base_type_offset, calc_base_type_die_sizes,
7965 base_type_for_mode, mark_base_types, base_type_cmp,
7966 move_marked_base_types): New functions.
7967 (calc_die_sizes): Assert that die_offset is 0 or equal to
7968 next_die_offset.
7969 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7970 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7971 callers. If not dwarf_strict, call mem_loc_descriptor even for
7972 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7973 (gen_subprogram_die): Don't give up on call site parameters
7974 with non-integral or large integral modes. Adjust
7975 mem_loc_descriptor callers.
7976 (prune_unused_types): Call prune_unused_types_mark on base_types
7977 vector entries.
7978 (resolve_addr): Call mark_base_types.
7979 (dwarf2out_finish): Call move_marked_base_types.
7980
edb9b69e
JJ
7981 PR tree-optimization/48809
7982 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7983 type.
7984 (gen_inbound_check): Don't compute index_expr - range_min in utype
7985 again, instead reuse SSA_NAME initialized in build_arrays.
7986 Remove two useless gsi_for_stmt calls.
7987
a6545a3d
JL
79882011-04-29 Jeff Law <law@redhat.com>
7989
7990 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7991
af8bca3c
MJ
79922011-04-29 Martin Jambor <mjambor@suse.cz>
7993
7994 * cgraph.h (cgraph_postorder): Remove declaration.
7995 * ipa-utils.h (ipa_free_postorder_info): Declare.
7996 (ipa_reverse_postorder): Likewise.
7997 * cgraphunit.c: Include ipa-utils.h.
7998 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7999 * ipa-inline.c: Include ipa-utils.h.
8000 (ipa_inline): Update call to ipa_reverse_postorder.
8001 * ipa-pure-const.c (propagate_pure_const): Update call to
8002 ipa_reduced_postorder and ipa_print_order. Call
8003 ipa_free_postorder_info to clean up.
8004 (propagate_nothrow): Likewise.
8005 * ipa-reference.c (propagate): Removed a useless call to
8006 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8007 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8008 * ipa.c: Include ipa-utils.h.
8009 (ipa_profile): Update call to ipa_reverse_postorder.
8010 (cgraph_postorder): Moved to...
8011 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8012 (ipa_utils_print_order): Renamed to ipa_print_order.
8013 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8014 comments.
8015 (ipa_free_postorder_info): New function.
8016 * passes.c: Include ipa-utils.h.
8017 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8018 (ipa_write_summaries): Likewise.
8019 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8020 (cgraphunit.o): Likewise.
8021 (ipa.o): Likewise.
8022 (ipa-inline.o): Likewise.
8023
b15c64ee
JH
80242011-04-29 Jan Hubicka <jh@suse.cz>
8025
8026 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8027 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8028 * ipa-inline.h (clause_t): Turn into unsigned int.
8029 * ipa-inline-analysis.c (add_clause): Do more simplification.
8030 (and_predicates): Shortcut more cases.
8031 (predicates_equal_p): Move forward; check that clauses are properly
8032 ordered.
8033 (or_predicates): Shortcut more cases.
8034 (edge_execution_predicate): Rewrite as...
8035 (set_cond_stmt_execution_predicate): ... this function; handle
8036 __builtin_constant_p.
8037 (set_switch_stmt_execution_predicate): New .
8038 (compute_bb_predicates): New.
8039 (will_be_nonconstant_predicate): Update TODO.
8040 (estimate_function_body_sizes): Use compute_bb_predicates
8041 and free them later, always try to estimate if stmt is constant.
8042 (estimate_time_after_inlining, estimate_size_after_inlining):
8043 Gracefully handle optimized out edges.
8044 (read_predicate): Fix off by one error.
8045
a88fdc2a
NP
80462011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8047
8048 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8049
d984c8ef
XDL
80502011-04-27 Xinliang David Li <davidxl@google.com>
8051
8052 * tree-profile.c (init_ic_make_global_vars): Set
8053 tls attribute on ic vars.
8054 * coverage.c (coverage_end_function): Initialize
8055 function_list with zero.
8056
45a2c477
RG
80572011-04-29 Richard Guenther <rguenther@suse.de>
8058
8059 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8060 for the type of the result.
8061 (fold_builtin_isascii): Likewise.
8062 (fold_builtin_toascii): Use integer_type_node where appropriate.
8063 (fold_builtin_logb): Likewise.
8064 (fold_builtin_frexp): Likewise.
8065 (fold_builtin_strstr): Likewise.
8066 (fold_builtin_strpbrk): Likewise.
8067 (fold_builtin_fputs): Likewise.
8068 (fold_builtin_sprintf): Likewise.
8069 (fold_builtin_snprintf): Likewise.
8070 (fold_builtin_printf): Likewise.
8071 (do_mpfr_remquo): Use a proper type for the assigned constant.
8072 (do_mpfr_lgamma_r): Likewise.
8073 * dwarf2out.c (resolve_one_addr): Use size_int.
8074 * except.c (init_eh): Likewise.
8075 (assign_filter_values): Use integer_type_node for filter values.
8076 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8077 indices.
8078 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8079 for EH region numbers.
8080 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8081 for the shift amount.
8082
eb6c3df1
RG
80832011-04-29 Richard Guenther <rguenther@suse.de>
8084
8085 * expr.h (expand_shift): Rename to ...
8086 (expand_variable_shift): ... this.
8087 (expand_shift): Take a constant shift amount.
8088 * expmed.c (expand_shift): Rename to ...
8089 (expand_variable_shift): ... this.
8090 (expand_shift): New wrapper around expand_variable_shift.
8091 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8092 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8093 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8094 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8095 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8096 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8097 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8098 emit_store_flag_1, emit_store_flag): Likewise.
8099 * builtins.c (expand_builtin_signbit): Likewise.
8100 * calls.c (load_register_parameters): Likewise.
8101 * function.c (assign_parm_setup_block): Likewise.
8102 * lower-subreg.c (resolve_shift_zext): Likewise.
8103 * optabs.c (widen_bswap, expand_abs_nojump,
8104 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8105 * spu/spu.c (spu_expand_extv): Likewise.
8106 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8107
9f616812
RG
81082011-04-29 Richard Guenther <rguenther@suse.de>
8109
8110 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8111 for the remapped region number.
8112 * predict.c (build_predict_expr): Use integer_type_node for the
8113 predict kind.
8114 * fold-const.c (fold_binary_loc): Use integer_type_node for
8115 the shift amount. Use a proper type for the PLUS_EXPR operand.
8116
b823cdfe
MM
81172011-04-29 Michael Matz <matz@suse.de>
8118
8119 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8120 other trees that just builtins.
8121 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8122
413581ba
RG
81232011-04-29 Richard Guenther <rguenther@suse.de>
8124
8125 * tree-nested.c (get_trampoline_type): Use size_int.
8126 (get_nl_goto_field): Likewise.
8127 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8128 for all indexes.
8129 (lower_eh_constructs_2): Likewise.
8130 (lower_resx): Likewise.
8131 (lower_eh_dispatch): Likewise.
8132 * tree-mudflap.c (mf_build_string): Use size_int.
8133 (mudflap_register_call): Use integer_type_node for the flag.
8134 (mudflap_enqueue_constant): Use size_int.
8135 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8136 instead of rebuilding it.
8137
5c04e9f4
RG
81382011-04-29 Richard Guenther <rguenther@suse.de>
8139
8140 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8141 Handle OBJ_TYPE_REF.
8142 (find_func_aliases_for_call): Use it more consistently.
8143
5c24671b
AO
81442011-04-29 Alexandre Oliva <aoliva@redhat.com>
8145
8146 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8147 (rank_for_schedule): Use it.
8148 (schedule_block): Set it.
8149
10adac51
XDL
81502011-04-28 David Li <davidxl@google.com>
8151
8152 * tree.c (crc32_string): Use crc32_byte.
8153 (crc32_byte): New function.
8154 * tree.h (crc32_byte): New function.
8155 * gcov.c (read_graph_file): Handle new cfg_cksum.
8156 (read_count_file): Ditto.
8157 * profile.c (instrument_values): Ditto.
8158 (get_exec_counts): Ditto.
8159 (read_profile_edge_counts): Ditto.
8160 (compute_branch_probabilities): Ditto.
8161 (compute_value_histograms): Ditto.
8162 (branch_prob): Ditto.
8163 (end_branch_prob): Ditto.
8164 * coverage.c (read_counts_file): Ditto.
8165 (get_coverage_counts): Ditto.
8166 (tree_coverage_counter_addr): Ditto.
8167 (coverage_checksum_string): Ditto.
8168 (coverage_begin_output): Ditto.
8169 (coverage_end_function): Ditto.
8170 (build_fn_info_type): Ditto.
8171 (build_fn_info_value): Ditto.
8172 * libgcov.c (gcov_exit): Ditto.
8173 * gcov-dump.c (tag_function): Ditto.
8174 (compute_checksum): Remove.
8175
5d6358a5
AM
81762011-04-29 Alan Modra <amodra@gmail.com>
8177
8178 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8179 unspec plus offset. Tidy macho code.
8180
85ad2ef5
MJ
81812011-04-29 Martin Jambor <mjambor@suse.cz>
8182
8183 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8184 node instead of a decl. Update all callers.
8185 * cgraph.h: Update declaration.
8186
437f4a00
IR
81872011-04-28 Ira Rosen <ira.rosen@linaro.org>
8188
8189 PR tree-optimization/48765
8190 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8191 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8192 to indicate if loop aware SLP is being used. Scan the statements
8193 and update the vectorization factor according to the type of
8194 vectorization before statement analysis.
8195 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8196 pass it to vect_analyze_loop_operations.
8197 (vectorizable_reduction): Set number of copies to 1 in case of pure
8198 SLP statement.
8199 * tree-vect-stmts.c (vectorizable_conversion,
8200 vectorizable_assignment, vectorizable_shift,
8201 vectorizable_operation, vectorizable_type_demotion,
8202 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8203 Likewise.
8204 (vectorizable_condition): Move the check that it is not SLP
8205 vectorization before the number of copies check.
8206 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8207 to vectorize the loop using SLP.
8208
c6fc44f3
JJ
82092011-04-28 Jakub Jelinek <jakub@redhat.com>
8210
8211 PR middle-end/48597
8212 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8213 inline asm.
8214
6c0170ea
JM
82152011-04-28 Joseph Myers <joseph@codesourcery.com>
8216
8217 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8218 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8219 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8220 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8221 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8222 linux*.h headers.
6bec6c98 8223 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
8224 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8225 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8226 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 8227 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
8228 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8229 REG_NAME.
8230 * config/i386/linux.h (REG_NAME): Don't define.
8231 * config/i386/linux64.h (REG_NAME): Don't define.
8232 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8233 Undefine before defining.
8234
970dabbd
JH
82352011-04-28 Jan Hubicka <jh@suse.cz>
8236
6bec6c98
UB
8237 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8238 nonconstant_names array.
970dabbd
JH
8239 (estimate_function_body_sizes): Build nonconstant_names array; handle
8240 BUILT_IN_CONSTANT_P.
8241
8d3e3924
RG
82422011-04-28 Richard Guenther <rguenther@suse.de>
8243
8244 PR bootstrap/48804
8245 Revert
8246 2011-04-28 Richard Guenther <rguenther@suse.de>
8247
8248 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8249 as late as possible.
6bec6c98 8250
8576f20a
RG
82512011-04-28 Richard Guenther <rguenther@suse.de>
8252
8253 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8254 (debug_constraint): Do it here.
8255 (dump_constraints): And here.
8256 (rewrite_constraints): And here.
8257 (dump_constraint_edge): Remove.
8258 (dump_constraint_graph): Rewrite to produce DOT output.
8259 (solve_constraints): Build succ graph as late as possible.
8260 Dump constraint graphs before and after solving.
8261
e38811ce
RG
82622011-04-28 Richard Guenther <rguenther@suse.de>
8263
8264 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8265 New function split out from ...
8266 (find_func_aliases): ... here. Call it.
8267 (find_func_aliases_for_call): Likewise.
8268
fbaf0d0c
GDR
82692011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8270
8271 * internal-fn.h (internal_fn_name_array): Declare.
8272 (internal_fn_flags_array): Likewise.
8273
cbb734aa
UB
82742011-04-27 Uros Bizjak <ubizjak@gmail.com>
8275
8276 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8277 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8278 Move from sse.md.
8279 (ssemodefsuffix): Remove.
8280 (ssevecmodesuffix): New mode attribute.
8281 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8282 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8283 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8284 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8285 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8286 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8287 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8288 ssemodesuffix mode attribute.
8289 (float splitters): Use ssevecmodesuffix mode attribute.
8290 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8291 (sseinsmode): Rename from avxvecmode.
8292 (avxsizesuffix): Rename from avxmodesuffix.
8293 (sseintvecmode): Rename from avxpermvecmode.
8294 (ssedoublevecmode): Rename from ssedoublesizemode.
8295 (ssehalfvecmode): Rename from avxhalfvecmode.
8296 (ssescalarmode): Rename from avxscalarmode.
8297 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8298 templates for ssemodesuffix mode attribute.
8299 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8300 mode attribute.
8301
8302 Adjust RTX patterns globally for renamed mode attributes.
8303
991278ab
JH
83042011-04-27 Jan Hubcika <jh@suse.cz>
8305
8306 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8307 * ipa-inline-analysis.c: Include alloc-pool.h.
8308 (edge_predicate_pool): New.
8309 (trye_predicate_p): New function
8310 (false_predicate_p): New function.
8311 (add_clause): Sanity check that false clauses are "optimized";
8312 never add clauses to predicate that is already known to be false.
8313 (and_predicate): Use flase_predicate_p.
8314 (evaulate_predicate): Rename to ...
8315 (evaluate_predicate): ... this one; update all callers; assert
8316 that false is not listed among possible truths.
8317 (dump_predicate): Use true_predicate_p.
8318 (account_size_time): Use false_predicate_p.
8319 (evaulate_conditions_for_edge): Rename to ...
8320 (evaluate_conditions_for_edge) ... this one.
8321 (edge_set_predicate): New function.
8322 (inline_edge_duplication_hook): Duplicate edge predicates.
8323 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 8324 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
8325 (dump_inline_summary): Update.
8326 (estimate_function_body_sizes): Set edge predicates.
8327 (estimate_calls_size_and_time): Handle predicates.
8328 (estimate_callee_size_and_time): Update.
8329 (remap_predicate): Add toplev_predicate; update comment.
8330 (remap_edge_predicates): New function.
8331 (inline_merge_summary): Compute toplev predicate; update.
8332 (read_predicate): New function.
8333 (read_inline_edge_summary): Use it.
8334 (inline_read_section): Likewise.
8335 (write_predicate): New function.
8336 (write_inline_edge_summary): Use it.
8337 (inline_write_summary): Likewise.
8338 (inline_free_summary): Free alloc pool and edge summary vec.
8339
648b5f85
RG
83402011-04-27 Richard Guenther <rguenther@suse.de>
8341
8342 * tree-ssa-structalias.c (changed_count): Remove.
8343 (changed): Use a bitmap.
8344 (unify_nodes): Adjust.
8345 (do_sd_constraint): Likewise.
8346 (do_ds_constraint): Likewise.
8347 (do_complex_constraint): Likewise.
8348 (solve_graph): Likewise.
8349
4d5dcfb2
JH
83502011-04-27 Jan Hubicka <jh@suse.cz>
8351
8352 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8353
200eb7d2
UB
83542011-04-27 Uros Bizjak <ubizjak@gmail.com>
8355
8356 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8357 (avx_vperm2f128_*_operand): Ditto.
8358 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8359 Use avx_vpermilp_parallel in insn condition.
8360 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8361 Use avx_vperm2f128_parallel in insn condition.
8362
7d6e2521
RG
83632011-04-27 Richard Guenther <rguenther@suse.de>
8364
8365 * Makefile.in (tree-ssa-structalias.o): Remove
8366 gt-tree-ssa-structalias.h dependency.
8367 (GTFILES): Remove tree-ssa-structalias.c.
8368 * tree.c (allocate_decl_uid): New function.
8369 (make_node_stat): Use it.
8370 (copy_node_stat): Likewise.
8371 * tree.h (allocate_decl_uid): Declare.
8372 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8373 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8374 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 8375 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
8376 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8377 (struct heapvar_map): Likewise.
8378 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8379 heapvar_insert): Likewise.
8380 (make_heapvar_for): Rename to ...
8381 (make_heapvar): ... this. Simplify.
8382 (fake_var_decl_obstack): New global var.
8383 (build_fake_var_decl): New function.
8384 (make_constraint_from_heapvar): Adjust.
8385 (handle_lhs_call): Likewise.
8386 (create_function_info_for): Likewise.
8387 (intra_create_variable_infos): Likewise.
8388 (init_alias_vars): Allocate fake_var_decl_obstack.
8389 (init_alias_heapvars, delete_alias_heapvars): Remove.
8390 (compute_points_to_sets): Do not call init_alias_heapvars.
8391 (ipa_pta_execute): Likewise.
8392 (delete_points_to_sets): Free fake_var_decl_obstack.
8393
526ed6c2
UW
83942011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8395
8396 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8397 (si_from_UTItype, si_to_UTItype): New functions.
8398 (__udivmodti4): Use them to implement type-punning.
8399 * config/spu/multi3.c (union qword_TItype): New data type.
8400 (si_from_TItype, si_to_TItype): New functions.
8401 (__multi3): Use them to implement type-punning.
8402
c187d33c
UW
84032011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8404
8405 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8406
40982661
JH
84072011-04-27 Jan Hubicka <jh@suse.cz>
8408
8409 * ipa-prop.c (function_insertion_hook_holder): New holder.
8410 (ipa_add_new_function): New function.
200eb7d2
UB
8411 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8412 Register/deregister holder.
40982661 8413
9aef53ee
RG
84142011-04-27 Richard Guenther <rguenther@suse.de>
8415
8416 PR tree-optimization/48772
200eb7d2 8417 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 8418
f63d806d
RG
84192011-04-27 Richard Guenther <rguenther@suse.de>
8420
8421 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8422 TARGET_MEM_REF handling.
8423
e1ea7451
NC
84242011-04-27 Nick Clifton <nickc@redhat.com>
8425
9b5db25d
NC
8426 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8427 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8428 (REG_CLASS_NAMES): Likewise.
8429 (REG_CLASS_CONTENTS): Likewise.
8430 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8431 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8432 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8433 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8434 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8435 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8436 duplicate register classes.
97d20907 8437 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
8438 (frv_register_move_cost): Likewise.
8439
e1ea7451
NC
8440 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8441 end of the regno_reg_class array.
8442
5c2f94b4
JJ
84432011-04-27 Jakub Jelinek <jakub@redhat.com>
8444
8445 PR c/48742
8446 * c-typeck.c (build_binary_op): Don't wrap arguments if
8447 int_operands is true.
8448
57a944d7
KK
84492011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8450
8451 PR target/48767
8452 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8453 targetm.calls.must_pass_in_stack for void type.
8454
898b8927
JH
84552011-04-26 Jan Hubicka <jh@suse.cz>
8456
8457 * cgraphbuild.c (build_cgraph_edges): Update call
8458 of cgraph_create_edge and cgraph_create_indirect_edge.
8459 * cgraph.c (cgraph_create_edge_including_clones,
8460 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8461 cgraph_update_edges_for_call_stmt_node): Do not take nest
8462 argument; do not initialize call_stmt_size/time.
8463 (dump_cgraph_node): Do not dump nest.
8464 (cgraph_clone_edge): Do not take loop_nest argument;
8465 do not propagate it; do not clone call_stmt_size/time.
8466 (cgraph_clone_node): Likewise.
8467 (cgraph_create_virtual_clone): Update.
8468 * cgraph.h (struct cgraph_edge): Remove
8469 call_stmt_size/call_stmt_time/loop_nest.
8470 (cgraph_create_edge, cgraph_create_indirect_edge,
8471 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8472 prototype.
8473 * tree-emutls.c (gen_emutls_addr): Update.
8474 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8475 loop_nest; handle indirect calls, too.
8476 (clone_inlined_nodes): Do not care about updating inline summaries.
8477 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8478 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8479 stream call_stmt_size/call_stmt_time/loop_nest.
8480 * ipa-inline.c (edge_badness): Update.
8481 (ipa_inline): dump summaries after inlining.
8482 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 8483 New.
898b8927
JH
8484 (inline_edge_summary): New function.
8485 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8486 (inline_edge_removal_hook): Handle edge summaries.
8487 (inline_edge_duplication_hook): New hook.
8488 (inline_summary_alloc): Alloc hooks.
8489 (initialize_growth_caches): Do not register removal hooks.
8490 (free_growth_caches); Do not free removal hook.
8491 (dump_inline_edge_summary): New function.
8492 (dump_inline_summary): Use it.
8493 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8494 (inline_update_callee_summaries): New function.
8495 (inline_merge_summary): Use it.
8496 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8497 (read_inline_edge_summary): New function.
8498 (inline_read_section): Use it.
8499 (write_inline_edge_summary): New function.
8500 (inline_write_summary): Use it.
8501 (inline_free_summary): Free edge new holders.
8502 * tree-inline.c (copy_bb): Update.
8503
ffa03772
JM
85042011-04-26 Jason Merrill <jason@redhat.com>
8505
8506 * tree-eh.c (lower_try_finally_switch): Create the label along with
8507 the CASE_LABEL_EXPR.
8508
6d7b45ad
DM
85092011-04-26 David S. Miller <davem@davemloft.net>
8510 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8511
8512 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8513 * configure: Regenerate.
8514
df10b6d4
MM
85152011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8516
8517 PR target/48258
8518 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8519 reduction.
8520 (VEC_reduc): New code iterator and splitters for vector reduction.
8521 (VEC_reduc_name): Ditto.
8522 (VEC_reduc_rtx): Ditto.
8523 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8524 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8525
8526 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8527 support for extracting SF on VSX.
8528
8529 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8530 generating xscvspdp.
8531 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8532 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8533 double add, minimum, maximum vector reduction.
8534 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8535 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8536 optimize double vector reduction.
8537 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8538
35a5db04
JM
85392011-04-26 Joseph Myers <joseph@codesourcery.com>
8540
8541 * config/fr30/fr30.h (inhibit_libc): Don't define.
8542 * config/m32r/m32r-protos.h: Correct comment.
8543 * config/v850/v850.h (GHS_default_section_names,
8544 GHS_current_section_names): Use tree, not union tree_node *.
8545
2f964ad6
XDL
85462011-04-26 Xinliang David Li <davidxl@google.com>
8547
200eb7d2 8548 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
8549 * c-family/c-opts.c (c_common_handle_option): Set
8550 warn_maybe_uninitialized.
8551 * opts.c (common_handle_option): Ditto.
8552 * common.opt: New option.
8553 * tree-ssa.c (warn_uninit): Add one more parameter.
8554 (warn_uninitialized_var): Pass warning code.
8555 * tree-flow.h: Interface change.
8556
9c7bd91a
RO
85572011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8558
200eb7d2 8559 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
8560 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8561 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8562
c2f36e21
RO
85632011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8564
8565 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8566 * config/mips/mips.opt (mmips-tfile): Remove.
8567
8568 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8569 mips-tdump reference to ...
200eb7d2 8570 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
8571 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8572 reference by Tru64 UNIX.
8573
2c9da85b
JJ
85742011-04-26 Jakub Jelinek <jakub@redhat.com>
8575
0c5f6539
JJ
8576 PR debug/48768
8577 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8578 is error_mark_node, set value to NULL.
8579
2c9da85b
JJ
8580 PR tree-optimization/48734
8581 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8582 if return value from maybe_fold_*_comparsions isn't something
8583 the code is prepared to handle.
8584
77fa1d54
UB
85852011-04-26 Uros Bizjak <ubizjak@gmail.com>
8586
8587 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8588 mode check.
8589 (ext_QIreg_nomode_operands): Remove.
8590 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8591 (*andsi_1): Ditto.
8592 (*andhi_1): Ditto.
8593
0e2a6c2b
AS
85942011-04-26 Andrew Stubbs <ams@codesourcery.com>
8595
8596 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8597
961562d8
RB
85982011-04-26 Richard Guenther <rguenther@suse.de>
8599
8600 * c-typeck.c (build_unary_op): Do not expand array-refs via
8601 pointer arithmetic. Only adjust qualifiers for function types.
8602
86032011-04-26 Richard Guenther <rguenther@suse.de>
8604
8605 PR middle-end/48694
8606 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8607 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
8608 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8609 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 8610
a0d260fc
PC
86112011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8612
6bec6c98 8613 * doc/extend.texi: Document __underlying_type.
a0d260fc 8614
4d583bb9
SB
86152011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8616
8617 * config/rs6000/titan.md (automata_option "progress"): Remove.
8618
1f3fcdc3
JL
86192011-04-25 Jeff Law <law@redhat.com>
8620
8621 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8622
e5b0dad8
JK
86232011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8624
8625 * system.h (ENUM_BITFIELD): Remove.
8626
5157a881 86272011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 8628 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
8629
8630 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8631 for STORE_FLAG_VALUE==-1 case.
8632
ed4c109e
RS
86332011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8634
8635 PR target/43804
8636 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8637 LEGITIMATE_PIC_OPERAND_P.
8638
f3181aa2
JH
86392011-04-24 Jan Hubicka <jh@suse.cz>
8640
8641 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8642 WPA hack.
77fa1d54
UB
8643 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8644 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8645 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
8646 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8647 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8648 Sanity check predicate length.
8649 (remap_predicate): Likewise; sanity check jump functions.
8650 (inline_read_section, inline_write_summary): Sanity check
8651 predicate length.
8652
5307cbaa
PC
86532011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8654
8655 PR other/48748
8656 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8657 __is_literal_type, and __is_trivial; update throughout about
8658 possibly cv-qualified void types.
8659
bebd5f99
GP
86602011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8661
8662 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8663 testsuite and make it version agnostic.
8664
7ee28a74
JH
86652011-04-22 Jan Hubicka <jh@suse.cz>
8666
8667 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8668
16997bc0
JJ
86692011-04-23 Jakub Jelinek <jakub@redhat.com>
8670
8671 PR c/48685
8672 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8673 to VOID_TYPE even around MODIFY_EXPR.
8674
f94d4ab1
MS
86752011-04-22 Mike Stump <mikestump@comcast.net>
8676
1a84c183 8677 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
8678 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8679 comment.
8680
632b4f8e
JH
86812011-04-22 Jan Hubicka <jh@suse.cz>
8682
8683 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
8684 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8685 ipa-prop.c; update all uses.
632b4f8e 8686 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
8687 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8688 merge summary of inlined function into former caller.
632b4f8e
JH
8689 * ipa-inline.c (max_benefit): Remove.
8690 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
8691 (update_caller_keys): Use
8692 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
8693 (update_callee_keys): Likewise.
8694 (update_all_callee_keys): Likewise.
77fa1d54
UB
8695 (inline_small_functions): Do not collect max_benefit; do not reset
8696 estimated_growth; call free_growth_caches and initialize_growth_caches.
8697 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8698 struct size_time_entry): New structures.
632b4f8e 8699 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
8700 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8701 and estimated_growth.
632b4f8e
JH
8702 (edge_growth_cache_entry): New structure.
8703 (node_growth_cache, edge_growth_cache): New global vars.
8704 (estimate_growth): Turn into inline.
8705 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8706 initialize_growth_caches, free_growth_caches): Declare.
8707 (estimate_edge_growth): Rewrite.
8708 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
8709 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8710 functions.
632b4f8e
JH
8711 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8712 (NUM_CONDITIONS): New constant.
8713 (predicate_conditions): New enum.
8714 (IS_NOT_CONSTANT): New constant.
8715 (edge_removal_hook_holder): New var.
8716 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
8717 (true_predicate, single_cond_predicate, false_predicate,
8718 not_inlined_predicate, add_condition, add_clause, and_predicates,
8719 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8720 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
8721 evaulate_conditions_for_edge): New functions.
8722 (inline_summary_alloc): Move to heap.
8723 (inline_node_removal_hook): Clear condition and entry vectors.
8724 (inline_edge_removal_hook): New function.
8725 (initialize_growth_caches, free_growth_caches): New function.
8726 (dump_inline_summary): Update.
8727 (edge_execution_predicate): New function.
8728 (will_be_nonconstant_predicate): New function.
8729 (estimate_function_body_sizes): Compute BB and constantness predicates.
8730 (compute_inline_parameters): Do not clear estimated_growth.
8731 (estimate_edge_size_and_time): New function.
8732 (estimate_calls_size_and_time): New function.
8733 (estimate_callee_size_and_time): New function.
8734 (remap_predicate): New function.
8735 (inline_merge_summary): New function.
8736 (do_estimate_edge_time): New function based on...
8737 (estimate_edge_time): ... this one.
8738 (do_estimate_edge_growth): New function.
8739 (do_estimate_growth): New function based on....
8740 (estimate_growth): ... this one.
8741 (inline_analyze_function): Analyze after deciding on jump functions.
8742 (inline_read_section): New function.
8743 (inline_read_summary): Use it.
8744 (inline_write_summary): Write all the new data.
8745 * ipa-prop.c (ipa_get_param_decl_index): Export.
8746 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
8747 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8748 Declare.
8749 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
8750 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8751 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8752 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8753 cgraph_edge_inlinable_p): Remove.
8754 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
8755 (cgraph_process_new_functions): Update call of
8756 compute_inline_parameters.
632b4f8e 8757
1df5b0db
RG
87582011-04-22 Richard Guenther <rguenther@suse.de>
8759
8760 * tree.c (build_int_cst): Properly create canonicalized integer
8761 constants.
8762 (build_int_cst_type): Remove scary comments.
8763
ae01169c
XDL
87642011-04-22 Xinliang David Li <davidxl@google.com>
8765
8766 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8767 by default when -Wno-error is not specified.
8768 * opts-global.c (decode_options): Remove call to
8769 control_warning_options.
8770
93dfac24
JJ
87712011-04-22 Jakub Jelinek <jakub@redhat.com>
8772
8773 PR tree-optimization/48717
8774 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8775 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8776
1b5f5069
JM
87772011-04-22 Joseph Myers <joseph@codesourcery.com>
8778
8779 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8780 definition where used.
8781
144f4153
JJ
87822011-04-22 Jakub Jelinek <jakub@redhat.com>
8783
8784 PR c/48716
8785 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8786 TREE_STATIC variables declared inside of some OpenMP construct.
8787
f9fd305b
MJ
87882011-04-22 Martin Jambor <mjambor@suse.cz>
8789
8790 PR middle-end/48585
1d284ec5 8791 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 8792
49819fef
AM
87932011-04-22 Alexander Monakov <amonakov@ispras.ru>
8794
8795 PR c/36750
8796 * c-typeck.c (pop_init_level): Do not warn about initializing
8797 with ` = {0}'.
8798
401f6699
AM
87992011-04-22 Alan Modra <amodra@gmail.com>
8800
8801 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8802 when returning call_cookie.
8803 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8804 pointers, to functions with no more vector args than the current
8805 function, and some non-local calls for ABI_V4.
8806 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8807 sibcall_nonlocal_aix64): Combine to ..
8808 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8809 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8810 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8811 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8812 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8813 operand.
8814 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8815 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8816 sibcall_value_symbolic_64): Delete.
8817
903d1e67
XDL
88182011-04-21 Xinliang David Li <davidxl@google.com>
8819
8820 * cgraph.h: Remove pid.
8821 * cgraph.c: Remove pid.
8822 * value-prof.c (init_node_map): New function.
8823 (del_node_map): New function.
8824 (find_func_by_funcdef_no): New function.
8825 (gimple_ic_transform): Call new function.
8826 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8827 * function.c (get_last_funcdef_no): New function.
8828 * function.h (get_last_funcdef_no): New function.
8829 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8830 to libgcov function.
8831 (tree-profiling): Call node map init and delete function.
8832
7378e95f
ILT
88332011-04-21 Ian Lance Taylor <iant@google.com>
8834
8835 * godump.c (go_format_type): Use exported Go name for anonymous
8836 field name.
8837
e84a6fcf
NF
88382011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8839
8840 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8841 Call builtin_function_type_list instead of builtin_function_type.
8842 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8843
4fe058e2
NF
88442011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8845
8846 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8847 build_function_type_list instead of build_function_type.
8848 Delete variable `endlink'.
8849
1ba0a2d2
NF
88502011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8851
8852 * config/s390/s390.c (s390_init_builtins): Call
8853 build_function_type_list instead of build_function_type.
8854
c0676219
NF
88552011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8856
8857 * config/ia64/ia64.c (ia64_init_builtins): Call
8858 build_function_type_list instead of builtin_function_type.
8859
6ddfda8a
ER
88602011-04-21 Easwaran Raman <eraman@google.com>
8861
3a6448ea 8862 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
8863 (add_stack_var): ...and its reference here...
8864 (expand_stack_vars): ...and here.
8865 (stack_var_cmp): Sort by descending order of size.
8866 (partition_stack_vars): Change heuristic.
1d284ec5 8867 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
8868 (dump_stack_var_partition): Add newline after each partition.
8869
23756963
DA
88702011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8871 Jeff Law <law@redhat.com>
8872
77fa1d54 8873 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
8874 * gengtype.c (matching_file_name_substitute): Likewise.
8875
aa2a43d2
RG
88762011-04-21 Richard Guenther <rguenther@suse.de>
8877
8878 PR lto/48703
1d284ec5 8879 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 8880
4d931f41
EB
88812011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8882
8883 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8884
f103fa7a
RG
88852011-04-21 Richard Guenther <rguenther@suse.de>
8886
8887 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8888 file name.
8889
e19f6650
RG
88902011-04-21 Richard Guenther <rguenther@suse.de>
8891
8892 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8893 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8894 Use DECL_P, not SSA_VAR_P.
8895 (ptr_derefs_may_alias_p): Likewise.
8896 (ptr_deref_may_alias_ref_p_1): Likewise.
8897 (decl_refs_may_alias_p): Likewise.
8898 (refs_may_alias_p_1): Likewise.
8899 (ref_maybe_used_by_call_p_1): Likewise.
8900 (call_may_clobber_ref_p_1): Likewise.
8901 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8902 are either MEM_REF or TARGET_MEM_REF.
8903 (indirect_refs_may_alias_p): Likewise.
8904 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8905 for MEM_EXPR of indirect calls.
8906
9d1831bb
TG
89072011-04-21 Tristan Gingold <gingold@adacore.com>
8908
8909 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8910 (dst_file_info_struct): Remove flen field.
8911 (lookup_filename): Remove code that set flen field.
8912
f199c029
TG
89132011-04-21 Tristan Gingold <gingold@adacore.com>
8914
8915 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8916
2894086e
UB
89172011-04-21 Uros Bizjak <ubizjak@gmail.com>
8918
8919 PR target/48708
8920 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8921 vec_extract and vec_concat for non-SSE4_1 targets.
8922
53f94a5c
RG
89232011-04-21 Richard Guenther <rguenther@suse.de>
8924
8925 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8926 return statements.
8927
f0dca5ba
JM
89282011-04-21 Joseph Myers <joseph@codesourcery.com>
8929
8930 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8931 undefine.
8932 (FILE): Don't undefine.
8933
984514ac
JM
89342011-04-21 Joseph Myers <joseph@codesourcery.com>
8935
8936 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8937 struct rtx_def *.
8938 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8939 struct rtx_def *.
8940 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 8941 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
8942 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8943 rtx_def *.
8944 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8945 definitions where used.
8946 * config/microblaze/microblaze.h (struct microblaze_args): Use
8947 rtx, not struct rtx_def *.
8948 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8949 rtx_def *.
2894086e
UB
8950 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8951 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
8952 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8953 not struct rtx_def *.
8954 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8955 struct rtx_def *.
8956 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8957 rtx_def *.
2894086e 8958 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 8959
0b5a2724
RS
89602011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8961
8962 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8963 operand_equal_p to compare DR_BASE_ADDRESSes.
8964 (vect_check_interleaving): Likewise.
8965
4b18d683
RS
89662011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8967
8968 PR target/46329
8969 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8970 for all Neon struct constants.
8971
1a627b35
RS
89722011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8973
8974 * target.def (legitimate_constant_p): New hook.
8975 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8976 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8977 * doc/tm.texi: Regenerate.
8978 * hooks.h (hook_bool_mode_rtx_true): Declare.
8979 * hooks.c (hook_bool_mode_rtx_true): Define.
8980 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8981 * calls.c (precompute_register_parameters): Replace uses of
8982 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8983 (emit_library_call_value_1): Likewise.
8984 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8985 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8986 * ira-costs.c (scan_one_insn): Likewise.
8987 * recog.c (general_operand, immediate_operand): Likewise.
8988 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8989 * reload1.c (init_eliminable_invariants): Likewise.
8990
8991 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8992 mode argument.
8993 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8994 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8995 argument.
8996 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8997 * config/alpha/predicates.md (input_operand): Update call to
8998 alpha_legitimate_constant_p.
8999
9000 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9001 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9002 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9003 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9004 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9005 (arm_legitimate_constant_p): New functions.
9006 (arm_cannot_force_const_mem): Make static.
9007
9008 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9009
9010 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9011 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9012 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9013 instead of bfin_legitimate_constant_p.
9014 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9015 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9016
9017 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9018
9019 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9020
9021 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9022 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9023 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9024 (frv_legitimate_constant_p): Make static. Add a mode argument.
9025
9026 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9027 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9028 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9029
9030 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9031 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9032 * config/i386/i386.c (legitimate_constant_p): Rename to...
9033 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9034 argument.
9035 (ix86_cannot_force_const_mem): Update accordingly.
9036 (ix86_legitimate_address_p): Likewise.
9037 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9038 * config/i386/i386.md: Update commentary.
9039
9040 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9041 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9042 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9043 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9044
9045 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9046
9047 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9048 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9049 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9050 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9051
9052 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9053 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9054 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9055
9056 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9057 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9058 (m32r_legitimate_constant_p): New function.
9059
9060 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9061 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9062 LEGITIMATE_CONSTANT_P.
9063 (LEGITIMATE_CONSTANT_P): Delete.
9064 * config/m68k/m68k.c (m68k_expand_prologue): Call
9065 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9066 (m68k_legitimate_constant_p): New function.
9067 * config/m68k/m68k.md: Update comments.
9068
9069 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9070 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9071 (mcore_legitimate_constant_p): New function.
9072
9073 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9074 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9075 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9076 Add a mode argument.
9077 (mep_legitimate_address): Update accordingly.
9078 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9079
9080 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9081 Delete.
9082 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9083 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9084 static. Check OP's mode for VOIDmode.
9085 (microblaze_legitimate_constant_p): New function.
9086 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9087
9088 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9089 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9090 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9091 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9092 * config/mips/predicates.md: Update comments.
9093
9094 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9095 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9096 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9097 (mmix_legitimate_constant_p): Make static, return a bool, and take
9098 a mode argument.
9099 (mmix_print_operand_address): Update accordingly.
9100
9101 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9102 Delete.
9103 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
9104 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9105 static. Add a mode argument.
1a627b35
RS
9106 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9107
9108 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9109
9110 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9111 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9112 (pa_legitimate_constant_p): New function.
9113
9114 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9115
9116 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9117 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9118 (pdp11_legitimate_constant_p): New function.
9119
9120 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9121 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9122 (rs6000_legitimate_constant_p): New function.
9123
9124 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9125 (rx_legitimate_constant_p): ...this.
9126 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9127 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9128 (rx_legitimate_constant_p): ...this.
9129 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9130 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9131
9132 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9133 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9134 * config/s390/s390.c (legitimate_constant_p): Rename to...
9135 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9136 and add a mode argument.
9137 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9138
9139 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9140
9141 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9142 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9143 (sh_legitimate_constant_p): New function.
9144
9145 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9146 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9147 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9148 (legitimate_constant_p): Rename to...
9149 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9150 argument.
9151 (constant_address_p): Update accordingly.
9152
9153 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9154 argument and return a bool.
9155 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9156 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9157 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9158 (spu_rtx_costs): Update accordingly.
9159 * config/spu/predicates.md (vec_imm_operand): Likewise.
9160
9161 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9162
9163 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9164 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9165 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9166
9167 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9168 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9169 * config/vax/vax.c (legitimate_constant_p): Likewise.
9170
9171 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9172 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9173 (xtensa_legitimate_constant_p): New function.
9174
fbbf66e7
RS
91752011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9176
9177 * target.def (cannot_force_const_mem): Add a mode argument.
9178 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9179 * doc/tm.texi: Regenerate.
9180 * hooks.h (hook_bool_mode_rtx_false): Declare.
9181 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9182 (hook_bool_mode_const_rtx_true): Likewise.
9183 (hook_bool_mode_rtx_false): New function.
9184 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9185 to be non-VOID. Update call to cannot_force_const_mem.
9186 (find_reloads): Update accordingly.
9187 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9188 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9189 argument.
9190 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9191 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9192 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9193 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9194 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9195 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9196 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9197 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9198 (m68k_cannot_force_const_mem): ...this new function.
9199 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9200 argument.
9201 (mips_const_insns, mips_legitimize_const_move): Update calls.
9202 (mips_secondary_reload_class): Likewise.
9203 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9204 (pa_cannot_force_const_mem): ...this new function.
2894086e 9205 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
9206 (rs6000_cannot_force_const_mem): ...this new function.
9207 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9208 argument.
9209 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9210 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9211 to...
9212 (xtensa_cannot_force_const_mem): ...this new function.
9213
b861891b
NF
92142011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9215
9216 * config/mips/mips.c (mips16_build_function_stub): Call
9217 build_function_type_list instead of build_function_type.
9218 (mips16_build_call_stub): Likewise.
9219
34149ed5
NF
92202011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9221
9222 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9223 instead of build_function_type.
9224
12526412
NF
92252011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9226
9227 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9228 instead of build_function_type.
9229
3b84d61f
UB
92302011-04-20 Uros Bizjak <ubizjak@gmail.com>
9231
9232 PR target/48678
9233 * config/i386/i386.md (insv): Change operand 0 constraint to
9234 "register_operand". Change operand 1 and 2 constraint to
9235 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9236 * config/i386/sse.md (sse4_1_pinsrb): Export.
9237 (sse2_pinsrw): Ditto.
9238 (sse4_1_pinsrd): Ditto.
9239 (sse4_1_pinsrq): Ditto.
9240 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9241 * config/i386/i386.c (ix86_expand_pinsr): New.
9242
4a25752b
ER
92432011-04-20 Easwaran Raman <eraman@google.com>
9244
9245 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9246 containing union type only with -fstrict-aliasing.
9247
04695783
JM
92482011-04-20 Jim Meyering <meyering@redhat.com>
9249
9250 Remove useless if-before-free tests.
9251 * calls.c (expand_call, save_area): Likewise.
9252 * cfgcleanup.c (try_forward_edges): Likewise.
9253 * collect2.c (collect_execute): Likewise.
9254 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9255 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9256 * coverage.c (coverage_checksum_string): Likewise.
9257 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9258 * cselib.c (cselib_init): Likewise.
9259 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9260 (df_set_clean_cfg): Likewise.
9261 * function.c (free_after_compilation): Likewise.
9262 * gcc.c (do_spec_1, main): Likewise.
9263 * gcov.c (create_file_names): Likewise.
9264 * gensupport.c (identify_predicable_attribute): Likewise.
9265 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9266 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9267 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9268 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9269 * ipa-pure-const.c (local_pure_const): Likewise.
9270 * ipa-reference.c (propagate): Likewise.
9271 * ira-costs.c (free_ira_costs): Likewise.
9272 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9273 * matrix-reorg.c (mat_free): Likewise.
9274 * prefix.c (get_key_value): Likewise.
9275 * profile.c (compute_value_histograms): Likewise.
9276 * reload1.c (free_reg_equiv): Likewise.
9277 * sched-deps.c (free_deps): Likewise.
9278 * sel-sched-ir.c (fence_clear): Likewise.
9279 * sese.c (set_rename, if_region_set_false_region): Likewise.
9280 * tree-data-ref.c (free_rdg): Likewise.
9281 * tree-eh.c (lower_try_finally): Likewise.
9282 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9283 * tree-ssa-live.c (delete_var_map): Likewise.
9284 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9285 * tree-ssa-pre.c (phi_trans_add): Likewise.
9286
6788475a
JJ
92872011-04-20 Jakub Jelinek <jakub@redhat.com>
9288
9289 PR tree-optimization/48611
9290 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9291 beyond ERT_MUST_NOT_THROW region.
9292
0eda4033
CM
92932011-04-20 Catherine Moore <clm@codesourcery.com>
9294
9295 * config/mips/mips.opt (mfix-24k): New.
9296 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9297 * config/mips/mips.md (length): Increase by 4 for stores if
9298 fixing 24K errata.
9299 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9300 all noreorder if fixing 24K errata.
9301 * doc/invoke.texi: Document mfix-24k.
9302
01475747
CLT
93032011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9304
9305 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 9306 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 9307
bc2c1a60
AS
93082011-04-20 Andrew Stubbs <ams@codesourcery.com>
9309
9310 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9311 (const_ok_for_op): ... to here.
9312
583722ee
KT
93132011-04-20 Kai Tietz <ktietz@redhat.com>
9314
2894086e
UB
9315 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9316 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 9317
422c0989
AS
93182011-04-20 Andrew Stubbs <ams@codesourcery.com>
9319
9320 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9321
d7978bff
RG
93222011-04-20 Richard Guenther <rguenther@suse.de>
9323
9324 PR tree-optimization/47892
9325 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9326 are if-convertible.
9327
818412ba
EB
93282011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9329
9330 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9331
b501ce4e
TG
93322011-04-20 Tristan Gingold <gingold@adacore.com>
9333
9334 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9335
516edfdd
GJL
93362011-04-20 Georg-Johann Lay <avr@gjlay.de>
9337
9338 PR target/18145
9339
9340 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9341 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9342 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9343 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9344 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9345
9346 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9347 New prototype.
9348
9349 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9350 (avr_asm_named_section, avr_asm_output_aligned_common,
9351 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9352 New functions to update...
9353 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9354 (avr_asm_init_sections): Overwrite section callbacks for
9355 data_section, bss_section.
9356 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9357 from here to...
9358 (avr_file_end): ...here.
9359
dafc9511
RG
93602011-04-20 Richard Guenther <rguenther@suse.de>
9361
9362 PR middle-end/48695
9363 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 9364 objects and types here. Adjust for their offset before comparing.
dafc9511 9365
1da0876c
RS
93662011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9367
9368 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9369 statement per copy.
9370
25583c4f
RS
93712011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9372
9373 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9374 (GIMPLE_H): Include $(INTERNAL_FN_H).
9375 (OBJS-common): Add internal-fn.o.
9376 (internal-fn.o): New rule.
9377 * internal-fn.def: New file.
9378 * internal-fn.h: Likewise.
9379 * internal-fn.c: Likewise.
9380 * gimple.h: Include internal-fn.h.
9381 (GF_CALL_INTERNAL): New gf_mask.
9382 (gimple_statement_call): Put fntype into a union with a new
9383 internal_fn field.
9384 (gimple_build_call_internal): Declare.
9385 (gimple_build_call_internal_vec): Likewise.
9386 (gimple_call_same_target_p): Likewise.
9387 (gimple_call_internal_p): New function.
9388 (gimple_call_internal_fn): Likewise.
9389 (gimple_call_fntype): Return null for internal calls.
9390 (gimple_call_set_fntype): Assert that the function is not internal.
9391 (gimple_call_set_fn): Likewise.
9392 (gimple_call_set_fndecl): Likewise.
9393 (gimple_call_set_internal_fn): New function.
9394 (gimple_call_addr_fndecl): Handle null functions.
9395 (gimple_call_return_type): Likewise null types.
9396 * gimple.c (gimple_build_call_internal_1): New function.
9397 (gimple_build_call_internal): Likewise.
9398 (gimple_build_call_internal_vec): Likewise.
9399 (gimple_call_same_target_p): Likewise.
9400 (gimple_call_flags): Handle calls to internal functions.
9401 (gimple_call_fnspec): New function.
9402 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9403 (gimple_has_side_effects): Handle null functions.
9404 (gimple_rhs_has_side_effects): Likewise.
9405 (gimple_call_copy_skip_args): Handle calls to internal functions.
9406 * cfgexpand.c (expand_call_stmt): Likewise.
9407 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9408 * gimple-fold.c (gimple_fold_call): Handle null functions.
9409 (gimple_fold_stmt_to_constant_1): Don't fold
9410 calls to internal functions.
9411 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9412 functions.
9413 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9414 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9415 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9416 (do_warn_unused_result): Likewise.
9417 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9418 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9419 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9420 the target of a call.
9421 (initialize_hash_element): Update accordingly.
9422 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9423 (iterative_hash_hashable_expr): Handle calls to internal functions.
9424 (print_expr_hash_elt): Likewise.
9425 * tree-ssa-pre.c (can_value_number_call): Likewise.
9426 (eliminate): Handle null functions.
9427 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9428 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9429 (find_func_aliases): Likewise.
9430 * value-prof.c (gimple_ic_transform): Likewise.
9431 (gimple_indirect_call_to_profile): Likewise.
9432 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9433 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9434
1a3118e9
JH
94352011-04-19 Jan Hubicka <jh@suse.cz>
9436
9437 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
9438 * ipa-inline.c (inline_small_functions): Compute summaries first,
9439 populate heap later.
1a3118e9 9440
fee8b6da
JH
94412011-04-19 Jan Hubicka <jh@suse.cz>
9442
9443 * cgraph.h (save_inline_function_body): Remove.
9444 * ipa-inline-transform.c: New file, broke out of...
9445 * ipa-inline.c: ... this one; Update toplevel comment.
9446 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9447 make global.
9448 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9449 (cgraph_mark_inline_edge): Rename to inline_call; move to
9450 ipa-inline-transform.c.
9451 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9452 move to ipa-inline-transform.c
9453 (recursive_inlining, inline_small_functions, flatten_function,
9454 ipa_inline, inline_always_inline_functions,
9455 early_inline_small_functions): Update.
9456 (inline_transform): Move to ipa-inline-transform.c.
9457 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9458 Declare.
9459 * Makefile.in (ipa-inline-transform.o): New file.
9460 * cgraphunit.c (save_inline_function_body): Move to
9461 ipa-inline-transform.c
9462
f0679612
DD
94632011-04-19 DJ Delorie <dj@redhat.com>
9464
9465 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9466 registers if we already know there aren't any.
9467 (m32c_emit_epilogue): Don't emit a barrier here.
9468 (m32c_emit_eh_epilogue): Likewise.
9469 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9470 operands at expand time.
9471 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9472 int" wchar type.
9473 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9474 duplicates. Provide aliases instead.
9475 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9476 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9477 the compiler.
9478
32257ddc
AS
94792011-04-19 Anatoly Sokolov <aesok@post.ru>
9480
9481 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9482 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9483 (general_or_i64_p, sparc_register_move_cost): New function.
9484
60bea929
RO
94852011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9486
9487 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 9488 Add lynx, mipssde. Sort table.
60bea929 9489
444b3995 94902011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 9491
9d12f71a
EB
9492 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9493 not negative.
444b3995 9494
d708ce50
JJ
94952011-04-19 Jakub Jelinek <jakub@redhat.com>
9496
9497 PR target/48678
9498 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9499 is a SUBREG with non-MODE_INT mode inside of it.
9500
49c471e3
MJ
95012011-04-19 Martin Jambor <mjambor@suse.cz>
9502
9503 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9504 also according to actual contants.
9505 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9506 (gimple_fold_call): Use it.
9507 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9508
0004f992
MJ
95092011-04-19 Martin Jambor <mjambor@suse.cz>
9510
9511 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9512 non-pointer assignments.
9513
40591473
MJ
95142011-04-19 Martin Jambor <mjambor@suse.cz>
9515
9516 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9517 account anc_offset and otr_type from the indirect edge info.
9518 * ipa-prop.c (get_ancestor_addr_info): New function.
9519 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9520 get_ancestor_addr_info, call it.
9521 (ipa_note_param_call): Do not initialize information about polymorphic
9522 calls, return the indirect call graph edge. Remove the last
9523 parameter, adjust all callers.
9524 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9525 parameters. Initialize polymorphic information in the indirect edge.
9526
abe36b81
EB
95272011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9528
9529 PR lto/48148
9530 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9531 the types if they have different enumeration identifiers.
9532
e6416b30
JH
95332011-04-19 Jan Hubicka <jh@suse.cz>
9534
9535 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9536 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9537 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9538 (optimize_function_for_size_p) ... here.
9539
d39132ea
RG
95402011-04-19 Richard Guenther <rguenther@suse.de>
9541
9542 PR lto/48207
9543 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9544 langhook.
9545
ff7037dc
EB
95462011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9547
9548 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9549 if DECL_NO_INLINE_WARNING_P is set on the function.
9550
c1ee2892
BS
95512011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9552
9553 PR fortran/47976
9554 * reload1.c (inc_for_reload): Return void. All callers changed.
9555 (emit_input_reload_insns): Don't try to delete previous output
9556 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
9557
95582011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9559
9560 * gengtype.h: Updated copyright year.
9561 (struct input_file_st): Add inpisplugin field.
9562 (type_fileloc): New function.
9563 * gengtype.c
9564 (write_typed_struct_alloc_def): Add gcc_assert.
9565 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9566 (write_typed_alloc_defns): Don't output for plugin files.
9567 (input_file_by_name): Clear inpisplugin field.
9568 (main): Set inpisplugin field for plugin files.
9569
897e0a89
NP
95702011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9571
9572 * gengtype-state.c (string_eq): New.
9573 (read_state): Use string_eq instead of strcmp when creating the
9574 state_ident_tab.
9575
363ee90e
WG
95762011-04-19 Wei Guozhi <carrot@google.com>
9577
9578 PR target/47855
9579 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9580 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9581 linkage.
9582 * config/arm/constraints.md (Uu): New constraint.
9583 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9584
18a24fed
TG
95852011-04-19 Tristan Gingold <gingold@adacore.com>
9586
9587 * config.gcc (-*-*-*vms): Added.
9588 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9589 definitions moved.
9590 * config/vms/vms-ld.c: New file.
9591 * config/vms/vms-ar.c: New file.
9592 * config/vms/t-vmsnative: New file.
9593
1c13f168
XDL
95942011-04-18 Xinliang David Li <davidxl@google.com>
9595
9596 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9597
84825707
JJ
95982011-04-18 Jakub Jelinek <jakub@redhat.com>
9599
9600 PR middle-end/48661
9601 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9602 if TREE_TYPE (v) is non-NULL.
9603
9604 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9605 gimple_get_virt_mehtod_for_binfo.
9606 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9607 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9608 callers.
9609 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9610
7d4f8d02 96112011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
9612 Steve Ellcey <sje@cup.hp.com>
9613
7d4f8d02
EB
9614 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9615 use its mode as source mode if it isn't VOIDmode.
7254cb57 9616
474e8e70
DCR
96172011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9618
9619 * doc/passes.texi: Fill crossref nodes.
9620
cff41484
JM
96212011-04-18 Jim Meyering <meyering@redhat.com>
9622
7d4f8d02 9623 Fix doubled-word typos in comments and strings
cff41484
JM
9624 * config/alpha/vms-unwind.h: s/for for/for/
9625 * config/arm/unwind-arm.h: Likewise.
9626 * config/microblaze/microblaze.c: Likewise.
9627 * config/sh/constraints.md: s/in in/in/
9628 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9629
f60c2554
UB
96302011-04-18 Uros Bizjak <ubizjak@gmail.com>
9631
9632 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9633 (AVX_FLOAT_MODE_P): Ditto.
9634 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9635 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9636 (AVX_VEC_FLOAT_MODE_P): Ditto.
9637 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9638 (UNSPEC_MASKSTORE): Ditto.
9639 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9640 Merge from <sse>_movmsk<ssemodesuffix> and
9641 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9642 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9643 iterator.
9644 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9645 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9646 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9647
09a2806f
JH
96482011-04-18 Jan Hubicka <jh@suse.cz>
9649
8a8dccb2
JH
9650 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9651
09a2806f
JH
9652 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9653 (want_inline_function_called_once_p): Break out the logic from
9654 ipa_inline.
9655 (edge_badness): Ensure that profile is not misupdated.
9656 (lookup_recursive_calls): Prioritize by call frequencies.
9657 (inline_small_functions): Move program size estimates here;
9658 actually process whole queue even when unit growth has been
9659 met. (to properly compute inline_failed reasons and for the
f60c2554 9660 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
9661 (ipa_inline): Remove unit summary code; first inline hot calls
9662 of functions called once, cold calls next.
9663 (order, nnodes): Remove unused variables.
9664 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9665 (GTFILES): Remove ipa-inline.c
9666 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9667
3eea52ef
EB
96682011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9669
9670 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9671
229a1c59 96722011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 9673 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
9674
9675 * arm.c (neon_builtin_type_bits): Remove.
9676 (typedef enum neon_builtin_mode): New.
9677 (T_MAX): Don't define.
9678 (typedef enum neon_builtin_datum): Remove bits, codes[],
9679 num_vars and base_fcode. Add mode, code and fcode.
9680 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9681 VAR10): Change accordingly.
9682 (neon_builtin_data[]): Change accordingly
9683 (arm_init_neon_builtins): Change accordingly.
9684 (neon_builtin_compare): Remove.
9685 (locate_neon_builtin_icode): Remove.
9686 (arm_expand_neon_builtin): Change accordingly.
9687
9688 * arm.h (enum arm_builtins): Move to ...
9689 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9690
9691 * arm.c (arm_builtin_decl): Declare.
9692 (TARGET_BUILTIN_DECL): Define.
9693 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9694 (arm_builtin_decls[]): New.
9695 (arm_init_neon_builtins): Store builtin declarations in
9696 arm_builtin_decls[].
9697 (arm_init_tls_builtins): Likewise.
9698 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9699 (arm_builtin_decl): New.
9700
75e802cc
RG
97012011-04-18 Richard Guenther <rguenther@suse.de>
9702
9703 * tree.c (upper_bound_in_type): Build properly canonicalized
9704 INTEGER_CSTs.
9705 (lower_bound_in_type): Likewise.
9706
3b45a007
RG
97072011-04-18 Richard Guenther <rguenther@suse.de>
9708
9709 * gimple.h (gimple_call_addr_fndecl): New function.
9710 (gimple_call_fndecl): Use it.
9711 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9712 for direct calls.
9713 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9714 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9715
d25a79ea
RG
97162011-04-18 Richard Guenther <rguenther@suse.de>
9717
9718 PR middle-end/48650
9719 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9720
7d5fc814
EB
97212011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9722
9723 PR lto/48492
9724 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9725 DECL_IN_CONSTANT_POOL without RTL.
9726
7e7cfcf6
UW
97272011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9728 Ira Rosen <ira.rosen@linaro.org>
9729
9730 PR target/48252
9731 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9732 to match neon_vzip/vuzp/vtrn_internal.
9733 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9734 outputs explicitly dependent on both inputs.
9735 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9736
49eab32e
JJ
97372011-04-18 Jakub Jelinek <jakub@redhat.com>
9738
9739 PR tree-optimization/48616
9740 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9741 whether the shift is by scalar or vector based on whether all SLP
9742 scalar stmts have the same rhs.
9743
e54170f4
CLT
97442011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9745
9746 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9747 memory operands.
9748
b14ee6c9
RS
97492011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9750
269e0e18 9751 PR target/43700
b14ee6c9
RS
9752 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9753 registers.
9754
10158cd3
JH
97552011-04-17 Jan Hubicka <jh@suse.cz>
9756
9757 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
9758 * cgrpahunit.c (cgraph_finalize_function): Do not set
9759 finalized_by_frontend.
10158cd3
JH
9760 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9761 finalized_by_frontend.
9762
2e9bb6ba
JH
97632011-04-17 Jan Hubicka <jh@suse.cz>
9764
9765 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9766 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9767 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
9768 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9769 method.
2e9bb6ba
JH
9770 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9771 gimple-fold.c
9772 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9773
beb628e1
EB
97742011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9775
9776 PR lto/48538
9777 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9778 is non-null before accessing it.
9779 (input_cgraph): Remove trailing spaces.
9780
3e2fdd24
RE
97812011-04-17 Revital Eres <revital.eres@linaro.org>
9782
9783 * params.def (sms-min-sc): New param flag.
9784 * modulo-sched.c (sms_schedule): Use it.
9785 * doc/invoke.texi (sms-min-sc): Document it.
9786
4c0f7679
JH
97872011-04-17 Jan Hubicka <jh@suse.cz>
9788
9789 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9790 present, also set gimple_call_set_cannot_inline.
9791 * ipa-inline.c: Update toplevel comment.
9792 (MAX_TIME): Remove.
9793 (cgraph_clone_inlined_nodes): Fix linebreaks.
9794 (cgraph_check_inline_limits): Restructure to ...
9795 (caller_growth_limits): ... this one; be more tolerant
9796 on growth in nested inline chains; add explanatory comment;
9797 fix stack accounting thinko introduced by previous patch.
9798 (cgraph_default_inline_p): Remove.
9799 (report_inline_failed_reason): New function.
9800 (can_inline_edge_p): New function.
9801 (can_early_inline_edge_p): New function.
9802 (leaf_node_p): Move upwards in file.
9803 (want_early_inline_function_p): New function.
9804 (want_inline_small_function_p): New function.
9805 (want_inline_self_recursive_call_p): New function.
9806 (cgraph_edge_badness): Rename to ...
9807 (edge_badness) ... this one; fix linebreaks.
9808 (update_edge_key): Update call of edge_baddness; add
9809 detailed dump about queue updates.
9810 (update_caller_keys): Use can_inline_edge_p and
9811 want_inline_small_function_p.
9812 (cgraph_decide_recursive_inlining): Rename to...
9813 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
9814 want_inline_self_recursive_call_p; simplify and remove no longer
9815 valid FIXME.
4c0f7679
JH
9816 (cgraph_set_inline_failed): Remove.
9817 (add_new_edges_to_heap): Use can_inline_edge_p and
9818 want_inline_small_function_p.
9819 (cgraph_decide_inlining_of_small_functions): Rename to ...
9820 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
9821 can/want predicates; cleanup debug ouput; work edges till fibheap
9822 is exhausted and do not stop once unit growth is reached; remove
9823 later loop processing remaining edges.
4c0f7679
JH
9824 (cgraph_flatten): Rename to ...
9825 (flatten_function): ... this one; use can_inline_edge_p
9826 and can_early_inline_edge_p predicates.
9827 (cgraph_decide_inlining): Rename to ...
9828 (ipa_inline): ... this one; remove unreachable nodes before
9829 inlining functions called once; simplify the pass.
9830 (cgraph_perform_always_inlining): Rename to ...
9831 (inline_always_inline_functions): ... this one; use
f60c2554 9832 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
9833 (cgraph_decide_inlining_incrementally): Rename to ...
9834 (early_inline_small_functions): ... this one; simplify
9835 using new predicates; cleanup; make dumps prettier.
9836 (cgraph_early_inlining): Rename to ...
9837 (early_inliner): newer inline regular functions into always-inlines;
9838 fix updating of call stmt summaries.
9839 (pass_early_inline): Update for new names.
9840 (inline_transform): Fix formating.
9841 (gate_cgraph_decide_inlining): Rename to ...
9842 (pass_ipa_inline): ... this one.
9843 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9844 * ipa-inline-analysis.c (dump_inline_summary): Update.
9845 (compute_inline_parameters): Do not compute disregard_inline_limits;
9846 look for mismatching arguments.
9847 (estimate_growth): Fix handlig of non-trivial self recursion.
9848 (inline_read_summary): Do not read info->disregard_inline_limits.
9849 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
9850 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9851 and move all checks into can_inline_edge_p predicate; re-enable code
9852 comparing optimization levels.
4c0f7679
JH
9853 (expand_call_inline): Do not test inline_forbidden_into_p.
9854 * Makefile.in (ipa-inline.o): Update arguments.
9855
54333b7c
RE
98562011-04-17 Revital Eres <revital.eres@linaro.org>
9857
9858 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9859
42c2bf92
RE
98602011-04-17 Revital Eres <revital.eres@linaro.org>
9861
9862 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9863
b183e9e0
MM
98642011-04-17 Michael Matz <matz@suse.de>
9865
9866 PR tree-optimization/48622
9867 PR lto/48645
9868 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9869 in same order as they're written.
9870
b8a17fa2
JDA
98712011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9872
9873 * config/pa/predicates.md: Reorganize and simplify predicates.
9874 Eliminate duplicate code checks.
9875 (arith_operand): Rename to arith14_operand
9876 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9877 * config/pa/pa.md: Use renamed operands.
9878 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9879 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9880 arith11_operand, adddi3_operand, indexed_memory_operand,
9881 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9882 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9883 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9884 move_dest_operand, move_src_operand, prefetch_cc_operand,
9885 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9886 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9887 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9888 div_operand, int5_operand, movb_comparison_operator,
9889 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9890 arith_double_operand, ireg_operand, lhs_lshift_operand,
9891 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9892 integer_store_memory_operand): Likewise.
9893 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9894 (integer_store_memory_operand, read_only_operand,
9895 function_label_operand, borx_reg_operand,
9896 non_hard_reg_operand): Likewise.
9897 (eq_neq_comparison_operator): Delete unused operator.
9898 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9899 function_label_operand.
9900 (emit_move_sequence): Likewise.
9901
8dfb9f16
UB
99022011-04-16 Uros Bizjak <ubizjak@gmail.com>
9903
9904 * config/i386/sse.md (sseunpackmode): New mode attribute.
9905 (ssepackmode): Ditto.
9906 (vec_pack_trunc_<mode>): Macroize expander from
9907 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9908 (vec_unpacks_lo_<mode>): Macroize expander from
9909 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9910 (vec_unpacks_hi_<mode>): Macroize expander from
9911 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9912 (vec_unpacku_lo_<mode>): Macroize expander from
9913 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9914 (vec_unpacku_hi_<mode>): Macroize expander from
9915 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9916 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9917 ix86_expand_sse4_unpack.
9918 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9919
e7f23018
JH
99202011-04-16 Jan Hubicka <jh@suse.cz>
9921
9922 * cgraphbuild.c: Include ipa-inline.h.
9923 (reset_inline_failed): Use initialize_inline_failed.
9924 * cgraph.c: Include ipa-inline.h.
9925 (cgraph_create_node_1): Do not initialize estimated_growth.
9926 (initialize_inline_failed): More to ipa-inline-analysis.c
9927 (dump_cgraph_node): Do not dump inline flags.
9928 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9929 and disregard_inline_limits flags.
9930 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9931 time, size, estimated_growth.
8dfb9f16
UB
9932 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9933 Update.
e7f23018
JH
9934 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9935 DECL_DISREGARD_INLINE_LIMITS.
9936 (cgraph_analyze_function): Do not initialize
9937 node->local.disregard_inline_limits.
9938 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9939 inlinable, versionable and disregard_inline_limits.
9940 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
9941 cgraph_check_inline_limits, cgraph_default_inline_p,
9942 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9943 add_new_edges_to_heap): Update.
9944 (cgraph_decide_inlining_of_small_function): Update; set
9945 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
9946 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9947 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
9948 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9949 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9950 time, size and estimated_growth parameters.
e7f23018
JH
9951 (estimate_edge_growth): Update.
9952 (initialize_inline_failed): Declare.
9953 * ipa-split.c: Include ipa-inline.h
9954 (execute_split_functions): Update.
9955 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9956 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9957 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9958 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9959 estimated_growth to INT_MIN.
9960 (inline_node_duplication_hook): Likewise.
9961 (dump_inline_summary): Dump new fields.
9962 (compute_inline_parameters): Update.
9963 (estimate_edge_time, estimate_time_after_inlining,
9964 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9965 inline_write_summary):
9966 (initialize_inline_failed): Move here from cgraph.c.
9967 * tree-sra.c: Include ipa-inline.h.
9968 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
9969 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9970 ipa-inline.h.
e7f23018 9971
e81b8564
UB
99722011-04-16 Uros Bizjak <ubizjak@gmail.com>
9973
9974 * config/i386/sse.md (V16): New mode iterator.
9975 (VI1, VI8): Ditto.
9976 (AVXMODEQI, AVXMODEDI): Remove.
9977 (sse2, sse3): New mode attribute.
9978 (mov<mode>): Use V16 mode iterator.
9979 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9980 (push<mode>1): Use V16 mode iterator.
9981 (movmisalign<mode>): Ditto.
9982 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9983 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9984 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9985 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9986 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9987 avx_movdqu<avxmodesuffix>.
9988 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9989 *avx_movdqu<avxmodesuffix>.
9990 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9991 avx_lddqu<avxmodesuffix>.
9992 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9993 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9994 avx_movnt<AVXMODEDI:mode>.
9995 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9996 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9997
4743d438
BS
99982011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9999
10000 PR target/48629
10001 * haifa-sched.c (prune_ready_list, schedule_block): Use
10002 sched_pressure_p rather than flag_sched_pressure.
10003
748f7574 100042011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
10005
10006 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10007 cgraph_get_node instead of cgraph_get_create_node.
10008
2ba172e0
JJ
100092011-04-15 Jakub Jelinek <jakub@redhat.com>
10010
10011 * cfgexpand.c (expand_debug_expr): Use
10012 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10013
63d2a353
MM
100142011-04-15 Michael Matz <matz@suse.de>
10015
10016 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10017 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10018 * function.c (gimplify_parameters): Ditto.
10019 * gimplify.c (gimplify_vla_decl): Ditto.
10020
10021 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10022 (gimple_call_set_alloca_for_var): New inline function.
10023 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
10024 * gimple.c (gimple_build_call_from_tree): Remember
10025 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
10026 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10027
10028 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10029 calls if they were for VLA objects.
10030
dee74c34
MJ
100312011-04-15 Martin Jambor <mjambor@suse.cz>
10032
10033 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10034 of ADR_EXPRs.
10035
8e5837bc
MJ
100362011-04-15 Martin Jambor <mjambor@suse.cz>
10037
10038 PR middle-end/48601
10039 * tree-emutls.c (lower_emutls_function_body): Call
10040 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10041 result is non-NULL.
10042
0dc33c3c
NP
100432011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10044
10045 * c-decl.c (detect_field_duplicates): Call
10046 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10047
edcdea5b
NF
100482011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10049
10050 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10051 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10052 * ipa-pure-const.c (check_stmt): Call it.
10053 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10054
8456558d
RG
100552011-04-15 Richard Guenther <rguenther@suse.de>
10056
10057 PR tree-optimization/48290
10058 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10059 Properly decide inhibiting propagation based on the valueized
10060 operand. Do loop-closed SSA form preserving here ...
10061 (init_copy_prop): ... not here.
10062
266446be
L
100632011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10064
10065 PR target/48612
10066 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10067 (*ieee_smax<mode>3): Likewise.
10068
17465c6e
AK
100692011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10070
10071 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10072 Replace match_operand with match_dup for the third operand in
10073 these expanders.
10074
bce204e5
MK
100752011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10076
10077 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10078 to track processing of conditionals. Update all callers.
10079 (try_combine, simplify_if_then_else): Update.
10080
3162fdf4
MK
100812011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10082
10083 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10084 -fsched-pressure.
10085
79002a57 100862011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 10087
79002a57
GJL
10088 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10089 instead of match_operand for operand 3.
10090
4fd3a105
RS
100912011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10092
10093 * recog.h (insn_operand_data): Add an "allows_mem" field.
10094 * genoutput.c (output_operand_data): Initialize it.
10095 * optabs.c (maybe_legitimize_operand_same_code): New function.
10096 (maybe_legitimize_operand): Use it when matching the original
10097 op->value.
10098
ad19c4be
EB
100992011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10100
10101 * gimplify.c: Fix issues in comments throughout.
10102 (voidify_wrapper_expr): Fix long line.
10103 (build_stack_save_restore): Likewise.
10104 (gimplify_loop_expr): Likewise.
10105 (gimplify_compound_lval): Likewise.
10106 (gimplify_init_ctor_eval): Likewise.
10107 (gimplify_modify_expr_rhs): Likewise.
10108 (omp_notice_threadprivate_variable): Likewise.
10109
b25aa0e8 101102011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 10111
b25aa0e8
EB
10112 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10113 original one if this is not a builtin function.
e7925582 10114
09db7afe
JJ
101152011-04-14 Jakub Jelinek <jakub@redhat.com>
10116
10117 PR target/48605
10118 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10119 offset it as needed based on top 2 bits in operands[3], change
10120 MEM mode to SFmode and mask those 2 bits away from operands[3].
10121
c59633d9
NP
101222011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10123
10124 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10125 change from objc_declare_protocols() to objc_declare_protocol().
10126
5e60198b
UB
101272011-04-14 Uros Bizjak <ubizjak@gmail.com>
10128
10129 * config/i386/sse.md (sse4_1): New mode attribute.
10130 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10131 avx_blend<ssemodesuffix><avxmodesuffix> and
10132 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10133 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10134 avx_blendv<ssemodesuffix><avxmodesuffix> and
10135 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10136 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10137 avx_dp<ssemodesuffix><avxmodesuffix> and
10138 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10139 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10140 (sse4_1_packusdw): Merge with *avx_packusdw.
10141 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10142 (sse4_1_pblendw): Merge with *avx_pblendw.
10143 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10144 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10145 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10146 VF mode iterator.
10147 (sse4_1_round<ssescalarmodesuffix>): Merge with
10148 *avx_round<ssescalarmodesuffix>.
10149 (aesenc): Merge with *avx_aesenc.
10150 (aesenclast): Merge with *avx_aesenclast.
10151 (aesdec): Merge with *avx_aesdec.
10152 (aesdeclast): Merge with *avx_aesdeclast.
10153 (pclmulqdq): Merge with *pclmulqdq.
10154 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10155 New predicate.
10156 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10157
6f197850
L
101582011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10159
10160 PR middle-end/48608
10161 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10162 (align_local_variable): This. Update DECL_ALIGN.
10163 (add_stack_var): Updated.
10164 (expand_one_stack_var): Likewise.
10165
4a5ba3ed
RG
101662011-04-14 Richard Guenther <rguenther@suse.de>
10167
10168 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10169 Remove.
10170 (dse_initialize_block_local_data, dse_leave_block,
10171 record_voperand_set, get_stmt_uid): Likewise.
10172 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10173 (dse_optimize_stmt): Remove voperand set handling code.
10174 Simplify and improve to handle any kind of killing stmt.
10175 (dse_record_phi): Remove.
10176 (dse_enter_block): Simplify.
10177 (tree_ssa_dse): Likewise.
10178 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10179
10a5dd5d
JH
101802011-04-14 Jan Hubicka <jh@suse.cz>
10181
10182 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10183 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10184 (cgraph_local_info): Remove inline_summary.
10185 * ipa-cp.c: Include ipa-inline.h.
10186 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10187 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10188 accesor.
10189 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10190 (input_overwrite_node): Do not set inline summary.
10191 (input_node): Do not stream inline summary.
10192 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10193 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10194 growth; we do not have inline parameters computed for that anyway.
10195 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10196 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10197 (inline_summary_t): New type and VECtor.
10198 (debug_inline_summary, dump_inline_summaries): Declare.
10199 (inline_summary): Use VOCtor.
10200 (estimate_edge_growth): Kill hack computing call stmt size directly.
10201 * lto-section-in.c (lto_section_name): Add inline section.
10202 * ipa-inline-analysis.c: Include lto-streamer.h
10203 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10204 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10205 (inline_summary_vec): Define.
10206 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10207 dump_inline_summaries): New functions.
5e60198b
UB
10208 (estimate_function_body_sizes): Properly compute size/time of outgoing
10209 calls.
10210 (compute_inline_parameters): Alloc inline_summary; do not compute
10211 size/time of incomming calls.
10a5dd5d
JH
10212 (estimate_edge_time): Avoid missing time summary hack.
10213 (inline_read_summary): Read inline summary info.
10214 (inline_write_summary): Write inline summary info.
10215 (inline_free_summary): Free all hooks and inline summary vector.
10216 * lto-streamer.h: Add LTO_section_inline_summary section.
10217 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10218 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10219
b602d918
RS
102202011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10221
10222 * tree-vectorizer.h (vect_strided_store_supported): Add a
10223 HOST_WIDE_INT argument.
10224 (vect_strided_load_supported): Likewise.
10225 (vect_permute_store_chain): Return void.
10226 (vect_transform_strided_load): Likewise.
10227 (vect_permute_load_chain): Delete.
10228 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10229 count argument. Check that the count is a power of two.
10230 (vect_strided_load_supported): Likewise.
10231 (vect_permute_store_chain): Return void. Update after above changes.
10232 Assert that the access is supported.
10233 (vect_permute_load_chain): Likewise.
10234 (vect_transform_strided_load): Return void.
10235 * tree-vect-stmts.c (vectorizable_store): Update calls after
10236 above interface changes.
10237 (vectorizable_load): Likewise.
10238 (vect_analyze_stmt): Don't check for strided powers of two here.
10239
ab4472fa
RG
102402011-04-14 Richard Guenther <rguenther@suse.de>
10241
10242 PR tree-optimization/48590
10243 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10244 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10245 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10246 BUILT_IN_STACK_SAVE.
10247 * tree-ssa-dce.c (propagate_necessity): Handle
10248 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10249
32dabdaf
NP
102502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10251
10252 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10253 objc_declare_class.
10254
daade206
RG
102552011-04-14 Richard Guenther <rguenther@suse.de>
10256
10257 * tree.h (get_object_alignment_1): Declare.
10258 * builtins.c (get_object_alignment_1): Split out worker from ...
10259 (get_object_alignment): ... here.
10260 * fold-const.c (get_pointer_modulus_and_residue): Use
10261 get_object_alignment_1.
10262
920e8172
RS
102632011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10264
10265 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10266 type parameter.
10267 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10268 parameter. Generalise code to handle arrays as well as vectors.
10269 (vect_setup_realignment): Update accordingly.
10270 * tree-vect-stmts.c (vectorizable_store): Likewise.
10271 (vectorizable_load): Likewise.
10272
5ce1ee7f
RS
102732011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10274
10275 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10276 within the per-copy loop.
10277
6438fe33 102782011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
10279
10280 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10281 in the dump file.
10282
6438fe33 102832011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
10284
10285 * doc/options.texi (Negative): Explicitly mention that the
10286 Negative chain must be circular.
10287
61e46a7d
NF
102882011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10289
10290 * function.h (block_chainon): Declare.
10291 * function.c (block_chainon): Define.
10292
43ea6502 102932011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 10294 Eric Weddington <eric.weddington@atmel.com>
748f7574 10295 Georg-Johann Lay <avr@gjlay.de>
5e60198b 10296
f60c2554 10297 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
10298 New Includes
10299 (avr_init_builtins, avr_expand_builtin,
10300 avr_expand_delay_cycles, avr_expand_unop_builtin,
10301 avr_expand_binop_builtin ): New functions.
10302 (avr_builtin_id): New enum
10303 (struct avr_builtin_description): New struct
10304 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10305 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 10306
43ea6502 10307 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 10308 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
10309 UNSPECV_DELAY_CYCLES): new enumeration values
10310 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10311 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10312 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10313 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10314 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10315 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10316 "fmulsu"): New insns
5e60198b 10317
43ea6502
AS
10318 * config/avr/avr-c.c: fix line endings
10319 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10320 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10321 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10322 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10323 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 10324
43ea6502
AS
10325 * doc/extend.texi (AVR Built-in Functions): New node
10326 (Target Builtins): Add documentation of AVR
10327 built-in functions.
10328
8a9b55f3
GJL
103292011-04-14 Georg-Johann Lay <avr@gjlay.de>
10330
10331 PR target/44643
10332 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10333 alone. Error if non-const data has attribute progmem.
10334
94bd1825
NF
103352011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10336
10337 * tree.h (struct tree_constructor): Include tree_typed instead of
10338 tree_common.
10339 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10340 TS_TYPED instead of TS_COMMON.
10341
5e60198b 103422011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
10343
10344 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10345 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10346 (sse2_psadbw): Merge with *avx_psadbw.
10347 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10348 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10349 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10350 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10351 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10352 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10353 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10354 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10355 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10356 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10357 (ssse3_palignrti): Merge with *avx_palignrti.
10358
4b1a4694
NF
103592011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10360
10361 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10362 * tree-ssanames.c (fini_ssanames): VEC_free it.
10363 (make_ssa_name_fn): Update for VECness of free_ssanames.
10364 (release_ssa_name, release_dead_ssa_names): Likewise.
10365 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10366 tree_common.
10367 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10368 TS_TYPED instead of TS_COMMON.
10369
4da3b811
NF
103702011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10371
10372 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10373 statistics_counter_event.
10374 * tree-ssa-copyrename.c (stats): Define.
10375 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10376 statistics_counter_event.
10377 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10378 (bswap_stats, widen_mul_stats): Define.
10379 (insert_reciprocals): Increment rdivs_inserted.
10380 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10381 rfuncs_inserted. Add calls to statistics_counter_event.
10382 (execute_cse_sincos_1): Increment inserted.
10383 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10384 statistics_counter_event.
10385 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10386 of bswap_stats. Add calls to statistics_counter_event.
10387 (convert_mult_to_widen): Increment widen_mults_inserted.
10388 (convert_plusminus_to_widen): Increment maccs_inserted.
10389 (convert_mult_to_fma): Increment fmas_inserted.
10390 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10391 calls to statistics_counter_event.
10392
89fa552a
VM
103932011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10394
10395 PR rtl-optimization/48455
10396 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10397 `temp_costs->mem_cost'.
10398
03dfc36d
JH
103992011-04-13 Jan Hubicka <jh@suse.cz>
10400
10401 * ipa-inline.h: New file.
10402 * ipa-inline-analysis.c: New file. Broken out of ...
10403 * ipa-inline.c: ... this file; update toplevel comment;
10404 include ipa-inline.h
10405 (inline_summary): Move to ipa-inline.h
10406 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10407 ipa-inline-analysis.c.
7d4f8d02
EB
10408 (cgraph_estimate_time_after_inlining): Rename to
10409 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
10410 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10411 to estimate_edge_growth.
10412 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10413 rename to estimate_size_after_inlining.
10414 (cgraph_mark_inline_edge): Update for new naming convention.
10415 (cgraph_check_inline_limits): Likewise.
10416 (cgraph_edge_badness): Likewise.
10417 (cgraph_decide_recursive_inlining): Likewise.
10418 (cgraph_decide_inlining_of_small_functions): Likewise.
10419 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
10420 (cgraph_estimate_growth): Rename to estimate_growth; move to
10421 ipa-inline-analysis.c.
03dfc36d
JH
10422 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10423 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10424 (compute_inline_parameters): Likewise.
10425 (compute_inline_parameters_for_current): Likewise.
10426 (pass_inline_parameters): Likewise.
10427 (inline_indirect_intraprocedural_analysis): Likewise.
10428 (analyze_function): Rename to inline_analyze_function; likewise.
10429 (add_new_function): Move to ipa-inline-analysis.c.
10430 (inline_generate_summary): Likewise.
10431 (inline_read_summary): Likewise.
10432 (inline_write_summary): Likewise.
10433 * Makefile.in (ipa-inline-analysis.c): New file.
10434
7673c962
RO
104352011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10436
10437 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10438 * configure: Regenerate.
10439
9698252f
NF
104402011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10441
10442 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10443 instead of tree_common.
10444 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10445 Likewise.
10446 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10447 TS_TYPED rather than TS_COMMON.
10448 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10449
3a7bfdd5
GJL
104502011-04-01 Georg-Johann Lay <avr@gjlay.de>
10451
10452 PR target/45263
86d83530
GJL
10453 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10454 r20 around calls of __tablejump_elpm__
3a7bfdd5 10455
20790697
JJ
104562011-04-13 Jakub Jelinek <jakub@redhat.com>
10457
10458 PR middle-end/48591
10459 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10460 NULL.
10461 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10462
094d7661
BS
104632011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10464
10465 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10466 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10467 (cfi_vec): New typedef.
10468 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10469 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10470 (cie_cfi_vec): New static variable.
10471 (cie_cfi_head): Delete.
10472 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10473 declaration changed. Use vector rather than list operations.
10474 (new_cfi): Don't initialize the dw_cfi_next field.
10475 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10476 rather than list operations.
10477 (lookup_cfa): Use vector rather than list operations.
10478 (output_cfis): New argument upto. Accept a cfi_vec rather than
10479 a dw_cfi_ref list head as argument. All callers changed.
10480 Iterate over the vector using upto as a maximum index.
10481 (output_all_cfis): New static function.
10482 (output_fde): Use vector rather than list operations. Use the
10483 new upto argument for output_cfis rather than manipulating a
10484 list.
10485 (dwarf2out_begin_prologue): Change initializations to match
10486 new struct members.
10487 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10488 from the vector length rather than searching for the end of a list.
10489 Use output_all_cfis.
10490 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10491
673a5740
NC
104922011-04-13 Nick Clifton <nickc@redhat.com>
10493
10494 * config/rx/rx.md (movmemsi): Do not use this pattern when
10495 volatile pointers are involved.
10496
1ee8b298
UB
104972011-04-13 Uros Bizjak <ubizjak@gmail.com>
10498
10499 * config/i386/sse.md (pinsrbits): Remove.
10500 (sse2_packsswb): Merge with *avx_packsswb.
10501 (sse2_packssdw): Merge with *avx_packssdw.
10502 (sse2_packuswb): Merge with *avx_packuswb.
10503 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10504 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10505 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10506 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10507 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10508 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10509 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10510 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10511 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10512 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10513 (sse2_loadld): Merge with *avx_loadld.
10514 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10515 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10516 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10517 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10518 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10519
81f653d6
NF
105202011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10521
10522 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10523 calling TREE_CHAIN.
10524 * print-tree.c (print_node): Likewise.
10525 * tree-inline.c (copy_tree_r): Likewise.
10526 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10527 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10528 instead of TS_COMMON.
10529 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10530 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10531 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10532 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10533 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10534 ...and these...
10535 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10536 * tree.h: ...here.
10537 (TREE_CHAIN): Check for a TS_COMMON structure.
10538 (TREE_TYPE): Check for a TS_TYPED structure.
10539
748f7574 105402011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
10541
10542 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10543 cgraph_get_create_node instead of cgraph_node.
10544
eb345401
NP
105452011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10546
10547 * c-parser.c (c_parser_initelt): Updated call to
10548 objc_build_message_expr.
10549 (c_parser_postfix_expression): Likewise.
10550
a6c46762
KT
105512011-04-12 Kai Tietz <ktietz@redhat.com>
10552
10553 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10554 MASK_MS_BITFIELD_LAYOUT bit.
10555
b4ccfed9
JJ
105562011-04-12 Jakub Jelinek <jakub@redhat.com>
10557
10558 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10559 assert it is always true.
10560 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10561 moves.
10562
0d8a2528
NP
105632011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10564
10565 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10566 compiling Objective-C to be more efficient.
10567
06bd234a
AF
105682011-04-12 Axel Freyn <axel-freyn@gmx.de>
10569
10570 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10571 argv_copied.
10572
28569ac3
RS
105732011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10574
10575 * recog.h, genoutput.c, optabs.c: Revert last patch.
10576
ae59e00d
RR
105772011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10578
81b1e7eb
UB
10579 PR target/48090
10580 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 10581
cff1b7e0
RS
105822011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10583
10584 * recog.h (insn_operand_data): Add an "allows_mem" field.
10585 * genoutput.c (output_operand_data): Initialize it.
10586 * optabs.c (maybe_legitimize_operand_same_code): New function.
10587 (maybe_legitimize_operand): Use it when matching the original
10588 op->value.
10589
77059241
RS
105902011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10591
10592 * genpreds.c (process_define_predicate): Move most processing
10593 to gensupport.c. Continue to validate the expression.
10594 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10595 (process_define_predicate): Move processing to gensupport.c.
10596 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10597 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10598 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10599 argument.
10600 (valid_predicate_name_p): New function, split out from old
10601 genpreds.c:process_define_predicate.
10602 (process_define_predicate): New function, combining code from
10603 old genpreds.c and genrecog.c functions.
10604 (process_rtx): Call it for DEFINE_PREDICATE and
10605 DEFINE_SPECIAL_PREDICATE.
10606
6308e208
RS
106072011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10608
10609 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10610 size of a '%A' memory reference.
10611 (T_DREG, T_QREG): New neon_builtin_type_bits.
10612 (arm_init_neon_builtins): Assert that the load and store operands
10613 are neon_struct_operands.
10614 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10615 (NEON_ARG_MEMORY): New builtin_arg.
10616 (neon_dereference_pointer): New function.
10617 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10618 Handle NEON_ARG_MEMORY.
10619 (arm_expand_neon_builtin): Update after above interface changes.
10620 Use NEON_ARG_MEMORY for loads and stores.
10621 * config/arm/predicates.md (neon_struct_operand): New predicate.
10622 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10623 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10624 (V_four_elem): Tweak formatting.
10625 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10626 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10627 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10628 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10629 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10630 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10631 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10632 Use %A in the output template.
10633 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10634 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10635 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10636 the width of the memory access. Remove post-increment.
10637 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10638
e5db8f2f
NC
106392011-04-12 Nick Clifton <nickc@redhat.com>
10640
10641 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10642 instruction for interrupt handlers if the target is the basic V850
10643 architecture.
10644 (expand_epilogue): Likewise.
10645
74f091d6
JJ
106462011-04-12 Jakub Jelinek <jakub@redhat.com>
10647
10648 PR rtl-optimization/48549
10649 * combine.c (propagate_for_debug): Also stop after BB_END of
10650 this_basic_block. Process LAST and just stop processing after it.
10651 (combine_instructions): If last_combined_insn has been deleted,
10652 set last_combined_insn to its PREV_INSN.
10653
f20ca725
RG
106542011-04-12 Richard Guenther <rguenther@suse.de>
10655
10656 PR tree-optimization/46076
10657 * gimple.h (struct gimple_statement_call): Add fntype field.
10658 (gimple_call_fntype): Adjust.
10659 (gimple_call_set_fntype): New function.
10660 * gimple.c (gimple_build_call_1): Set the call function type.
10661 * gimplify.c (gimplify_call_expr): Preserve the function
10662 type the frontend used for the call.
10663 (gimplify_modify_expr): Likewise.
10664 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10665 function type.
10666 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10667 function type.
10668 * tree-ssa.c (useless_type_conversion_p): Function pointer
10669 conversions are useless.
10670
a358e188
MJ
106712011-04-12 Martin Jambor <mjambor@suse.cz>
10672
10673 * cgraph.h (cgraph_node): Remove function declaration.
10674 (cgraph_create_node): Declare.
10675 (cgraph_get_create_node): Likewise.
10676 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10677 Updated all callers.
10678 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10679 the decl does not already exist. Call cgraph_get_create_node instead
10680 of cgraph_node.
10681 (cgraph_get_create_node): New function.
10682 (cgraph_same_body_alias): Update comment.
10683 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10684 assert it does not return NULL.
10685 (cgraph_update_edges_for_call_stmt): Likewise.
10686 (cgraph_clone_edge): Likewise.
10687 (cgraph_create_virtual_clone): Likewise.
10688 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10689 instead of cgraph_node.
10690 (cgraph_add_new_function): Call cgraph_create_node or
10691 cgraph_get_create_node instead of cgraph_node.
10692 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10693 instead of cgraph_node.
10694 (record_eh_tables): Likewise.
10695 (mark_address): Likewise.
10696 (mark_load): Likewise.
10697 (build_cgraph_edges): Call cgraph_get_create_node instead
10698 of cgraph_node.
10699 (rebuild_cgraph_edges): Likewise.
10700 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10701 instead of cgraph_node.
10702 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10703 cgraph_node.
10704 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10705 cgraph_create_node instead of cgraph_node.
10706 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10707 of cgraph_node.
10708 * lto-cgraph.c (input_node): Likewise.
10709 * lto-streamer-in.c (input_function): Likewise.
10710 * varasm.c (mark_decl_referenced): Likewise.
10711 (assemble_alias): Likewise.
10712
fe660d7b
MJ
107132011-04-12 Martin Jambor <mjambor@suse.cz>
10714
10715 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10716 instead of cgraph_node and assert it does not return NULL.
10717 * lto-streamer-in.c (lto_read_body): Likewise.
10718 * omp-low.c (new_omp_context): Likewise.
10719 (create_task_copyfn): Likewise.
10720 * tree-emutls.c (lower_emutls_function_body): Likewise.
10721 * matrix-reorg.c (transform_allocation_sites): Likewise.
10722
bae5cddf
JJ
107232011-04-12 Jakub Jelinek <jakub@redhat.com>
10724
10725 PR c/48552
10726 * c-typeck.c (build_asm_expr): Error out on attempts to use
10727 void type outputs or inputs for constraints that allow reg or
10728 don't allow memory.
10729
06eb52ca
CLT
107302011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10731 Richard Earnshaw <rearnsha@arm.com>
10732
10733 PR target/48250
10734 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10735 to use sign-magnitude offsets. Reject unsupported unaligned
10736 cases. Add detailed description in comments.
10737 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10738 condition from TARGET_32BIT to TARGET_ARM.
10739
648a616b
NF
107402011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10741
10742 * tree.h (struct typed_tree): New.
10743 (struct tree_common): Include it instead of tree_base.
10744 (TREE_TYPE): Update for new location of type field.
10745 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10746 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10747 (union tree_node): Add typed field.
10748 * treestruct.def (TS_TYPED): New.
10749 * lto-streamer.c (check_handled_ts_structures): Handle it.
10750 * tree.c (MARK_TS_TYPED): New macro.
10751 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10752
1e6d1da0
EB
107532011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10754
10755 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10756 (force_nonfallthru): Do not alter the loop nest if no basic block
10757 was created.
10758
107592011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
10760
10761 * config/i386/sse.md (VI): New mode iterator.
10762 (SSEMODEI): Remove.
10763 (AVX256MODEI): Ditto.
10764 (AVXMODEF4P): Ditto.
10765 (avxvecpsmode): Ditto.
10766 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10767 (sse2_andnot<mode>3): New expander.
10768 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10769 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10770 (<any_logic:code><mode>3): Use VI mode iterator.
10771 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10772 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10773 (*andnottf3): Handle AVX three-operand constraints.
10774 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10775
b1372d5d 107762011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 10777 Robert Millan <rmh@gnu.org>
b1372d5d
JM
10778
10779 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10780 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10781 GNU_USER_DYNAMIC_LINKER64): Define.
10782 (REG_NAME): Don't undefine.
10783 (MD_UNWIND_SUPPORT): Undefine.
10784 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10785 (REG_NAME): Don't undefine.
10786 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 10787 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 10788
761c0c6e
JM
107892011-04-11 Joseph Myers <joseph@codesourcery.com>
10790
10791 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10792 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10793
26e0228f
XDL
107942011-04-11 Xinliang David Li <davidxl@google.com>
10795
10796 * value-profile.c (check_ic_target): New function.
10797 (gimple_ic_transform): Sanity check indirect call target.
10798 * gimple-low.c (gimple_check_call_args): Interface change.
10799 (gimple_check_call_matching_types): New function.
10800 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
10801
108022011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10803
10804 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10805 tree-pretty-print.h & realmpfr.h.
10806
a58dfa49
VM
108072011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10808
10809 PR middle-end/48464
10810 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10811 (setup_allocno_and_important_classes): Ditto.
10812
107fd1c1
JM
108132011-04-11 Joseph Myers <joseph@codesourcery.com>
10814
10815 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10816 GNU_USER_DYNAMIC_LINKER.
10817 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10818 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10819 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10820 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10821 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10822 GNU_USER_TARGET_OS_CPP_BUILTINS.
10823 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10825 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10826 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10827 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10828 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10829 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10830 GNU_USER_TARGET_OS_CPP_BUILTINS.
10831 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10832 GNU_USER_DYNAMIC_LINKER.
10833 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10834 GNU_USER_TARGET_OS_CPP_BUILTINS.
10835 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10836 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10837 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10838 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10839 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10840 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10841 GNU_USER_DYNAMIC_LINKER64): Remove.
10842 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10843 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10844 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10845 GNU_USER_DYNAMIC_LINKER.
10846 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10847 GNU_USER_TARGET_OS_CPP_BUILTINS.
10848 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10849 GNU_USER_TARGET_OS_CPP_BUILTINS.
10850 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10851 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10852 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10853 GNU_USER_TARGET_OS_CPP_BUILTINS.
10854 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10855 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10856 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10857 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10858 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10859 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10860 GNU_USER_DYNAMIC_LINKER.
10861 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10862 GNU_USER_TARGET_OS_CPP_BUILTINS.
10863 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10864 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10865 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10866 GNU_USER_DYNAMIC_LINKER.
10867 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10868 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10869 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10870 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10871 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10872 GNU_USER_DYNAMIC_LINKER.
10873 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10874 GNU_USER_DYNAMIC_LINKERN32.
10875 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10876 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10877 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10878 GNU_USER_DYNAMIC_LINKER32.
10879 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10880 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10881 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10882 GNU_USER_DYNAMIC_LINKER.
10883 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10884 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10885 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10886 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10887 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
10888 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10889 GNU_USER_DYNAMIC_LINKER32.
10890 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10891 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10892 GNU_USER_DYNAMIC_LINKER.
10893 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10894 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10895 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10896 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10897 GNU_USER_DYNAMIC_LINKER64.
10898 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10899 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10900 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10901 GNU_USER_DYNAMIC_LINKER.
10902 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10903 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10904 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10905 GNU_USER_DYNAMIC_LINKER.
10906 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10907 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10908 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10909 GNU_USER_DYNAMIC_LINKER32.
10910 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10911 GNU_USER_DYNAMIC_LINKER64.
10912 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10913 GNU_USER_DYNAMIC_LINKER64.
10914 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10915 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10916 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10917 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 10918 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 10919
e24609cf
JM
109202011-04-11 Joseph Myers <joseph@codesourcery.com>
10921
10922 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10923 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10924 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10925 GNU_USER_DYNAMIC_LINKER.
10926 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10927 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10928 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10929 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10930 GNU_USER_DYNAMIC_LINKER64.
10931 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10932 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10933 GNU_USER_LINK_EMULATION.
10934 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10935 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10936 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10937 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10938 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10939 CPP_SPEC, CC1_SPEC): Remove.
10940 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10941 (GNU_USER_DYNAMIC_LINKER): Define.
10942 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10943 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10944 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10945 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10946 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10947 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10948 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10949 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10950 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10951 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10952 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10953 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10954 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10955 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10956 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10957 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10958 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10959 GNU_USER_DYNAMIC_LINKER.
10960 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10961 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10962 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10963 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10964 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10965 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10966 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10967 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10968 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 10969 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 10970
b8ce4e94
KT
109712011-04-11 Kai Tietz <ktietz@redhat.com>
10972
10973 PR target/9601
10974 PR target/11772
10975 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10976 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10977 comment.
10978 (ix86_is_msabi_thiscall): Removed.
10979 (ix86_is_type_thiscall): Likewise.
10980 (ix86_get_callcvt): New function.
10981 (ix86_comp_type_attributes): Simplify check.
10982 (ix86_function_regparm): Use ix86_get_callcvt for calling
10983 convention attribute checks.
10984 (ix86_return_pops_args): Likewise.
10985 (ix86_static_chain): Likewise.
10986 (x86_this_parameter): Likewise.
10987 (x86_output_mi_thunk): Likewise.
10988 (ix86_function_type_abi): Optimize check for types without attributes.
10989 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10990 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10991 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10992 by flag-values.
10993 (IX86_BASE_CALLCVT): Helper macro.
10994 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10995 Use ix86_get_callcvt for calling convention attribute checks and avoid
10996 symbol-decoration for stdcall in TARGET_RTD case.
10997 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10998 Likewise.
10999 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11000 for declaration.
11001
798dd0ba
UB
110022011-04-11 Uros Bizjak <ubizjak@gmail.com>
11003
11004 * config/i386/sse.md (VI_128): New mode iterator.
11005 (VI12_128): Rename from SSEMODE12.
11006 (VI14_128): Rename from SSEMODE14.
11007 (VI124_128): New mode iterator.
11008 (VI24_128): Rename from SSEMODE248.
11009 (VI248_128): Rename from SSEMODE248.
11010 (SSEMODE124C8): Remove.
11011 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11012 (*sse2_<plusminus_insn><mode>3): Merge with
11013 *avx_<plusminus_insn><mode>3.
11014 (*mulv8hi3): Merge with *avx_mulv8hi3.
11015 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11016 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11017 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11018 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11019 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11020 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11021 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11022 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11023 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11024 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11025 (*<smaxmin:code>v8hi3): Ditto.
11026 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11027 (*<smaxmin:code>v16qi3): Ditto.
11028 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11029 (*sse2_eq<mode>3): Ditto.
11030 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11031 (*sse2_gt<mode>3): Ditto.
11032 (vcondv2di): Split out of vcond<mode>.
11033 (vconduv2di): Split out of vcondu<mode>.
11034
956011be
RG
110352011-04-11 Richard Guenther <rguenther@suse.de>
11036
11037 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11038 before calling tree_low_cst.
11039
e6313a78
RG
110402011-04-11 Richard Guenther <rguenther@suse.de>
11041
11042 * stor-layout.c (layout_type): Compute all array index size operations
11043 in the original type.
11044 (initialize_sizetypes): Add comment.
11045 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11046
e69d7376
JM
110472011-04-11 Joseph Myers <joseph@codesourcery.com>
11048
11049 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11050
9f9ebcdf
MJ
110512011-04-11 Martin Jambor <mjambor@suse.cz>
11052
11053 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11054 of cgraph_node, handle NULL return value.
11055 (cgraph_global_info): Likewise.
11056 (cgraph_rtl_info): Likewise.
11057 * tree-inline.c (estimate_num_insns): Likewise.
11058 * gimplify.c (unshare_body): Likewise.
11059 (unvisit_body): Likewise.
11060 (gimplify_body): Likewise.
11061 * predict.c (optimize_function_for_size_p): Likewise.
11062 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11063 (call_may_clobber_ref_p_1): Likewise.
11064 * varasm.c (function_section_1): Likewise.
11065 (assemble_start_function): Likewise.
11066
581985d7
MJ
110672011-04-11 Martin Jambor <mjambor@suse.cz>
11068
11069 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11070 of cgraph_node.
11071 * final.c (rest_of_clean_state): Likewise.
11072 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11073 * passes.c (pass_init_dump_file): Likewise.
11074 (execute_all_ipa_transforms): Likewise.
11075 (function_called_by_processed_nodes_p): Likewise.
11076 * predict.c (maybe_hot_frequency_p): Likewise.
11077 (probably_never_executed_bb_p): Likewise.
11078 (compute_function_frequency): Likewise.
11079 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11080 (unnest_nesting_tree_1): Likewise.
11081 (lower_nested_functions): Likewise.
11082 * tree-optimize.c (execute_fixup_cfg): Likewise.
11083 (tree_rest_of_compilation): Likewise.
11084 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11085 * tree-sra.c (ipa_early_sra): Likewise.
11086 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11087 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11088 * ipa.c (record_cdtor_fn): Likewise.
11089 * ipa-inline.c (cgraph_early_inlining): Likewise.
11090 (compute_inline_parameters_for_current): Likewise.
11091 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11092 * ipa-pure-const.c (local_pure_const): Likewise.
11093 * ipa-split.c (split_function): Likewise.
11094 (execute_split_functions): Likewise.
11095 * cgraphbuild.c (build_cgraph_edges): Likewise.
11096 (rebuild_cgraph_edges): Likewise.
11097 (cgraph_rebuild_references): Likewise.
11098 (remove_cgraph_callee_edges): Likewise.
11099 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11100 (verify_cgraph_node): Likewise.
11101 (cgraph_analyze_functions): Likewise.
11102 (cgraph_preserve_function_body_p): Likewise.
11103 (save_inline_function_body): Likewise.
11104 (save_inline_function_body): Likewise.
11105 * tree-inline.c (copy_bb): Likewise.
11106 (optimize_inline_calls): Likewise.
11107
57dbdc5a
MJ
111082011-04-11 Martin Jambor <mjambor@suse.cz>
11109
11110 PR tree-optimization/48195
11111 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11112 ipa_check_create_edge_args.
11113 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11114 ipa_check_create_edge_args.
11115 * ipa-inline.c (inline_generate_summary): Do not call
11116 ipa_check_create_node_params and ipa_check_create_edge_args.
11117 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11118 ipa_check_create_edge_args.
11119
d108e679
AS
111202011-04-09 Anatoly Sokolov <aesok@post.ru>
11121
11122 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11123 instead of loop.
11124 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11125 * function.c (record_hard_reg_sets): Likewise.
11126 * ira.c (compute_regs_asm_clobbered): Likewise.
11127 * sched-deps.c (sched_analyze_1): Likewise.
11128 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11129
3411bc59
XDL
111302011-04-09 Xinliang David Li <davidxl@google.com>
11131
11132 PR tree-optimization/PR48484
11133 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11134 has_valid_pred lazily
11135
b365495a
DS
111362011-04-09 Duncan Sands <baldrick@free.fr>
11137
11138 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11139
68bc509a
EB
111402011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11141
11142 * combine.c (combine_validate_cost): Adjust comments. Set registered
11143 cost of I0 to zero at the end, if any.
11144
041e059f
XDL
111452011-04-08 Xinliang David Li <davidxl@google.com>
11146
68bc509a
EB
11147 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11148 to insane profile data.
041e059f 11149
444b3995
XDL
111502011-04-08 Xinliang David Li <davidxl@google.com>
11151
11152 * ipa-cp.c (ipcp_update_profiling): Correct
11153 negative scale factor due to insane profile data.
11154
6a801cf2
XDL
111552011-04-08 Xinliang David Li <davidxl@google.com>
11156
11157 * final.c (dump_basic_block_info): New function.
11158 (final): Dump basic block.
11159 (final_scan_insn): Remove old dump.
11160
d5f3624e
SK
111612011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11162
68bc509a
EB
11163 PR target/47829
11164 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11165 crtbegin/crtend.
d5f3624e 11166
42821aff
MM
111672011-04-08 Michael Matz <matz@suse.de>
11168
11169 PR middle-end/48389
11170 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11171 functions.
11172 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11173 * rtl.h (rebuild_jump_labels_chain): Declare.
11174 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11175 insns inserted on edges.
11176
ad7be009
JM
111772011-04-08 Joseph Myers <joseph@codesourcery.com>
11178
11179 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11180 * config/arm/arm-arches.def: New.
11181 * config/arm/arm-opts.h: New.
11182 * config/arm/genopt.sh: New.
11183 * config/arm/arm-tables.opt: New (generated).
11184 * config/arm/arm.c (arm_handle_option, arm_target_help,
11185 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11186 (all_architectures): Get most table contents from arm-arches.def.
11187 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11188 arm_selected_tune here.
11189 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11190 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11191 (march=, mcpu=, mtune=): Use Enum and Var.
11192 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11193 (arm.o): Update dependencies.
ecbb6fb7 11194
42821aff 111952011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
11196
11197 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11198 of header_file.
11199 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11200 (write_typed_alloc_defns): Likewise.
11201 (main): Calls write_typed_alloc_defns with output_header.
11202
8d189b3f
VM
112032011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11204
68bc509a 11205 PR inline-asm/48435
8d189b3f
VM
11206 * ira-color.c (setup_profitable_hard_regs): Add comments.
11207 Don't take prohibited hard regs into account.
11208 (setup_conflict_profitable_regs): Rename to
11209 get_conflict_profitable_regs.
11210 (check_hard_reg_p): Check prohibited hard regs.
11211
44f370bf
NF
112122011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11213
11214 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11215 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11216 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11217
483d7ad3
JDA
112182011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11219
11220 PR target/48366
11221 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 11222 move from floating point to shift amount register.
483d7ad3
JDA
11223 (emit_move_sequence): Remove secondary reload support for floating
11224 point to shift amount amount register copies.
11225 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11226 amount register copies.
11227 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11228 register, return false if mode isn't a scalar integer mode.
11229 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11230
97e03fa1
RG
112312011-04-08 Richard Guenther <rguenther@suse.de>
11232
11233 * gimple.c (gimple_call_flags): Remove kludge.
11234
9d40778b
AM
112352011-04-08 Alexander Monakov <amonakov@ispras.ru>
11236
11237 * sel-sched.c (sel_region_init): Move call to
11238 sel_setup_region_sched_flags after setup_current_loop_nest.
11239
19ac7892
AB
112402011-04-08 Andrey Belevantsev <abel@ispras.ru>
11241
11242 PR rtl-optimization/48272
19ac7892
AB
11243 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11244 init_insn_reg_pressure_info. Adjust a caller.
11245 * sched-int.h (init_insn_reg_pressure_info): Declare.
11246 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11247 when sched-pressure is enabled.
11248
0f8c63cc
RG
112492011-04-08 Richard Guenther <rguenther@suse.de>
11250
11251 * gimple.c (gimple_set_modified): Do not queue calls to
11252 MODIFIED_NORETURN_CALLS here ...
11253 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11254
5e5a425e
RG
112552011-04-08 Richard Guenther <rguenther@suse.de>
11256
11257 PR lto/48467
11258 * toplev.c (lang_dependent_init): Do not open asm_out_file
11259 in WPA mode, nor perform debug machinery initialization.
11260 (finalize): Do not unlink asm_out_file in WPA mode.
11261
9bfc434b
RG
112622011-04-08 Richard Guenther <rguenther@suse.de>
11263
11264 * gimple.h (gimple_call_fntype): New function.
11265 (gimple_call_return_type): Use it.
11266 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11267 * gimple-low.c (gimple_check_call_args): Likewise.
11268 * gimple.c (gimple_call_flags): Likewise.
11269 (gimple_call_arg_flags): Likewise.
11270 (gimple_call_return_flags): Likewise.
11271 * tree-cfg.c (verify_gimple_call): Likewise.
11272 (do_warn_unused_result): Likewise.
11273 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11274 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11275
7c1f0b40
DM
112762011-04-08 Dmitry Melnik <dm@ispras.ru>
11277
11278 PR rtl-optimization/48235
11279 * sel-sched.c (code_motion_process_successors): Recompute the last
11280 insn in basic block if control flow changed.
11281 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11282 Update condition for ilist_remove.
11283
ea4d630f
AM
112842011-04-08 Alexander Monakov <amonakov@ispras.ru>
11285
11286 PR rtl-optimization/48302
11287 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11288 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11289 it to record added preheader blocks.
11290 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11291 on to sel_add_loop_preheaders.
11292 (sel_region_init): Move call to setup_current_loop_nest after
11293 sel_init_bbs.
11294
07643d76
AM
112952011-04-08 Alexander Monakov <amonakov@ispras.ru>
11296
11297 PR target/48273
11298 * cfgloop.h (loop_has_exit_edges): New helper.
11299 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11300 non-clonable.
11301 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11302 that have no exit edges.
11303
1f3b2b4e
AM
113042011-04-08 Alexander Monakov <amonakov@ispras.ru>
11305
11306 PR rtl-optimization/48442
11307 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11308 all callers. Adjust assert.
11309
554f1948
JJ
113102011-04-08 Jakub Jelinek <jakub@redhat.com>
11311
11312 PR tree-optimization/48377
11313 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11314 is_packed to true even for types with smaller TYPE_ALIGN than
11315 TYPE_SIZE.
11316
ddf72388
RG
113172011-04-08 Richard Guenther <rguenther@suse.de>
11318
11319 PR bootstrap/48513
11320 * doc/tm.texi: Re-generate.
11321
0c27e2d8
WG
113222011-04-08 Wei Guozhi <carrot@google.com>
11323
11324 PR target/47855
11325 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11326 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11327 * config/arm/arm.md (*push_multi): Change the length computation to
11328 call a C function.
11329
07c5f94e
AS
113302011-04-08 Anatoly Sokolov <aesok@post.ru>
11331
11332 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11333 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11334 * doc/tm.texi: Regenerate.
11335 * system.h (ASM_OUTPUT_BSS): Poison.
11336 * varasm.c (asm_output_bss): Remove function.
11337 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 11338
07c5f94e
AS
11339 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11340 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11341 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11342 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11343 Likewise.
11344 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11345 Likewise.
11346 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11347 Likewise.
11348 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11349
5f2c36e1
JM
113502011-04-07 Joseph Myers <joseph@codesourcery.com>
11351
11352 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11353 EnumValue lines.
11354
39e7722b
JM
113552011-04-07 Joseph Myers <joseph@codesourcery.com>
11356
11357 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11358 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11359 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11360 OPT_mcpu32.
11361 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11362 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11363 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11364 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11365 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11366 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11367 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11368 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11369 options. Don't map other m68k options manually. Don't handle
11370 old-style options as canonical.
11371 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 11372 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 11373
cf103ca4
EB
113742011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11375
11376 * basic-block.h (force_nonfallthru): Move to...
11377 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11378 (force_nonfallthru): ...here.
11379 * cfghooks.c (force_nonfallthru): New function.
11380 * cfgrtl.c (force_nonfallthru): Rename into...
11381 (rtl_force_nonfallthru): ...this.
11382 (commit_one_edge_insertion): Do not set AUX field.
11383 (commit_edge_insertions): Do not discover new basic blocks.
11384 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11385 (cfg_layout_rtl_cfg_hooks): Likewise.
11386 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11387 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11388 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11389
14431f58
AS
113902011-04-07 Anatoly Sokolov <aesok@post.ru>
11391
11392 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11393 Remove macros.
11394
3729983c
UB
113952011-04-07 Uros Bizjak <ubizjak@gmail.com>
11396
11397 * config/i386/sse.md: Update copyright year.
11398 (avxcvtvecmode): Remove.
11399 (sse_movhlps): Merge with *avx_movhlps.
11400 (sse_movlhps): Merge with *avx_movlhps.
11401 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11402 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11403 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11404 (sse_loadhps): Merge with *avx_loadhps.
11405 (sse_storelps): Merge with *avx_storelps.
11406 (sse_loadlps): Merge with *avx_loadlps.
11407 (sse_movss): Merge with *avx_movss.
11408 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11409 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11410 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11411 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11412 (vec_set<mode>_0): Ditto.
11413 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11414 (sse4_1_insertps): Merge with *avx_insertps.
11415 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11416 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11417 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11418 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11419 (sse2_storehpd): Merge with *avx_storehpd.
11420 (sse2_loadhpd): Merge with *avx_loadhpd.
11421 (sse2_loadlpd): Merge with *avx_loadlpd.
11422 (sse2_movsd): Merge with *avx_movsd.
11423 (*vec_concatv2df): Merge with *vec_concatv2df.
11424
4e626909
JJ
114252011-04-07 Jakub Jelinek <jakub@redhat.com>
11426
11427 PR debug/48343
11428 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 11429 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
11430 (try_combine): Add last_combined_insn parameter, pass it instead of
11431 i3 to propagate_for_debug.
11432
3729983c 114332011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
11434
11435 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11436 to handle MDR <-> data register transfers.
11437 (movhi_internal): Likewise.
11438
20c03367
AM
114392011-04-07 Alan Modra <amodra@gmail.com>
11440
11441 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11442 previous stack info.
11443
bf22920b
TV
114442011-04-07 Tom de Vries <tom@codesourcery.com>
11445
11446 PR target/43920
11447 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11448 flow_find_cross_jump. Swap variables to implement backward replacement.
11449 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11450
823918ae
TV
114512011-04-07 Tom de Vries <tom@codesourcery.com>
11452
11453 PR target/43920
11454 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
11455 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11456 and bb2.
11457 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11458 src1 or src2. Redirect edges to the last basic block. Update
11459 frequency and count on multiple basic blocks in case of fallthru.
823918ae 11460
472c95f5
TV
114612011-04-07 Tom de Vries <tom@codesourcery.com>
11462
11463 PR target/43920
11464 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11465 function.
3729983c
UB
11466 (old_insns_match_p): Change return type. Replace return false/true
11467 with return dir_none/dir_both. Use can_replace_by.
11468 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11469 direction from dir_p. Register replacement direction in dir, last_dir
11470 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
11471 merge_dir. Return replacement direction in dir_p.
11472 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11473 return type of old_insns_match_p.
11474 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11475 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11476 flow_find_cross_jump.
11477 * basic-block.h (enum replace_direction): New type.
11478 (flow_find_cross_jump): Add parameter to declaration.
11479
a95d4000
UB
114802011-04-06 Uros Bizjak <ubizjak@gmail.com>
11481
11482 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11483 (AVXMODEDCVTPS2DQ): Ditto.
11484 (VEC_FLOAT_MODE): Ditto.
11485 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11486 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11487 (<any_logic:code><mode>3): Use VF mode iterator.
11488 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11489 Use VF mode iterator.
11490 (copysign<mode>3): Use VF mode iterator.
11491 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11492 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11493 (*<any_logic:code><MODEF:mode>3): Merge with
11494 *avx_<any_logic:code><MODEF:mode>3.
11495 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11496 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11497 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11498 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11499 (sse2_cvtdq2ps): Use %v modifier.
11500 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11501 (avx_cvtps2dq<avxmodesuffix>): Remove.
11502 (sse2_cvtps2dq): Use %v modifier.
11503 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11504 (avx_cvttps2dq<avxmodesuffix>): Remove.
11505 (sse2_cvttps2dq): Use %v modifier.
11506 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11507 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11508 (sse2_cvtsd2siq): Fix insn template.
11509 (sse2_cvtsd2siq_2): Ditto.
11510 (sse2_cvttsd2siq): Ditto.
11511 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11512 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11513
ad01c437
JM
115142011-04-06 Joseph Myers <joseph@codesourcery.com>
11515
11516 * gcov-io.c: Use GCC Runtime Library Exception.
11517
fe846284
JJ
115182011-04-06 Jakub Jelinek <jakub@redhat.com>
11519
11520 PR debug/48466
11521 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11522 as base_reg whatever register reg has been eliminated to, instead
11523 of hardcoding STACK_POINTER_REGNUM.
11524
acce4e77
JM
115252011-04-06 Joseph Myers <joseph@codesourcery.com>
11526
11527 * doc/tm.texi.in: Document C target hooks as separate from general
11528 target hooks.
11529 * doc/tm.texi: Regenerate.
11530 * genhooks.c (struct hook_desc): Add docname field.
11531 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11532 docname field.
11533 (hook_array): Include c-target.def.
11534 (emit_documentation): Use docname field in output.
11535 (emit_init_macros): Take docname argument. Only emit definitions
11536 for hooks matching docname.
11537 (main): Expect additional arguments in all cases. Pass argument
11538 to emit_init_macros.
11539 * target.def: Move initial macro definitions and comments to
11540 target-hooks-macros.h.
11541 (gcc_targetcm): Move to c-family/c-target.def.
11542 * target.h (targetcm): Move declaration to c-family/c-target.h.
11543 * targhooks.c (default_handle_c_option): Move to
11544 c-family/c-opts.c.
11545 * targhooks.h (default_handle_c_option): Move declaration to
11546 c-family/c-common.h.
11547 * target-hooks-macros.h: New file.
11548 * config.gcc (target_has_targetcm): Define and use to add to
11549 c_target_objs and cxx_target_objs.
11550 * config/default-c.c: New file.
11551 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11552 of target.h and target-def.h.
11553 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11554 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11555 darwin_check_cfstring_format_arg): Make static.
11556 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11557 TARGET_STRING_OBJECT_REF_TYPE_P,
11558 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11559 * config/darwin-protos.h (darwin_objc_construct_string,
11560 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11561 declare.
11562 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11563 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 11564 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
11565 * config/t-darwin (darwin-c.o): Update dependencies.
11566 * system.h (TARGET_HAS_TARGETCM): Poison.
11567 * Makefile.in (TARGET_H): Update.
11568 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11569 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11570 (default-c.o): New target.
11571 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 11572 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
11573 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11574 c-target.def.
11575 (build/genhooks.o): Update dependencies.
11576
275b4baa 115772011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 11578
275b4baa
RG
11579 * ipa-inline.c (enum inlining_mode): Remove.
11580 (cgraph_flatten): Use some other token.
11581 (cgraph_edge_early_inlinable_p): New function, split out from ...
11582 (cgraph_perform_always_inlining): New function, split out from ...
11583 (cgraph_decide_inlining_incrementally): ... here.
11584 (cgraph_mark_inline_edge): Adjust.
11585 (cgraph_early_inlining): Re-structure.
11586 (pass_early_inline): Require SSA form.
11587
f15b8bdf 115882011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
11589 Julian Brown <julian@codesourcery.com>
11590 Mark Shinwell <shinwell@codesourcery.com>
11591
11592 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11593 LO_REGS only for Thumb-1.
11594 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11595 be used in short instructions when optimising for size on Thumb-2.
11596
516426da
EB
115972011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11598
11599 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11600 associated with user returns to be preserved.
11601
96621ebf
TG
116022011-04-06 Tristan Gingold <gingold@adacore.com>
11603
f15b8bdf
EB
11604 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11605 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
11606 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11607 if XCOFF_DEBUGGING_INFO.
11608
07c0852e
UB
116092011-04-06 Uros Bizjak <ubizjak@gmail.com>
11610
11611 * config/i386/i386.md (attribute isa): New.
11612 (attribute enabled): New.
11613 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11614 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11615 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11616 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11617 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11618 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11619 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11620 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11621
11622 * config/i386/sse.md (VF): New mode iterator.
11623 (VF1): Ditto.
11624 (VF2): Ditto.
11625 (VF_128): Ditto.
11626 (SSEMODEF4): Remove.
11627 (attribute sse): Handle V8SF and V4DF modes.
11628 (<absneg:code><mode>2): Use VF mode iterator.
11629 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11630 mode iterator.
11631 (<plusminus_insn><mode>3): Use VF mode iterator.
11632 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11633 Use VF mode iterator.
11634 (<sse>_vm<plusminus_insn><mode>3): Merge with
11635 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11636 (mul<mode>3): Use VF mode iterator.
11637 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11638 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11639 mode iterator.
11640 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11641 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11642 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11643 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11644 mode iterator.
11645 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11646 Use VF1 mode iterator.
11647 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11648 (sqrt<VF2:mode>2): New expander.
11649 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11650 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11651 and sqrtv2df2. Use VF mode iterator.
11652 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11653 mode iterator.
11654 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11655 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11656 Use VF1 mode iterator.
11657 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11658 (<smaxmin:code><mode>3): Use VF mode iterator.
11659 (*<smaxmin:code><mode>3_finite): Merge with
11660 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11661 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11662 (<sse>_vm<smaxmin:code><mode>2): Merge with
11663 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11664 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11665 mode iterator.
11666 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11667 mode iterator.
11668 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11669 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11670 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11671 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11672 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11673 VF mode iterator.
11674 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11675 Use VF_128 mode iterator.
11676 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11677 mode iterator.
11678 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11679 VF_128 mode iterator.
11680 (vcond<mode>): Use VF mode iterator.
11681 * config/i386/predicates.md (sse_comparison_operator): Merge with
11682 avx_comparison_float_operator. Do not declare as special_predicate.
11683 * config/i386/i386.c (struct builtin_description): Update for renamed
11684 compare patterns.
11685 (ix86_expand_args_builtin): Ditto.
11686 (ix86_expand_sse_compare_mask): Ditto.
11687
ff5d142c
RG
116882011-04-06 Richard Guenther <rguenther@suse.de>
11689
11690 * tree-inline.c (estimate_num_insns): For calls simply account
11691 for all passed arguments and a used return value.
11692
d7d1d041 116932011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 11694
d7d1d041
RG
11695 PR tree-optimization/47663
11696 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11697 call_stmt_time fields.
11698 (cgraph_edge_inlinable_p): Declare.
11699 (cgraph_edge_recursive_p): New inline function.
11700 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11701 (cgraph_clone_edge): Copy it.
11702 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11703 Account for call stmt time.
11704 (cgraph_estimate_time_after_inlining): Take edge argument.
11705 (cgraph_estimate_edge_growth): Account call stmt size.
11706 (cgraph_estimate_size_after_inlining): Take edge argument.
11707 (cgraph_mark_inline_edge): Adjust.
11708 (cgraph_check_inline_limits): Likewise.
11709 (cgraph_recursive_inlining_p): Remove.
11710 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11711 (cgraph_decide_recursive_inlining): Take edge argument and
11712 adjust.
11713 (cgraph_decide_inlining_of_small_functions): Do not avoid
11714 diags for recursive inlining here.
11715 (cgraph_flatten): Adjust.
11716 (cgraph_decide_inlining_incrementally): Likewise.
11717 (estimate_function_body_sizes): Remove call cost handling.
11718 (compute_inline_parameters): Initialize caller edge call costs.
11719 (cgraph_estimate_edge_growth): New function.
11720 (cgraph_estimate_growth): Use it.
11721 (cgraph_edge_badness): Likewise.
11722 (cgraph_check_inline_limits): Take an edge argument.
11723 (cgraph_decide_inlining_of_small_functions): Adjust.
11724 (cgraph_decide_inlining): Likewise.
11725 * tree-inline.c (estimate_num_insns): Only account for call
11726 return value if it is used.
11727 (expand_call_inline): Avoid diagnostics on recursive inline
11728 functions here.
11729 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11730 (input_edge): Input edge call costs.
11731
2feb95f7
RO
117322011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11733
11734 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11735
26fbd9c2
JW
117362011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11737
11738 * doc/invoke.texi (Spec Files): Fix typo.
11739
694dc0ca
EB
117402011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11741
11742 * profile.c (branch_prob): Move declaration of local variable. Remove
11743 obsolete ??? comment. Expand the location explicitly instead of using
11744 the LOCATION_FILE and LOCATION_LINE macros.
11745
4925d0d5
WG
117462011-04-06 Wei Guozhi <carrot@google.com>
11747
11748 PR target/47855
11749 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11750 (arm_cond_branch): Likewise.
11751 (arm_cond_branch_reversed): Likewise.
11752 (arm_jump): Likewise.
11753 (push_multi): Likewise.
11754 * config/arm/constraints.md (Py): New constraint.
11755
f55dfa2f
NF
117562011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11757
11758 PR bootstrap/48471
11759 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11760 Move these...
11761 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11762 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11763 #ifdef DBX_DEBUGGING_INFO.
11764
fca96842
BS
117652011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11766
11767 PR bootstrap/48403
11768 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11769 if old and new states differ.
11770
30b83e38
JM
117712011-04-05 Joseph Myers <joseph@codesourcery.com>
11772
11773 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11774 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11775 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11776 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11777 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11778 mcfv4e): Use Alias.
11779 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11780 ColdFire options to -mcpu= options.
11781
277a9aa5
JL
117822011-04-05 Jeff Law <law@redhat.com>
11783
11784 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11785 check if BB is a successor of LOOP->header and return
11786 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11787
c1e2610e
SB
117882011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11789
11790 * cprop.c (struct reg_use): Remove.
11791 (reg_use_table): Make an array of RTX.
11792 (find_used_regs, constprop_register, local_cprop_pass,
11793 bypass_block): Simplify users of reg_use_table.
11794 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11795 on one of the uses found by find_used_regs.
11796
e532f586
NF
117972011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11798
11799 PR bootstrap/48469
11800 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11801 declaration.
11802
3fb7c055
NF
118032011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11804
11805 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11806 as an rtx.
11807 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11808
b71b43d9
SB
118092011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11810
11811 PR middle-end/48441
11812 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11813
b405b274
NF
118142011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11815
11816 * combine.c: Include obstack.h.
11817 (struct insn_link): Define.
11818 (uid_log_links): Adjust type.
11819 (FOR_EACH_LOG_LINK): New macro.
11820 (insn_link_obstack): Declare.
11821 (alloc_insn_link): Define.
11822 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11823 type of link variables.
11824 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11825 (try_combine, record_promoted_values, distribute_notes): Likewise.
11826 (distribute_links): Likewise. Tweak prototype.
11827 (clear_log_links): Delete.
11828 (adjust_for_new_dest): Call alloc_insn_link.
11829 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11830
6409abe3
NF
118312011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11832
11833 * gcse.c (modify_mem_list): Convert to an array of VECs.
11834 (canon_modify_mem_list, compute_transp): Tweak formatting.
11835 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11836 (load_killed_in_block_p): Likewise.
11837 (record_last_mem_set_info): Likewise.
11838 (clear_modify_mem_tables): Likewise.
11839
170d8157
TV
118402011-04-05 Tom de Vries <tom@codesourcery.com>
11841
11842 PR middle-end/48461
11843 * function.c (emit_use_return_register_into_block): Only define if
11844 HAVE_return.
11845
c5911a55
EB
118462011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11847
11848 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11849
abd016e6
JM
118502011-04-05 Joseph Myers <joseph@codesourcery.com>
11851
11852 * config/rx/rx-opts.h: New.
11853 * config/rx/rx.c (rx_cpu_type): Remove.
11854 (rx_handle_option): Don't assert that global structures are in
11855 use. Access variables via opts pointer. Defer most handling of
11856 OPT_mint_register_. Use error_at.
11857 (rx_option_override): Handle deferred OPT_mint_register_ here.
11858 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11859 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11860 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11861 (rx_cpu_types): New Enum and EnumValue entries.
11862 (mint-register=): Use Defer and use Var accordingly.
11863
1ed13f83
NF
118642011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11865
11866 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11867 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11868 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11869 Move these...
11870 (debug_free_queue, debug_nesting, symbol_queue_index):
11871 ...and these...
11872 * dbxout.c: ...to here. Make static.
11873
6ce1edcf
NF
118742011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11875
11876 * gcse.c (modify_pair): Define. Define a VEC of it.
11877 (canon_modify_mem_list): Convert to an array of VECs.
11878 (free_insn_expr_list_list): Delete.
11879 (clear_modify_mem_tables): Call VEC_free instead.
11880 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11881 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11882 (canon_list_insert, compute_transp): Likewise.
11883
c201ac94
TV
118842011-04-05 Tom de Vries <tom@codesourcery.com>
11885
11886 PR target/43920
11887 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11888 for size.
11889
4c029f40
TV
118902011-04-05 Tom de Vries <tom@codesourcery.com>
11891
11892 PR target/43920
11893 * function.c (emit_use_return_register_into_block): New function.
11894 (thread_prologue_and_epilogue_insns): Use
11895 emit_use_return_register_into_block.
11896
2a562b0a
TV
118972011-04-05 Tom de Vries <tom@codesourcery.com>
11898
11899 PR target/43920
11900 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11901 insn.
11902
0248bceb
TV
119032011-04-05 Tom de Vries <tom@codesourcery.com>
11904
11905 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11906
ffa94123
YZ
119072011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11908
798dd0ba
UB
11909 * config/arm/arm.md (define_constants for unspec): Replace with
11910 define_c_enum.
11911 (define_constants for unspecv): Replace with define_c_enum.
11912 * config/arm/neon.md (define_constants for unspec): Replace with
11913 define_c_enum.
ffa94123 11914
3b8f9b46
RH
119152011-04-04 Richard Henderson <rth@redhat.com>
11916
720cf80f 11917 PR bootstrap/48400
3b8f9b46
RH
11918 * dwarf2out.c (output_line_info): Always emit line info from
11919 at least one section.
11920 (dwarf2out_init): Create text_section_line_info here ...
11921 (set_cur_line_info_table): ... not here.
11922
720cf80f 119232011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
11924
11925 PR target/48380
11926 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 11927 not called.
e5b0e1ca 11928
720cf80f 11929 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 11930
196565d4
SB
119312011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11932
b77f9eab
SB
11933 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11934 (expr_equiv_p): Remove.
11935 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11936 (hash_scan_set): Update call to insert_set_in_table.
11937 (dump_hash_table): Dump <dest, src> pair.
11938 (lookup_set): Simplify. Lookup <dest, src> pair.
11939 (compute_transp): Remove, fold heavily simplified code into...
11940 (compute_local_properties): ...here. Expect COMP and TRANSP
11941 unconditionally.
11942 (find_avail_set): Take set directly from struct expr.
11943 (find_bypass-set): Likewise.
11944 (bypass_block): Likewise.
11945 (cprop_insn): Likewise. Remove redundant INSN_P test.
11946
384d7a55
SB
11947 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11948 checks on form of COND from find_implicit_sets to here.
11949 (find_implicit_sets): Cleanup control flow. Split critical edges
11950 if it exposes implicit sets. Allocate/resize implicit_sets as
11951 necessary.
11952 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11953 changed something. Run df_analyze after find_implicit_sets if any
11954 edges were split. Do not allocate implicit_sets here.
11955
3084ce69
SB
11956 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11957 (gcse_obstack): Renamed to cprop_obstack.
11958 (GNEW, GNEWVEC, GNEWVAR): Remove.
11959 (gmalloc): Remove.
11960 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11961 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11962 (gcse_alloc): Likewise, and rename to cprop_alloc.
11963 (alloc_gcse_men, free_gcse_mem): Remove.
11964 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11965 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11966 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11967
196565d4
SB
11968 * cprop.c (oprs_not_set_p): Remove.
11969 (mark_set, mark_clobber): Remove.
11970 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11971 (reg_not_set_p): New function.
11972 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11973 (cprop_insn): Likewise.
11974 (cprop_jump): Use FOR_EACH_EDGE.
11975
9b69cf83
BS
119762011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11977
11978 PR bootstrap/48403
11979 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11980 (rank_for_schedule): Use scheduled_insns vector instead of
11981 last_scheduled_insn.
11982 (ok_for_early_queue_removal): Likewise.
11983 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11984 we have a dbg_cnt.
11985 (choose_ready): Likewise.
11986 (commit_schedule): Use VEC_iterate.
11987 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11988 a dbg_cnt, use it and ensure the first insn is in the ready list.
11989 (haifa_sched_init): Allocate scheduled_insns.
11990 (sched_extend_ready_list): Don't allocate it; reserve space.
11991 (haifa_sched_finish): Free it.
11992
24f48c2f
JM
119932011-04-04 Joseph Myers <joseph@codesourcery.com>
11994
11995 * optc-gen.awk: Always remove type from Variable entry before
11996 recording in var_seen.
11997
8effe856
EB
119982011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11999
12000 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12001 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12002 call to tidy_fallthru_edges.
12003
413519ae
JM
120042011-04-04 Joseph Myers <joseph@codesourcery.com>
12005
12006 * doc/options.texi (ToLower): Document.
3729983c 12007 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
12008 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12009 * opts.h (cl_option): Add cl_tolower field.
12010 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12011 arguments with lowercase strings.
12012 * config/rx/rx.opt (mcpu=): Add ToLower.
12013 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12014 argument.
12015
7d34a1b0
RS
120162011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12017
12018 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12019
c30e7434
RS
120202011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12021
12022 * config/vax/vax.c: Include reload.h.
12023
112a861d
AS
120242011-04-04 Anatoly Sokolov <aesok@post.ru>
12025
12026 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12027 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12028 (sparc_preferred_reload_class): New function.
12029
e8c6bb74
JJ
120302011-04-04 Jakub Jelinek <jakub@redhat.com>
12031
2aeaa366 12032 PR debug/48401
e8c6bb74
JJ
12033 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12034 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12035
2c081caf
NF
120362011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12037
12038 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12039 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12040
53802f27
AS
120412011-04-03 Anatoly Sokolov <aesok@post.ru>
12042
12043 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12044 (ASM_OUTPUT_ALIGNED_BSS): Define.
12045
e89964e3
MM
120462011-04-03 Michael Matz <matz@suse.de>
12047
12048 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12049 and next_slot members.
12050 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12051 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12052 (lto_streamer_cache_append): Declare.
12053 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12054 unsigned index, remove offset parameter, ensure that we append
12055 or update existing entries.
12056 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12057 parameter, update next_slot for append.
12058 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12059 parameter.
12060 (lto_streamer_cache_insert_at): Likewise.
12061 (lto_streamer_cache_append): New function.
12062 (lto_streamer_cache_lookup): Use unsigned index.
12063 (lto_streamer_cache_get): Likewise.
12064 (lto_record_common_node): Don't test tree_node_can_be_shared.
12065 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12066 (lto_streamer_cache_delete): Don't free offsets member.
12067 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12068 (lto_output_string_with_length): Use lto_output_data_stream.
12069 (lto_output_tree_header): Remove ix parameter, don't write it.
12070 (lto_output_builtin_tree): Likewise.
12071 (lto_write_tree): Adjust callers to above, don't track and write
12072 offset, write unsigned index.
12073 (output_unreferenced_globals): Don't emit all global vars.
12074 (write_global_references): Use unsigned indices.
12075 (lto_output_decl_state_refs): Likewise.
12076 (write_symbol): Likewise.
12077 * lto-streamer-in.c (lto_input_chain): Move earlier.
12078 (input_function): Use unsigned index.
12079 (input_alias_pairs): Don't read and then ignore all global vars.
12080 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12081 don't pass it back, use lto_streamer_cache_append.
12082 (lto_register_var_decl_in_symtab): Use unsigned index.
12083 (lto_register_function_decl_in_symtab): Likewise.
12084 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12085 index.
12086 (lto_get_builtin_tree): Don't read index, use
12087 lto_streamer_cache_append.
12088 (lto_read_tree): Adjust call to lto_materialize_tree.
12089
12090 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12091 don't use function calls in arguments to MIN.
12092
12093 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12094 twice.
12095
12096 * gimple.c (gimple_type_leader_entry): Mark deletable.
12097
b9a5b5b2
AM
120982011-04-03 Alan Modra <amodra@gmail.com>
12099
12100 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12101
ac6a641b
MM
121022011-04-03 Michael Matz <matz@suse.de>
12103
12104 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12105 an integer.
12106 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12107
0038d4e0
MM
121082011-04-03 Michael Matz <matz@suse.de>
12109
e9c18386 12110 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
12111 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12112 without function context.
12113 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12114 current_function_decl and cfun.
12115
91f2fae8
MM
121162011-04-03 Michael Matz <matz@suse.de>
12117
12118 * tree.c (decl_init_priority_insert): Don't create entry for
12119 default priority.
12120 (decl_fini_priority_insert): Ditto.
12121 (fields_compatible_p, find_compatible_field): Remove.
12122 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12123 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12124
da29e070
EB
121252011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12126
12127 * combine.c (try_combine): Remove useless local variable.
12128
4979c28b 121292011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 12130 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
12131
12132 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12133 non-variable offsets and compare the remaining bases of the two
12134 accesses instead of looking for exact same data-ref.
12135
b4ddcaee
KT
121362011-04-02 Kai Tietz <ktietz@redhat.com>
12137
f90298e1
KT
12138 PR target/48416
12139 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12140
b4ddcaee
KT
12141 * i386.c (ix86_is_msabi_thiscall): New helper function.
12142 (ix86_is_type_thiscall): New helper function.
12143 (ix86_comp_type_attributes): Handle thiscall for method-functions
12144 special.
12145 (init_cumulative_args): Likewise.
12146 (find_drap_reg): Likewise.
12147 (ix86_static_chain): Likewise.
12148 (x86_this_parameter): Likewise.
12149 (x86_output_mi_thunk): Likewise.
12150
2a9d769a 121512011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
12152 Nicolas Setton <setton@adacore.com>
12153 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
12154
12155 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12156 (add_gnat_descriptive_type_attribute): New function.
12157 (gen_array_type_die): Call it.
12158 (gen_enumeration_type_die): Likewise.
12159 (gen_struct_or_union_type_die): Likewise.
12160 (modified_type_die): Likewise.
12161 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12162 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12163 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12164
15a03a11
JJ
121652011-04-01 Jakub Jelinek <jakub@redhat.com>
12166
12167 PR bootstrap/48148
12168 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12169 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12170
12171 Revert:
12172 2011-03-17 Richard Guenther <rguenther@suse.de>
12173
12174 PR bootstrap/48148
12175 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12176 origin for decls in other ltrans units.
12177 (input_varpool_node): Likewise.
12178
19228b93
JJ
121792011-04-01 Jakub Jelinek <jakub@redhat.com>
12180
12181 PR middle-end/48335
12182 * expr.c (expand_assignment): Handle all possibilities
12183 if TO_RTX is CONCAT.
e9c18386 12184 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
12185 (store_split_bit_field): If SUBREG_REG (op0) or
12186 op0 itself has smaller mode than word, return it
12187 for offset 0 and const0_rtx for out-of-bounds stores.
12188 If word is const0_rtx, skip it.
12189
88cb339e
N
121902011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12191
12192 * config/h8300/h8300.c (print_operand_address): Rename to...
12193 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12194 Call h8300_print_operand and h8300_print_operand_address instead of
12195 print_operand and print_operand_address. Declare.
12196 (print_operand): Renake to...
12197 (h8300_print_operand): ...this. Make static. Adjust comments.
12198 Call h8300_print_operand instead of print_operand. Declare.
12199 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12200 (h8300_register_move_cost): Likewise.
12201 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12202 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12203 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12204 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12205 * config/h8300/h8300-protos.h (print_operand): Delete.
12206 (print_operand_address): Delete.
12207
756d6ee9
RH
122082011-04-01 Richard Henderson <rth@redhat.com>
12209
12210 PR 48400
12211 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12212 in strict mode before dwarf4. Re-order tests to early out
12213 before switching sections.
12214
ceaaaeab
NF
122152011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12216
12217 * config/h8300/constraints.md: New file.
12218 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12219 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12220 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12221 * config/h8300/predicates.md (bit_operand): Likewise.
12222 (incdec_operand): Use satisfies_constraint_M and
12223 satisfies_constraint_O. Don't use C code block.
12224 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12225 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12226 (compute_mov_length): Use satisfies_constraint_G.
12227 (fix_bit_operand): Use satisfies_constraint_U.
12228 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12229 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12230 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12231 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12232 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12233 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12234 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12235 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12236 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12237 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12238 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12239 (EXTRA_MEMORY_CONSTRAINT): Delete.
12240
08ae38e0
AP
122412011-04-01 Andrew Pinski <pinskia@gmail.com>
12242 Michael Meissner <meissner@linux.vnet.ibm.com>
12243
12244 PR target/48262
12245 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12246 operands, as per the specifications.
12247
12248 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12249 (vec_extract_evenv4sf): Ditto.
12250 (vec_extract_evenv8hi): Ditto.
12251 (vec_extract_evenv16qi): Ditto.
12252 (vec_extract_oddv4si): Ditto.
12253
bdb0b0f6
MW
122542011-03-31 Mark Wielaard <mjw@redhat.com>
12255
12256 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12257 high_pc attribute if the CU has no associated code. Only output
12258 DW_AT_entry_pc for CU if not generating strict dwarf and
12259 dwarf_version < 4.
12260
722279e4
BS
122612011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12262
12263 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12264 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12265 out of ...
12266 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12267 * final.c (final_start_function): Call the new function rather
12268 than using a NULL argument for dwarf2out_frame_debug.
12269
c5dd277d
BS
12270 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12271 that contains the prologue.
12272
ec4efea9
BS
12273 * haifa-sched.c (queue_insn): New arg REASON. All callers
12274 changed. Print it in debugging output.
12275
2a6a0d80
BS
12276 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12277
86014d07
BS
12278 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12279 Split most of the code into...
12280 (begin_move_insn): ... here. New function.
12281 (ebb_sched_info): Add a pointer to it.
12282 * haifa-sched.c (scheduled_insns): New static variable.
12283 (sched_extend_ready_list): Allocate it.
12284 (schedule_block): Use it to record the order of scheduled insns.
12285 Perform RTL changes to move insns only after all scheduling
12286 decisions have been made.
12287 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12288 begin_move_insn field.
12289 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12290 * sched-int.h (struct haifa_sched_info): Remove second argument
12291 from begin_schedule_ready hook. Add new member begin_move_insn.
12292 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12293 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12294
9d701248
BS
12295 * haifa-sched.c (prune_ready_list): New function, broken out of
12296 schedule_block.
12297 (schedule_block): Use it.
12298
1ca1dad5
UW
122992011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12300
12301 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12302
49568e45
KT
123032011-04-01 Kai Tietz <ktietz@redhat.com>
12304
12305 * config.gcc (*-*-mingw*): Allow as option the
12306 posix threading model.
07c0852e 12307 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
12308 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12309 definition.
12310 (CPP_SPEC): Add pthread/no-pthread handling.
12311 (LIB_SPEC): Likewise.
12312 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12313 (LIB_SPEC): Likewise.
12314 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12315 flag to pass -pthread option for shared libgcc build.
12316 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12317 for shared libgcc build.
12318 * config/i386/t-mingw-pthread: New file.
12319 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12320 New define to enable use of library pthread by default.
12321 * config/i386/mingw.opt (pthread): New driver option.
12322 (no-pthread): New driver option.
e9c18386 12323 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
12324 * config/i386/mingw-w64.opt: Likewise.
12325
748f7574 123262011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
12327
12328 * c-decl.c (grokdeclarator): Fix formatting.
12329
f04713ee
RS
123302011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12331
12332 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12333 instead of n_operands.
12334 (set_storage_via_setmem): Likewise.
12335 * optabs.c (maybe_gen_insn): Likewise.
12336 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12337 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12338 (mips_expand_builtin_direct): Likewise.
12339 * config/spu/spu.c (expand_builtin_args): Likewise.
12340
b29387ee
RS
123412011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12342
12343 * recog.h (insn_data_d): Add n_generator_args.
12344 * genoutput.c (data): Likewise.
12345 (output_insn_data): Print it.
12346 (max_opno, num_dups): Delete.
12347 (scan_operands): Just fill in "d->operand[...]".
12348 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12349
e792559a
RS
123502011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12351
12352 * gensupport.h (pattern_stats): New structure.
12353 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12354 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12355 (max_operand_1, max_operand_vec): Delete.
12356 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12357
e8110d6f
NF
123582011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12359
12360 * emit-rtl.c (emit_pattern_after_setloc): New function.
12361 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12362 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12363 (emit_pattern_after): New function.
12364 (emit_insn_after, emit_jump_insn_after): Call it.
12365 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12366 (emit_pattern_before_setloc): New function.
12367 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12368 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12369 Likewise.
12370 (emit_pattern_before): New function.
12371 (emit_insn_before, emit_jump_insn_before): Call it.
12372 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12373
576f85f1
RH
123742011-03-31 Richard Henderson <rth@redhat.com>
12375
12376 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12377 (dw_separate_line_info_entry): Remove.
12378 (enum dw_line_info_opcode): New.
12379 (dw_line_info_entry): Use it.
12380 (dw_line_info_table, dw_line_info_table_p): New.
12381 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12382 (line_info_table, line_info_label_num): Remove.
12383 (line_info_table_in_use): Remove.
12384 (separate_line_info_table): Remove.
12385 (separate_line_info_table_allocated): Remove.
12386 (separate_line_info_table_in_use): Remove.
12387 (LINE_INFO_TABLE_INCREMENT): Remove.
12388 (line_info_label_num): New.
12389 (cur_line_info_table): New.
12390 (text_section_line_info, cold_text_section_line_info): New.
12391 (separate_line_info): New.
12392 (SEPARATE_LINE_CODE_LABEL): Remove.
12393 (print_dwarf_line_table): Remove.
12394 (debug_dwarf): Don't dump it.
12395 (output_one_line_info_table): New.
12396 (output_line_info): Use it.
12397 (new_line_info_table): New.
12398 (set_cur_line_info_table): New.
12399 (dwarf2out_switch_text_section): Use it.
12400 (dwarf2out_begin_function): Likewise.
12401 (push_dw_line_info_entry): New.
12402 (dwarf2out_source_line): Rewrite for new line info tables.
12403 (dwarf2out_init): Remove dead initailizations.
12404
300d83d9
JM
124052011-03-31 Joseph Myers <joseph@codesourcery.com>
12406
12407 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12408 various flags.
12409 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12410 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12411 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12412 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12413 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12414 * opt-functions.awk (flag_init, switch_bit_fields): New.
12415 (switch_flags): Don't handle flags moved to bit-fields. Don't
12416 generate CL_MISSING_OK or CL_SAVE.
12417 * optc-gen.awk: Update to generate bit-field output as well as
12418 flags field.
12419 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12420 bit-field instead of CL_REJECT_DRIVER flag.
12421 * opts-common.c (generate_canonical_option,
12422 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12423 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12424 instead of CL_REJECT_NEGATIVE flag.
12425 * toplev.c (print_switch_values): Use cl_report bit-field instead
12426 of CL_REPORT flag.
12427
d4d73ce2
EB
124282011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12429
12430 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12431 a zero minimum index only if it is redundant.
12432
b8faca75
VM
124332011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12434
12435 PR rtl-optimization/48381
12436 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12437 instead of ira_class_hard_reg_index for calculating conflicting
12438 hard registers.
12439
7d11cebe
SB
124402011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12441
12442 * cprop.c: Clean up hash table building.
12443 (reg_avail_info): Remove.
12444 (oprs_available_p): Remove.
12445 (record_last_reg_set_info): Remove.
12446 (record_last_set_info): Remove.
12447 (reg_available_p): New function.
12448 (gcse_constant_p): Do not treat unfolded conditions as constants.
12449 (make_set_regs_unavailable): New function.
12450 (hash_scan_set): Simplify with new reg_available_p.
12451 (compute_hash_table_work): Traverse insns stream only once.
12452 Do not compute reg_avail_info. Traverse insns in reverse order.
12453 Record implicit sets after recording explicit sets from the block.
12454
98faf84f
MM
124552011-03-31 Michael Matz <matz@suse.de>
12456
e9c18386 12457 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 12458
f52d97da
AS
124592011-03-31 Anatoly Sokolov <aesok@post.ru>
12460
12461 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12462 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12463 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12464 (h8300_mode_dependent_address_p): New function.
12465 (h8300_get_index): Make static.
12466
e16b6fd0
JL
124672011-03-31 Jeff Law <law@redhat.com>
12468
10c51983
JL
12469 * reload1.c (elimination_effects): Fix typo in recent change.
12470
e9c18386 12471 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
12472 typo potentially leading to null pointer dereference.
12473
12474 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12475 (setup_save_areas): Corresponding changes to avoid useless
12476 assignments.
12477
12478 * jump.c (reversed_comparison_code_parts): Avoid successive return
12479 statements when REVERSE_CONDITION is defined.
12480
12481 * expr.c (expand_assignment): Avoid useless assignments.
12482 (expand_expr_real_1): Likewise.
12483 (expand_expr_real_2): Avoid useless statements.
12484
12485 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12486
12487 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12488
12489 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12490 statements.
12491
12492 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12493
eb1eb914
JM
124942011-03-31 Joseph Myers <joseph@codesourcery.com>
12495
12496 PR target/47109
12497 * doc/tm.texi.in (TARGET_VERSION): Remove.
12498 * doc/tm.texi: Regenerate.
12499 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12500 * collect2.c (main): Don't use TARGET_VERSION.
12501 * mips-tdump.c (main): Don't use TARGET_VERSION.
12502 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 12503 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
12504 * config/rs6000/vxworksae.h: Remove.
12505 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12506 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12507 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12508 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12509 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12510 * config/arm/arm.h (TARGET_VERSION): Remove.
12511 * config/arm/coff.h (TARGET_VERSION): Remove.
12512 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12513 * config/arm/elf.h (TARGET_VERSION): Remove.
12514 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12515 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12516 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12517 * config/arm/pe.h (TARGET_VERSION): Remove.
12518 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12519 * config/arm/semi.h (TARGET_VERSION): Remove.
12520 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12521 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12522 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12523 * config/avr/avr.h (TARGET_VERSION): Remove.
12524 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12525 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12526 * config/frv/frv.h (TARGET_VERSION): Remove.
12527 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12528 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12529 * config/i386/darwin.h (TARGET_VERSION): Remove.
12530 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12531 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12532 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12533 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12534 * config/i386/gnu.h (TARGET_VERSION): Remove.
12535 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12536 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12537 * config/i386/linux.h (TARGET_VERSION): Remove.
12538 * config/i386/linux64.h (TARGET_VERSION): Remove.
12539 * config/i386/lynx.h (TARGET_VERSION): Remove.
12540 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12541 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12542 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12543 * config/i386/netware.h (TARGET_VERSION): Remove.
12544 * config/i386/nto.h (TARGET_VERSION): Remove.
12545 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12546 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12547 * config/ia64/elf.h (TARGET_VERSION): Remove.
12548 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12549 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12550 * config/ia64/linux.h (TARGET_VERSION): Remove.
12551 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12552 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12553 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12554 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12555 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12556 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12557 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12558 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12559 * config/m68k/linux.h (TARGET_VERSION): Remove.
12560 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12561 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12562 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12563 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12564 * config/mep/mep.h (TARGET_VERSION): Remove.
12565 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12566 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12567 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12568 * config/mips/linux.h (TARGET_VERSION): Remove.
12569 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12570 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12571 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12572 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12573 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12574 * config/pa/pa.h (TARGET_VERSION): Remove.
12575 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12576 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12577 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12578 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12579 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12580 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12581 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12582 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12583 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12584 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12585 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12586 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12587 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12588 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12589 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12590 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12591 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12592 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12593 * config/s390/linux.h (TARGET_VERSION): Remove.
12594 * config/s390/s390.h (TARGET_VERSION): Remove.
12595 * config/s390/tpf.h (TARGET_VERSION): Remove.
12596 * config/score/score.h (TARGET_VERSION): Remove.
12597 * config/sh/linux.h (TARGET_VERSION): Remove.
12598 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12599 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12600 * config/sh/sh.h (TARGET_VERSION): Remove.
12601 * config/sh/sh64.h (TARGET_VERSION): Remove.
12602 * config/sh/superh.h (TARGET_VERSION): Remove.
12603 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12604 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12605 * config/sparc/linux.h (TARGET_VERSION): Remove.
12606 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12607 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12608 TARGET_NAME32, TARGET_NAME): Remove.
12609 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12610 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12611 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12612 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12613 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12614 * config/spu/spu.h (TARGET_VERSION): Remove.
12615 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12616 * config/v850/v850.h (TARGET_VERSION): Remove.
12617 * config/vax/linux.h (TARGET_VERSION): Remove.
12618 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12619 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12620 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12621
ace31bca
EB
126222011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12623
12624 PR target/48142
12625 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12626 frame-related from frame-unrelated adjustments to the stack pointer.
12627
76f9db36
JJ
126282011-03-31 Jakub Jelinek <jakub@redhat.com>
12629
12630 * common.opt (fdebug-types-section): Move earlier.
12631 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12632
b7826465
AT
126332011-03-31 Andreas Tobler <andreast@fgznet.ch>
12634
12635 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12636 var.
12637
1290e54c
NF
126382011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12639
12640 * tree.h (CASE_CHAIN): Define.
12641 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12642 (gimple_redirect_edge_and_branch): Likewise.
12643
bddc98e1
VM
126442011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12645
12646 PR middle-end/48367
12647 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12648 calculation.
12649
c865e437
JL
126502011-03-30 Jeff Law <law@redhat.com>
12651
b3750213 12652 * PR bootstrap/48371
c865e437
JL
12653 * reload1.c (reload): Fix botch in last change.
12654
12655 * reload.h (struct reload): Fix typo introduced in last change.
12656
2cdf9574
JM
126572011-03-30 Joseph Myers <joseph@codesourcery.com>
12658
12659 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12660 Undocumented. Remove help text.
12661 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12662 -mhard-float.
12663
666a21a2
JM
126642011-03-30 Joseph Myers <joseph@codesourcery.com>
12665
12666 * doc/options.texi (NegativeAlias): Document.
12667 (Alias): Mention NegativeAlias.
12668 * opt-functions.awk: Handle NegativeAlias.
e9c18386 12669 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
12670 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12671 * opts.h (CL_NEGATIVE_ALIAS): Define.
12672 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12673 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12674 OPT_mspe_.
12675 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12676 Alias entries.
12677 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12678 mno-spe and mno-isel instead of mspe=no and -misel=no.
12679
0fa4e351
MW
126802011-03-29 Mark Wielaard <mjw@redhat.com>
12681
12682 * common.opt (fdebug-types-section): New flag.
12683 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12684 * dwarf2out.c (use_debug_types): New define.
12685 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12686 (print_die): Guard output of type unit signatures using
12687 use_debug_types.
12688 (build_abbrev_table): Replace assert of dwarf_version >= 4
12689 with assert on use_debug_types.
12690 (size_of_die): Likewise.
12691 (unmark_dies): Likewise.
12692 (value_format): Decide AT_ref_external form on use_debug_types.
12693 (output_die): Replace dwarf_version version check guard with
12694 use_debug_types where appropriate.
12695 (modified_type_die): Likewise.
12696 (gen_reference_type_die): Likewise.
12697 (dwarf2out_start_source_file): Likewise.
12698 (dwarf2out_end_source_file): Likewise.
12699 (prune_unused_types_walk_attribs): Likewise.
12700 (dwarf2out_finish): Likewise.
12701
4648deb4
VM
127022011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12703
12704 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12705
4f431835
RS
127062011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12707
12708 PR rtl-optimization/48332
12709 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12710 mode of input operand N and modeN to its actual mode.
12711
f2034d06
JL
127122011-03-30 Jeff Law <law@redhat.com>
12713
12714 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12715 define accessor macro.
12716 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12717 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12718 (reg_equiv_init): Likewise.
12719 (reg_equivs_size): New variable.
12720 (reg_equiv_init_size): Remove.
12721 (allocate_initial_values): Move prototype to here from....
12722 * integrate.h (allocate_initial_values): Remove prototype.
12723 * integrate.c: Include reload.h.
12724 (allocate_initial_values): Corresponding changes.
12725 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12726 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12727 (update_equiv_regs): Corresponding changes.
12728 (ira): Corresponding changes.
12729 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12730 (push_secondary_reload): Corresponding changes.
12731 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12732 (make_memloc, find_reloads_address): Corresponding changes.
12733 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12734 (find_reloads_address_1): Corresponding changes.
12735 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12736 (refers_to_regno_for_reload_p): Corresponding changes.
12737 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12738 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12739 * reload1.c: Include ggc.h.
12740 (grow_reg_equivs): New function.
12741 (replace_pseudos_in, reload): Corresponding changes.
12742 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12743 (eliminate_regs_1, elimination_effects): Corresponding changes.
12744 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12745 (delete_output_reload): Likewise.
12746 * caller-save.c (mark_referenced_regs): Corresponding changes.
12747 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12748 * frv/predicates.md (frv_load_operand): Corresponding changes.
12749 * microblaze/microblaze.c (double_memory_operand): Corresponding
12750 changes.
12751 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12752 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 12753 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
12754 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12755 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12756 changes.
12757 * pa/pa.c (emit_move_sequence): Corresponding changes.
12758 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12759
159b81b0
RS
127602011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12761
12762 PR target/47551
12763 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12764 structure modes. Don't check neon_vector_mem_operand for
12765 vector or structure modes.
12766
a6217191
RS
127672011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12768 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12769
12770 PR target/43590
12771 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12772 operand 1 and reshuffle the operands to match.
12773 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12774
bd837408
CS
127752011-03-30 Christian Schüler <cschueler@gmx.de>
12776
6955d771 12777 PR driver/48208
bd837408 12778 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 12779
6955d771 12780 PR driver/48260
bd837408
CS
12781 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12782 handler function.
12783 * config/darwin.opt: Added '-arch' option.
12784
e9c0470a
NC
127852011-03-30 Nick Clifton <nickc@redhat.com>
12786
12787 * config/rx/rx.md: Add peepholes and patterns to combine
12788 extending loads and simple arithmetic instructions.
12789 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
12790 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12791 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 12792 modes to use pre-decrement and post-increment addressing.
e9c18386 12793 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 12794 addresses.
e9c18386
UB
12795 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12796 (rx_memory_move_cost): Adjust cost of stores.
12797 (rx_adjust_insn_length): New function.
e9c0470a 12798
8a87e7ab
JJ
127992011-03-30 Jakub Jelinek <jakub@redhat.com>
12800
12801 PR c/48305
12802 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12803 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12804 matching arg00/arg01 types.
12805
12486e03
EB
128062011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12807
12808 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12809 last_location to UNKNOWN_LOCATION.
12810
0b99eef6
L
128112011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12812
12813 PR target/48349
12814 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12815 FLOAT_SSE_REGS.
12816
023592aa
JM
128172011-03-30 Joseph Myers <joseph@codesourcery.com>
12818 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12819
12820 PR bootstrap/48337
12821 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12822 Init(PROCESSOR_V7).
12823 (sparc_cpu): Likewise.
12824 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12825 PROCESSOR_V7.
12826
ad3b266b
VM
128272011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12828
12829 PR target/48336
12830 PR middle-end/48342
12831 PR rtl-optimization/48345
12832 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12833 hard regs for given mode from profitable regs when doing secondary
12834 allocation.
12835
633c9126
JL
128362011-03-29 Jeff Law <law@redhat.com>
12837
12838 PR bootstrap/48327
12839 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12840 do_not_duplicate field.
12841 (lookup_redirection_data): Corresponding changes.
12842 (create_duplicates): Always create a template block.
12843 (redirect_edges): Remove code which reused the original block
12844 when it was going to become unreachable code.
12845 (thread_block): Don't set do_not_duplicate field.
12846
eb50f63a
JM
128472011-03-29 Joseph Myers <joseph@codesourcery.com>
12848
12849 * lto-opts.c (register_user_option_p, lto_register_user_option):
12850 Make type argument unsigned.
12851 * lto-streamer.h (lto_register_user_option): Make type argument
12852 unsigned.
12853 * opth-gen.awk: Make CL_* macros unsigned.
12854 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12855 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12856 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12857 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12858 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12859 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12860 (find_opt): Make lang_mask argument unsigned.
12861
76763a6d
VM
128622011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12863
12864 PR rtl-optimization/48331
12865 PR rtl-optimization/48334
12866 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12867 for any used algorithm.
12868
5c82436e
VM
128692011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12870
12871 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12872 to parent_max.
12873
7a81008b
UB
128742011-03-29 Uros Bizjak <ubizjak@gmail.com>
12875
12876 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12877 (alpha_option_override): Don't set alpha_sr_alias_set.
12878 (emit_frame_store_1): Use gen_frame_mem rather than calling
12879 set_mem_alias_set.
12880 (alpha_expand_epilogue): Ditto.
12881
86c8d1f6
IR
128822011-03-29 Ira Rosen <ira.rosen@linaro.org>
12883
12884 PR tree-optimization/48290
12885 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12886 vectorization, check that relevant phis in the basic block after
12887 the inner loop are really inner loop's exit phis.
12888
0d12220f
RS
128892011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12890
e8cf17e7 12891 PR debug/48190
0d12220f
RS
12892 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12893 (cached_dw_loc_list_def): New structure.
12894 (cached_dw_loc_list): New typedef.
12895 (cached_dw_loc_list_table): New variable.
12896 (cached_dw_loc_list_table_hash): New function.
12897 (cached_dw_loc_list_table_eq): Likewise.
12898 (add_location_or_const_value_attribute): Take a bool cache_p.
12899 Cache the list when the parameter is true.
12900 (gen_formal_parameter_die): Update caller.
12901 (gen_variable_die): Likewise.
12902 (dwarf2out_finish): Likewise.
12903 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12904 while generating debug info for the decl.
12905 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12906 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12907 (resolve_addr): Cache the result of resolving a chain of
12908 location lists.
12909
1756cb66
VM
129102011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12911
12912 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12913 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 12914
1756cb66
VM
12915 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12916 after regstat_init_n_sets_and_refs.
12917
12918 * ira.c: Add more comments at the top.
12919 (setup_stack_reg_pressure_class, setup_pressure_classes):
12920 Add comments how we compute the register pressure classes.
12921 (setup_allocno_and_important_classes): Add more comments.
12922 (setup_class_translate_array, reorder_important_classes)
12923 (setup_reg_class_relations): Add comments.
12924
12925 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12926 start of the file.
12927
12928 * ira-color.c: Add 2011 to the Copyright line.
12929 (assign_hard_reg): Add more comments.
12930 (improve_allocation): Ditto.
12931
12932 * ira-costs.c: Add 2011 to the Copyright line.
12933 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12934 comments.
12935 (setup_regno_cost_classes_by_mode): Ditto.
12936
12937 Initial patches from ira-improv branch:
12938
12939 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12940
f60c2554 12941 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
12942 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12943 (ira_create_allocno): Remove initialization of
12944 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12945 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12946 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12947 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12948 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12949 Initialize ALLOCNO_ADD_DATA.
12950 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12951 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12952 ALLOCNO_REG.
12953 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12954 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12955
12956 * ira.c (ira_reallocate): Remove.
12957 (setup_pressure_classes): Call
12958 ira_init_register_move_cost_if_necessary. Use
12959 ira_register_move_cost instead of ira_get_register_move_cost.
12960 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12961 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12962
12963 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12964 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12965 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12966 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12967 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12968 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12969 Fix formatting.
7a81008b 12970 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
12971 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12972 (struct allocno_color_data): New.
12973 (allocno_color_data_t): New typedef.
12974 (allocno_color_data): New definition.
12975 (ALLOCNO_COLOR_DATA): New macro.
12976 (struct object_color_data): New.
12977 (object_color_data_t): New typedef.
12978 (object_color_data): New definition.
12979 (OBJECT_COLOR_DATA): New macro.
12980 (update_copy_costs, calculate_allocno_spill_cost): Call
12981 ira_init_register_move_cost_if_necessary. Use
12982 ira_register_move_cost instead of ira_get_register_move_cost.
12983 (move_spill_restore, update_curr_costs): Ditto.
12984 (allocno_spill_priority): Make it inline.
7a81008b 12985 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
12986 (struct coalesce_data, coalesce_data_t): New.
12987 (allocno_coalesce_data): New definition.
12988 (ALLOCNO_COALESCE_DATA): New macro.
12989 (merge_allocnos, coalesced_allocno_conflict_p): Use
12990 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12991 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12992 (coalesce_allocnos): Ditto.
12993 (setup_coalesced_allocno_costs_and_nums): Ditto.
12994 (collect_spilled_coalesced_allocnos): Ditto.
12995 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12996 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12997 (coalesce_spill_slots): Ditto.
12998 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12999 free allocno_coalesce_data.
13000
13001 * ira-conflicts.c: Fix formatting.
13002 (process_regs_for_copy): Call
13003 ira_init_register_move_cost_if_necessary. Use
13004 ira_register_move_cost instead of ira_get_register_move_cost.
13005 (build_object_conflicts): Optimize.
13006
13007 * ira-costs.c (record_reg_classes): Optimize. Call
13008 ira_init_register_move_cost_if_necessary. Use
13009 ira_register_move_cost, ira_may_move_in_cost, and
13010 ira_may_move_out_cost instead of ira_get_register_move_cost and
13011 ira_get_may_move_cost.
13012 (record_address_regs): Ditto.
13013 (scan_one_insn): Optimize.
13014 (find_costs_and_classes): Optimize.
13015 (process_bb_node_for_hard_reg_moves): Call
13016 ira_init_register_move_cost_if_necessary. Use
13017 ira_register_move_cost instead of ira_get_register_move_cost.
13018
13019 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13020 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13021 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13022 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13023 definitions.
13024 (ira_initiate_emit_data, ira_finish_emit_data)
13025 (create_new_allocno): New functions.
7a81008b 13026 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
13027 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13028 Use ira_register_move_cost instead of ira_get_register_move_cost.
13029
13030 * ira-int.h: Fix some comments.
7a81008b
UB
13031 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13032 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
13033 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13034 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13035 add_data.
13036 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13037 bitfield after mode. Make hard_regno a short int. Make
13038 hard_regno short. Remove first_coalesced_allocno and
13039 next_coalesced_allocno. Move mem_optimized_dest_p,
13040 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13041 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13042 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13043 temp, colorable_p. Add new member add_data.
13044 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13045 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13046 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13047 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13048 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13049 (ALLOCNO_ADD_DATA): New macro.
13050 (ira_emit_data_t): New typedef.
13051 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13052 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13053 from struct ira_allocno.
13054 (ALLOCNO_EMIT_DATA): New macro.
13055 (ira_allocno_emit_data, allocno_emit_reg): New.
13056 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 13057 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
13058 (OBJECT_ADD_DATA): New macro.
13059 (ira_reallocate): Remove.
13060 (ira_initiate_emit_data, ira_finish_emit_data): New.
13061 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13062 (ira_init_register_move_cost_if_necessary): New.
13063 (ira_object_conflict_iter_next): Merge into
13064 ira_object_conflict_iter_cond.
7a81008b 13065 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 13066
f60c2554 13067 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
13068 ira_init_register_move_cost_if_necessary. Use
13069 ira_register_move_cost instead of ira_get_register_move_cost.
13070
13071 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13072
13073 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13074
13075 * ira-costs.c: Fix formatting.
13076 (cost_classes, cost_classes_num): Remove.
13077 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13078 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13079 (cost_classes_del, cost_classes_htab): New.
13080 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13081 (initiate_regno_cost_classes, setup_cost_classes): New.
13082 (setup_regno_cost_classes_by_aclass): New.
7a81008b 13083 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
13084 (record_reg_classes): Use regno_cost_classes instead of
13085 cost_classes. Move checking opposite operand up.
13086 (record_address_regs): Use regno_cost_classes
13087 instead of cost_classes.
13088 (scan_one_insn): Ditto. Use always general register.
13089 (print_allocno_costs): Use regno_cost_classes instead of
13090 cost_classes.
13091 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13092 (find_costs_and_classes): Set up cost classes for each registers.
13093 Use also their mode for this. Use regno_cost_classes instead of
13094 cost_classes.
13095 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13096 cost_classes.
13097 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13098 (ira_costs, ira_set_pseudo_classes): Call
13099 initiate_regno_cost_classes and finish_regno_cost_classes.
13100
13101 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13102
13103 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13104
13105 * target.def (ira_cover_classes): Remove.
13106
7a81008b 13107 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
13108
13109 * doc/tm.texi.in: Ditto.
13110
13111 * ira-conflicts.c: Remove mentioning cover classes from the file.
13112 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 13113 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
13114
13115 * targhooks.c (default_ira_cover_classes): Remove.
13116
13117 * targhooks.h (default_ira_cover_classes): Ditto.
13118
13119 * haifa-sched.c: Remove mentioning cover classes from the file.
13120 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13121 ira_pressure_classes and ira_pressure_classes_num instead of
13122 ira_reg_class_cover_size and ira_reg_class_cover. Use
13123 sched_regno_pressure_class instead of sched_regno_cover_class.
13124 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13125 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13126
13127 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13128 classes from the file.
13129 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13130 (struct object_hard_regs, struct object_hard_regs_node): New.
13131 (struct ira_object): New members profitable_hard_regs,
13132 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13133 (struct ira_allocno): Rename cover_class to aclass. Rename
13134 cover_class_cost and updated_cover_class_cost to class_cost and
13135 updated_class_cost. Remove splay_removed_p and
13136 left_conflict_size. Add new members colorable_p.
13137 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13138 (ALLOCNO_COLORABLE_P): New macro.
13139 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13140 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13141 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13142 (OBJECT_...): Rename parameter C to O.
13143 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13144 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13145 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13146 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13147 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13148 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13149 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13150 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13151 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13152 x_ira_reg_class_subunion.
13153 (ira_max_memory_move_cost, ira_max_register_move_cost)
13154 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13155 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13156 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 13157 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
13158 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13159 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13160 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13161 (ira_tune_allocno_costs_and_cover_classes): Rename to
13162 ira_tune_allocno_costs.
13163 (ira_debug_hard_regs_forest): New.
13164 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13165 (ira_object_conflict_iter_next): Fix comments.
7a81008b 13166 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
13167 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13168 cover_class to aclass.
13169 (ira_allocate_and_accumulate_costs): Ditto.
13170 (ira_allocate_and_set_or_copy_costs): Ditto.
13171
13172 * opts.c (decode_options): Remove ira_cover_class check.
13173
13174 * ira-color.c: Remove mentioning cover classes from the file. Use
13175 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13176 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13177 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13178 (splay-tree.h): Remove include.
13179 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13180 before copy_freq_compare_func.
13181 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13182 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13183 New definitions.
13184 (hard_regs_roots, hard_regs_node_vec): Ditto.
13185 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13186 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13187 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13188 (create_new_object_hard_regs_node): Ditto.
13189 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 13190 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
13191 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13192 Ditto.
13193 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13194 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13195 (remove_unused_object_hard_regs_nodes): Ditto.
13196 (enumerate_object_hard_regs_nodes): Ditto.
13197 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13198 (object_hard_regs_subnode_t): Ditto.
13199 (struct object_hard_regs_subnode): Ditto.
13200 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13201 (setup_object_hard_regs_subnode_index): Ditto.
13202 (get_object_hard_regs_subnodes_num): Ditto.
13203 (form_object_hard_regs_nodes_forest): Ditto.
13204 (finish_object_hard_regs_nodes_tree): Ditto.
13205 (finish_object_hard_regs_nodes_forest): Ditto.
13206 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 13207 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
13208 (pseudos_have_intersected_live_ranges_p): Rename to
13209 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13210 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13211 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13212 (update_copy_costs): Remove assert. Skip cost update if the hard
13213 reg does not belong the class.
13214 (assign_hard_reg): Process only profitable hard regs.
13215 (uncolorable_allocnos_num): Make it scalar.
13216 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13217 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13218 and ira_reg_class_max_nregs.
13219 (bucket_allocno_compare_func): Check frequency first.
13220 (sort_bucket): Add compare function as a parameter.
13221 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13222 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13223 (push_allocno_to_stack): Rewrite for checking new allocno
13224 colorability.
7a81008b 13225 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
13226 (push_only_colorable): Pass new parameter to sort_bucket.
13227 (push_allocno_to_spill): Remove.
13228 (allocno_spill_priority_compare): Make it inline and rewrite.
13229 (splay_tree_allocate, splay_tree_free): Remove.
13230 (allocno_spill_sort_compare): New function.
13231 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13232 build and use splay tree. Choose first allocno in uncolorable
13233 allocno bucket to spill. Remove setting spill cost.
13234 (all_conflicting_hard_regs): Remove.
13235 (setup_allocno_available_regs_num): Check only profitable hard
13236 regs. Print info about hard regs nodes.
13237 (setup_allocno_left_conflicts_size): Remove.
13238 (put_allocno_into_bucket): Don't call
7a81008b 13239 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
13240 (improve_allocation): New.
13241 (color_allocnos): Call setup_profitable_hard_regs,
13242 form_object_hard_regs_nodes_forest, improve_allocation,
13243 finish_object_hard_regs_nodes_forest. Setup spill cost.
13244 (print_loop_title): Use pressure classes.
13245 (color_allocnso): Ditto.
13246 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13247 and allocnos_for_spilling.
13248 (ira_sort_regnos_for_alter_reg): Don't setup members
13249 {first,next}_coalesced_allocno.
13250 (color): Remove allocating and freeing removed_splay_allocno_vec.
13251 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13252 prohibited_class_mode_regs.
13253
13254 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13255 formatting.
13256 (update_allocno_pressure_excess_length): Use pressure classes.
13257 (inc_register_pressure, dec_register_pressure): Check for pressure
13258 class.
13259 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13260 pressure class. Use ira_reg_class_nregs instead of
13261 ira_reg_class_max_nregs.
13262 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13263 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13264 (single_reg_class): Use ira_reg_class_nregs instead of
13265 ira_reg_class_max_nregs.
13266 (process_bb_node_lives): Use pressure classes.
13267
13268 * ira-emit.c: Remove mentioning cover classes from the file. Use
13269 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13270 (change_loop): Use pressure classes.
13271 (modify_move_list): Call ira_set_allocno_class instead of
13272 ira_set_allocno_cover_class.
13273
13274 * ira-build.c: Remove mentioning cover classes from the file. Use
13275 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13276 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13277 ALLOCNO_UPDATED_CLASS_COST instead of
13278 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13279 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13280 (ira_create_allocno): Remove initialization of
13281 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13282 ALLOCNO_COLORABLE_P.
13283 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13284 Update conflict regs for the objects.
13285 (create_cap_allocno): Remove assert. Don't propagate
13286 ALLOCNO_AVAILABLE_REGS_NUM.
13287 (ira_free_allocno_costs): New function.
13288 (finish_allocno): Change a part of code into call of
13289 ira_free_allocno_costs.
13290 (low_pressure_loop_node_p): Use pressure classes.
13291 (object_range_compare_func): Don't compare classes.
13292 (setup_min_max_conflict_allocno_ids): Ditto.
13293
13294 * loop-invariant.c: Remove mentioning cover classes from the file.
13295 Use ira_pressure_classes and ira_pressure_classes_num instead of
13296 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
13297 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13298 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13299 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
13300 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13301 STACK_REG_COVER_CLASS.
13302 (get_regno_cover_class): Rename to get_regno_pressure_class.
13303 (move_loop_invariants): Initialize and finalize regstat.
13304
13305 * ira.c: Remove mentioning cover classes from the file. Add
13306 comments about coloring without cover classes. Use ALLOCNO_CLASS
13307 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13308 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13309 setup_class_subset_and_memory_move_costs.
13310 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13311 (setup_cover_and_important_classes): Rename to
13312 setup_allocno_and_important_classes.
13313 (setup_class_translate_array): New.
13314 (setup_class_translate): Call it for allocno and pressure classes.
13315 (cover_class_order): Rename to allocno_class_order.
13316 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13317 of ira_class_translate.
13318 (reorder_important_classes): Set up ira_important_class_nums.
13319 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13320 (print_class_cover): Rename to print_classes. Add parameter.
13321 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13322 Print pressure classes too.
13323 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13324 setup_reg_subclasses.
7a81008b 13325 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
13326 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13327 (setup_prohibited_class_mode_regs): Use
7a81008b 13328 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
13329 (clarify_prohibited_class_mode_regs): New function.
13330 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13331 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13332 (ira_init_once): Initialize them.
13333 (free_register_move_costs): Process them.
13334 (ira_init): Move calls of find_reg_classes and
13335 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13336 Call clarify_prohibited_class_mode_regs.
13337 (ira_no_alloc_reg): Remove.
13338 (too_high_register_pressure_p): Use pressure classes.
13339
13340 * sched-deps.c: Remove mentioning cover classes from the file.
13341 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13342 ira_pressure_classes and ira_pressure_classes_num instead of
13343 ira_reg_class_cover_size and ira_reg_class_cover.
13344 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13345 sched_regno_pressure_class instead of sched_regno_cover_class.
13346 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13347 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13348
13349 * ira.h: Add 2010 to Copyright.
13350 (ira_no_alloc_reg): Remove external.
13351 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13352 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13353 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13354 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13355 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13356 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13357 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13358 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13359 x_ira_no_alloc_regs.
7a81008b 13360 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
13361 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13362 ira_allocno_classes_num and ira_allocno_classes.
13363 (ira_class_translate): Rename to ira_allocno_class_translate.
13364 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13365 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13366 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13367 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13368 (ira_no_alloc_regs): New.
13369
13370 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13371 classes from the file. Use ALLOCNO_CLASS instead of
13372 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13373 ALLOCNO_COVER_CLASS_COST.
13374 (regno_cover_class): Rename to regno_aclass.
13375 (record_reg_classes): Use ira_reg_class_subunion instead of
13376 ira_reg_class_union.
13377 (record_address_regs): Check overflow.
13378 (scan_one_insn): Ditto.
7a81008b 13379 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
13380 (print_pseudo_costs): Use REG_N_REFS.
13381 (find_costs_and_classes): Use classes intersected with them on the
13382 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13383 ira_reg_class_union. Use ira_allocno_class_translate and
13384 regno_aclass instead of ira_class_translate and regno_cover_class.
13385 Modify code for finding regno_aclass. Setup preferred classes for
13386 the next pass.
13387 (setup_allocno_cover_class_and_costs): Rename to
13388 setup_allocno_class_and_costs. Use regno_aclass instead of
13389 regno_cover_class. Use ira_set_allocno_class instead of
13390 ira_set_allocno_cover_class.
13391 (init_costs, finish_costs): Use regno_aclass instead of
13392 regno_cover_class.
13393 (ira_costs): Use setup_allocno_class_and_costs instead of
13394 setup_allocno_cover_class_and_costs.
13395 (ira_tune_allocno_costs_and_cover_classes): Rename to
13396 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13397 by processing objects. Use ira_reg_class_max_nregs instead of
13398 ira_reg_class_nregs.
13399
13400 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13401
13402 * sched-int.h: Remove mentioning cover classes from the file.
13403 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13404
13405 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13406 classes from the file.
13407 (struct reg_pref): Rename coverclass into allocnoclass.
13408 (reg_cover_class): Rename to reg_allocno_class.
13409
7a81008b 13410 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
13411
13412 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13413
13414 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13415
13416 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13417
13418 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13419
13420 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13421
13422 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13423
13424 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13425
13426 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13427
13428 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13429
13430 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13431 (i386_ira_cover_classes): Ditto.
13432
13433 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13434
13435 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13436
13437 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13438
13439 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13440
13441 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13442
13443 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13444
13445 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13446 (mips_ira_cover_classes): Ditto.
13447
13448 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13449
13450 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13451
13452 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13453
13454 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13455
13456 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13457
13458 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13459 (IRA_COVER_CLASSES_VSX): Ditto.
13460
13461 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13462 (rs6000_ira_cover_classes): Ditto.
13463
13464 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13465
13466 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13467
13468 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13469
13470 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13471
13472 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13473
13474 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13475
13476 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13477
13478 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13479
13480 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13481
13482 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13483
2b80199f
JJ
134842011-03-29 Jakub Jelinek <jakub@redhat.com>
13485
71dae1fe
JJ
13486 PR debug/48253
13487 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13488 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13489 dw_fde_unlikely_section_end_label, cold_in_std_section,
13490 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13491 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13492 fields.
13493 (output_fde): Use dw_fde_second_{begin,end} if second is
13494 true, otherwise dw_fde_{begin,end}.
13495 (output_call_frame_info): Test dw_fde_second_begin != NULL
13496 instead of dw_fde_switched_sections.
13497 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13498 fields, initialize new fields. Initialize in_std_section
13499 unconditionally from the first partition.
13500 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13501 dw_fde_second_begin is non-NULL.
13502 (dwarf2out_switch_text_section): Stop initializing removed
13503 dw_fde_struct fields, initialize new fields, initialize
13504 also dw_fde_end here. Set dw_fde_switch_cfi even when
13505 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13506 (struct var_loc_list_def): Add last_before_switch field.
13507 (arange_table, arange_table_allocated, arange_table_in_use,
13508 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13509 (size_of_aranges): Count !in_std_section and !second_in_std_section
13510 hunks in fdes, instead of looking at arange_table_in_use.
13511 (output_aranges): Add aranges_length argument, don't call
13512 size_of_aranges here. Instead of using aranges_table*
13513 emit ranges for fdes when !in_std_section resp.
13514 !second_in_std_section.
13515 (dw_loc_list): Break ranges crossing section switch.
13516 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 13517 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
13518 (gen_subprogram_die): Don't call add_arange. Use
13519 dw_fde_{begin,end} for first partition and if switched
13520 section dw_fde_second_{begin,end} for the second.
13521 (var_location_switch_text_section_1,
13522 var_location_switch_text_section): New functions.
13523 (dwarf2out_begin_function): Initialize cold_text_section even
13524 when function_section () isn't text_section.
13525 (prune_unused_types): Don't walk arange_table.
13526 (dwarf2out_finish): Don't needlessly test
13527 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13528 If info_section_emitted, call size_of_aranges and if it indicates
13529 non-empty .debug_aranges, call output_aranges with the computed
13530 size. Stop using removed dw_fde_struct fields, use
13531 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13532 for second.
13533
2b80199f
JJ
13534 PR debug/48203
13535 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13536 create ENTRY_VALUE if incoming or address of incoming's MEM
13537 is a hard REG.
13538 * dwarf2out.c (mem_loc_descriptor): Don't emit
13539 DW_OP_GNU_entry_value of DW_OP_fbreg.
13540 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13541 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13542 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13543 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13544 ENTRY_VALUE_EXPs.
13545 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13546 is a REG_P or MEM_P with REG_P address, compute hash directly
13547 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13548 (preserve_only_constants): Don't clear VALUES forwaring
13549 ENTRY_VALUE to some other VALUE.
13550
8a445129
RS
135512011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13552
13553 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13554 instead of GEN_INT.
13555
c82fee88
EB
135562011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13557
13558 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13559 block before expanding the statement.
13560 (expand_gimple_stmt_1): Likewise. Set them here...
13561 (expand_gimple_stmt): ...and not here. Tidy.
13562 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13563 unknown.
13564
e45425ec
SB
135652011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13566
13567 * Makefile.in: New rule for cprop.o.
13568 * gcse.c: Move constant/copy propagation to cprop.c.
13569 (compute_local_properties): Only handle expression tables.
13570 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13571 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13572 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13573 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 13574 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
13575 compute_cprop_data, find_used_regs, try_replace_reg,
13576 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13577 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13578 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13579 find_bypass_set, reg_killed_on_edge, bypass_block,
13580 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13581 execute_rtl_cprop, pass_rtl_cprop): Move to...
13582 * cprop.c: ...here. New file, constant/copy propagation for RTL
13583 moved from gcse.c to here with minor cleanups in duplicated code.
13584
c09d5426
L
135852011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13586
13587 * config/i386/i386.c (flag_opts): Fix a typo in
13588 -mavx256-split-unaligned-store.
13589
9eaa7740
AS
135902011-03-28 Anatoly Sokolov <aesok@post.ru>
13591
13592 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13593 LIBCALL_VALUE): Remove macros.
13594 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13595 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13596 (h8300_function_value, h8300_libcall_value,
13597 h8300_function_value_regno_p): New functions.
13598
dcec2be2
AS
135992011-03-28 Anatoly Sokolov <aesok@post.ru>
13600
13601 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13602
520af9ec
JL
136032011-03-28 Jeff Law <law@redhat.com>
13604
13605 * tree-ssa-threadupdate.c (redirect_edges): Call
13606 create_edge_and_update_destination_phis as needed.
13607 (create_edge_and_update_destination_phis): Accept new BB argument.
13608 All callers updated.
13609 (thread_block): Do not update the profile when threading around
13610 intermediate blocks.
13611 (thread_single_edge): Likewise.
13612 (determine_bb_domination_status): If BB is not a successor of the
13613 loop header, return NONDOMINATING.
13614 (register_jump_thread): Note when we register a jump thread around
13615 an intermediate block.
13616 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13617 (thread_across_edge): Use it.
13618
7450b54f
TG
136192011-03-28 Tristan Gingold <gingold@adacore.com>
13620
13621 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13622 when for_return is 2.
13623
649beb33
JL
136242011-03-28 Jeff Law <law@redhat.com>
13625
13626 * var-tracking.c (canonicalize_values_mark): Delete unused
13627 lhs assignment.
13628 (canonicalize_values_star, set_variable_part): Likewise.
13629 (clobber_variable_part, delete_variable_part): Likewise.
13630
d5b8da97
SB
136312011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13632
13633 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13634
322dd859
MJ
136352011-03-28 Martin Jambor <mjambor@suse.cz>
13636
13637 * tree-inline.c (expand_call_inline): Do not check that destination
13638 node is analyzed.
13639 (optimize_inline_calls): Assert that destination node is analyzed.
13640 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13641 not call tree_lowering_passes.
13642 * cgraph.h (cgraph_analyze_function): Declare.
13643 * cgraphunit.c (cgraph_analyze_function): Make public.
13644
aa53e58b
JM
136452011-03-28 Joseph Myers <joseph@codesourcery.com>
13646
13647 * config/sparc/sparc-opts.h: New.
13648 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13649 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13650 (sparc_option_override): Store processor_type enumeration rather
13651 than string in cpu_default. Remove name and enumeration from
13652 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13653 without using sparc_select. Use target_flags_explicit instead of
13654 fpu_option_set.
13655 * config/sparc/sparc.h (enum processor_type): Move to
13656 sparc-opts.h.
13657 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13658 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13659 HeaderInclude entry.
13660 (mcpu=, mtune=): Use Var and Enum.
13661 (sparc_processor_type): New Enum and EnumValue entries.
13662
dd350eba
RO
136632011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13664 Iain Sandoe <iains@gcc.gnu.org>
13665
13666 PR target/48245
13667 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13668
1b29f05e
EB
136692011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13670
13671 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13672 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13673 Insert new statements at it in lieu of STMT.
13674 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13675 * tree-vect-stmts.c (vectorizable_store): Likewise.
13676 (vectorizable_load): Likewise.
13677
506e6808
UB
136782011-03-28 Uros Bizjak <ubizjak@gmail.com>
13679
13680 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13681 (divtf3): Ditto.
13682 (multf3): Ditto.
13683 (subtf3): Ditto.
13684
2e939ee9
L
136852011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13686
13687 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13688 unaligned 256bit load/store.
13689 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13690 (*avx_movdqu<avxmodesuffix>): Likewise.
13691
5e85ab88
JDA
136922011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13693
13694 PR target/48288
13695 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13696 * config/pa/pa.md (iordi3): Use new predicate in expander.
13697 (iorsi3): Likewise.
13698
47be3d6d
AS
136992011-03-27 Anatoly Sokolov <aesok@post.ru>
13700
506e6808 13701 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 13702 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
13703 * config/mips/mips-protos.h (mips_function_value): Remove.
13704 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
13705 (mips_function_value_1): ... this. Make static. Handle receiving
13706 the function type in 'fn_decl_or_type' argument.
13707 (mips_function_value, mips_libcall_value,
13708 mips_function_value_regno_p): New function.
13709 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13710 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13711
d253656a
L
137122011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13713
13714 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13715 and -mavx256-split-unaligned-store.
13716 (ix86_option_override_internal): Split 32-byte AVX unaligned
13717 load/store by default.
13718 (ix86_avx256_split_vector_move_misalign): New.
13719 (ix86_expand_vector_move_misalign): Use it.
13720
13721 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13722 -mavx256-split-unaligned-store.
13723
13724 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13725 256bit load/store. Generate unaligned store on misaligned memory
13726 operand.
13727 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13728 256bit load/store.
13729 (*avx_movdqu<avxmodesuffix>): Likewise.
13730
13731 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13732 -mavx256-split-unaligned-store.
13733
1ea9206a
RS
137342011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13735
13736 PR target/38598
13737 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13738 Update commentary.
13739
b99ce2a8
RS
137402011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13741
13742 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13743 opno arguments with an expand_operand. Use create_input_operand.
13744 (mips_prepare_builtin_target): Delete.
13745 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13746 functions.
13747 (mips_expand_builtin_direct): Use create_output_operand and
13748 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13749 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13750 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13751
69d52339
IR
137522011-03-27 Ira Rosen <ira.rosen@linaro.org>
13753
13754 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13755 function.
13756 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13757
ba5e9aca
EB
137582011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13759
13760 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13761 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13762 basic blocks and call commit_edge_insertions directly.
13763 (fixup_abnormal_edges): Move from here to...
13764 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13765 on the edges and return whether some have actually been inserted.
13766 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13767 compensation code.
13768
5d369d58
AB
137692011-03-26 Andrey Belevantsev <abel@ispras.ru>
13770
13771 PR rtl-optimization/48144
13772 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13773 (merge_expr_data): ... here.
13774 (av_set_intersect): Rename to av_set_code_motion_filter.
13775 Update all callers. Call merge_history_vect when an expression
13776 is found in both sets.
13777 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13778
f082c000
AM
137792011-03-26 Alan Modra <amodra@gmail.com>
13780
13781 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13782 cmodel medium addresses.
13783 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13784 64-bit gpr loads and stores.
13785 (rs6000_secondary_reload_ppc64): New function.
13786 * config/rs6000/rs6000-protos.h: Declare it.
13787 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13788
8ac5e12e
AM
137892011-03-26 Alan Modra <amodra@gmail.com>
13790
13791 PR target/47487
13792 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13793 GNU Go in traceback table.
13794
c2654ded
RH
137952011-03-25 Richard Henderson <rth@redhat.com>
13796
13797 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13798 if there are exactly 6 operands.
13799 (set_storage_via_setmem): Similarly.
13800
ba78087b
KT
138012011-03-25 Kai Tietz <ktietz@redhat.com>
13802
13803 * collect2.c (write_c_file_stat): Handle backslash
13804 as right-hand directory separator.
13805 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13806 checking just for slash.
13807 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13808 instead of checking for trailing slash.
13809 * gcc.c (record_temp_file): Use filename_cmp instead
13810 of strcmp.
13811 (do_spec_1): Likewise.
13812 (replace_outfile_spec_function): Likewise.
13813 (is_directory): Use filename_ncmp instead of strncmp.
13814 (print_multilib_info): Likewise.
13815 * gcov.c (find_source): Use filename_cmp instead
13816 instead of strcmp.
13817 (make_gcov_file_name): Fix order of slash/backslash
13818 checks.
13819 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13820 (add_standard_paths): Likewise.
13821 * mips-tfile.c (saber_stop): Handle backslash.
13822 * prefix.c (update_path): Use filename_ncmp instead of
13823 strncmp.
13824 * profile.c (output_location): Use filename_cmp instead
13825 of strcmp.
13826 * read-md.c (handle_toplevel_file): Handle backslash.
13827 * tlink.c (frob_extension): Likewise.
13828 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13829 strcmp.
13830 * tree-dump.c (dequeue_and_dump): Handle backslash.
13831 * tree.c (get_file_function_name): Likewise.
13832 * gengtype.c (read_input_list): Likewise.
13833 (get_file_realbasename): Likewise.
13834 (get_output_file_with_visibility): Use filename_cmp
13835 instead of strcmp.
13836
75f6ec9a
RS
138372011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13838
13839 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13840 case to VFPv1.
13841
6c4e2997
NF
138422011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13843
13844 * fold-const.c (expr_location_or): New function.
13845 (fold_truth_not_expr): Call it.
13846
0edf1bb2
JL
138472011-03-25 Jeff Law <law@redhat.com>
13848
13849 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13850 va_end.
13851 * c-family/c-common.c (def_fn_type): Likewise.
13852 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13853 * emit-rtl.c (gen_rtvec): Likewise.
13854 * lto/lto-lang.c (def_fn_type): Likewise.
13855
fdc2de95
RG
138562011-03-25 Richard Guenther <rguenther@suse.de>
13857
13858 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13859 also generate copies.
13860 (fini_copy_prop): Handle constant values properly.
13861
21385db0
JJ
138622011-03-25 Jakub Jelinek <jakub@redhat.com>
13863
13864 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13865 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13866 (hash_loc_operands, compare_loc_operands): Handle
13867 DW_OP_GNU_entry_value.
13868
6510e8bb
KT
138692011-03-25 Kai Tietz <ktietz@redhat.com>
13870
13871 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13872 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13873 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13874 comment and use macro TARGET_64BIT_MS_ABI instead.
13875 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13876 and change default behavior for 32-bit MS_ABI.
13877 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13878 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13879 32-bit, too.
13880 (ix86_cfun_abi): Likewise.
13881 (ix86_maybe_switch_abi): Adjust comment.
13882 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13883 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13884 instead of checking for SYSV_ABI.
13885 (ix86_nsaved_sseregs): Likewise.
13886 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13887 to 16 bytes.
13888 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13889 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13890 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13891 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13892 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13893
34019e28
RG
138942011-03-25 Richard Guenther <rguenther@suse.de>
13895
13896 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13897 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13898 (verify_gimple): Remove.
13899 * tree-cfg.c (verify_gimple_call): Merge verification
13900 from verify_stmts.
13901 (verify_gimple_phi): Merge verification from verify_stmts.
13902 (verify_gimple_label): New function.
13903 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13904 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13905 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13906 (verify_stmts): Rename to verify_gimple_in_cfg.
13907 (verify_gimple_in_cfg): New function.
13908 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13909 * tree-ssa.c (verify_ssa): Likewise.
13910 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13911
605896f5
RG
139122011-03-25 Richard Guenther <rguenther@suse.de>
13913
13914 * passes.c (init_optimization_passes): Add FRE pass after
13915 early SRA.
13916
7baa7c13
BS
139172011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13918 Andrew Stubbs <ams@codesourcery.com>
13919
13920 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13921 for Cortex-A8.
13922 (arm_movdi_vfp_cortexa8): New pattern.
13923 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13924 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13925 instructions when tuning for Cortex-A8. Set attribute "arch".
13926 * config/arm/arm.md: Move include arm-tune.md up a bit.
13927 (define_attr "arch"): Add "onlya8" and "nota8" values.
13928 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13929
45dbce1b
NF
139302011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13931
4ff08abf 13932 PR bootstrap/48282
45dbce1b
NF
13933 Revert:
13934 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13935
13936 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13937 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13938 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13939 * passes.c (init_optimization_passes): Move
13940 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13941
ac9a30ae
KT
139422011-03-25 Kai Tietz <ktietz@redhat.com>
13943
13944 * c-typeck.c (comptypes_internal): Replace target
13945 hook call of comp_type_attributes by version in tree.c file.
13946 * gimple.c (gimple_types_compatible_p_1): Likewise.
13947 * tree-ssa.c (useless_type_conversion_p): Likewise.
13948 * tree.c (build_type_attribute_qual_variant): Likewise.
13949 (attribute_value_equal): New static helper function.
13950 (comp_type_attributes): New function.
13951 (merge_attributes): Use attribute_value_equal for comparison.
13952 (attribute_list_contained): Likewise.
13953 * tree.h (comp_type_attributes): New prototype.
13954
afdac116
RG
139552011-03-25 Richard Guenther <rguenther@suse.de>
13956
13957 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13958 of complex types at -O0.
13959 (verify_gimple_assign_binary): Likewise.
13960 (verify_gimple_assign_ternary): Likewise.
13961
ec6165f8
MW
139622011-03-24 Mark Wielaard <mjw@redhat.com>
13963
13964 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13965 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13966
2a5ac39a
MW
139672011-03-24 Mark Wielaard <mjw@redhat.com>
13968
13969 PR debug/48041
13970 * dwarf2out.c (output_abbrev_section): Only write table when
13971 abbrev_die_table_in_use > 1.
13972
e533b2a4
RH
139732011-02-24 Richard Henderson <rth@redhat.com>
13974
13975 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13976 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13977 (alpha_expand_unaligned_load_words): Use extql.
13978 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13979 (emit_insxl): Handle all modes for consistency.
13980
0b2a7367
RH
139812011-02-24 Richard Henderson <rth@redhat.com>
13982
13983 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13984 (alpha_expand_unaligned_load): Likewise.
13985 (alpha_expand_unaligned_store): Likewise.
13986 (alpha_expand_unaligned_load_words): Likewise.
13987 (alpha_expand_unaligned_store_words): Likewise.
13988 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13989 (alpha_split_lock_test_and_set_12): Likewise.
13990 (print_operand, alpha_fold_builtin_extxx): Likewise.
13991 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13992 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13993 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13994 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13995 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13996 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13997 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13998 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13999 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14000 (extwl, extll, extql): Similarly.
14001 (inswh, inslh, insqh): Similarly.
14002 (mskbl, mskwl, mskll, mskql): Similarly.
14003 (mskwh, msklh, mskqh): Similarly.
14004
315b2bef
RH
140052011-02-24 Richard Henderson <rth@redhat.com>
14006
14007 * config/alpha/alpha.md (attribute isa): Add er, ner.
14008 (attribute enabled): Handle them.
14009 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14010
67102517
RH
140112011-02-24 Richard Henderson <rth@redhat.com>
14012
14013 * config/alpha/alpha.md (attribute isa): Add vms.
14014 (attribute enabled): Handle it.
14015 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14016 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14017 (*movtf): Rename from *movtf_internal for consistency.
14018 (*movsi): Merge with *movsi_nt_vms.
14019 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14020 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14021 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14022 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14023
6aba5cb4
RH
140242011-02-24 Richard Henderson <rth@redhat.com>
14025
14026 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14027 (extendqisi2, extendhisi2): Likewise.
14028 (extendqidi2): Simplify BWX/non-BWX expansions.
14029 (extendhidi2): Similarly.
14030
bdfb351b
RH
140312011-02-24 Richard Henderson <rth@redhat.com>
14032
14033 * config/alpha/alpha.md (attribute isa): New.
14034 (attribute enabled): New.
14035 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14036 (zero_extendqisi2, zero_extendqidi2): Similarly.
14037 (zero_extendhisi2, zero_extendhidi2): Similarly.
14038 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14039
6abe71eb
RH
140402011-02-24 Richard Henderson <rth@redhat.com>
14041
14042 * config/alpha/predicates.md (input_operand): Revert last change;
14043 update comment to mention 32-bit VMS rather than Windows.
14044
7114321e
NF
140452011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14046
14047 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14048 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14049 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14050 * passes.c (init_optimization_passes): Move
14051 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14052
c8679567
EB
140532011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14054
14055 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14056
27173058
UB
140572011-03-24 Uros Bizjak <ubizjak@gmail.com>
14058
14059 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14060 correctly.
14061
6f0c9f06
JJ
140622011-03-24 Jakub Jelinek <jakub@redhat.com>
14063
14064 PR debug/48204
14065 * simplify-rtx.c (simplify_const_unary_operation): Call
14066 real_convert when changing mode class with FLOAT_EXTEND.
14067
662666e5
NC
140682011-03-24 Nick Clifton <nickc@redhat.com>
14069
14070 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14071 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14072 * config/rx/rx.c (rx_option_override): Set align_jumps,
14073 align_loops and align_labels if not set by the user.
14074 (rx_align_for_label): New function.
14075 (rx_max_skip_for_label): New function.
14076 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14077 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14078 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14079 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14080 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14081
2b99b2b8
RS
140822011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14083
14084 PR rtl-optimization/48263
14085 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14086 and original commutative_p handling. Use maybe_gen_insn.
14087
ccecd6ea
AK
140882011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14089
14090 * reload.c (find_reloads_subreg_address): Add address_reloaded
14091 parameter and return true there if the full address has been
14092 reloaded.
14093 (find_reloads_toplev): Pass address_reloaded flag.
14094 (find_reloads_address_1): Don't use address_reloaded parameter.
14095
67295642
JL
140962011-03-24 Jeff Law <law@redhat.com>
14097
14098 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14099 unused variable "ann".
14100 (remove_unused_locals): Likewise.
14101
14102 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14103 statement.
14104
14105 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14106 after it is freed.
14107
212aa74f
AK
141082011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14109
14110 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14111 for invalid symbolic addresses.
14112 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14113 larl operands.
14114
fe784e0d
EB
141152011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14116
14117 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14118 the argument in calls to fold_truth_not_expr.
14119
63ee8641
NF
141202011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14121
14122 * tree.c (record_node_allocation_statistics): New function.
14123 (make_node_stat, copy_node_stat, build_string): Call it.
14124 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14125 (build1_stat, build_omp_clause): Likewise.
14126
61be2a1c
RS
141272011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14128
14129 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14130 last commit.
14131
a881aaa7
RG
141322011-03-24 Richard Guenther <rguenther@suse.de>
14133
14134 PR tree-optimization/48271
14135 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14136 blocks that still exist.
14137
dbaa912c
RG
141382011-03-24 Richard Guenther <rguenther@suse.de>
14139
14140 PR tree-optimization/48270
14141 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14142 not free datarefs before ddrs.
14143
1d60cc55
EB
141442011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14145
14146 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14147 from the address built for a reference with variable offset.
14148
c78dd519
UB
141492011-03-24 Uros Bizjak <ubizjak@gmail.com>
14150
14151 PR target/48237
14152 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14153 alternatives that can be handled with movq or movabsq insn.
14154 (*movdf_internal): Disable for !TARGET_64BIT.
14155 (*movdf_internal_nointeger): Ditto.
14156 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14157
b25b9e8f
NF
141582011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14159
14160 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14161 (FUNCTION_ARG_ADVANCE): Likewise.
14162 * tm.texi.in: Change references to them to hook references.
14163 * tm.texi: Regenerate.
c78dd519 14164 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
14165 (default_function_incoming_arg): Likewise.
14166 (default_function_arg_advance): Likewise.
c78dd519 14167 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
14168 (function_arg_advance): Likewise.
14169 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14170
190b2187
RG
141712011-03-24 Richard Guenther <rguenther@suse.de>
14172
14173 PR middle-end/48269
14174 * tree-object-size.c (addr_object_size): Do not double-account
14175 for MEM_REF offsets.
14176
a183b5c7
DN
141772011-03-24 Diego Novillo <dnovillo@google.com>
14178
14179 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 14180 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
14181 (lto_input_data_block): Move from lto-opts.c. Make extern.
14182 Update all users.
14183 (lto_input_string): Rename from input_string. Make extern.
14184 Update all users.
14185 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14186 output_string_with_length.
14187 Output 0 to indicate a non-NULL string. Update all callers to
14188 not emit 0.
14189 (lto_output_string): Rename from output_string. Make extern.
14190 Update all users.
14191 (lto_output_decl_state_streams): Make extern.
14192 (lto_output_decl_state_refs): Make extern.
14193 * lto-streamer.h (lto_input_string): Declare.
14194 (lto_input_data_block): Declare.
14195 (lto_output_string): Declare.
14196 (lto_output_string_with_length): Declare.
14197 (lto_output_decl_state_streams): Declare.
14198 (lto_output_decl_state_refs): Declare.
14199
cfef45c8
RG
142002011-03-24 Richard Guenther <rguenther@suse.de>
14201
14202 PR tree-optimization/46562
14203 * tree.c (build_invariant_address): New function.
14204 * tree.h (build_invariant_address): Declare.
14205 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14206 a renamed function moved ...
14207 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14208 Take valueization callback parameter.
14209 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14210 * gimple-fold.h: New file.
14211 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14212 (ccp_fold, fold_const_aggregate_ref,
14213 fold_ctor_reference, fold_nonarray_ctor_reference,
14214 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14215 get_base_constructor): Move ...
14216 * gimple-fold.c: ... here.
14217 (gimple_fold_stmt_to_constant_1): New function
14218 split out from ccp_fold. Take a valueization callback parameter.
14219 Valueize all operands.
14220 (gimple_fold_stmt_to_constant): New wrapper function.
14221 (fold_const_aggregate_ref_1): New function split out from
14222 fold_const_aggregate_ref. Take a valueization callback parameter.
14223 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14224 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14225 invariant POINTER_PLUS_EXPRs to invariant form.
14226 (vn_valueize): New function.
14227 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14228 * tree-vrp.c (vrp_valueize): New function.
14229 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14230 to fold statements to constants.
14231 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14232 function declarations.
14233 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14234 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14235
5e0a7e40
RS
142362011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14237
14238 * config/h8300/predicates.md (jump_address_operand): Fix register
14239 mode check.
14240
bfe068c3
IR
142412011-03-24 Ira Rosen <ira.rosen@linaro.org>
14242
14243 * doc/invoke.texi (max-stores-to-sink): Document.
14244 * params.h (MAX_STORES_TO_SINK): Define.
14245 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14246 if either vectorization or if-conversion is disabled.
14247 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14248 tree-vect-data-refs.c vect_equal_offsets.
14249 (dr_equal_offsets_p): New function.
14250 (find_data_references_in_bb): Remove static.
14251 * tree-data-ref.h (find_data_references_in_bb): Declare.
14252 (dr_equal_offsets_p): Likewise.
14253 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14254 (vect_drs_dependent_in_basic_block): Update calls to
14255 vect_equal_offsets.
14256 (vect_check_interleaving): Likewise.
14257 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14258 (cond_if_else_store_replacement): Rename to...
14259 (cond_if_else_store_replacement_1): ... this. Change arguments and
14260 documentation.
14261 (cond_if_else_store_replacement): New function.
14262 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14263 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14264
4908b0bf
CLT
142652011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14266
14267 PR target/46934
14268 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14269 to subtract lower bound instead of GEN_INT().
14270
2be478a2
JW
142712011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14272
14273 PR other/48179
14274 PR other/48221
14275 PR other/48234
14276 * doc/extend.texi (Alignment): Move section to match order in TOC.
14277 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14278 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14279
0c617be4
JL
142802011-03-23 Jeff Law <law@redhat.com>
14281
14282 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14283 before removing the edge.
14284
14285 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14286 it may have been freed by redirect_branch_edge or
14287 redirect_edge_succ_nodup.
14288
58da96fe
RG
142892011-03-23 Richard Guenther <rguenther@suse.de>
14290
c78dd519 14291 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
14292 (check_va_list_escapes): Likewise.
14293 (check_all_va_list_escapes): Likewise.
14294
b8beb4d1
RG
142952011-03-23 Richard Guenther <rguenther@suse.de>
14296
14297 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14298 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14299 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14300 (alias.o): Likewise.
14301 (ipa-type-escape.o): Remove.
14302 (ipa-struct-reorg.o): Likewise.
14303 (GTFILES): Remove ipa-struct-reorg.c.
14304 * alias.c: Do not include ipa-type-escape.h.
14305 * tree-ssa-alias.c: Likewise.
14306 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14307 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14308 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14309 and ipa-type-escape passes.
14310 * tree-pass.h (pass_ipa_type_escape): Remove.
14311 (pass_ipa_struct_reorg): Likewise.
14312 * ipa-struct-reorg.h: Remove.
14313 * ipa-struct-reorg.c: Likewise.
14314 * ipa-type-escape.h: Likewise.
14315 * ipa-type-escape.c: Likewise.
14316 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14317 (--param struct-reorg-cold-struct-ratio): Likewise.
14318 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14319 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14320 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14321
f137aa63
AK
143222011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14323
14324 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14325 cpu attribute value.
14326 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14327 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14328 * config/s390/s390.c (processor_flags_table): New constant array.
14329 (s390_handle_arch_option): Remove.
14330 (s390_handle_option): Remove s390_handle_arch_option invocations
14331 and OPT_mwarn_framesize_ handling.
14332 (s390_option_override): Remove s390_handle_arch_option invocation.
14333 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14334 warnings.
14335 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14336 * config/s390/s390.opt (s390_tune, s390_arch)
14337 (march=): Replace s390_arch_option enum and values with
14338 processor_type. Set variable name to s390_arch. Set
14339 initialization value.
14340 (mtune=): Replace s390_arch_option with processor_type. Set
14341 variable name to s390_tune. Set initialization value.
14342
bf90208f
JB
143432011-03-23 Julian Brown <julian@codesourcery.com>
14344
14345 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14346 accesses which are not naturally aligned.
14347
3460fdf3
RS
143482011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14349
14350 PR target/47553
14351 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14352
a5c7d693
RS
143532011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14354
14355 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14356 parameter from "int" to "enum insn_code".
14357 (expand_operand_type): New enum.
14358 (expand_operand): New structure.
14359 (create_expand_operand): New function.
14360 (create_fixed_operand, create_output_operand): Likewise
14361 (create_input_operand, create_convert_operand_to): Likewise.
14362 (create_convert_operand_from, create_address_operand): Likewise.
14363 (create_integer_operand): Likewise.
14364 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14365 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14366 (expand_insn, expand_jump_insn): Likewise.
14367 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14368 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14369 (expand_movstr, expand_builtin___clear_cache): Likewise.
14370 (expand_builtin_lock_release): Likewise.
14371 * explow.c (allocate_dynamic_stack_space): Likewise.
14372 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14373 and use the default handling in that case.
14374 * expmed.c (check_predicate_volatile_ok): Delete.
14375 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14376 (emit_cstore): Likewise.
14377 * expr.c (emit_block_move_via_movmem): Likewise.
14378 (set_storage_via_setmem, expand_assignment): Likewise.
14379 (emit_storent_insn, try_casesi): Likewise.
14380 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14381 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14382 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14383 (expand_twoval_unop, expand_twoval_binop): Likewise.
14384 (expand_unop_direct, emit_indirect_jump): Likewise.
14385 (emit_conditional_move, vector_compare_rtx): Likewise.
14386 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14387 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14388 (expand_sync_lock_test_and_set): Likewise.
14389 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14390 (emit_unop_insn): Likewise.
14391 (expand_copysign_absneg): Change icode to an insn_code.
14392 (create_convert_operand_from_type): New function.
14393 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14394 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14395 (expand_insn, expand_jump_insn): Likewise.
14396 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14397 than const_int_operand for operand 2.
14398
78fadbab
AK
143992011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14400
14401 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14402 if possible.
14403
5f02387d
NF
144042011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14405
14406 * emit-rtl.c (emit_pattern_before_noloc): New function.
14407 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14408 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14409 (emit_pattern_after_noloc): New function.
14410 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14411 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14412
fdf3e18a
NF
144132011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14414
14415 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14416 (__ffsDI2): Likewise.
14417
42d085c1
RH
144182011-03-22 Richard Henderson <rth@redhat.com>
14419
14420 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14421 of !TARGET_ABI_OPEN_VMS.
14422 (alpha_trampoline_init, alpha_start_function): Likewise.
14423 (alpha_expand_epilogue, alpha_file_start): Likewise.
14424 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14425 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14426 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14427 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14428 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14429
cabbe12a
JM
144302011-03-22 Joseph Myers <joseph@codesourcery.com>
14431
14432 * config/s390/s390-opts.h: New.
14433 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14434 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14435 s390_stack_guard): Remove.
14436 (s390_handle_arch_option): Return void. Take enum
14437 s390_arch_option value instead of string and searching array.
14438 (s390_handle_option): Don't assert that global structures are in
14439 use. Access variables via opts pointer. Use error_at. Don't use
14440 sscanf for -mstack-guard= or -mstack-size=. Update call to
14441 s390_handle_arch_option.
14442 (s390_option_override): Update call to s390_handle_arch_option.
14443 (s390_emit_prologue): Use %d format for s390_stack_size in
14444 diagnostic. Use %wd for HOST_WIDE_INT.
14445 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14446 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14447 * config/s390/s390.opt (config/s390/s390-opts.h): New
14448 HeaderInclude entry.
14449 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14450 s390_arch_flags, s390_warn_framesize): New Variable entries.
14451 (s390_arch_option): New Enum and EnumValue entries.
14452 (march=): Use Enum instead of Var.
14453 (mstack-guard=, mstack-size=): Use UInteger and Var.
14454 (mtune=): Use Enum.
14455
05b12036
JM
144562011-03-22 Joseph Myers <joseph@codesourcery.com>
14457
14458 * config/score/score.c (score_handle_option): Don't assert that
14459 global structures are in use. Access target_flags via opts
14460 pointer. Use value of -march= option to determine target_flags
14461 settings.
14462 * config/score/score.opt (march=): Use Enum.
14463 (score_arch): New Enum and EnumValue entries.
14464
dd51e35a
JM
144652011-03-22 Joseph Myers <joseph@codesourcery.com>
14466
14467 * config/mep/mep.c (option_mtiny_specified): Remove.
14468 (mep_option_override): Move register handling for -mivc2 from
14469 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14470 instead of option_mtiny_specified.
14471 (mep_handle_option): Access target_flags via opts pointer. Don't
14472 assert that global structures are in use. Defer part of -mivc2
14473 handling and move it to mep_option_override.
14474 * config/mep/mep.opt (IVC2): New Mask entry.
14475 (mivc2): Use Var and Defer instead of Mask.
14476
4a8d3d91
JM
144772011-03-22 Joseph Myers <joseph@codesourcery.com>
14478
14479 * config/v850/v850-opts.h: New.
14480 * config/v850/v850.c (small_memory): Replace with
14481 small_memory_physical_max array. Make that array static const.
14482 (v850_handle_memory_option): Take integer value of argument. Take
14483 gcc_options pointer, option text and location. Return void.
14484 Update for changes to small memory structures.
14485 (v850_handle_option): Access target_flags via opts pointer. Don't
14486 assert that global structures are in use. Update calls to
14487 v850_handle_memory_option.
c78dd519
UB
14488 (v850_encode_data_area): Update references to small memory settings.
14489 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
14490 (enum small_memory_type): Move to v850-opts.h.
14491 * config/v850/v850.opt (config/v850/v850-opts.h): New
14492 HeaderInclude entry.
14493 (small_memory_max): New Variable entry.
14494 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14495 (mtda, mzda): Likewise.
14496
117fdbfa
JM
144972011-03-22 Joseph Myers <joseph@codesourcery.com>
14498
14499 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14500 pointer. Don't assert that global structures are in use.
14501
d715091c
JM
145022011-03-22 Joseph Myers <joseph@codesourcery.com>
14503
14504 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14505 via opts pointer. Don't assert that global structures are in use.
14506
1bb721dc
JM
145072011-03-22 Joseph Myers <joseph@codesourcery.com>
14508
14509 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14510 (munix=93): Use Var.
14511 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14512 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14513 * config/pa/pa-opts.h: New.
14514 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14515 (pa_handle_option): Don't assert that global structures are in
14516 use. Access target_flags via opts pointer. Don't handle
14517 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14518 OPT_munix_98 here.
14519 (pa_option_override): Handle deferred OPT_mfixed_range_.
14520
cd8d8754
JM
145212011-03-22 Joseph Myers <joseph@codesourcery.com>
14522
14523 * config/mn10300/mn10300-opts.h: New.
14524 * config/mn10300/mn10300.c (mn10300_processor,
14525 mn10300_tune_string): Remove.
14526 (mn10300_handle_option): Don't assert that global structures are
14527 in use. Access mn10300_processor via opts pointer. Don't handle
14528 OPT_mtune_ here.
14529 * config/mn10300/mn10300.h (enum processor_type): Move to
14530 mn10300-opts.h.
14531 (mn10300_processor): Remove.
14532 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14533 HeaderInclude entry.
14534 (mn10300_processor): New Variable entry.
14535 (mtune=): Use Var.
14536
24e6e6b1
JM
145372011-03-22 Joseph Myers <joseph@codesourcery.com>
14538
14539 * config/microblaze/microblaze.c: Don't include opts.h.
14540 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14541 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14542 (mno-clearbss): Use Var and Warn.
14543
8a784afb
JM
145442011-03-22 Joseph Myers <joseph@codesourcery.com>
14545
14546 * config/m32r/m32r-opts.h: New.
14547 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14548 (m32r_handle_option): Don't assert that global structures are in
14549 use. Access target_flags and m32r_cache_flush_func via opts
14550 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14551 OPT_mno_flush_trap here.
14552 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14553 include of m32r-opts.h.
14554 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14555 HeaderInclude entry.
14556 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14557 (mmodel=): Use Enum and Var.
14558 (m32r_model): New Enum and EnumValue entries.
14559 (mno-flush-trap): Use Var.
14560 (msdata=): Use Enum and Var.
14561 (m32r_sdata): New Enum and EnumValue entries.
14562
bbfc9a8c
JM
145632011-03-22 Joseph Myers <joseph@codesourcery.com>
14564
14565 * config/m32c/m32c.c: Don't include opts.h.
14566 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14567 m32c_handle_option): Remove.
14568 (m32c_option_override): Check global_options_set.x_target_memregs
14569 instead of target_memregs_set.
14570 * config/m32c/m32c.h (target_memregs): Remove.
14571 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14572 variable.
14573
e24b8335
JM
145742011-03-22 Joseph Myers <joseph@codesourcery.com>
14575
14576 * config/iq2000/iq2000-opts.h: New.
14577 * config/iq2000/iq2000.c: Don't include opts.h.
14578 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 14579 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
14580 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14581 HeaderInclude entry.
14582 (iq2000_tune): New Variable entry.
14583 (march=): Add comment. Use Enum.
14584 (iq2000_arch): New Enum and EnumValue entries.
14585 (mcpu=): Use Enum and Var.
14586 (iq2000_tune): New Enum and EnumValue entries.
14587
e6cc0c98
JM
145882011-03-22 Joseph Myers <joseph@codesourcery.com>
14589
14590 * config/ia64/ia64-opts.h: New.
14591 * config/ia64/ia64.c (ia64_tune): Remove.
14592 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14593 here. Use error_at.
14594 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14595 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14596 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14597 HeaderInclude entry.
14598 (ia64_tune): New Variable entry.
14599 (mfixed-range=): Use Defer and Var.
14600 (mtune=): Use Enum and Var.
14601 (ia64_tune): New Enum and EnumValue entries.
14602
db25893c
JM
146032011-03-22 Joseph Myers <joseph@codesourcery.com>
14604
14605 * config/frv/frv-opts.h: New.
14606 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14607 frv-opts.h.
14608 (frv_cpu_type): Remove.
14609 * config/frv/frv.c: Don't include opts.h.
14610 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 14611 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
14612 (frv_cpu_type): New Variable entry.
14613 (frv_cpu): New Enum and EnumValue entries.
14614
6c223f5d
JM
146152011-03-22 Joseph Myers <joseph@codesourcery.com>
14616
14617 * config/cris/cris.c (cris_handle_option): Access target_flags via
14618 opts pointer. Don't assert that global structures are in use.
14619 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14620 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14621
bbd399cf
JM
146222011-03-22 Joseph Myers <joseph@codesourcery.com>
14623
14624 * config/bfin/bfin-opts.h: New.
14625 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14626 bfin_si_revision, bfin_workarounds): Remove.
14627 (bfin_cpus): Make static const.
14628 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14629 not bfin_lib_id_given.
14630 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14631 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 14632 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
14633 * config/bfin/bfin.h: Include bfin-opts.h.
14634 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14635 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14636 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14637 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14638 entries.
14639
5e1b4d5a
JM
146402011-03-22 Joseph Myers <joseph@codesourcery.com>
14641
14642 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14643 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14644 or -msoft-float here.
14645 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14646 -msoft-float and -mhard-float.
c78dd519 14647 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
14648 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14649 msoft-float.
14650 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14651 -msoft-float.
14652 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14653 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14654 not mhard-float.
14655 (LIBGCC_SPEC): Don't handle -msoft-float.
14656 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14657 -mhard-float.
14658 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14659 msoft-float.
14660 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14661 -mfloat-abi=*, not -msoft-float and -mhard-float.
14662 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14663 -msoft-float.
14664 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14665 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14666 mhard-float and msoft-float.
14667 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14668 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14669 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14670 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14671 mhard-float.
14672 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14673 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14674 msoft-float.
14675 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14676 not mhard-float.
14677 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14678 not msoft-float.
14679
800d1de1
RH
146802011-03-22 Richard Henderson <rth@redhat.com>
14681
14682 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14683 TARGET_ABI_WINDOWS_NT.
14684 (alpha_output_function_end_prologue): Likewise.
14685 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14686 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14687 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14688 (trap, *movsi_nt_vms): Likewise.
14689 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14690 (*tablejump_osf_nt_internal): Remove.
14691 * config/alpha/predicates.md (input_operand): Only test Pmode.
14692
c59ddd2b
JM
146932011-03-22 Joseph Myers <joseph@codesourcery.com>
14694
14695 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14696 via opts pointer. Use error_at. Don't assert that global
14697 structures are in use.
14698
1333f97f
JM
146992011-03-22 Joseph Myers <joseph@codesourcery.com>
14700
14701 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14702 (ix86_handle_option): Access ix86_isa_flags and
14703 ix86_isa_flags_explicit via opts pointer. Don't assert that
14704 global structures are in use.
14705 (ix86_function_specific_save, ix86_function_specific_restore):
14706 Update ix86_isa_flags_explicit field name.
c78dd519 14707 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
14708 (ix86_isa_flags_explicit): Rename TargetSave entry to
14709 x_ix86_isa_flags_explicit.
14710
75db85d8
RH
147112011-03-22 Richard Henderson <rth@redhat.com>
14712
14713 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14714 (alpha_option_override, direct_return): Likewise.
14715 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14716 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14717 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14718 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14719 (alpha_expand_epilogue, alpha_end_function): Likewise.
14720 (alpha_init_libfuncs): Likewise.
14721 (struct machine_function): Remove unicosmk members.
14722 (print_operand) ['t']: Remove.
14723 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14724 unicosmk_output_module_name, unicosmk_output_common,
14725 current_section_align, unicosmk_output_text_section_asm_op,
14726 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14727 unicosmk_section_type_flags, unicosmk_unique_section,
14728 unicosmk_asm_named_section, unicosmk_insert_attributes,
14729 unicosmk_output_align, unicosmk_defer_case_vector,
14730 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14731 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14732 unicosmk_output_ssib, unicosmk_add_call_info_word,
14733 unicosmk_extern_head, unicosmk_output_default_externs,
14734 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14735 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14736 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14737 * config/alpha/alpha-protos.h: Update.
14738 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14739 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14740 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14741 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14742 (*mulsi_se, mulvsi3): Likewise.
14743 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14744 (*divmodsi_internal, call, call_value, realign): Likewise.
14745 (moddi3, umoddi3): Likewise; remove duplicate expander.
14746 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14747 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14748 (*movdi_nofix): Remove r/U alternative.
14749 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14750 * config/alpha/constraints.md ("U"): Remove.
14751 * config/alpha/predicates.md (call_operand"): Don't test
14752 TARGET_ABI_UNICOSMK.
14753
96e45421
JM
147542011-03-22 Joseph Myers <joseph@codesourcery.com>
14755
14756 * target.def (handle_option): Take gcc_options and
14757 cl_decoded_option pointers and location_t.
14758 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14759 * doc/tm.texi: Regenerate.
14760 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14761 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14762 * lto-opts.c (lto_reissue_options): Generate option structure for
14763 targetm.handle_option call.
14764 * opts.c (target_handle_option): Update call to
14765 targetm.handle_option. Remove assertions about values now passed
14766 down to hook.
14767 * targhooks.c (default_target_handle_option): New.
14768 * targhooks.h (default_target_handle_option): Declare.
14769 * config/alpha/alpha.c: Include opts.h.
14770 (alpha_handle_option): Update to new hook interface.
14771 * config/arm/arm.c: Include opts.h.
14772 (arm_handle_option): Update to new hook interface.
14773 * config/arm/t-arm (arm.o): Update dependencies.
14774 * config/bfin/bfin.c: Include opts.h.
14775 (bfin_handle_option): Update to new hook interface.
14776 * config/cris/cris.c: Include opts.h.
14777 (cris_handle_option): Update to new hook interface.
14778 * config/frv/frv.c: Include opts.h.
14779 (frv_handle_option): Update to new hook interface.
14780 * config/i386/i386.c: Include opts.h.
14781 (ix86_handle_option): Update to new hook interface.
14782 (ix86_valid_target_attribute_inner_p): Generate option structure
14783 for call to ix86_handle_option.
14784 * config/i386/t-i386 (i386.o): Update dependencies.
14785 * config/ia64/ia64.c: Include opts.h.
14786 (ia64_handle_option): Update to new hook interface.
14787 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14788 * config/iq2000/iq2000.c: Include opts.h.
14789 (iq2000_handle_option): Update to new hook interface.
14790 * config/m32c/m32c.c: Include opts.h.
14791 (m32c_handle_option): Update to new hook interface.
14792 * config/m32r/m32r.c: Include opts.h.
14793 (m32r_handle_option): Update to new hook interface.
14794 * config/m68k/m68k.c: Include opts.h.
14795 (m68k_handle_option): Update to new hook interface.
14796 * config/mep/mep.c: Include opts.h.
14797 (mep_handle_option): Update to new hook interface.
14798 * config/microblaze/microblaze.c: Include opts.h.
14799 (microblaze_handle_option): Update to new hook interface.
14800 * config/mips/mips.c: Include opts.h.
14801 (mips_handle_option): Update to new hook interface.
14802 * config/mn10300/mn10300.c: Include opts.h.
14803 (mn10300_handle_option): Update to new hook interface.
14804 * config/pa/pa.c: Include opts.h.
14805 (pa_handle_option): Update to new hook interface.
14806 * config/pdp11/pdp11.c: Include opts.h.
14807 (pdp11_handle_option): Update to new hook interface.
14808 * config/rs6000/rs6000.c: Include opts.h.
14809 (rs6000_handle_option): Update to new hook interface.
14810 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14811 * config/rx/rx.c: Include opts.h.
14812 (rx_handle_option): Update to new hook interface.
14813 * config/s390/s390.c: Include opts.h.
14814 (s390_handle_option): Update to new hook interface.
14815 * config/score/score.c: Include opts.h.
14816 (score_handle_option): Update to new hook interface.
14817 * config/sh/sh.c: Include opts.h.
14818 (sh_handle_option): Update to new hook interface.
14819 * config/sparc/sparc.c: Include opts.h.
14820 (sparc_handle_option): Update to new hook interface.
14821 * config/v850/v850.c: Include opts.h.
14822 (v850_handle_option): Update to new hook interface.
14823
66017846
JM
148242011-03-22 Joseph Myers <joseph@codesourcery.com>
14825
14826 * gcc.c (driver_unknown_option_callback): Only permit and save
14827 unknown -Wno- options.
14828 (driver_wrong_lang_callback): Save options directly instead of via
14829 driver_unknown_option_callback.
14830
e8b97ccd
EB
148312011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14832
14833 * combine.c (simplify_set): Try harder to find the best CC mode when
14834 simplifying a nested COMPARE on the RHS.
14835
ebb9f8b0
JM
148362011-03-22 Joseph Myers <joseph@codesourcery.com>
14837
14838 * config/alpha/gnu.h: Remove.
14839 * config/arc: Remove directory.
14840 * config/arm/netbsd.h: Remove.
14841 * config/arm/t-pe: Remove.
14842 * config/crx: Remove directory.
14843 * config/i386/netbsd.h: Remove.
14844 * config/m68hc11: Remove directory.
14845 * config/m68k/uclinux-oldabi.h: Remove.
14846 * config/mcore/mcore-pe.h: Remove.
14847 * config/mcore/t-mcore-pe: Remove.
14848 * config/netbsd-aout.h: Remove.
14849 * config/rs6000/gnu.h: Remove.
14850 * config/sh/sh-symbian.h: Remove.
14851 * config/sh/symbian-base.c: Remove.
14852 * config/sh/symbian-c.c: Remove.
14853 * config/sh/symbian-cxx.c: Remove.
14854 * config/sh/symbian-post.h: Remove.
14855 * config/sh/symbian-pre.h: Remove.
14856 * config/sh/t-symbian: Remove.
14857 * config/svr3.h: Remove.
14858 * config/vax/netbsd.h: Remove.
14859 * config.build: Don't handle i[34567]86-*-pe.
14860 * config.gcc: Remove handling of deprecations for most deprecated
14861 targets.
14862 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14863 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14864 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14865 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14866 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14867 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14868 Remove cases.
14869 * config.host: Don't handle i[34567]86-*-pe.
14870 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14871 (ASM_SPEC32): Don't handle -mcall-gnu.
14872 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14873 -mcall-gnu.
14874 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14875 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14876 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14877 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14878 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14879 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14880 conditional on SYMBIAN.
14881 * configure.ac: Don't handle powerpc*-*-gnu*.
14882 * configure: Regenerate.
14883 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14884 * doc/install-old.texi (m6811, m6812): Don't mention.
14885 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14886 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14887 (m68k-uclinuxoldabi): Don't mention.
14888 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14889 Remove.
14890 (-mcall-gnu): Remove.
14891 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14892 families): Remove constraint documentation.
14893
999a7d80
MS
148942011-03-22 Marius Strobl <marius@FreeBSD.org>
14895
14896 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14897 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14898 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14899
45540bcf
MM
149002011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14901
14902 PR target/48226
14903 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14904 vector when peeking at the next token for vector, don't expand the
14905 keywords.
14906
980a0ff4
GJL
149072011-03-21 Georg-Johann Lay <avr@gjlay.de>
14908
14909 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14910 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14911 * config/avr/avr.c (init_cumulative_args)
14912 (avr_function_arg_advance): Use it.
14913 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14914 sibcall epilogues.
14915 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14916 (avr_function_ok_for_sibcall): ...this new function.
14917 (avr_lookup_function_attribute1): New static Function.
14918 (avr_naked_function_p, interrupt_function_p)
14919 (signal_function_p, avr_OS_task_function_p)
14920 (avr_OS_main_function_p): Use it.
14921 * config/avr/avr.md ("sibcall", "sibcall_value")
14922 ("sibcall_epilogue"): New expander.
14923 ("*call_insn", "*call_value_insn"): New insn.
14924 ("call_insn", "call_value_insn"): Remove
14925 ("call", "call_value", "epilogue"): Change expander to handle
14926 sibling calls.
14927
49168734
NC
149282011-03-21 Nick Clifton <nickc@redhat.com>
14929
14930 * doc/invoke.texi (Overall Options): Move closing brace to end of
14931 options list.
14932 (Optimization Options): Add missing @gol.
14933 (Directory Options): Likewise.
14934 (i386 and x86-64 Options): Likewise.
14935 (RS6000 and PowerPC Options): Likewise.
14936 (i386 and x86-64 Windows Options): Likewise.
14937 (V850 Options): Add text missing from descriptions.
14938
bdfe906f
RH
149392011-03-22 Richard Henderson <rth@redhat.com>
14940
14941 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14942 (avr_incoming_return_addr_rtx): New.
14943 (emit_push_byte): New.
14944 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14945 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14946 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14947 (emit_pop_byte): New.
14948 (expand_epilogue): Use it. Pop frame pointer by bytes.
14949 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14950 (INCOMING_RETURN_ADDR_RTX): New.
14951 (INCOMING_FRAME_SP_OFFSET): New.
14952 (ARG_POINTER_CFA_OFFSET): New.
14953 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14954 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14955 (pophi): Remove.
14956
d090a5aa
RH
14957 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14958
fdf3e18a
NF
149592011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14960
14961 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14962 (FUNCTION_ARG_ADVANCE): Likewise.
14963 * tm.texi.in: Change references to them to hook references.
14964 * tm.texi: Regenerate.
14965 * targhooks.c (default_function_arg): Eliminate check for target
14966 macro.
14967 (default_function_incoming_arg): Likewise.
14968 (default_function_arg_advance): Likewise.
c78dd519 14969 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
14970 (function_arg_advance): Likewise.
14971 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14972
009d3fcf
NF
149732011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14974
14975 * tree.c (build_call_1): New function.
14976 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14977
7bec30e1
RG
149782011-03-22 Richard Guenther <rguenther@suse.de>
14979
14980 PR tree-optimization/48228
14981 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14982 for single-arg PHIs.
14983
0b7e851b
AB
149842011-03-22 Andrey Belevantsev <abel@ispras.ru>
14985
14986 PR rtl-optimization/48143
14987 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14988 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14989 sse2_cvtps2pd): Likewise.
14990
d89afca5
AK
149912011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14992
14993 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14994
f471fe72
RG
149952011-03-22 Richard Guenther <rguenther@suse.de>
14996
14997 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14998 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14999 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15000 and REALIGN_LOAD_EXPR.
15001 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15002 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15003 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15004 DOT_PROD_EXPR case ...
15005 (expand_expr_real_2): ... here.
15006 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15007 and REALIGN_LOAD_EXPR.
15008 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15009 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15010 (vect_create_epilog_for_reduction): Likewise.
15011 (vectorizable_reduction): Likewise.
15012 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15013 * tree-vect-stmts.c (vectorizable_load): Likewise.
15014
f2f81d57
EB
150152011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15016
15017 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15018
ab081dd6
AK
150192011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15020
15021 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15022 handling for PLTOFF/GOTOFF.
15023
6fd5332b
NC
150242011-03-22 Nick Clifton <nickc@redhat.com>
15025
15026 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15027 trailing backslash from the end of the macro definition.
15028
01841ac0
AK
150292011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15030
15031 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15032 and PLT unspecs.
15033
2ef6ce06
RS
150342011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15035
15036 * expr.h (prepare_operand): Move to...
15037 * optabs.h (prepare_operand): ...here and change the insn code
15038 parameter from "int" to "enum insn_code".
15039 (insn_operand_matches): Declare.
15040 * expr.c (init_expr_target): Use insn_operand_matches.
15041 (compress_float_constant): Likewise.
15042 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15043 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15044 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
15045 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15046 Likewise.
2ef6ce06
RS
15047 (gen_cond_trap): Likewise.
15048 (prepare_operand): Likewise. Change icode to an insn_code.
15049 (insn_operand_matches): New function.
15050 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15051 * reload1.c (gen_reload): Likewise.
15052 * targhooks.c (default_secondary_reload): Likewise.
15053
9e43ad68
UB
150542011-03-21 Uros Bizjak <ubizjak@gmail.com>
15055
9a96da32
UB
15056 * config/alpha/alpha.md (unspec): New define_c_enum.
15057 (unspecv): Ditto.
15058
150592011-03-21 Uros Bizjak <ubizjak@gmail.com>
15060
15061 PR debug/48214
9e43ad68
UB
15062 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15063 between a call and its CALL_ARG_LOCATION note.
15064
31408f60
EB
150652011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15066
15067 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15068
150692011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
15070
15071 PR c/42544
15072 PR c/48197
15073 * c-common.c (shorten_compare): If primopN is first sign-extended
15074 to opN and then zero-extended to result type, set primopN to opN.
15075
9dfd55f5
DJ
150762011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15077
15078 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15079 for barrier handlers.
15080
f3c33d9d
MM
150812011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15082
15083 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15084 UNSPEC constants to be in the unspec enumeration, and redefine
15085 all UNSPECV constants to be in the unspecv enumeration, so that
15086 dumps print which unspec/unspec_volatile this is.
15087 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15088 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15089 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15090 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15091 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15092
15093 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15094 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15095 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15096 * config/rs6000/sync.md (isync, lwsync): Ditto.
15097
ac43f774
RG
150982011-03-21 Richard Guenther <rguenther@suse.de>
15099
15100 * params.def (lto-min-partition): Fix typo.
15101
411cdbd8
RG
151022011-03-21 Richard Guenther <rguenther@suse.de>
15103
15104 PR c/47939
15105 * c-decl.c (grokdeclarator): Drop to the main variant only
15106 for array types. Drop flag_gen_aux_info check.
15107
1cd9e416
RG
151082011-03-21 Richard Guenther <rguenther@suse.de>
15109
15110 PR translation/47911
15111 * params.def (lto-partitions): Fix typo.
15112 (lto-min-partition): Fix wording.
15113
ada5ad67
AT
151142011-03-21 Andreas Tobler <andreast@fgznet.ch>
15115
15116 * config/rs6000/t-freebsd: Remove duplication from file.
15117
f9613c9a
RG
151182011-03-21 Richard Guenther <rguenther@suse.de>
15119
15120 PR middle-end/47661
15121 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15122
9bfbc1eb
RG
151232011-03-21 Richard Guenther <rguenther@suse.de>
15124
15125 PR lto/48210
15126 * params.def (lto-partitions): Require at least 1 partition.
15127
a2268084
RO
151282011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15129
15130 * gthr-solaris.h: Remove.
15131 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15132 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15133 (LIB_SPEC): Likewise.
15134 * config/sol2.opt (threads): Remove.
9e43ad68 15135 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
15136 (sparc*-*-solaris2*): Likewise.
15137 * configure.ac (enable_threads): Enable solaris support.
15138 * configure: Regenerate.
9e43ad68 15139 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
15140 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15141 solaris.
15142
c43d9a1b
RO
151432011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15144
15145 * config.gcc: Obsolete *-*-solaris2.8*.
15146 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15147
084239f4
RO
151482011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15149
15150 PR bootstrap/48135
15151 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15152 reference. Solaris 8 perl works.
15153
64cadbe7
RO
151542011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15155
15156 PR bootstrap/48135
15157 * doc/install.texi (Prerequisites): Move jar etc. up.
15158 Explain support library version requirements.
15159
eb975109
RO
151602011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15161
15162 PR bootstrap/48135
15163 * doc/install.texi (Prerequisites): Move Perl to build
15164 requirements. Always necessary on Solaris 2 with Sun ld.
15165
8a509ffd
RO
151662011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15167
15168 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15169 binutils 2.21.
15170 (Specific, i?86-*-solaris2.[89]): Likewise.
15171 (Specific, i?86-*-solaris2.10): Likewise.
15172 (Specific, mips-sgi-irix6): Likewise.
15173 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15174 Update for binutils 2.21.
15175
8fbc58a1
RO
151762011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15177
15178 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15179 Allow -fuse-linker-plugin for non-default plugin linker.
15180 * configure: Regenerate.
15181
7e84ad0b
NP
151822011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15183
15184 PR bootstrap/48167
15185 * gengtype.c (files_rules): Added rule for cp/parser.h.
15186
2f36e14b
JJ
151872011-03-21 Jakub Jelinek <jakub@redhat.com>
15188
15189 PR target/48213
15190 * config/s390/s390.c (s390_delegitimize_address): Don't call
15191 lowpart_subreg if orig_x has BLKmode.
15192
62d784f7
KT
151932011-03-21 Kai Tietz <ktietz@redhat.com>
15194
15195 PR target/12171
9e43ad68
UB
15196 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15197 * tree.h (attribute_spec): Add new member affects_type_identity.
15198 * attribs.c (empty_attribute_table): Adjust attribute_spec
15199 initializers.
62d784f7
KT
15200 * config/alpha/alpha.c: Likewise.
15201 * config/arc/arc.c: Likewise.
15202 * config/arm/arm.c: Likewise.
15203 * config/avr/avr.c: Likewise.
15204 * config/bfin/bfin.c: Likewise.
15205 * config/crx/crx.c: Likewise.
15206 * config/darwin.h: Likewise.
15207 * config/h8300/h8300.c: Likewise.
15208 * config/i386/cygming.h: Likewise.
15209 * config/i386/i386.c: Likewise.
15210 * config/ia64/ia64.c: Likewise.
15211 * config/m32c/m32c.c: Likewise.
15212 * config/m32r/m32r.c: Likewise.
15213 * config/m68hc11/m68hc11.c: Likewise.
15214 * config/m68k/m68k.c: Likewise.
15215 * config/mcore/mcore.c: Likewise.
15216 * config/mep/mep.c: Likewise.
15217 * config/microblaze/microblaze.c: Likewise.
15218 * config/mips/mips.c: Likewise.
15219 * config/rs6000/rs6000.c: Likewise.
15220 * config/rx/rx.c: Likewise.
15221 * config/sh/sh.c: Likewise.
15222 * config/sol2.h: Likewise.
15223 * config/sparc/sparc.c: Likewise.
15224 * config/spu/spu.c: Likewise.
15225 * config/stormy16/stormy16.c: Likewise.
15226 * config/v850/v850.c: Likewise.
15227
54833ec0
CLT
152282011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15229
15230 * simplify-rtx.c (simplify_binary_operation_1): Handle
15231 (xor (and A B) C) case when B and C are both constants.
15232
14a41392
MX
152332011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15234
15235 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15236
806c3492
EB
152372011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15238
15239 PR bootstrap/48168
15240 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15241
65e0a0f3
JJ
152422011-03-20 Jakub Jelinek <jakub@redhat.com>
15243
15244 PR rtl-optimization/48156
15245 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15246 assume df and df_lr are not NULL.
15247
b6a75dda
RR
152482011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15249
15250 PR debug/48023
15251 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15252 between a call and its CALL_ARG_LOCATION note.
15253
5969b52d
KK
152542011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15255
15256 PR debug/48178
15257 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15258 between a call and its corresponding CALL_ARG_LOCATION note.
15259
f773c2bd
AS
152602011-03-19 Anatoly Sokolov <aesok@post.ru>
15261
15262 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15263 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15264 * haifa-sched.c (setup_ref_regs): Ditto.
15265 * caller-save.c (add_used_regs_1): Ditto.
15266 * dse.c (look_for_hardregs): Ditto.
15267 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15268 * sched-rgn.c (check_live_1): Ditto.
15269
8bf872f9
JM
152702011-03-18 Joseph Myers <joseph@codesourcery.com>
15271
15272 * c-decl.c (diagnose_mismatched_decls): Give an error for
15273 redefining a typedef with variably modified type.
15274
ff8e2159
JM
152752011-03-18 Joseph Myers <joseph@codesourcery.com>
15276
15277 * c-decl.c (grokfield): Don't allow typedefs for structures or
15278 unions with no tag by default.
15279 * doc/extend.texi (Unnamed Fields): Update.
15280
16cc4440
UB
152812011-03-18 Uros Bizjak <ubizjak@gmail.com>
15282
15283 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15284 Rewrite using indirect functions.
15285 (lwp_slwpcb): Ditto.
15286 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15287 (avx_vinsertf128<mode>): Ditto.
15288
e101e12e
AK
152892011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15290
15291 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15292 unspecs.
15293
4627c7fb
AK
152942011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15295
15296 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 15297 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 15298
2d36b47f
MK
152992011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15300
15301 PR rtl-optimization/48170
15302 * gcse.c (hoist_code): Remove bogus asserts.
15303
2a3d7659
JL
153042011-03-18 Georg-Johann Lay <avr@gjlay.de>
15305
15306 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15307 computation for prologue/epilogue.
15308
34c3ef05
RO
153092011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15310
15311 * Makefile.in (check-consistency): Remove.
15312
81f2b976
JJ
153132011-03-18 Jakub Jelinek <jakub@redhat.com>
15314
15315 PR debug/48176
15316 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15317 arange_table_in_use is 0, but either text_section_used or
15318 cold_text_section_used is true. Don't call it if
15319 !info_section_emitted.
15320
68fd7765
AS
153212011-03-18 Anatoly Sokolov <aesok@post.ru>
15322
15323 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15324 FUNCTION_VALUE_REGNO_P): Remove.
15325 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15326 Remove.
15327 * config/avr/avr.c (avr_ret_register): Make static inline.
15328 (avr_function_value_regno_p): New function.
15329 (avr_libcall_value): Make static. Add 'func' argument.
15330 (avr_function_value): Make static. Rename 'func' argument to
15331 'fn_decl_or_type', forward it to avr_libcall_value. Call
15332 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 15333 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 15334
b4ef8aac
JM
153352011-03-18 Jason Merrill <jason@redhat.com>
15336
15337 PR c++/23372
15338 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15339
09a52fc3
RG
153402011-03-18 Richard Guenther <rguenther@suse.de>
15341
15342 * doc/install.texi (--enable-gold): Remove.
15343 (--with-plugin-ld): Document.
15344 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15345
2a3d7659 153462011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
15347
15348 PR middle-end/47790
15349 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15350 again after expansion changes.
15351
2abbb0fe
CLT
153522011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15353
15354 * combine.c (try_combine): Do simplification only call of
15355 subst() on i2 even when i1 is present. Update comments.
15356
2efd0aa6
KK
153572011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15358
15359 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15360 and UNSPEC_PCREL_SYMOFF.
15361
30a49b23
AK
153622011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15363
15364 * config/s390/s390.md: Use define_c_enum for the unspec constant
15365 definitions.
15366
419e1853
JJ
153672011-03-18 Richard Henderson <rth@redhat.com>
15368 Jakub Jelinek <jakub@redhat.com>
15369
15370 PR bootstrap/48161
15371 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15372 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15373
37875856
L
153742011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15375
15376 PR middle-end/47725
15377 * combine.c (cant_combine_insn_p): Don't check zero/sign
15378 extended hard registers.
15379
76069764
L
153802011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15381
15382 PR middle-end/47725
15383 * combine.c (cant_combine_insn_p): Check zero/sign extended
15384 hard registers.
15385
24da2019
AS
153862011-03-17 Anatoly Sokolov <aesok@post.ru>
15387
15388 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15389 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15390 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15391 Change return type to bool.
15392 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15393
a82ff31f
JJ
153942011-03-17 Jakub Jelinek <jakub@redhat.com>
15395
8b29c87a
JJ
15396 PR debug/48163
15397 * var-tracking.c (prepare_call_arguments): If CALL target
15398 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15399 pc instead of looking it up using cselib_lookup and use
15400 Pmode for it if x has VOIDmode.
15401 * dwarf2out.c (gen_subprogram_die): If also both first and
15402 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15403
a82ff31f
JJ
15404 PR debug/48163
15405 * function.c (assign_parms): For data.passed_pointer parms
15406 use MEM of data.entry_parm instead of data.entry_parm itself
15407 as DECL_INCOMING_RTL.
15408 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15409 also when passed and declared mode is the same, DECL_RTL
15410 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15411 a MEM too.
15412
82ce305c
JL
154132011-03-16 Jeff Law <law@redhat.com>
15414
15415 PR rtl-optimization/37273
15416 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15417 handle them like argument loads from stack slots. Do not double
15418 count memory for memory constants and argument loads from stack slots.
15419
fe58e02b
L
154202011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15421
15422 PR debug/48160
15423 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15424
6fc4dbc7
L
154252011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15426
15427 PR target/48171
15428 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15429
db3ed0b3
JJ
154302011-03-17 Jakub Jelinek <jakub@redhat.com>
15431
8054a389
JJ
15432 PR bootstrap/48153
15433 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15434 if dwarf_strict.
15435 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15436 Clear call_arg_locations and call_arg_loc_last always.
15437
db3ed0b3
JJ
15438 PR middle-end/48152
15439 * var-tracking.c (prepare_call_arguments): If argument needs to be
15440 passed by reference, adjust argtype and mode.
15441
1bce4ff3
RG
154422011-03-17 Richard Guenther <rguenther@suse.de>
15443
15444 PR middle-end/48134
15445 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15446 a value make sure to fold the statement.
15447
7c71147d
CLT
154482011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15449
15450 PR target/43872
15451 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15452 return condition with !cfun->calls_alloca.
15453
0e1ee172
RG
154542011-03-17 Richard Guenther <rguenther@suse.de>
15455
15456 PR bootstrap/48148
15457 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15458 origin for decls in other ltrans units.
15459 (input_varpool_node): Likewise.
15460
f8bce518
RG
154612011-03-17 Richard Guenther <rguenther@suse.de>
15462
15463 PR middle-end/48165
15464 * tree-object-size.c (compute_object_offset): Properly return
15465 the offset operand of MEM_REFs as sizetype.
15466
1b6fa860
JJ
154672011-03-17 Jakub Jelinek <jakub@redhat.com>
15468
dabd47e7
JJ
15469 PR rtl-optimization/48141
15470 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15471 * dse.c: Include params.h.
15472 (active_local_stores_len): New variable.
15473 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15474 to NULL.
15475 (record_store, check_mem_read_rtx): Decrease it when removing
15476 from the chain.
15477 (scan_insn): Likewise. Increase it when adding to chain, if it
15478 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15479 set active_local_stores to NULL before the addition.
15480 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15481
1b6fa860
JJ
15482 PR rtl-optimization/48141
15483 * dse.c (record_store): If no positions are needed in an insn
15484 that cannot be deleted, at least unchain it from active_local_stores.
15485
7b5cb7d6
DS
154862011-03-16 Dodji Seketeli <dodji@redhat.com>
15487
15488 PR debug/47510
15489 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15490 (lookup_type_die_strip_naming_typedef): ... here.
15491 (get_context_die): Use it.
15492 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15493 the anonymous struct named by the naming typedef.
15494
585e9d9d
L
154952011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15496
15497 PR target/48154
15498 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15499 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15500
6261ab0e
JL
155012011-03-16 Jeff Law <law@redhat.com>
15502
15503 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 15504 check for operands of conditional. Allow type to be a pointer.
6261ab0e 15505
0b0081ec
RG
155062011-03-16 Richard Guenther <rguenther@suse.de>
15507
15508 PR tree-optimization/48149
15509 * fold-const.c (fold_binary_loc): Fold
15510 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15511
64a3d647
RG
155122011-03-16 Richard Guenther <rguenther@suse.de>
15513
15514 PR tree-optimization/26134
15515 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15516 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15517 (non_rewritable_mem_ref_base): Handle complex type component
15518 accesses, constrain offsets for vector and complex extracts
15519 more properly.
15520
ef13324e
RG
155212011-03-16 Richard Guenther <rguenther@suse.de>
15522
15523 PR tree-optimization/48146
15524 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15525 operands avoiding the need for renaming.
15526
f0eddb90
RG
155272011-03-16 Richard Guenther <rguenther@suse.de>
15528
15529 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15530 constant folding. Move MEM_REF canonicalization first.
15531 Rely on fold_const_aggregate_ref for initializer folding.
15532 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15533
e42348b8
JJ
155342011-03-16 Jakub Jelinek <jakub@redhat.com>
15535
29f10e71
JJ
15536 PR middle-end/48136
15537 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15538 arg0/arg1 or their arguments are always fold converted to matching
15539 types.
15540
e42348b8
JJ
15541 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15542 to nargs.
15543
55b46574
RO
155442011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15545
15546 PR lto/46944
15547 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15548 Handle in-tree gold.
15549 (ld_vers): Extract binutils version for gold.
15550 (gcc_cv_ld_hidden): Handle gold here.
15551 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15552 * configure: Regenerate.
15553 * config.in: Regenerate.
15554 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15555 -fuse-linker-plugin otherwise.
15556 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15557 (LINK_COMMAND_SPEC): Use it.
15558 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15559
2b1c5433
JJ
155602011-03-16 Jakub Jelinek <jakub@redhat.com>
15561
c2969d8e
JJ
15562 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15563 * calls.c: Remove debug.h include.
15564 (emit_call_1): Don't call virtual_call_token debug hook.
15565 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15566 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15567 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15568 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15569 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15570 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15571 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15572 dwarf2out_virtual_call): Remove.
15573 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15574 copy_call_info and virtual_call hooks.
15575 (dwarf2out_init): Don't initialize vcall_insn_table,
15576 debug_dcall_section and debug_vcall_section.
15577 (prune_unused_types): Don't mark nodes from dcall_table.
15578 (dwarf2out_finish): Don't output dcall or vcall tables.
15579 * final.c (final_scan_insn): Don't call direct_call or
15580 virtual_call debug hooks.
15581 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15582 virtual_call_token, copy_call_info and virtual_call hooks.
15583 (debug_nothing_uid): Remove prototype.
15584 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15585 copy_call_info and virtual_call hooks.
15586 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15587 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15588 * debug.c (do_nothing_debug_hooks): Likewise.
15589 (debug_nothing_uid): Remove.
15590 * doc/invoke.texi (-fenable-icf-debug): Remove.
15591 * common.opt (-fenable-icf-debug): Likewise.
15592
325f5379
JJ
15593 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15594 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15595 call's MEM. Handle functions returning aggregate through a hidden
15596 first pointer. For virtual calls add clobbered pc to call arguments
15597 chain.
15598 * dwarf2out.c (gen_subprogram_die): Emit
15599 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15600 can't be emitted.
15601
a58a8e4b
JJ
15602 PR debug/45882
15603 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15604 * rtl.h (ENTRY_VALUE_EXP): Define.
15605 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15606 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15607 * print-rtl.c (print_rtx): Likewise.
15608 * gengtype.c (adjust_field_rtx_def): Likewise.
15609 * var-tracking.c (vt_add_function_parameter): Adjust
15610 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15611 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15612 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15613 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15614 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15615
2b1c5433
JJ
15616 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15617 Call var_location debug hook even on CALL_INSNs.
15618 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15619 * rtl.def (ENTRY_VALUE): New.
15620 * dwarf2out.c: Include cfglayout.h.
15621 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15622 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15623 (struct call_arg_loc_node): New type.
15624 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15625 tail_call_site_count): New variables.
15626 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15627 DW_TAG_GNU_call_site_parameter.
15628 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15629 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15630 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15631 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15632 and DW_AT_GNU_all_source_call_sites.
15633 (mem_loc_descriptor): Handle ENTRY_VALUE.
15634 (add_src_coords_attributes): Don't add enything if
15635 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15636 (dwarf2out_abstract_function): Save and clear call_arg_location,
15637 call_site_count and tail_call_site_count around dwarf2out_decl call.
15638 (gen_call_site_die): New function.
15639 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15640 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15641 (dwarf2out_function_decl): Clear call_arg_locations,
15642 call_arg_loc_last, set call_site_count and tail_call_site_count
15643 to -1 and free block_map.
15644 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15645 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15646 followed by any real instructions.
15647 (dwarf2out_begin_function): Set call_site_count and
15648 tail_call_site_count to 0.
15649 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15650 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15651 attempt to force a DIE for it and worst case remove the attribute.
15652 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15653 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15654 the decl itself.
15655 * var-tracking.c: Include tm_p.h.
15656 (vt_stack_adjustments): For calls call note_register_arguments.
15657 (argument_reg_set): New variable.
15658 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15659 ensure the VALUE is resolved.
15660 (call_arguments): New variable.
15661 (prepare_call_arguments): New function.
15662 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15663 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15664 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15665 always use the best expression.
15666 (vt_expand_loc): Add ignore_cur_loc argument.
15667 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15668 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15669 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15670 note for all calls.
15671 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15672 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15673 argument. Don't call cselib_preserve_only_values and
15674 cselib_reset_table.
15675 (note_register_arguments): New function.
15676 (vt_initialize): Compute argument_reg_set. Call
15677 vt_add_function_parameters before processing basic blocks instead of
15678 afterwards. For calls call prepare_call_arguments before calling
15679 cselib_process_insn.
15680 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15681 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15682 (var-tracking.o): Depend on $(TM_P_H).
15683 * cfglayout.h (insn_scope): New prototype.
15684 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15685 * cfglayout.c (insn_scope): No longer static.
15686 * insn-notes.def (CALL_ARG_LOCATION): New.
15687 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15688 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15689 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15690 nothing for DECL_EXTERNAL BLOCK_VARS.
15691
9ef13bd0
AM
156922011-03-16 Alan Modra <amodra@gmail.com>
15693
15694 PR target/45844
15695 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15696 create invalid offset address for vsx splat insn.
15697 * config/rs6000/predicates.md (splat_input_operand): New.
15698 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15699
56b67510
XDL
157002011-03-15 Xinliang David Li <davidxl@google.com>
15701
15702 PR c/47837
15703 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15704 (normalize_preds): New function.
15705 (is_use_properly_guarded): Normalize def predicates.
15706
80fffdef
RR
157072011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15708
732f37c6 15709 PR target/46788
80fffdef
RR
15710 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15711 in the output template.
15712
930672ad
RG
157132011-03-15 Richard Guenther <rguenther@suse.de>
15714
15715 PR middle-end/47650
15716 * tree-pretty-print.c (dump_function_declaration): Properly
15717 dump unprototyped and varargs function types.
15718
c7ee7b45
RG
157192011-03-15 Richard Guenther <rguenther@suse.de>
15720
15721 PR tree-optimization/13954
15722 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15723 and friends.
15724
b2ad5e37
RG
157252011-03-15 Richard Guenther <rguenther@suse.de>
15726
15727 PR tree-optimization/48037
15728 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15729 selects into BIT_FIELD_REFs.
15730 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15731 vector select.
15732
7ee93d4e
JJ
157332011-03-15 Jakub Jelinek <jakub@redhat.com>
15734
15735 PR tree-optimization/48129
15736 * builtins.c (fold_builtin_snprintf): Convert to type of
15737 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15738 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15739
e106efc7
RG
157402011-03-15 Richard Guenther <rguenther@suse.de>
15741
15742 PR tree-optimization/41490
15743 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15744 value but with VUSE.
15745 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15746 return statements.
15747 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15748 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15749 * tree-tailcall.c (find_tail_calls): Ignore returns.
15750
17dea42f
RG
157512011-03-15 Richard Guenther <rguenther@suse.de>
15752
15753 PR middle-end/48031
15754 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15755 or variable-indexed array accesses when in gimple form.
15756
01c77a60
RG
157572011-03-15 Richard Guenther <rguenther@suse.de>
15758
16cc4440 15759 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 15760
77b0791e
AM
157612011-03-15 Alan Modra <amodra@gmail.com>
15762
15763 PR target/48032
15764 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15765 presume symbol_refs without a symbol_ref_decl are suitably
15766 aligned, nor other trees we may see here. Handle anchor symbols.
15767 (legitimate_constant_pool_address_p): Comment. Add mode param.
15768 Check cmodel=medium addresses. Adjust all calls.
15769 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15770 creating cmodel=medium optimized access to locals.
15771 * config/rs6000/constraints.md (R): Pass QImode to
15772 legitimate_constant_pool_address_p.
15773 * config/rs6000/predicates.md (input_operand): Pass mode to
15774 legitimate_constant_pool_address_p.
15775 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15776 Update prototype.
15777
35f61ba4
MM
157782011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15779
15780 PR target/48053
15781 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15782 64-bit constants being loaded into registers other than GPRs such
15783 as loading 0 into a VSX register.
15784
07332e6d
RO
157852011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15786
16cc4440 15787 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 15788
de888d90
JJ
157892011-03-14 Jakub Jelinek <jakub@redhat.com>
15790
ba3ceb2d
JJ
15791 PR middle-end/47917
15792 * builtins.c (fold_builtin_snprintf): New function.
15793 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15794 (fold_builtin_4): Likewise.
15795
2e64f8b8
JJ
15796 PR middle-end/38878
15797 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15798 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15799 and C - X == X also strip nops from +/-/p+ operand.
15800 When optimizing -X == C, fold C to arg0's type.
15801
de888d90
JJ
15802 PR debug/47946
15803 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15804 emit it as add_AT_int instead of add_AT_unsigned.
15805
158062011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
15807
15808 * unwind-dw2.c: Include sys/sdt.h if it exists.
15809 (_Unwind_DebugHook): Use STAP_PROBE2.
15810 * config.in, configure: Rebuild.
15811 * configure.ac: Check for sys/sdt.h.
15812
d34abfd2
UB
158132011-03-14 Uros Bizjak <ubizjak@gmail.com>
15814
15815 * config/i386/i386.md (ROUND_FLOOR): New constant.
15816 (ROUND_CEIL): Ditto.
15817 (ROUND_TRUNC): Ditto.
15818 (ROUND_MXCSR): Ditto.
15819 (ROUND_NO_EXC): Ditto.
15820 (rint<mode>2): Use new defines instead of numerical constants.
15821 (floor<mode>2): Ditto.
15822 (ceil<mode>2): Ditto.
15823 (btrunc<mode>2): Ditto.
15824 * config/i386/i386-builtin-types.def: Define ROUND function type
15825 aliases.
15826 * config/i386/i386.c (enum ix86_builtins): Add
15827 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15828 (struct builtin_description): Add
15829 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15830 (ix86_expand_sse_round): New static function.
15831 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15832 function types.
15833 (ix86_builtin_vectorized_function): Handle
15834 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15835
87f9e23d
TT
158362011-03-14 Tom Tromey <tromey@redhat.com>
15837
15838 * c-parser.c (c_parser_asm_string_literal): Clear
15839 warn_overlength_strings.
15840
b3ab9ea2
TT
158412011-03-14 Tom Tromey <tromey@redhat.com>
15842
15843 * c-parser.c (disable_extension_diagnostics): Save
15844 warn_overlength_strings.
15845 (restore_extension_diagnostics): Restore warn_overlength_strings.
15846
6bd73dd8
JJ
158472011-03-14 Jakub Jelinek <jakub@redhat.com>
15848
15849 * BASE-VER: Change to 4.7.0.
15850
7f4d6e1b
RG
158512011-03-14 Richard Guenther <rguenther@suse.de>
15852
15853 PR middle-end/48098
15854 * tree.c (build_vector_from_val): Adjust assert to requirements
15855 and reality.
15856
c6104ef1
JJ
158572011-03-14 Jakub Jelinek <jakub@redhat.com>
15858
15859 PR bootstrap/48102
d34abfd2 15860 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 15861
dfa95e19
AT
158622011-03-14 Andreas Tobler <andreast@fgznet.ch>
15863
f60c2554 15864 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
15865 terms of target_flags_explicit. Adjust copyright year.
15866
15867 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15868 * config/rs6000/t-freebsd: New file. Add override for
15869 LIB2FUNCS_EXTRA.
15870
bb322018
CD
158712011-03-13 Chris Demetriou <cgd@google.com>
15872
15873 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15874 (-fno-diagnostics-show-option): this, to reflect current default.
15875 (-Werror=): Update text about -fno-diagnostics-show-option.
15876
12b1c80b
PB
158772011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15878
15879 PR target/48053
15880 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15881 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15882 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15883 mode is not V2DImode or V2DFmode.
15884 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15885 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15886 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15887 registers to 0.
15888 (movdi_internal64): Likewise.
15889
57d598f7
SP
158902011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15891
15892 PR tree-optimization/47127
15893 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15894 parameter.
15895 (set_cloog_options): Same.
15896 (scop_to_clast): Same.
15897 (print_clast_stmt): Do not call cloog_state_malloc and
15898 cloog_state_free.
15899 (print_generated_program): Same.
15900 (gloog): Same.
15901 * graphite-clast-to-gimple.h (cloog_state): Declared.
15902 (scop_to_clast): Adjust declaration.
15903 * graphite.c (cloog_state): Defined here.
15904 (graphite_initialize): Call cloog_state_malloc.
15905 (graphite_finalize): Call cloog_state_free.
15906
f231b5ff
JM
159072011-03-11 Jason Merrill <jason@redhat.com>
15908
15909 * attribs.c (lookup_attribute_spec): Take const_tree.
15910 * tree.h: Adjust.
15911
6a4e2bd5
JM
159122011-03-11 Joseph Myers <joseph@codesourcery.com>
15913
15914 * config/sparc/sparc.c (sparc_option_override): Use
15915 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15916
a758fd67
RG
159172011-03-11 Richard Guenther <rguenther@suse.de>
15918
15919 PR tree-optimization/48067
15920 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15921 multiplication result will be only used once on the target
15922 stmt.
15923
03dfda54
RG
159242011-03-11 Richard Guenther <rguenther@suse.de>
15925
15926 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15927
5f11a50a
RG
159282011-03-11 Richard Guenther <rguenther@suse.de>
15929
15930 PR lto/48073
15931 * tree.c (find_decls_types_r): Do not walk types only reachable
15932 from IDENTIFIER_NODEs.
15933
4074f163
JJ
159342011-03-11 Jakub Jelinek <jakub@redhat.com>
15935
15936 PR middle-end/48044
15937 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15938 all vnode->force_output nodes as needed.
15939
30f7cdcd
JM
159402011-03-11 Jason Merrill <jason@redhat.com>
15941
15942 PR c++/48069
15943 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15944 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15945
62ecfeb8
MJ
159462011-03-11 Martin Jambor <mjambor@suse.cz>
15947
15948 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15949 cgraph_node.
15950
e89e03ab
JJ
159512011-03-11 Jakub Jelinek <jakub@redhat.com>
15952
15953 PR tree-optimization/48063
15954 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15955 inline functions called once if !tree_can_inline_p (node->callers).
15956
efbe978b 159572011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 15958
efbe978b
EB
15959 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15960 extra_objs.
9d6193a7
CL
15961 * config/score/score3.c: Delete.
15962 * config/score/score3.h: Delete.
15963 * config/score/mul-div.S: Delete.
15964 * config/score/sfp-machine.h: Add new file.
15965 * config/score/constraints.md: Add new file.
15966 * config/score/t-score-softfp: Add new file.
efbe978b 15967 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
15968 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15969 (score7_extra_constraint): Delete.
efbe978b 15970 (score7_option_override): Remove unused code.
9d6193a7
CL
15971 * config/score/score.c: Remove score3 and score5 define and code.
15972 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 15973 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
15974 * config/score/score.opt: Remove score3 and score5 options.
15975
5de27cca
JDA
159762011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15977
15978 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15979 when _HPUX_SOURCE is defined.
15980 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15981
18d92053
JM
159822011-03-10 Jason Merrill <jason@redhat.com>
15983
15984 PR c++/48029
15985 * stor-layout.c (layout_type): Don't set structural equality
15986 on arrays of incomplete type.
15987 * tree.c (type_hash_eq): Handle comparing them properly.
15988
67a2f76d
JJ
159892011-03-10 Jakub Jelinek <jakub@redhat.com>
15990
15991 PR debug/48043
18d92053 15992 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
15993 result mode matches original rtl mode.
15994
d845b2f9
NC
159952011-03-10 Nick Clifton <nickc@redhat.com>
15996
15997 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 15998 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 15999
db7ec035
JJ
160002011-03-09 Jakub Jelinek <jakub@redhat.com>
16001
16002 PR rtl-optimization/47866
16003 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16004 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16005 if target wasn't scalar.
16006 * function.c (assign_stack_temp_for_type): Assert that neither
16007 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16008 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16009 macro.
16010 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16011
5d304e47
AK
160122011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16013
16014 * config/s390/s390-protos.h (s390_label_align): New prototype.
16015 * config/s390/s390.c (s390_label_align): New function.
16016 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16017
93b826f0
MM
160182011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16019
16020 PR target/47755
16021 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16022 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16023 (output_vec_const_move): Ditto.
16024
ef78aed6
AS
160252011-03-08 Anatoly Sokolov <aesok@post.ru>
16026
16027 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16028 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16029 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16030 Change 'rclass' argument and result type to reg_class_t.
16031 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16032
5f892aa0
GJL
160332011-03-08 Georg-Johann Lay <avr@gjlay.de>
16034
9e43ad68
UB
16035 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16036 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16037 (TARGET_MEMORY_MOVE_COST): Define.
16038 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 16039
32bd2409
JJ
160402011-03-08 Jakub Jelinek <jakub@redhat.com>
16041
530a4800
JJ
16042 PR debug/47881
16043 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16044 removed anything.
16045
32bd2409
JJ
16046 PR tree-optimization/48022
16047 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16048 for EQ/NE_EXPR.
16049
c7148991
JJ
160502011-03-07 Jakub Jelinek <jakub@redhat.com>
16051
16052 PR debug/47991
16053 * var-tracking.c (find_use_val): Return NULL for
16054 cui->sets && cui->store_p BLKmode MEMs.
16055
43070a6e
AS
160562011-03-07 Anatoly Sokolov <aesok@post.ru>
16057
16058 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16059 Remove.
16060 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16061 xstormy16_print_operand_address): Remove.
16062 * config/stormy16/stormy16.c (xstormy16_print_operand,
16063 xstormy16_print_operand_address): Make static.
16064 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16065
efbe978b 160662011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
16067
16068 PR target/47862
16069 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16070 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16071 before definition.
16072
cec8ac0b
ZD
160732011-03-07 Zdenek Dvorak <ook@ucw.cz>
16074
16075 PR bootstrap/48000
16076 * cfgloopmanip.c (fix_bb_placements): Return immediately
16077 if FROM is BASE_LOOP's header.
16078
59527282
PW
160792011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16080
16081 * gimplify.c (gimplify_function_tree): Fix building calls
16082 to __builtin_return_address.
16083
617718f7
AM
160842011-03-07 Alan Modra <amodra@gmail.com>
16085
16086 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16087 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16088 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16089 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16090 return_mode args.
16091 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16092 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16093 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16094 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16095 * config/rs6000/rs6000.c
16096 (rs6000_elf_end_indicate_exec_stack): Rename to..
16097 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16098 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16099 (rs6000_file_start): ..here.
16100 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16101 file scope variables.
16102 (call_ABI_of_interest): New function.
16103 (init_cumulative_args): Set above vars when function return value
16104 is a float, vector, or small struct.
16105 (rs6000_function_arg_advance_1): Likewise for function args.
16106 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16107 references float args.
16108
38528d50
MX
161092011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16110
16111 * doc/cfg.texi: Remove "See" before @ref.
16112 * doc/invoke.texi: Likewise.
16113
f42cf4f4
JM
161142011-03-05 Jason Merrill <jason@redhat.com>
16115
16116 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16117
804a304d
AG
161182011-03-05 Anthony Green <green@moxielogic.com>
16119
16120 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16121
634ee309
ZD
161222011-03-05 Zdenek Dvorak <ook@ucw.cz>
16123
16124 PR rtl-optimization/47899
16125 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16126 to flow_loop_nested_p when moving the loop upward.
16127
6fe471c8
RE
161282011-03-05 Richard Earnshaw <rearnsha@arm.com>
16129
16130 PR target/47719
16131 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16132
cc58ceee
JJ
161332011-03-05 Jakub Jelinek <jakub@redhat.com>
16134
16135 PR tree-optimization/47967
16136 * ipa-cp.c (build_const_val): Return NULL instead of creating
16137 VIEW_CONVERT_EXPR for mismatching sizes.
16138 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16139 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16140 give up on versioning.
16141
ea868305
AM
161422011-03-05 Alan Modra <amodra@gmail.com>
16143
16144 PR target/47986
16145 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16146 full cmodel medium/large lo_sum + high addresses.
16147
bc6ce334
AK
161482011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16149
16150 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16151 pool references in UNSPEC_LTREL_OFFSET.
16152
87e7b310
JH
161532011-03-04 Jan Hubicka <jh@suse.cz>
16154
16155 PR lto/47497
16156 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16157 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
16158 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16159 Add node pointers.
87e7b310
JH
16160 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16161 cgraph_add_thunk): Add node pointers.
16162 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16163 associated to right node.
16164 (input_node): Update use of cgraph_same_body_alias
16165 and cgraph_add_thunk.
16166
d9c64246
CF
161672011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16168
16169 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
16170 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16171 modes when the flag -mprefer-avx128 is on.
d9c64246 16172
08707076
RS
161732011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16174
16175 * dwarf2out.c (compare_loc_operands): Fix address handling.
16176
52517c81
AM
161772011-03-04 Alan Modra <amodra@gmail.com>
16178
16179 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16180
b147c5b9
RG
161812011-03-04 Richard Guenther <rguenther@suse.de>
16182
16183 PR middle-end/47968
16184 * expmed.c (extract_bit_field_1): Prefer vector modes that
16185 vec_extract patterns can handle.
16186
8750672f
RG
161872011-03-04 Richard Guenther <rguenther@suse.de>
16188
16189 PR middle-end/47975
16190 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16191
9eac0f2a
RH
161922011-03-04 Richard Henderson <rth@redhat.com>
16193
16194 * explow.c (emit_stack_save): Remove 'after' parameter.
16195 (emit_stack_restore): Likewise.
16196 * expr.h: Update to match.
16197 * builtins.c, calls.c, stmt.c: Likewise.
16198 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16199 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16200 * function.c (expand_function_end): Insert the emit_stack_save
16201 sequence before parm_birth_insn instead of after.
16202
dfee1406
UB
162032011-03-03 Uros Bizjak <ubizjak@gmail.com>
16204
16205 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16206 (ssse3_pmaddubsw128): Ditto.
16207 (ssse3_pmaddubsw): Ditto.
16208
f1d4c3de
SE
162092011-03-03 Steve Ellcey <sje@cup.hp.com>
16210
16211 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16212
71f3a3f5
JJ
162132011-03-03 Jakub Jelinek <jakub@redhat.com>
16214
423ed416
JJ
16215 PR c/47963
16216 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16217 on TYPE_SIZE_UNIT if it is a DECL.
16218
71f3a3f5
JJ
16219 PR debug/47283
16220 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16221 first operand is not is_gimple_mem_ref_addr, try to fold it.
16222 If the operand still isn't is_gimple_mem_ref_addr, clear
16223 MEM_EXPR on op0.
16224
4b1a5c0d
RG
162252011-03-03 Richard Guenther <rguenther@suse.de>
16226
16227 PR middle-end/47283
16228 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16229 match comment.
16230 (refs_may_alias_p_1): For release branches return true if
16231 we are confused by our input.
16232
b46616fd
AK
162332011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16234
16235 * config/s390/s390.c (s390_function_value): Rename to ...
16236 (s390_function_and_libcall_value): ... this.
16237 (s390_function_value): New function.
16238 (s390_libcall_value): New function.
dfee1406 16239 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
16240 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16241 target macro definitions.
16242 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16243
46d8fabb
JM
162442011-03-02 Joseph Myers <joseph@codesourcery.com>
16245
16246 * config/i386/freebsd64.h (CC1_SPEC): Define.
16247 * config/i386/linux64.h (CC1_SPEC): Define.
16248 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16249
6b1ce545
AS
162502011-03-02 Anatoly Sokolov <aesok@post.ru>
16251
16252 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16253 Remove.
16254 * config/stormy16/stormy16.c: Include reload.h.
16255 (xstormy16_memory_move_cost): New function.
16256 (TARGET_MEMORY_MOVE_COST): Define.
16257
34161e98
RS
162582011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16259
16260 PR rtl-optimization/47925
16261 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16262 with side effects. Remove the more-specific check for volatile asms.
16263
f60a97cf
AM
162642011-03-02 Alan Modra <amodra@gmail.com>
16265
16266 PR target/47935
16267 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16268 toc relative addresses for valid offsets.
16269
f2ca11ca
RG
162702011-03-01 Richard Guenther <rguenther@suse.de>
16271
16272 PR tree-optimization/47890
16273 * tree-vect-loop.c (get_initial_def_for_induction): Set
16274 related stmt properly.
16275
7a00d9ea
RG
162762011-03-01 Richard Guenther <rguenther@suse.de>
16277
16278 PR lto/47924
16279 * lto-streamer.c (lto_record_common_node): Also register
16280 the canonical type.
16281
06c7edcc
RG
162822011-03-01 Richard Guenther <rguenther@suse.de>
16283
16284 PR lto/46911
16285 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16286 Do not stream DECL_ABSTRACT_ORIGIN.
16287 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16288 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16289 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16290 Do not stream DECL_ABSTRACT_ORIGIN.
16291 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16292 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16293
998871e9
AS
162942011-02-28 Anatoly Sokolov <aesok@post.ru>
16295
16296 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16297 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 16298 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
16299 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16300 Add 'outgoing' argument.
16301 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16302 function.
16303 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16304 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16305
94369251
KT
163062011-02-28 Kai Tietz <kai.tietz@onevision.com>
16307
16308 PR debug/28047
16309 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16310 (lookup_filename): Likewise.
b2e2ea67 16311 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 16312
80a832cd
JJ
163132011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16314 Jakub Jelinek <jakub@redhat.com>
16315
16316 PR middle-end/47893
16317 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16318 (assign_stack_local_1): Change last argument type to int.
16319 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16320 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 16321 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
16322 (assign_stack_local): Adjust caller.
16323 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16324 of assign_stack_local, pass 0 as last argument.
16325 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16326 callers.
16327
1b500976
JJ
163282011-02-28 Jakub Jelinek <jakub@redhat.com>
16329
f61c6f34
JJ
16330 PR debug/47283
16331 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16332 Use target address_mode and pointer_mode hooks instead of hardcoded
16333 Pmode and ptr_mode. Handle some simple cases of extending if
16334 POINTERS_EXTEND_UNSIGNED < 0.
16335 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16336 Call convert_debug_memory_address.
16337 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16338 convert_debug_memory_address.
16339
1b500976
JJ
16340 PR middle-end/46790
16341 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16342 * configure: Regenerated.
16343 * config.in: Regenerated.
16344 * varasm.c (default_function_section): Return NULL
b2e2ea67 16345 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 16346
2f2935b6
MJ
163472011-02-28 Martin Jambor <mjambor@suse.cz>
16348
16349 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16350 the description to match the printed values.
16351
474086eb
RG
163522011-02-28 Richard Guenther <rguenther@suse.de>
16353
16354 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16355 of the copied scope tree.
16356
15bf6f3a
RW
163572011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16358
16359 * doc/extend.texi (Function Attributes): Avoid deeply (and
16360 wrongly) nested tables.
16361
f6b439c9
JJ
163622011-02-27 Jakub Jelinek <jakub@redhat.com>
16363
16364 PR middle-end/47903
16365 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16366 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16367 r isn't op0 nor op1.
16368
1d8ca2c7
GJL
163692011-02-23 Georg-Johann Lay <avr@gjlay.de>
16370
16371 * config/avr/avr.md: Remove magic comment for emacs.
16372
593fca4b
GJL
163732011-02-23 Georg-Johann Lay <avr@gjlay.de>
16374
16375 PR target/45261
16376 * config/avr/avr.c (avr_option_override): Use error on bad options.
16377 (avr_help): New function.
16378 (TARGET_HELP): Define.
16379
6609216e
GJL
163802011-02-22 Georg-Johann Lay <avr@gjlay.de>
16381
16382 PR target/42240
16383 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16384 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16385
03d458af
GP
163862011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16387
16388 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16389 (ARM Options): Ditto.
16390 (i386 and x86-64 Options): Ditto.
16391 (RX Options): Ditto.
16392 (SPARC Options): Ditto.
16393
1c379b78
TC
163942011-02-26 Tijl Coosemans <tijl@coosemans.org>
16395
16396 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16397 FreeBSD 6 and later. Generally use cpu generic.
16398
d5ed058c 163992011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 16400
d5ed058c
GP
16401 * doc/cpp.texi: Update copyright years.
16402
509d65dd 164032011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 16404
509d65dd 16405 PR target/46898
308d39cd
SB
16406 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16407
509d65dd 164082011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 16409
509d65dd 16410 PR target/46898
308d39cd
SB
16411 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16412 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16413 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16414 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 16415 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
16416 (gen_int_relational): Move declarations to start of function.
16417
822ba6d7
EB
164182011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16419
16420 PR tree-optimization/45470
16421 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16422 can throw internally only.
16423 * tree-vect-stmts.c (vectorizable_call): Likewise.
16424
ef795fc2
AS
164252011-02-24 Anatoly Sokolov <aesok@post.ru>
16426
16427 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16428 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16429 * config/stormy16/stormy16-protos.h
16430 (xstormy16_preferred_reload_class): Remove.
16431 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16432 static. Change 'rclass' argument and return type to reg_class_t.
16433 (TARGET_PREFERRED_RELOAD_CLASS,
16434 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16435
1c3277ee
RG
164362011-02-24 Richard Guenther <rguenther@suse.de>
16437
16438 * lto-streamer-in.c (input_bb): Do not find referenced vars
16439 in debug statements.
16440
67e18edb
JM
164412011-02-23 Jason Merrill <jason@redhat.com>
16442
16443 * common.opt (fabi-version): Document v5 and v6.
16444
b14fad9d
RG
164452011-02-23 Richard Guenther <rguenther@suse.de>
16446
16447 PR tree-optimization/47849
16448 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16449
7fcf46f5
JZ
164502011-02-23 Jie Zhang <jie@codesourcery.com>
16451
16452 * opts-common.c (decode_cmdline_option): Print empty string
16453 argument as "" in decoded->orig_option_with_args_text.
16454 * gcc.c (execute): Print empty string argument as ""
16455 in the verbose output.
16456 (do_spec_1): Keep empty string argument.
16457
f85b70fd
NF
164582011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16459
16460 * config.gcc: Declare score-* and crx-* obsolete.
16461
b152a615
JZ
164622011-02-23 Jie Zhang <jie@codesourcery.com>
16463
16464 PR rtl-optimization/47763
16465 * web.c (web_main): Ignore naked clobber when replacing register.
16466
bb6e77bc
AS
164672011-02-22 Anatoly Sokolov <aesok@post.ru>
16468
16469 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16470 Remove.
16471
68bf6491
SP
164722011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16473
16474 PR doc/47848
16475 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16476
88ee1fc7
MS
164772011-02-22 Mike Stump <mikestump@comcast.net>
16478
16479 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16480 assembler.
16481 * configure: Regenerate.
16482
6042d1dd
CLT
164832011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16484
16485 PR rtl-optimization/46002
16486 * ira-color.c (update_copy_costs): Change class intersection
16487 test to reg_class_contents[] test of 'hard_regno'.
16488
7de97f9e
JM
164892011-02-21 Joseph Myers <joseph@codesourcery.com>
16490
16491 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16492 than Driver option.
16493 * config/hpux11.opt (mt): Likewise.
16494 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16495 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16496 * config/vax/elf.opt (mno-asm-pic): Likewise.
16497 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16498
d1d46f9f
MS
164992011-02-21 Mike Stump <mikestump@comcast.net>
16500
16501 PR target/47822
16502 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16503 tree so we can get save the type.
16504 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16505 for CFString instead of trying to use past the end of the builtins.
16506 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16507 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16508 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16509 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16510 Rename to darwin_builtin_cfstring.
16511 (darwin_init_cfstring_builtins): Return the built type.
16512
23e0d930
UB
165132011-02-21 Uros Bizjak <ubizjak@gmail.com>
16514
16515 PR target/47840
16516 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16517 (_mm256_insert_epi64): Use _mm_insert_epi64.
16518
192997cf
AS
165192011-02-21 Anatoly Sokolov <aesok@post.ru>
16520
16521 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16522 * config/stormy16/stormy16-protos.h
16523 (xstormy16_mode_dependent_address_p): Remove.
16524 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16525 Make static. Change return type to bool. Change argument type to
16526 const_rtx. Remove dead code.
16527 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16528
e292d003
RG
165292011-02-21 Richard Guenther <rguenther@suse.de>
16530
16531 PR lto/47820
16532 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16533 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16534 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16535 TUs context.
23e0d930 16536 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
16537 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16538
77f846e9
RG
165392011-02-20 Richard Guenther <rguenther@suse.de>
16540
16541 PR lto/47822
16542 * tree.c (free_lang_data_in_decl): Clean builtins from
16543 the TU decl BLOCK_VARS.
23e0d930 16544
b2cddfc8
AO
165452011-02-19 Alexandre Oliva <aoliva@redhat.com>
16546
16547 PR debug/47620
16548 PR debug/47630
16549 * haifa-sched.c (fix_tick_ready): Skip tick computation
16550 for debug insns.
16551
becf4c11
RG
165522011-02-19 Richard Guenther <rguenther@suse.de>
16553
16554 PR lto/47647
16555 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16556 Remove lazy BLOCK_VARS streaming.
16557 (lto_input_ts_block_tree_pointers): Likewise.
16558 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16559
27f98305
JM
165602011-02-19 Joseph Myers <joseph@codesourcery.com>
16561
16562 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16563
064bf3f4
JM
165642011-02-19 Joseph Myers <joseph@codesourcery.com>
16565
16566 * config/i386/biarch32.h, config/i386/mach.h,
16567 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16568
9215ddc3
JJ
165692011-02-19 Jakub Jelinek <jakub@redhat.com>
16570
16571 PR target/47800
16572 * config/i386/i386.md (peephole2 for shift and plus): Use
16573 operands[1] original mode in the first insn.
16574
8b021004
MS
165752011-02-18 Mike Stump <mikestump@comcast.net>
16576
65ded153 16577 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 16578
f84ae14c
JH
165792011-02-18 Jan Hubicka <jh@suse.cz>
16580
16581 PR middle-end/47788
65ded153
EB
16582 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16583 to zero when the function is not inlinable at all.
f84ae14c 16584
eddabc80
JDA
165852011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16586
16587 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16588 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16589 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16590 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16591 * config/pa/t-pa64: Likewise.
16592 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16593
ca3da783
JJ
165942011-02-18 Jakub Jelinek <jakub@redhat.com>
16595
16596 PR driver/47787
16597 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16598
430aa868
JDA
165992011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16600
16601 PR target/47792
16602 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16603
4bf7ff7e
AS
166042011-02-18 Anatoly Sokolov <aesok@post.ru>
16605
16606 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16607 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16608 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16609 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16610 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16611 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16612 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16613 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16614 m32r_legitimate_address_p): New functions.
16615 * config/m32r/constraints.md (constraint "S"): Don't use
16616 STORE_PREINC_PREDEC_P.
16617 (constraint "U"): Don't use LOAD_POSTINC_P.
16618
7efcf910
CLT
166192011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16620
16621 PR rtl-optimization/46178
16622 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16623 compute ira_hard_regno_cover_class[].
16624
237d6259
RG
166252011-02-18 Richard Guenther <rguenther@suse.de>
16626
16627 PR lto/47798
16628 * lto-streamer.h (lto_global_var_decls): Declare.
16629 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16630 statics for global var processing.
16631
12d80acc
RG
166322011-02-18 Richard Guenther <rguenther@suse.de>
16633
16634 PR tree-optimization/47737
16635 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16636 edge dominance check.
16637
abfea58d
JJ
166382011-02-18 Jakub Jelinek <jakub@redhat.com>
16639
16640 PR debug/47780
16641 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16642 avoid invalid rtx sharing.
16643
f73c8882
GP
166442011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16645
16646 * doc/cpp.texi (Obsolete Features): Add background on the
16647 origin of assertions.
16648
d764a8e6
IS
166492011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16650
16651 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 16652 objc_abi == 2.
d764a8e6
IS
16653 * config/darwin.c (output_objc_section_asm_op): Added support for
16654 ABI v1 and v2.
16655 (is_objc_metadata): New.
16656 (darwin_objc2_section): New.
16657 (darwin_objc1_section): New.
16658 (machopic_select_section): Added support for ABI v1 and v2.
16659 (darwin_emit_objc_zeroed): New.
16660 (darwin_output_aligned_bss): Detect objc metadata and treat it
16661 appropriately.
16662 (darwin_asm_output_aligned_decl_common): Same.
16663 (darwin_asm_output_aligned_decl_local): Same.
16664 * config/darwin-sections.def: Updated for ABI v1 and v2.
16665 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16666 compiling Objective-C code for the NeXT runtime, default to using
16667 ABI version 0 for 32-bit, and version 2 for 64-bit.
16668
0a8134ca
JM
166692011-02-17 Joseph Myers <joseph@codesourcery.com>
16670
16671 * common.opt (optimize_fast): New Variable.
16672 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16673 instead of local variable ofast.
16674
0a256240
NP
166752011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16676
16677 * doc/invoke.texi (fobjc-abi-version): Documented.
16678 (fobjc-nilcheck): Documented.
16679 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16680 version.
16681
fa381cb2
JM
166822011-02-17 Joseph Myers <joseph@codesourcery.com>
16683
16684 PR driver/47390
16685 * common.opt (export-dynamic): New Driver option.
16686 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16687
5437eaa6
JM
166882011-02-17 Joseph Myers <joseph@codesourcery.com>
16689
16690 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16691
bb7e6d55
AO
166922011-02-17 Alexandre Oliva <aoliva@redhat.com>
16693 Jan Hubicka <jh@suse.cz>
16694
16695 PR debug/47106
16696 PR debug/47402
16697 * cfgexpand.c (account_used_vars_for_block): Remove.
16698 (estimated_stack_frame_size): Use referenced vars.
16699 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16700 that were referenced in the original function. Test src_fn
16701 rather than cfun. Drop redundant get_var_ann.
16702 (setup_one_parameter): Drop redundant get_var_ann.
16703 (declare_return_variable): Likewise.
16704 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16705 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16706 * ipa-inline.c (compute_inline_parameters): Do not compute
16707 disregard_inline_limits here.
bb7e6d55
AO
16708 (compute_inlinable_for_current, pass_inlinable): New.
16709 (pass_inline_parameters): Require PROP_referenced_vars.
16710 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 16711 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
16712 (cgraph_analyze_function): Set .disregard_inline_limits.
16713 * tree-sra.c (convert_callers): Compute inliner parameters
16714 only for functions already in SSA form.
16715
f181a8a7
JM
167162011-02-17 Joseph Myers <joseph@codesourcery.com>
16717
16718 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16719 -mlittle-endian-data.
16720
c6869789
JM
167212011-02-17 Joseph Myers <joseph@codesourcery.com>
16722
16723 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16724 -mno-fpu, not -fpu and -no-fpu.
16725 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16726 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16727
fbf4bfd3
UB
167282011-02-17 Uros Bizjak <ubizjak@gmail.com>
16729
16730 PR target/43653
16731 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16732 input reload with PLUS RTX.
16733
70be5dc7
JM
167342011-02-16 Joseph Myers <joseph@codesourcery.com>
16735
16736 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16737 of InverseVar(MDMX).
16738
30b1646e
JM
167392011-02-16 Joseph Myers <joseph@codesourcery.com>
16740
16741 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16742 --m4-340.
16743
ab7b71e9
JM
167442011-02-16 Joseph Myers <joseph@codesourcery.com>
16745
16746 * config/mn10300/mn10300.opt (mno-crt0): New.
16747
466f3f08
JM
167482011-02-16 Joseph Myers <joseph@codesourcery.com>
16749
16750 * config/m68k/uclinux.opt (static-libc): New Driver option.
16751
8226cd7b
JM
167522011-02-16 Joseph Myers <joseph@codesourcery.com>
16753
16754 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16755
45cab1d7
JM
167562011-02-16 Joseph Myers <joseph@codesourcery.com>
16757
16758 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16759 %{muser-extend-enabled}.
16760
65aab64f
RG
167612011-02-16 Richard Guenther <rguenther@suse.de>
16762
16763 PR tree-optimization/47738
16764 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16765 the TODO from tree_predictive_commoning.
16766
fc2fa4fb
JL
167672011-02-15 Jeff Law <law@redhat.com>
16768
16769 Revert
16770 2011-01-25 Jeff Law <law@redhat.com>
16771
16772 PR rtl-optimization/37273
16773 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16774 handle them like argument loads from stack slots. Do not double
16775 count memory for memory constants and argument loads from stack slots.
16776
4e380b8e
L
167772011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16778
16779 PR middle-end/47725
16780 * combine.c (cant_combine_insn_p): Revert the last change.
16781
e3a69bb4
MM
167822011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16783
16784 PR target/47755
16785 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16786 mode for vector constants. Remove code that checks for TImode.
16787
de650422
AO
167882011-02-15 Alexandre Oliva <aoliva@redhat.com>
16789
16790 PR debug/47106
16791 PR debug/47402
16792 * cgraph.h (compute_inline_parameters): Return void.
16793 * ipa-inline.c (compute_inline_parameters): Adjust.
16794
30925d94
AO
167952011-02-15 Alexandre Oliva <aoliva@redhat.com>
16796
16797 PR debug/47106
16798 PR debug/47402
16799 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16800 rather than decl.
16801 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16802 * ipa-inline.c (compute_inline_parameters): Adjust.
16803
1b9a784a
AO
168042011-02-15 Alexandre Oliva <aoliva@redhat.com>
16805
16806 PR debug/47106
16807 PR debug/47402
16808 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16809 Adjust all users. Pass FN to...
16810 * tree-flow-inline.h (first_referenced_var): ... this. Add
16811 fn argument.
16812 * ipa-struct-reorg.c: Adjust.
16813 * tree-dfa.c: Adjust.
16814 * tree-into-ssa.c: Adjust.
16815 * tree-sra.c: Adjust.
16816 * tree-ssa-alias.c: Adjust.
16817 * tree-ssa-live.c: Adjust.
16818 * tree-ssa.c: Adjust.
16819 * tree-ssanames.c: Adjust.
16820 * tree-tailcall.c: Adjust.
16821
27c6b086
AO
168222011-02-15 Alexandre Oliva <aoliva@redhat.com>
16823
16824 PR debug/47106
16825 PR debug/47402
16826 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16827 Adjust all callers.
16828 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16829 * tree-flow-inline.h: Adjust.
16830 * gimple-pretty-print.c: Adjust.
16831 * tree-into-ssa.c: Adjust.
16832 * tree-ssa.c: Adjust.
16833 * cfgexpand.c: Adjust.
16834
679e8183
NF
168352011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16836
fbf4bfd3
UB
16837 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16838 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16839 (EXTRA_CONSTRAINT): Delete.
16840 * config/iq2000/constraints.md: New file.
16841 * config/iq2000/iq2000.md: Include it.
679e8183
NF
16842 (define_insn ""): Delete.
16843 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16844 unsupported constraint letters from patterns.
16845 (call_value, call_value_internal1): Likewise.
16846 (call_value_multiple_internal1): Likewise.
16847
a45d420a
NC
168482011-02-15 Nick Clifton <nickc@redhat.com>
16849
16850 * config/mn10300/mn10300.c: Include tm-constrs.h.
16851 (struct liw_data): New data structure describing an LIW candidate
16852 instruction.
16853 (extract_bundle): Use struct liw_data. Allow small integer
16854 operands for some instructions.
16855 (check_liw_constraints): Use struct liw_data. Remove swapped
16856 parameter. Add comments describing the checks. Fix bug when
16857 assigning the source of liw1 to the source of liw2.
16858 (liw_candidate): Delete. Code moved into extract_bundle.
16859 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16860 before swapping.
16861 * config/mn10300/predicates.md (liw_operand): New predicate.
16862 Allows registers and small integer constants.
16863 * config/mn10300/constraints.md (O): New constraint. Accetps
16864 integers in the range -8 to +7 inclusive.
16865 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16866 for moving a small integer into a register. Give this alternative
16867 LIW attributes.
16868 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16869 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16870 using the J,K,L and M constraints,
16871 (liw): Remove SI mode on second operands to allow for HI and QI
16872 mode values.
16873 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16874 instruction.
16875
8a73faf1
L
168762011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16877
16878 PR middle-end/47725
16879 * combine.c (cant_combine_insn_p): Check zero/sign extended
16880 hard registers.
16881
48feba28
RG
168822011-02-15 Richard Guenther <rguenther@suse.de>
16883
16884 PR tree-optimization/47743
16885 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16886 for a non-type-compatible VN lookup bail out.
16887
ad1c1eeb
NF
168882011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16889
16890 * config/fr30/constraints.md: New file.
16891 * config/fr30/fr30.md: Include it.
16892 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16893 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16894 (EXTRA_CONSTRAINT): Delete.
16895
49ac143d
NF
168962011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16897
16898 * config/frv/constraints.md: New file.
16899 * config/frv/predicates.md: Include it.
16900 * config/frv/frv.c (reg_class_from_letter): Delete.
16901 (frv_option_override): Don't initialize it.
16902 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16903 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16904 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16905 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16906 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16907 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16908 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16909 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16910 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16911 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16912 (REG_CLASS_FROM_CONSTRAINT): Delete.
16913
c95f9494
JJ
169142011-02-15 Jakub Jelinek <jakub@redhat.com>
16915
16916 PR middle-end/47581
16917 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16918 if frame size is 0 in a leaf function.
16919
13aed611
RO
169202011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16921
16922 PR pch/14940
16923 * config/alpha/host-osf.c: New file.
16924 * config/alpha/x-osf: New file.
16925 * config.host (alpha*-dec-osf*): Use it.
16926
b09c3081
AS
169272011-02-14 Anatoly Sokolov <aesok@post.ru>
16928
16929 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16930 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16931 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16932 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16933 type to const_rtx.
16934 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16935
d634083b
NF
169362011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16937
16938 * config/stormy16/constraints.md: New file.
16939 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16940 Use satisfies_constraint_Q and satisfies_constraint_R.
16941 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16942 Delete.
16943 (xstormy16_legitiamte_address_p): Declare.
16944 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16945 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16946 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 16947 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
16948 Un-staticize.
16949 (xstormy16_extra_constraint_p): Delete.
16950
c7dd803e
EB
169512011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16952
16953 PR tree-optimization/46494
16954 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16955 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16956 (pass_rtl_loop_done): Add TODO_verify_flow.
16957 * fwprop.c (pass_rtl_fwprop): Likewise.
16958 * modulo-sched.c (pass_sms): Likewise.
16959 * tree-ssa-dom.c (pass_dominator): Likewise.
16960 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16961 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16962 (pass_tree_loop_done): Likewise.
16963 * tree-ssa-pre.c (execute_pre): Likewise.
16964 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16965 * tree-ssa-sink.c (pass_sink_code): Likewise.
16966 * tree-vrp.c (pass_vrp): Likewise.
16967
c6150df6
NF
169682011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16969
c7dd803e
EB
16970 * config/v850/constraints.md: New file.
16971 * config/v850/v850.md: Include it.
16972 * config/v850/predicates.md (reg_or_0_operand): Use
16973 satisfies_constraint_G.
16974 (special_symbolref_operand): Use satisfies_constraint_K.
16975 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16976 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16977 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16978 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16979 (EXTRA_CONSTRAINT): Delete.
16980 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16981 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16982 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 16983
30dd1ea3
AS
169842011-02-14 Anatoly Sokolov <aesok@post.ru>
16985
16986 PR target/47696
16987 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16988 description.
16989
944f4bb3
NF
169902011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16991
16992 * config/mcore/constraints.md: New file.
16993 * config/mcore/mcore.md: Include it.
16994 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16995 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16996 (REG_CLASS_FROM_LETTER): Delete.
16997 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16998 insn_const_int_ok_for_constraint.
16999 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17000 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17001 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17002 (EXTRA_CONSTRAINT): Delete.
17003
ad56a54c
RO
170042011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17005
17006 PR ada/41929
17007 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17008 (IS_SIGHANDLER): Define.
17009 (sparc64_is_sighandler): New function, split off from
17010 sparc64_fallback_frame_state.
17011 (sparc_is_sighandler): New function, split off from
17012 sparc_fallback_frame_state.
17013 (sparc64_fallback_frame_state): Merge with ...
17014 (sparc_fallback_frame_state): ... this into ...
17015 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
17016 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17017 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17018 stack instead of hardcoded offsets.
ad56a54c 17019
fbf4bfd3 170202011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
17021
17022 PR target/45808
17023 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17024
029c8f3e
RW
170252011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17026
17027 * configure: Regenerate.
17028
a016dc83
JM
170292011-02-12 Joseph Myers <joseph@codesourcery.com>
17030
17031 PR driver/45731
17032 * gcc.c (asm_options): Correct spec matching --target-help.
17033
8957a0ec
MJ
170342011-02-12 Martin Jambor <mjambor@suse.cz>
17035
17036 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17037 to gimple call error.
17038
6ef828bc
MS
170392011-02-12 Mike Stump <mikestump@comcast.net>
17040
17041 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17042 comments in backslash regions.
17043
a4015be5
MS
170442011-02-12 Mike Stump <mikestump@comcast.net>
17045 Jakub Jelinek <jakub@redhat.com>
17046 Iain Sandoe <iains@gcc.gnu.org>
17047
17048 PR target/47324
17049 * dwarf2out.c (output_cfa_loc): When required, apply the
17050 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17051 (output_loc_sequence): Likewise.
17052 (output_loc_operands_raw): Likewise.
17053 (output_loc_sequence_raw): Likewise.
17054 (output_cfa_loc): Likewise.
17055 (output_loc_list): Suppress register number adjustment when
17056 calling output_loc_sequence()
17057 (output_die): Likewise.
17058
5378dda2
AS
170592011-02-12 Anatoly Sokolov <aesok@post.ru>
17060
17061 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17062 Remove macros.
17063 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17064 xtensa_memory_move_cost): New functions.
17065 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17066
f3d533d3
AO
170672011-02-12 Alexandre Oliva <aoliva@redhat.com>
17068
17069 PR lto/47225
17070 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17071 in the current directory.
17072 * configure: Rebuilt.
17073
9d53403c
IS
170742011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17075
17076 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 17077 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
17078 correct indents of the preceding block.
17079
a350a6c8
IS
170802011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17081
17082 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17083 the switch.
17084
bab79a40
JM
170852011-02-11 Joseph Myers <joseph@codesourcery.com>
17086
17087 * common.opt (nostartfiles): New Driver option.
17088
1bbc6693
XDL
170892011-02-11 Xinliang David Li <davidxl@google.com>
17090
17091 PR tree-optimization/47707
17092 * tree-chrec.c (convert_affine_scev): Keep type precision.
17093
1da7d8c0
EB
170942011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17095
17096 PR tree-optimization/47420
17097 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17098
170992011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
17100
17101 PR rtl-optimization/47614
17102 * rtl.h (check_for_inc_dec): Declare.
17103 * dse.c (check_for_inc_dec): Externalize...
17104 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17105 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17106
4df47bca
JM
171072011-02-11 Joseph Myers <joseph@codesourcery.com>
17108
17109 PR driver/47678
17110 * gcc.c (main): Do not compile inputs if there were errors in
17111 option handling.
17112 * opts-common.c (read_cmdline_option): Check for wrong language
17113 after other error checks.
17114
61502ca8
NF
171152011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17116
17117 * cgraph.c: Fix comment typos.
17118 * cgraph.h: Likewise.
17119 * cgraphunit.c: Likewise.
17120 * ipa-cp.c: Likewise.
17121 * ipa-inline.c: Likewise.
17122 * ipa-prop.c: Likewise.
17123 * ipa-pure-const.c: Likewise.
17124 * ipa-ref.c: Likewise.
17125 * ipa-reference.c: Likewise.
17126
b63f974e
JJ
171272011-02-11 Jakub Jelinek <jakub@redhat.com>
17128
d50c5e0c
JJ
17129 PR debug/47684
17130 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 17131
6dd2a13c
RO
171322011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17133
17134 PR testsuite/47400
17135 * doc/sourcebuild.texi (Require Support): Document
17136 dg-require-ascii-locale.
17137
4a087ccf
MX
171382011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17139
17140 * doc/lto.texi (Write summary): Fix missing parentheses.
17141
a4403164
DD
171422011-02-10 DJ Delorie <dj@redhat.com>
17143
17144 * config/m32c/m32c.c (m32c_option_override): Disable
17145 -fcombine-stack-adjustments until flag value tracking and compare
17146 optimization can be rewritten.
17147
4fac45bd
PB
171482011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17149
17150 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17151 PROCESSOR_POWER7.
17152 (PROCESSOR_DEFAULT64): Likewise.
17153
72602cd1
RH
171542011-02-10 Richard Henderson <rth@redhat.com>
17155
17156 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17157 change from 2011-02-03.
17158 * config/rx/rx.c (flags_from_code): Likewise.
17159 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17160 is valid, n/pz otherwise.
17161 (rx_select_cc_mode): Return CCmode if Y is not zero.
17162
ea57f573
RG
171632011-02-10 Richard Guenther <rguenther@suse.de>
17164
ea4c3e65 17165 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 17166
92b1d23b
RG
171672011-02-10 Richard Guenther <rguenther@suse.de>
17168
17169 PR tree-optimization/47677
17170 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17171
525a2d06
JJ
171722011-02-10 Jakub Jelinek <jakub@redhat.com>
17173
17174 PR target/47665
17175 * combine.c (make_compound_operation): Only change shifts into
17176 multiplication for SCALAR_INT_MODE_P.
17177
06c969bd
JZ
171782011-02-10 Jie Zhang <jie@codesourcery.com>
17179
17180 PR testsuite/47622
17181 Revert
17182 2011-02-05 Jie Zhang <jie@codesourcery.com>
17183 PR debug/42631
17184 * web.c (entry_register): Don't clobber the number of the
17185 first uninitialized reference in used[].
17186
282ec48e
RG
171872011-02-09 Richard Guenther <rguenther@suse.de>
17188
17189 PR tree-optimization/47664
17190 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17191 all edges again.
17192
df98c3e8
DE
171932011-02-09 David Edelsohn <dje.gcc@gmail.com>
17194
d0f21cd6
DE
17195 PR target/46481
17196 PR target/47032
df98c3e8
DE
17197 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17198 PROCESSOR_POWER7.
17199 (PROCESSOR_DEFAULT64): Same.
17200 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17201
67b6839f
RO
172022011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17203
17204 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17205
4fd73214
MJ
172062011-02-09 Martin Jambor <mjambor@suse.cz>
17207
17208 PR middle-end/45505
17209 * tree-sra.c (struct access): New flags grp_scalar_read and
17210 grp_scalar_write. Changed description of assignment read and write
17211 flags.
17212 (dump_access): Dump new flags, reorder all of them.
17213 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17214 to detect multiple scalar reads.
17215 (analyze_access_subtree): Use the new scalar read write flags instead
17216 of the old flags. Adjusted comments.
17217
91140cd3
DD
172182011-02-08 DJ Delorie <dj@redhat.com>
17219
17220 PR target/47548
17221 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17222 patterns.
17223
4254bbfe
JM
172242011-02-08 Joseph Myers <joseph@codesourcery.com>
17225
17226 * config/m68k/uclinux.opt: New.
17227 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17228
f1fda84e
JM
172292011-02-08 Joseph Myers <joseph@codesourcery.com>
17230
17231 * config/cris/elf.opt (sim): New Driver option.
17232
4933ae74
JM
172332011-02-08 Joseph Myers <joseph@codesourcery.com>
17234
17235 * config/xtensa/elf.opt: New.
17236 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17237
4ad70280
JM
172382011-02-08 Joseph Myers <joseph@codesourcery.com>
17239
17240 * config/vax/elf.opt: New.
17241 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17242
20893707
JM
172432011-02-08 Joseph Myers <joseph@codesourcery.com>
17244
17245 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17246
b8e7038e
JM
172472011-02-08 Joseph Myers <joseph@codesourcery.com>
17248
17249 * config/gnu-user.opt: New.
17250 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17251 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17252 *-*-uclinux*): Use gnu-user.opt.
17253
e1c5225a
TS
172542011-02-08 Thomas Schwinge <thomas@schwinge.name>
17255
17256 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17257 * config/i386/gnu.h (CPP_SPEC): Likewise.
17258
5e46b0c6
ILT
172592011-02-08 Ian Lance Taylor <iant@google.com>
17260
17261 * common.opt (fcx-limited-range): Add SetByCombined flag.
17262 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17263 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17264 (fassociative-math, freciprocal-math): Likewise.
17265 (funsafe-math-optimizations): Likewise.
17266 * opth-gen.awk: Handle SetByCombined.
17267 * optc-gen.awk: Likewise.
ea4c3e65 17268 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
17269 (set_unsafe_math_optimizations_flags): Likewise.
17270 * doc/options.texi (Option properties): Document SetByCombined.
17271
32243d46
JM
172722011-02-08 Joseph Myers <joseph@codesourcery.com>
17273
17274 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17275 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17276 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17277 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17278 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17279
479c1fb3
SP
172802011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17281
17282 PR tree-optimization/46834
17283 PR tree-optimization/46994
17284 PR tree-optimization/46995
17285 * graphite-sese-to-poly.c (used_outside_reduction): New.
17286 (detect_commutative_reduction): Call used_outside_reduction.
17287 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17288 translate_scalar_reduction_to_array only when at least one
17289 loop-phi/close-phi tuple has been detected.
17290
3865a06f
RG
172912011-02-08 Richard Guenther <rguenther@suse.de>
17292
17293 PR middle-end/47639
17294 * tree-vect-generic.c (expand_vector_operations_1): Update
17295 stmts here ...
17296 (expand_vector_operations): ... not here. Cleanup EH info
17297 and the CFG if required.
17298
62902f3f
RG
172992011-02-08 Richard Guenther <rguenther@suse.de>
17300
17301 PR tree-optimization/47641
17302 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17303 require type compatibility.
17304
0efb9d64
AK
173052011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17306
17307 * gimple-low.c (lower_function_body): Don't remove the location of
17308 the return statement here.
17309 (lower_gimple_return): Do it here instead but only if the return
17310 statement is actually used twice.
17311
034b8ae4
RG
173122011-02-08 Richard Guenther <rguenther@suse.de>
17313
17314 PR tree-optimization/47632
17315 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17316 unused up_to_stmt parameter, return whether cfg-cleanup is
17317 necessary, remove EH info properly.
17318 (forward_propagate_into_gimple_cond): Adjust caller.
17319 (forward_propagate_into_cond): Likewise.
17320 (forward_propagate_comparison): Likewise.
17321 (tree_ssa_forward_propagate_single_use_vars): Make
17322 forward_propagate_comparison case similar to the two others.
17323
298362c8
NC
173242011-02-08 Nick Clifton <nickc@redhat.com>
17325
17326 * config/mn10300/mn10300.opt (mliw): New command line option.
17327 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17328 (liw_bundling): New automaton.
17329 (liw): New attribute.
17330 (liw_op): New attribute.
17331 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17332 (movsi_internal): Add LIW attributes.
17333 (andsi3): Likewise.
17334 (iorsi3): Likewise.
17335 (xorsi3): Likewise.
17336 (addsi3): Separate register and immediate alternatives.
17337 Add LIW attributes.
17338 (subsi3): Likewise.
17339 (cmpsi): Likewise.
17340 (aslsi3): Likewise.
17341 (lshrsi3): Likewise.
17342 (ashrsi3): Likewise.
17343 (liw): New pattern.
17344 * config/mn10300/mn10300.c (liw_op_names): New
17345 (mn10300_print_operand): Handle 'W' operand descriptor.
17346 (extract_bundle): New function.
17347 (check_liw_constraints): New function.
17348 (liw_candidate): New function.
17349 (mn10300_bundle_liw): New function.
17350 (mn10300_reorg): New function.
17351 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17352 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17353 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17354 __LIW__ or __NO_LIW__.
17355 * doc/invoke.texi: Describe the -mliw command line option.
17356
90488014
JDA
173572011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17358
17359 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17360 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17361 pthread_mutex_unlock): Remove.
17362 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17363 * config/pa/t-pa64: Likewise.
17364 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17365 shared libc if not linking against libpthread.
17366 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17367
689ff841
IS
173682011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17369
17370 PR target/47558
17371 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17372 on 10.6 and later to ensure that we always use the unwinder from
17373 the system. Only add -no_compact_unwind when tarteting darwin
17374 10.6 or later.
17375
821014aa
SE
173762011-02-07 Steve Ellcey <sje@cup.hp.com>
17377
17378 PR target/46997
17379 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17380 (vec_interleave_lowv2sf): Ditto.
17381 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17382 (vec_extract_oddv2sf): Ditto.
17383
41cf94fb
MS
173842011-02-07 Mike Stump <mikestump@comcast.net>
17385
62dea57d 17386 PR target/42333
41cf94fb
MS
17387 Add __ieee_divdc3 entry point.
17388 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17389 entry point.
17390 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17391 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17392 * config/darwin.c (darwin_rename_builtins): Add.
17393 * config/darwin-protos.h (darwin_rename_builtins): Add.
17394
ee09a3dd
MM
173952011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17396
17397 PR target/47636
17398 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17399 for the condition.
17400
83296cd0
MS
174012011-02-07 Mike Stump <mikestump@comcast.net>
17402
ea4c3e65 17403 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 17404
0f4e946f
DC
174052011-02-07 Denis Chertykov <chertykov@gmail.com>
17406
17407 PR target/47534
17408 * config/avr/libgcc.S (exit): Move .endfunc
17409
1ec87690
RG
174102011-02-07 Richard Guenther <rguenther@suse.de>
17411
17412 PR tree-optimization/47615
17413 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17414 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17415 (run_scc_vn): Initialize it.
17416 (visit_reference_op_load): Use it.
17417 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17418
b46ae6da
UW
174192011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17420
17421 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17422 DImode trapping arithmetic libfuncs.
17423
c0aae19c
RG
174242011-02-07 Richard Guenther <rguenther@suse.de>
17425
17426 PR tree-optimization/47621
17427 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17428 two duplicates ...
17429 (execute_update_addresses_taken): ... here. Make it more
17430 conservative in what we accept.
17431
295d926b
JM
174322011-02-06 Joseph Myers <joseph@codesourcery.com>
17433
17434 * config/sparc/freebsd.h (ASM_SPEC): Define.
17435 * config/sparc/vxworks.h (ASM_SPEC): Define.
17436
bdeb2471
JM
174372011-02-06 Joseph Myers <joseph@codesourcery.com>
17438
17439 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17440
d5d3781a
SB
174412011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17442
17443 * doc/invoke.texi: Remove reference to compiler internals from
17444 user documentation.
17445
17446 * reg-notes.def: Remove REG_VALUE_PROFILE.
17447 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17448
c42c09fc
JJ
174492011-02-05 Jakub Jelinek <jakub@redhat.com>
17450
17451 PR middle-end/47610
17452 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 17453 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 17454
beea2755
JZ
174552011-02-05 Jie Zhang <jie@codesourcery.com>
17456
17457 PR debug/42631
17458 * web.c (entry_register): Don't clobber the number of the
17459 first uninitialized reference in used[].
17460
a130584a
SP
174612011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17462
17463 PR tree-optimization/46194
17464 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17465 (build_classic_dist_vector_1): Do not represent classic distance
17466 vectors when the access functions are variating in different loops.
17467
962101ac
JM
174682011-02-04 Joseph Myers <joseph@codesourcery.com>
17469
17470 * config/mips/iris6.opt: New.
17471 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17472
55eaaa5b
RH
174732011-02-04 Richard Henderson <rth@redhat.com>
17474 Steve Ellcey <sje@cup.hp.com>
17475
17476 PR target/46997
17477 * config/ia64/predicates.md (mux1_brcst_element): New.
17478 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17479 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17480 (ia64_unpack_sign): New.
17481 (ia64_expand_unpack): Rewrite using new routines.
17482 (ia64_expand_widen_sum): Ditto.
17483 (ia64_expand_dot_prod_v8qi): Ditto.
17484 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17485 routines, add endian check.
17486 (pmpy2_even): Rename from pmpy2_r, add endian check.
17487 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17488 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17489 (vec_widen_smult_hi_v4hi): Ditto.
17490 (vec_widen_umult_lo_v4hi): Ditto.
17491 (vec_widen_umult_hi_v4hi): Ditto.
17492 (mulv2si3): Change endian checks.
17493 (sdot_prodv4hi): Rewrite with new calls.
17494 (udot_prodv4hi): New.
17495 (vec_pack_ssat_v4hi): Add endian check.
17496 (vec_pack_usat_v4hi): Ditto.
17497 (vec_pack_ssat_v2si): Ditto.
17498 (max1_even): Rename from max1_r, add endian check.
17499 (max1_odd): Rename from max1_l, add endian check.
17500 (*mux1_rev): Format change.
17501 (*mux1_mix): Ditto.
17502 (*mux1_shuf): Ditto.
17503 (*mux1_alt): Ditto.
17504 (*mux1_brcst_v8qi): Use new predicate.
17505 (vec_extract_evenv8qi): Remove endian check.
17506 (vec_extract_oddv8qi): Ditto.
17507 (vec_interleave_lowv4hi): Format change.
17508 (vec_interleave_highv4hi): Ditto.
17509 (mix2_even): Rename from mix2_r, add endian check.
17510 (mix2_odd): Rename from mux2_l, add endian check.
17511 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17512 (vec_extract_evenodd_helper): Format change.
17513 (vec_extract_evenv4hi): Remove endian check.
17514 (vec_extract_oddv4hi): Remove endian check.
17515 (vec_interleave_lowv2si): Format change.
17516 (vec_interleave_highv2si): Format change.
17517 (vec_initv2si): Remove endian check.
17518 (vecinit_v2si): Add endian check.
17519 (reduc_splus_v2sf): Add endian check.
17520 (reduc_smax_v2sf): Ditto.
17521 (reduc_smin_v2sf): Ditto.
17522 (vec_initv2sf): Remove endian check.
17523 (fpack): Add endian check.
17524 (fswap): Add endian check.
17525 (vec_interleave_highv2sf): Add endian check.
17526 (vec_interleave_lowv2sf): Add endian check.
17527 (fmix_lr): Add endian check.
17528 (vec_setv2sf): Format change.
17529 (*vec_extractv2sf_0_be): Use shift to extract operand.
17530 (*vec_extractv2sf_1_be): New.
17531 (vec_pack_trunc_v4hi): Add endian check.
17532 (vec_pack_trunc_v2si): Format change.
17533
dcde5957
JJ
175342011-02-04 Jakub Jelinek <jakub@redhat.com>
17535
17536 PR inline-asm/23200
17537 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 17538 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
17539 (stmt_is_replaceable_p): New function.
17540 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17541 callers.
17542 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17543 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17544 SSA_NAME_DEF_STMT.
17545 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17546
a64a8e5a
JM
175472011-02-04 Joseph Myers <joseph@codesourcery.com>
17548
17549 * config/rs6000/xilinx.opt: New.
17550 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17551
4da2ed2f
JM
175522011-02-04 Joseph Myers <joseph@codesourcery.com>
17553
17554 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17555
a6e508f9
AS
175562011-02-03 Anatoly Sokolov <aesok@post.ru>
17557
17558 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17559 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17560 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17561 secondary_reload_info, xtensa_secondary_reload): Remove.
17562 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17563 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17564 (xtensa_preferred_reload_class): Make static. Change return and
17565 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17566 Use CONST_DOUBLE_P predicate.
17567 (xtensa_preferred_output_reload_class): New function.
17568 (xtensa_secondary_reload): Make static.
17569
82dc0de3
JM
175702011-02-03 Joseph Myers <joseph@codesourcery.com>
17571
17572 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17573 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17574 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17575
7fece979
JJ
175762011-02-03 Jakub Jelinek <jakub@redhat.com>
17577
17578 PR middle-end/31490
17579 * output.h (SECTION_RELRO): Define.
17580 (SECTION_MACH_DEP): Adjust.
17581 (get_variable_section): New prototype.
17582 * varpool.c (varpool_finalize_named_section_flags): New function.
17583 (varpool_assemble_pending_decls): Call it.
17584 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17585 * cgraphunit.c (cgraph_output_in_order): Call
17586 varpool_finalize_named_section_flags.
17587 * varasm.c (get_section): Allow section flags conflicts between
17588 relro and read-only sections if the section hasn't been declared yet.
17589 Set SECTION_OVERRIDE after diagnosing section type conflict.
17590 (get_variable_section): No longer static.
17591 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17592 readonly sections that need relocations.
17593 (decl_readonly_section_1): New function.
17594 (decl_readonly_section): Use it.
17595
17596 Revert:
509d65dd 17597 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
17598 Steve Ellcey <sje@cup.hp.com>
17599
17600 PR middle-end/31490
17601 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17602 if section attribute used.
17603
d18d5478
JJ
176042011-02-03 Jakub Jelinek <jakub@redhat.com>
17605
17606 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17607 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17608 (darwin_init_sections): Remove assertion.
17609
6479ed4b
NC
176102011-02-03 Nick Clifton <nickc@redhat.com>
17611
17612 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17613 lt and ge.
38be4072 17614 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
17615 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17616 instead of "n" and "pz".
17617 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17618 CC_FLAG_S.
17619
89843f5d
JJ
176202011-02-03 Jakub Jelinek <jakub@redhat.com>
17621
65450d64
JJ
17622 PR target/47312
17623 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17624 fma, expand FMA_EXPR as fma{,f,l} call.
17625
7d58701c
JJ
17626 PR lto/47274
17627 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17628 copy them into a unsigned char variable and pass address of it to
17629 lto_output_data_stream.
17630
89843f5d
JJ
17631 PR target/47564
17632 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17633 around backend_init_target and lang_dependent_init_target calls.
17634 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17635 (verify_cgraph_node): Don't call set_cfun here. Use
17636 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17637 Set error_found for incorrectly represented calls to thunks.
17638
4deef538
AO
176392011-02-03 Alexandre Oliva <aoliva@redhat.com>
17640
17641 PR debug/43092
17642 PR rtl-optimization/43494
17643 * rtl.h (for_each_inc_dec_fn): New type.
17644 (for_each_inc_dec): Declare.
17645 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17646 (for_each_inc_dec_find_inc_dec): New fn.
17647 (for_each_inc_dec_find_mem): New fn.
17648 (for_each_inc_dec): New fn.
17649 * dse.c (struct insn_size): Remove.
17650 (replace_inc_dec, replace_inc_dec_mem): Remove.
17651 (emit_inc_dec_insn_before): New fn.
17652 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17653 (canon_address): Pass mem modes to cselib_lookup.
17654 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17655 (cselib_lookup_from_insn): Likewise.
17656 (cselib_subst_to_values): Likewise.
17657 * cselib.c (find_slot_memmode): New var.
17658 (cselib_find_slot): New fn. Use it instead of
17659 htab_find_slot_with_hash everywhere.
17660 (entry_and_rtx_equal_p): Use find_slot_memmode.
17661 (autoinc_split): New fn.
17662 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17663 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17664 Deal with autoinc. Special-case recursion into MEMs.
17665 (cselib_hash_rtx): Likewise.
17666 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17667 address and MEM modes.
17668 (cselib_subst_to_values): Add memmode, pass it on.
17669 Deal with autoinc.
17670 (cselib_lookup): Add memmode argument, pass it on.
17671 (cselib_lookup_from_insn): Add memmode.
17672 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17673 (struct cselib_record_autoinc_data): New.
17674 (cselib_record_autoinc_cb): New fn.
17675 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17676 mode to cselib_lookup. Reset autoinced REGs here instead of...
17677 (cselib_process_insn): ... here.
17678 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17679 to cselib_lookup.
17680 (add_uses): Likewise, also to cselib_subst_to_values.
17681 (add_stores): Likewise.
17682 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17683 cselib_subst_to_values.
17684 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17685 * gcse.c (do_local_cprop): Adjusted.
17686 * postreload.c (reload_cse_simplify_set): Adjusted.
17687 (reload_cse_simplify_operands): Adjusted.
17688 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17689
1551d44a
AO
176902011-02-03 Alexandre Oliva <aoliva@redhat.com>
17691
17692 PR tree-optimization/45122
17693 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17694 unsafe assumptions when there's more than one loop exit.
17695
c9485473
MM
176962011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17697
17698 PR target/47272
17699 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17700 Document using vector double with the load/store builtins, and
17701 that the load/store builtins always use Altivec instructions.
17702
17703 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17704 to use altivec memory instructions, even on VSX.
17705 (vector_altivec_store_<mode>): Ditto.
17706
17707 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17708 function.
17709
17710 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17711 V2DF, V2DI support to load/store overloaded builtins.
17712
17713 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17714 altivec load/store builtins for V2DF/V2DI types.
17715
17716 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17717 set avoid indexed addresses on power6 if -maltivec.
17718 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17719 vector_altivec_load/vector_altivec_store builtins.
17720 (altivec_expand_st_builtin): Ditto.
17721 (altivec_expand_builtin): Add VSX memory builtins.
17722 (rs6000_init_builtins): Add V2DI types to internal types.
17723 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17724 load/store builtins.
17725 (rs6000_address_for_altivec): Insure memory address is appropriate
17726 for Altivec.
17727
17728 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17729 vec_vsx_ld and vec_vsx_st.
17730 (vsx_store_<mode>): Ditto.
17731
17732 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17733 variables to hold long long types for VSX vector memory builtins.
17734 (RS6000_BTI_unsigned_long_long): Ditto.
17735 (long_long_integer_type_internal_node): Ditti.
17736 (long_long_unsigned_type_internal_node): Ditti.
17737
17738 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17739 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17740 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17741
17742 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17743 short cuts.
17744 (vec_vsx_st): Ditto.
17745
b24d1acf
JM
177462011-02-02 Joseph Myers <joseph@codesourcery.com>
17747
17748 * config/pa/pa-hpux10.opt: New.
17749 * config/hpux11.opt (pthread): New Driver option.
17750 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17751 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17752
aa18dd0f
JM
177532011-02-02 Joseph Myers <joseph@codesourcery.com>
17754
17755 * config/ia64/vms.opt: New.
17756 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17757
28fc3eee
MM
177582011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17759
17760 PR target/47580
17761 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17762 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17763 generator functions.
17764 (vsx_floatuns<VSi><mode>2): Ditto.
17765 (vsx_fix_trunc<mode><VSi>2): Ditto.
17766 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17767
b5838b1f
JM
177682011-02-02 Joseph Myers <joseph@codesourcery.com>
17769
17770 * config/i386/djgpp.opt (posix): New Driver option.
17771
0db8fa89
GP
177722011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17773
17774 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17775 Move to the unsupported targets list.
17776
9cd4f22a
PB
177772011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17778
17779 PR rtl-optimization/47525
17780 * df-scan.c: Update copyright years.
17781 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17782 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17783
9ed8059c
RO
177842011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17785
17786 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17787 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17788 (ASM_OUTPUT_ASCII): Remove.
17789 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17790
2a737389
JL
177912011-02-02 Jeff Law <law@redhat.com>
17792
17793 PR middle-end/47543
17794 * reload.c (find_reloads_address): Handle reg+d address where both
17795 components are invalid by reloading the entire address.
17796
9dac82c4
SP
177972011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17798 Richard Guenther <rguenther@suse.de>
17799
17800 PR tree-optimization/40979
17801 PR bootstrap/47044
17802 * passes.c (init_optimization_passes): After LIM call copy_prop
17803 and DCE to clean up.
17804 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17805
14dd9aab
SP
178062011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17807
17808 PR tree-optimization/47576
17809 PR tree-optimization/47555
17810 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17811 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17812 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17813 * tree-scalar-evolution.c (follow_ssa_edge): Use
17814 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17815
5cbf5c20
RG
178162011-02-02 Richard Guenther <rguenther@suse.de>
17817
17818 PR tree-optimization/47566
17819 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17820
83d70792
AO
178212011-02-02 Alexandre Oliva <aoliva@redhat.com>
17822
e829c321
AO
17823 PR debug/47106
17824 PR debug/47402
17825 * tree-inline.c (declare_return_variable): Remove unused caller
17826 variable.
17827
83d70792
AO
17828 PR debug/47106
17829 PR debug/47402
17830 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17831 * cfgexpand.c (account_used_vars_for_block): Use them.
17832 * tree-nrv.c (tree_nrv): Likewise.
17833 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17834 (dump_scope_block): Likewise.
17835 (remove_unused_locals): Likewise.
17836
aaa2ac93
AO
17837 PR debug/47106
17838 PR debug/47402
17839 * tree-inline.c (declare_return_variable): Add result decl to
17840 local decls only once.
17841 * gimple-low.c (record_vars_into): Mark newly-created variables
17842 as referenced.
17843
a59d15cf
AO
178442011-02-02 Alexandre Oliva <aoliva@redhat.com>
17845
17846 PR debug/47498
17847 PR debug/47501
17848 PR debug/45136
17849 PR debug/45130
17850 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17851 debug insns.
17852 (no_real_insns_p, schedule_block, set_priorities): Drop special
17853 treatment of boundary debug insns.
38be4072 17854 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
17855 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17856 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17857 (BOUNDARY_DEBUG_INSN_P): Likewise.
17858 (SCHEDULE_DEBUG_INSN_P): Likewise.
17859 * sched-rgn.c (init_ready_list): Drop special treatment of
17860 boundary debug insns.
17861 * final.c (rest_of_clean_state): Clear notes' BB.
17862
6fc2f091
JM
178632011-02-01 Joseph Myers <joseph@codesourcery.com>
17864
17865 * config/openbsd.opt (assert=): New Driver option.
17866
fc523387
JM
178672011-02-01 Joseph Myers <joseph@codesourcery.com>
17868
17869 * config/i386/nto.opt: New.
17870 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17871
6d9821e5
JM
178722011-02-01 Joseph Myers <joseph@codesourcery.com>
17873
17874 * config/i386/netware.opt: New.
17875 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17876
cef932d4
JM
178772011-02-01 Joseph Myers <joseph@codesourcery.com>
17878
17879 * config/interix.opt (posix): New Driver option.
17880
22843acd
DD
178812011-02-01 DJ Delorie <dj@redhat.com>
17882
56490b74
DD
17883 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17884
22843acd
DD
17885 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17886 class for A0/A1.
17887
199c8f2f
SP
178882011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17889
17890 PR tree-optimization/47561
17891 * toplev.c (process_options): Print the Graphite flags. Add
17892 flag_loop_flatten to the list of options requiring Graphite.
17893
926bcf22
JM
178942011-02-01 Joseph Myers <joseph@codesourcery.com>
17895
17896 * config/i386/cygming.opt (posix): New Driver option.
17897
59793c51
JM
178982011-02-01 Joseph Myers <joseph@codesourcery.com>
17899
17900 * config/arm/vxworks.opt: New.
17901 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17902
183c38a4
JM
179032011-02-01 Joseph Myers <joseph@codesourcery.com>
17904
17905 * config/alpha/elf.opt: New.
17906 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17907 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17908
9939e416
RG
179092011-02-01 Richard Guenther <rguenther@suse.de>
17910
17911 PR tree-optimization/47559
17912 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17913 store-motion on references that can throw.
17914
4a3c9687
BS
179152011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17916
17917 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17918 * tree-pass.h (TDF_CSELIB): New macro.
17919 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17920 cselib_lookup): Check for it rather than for TDF_DETAILS.
17921
dd3b31fb
L
179222011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17923
17924 PR driver/47547
17925 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17926 is HOST_BIT_BUCKET.
17927
17928 * opts.c (finish_options): Don't add x_aux_base_name if it is
17929 HOST_BIT_BUCKET.
17930
34c1de79
RG
179312011-02-01 Richard Guenther <rguenther@suse.de>
17932
17933 PR tree-optimization/47555
17934 Revert
17935 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17936
17937 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17938
dd2804d2
SB
179392011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17940
17941 PR gcc/46692
17942 * config/lm32/t-lm32: Add multilib for all CPU options.
17943
3fd3b156
RG
179442011-02-01 Richard Guenther <rguenther@suse.de>
17945
17946 PR tree-optimization/47541
17947 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17948 sure to have a field at offset zero.
17949
f16072b6
JM
179502011-01-31 Joseph Myers <joseph@codesourcery.com>
17951
17952 * config/arc/arc.opt (EB, EL): New Driver options.
17953
6456cf2e
JM
179542011-01-31 Joseph Myers <joseph@codesourcery.com>
17955
17956 * config/alpha/osf5.opt: New.
17957 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17958
cdde6ab4
JM
179592011-01-31 Joseph Myers <joseph@codesourcery.com>
17960
17961 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17962
7633415c
SP
179632011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17964
17965 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17966 -floop-interchange.
17967 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17968 is an alias of -floop-interchange and that it requires the
17969 Graphite infrastructure.
17970 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17971 flag_loop_interchange based on the value of flag_tree_loop_linear.
17972
0425d6f5
JJ
179732011-01-31 Jakub Jelinek <jakub@redhat.com>
17974 Richard Guenther <rguenther@suse.de>
17975
17976 PR tree-optimization/47538
17977 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17978 type instead of r1type, except for comparisons. For right
17979 shifts and comparisons punt if there are mismatches in
17980 sizetype vs. non-sizetype types.
17981
500b16c3
RO
179822011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17983
17984 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17985 avx_runtime.
17986
e279edb0
RO
179872011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17988
17989 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17990 version number.
17991 * configure: Regenerate.
17992
c6092243
RO
179932011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17994
17995 * configure.ac (gcc_cv_ld_static_option): Define.
17996 (gcc_cv_ld_dynamic_option): Define.
17997 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17998 instead.
17999 (HAVE_LD_STATIC_DYNAMIC): Update message.
18000 (LD_STATIC_OPTION): Define.
18001 (LD_DYNAMIC_OPTION): Define.
18002 * configure: Regenerate.
18003 * config.in: Regenerate.
18004 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18005 HAVE_LD_STATIC_DYNAMIC]: Use them.
18006
d7862be3
NC
180072011-01-31 Nick Clifton <nickc@redhat.com>
18008
18009 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18010 registers inside interrupt handlers if the handler is not a leaf
18011 function.
18012
ba4ec0e0
NC
180132011-01-31 Nick Clifton <nickc@redhat.com>
18014
18015 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18016 reg_renumber returning an INVALID_REGNUM.
18017
29a63921
AO
180182011-01-31 Alexandre Oliva <aoliva@redhat.com>
18019
18020 PR libgcj/44341
18021 * doc/install.texi: Document host options discarded when cross
18022 configuring target libraries.
18023
ef591d3f
AO
180242011-01-31 Alexandre Oliva <aoliva@redhat.com>
18025
18026 Reverted:
18027 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18028 PR debug/45136
18029 PR debug/45130
18030 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18031 debug insns.
18032 (no_real_insns_p, schedule_block, set_priorities): Drop special
18033 treatment of boundary debug insns.
38be4072 18034 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
18035 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18036 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18037 (BOUNDARY_DEBUG_INSN_P): Likewise.
18038 (SCHEDULE_DEBUG_INSN_P): Likewise.
18039 * sched-rgn.c (init_ready_list): Drop special treatment of
18040 boundary debug insns.
18041 * final.c (rest_of_clean-state): Clear notes' BB.
18042
61052244
AM
180432011-01-31 Alan Modra <amodra@gmail.com>
18044
18045 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18046 toc relative expressions as we do in print_operand_address.
18047
c4c8962b
KH
180482011-01-30 Kazu Hirata <kazu@codesourcery.com>
18049
18050 * doc/extend.texi: Follow spelling conventions.
18051 * doc/invoke.texi: Fix a typo.
18052
e543b94c
JM
180532011-01-30 Joseph Myers <joseph@codesourcery.com>
18054
18055 * config/hpux11.opt: New.
18056 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18057 ia64*-*-hpux*): Use hpux11.opt.
18058
509d65dd 180592011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
18060
18061 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18062 to tmake_file.
18063
7be03a0e
GP
180642011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18065
18066 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18067 support sites.
18068
419d1d37
GP
180692011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18070
b596ed64
GP
18071 * doc/install.texi (Binaries): Remove outdated reference for
18072 Motorola 68HC11/68HC12 downloads.
18073
180742011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 18075
419d1d37
GP
18076 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18077 Drepper's paper.
18078
4406d0e9
JW
180792011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18080
18081 PR bootstrap/47147
18082 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18083 used by NetBSD.
18084
38be4072 180852011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
18086
18087 * value-prof.c (check_counter): Corrected error message.
18088
0cd98787
JZ
180892011-01-29 Jie Zhang <jie@codesourcery.com>
18090
18091 * config/arm/arm.c (arm_legitimize_reload_address): New.
18092 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18093 arm_legitimize_reload_address.
38be4072 18094 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 18095
9b798ac5
ILT
180962011-01-28 Ian Lance Taylor <iant@google.com>
18097
18098 * godump.c (go_define): Ignore macros whose definitions include
18099 two adjacent operands.
18100
591e29d9
JJ
181012011-01-28 Jakub Jelinek <jakub@redhat.com>
18102
18103 PR target/42894
18104 * varasm.c (force_const_mem): Store copy of x in desc->constant
18105 instead of x itself.
18106 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18107 itself into REG_EQUAL note.
18108
62dcc44a
JM
181092011-01-28 Joseph Myers <joseph@codesourcery.com>
18110
18111 * config/freebsd.opt (posix, rdynamic): New Driver options.
18112
c9f58b9a
RO
181132011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18114
18115 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18116 -Bstatic/-Bdynamic.
18117 * configure: Regenerate.
18118
5f02b9db
JM
181192011-01-27 Joseph Myers <joseph@codesourcery.com>
18120
18121 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18122 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18123
5df97412
AS
181242011-01-27 Anatoly Sokolov <aesok@post.ru>
18125
18126 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18127 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18128 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18129 (s390_preferred_reload_class): Make static. Change return and
18130 'rclass' argument type to reg_class_t.
18131
779d4b91
JH
181322011-01-27 Jan Hubicka <jh@suse.cz>
18133
18134 PR middle-end/46949
18135 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18136 (process_function_and_variable_attributes): Check defined weakrefs.
18137
e80b21ed
MJ
181382011-01-27 Martin Jambor <mjambor@suse.cz>
18139
18140 PR tree-optimization/47228
18141 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18142 build_ref_for_offset.
18143
6dcc4f31
UW
181442011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18145
18146 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18147
509d65dd 181482011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
18149
18150 PR rtl-optimization/46856
18151 * postreload.c (reload_combine_recognize_const_pattern): Do not
18152 separate cc0 setter and user on cc0 targets.
18153
04af8788
NP
181542011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18155
18156 PR c/43082
18157 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18158 passed a VOID_TYPE expression, immediately emit an error and
18159 return error_mark_node.
18160
f7a60085
JL
181612011-01-26 Jeff Law <law@redhat.com>
18162
18163 PR rtl-optimization/47464
18164 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18165 rather than may_trap_p as needed.
18166
5c2917ec
DD
181672011-01-26 DJ Delorie <dj@redhat.com>
18168
18169 PR rtl-optimization/46878
18170 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18171 setter/user dependency as well.
18172
bef16e87
EB
181732011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18174
18175 PR rtl-optimization/44469
18176 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18177 after removing trivially dead basic blocks.
18178
c75d884b
JM
181792011-01-26 Joseph Myers <joseph@codesourcery.com>
18180
18181 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18182 * config/frv/frv.h (LINK_SPEC): Likewise.
18183 * config/i386/netware.h (LINK_SPEC): Likewise.
18184 * config/m68k/linux.h (ASM_SPEC): Likewise.
18185 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18186 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18187 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18188 * config/sparc/linux.h (ASM_SPEC): Likewise.
18189 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18190 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18191
d3153553
JM
181922011-01-26 Joseph Myers <joseph@codesourcery.com>
18193
18194 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18195 * config/frv/frv.h (ASM_SPEC): Likewise.
18196 * config/m68k/linux.h (ASM_SPEC): Likewise.
18197 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18198 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18199 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18200 * config/sparc/linux.h (ASM_SPEC): Likewise.
18201 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18202 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18203
b89b1e9d
JM
182042011-01-26 Joseph Myers <joseph@codesourcery.com>
18205
18206 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18207 * config/frv/frv.h (LINK_SPEC): Likewise.
18208 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18209
12eb1a9c
JM
182102011-01-26 Joseph Myers <joseph@codesourcery.com>
18211
18212 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18213 * config/frv/frv.h (ASM_SPEC): Likewise.
18214 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18215 * config/m68k/linux.h (ASM_SPEC): Likewise.
18216 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18217 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18218 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18219 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18220 * config/sparc/linux.h (ASM_SPEC): Likewise.
18221 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18222 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18223 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18224
e435f098
SE
182252011-01-26 Steve Ellcey <sje@cup.hp.com>
18226
18227 PR target/46997
18228 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18229 (*mux2): Ditto.
18230 (vec_extract_evenodd_help): Ditto.
18231 (vec_extract_evenv4hi): Ditto.
18232 (vec_extract_oddv4hi): Ditto.
18233 (vec_interleave_lowv2si): Ditto.
18234 (vec_interleave_highv2si): Ditto.
18235 (vec_extract_evenv2si): Ditto.
18236 (vec_extract_oddv2si: Ditto.
18237 (vec_pack_trunc_v2si): Ditto.
18238
34f0eee0
JH
182392011-01-22 Jan Hubicka <jh@suse.cz>
18240
18241 PR target/47237
18242 * cgraph.h (cgraph_local_info): New field can_change_signature.
18243 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18244 signature can change.
18245 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18246 can change.
18247 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18248 (cgraph_function_versioning): We can not change signature of functions
18249 that don't allow that.
18250 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18251 (lto_input_node): Likewise.
38be4072
UB
18252 * ipa-inline.c (compute_inline_parameters): Compute
18253 local.can_change_signature.
34f0eee0 18254 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
18255 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18256 functions that can not change signature.
34f0eee0 18257 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
18258 init_cumulative_args): Do not use local calling conventions
18259 for functions that can not change signature.
34f0eee0 18260
980ca891
JH
182612011-01-22 Jan Hubicka <jh@suse.cz>
18262
18263 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18264
768e3c60
RG
182652011-01-26 Richard Guenther <rguenther@suse.de>
18266
18267 PR tree-optimization/47190
61052244
AM
18268 * cgraphunit.c (process_common_attributes): New function.
18269 (process_function_and_variable_attributes): Use it.
768e3c60 18270
21d6a1c7
RG
182712011-01-26 Richard Guenther <rguenther@suse.de>
18272
18273 PR lto/47423
18274 * cgraphbuild.c (record_eh_tables): Record reference to personality
18275 function.
18276
48bb58b1
AO
182772011-01-26 Alexandre Oliva <aoliva@redhat.com>
18278
18279 PR debug/45454
18280 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18281 non-debug insns from moving up.
18282
58c741a6
DK
182832011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18284
18285 PR target/40125
18286 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18287 t-dlldir{,-x} fragment for build and add it to tmake_file.
18288 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18289 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18290 * config/i386/t-dlldir: New file.
18291 (SHLIB_DLLDIR): Define.
18292 * config/i386/t-dlldir-x: New file.
18293 (SHLIB_DLLDIR): Define.
18294 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18295 (SHLIB_INSTALL): Use it.
18296
bff99262
CLT
182972011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18298
18299 PR target/47246
18300 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18301 lower bound of the allowed Thumb-2 coprocessor load/store
18302 index range to -256. Add explaining comment.
18303
82c03907
ILT
183042011-01-25 Ian Lance Taylor <iant@google.com>
18305
18306 * godump.c (go_define): Improve lexing of macro expansion to only
18307 accept expressions which match Go spec.
18308
47ea1edf
DK
183092011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18310
d4dba752 18311 PR c++/43601
47ea1edf
DK
18312 * tree.c (handle_dll_attribute): Handle it.
18313 * doc/extend.texi (@item dllexport): Mention it.
18314 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18315
744f0946
ILT
183162011-01-25 Ian Lance Taylor <iant@google.com>
18317
18318 PR tree-optimization/26854
18319 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18320 (decl_jump_unsafe): Move higher in file, with no other change.
18321 (bind): Set has_jump_unsafe_decl if appropriate.
18322 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18323 (check_earlier_gotos): Likewise.
18324 (c_check_switch_jump_warnings): Likewise.
18325
5734f2b3
JW
183262011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18327
18328 * doc/invoke.texi (Warning Options): Add missing hyphen.
18329 (-fprofile-dir): Minor grammatical fixes.
18330 (-fbranch-probabilities): Likewise.
18331
9bdbdcef
AO
183322011-01-25 Alexandre Oliva <aoliva@redhat.com>
18333
18334 PR debug/45136
18335 PR debug/45130
18336 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18337 debug insns.
18338 (no_real_insns_p, schedule_block, set_priorities): Drop special
18339 treatment of boundary debug insns.
38be4072 18340 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
18341 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18342 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18343 (BOUNDARY_DEBUG_INSN_P): Likewise.
18344 (SCHEDULE_DEBUG_INSN_P): Likewise.
18345 * sched-rgn.c (init_ready_list): Drop special treatment of
18346 boundary debug insns.
18347 * final.c (rest_of_clean-state): Clear notes' BB.
18348
b305e3da
SP
183492011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18350
18351 * Makefile.in (LAMBDA_H): Removed.
18352 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18353 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18354 lambda-trans.o, and tree-loop-linear.o.
18355 (lto-symtab.o): Remove dependence on LAMBDA_H.
18356 (tree-loop-linear.o): Remove rule.
18357 (lambda-mat.o): Same.
18358 (lambda-trans.o): Same.
18359 (lambda-code.o): Same.
18360 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18361 (tree-vect-slp.o): Same.
18362 * hwint.h (gcd): Moved here.
18363 (least_common_multiple): Same.
18364 * lambda-code.c: Removed.
18365 * lambda-mat.c: Removed.
18366 * lambda-trans.c: Removed.
18367 * lambda.h: Removed.
18368 * tree-loop-linear.c: Removed.
18369 * lto-symtab.c: Do not include lambda.h.
18370 * omega.c (gcd): Removed.
18371 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18372 * tree-data-ref.c (print_lambda_vector): Moved here.
18373 (lambda_vector_copy): Same.
18374 (lambda_matrix_copy): Same.
18375 (lambda_matrix_id): Same.
18376 (lambda_vector_first_nz): Same.
18377 (lambda_matrix_row_add): Same.
18378 (lambda_matrix_row_exchange): Same.
18379 (lambda_vector_mult_const): Same.
18380 (lambda_vector_negate): Same.
18381 (lambda_matrix_row_negate): Same.
18382 (lambda_vector_equal): Same.
18383 (lambda_matrix_right_hermite): Same.
18384 * tree-data-ref.h: Do not include lambda.h.
18385 (lambda_vector): Moved here.
18386 (lambda_matrix): Same.
18387 (dependence_level): Same.
18388 (lambda_transform_legal_p): Removed declaration.
18389 (lambda_collect_parameters): Same.
18390 (lambda_compute_access_matrices): Same.
18391 (lambda_vector_gcd): Same.
18392 (lambda_vector_new): Same.
18393 (lambda_vector_clear): Same.
18394 (lambda_vector_lexico_pos): Same.
18395 (lambda_vector_zerop): Same.
18396 (lambda_matrix_new): Same.
18397 * tree-flow.h (least_common_multiple): Removed declaration.
18398 * tree-parloops.c (lambda_trans_matrix): Moved here.
18399 (LTM_MATRIX): Same.
18400 (LTM_ROWSIZE): Same.
18401 (LTM_COLSIZE): Same.
18402 (LTM_DENOMINATOR): Same.
18403 (lambda_trans_matrix_new): Same.
18404 (lambda_matrix_vector_mult): Same.
18405 (lambda_transform_legal_p): Same.
18406 * tree-pass.h (pass_linear_transform): Removed declaration.
18407 * tree-ssa-loop.c (tree_linear_transform): Removed.
18408 (gate_tree_linear_transform): Removed.
18409 (pass_linear_transform): Removed.
18410 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18411 flag_loop_interchange.
18412
6bdfdb96
JJ
184132011-01-25 Jakub Jelinek <jakub@redhat.com>
18414
18415 PR tree-optimization/47265
18416 PR tree-optimization/47443
18417 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18418 if name still has some uses.
18419
e4cba915
MJ
184202011-01-25 Martin Jambor <mjambor@suse.cz>
18421
18422 PR tree-optimization/47382
18423 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18424 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18425
509d65dd 184262011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
18427
18428 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18429 sjlj_except_unwind_info.
18430
194313e2
RG
184312011-01-25 Richard Guenther <rguenther@suse.de>
18432
18433 PR tree-optimization/47426
18434 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18435 visible functions results escape.
18436
147a0bcf
JJ
184372011-01-25 Jakub Jelinek <jakub@redhat.com>
18438
18439 PR target/45701
18440 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18441 (arm_get_frame_offsets): Use it.
18442
db963b52
SP
184432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18444 Jakub Jelinek <jakub@redhat.com>
18445
18446 PR tree-optimization/47271
18447 * tree-if-conv.c (bb_postdominates_preds): New.
18448 (if_convertible_bb_p): Call bb_postdominates_preds.
18449 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18450 (predicate_scalar_phi): Call bb_postdominates_preds.
18451
bcddd3b9
NC
184522011-01-25 Nick Clifton <nickc@redhat.com>
18453
18454 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18455 * config/rx/rx.c (rx_function_value): Likewise.
18456 (rx_promote_function_mode): Likewise.
18457 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18458 in order to make it legitimate.
38be4072
UB
18459 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18460 make sure that the first operand is the same as the result register.
bcddd3b9
NC
18461 (addsi3_unspec): Delete.
18462 (subdi3): Do not accept immediate operands.
18463 (subdi3_internal): Likewise.
18464
7e6cb022
JL
184652011-01-25 Jeff Law <law@redhat.com>
18466
18467 PR rtl-optimization/37273
18468 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18469 handle them like argument loads from stack slots. Do not double
18470 count memory for memory constants and argument loads from stack slots.
18471
9ffa621e
JJ
184722011-01-25 Jakub Jelinek <jakub@redhat.com>
18473
18474 PR tree-optimization/47427
18475 PR tree-optimization/47428
18476 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18477 coalesce if the new root var would be TREE_READONLY.
18478
5bd6e652
RG
184792011-01-25 Richard Guenther <rguenther@suse.de>
18480
18481 PR middle-end/47414
18482 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18483 correct type for TBAA.
18484
7c48ea69
SP
184852011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18486
18487 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18488 (close_phi_written_to_memory): Call for_each_index with
18489 dr_indices_valid_in_loop.
18490
38013f25
SP
184912011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18492
18493 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18494 when it is initialized.
18495
5c640e29
SP
184962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18497
18498 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18499 call to graphite_find_data_references_in_stmt.
18500 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18501 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18502 call to graphite_find_data_references_in_stmt.
18503 (analyze_drs_in_stmts): Same.
18504 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18505 in which the scalar analysis of indices is performed.
18506 (create_data_ref): Same. Update call to dr_analyze_indices.
18507 (find_data_references_in_stmt): Update call to create_data_ref.
18508 (graphite_find_data_references_in_stmt): Same.
18509 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18510 declaration.
18511 (create_data_ref): Same.
18512 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18513 call to create_data_ref.
18514
ac53c069
SP
185152011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18516
18517 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 18518 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 18519
3d17df15
SP
185202011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18521
18522 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18523 VAR_DECL, PARM_DECL, and RESULT_DECL.
18524
c513da01
SP
185252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18526
18527 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18528 in a reduction PBB.
18529 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18530 that have already been marked as PBB_IS_REDUCTION.
18531
3a292d59
SP
185322011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18533
18534 * graphite-scop-detection.c (same_close_phi_node): New.
18535 (remove_duplicate_close_phi): New.
18536 (make_close_phi_nodes_unique): New.
18537 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18538
ba858447
SP
185392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18540
18541 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18542 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18543 of both data references to be the same.
18544
8d865c56
SP
185452011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18546
38be4072
UB
18547 * graphite-dependences.c (build_lexicographical_constraint): Remove
18548 the gdim parameter.
18549 (build_lexicographical_constraint): Adjust call to
18550 ppl_powerset_is_empty.
8d865c56
SP
18551 (dependence_polyhedron): Same.
18552 (graphite_legal_transform_dr): Same.
18553 (graphite_carried_dependence_level_k): Same.
38be4072
UB
18554 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18555 parameter.
8d865c56
SP
18556 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18557
50034a36
SP
185582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18559
18560 * graphite-sese-to-poly.c
18561 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18562 (close_phi_written_to_memory): New.
18563 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18564 and unshare_expr.
18565
0deada9e
SP
185662011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18567
18568 * doc/install.texi: Update the expected version number of PPL to 0.11.
18569 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18570 #if PPL_VERSION_MINOR < 11.
18571
d7d3d6af
SP
185722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18573
18574 * graphite-dependences.c: Include graphite-cloog-util.h.
18575 (new_poly_ddr): Inlined into dependence_polyhedron.
18576 (free_poly_ddr): Moved close by new_poly_ddr.
18577 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18578 Early return NULL when ppl_powerset_is_empty returns true.
18579 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18580 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18581 (graphite_legal_transform_dr): Call new_poly_ddr.
18582 (graphite_carried_dependence_level_k): Same.
18583 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18584 (dot_transformed_deps_stmt_1): Removed.
18585 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18586 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18587 (dot_deps_1): Call dot_deps_2.
18588 * Makefile.in (graphite-dependences.o): Add missing dependence on
18589 graphite-cloog-util.h.
18590
28c5db57
SP
185912011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18592
18593 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18594 (build_lexicographical_constraint): Same.
18595 (dependence_polyhedron_1): Same.
18596 (graphite_legal_transform_dr): Same.
18597 (graphite_carried_dependence_level_k): Same.
18598 * graphite-ppl.c (ppl_powerset_is_empty): New.
18599 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18600 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18601
5168d98f
SP
186022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18603
18604 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18605 the "a followed by b" relation and document it.
18606
4a40293a
SP
186072011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18608
18609 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18610 iteration when the bag of constraints is empty.
18611
271fb6fa
SP
186122011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18613
18614 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18615
92d23680
SP
186162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18617
18618 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18619 nest and two loop depths as parameters.
18620 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18621 lst_perfect_nestify.
18622
2f51deff
SP
186232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18624
18625 * graphite-dependences.c (print_pddr): Call
18626 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18627
07f3593c
SP
186282011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18629
18630 * graphite-ppl.c (debug_gmp_value): New.
18631 * graphite-ppl.h (debug_gmp_value): Declared.
18632
3fae6099
TG
186332011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18634
18635 * doc/install.texi: Document availability of cloog-0.16.
18636
1c3ba85b
SP
186372011-01-25 Vladimir Kargov <kargov@gmail.com>
18638
18639 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18640 invalid postdominance info.
18641
e8ba94fc
JH
186422011-01-24 Jan Hubicka <jh@suse.cz>
18643
18644 PR c/21659
18645 * doc/extend.texi (weak pragma): Drop claim that it must
18646 appear before definition.
18647 * varasm.c (merge_weak, declare_weak): Only sanity check
18648 that DECL is not output at a time it is declared weak.
18649
2b6e2d13
KZ
186502011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18651
18652 * machmode.def: Fixed comments.
1c3ba85b 18653
9841210f
KT
186542011-01-24 Kai Tietz <kai.tietz@onevision.com>
18655
18656 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18657
186582011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
18659
18660 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 18661 WORDS_BIG_ENDIAN.
e046112d 18662
a6c5070a
L
186632011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18664
18665 PR target/46519
18666 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18667 (block_info): Add scanned and prev.
18668 (move_or_delete_vzeroupper_2): Return if the basic block
18669 has been scanned and the upper 128bit state is unchanged
18670 from the last scan.
18671 (move_or_delete_vzeroupper_1): Return true if the exit
18672 state is changed.
18673 (move_or_delete_vzeroupper): Visit basic blocks using the
18674 work-list based algorithm based on vt_find_locations in
18675 var-tracking.c.
18676
18677 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18678
a40d79d7
NC
186792011-01-24 Nick Clifton <nickc@redhat.com>
18680
18681 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18682 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18683 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18684 then define __v850e1__.
18685 * doc/invoke.texi: Document -mv850es.
18686
440eb8de
RH
186872011-01-24 Richard Henderson <rth@redhat.com>
18688
18689 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18690 compound unordered comparisons.
18691 * config/rx/rx.c (rx_split_fp_compare): Remove.
18692 * config/rx/rx-protos.h: Update.
18693 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18694 (cbranchsf4): Don't call rx_split_fp_compare.
18695 (*cbranchsf4): Use rx_split_cbranch.
18696 (*cmpsf): Don't accept "i" constraint.
18697 (*conditional_branch): Only valid after reload.
18698 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18699
3ff79f99
MM
187002011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18701
18702 PR target/47385
18703 * config/rs6000/altivec.md (vector constant splitters): Add
18704 support for creating vector single precision constants if -mvsx is
18705 used and we would create the constant using Altivec primitives.
18706
ff3d9d08
BS
187072011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18708 Richard Sandiford <rdsandiford@googlemail.com>
18709
18710 PR rtl-optimization/47166
18711 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18712 mechanism for PRE_MODIFY and POST_MODIFY.
18713 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18714 reloadreg.
18715
7fcaf152
AS
187162011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18717
8788adb6 18718 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 18719
d09b58c4
JH
187202011-01-22 Jan Hubicka <jh@suse.cz>
18721
18722 PR lto/47333
18723 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18724
e8ff8c5a
JH
187252011-01-22 Jan Hubicka <jh@suse.cz>
18726
18727 PR tree-optimization/43884
18728 PR lto/44334
8788adb6 18729 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
18730 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18731
ccaed3ba
AS
187322011-01-22 Anatoly Sokolov <aesok@post.ru>
18733
18734 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18735 * config/s390/s390.c (s390_register_move_cost,
18736 s390_memory_move_cost): New.
18737 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18738
0cecee06
UW
187392011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18740
18741 PR middle-end/47401
18742 * except.c (sjlj_assign_call_site_values): Move setting the
18743 crtl->uses_eh_lsda flag to ...
18744 (sjlj_mark_call_sites): ... here.
18745 (sjlj_emit_function_enter): Support NULL dispatch label.
18746 (sjlj_build_landing_pads): In a function with no landing pads
18747 that still has must-not-throw regions, generate code to register
18748 a personality function with empty LSDA.
18749
e692f276
RH
187502011-01-21 Richard Henderson <rth@redhat.com>
18751
1b7ae0b7
RH
18752 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18753
3843787f
RH
18754 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18755
e692f276
RH
18756 * compare-elim.c: New file.
18757 * Makefile.in (OBJS-common): Add it.
18758 (compare-elim.o): New.
18759 * common.opt (fcompare-elim): New.
18760 * opts.c (default_options_table): Add OPT_fcompare_elim.
18761 * tree-pass.h (pass_compare_elim_after_reload): New.
18762 * passes.c (init_optimization_passes): Add it.
18763 * recog.h: Protect against re-inclusion.
18764 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18765 * doc/invoke.texi (-fcompare-elim): Document it.
18766 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18767 * doc/tm.texi: Rebuild.
18768
9a7c2050
NC
187692011-01-22 Nick Clifton <nickc@redhat.com>
18770
18771 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18772 rx_split_fp_compare.
18773
15ba5696
NC
187742011-01-22 Nick Clifton <nickc@redhat.com>
18775
18776 * config/rx/rx.md (UNSPEC_CONST): New.
18777 (deallocate_and_return): Wrap the amount popped off the stack in
18778 an UNSPEC_CONST in order to stop it being rejected by
18779 -mmax-constant-size.
18780 (pop_and_return): Add a "(return)" rtx.
18781 (call): Drop the immediate operand.
18782 (call_internal): Likewise.
18783 (call_value): Likewise.
18784 (call_value_internal): Likewise.
18785 (sibcall_internal): Likewise.
18786 (sibcall_value_internal): Likewise.
18787 (sibcall): Likewise. Generate an explicit call using
18788 sibcall_internal.
18789 (sibcall_value): Likewise.
18790 (mov<>): FAIL if a constant operand is not legitimate.
18791 (addsi3_unpsec): New pattern.
9a7c2050 18792
38be4072 18793 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
18794 (ok_for_max_constant): New function.
18795 (gen_safe_add): New function.
18796 (rx_expand_prologue): Use gen_safe_add.
18797 (rx_expand_epilogue): Likewise.
18798 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18799 UNSPEC CONSTs.
18800
caaf13d3
JL
188012011-01-21 Jeff Law <law@redhat.com>
18802
18803 PR tree-optimization/47053
18804 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18805 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18806 statements are deleted.
18807 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18808 is nonempty, then purge dead edges and cleanup the CFG.
18809
12c30f2f
AO
188102011-01-21 Alexandre Oliva <aoliva@redhat.com>
18811
18812 PR debug/47402
18813 Temporarily revert:
18814 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18815 PR debug/47106
18816 * tree-dfa.c (create_var_ann): Mark variable as used.
18817
7360d2ac
JJ
188182011-01-21 Jakub Jelinek <jakub@redhat.com>
18819
aaa52a96
JJ
18820 PR middle-end/45566
18821 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18822 notes from other section in hot/cold partitioning even if
18823 last_action is -3. Increment call_site_base.
18824
7360d2ac
JJ
18825 PR rtl-optimization/47366
18826 * fwprop.c (forward_propagate_into): Return bool. If
18827 any changes are made, -fnon-call-exceptions is used and
18828 REG_EH_REGION note is present, call purge_dead_edges
18829 and return true if it purged anything.
18830 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18831 any EH edges were purged.
18832
e90b336f
JL
188332011-01-21 Jeff Law <law@redhat.com>
18834
18835 PR rtl-optimization/41619
18836 * caller-save.c (setup_save_areas): Break out code to determine
18837 which hard regs are live across calls by examining the reload chains
18838 so that it is always used.
18839 Eliminate code which checked REG_N_CALLS_CROSSED.
18840
3ffe07e1
JJ
188412011-01-21 Jakub Jelinek <jakub@redhat.com>
18842
18843 PR tree-optimization/47355
18844 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18845 NOP has non-debug uses beyond PHIs in new_bb.
18846
1c7d0b34
AO
188472011-01-21 Alexandre Oliva <aoliva@redhat.com>
18848
18849 PR debug/47106
18850 * cfgexpand.c (account_used_vars_for_block): Only account vars
18851 that are annotated as used.
18852 (estimated_stack_frame_size): Don't set TREE_USED.
18853 * tree-dfa.c (create_var_ann): Mark variable as used.
18854
f99cc488
RG
188552011-01-21 Richard Guenther <rguenther@suse.de>
18856
18857 PR middle-end/47395
18858 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18859
3bc27de7
RG
188602011-01-21 Richard Guenther <rguenther@suse.de>
18861
18862 PR tree-optimization/47365
18863 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18864 (vn_reference_lookup_pieces): Adjust.
18865 (vn_reference_lookup): Likewise.
18866 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18867 (vn_reference_lookup_3): Only look through kills if in
18868 VN_WALKREWRITE mode.
18869 (vn_reference_lookup_pieces): Adjust.
18870 (vn_reference_lookup): Likewise.
18871 (visit_reference_op_load): Likewise.
18872 (visit_reference_op_store): Likewise.
18873 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18874 (compute_avail): Likewise.
18875 (eliminate): Likewise.
18876
d8debb1d
JJ
188772011-01-21 Jakub Jelinek <jakub@redhat.com>
18878
18879 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18880 DECL_IGNORED_P non-reg vars if they are used.
18881
3a2df831
JJ
18882 PR tree-optimization/47391
18883 * varpool.c (const_value_known_p): Return false if
18884 decl is volatile.
18885
1dd584a2
KT
188862011-01-21 Kai Tietz <kai.tietz@onevision.com>
18887
18888 PR bootstrap/47215
18889 * config/i386/i386.c (ix86_local_alignment): Handle
18890 case for va_list_type_node is nil.
18891 (ix86_canonical_va_list_type): Likewise.
18892
7f9f095e
AM
188932011-01-21 Alan Modra <amodra@gmail.com>
18894
18895 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18896 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18897
837b01f6
RR
188982011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18899
18900 * config/arm/arm.md (define_attr type): Rename f_load
18901 and f_store to f_fpa_load and f_fpa_store. Update.
18902 (write_conflict): Deal with rename fallout.
18903 (*push_fp_multi): Likewise.
18904 * config/arm/fpa.md (f_load): Use f_fpa_load.
18905 (f_store): Use f_fpa_store.
18906 (*movsf_fpa): Likewise.
18907 (*movdf_fpa): Likewise.
18908 (*movxf_fpa): Likewise.
18909 (*thumb2_movsf_fpa): Likewise.
18910 (*thumb2_movdf_fpa): Likewise.
18911 (*thumb2_movxf_fpa): Likewise.
18912 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18913 f_loadd and f_stored.
18914 (*thumb2_movdi_vfp): Likewise.
18915 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18916 (*thumb2_movsi_vfp): Likewise.
18917 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18918 Use f_loads instead of f_load.
18919 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18920
a1a79768
AS
189212011-01-20 Anatoly Sokolov <aesok@post.ru>
18922
18923 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18924 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18925 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18926 (xtensa_mode_dependent_address_p): New function.
18927 (constantpool_address_p): Make static. Change return type to bool.
18928 Change argument type to const_rtx. Use CONST_INT_P predicate.
18929
427f6cec
AO
189302011-01-20 Alexandre Oliva <aoliva@redhat.com>
18931
18932 PR debug/46583
18933 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18934
583ac69c
JJ
189352011-01-20 Jakub Jelinek <jakub@redhat.com>
18936
18937 PR debug/47283
18938 * cfgexpand.c (expand_debug_expr): Instead of generating
18939 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18940 etc. handling.
18941
93e452ed
RG
189422011-01-20 Richard Guenther <rguenther@suse.de>
18943
18944 PR middle-end/47370
18945 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18946 the pointer operand of MEM_REFs.
18947
28fc44f3
JJ
189482011-01-20 Jakub Jelinek <jakub@redhat.com>
18949
18950 PR tree-optimization/46130
18951 * ipa-split.c (consider_split): If return_bb contains non-virtual
18952 PHIs other than for retval or if split_function would not adjust it,
18953 refuse to split.
18954
ddd268f2
RG
189552011-01-20 Richard Guenther <rguenther@suse.de>
18956
18957 PR tree-optimization/47167
18958 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18959 Revert previous change, only avoid enumeral type changes.
18960
882020aa
MS
189612011-01-19 Mike Stump <mikestump@comcast.net>
18962
18963 * doc/tm.texi.in (BRANCH_COST): Englishify.
18964 * doc/tm.texi (BRANCH_COST): Likewise.
18965
7edb6247
DS
189662011-01-19 Dodji Seketeli <dodji@redhat.com>
18967
18968 PR c++/47291
18969 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
18970 (gen_scheduled_generic_parms_dies): New functions.
18971 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18972 generation for the end of CU compilation.
18973 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 18974
23d5ed5d
AO
189752011-01-19 Alexandre Oliva <aoliva@redhat.com>
18976
18977 PR debug/46240
18978 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18979 debug bind stmt on merge edges.
18980
37d6a488
AO
189812011-01-19 Alexandre Oliva <aoliva@redhat.com>
18982
18983 PR debug/47079
18984 PR debug/46724
18985 * function.c (instantiate_expr): Instantiate incoming rtl of
18986 implicit arguments, and recurse on VALUE_EXPRs.
18987 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18988 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18989
689f2c82
AO
189902011-01-19 Alexandre Oliva <aoliva@redhat.com>
18991
18992 * c-parser.c (c_parser_for_statement): Initialize
18993 collection_expression.
18994
03029de4
JM
189952011-01-19 Joseph Myers <joseph@codesourcery.com>
18996
18997 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18998
3e03217e
JM
189992011-01-19 Joseph Myers <joseph@codesourcery.com>
19000
19001 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19002 (LINK_SHLIB_SPEC): Don't use %(link_path).
19003 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19004
5bbe9b3f
JM
190052011-01-19 Joseph Myers <joseph@codesourcery.com>
19006
19007 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19008 (NO_SHARED_LIB_SUPPORT): Remove.
19009 (LINK_SHLIB_SPEC): Remove one conditional definition.
19010
368e0b39
JM
190112011-01-19 Joseph Myers <joseph@codesourcery.com>
19012
19013 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19014 %{call_shared}.
19015 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19016 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19017 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19018 %{call_shared} and conditionals on these options not being passed.
19019 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19020 %{call_shared}.
19021
ed7656f6
JJ
190222011-01-19 Jakub Jelinek <jakub@redhat.com>
19023
68457901
JJ
19024 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19025 simplify.
19026
ed7656f6
JJ
19027 * ipa-split.c: Spelling fixes.
19028
e0d1958f
RH
190292011-01-19 Richard Henderson <rth@redhat.com>
19030
19031 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19032 (*mulsi3): Likewise.
19033
27098b6b
RH
19034 * longlong.h [__mn10300__] (count_leading_zeros): New.
19035 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19036 [__mn10300__] (add_ssaaaa, subddmmss): New.
19037 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19038 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19039
d6be7c36
UW
190402011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19041
19042 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19043
b1efde2a
RH
190442011-01-19 Richard Henderson <rth@redhat.com>
19045
44217823
RH
19046 * config/mn10300/mn10300.md (addsi3_flags): New.
19047 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19048 (subsi3_flags, subc_internal, subdi3): New.
19049 (subdi3_internal, *subdi3_degenerate): New.
19050 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19051
37a185d7
RH
19052 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19053 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19054 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19055 * config/mn10300/mn10300-protos.h: Update.
19056 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19057 (return_ret): Likewise. Rename from return_internal_regs.
19058 (return_internal): Remove.
19059
040c5757
RH
19060 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19061 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19062 (mn10300_legitimate_constant_p): Likewise.
19063 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19064 (mn10300_frame_size): New.
19065 (mn10300_expand_prologue): Use it.
19066 (mn10300_expand_epilogue): Likewise.
19067 (mn10300_initial_offset): Likewise.
19068 * config/mn10300/mn10300-protos.h: Update.
19069 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19070 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19071 (prologue, epilogue, return_internal): Tidy output code.
19072 (mn10300_store_multiple_operation, return): Likewise.
19073 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19074 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19075 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19076 (load_pic, am33_load_pic): New.
19077 (mn10300_load_pic0, mn10300_load_pic1): New.
19078
bad41521
RH
19079 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19080 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19081 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19082 (cc_flags_for_mode, cc_flags_for_code): New.
19083 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19084 overflow flag is not valid. Validate that the flags we need
19085 for the comparison are valid.
19086 (mn10300_output_cmp): Remove.
19087 (mn10300_output_add): New.
19088 (mn10300_select_cc_mode): Use cc_flags_for_code.
19089 (mn10300_split_cbranch): New.
19090 (mn10300_match_ccmode): New.
19091 (mn10300_split_and_operand_count): New.
19092 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19093 to the function.
19094 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19095 (addsi3): ... here. Use mn10300_output_add.
19096 (*addsi3_flags): New.
19097 (*am33_subsi3, *mn10300_subsi3): Merge...
19098 (subsi3): ... here. Use attribute isa.
19099 (*subsi3_flags): New.
19100 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19101 when possible.
19102 (*am33_andsi3, *mn10300_andsi3): Merge...
19103 (andsi3): ... here.
19104 (*andsi3_flags): New.
19105 (andsi3 splitters): New.
19106 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19107 (iorsi3): ... here.
19108 (*iorsi3_flags): New.
19109 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19110 (xorsi3): ... here.
19111 (*xorsi3_flags): New.
19112 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19113 (one_cmplsi2): ... here.
19114 (*one_cmplsi2_flags): New.
19115 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19116 instead of "dax" in constraints. Use mn10300_split_cbranch.
19117 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19118 use matching constraints to eliminate a self-comparison.
19119 (*integer_conditional_branch): Rename from integer_conditional_branch.
19120 Use int_mode_flags to match CC_REG.
19121 (*cbranchsi4_btst, *btstsi): New.
19122 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19123 mn10300_split_cbranch.
19124 (*am33_cmpsf): Rename from am33_cmpsf.
19125 (*float_conditional_branch): Rename from float_conditional_branch.
19126 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19127 (zero_extendqisi2): ... here.
19128 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19129 (zero_extendhisi2): ... here.
19130 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19131 (extendqisi2): ... here.
19132 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19133 (extendhisi2): ... here.
19134 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19135 (ashlsi3): ... here.
19136 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19137 (lshrsi3): ... here.
19138 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19139 (ashrsi3): ... here.
19140 (consecutive add peephole): Remove.
19141 * config/mn10300/predicates.md (label_ref_operand): New.
19142 (int_mode_flags): New.
19143 (CCZN_comparison_operator): New.
19144
9efb4993
RH
19145 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19146 (throughput_42_latency_43): New reservation.
19147 (mulsidi3, umulsidi3): New expanders.
19148 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19149 the MDR register to allocation; separately allocate the low and
19150 high parts of the DImode result.
19151 (umulsidi3_internal): Similarly.
19152 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19153 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19154 (udivsi3, umodsi3): Remove.
19155 (udivmodsi4, divmodsi4): New expanders.
19156 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19157 (*divmodsi4): Simiarly.
19158 (ext_internal): New.
19159
c25a21f5
RH
19160 * config/mn10300/constraints.md ("z"): New constraint.
19161 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19162 (FIXED_REGISTERS): Don't fix MDR.
19163 (CALL_USED_REGSITERS): Reformat nicely.
19164 (REG_ALLOC_ORDER): Add MDR.
19165 (enum regclass): Add MDR_REGS.
19166 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19167 (IRA_COVER_CLASSES): Add MDR_REGS.
19168 (REGNO_REG_CLASS): Handle MDR_REG.
19169 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19170 (mn10300_register_move_cost): Likewise.
19171 * config/mn10300/mn10300.md (MDR_REG): New.
19172 (*movsi_internal): Handle moves to/from MDR_REGS.
19173
36846b26
RH
19174 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19175 POST_MODIFY.
19176 (mn10300_secondary_reload): Tidy combination reload classes.
19177 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19178 addresses for AM33. Allow symbolic offsets for reg+imm.
19179 (mn10300_regno_in_class_p): New.
19180 (mn10300_legitimize_reload_address): New.
19181 * config/mn10300/mn10300.h (enum reg_class): Remove
19182 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19183 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19184 SP_OR_GENERAL_REGS.
19185 (REG_CLASS_NAMES): Update to match.
19186 (REG_CLASS_CONTENTS): Likewise.
19187 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19188 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19189 (REGNO_IN_RANGE_P): Remove.
19190 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19191 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19192 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19193 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19194 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19195 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19196 (REGNO_GENERAL_P): New.
19197 (HAVE_POST_MODIFY_DISP): New.
19198 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19199 (LEGITIMIZE_RELOAD_ADDRESS): New.
19200 * config/mn10300/mn10300-protos.h: Update.
19201
8b119bb6
RH
19202 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19203 DATA_REGS for AM33 stack-pointer destination.
19204 (mn10300_preferred_output_reload_class): Likewise.
19205 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19206 into a form appropriate for ...
19207 (TARGET_SECONDARY_RELOAD): New.
19208 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19209 * config/mn10300/mn10300-protos.h: Update.
19210 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19211 reload_insi; use the "A" constraint for the scratch; handle AM33
19212 moves of sp to non-address registers.
19213
b1efde2a
RH
19214 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19215 (*movqi_internal): ... here.
19216 (*am33_movhi, *mn10300_movhi): Merge into...
19217 (*movhi_internal): ... here.
19218 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19219 as the source/destination of moves from/to SP.
19220 (movsf): Only allow for AM33-2.
1c3ba85b 19221 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
19222 any integer constant constraint. Only allow for AM33-2. Tidy
19223 all of the alternative outputs.
19224 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19225 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19226 for MN103.
19227 (udivsi3, umodsi3): New patterns for MN103 only.
19228
b899fd78
JR
192292011-01-19 Joern Rennecke <amylaar@spamcop.net>
19230
19231 * doc/tm.texi.in: Spell out that a lack of register class unions
19232 can lead to ICEs.
19233 * doc/tm.texi: Regenerate.
19234
afaaa67d
JJ
192352011-01-19 Jakub Jelinek <jakub@redhat.com>
19236
2e0642cd
JJ
19237 PR rtl-optimization/47337
19238 * dce.c (check_argument_store): New function.
19239 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19240
afaaa67d
JJ
19241 PR tree-optimization/47290
19242 * tree-eh.c (infinite_empty_loop_p): New function.
19243 (cleanup_empty_eh): Use it.
19244
d2cd871f
SE
192452011-01-18 Steve Ellcey <sje@cup.hp.com>
19246
19247 PR target/46997
19248 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19249 (a64_expand_widen_sum): Ditto.
19250 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19251 (vec_extract_evenodd_help): Ditto.
19252 (vec_extract_evenv4hi): Ditto.
19253 (vec_extract_oddv4hi): Ditto.
19254 (vec_extract_evenv2si): Ditto.
19255 (vec_extract_oddv2si): Ditto.
19256 (vec_extract_evenv2sf): Ditto.
19257 (vec_extract_oddv2sf): Ditto.
19258 (vec_pack_trunc_v4hi: Ditto.
19259 (vec_pack_trunc_v2si): Ditto.
19260 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19261 (vec_interleave_highv8qi): Ditto.
19262 (mix1_r): Ditto.
19263 (vec_extract_oddv8qi): Ditto.
19264 (vec_interleave_lowv4hi): Ditto.
19265 (vec_interleave_highv4hi): Ditto.
19266 (vec_interleave_lowv2si): Ditto.
19267 (vec_interleave_highv2si): Ditto.
19268
41a1208a
JDA
192692011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19270
19271 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19272 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19273 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19274 (pa_c_mode_for_suffix): New.
19275 (TARGET_EXPAND_BUILTIN): Define.
19276 (TARGET_C_MODE_FOR_SUFFIX): Define.
19277 (pa_builtins): Define.
19278 (pa_init_builtins): Register __float128 type and init new support
19279 builtins.
19280 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19281 * config/pa/quadlib.c (_U_Qfcopysign): New.
19282
1ecad98e
EB
192832011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19284
19285 PR middle-end/46894
19286 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19287 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19288 are defined.
19289
d4f2460a
UW
192902011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19291
19292 PR tree-optimization/47179
19293 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19294 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19295
4994da65
RG
192962011-01-18 Richard Guenther <rguenther@suse.de>
19297
19298 PR rtl-optimization/47216
19299 * emit-rtl.c: Include tree-flow.h.
19300 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19301 of replicating it with different semantics.
19302 * Makefile.in (emit-rtl.o): Adjust.
19303
1eb458d1
RR
193042011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19305
38be4072 19306 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 19307 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 19308
e7ef91dc
JJ
193092011-01-18 Jakub Jelinek <jakub@redhat.com>
19310
19311 PR rtl-optimization/47299
19312 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 19313 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
19314 * expmed.c (expand_widening_mult): Don't try to optimize constant
19315 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19316 before using it.
19317
535b7874
RW
193182011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19319
19320 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19321 spacing after 'e.g.', typos, comma, hyphenation.
19322
27bf36f3
RH
193232011-01-17 Richard Henderson <rth@redhat.com>
19324
8a5b5449
RH
19325 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19326 (rx_restricted_mem_operand): New.
19327 (rx_shift_operand): Use register_operand.
19328 (rx_source_operand, rx_compare_operand): Likewise.
19329 * config/rx/rx.md (addsi3_flags): New expander.
19330 (adddi3): Rewrite as expander.
19331 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19332 (subsi3_flags): New expander.
19333 (subdi3): Rewrite as expander.
19334 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19335
784f69be
RH
19336 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19337 (rx_init_builtins): Remove sat builtin.
19338 (rx_expand_builtin): Likewise.
19339 * config/rx/rx.md (ssaddsi3): New.
19340 (*sat): Rename from sat. Represent the CC_REG input.
19341
f033541c
RH
19342 * config/rx/predicates.md (rshift_operator): New.
19343 * config/rx/rx.c (rx_expand_insv): Remove.
19344 * config/rx/rx-protos.h: Update.
19345 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19346 operand to the canonical position.
19347 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19348 (*bitclr, *bitclr_in_memory): Similarly.
19349 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19350 (insv): Retain the zero_extract in the expansion.
19351
34fee389
RH
19352 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19353 (bswaphi2, bitinvert, revw): Likewise.
19354
265c835f
RH
19355 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19356 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19357 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19358 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19359 (bitset, bitset_in_memory): Likewise.
19360 (bitinvert, bitinvert_in_memory): Likewise.
19361 (bitclr, bitclr_in_memory): Likewise.
19362 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19363 (rx_strend, rx_cmpstrn): Likewise.
19364 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19365 (bitop peep2 patterns): Remove.
19366
b4d83be3
RH
19367 * config/rx/rx.c (rx_match_ccmode): New.
19368 * config/rx/rx-protos.h: Update.
19369 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19370 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19371 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19372 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19373 (fix_truncsfsi2, floatsisf2): Likewise.
19374 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19375 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19376 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19377 (*subsi3_flags, *xorsi3_flags): New.
19378
d0acb939
RH
19379 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19380
c06fc3d9
RH
19381 * config/rx/rx.c (rx_print_operand): Remove workaround for
19382 unsplit comparison operations.
19383
2882702b
RH
19384 * config/rx/rx.md (movsicc): Split after reload.
19385 (*movsicc): Merge *movsieq and *movsine via match_operator.
19386 (*stcc): New pattern.
19387
6f7310f2
RH
19388 * config/rx/rx.c (rx_float_compare_mode): Remove.
19389 * config/rx/rx.h (rx_float_compare_mode): Remove.
19390 * config/rx/rx.md (cstoresi4): Split after reload.
19391 (*sccc): New pattern.
19392
e963cb1a
RH
19393 * config/rx/predicates.md (label_ref_operand): New.
19394 (rx_z_comparison_operator): New.
19395 (rx_zs_comparison_operator): New.
19396 (rx_fp_comparison_operator): New.
19397 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19398 Validate that the flags are set properly for the comparison.
19399 (rx_gen_cond_branch_template): Remove.
19400 (rx_cc_modes_compatible): Remove.
19401 (mode_from_flags): New.
19402 (flags_from_code): Rename from flags_needed_for_conditional.
19403 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19404 (rx_select_cc_mode): Likewise.
19405 (rx_split_fp_compare): New.
19406 (rx_split_cbranch): New.
19407 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19408 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19409 (*cbranchsf4): Similarly.
19410 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19411 match_operator and rx_split_cbranch.
19412 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19413 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19414 (*cmpsi): Rename from cmpsi.
19415 (*tstsi): Rename from tstsi.
19416 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19417 (*conditional_branch): Rename from conditional_branch.
19418 (*reveresed_conditional_branch): Remove.
19419 (b<code>): Remove expander.
19420 * config/rx/rx-protos.h: Update.
19421
af530bb4
RH
19422 * config/rx/rx.c (rx_compare_redundant): Remove.
19423 * config/rx/rx.md (cmpsi): Don't use it.
19424 * config/rx/rx-protos.h: Update.
19425
27bf36f3
RH
19426 * config/rx/rx-modes.def (CC_F): New mode.
19427 * config/rx/rx.c (rx_select_cc_mode): New.
19428 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19429 * config/rx/rx-protos.h: Update.
19430
d7fde127
RH
194312011-01-17 Richard Henderson <rth@redhat.com>
19432
19433 * except.c (dump_eh_tree): Fix stray ; after for statement.
19434
6ff38230
RG
194352011-01-17 Richard Guenther <rguenther@suse.de>
19436
19437 PR tree-optimization/47313
19438 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19439 handling before copying the body. Properly deal with
19440 by-reference result in SSA form.
19441
114ce554
ILT
194422011-01-17 Ian Lance Taylor <iant@google.com>
19443
bf5cd92b 19444 PR target/47219
114ce554
ILT
19445 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19446 (struct_value_alias_set): Don't define.
19447 (sparc_option_override): Don't set sparc_sr_alias_set and
19448 struct_value_alias_set.
19449 (save_or_restore_regs): Use gen_frame_mem rather than calling
19450 set_mem_alias_set.
19451 (sparc_struct_value_rtx): Likewise.
19452
98c6d93c
L
194532011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19454
19455 PR target/47318
7a81008b 19456 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
19457 (_mm_maskstore_pd): Likewise.
19458 (_mm_maskload_ps): Likewise.
19459 (_mm_maskstore_ps): Likewise.
19460 (_mm256_maskload_pd): Change mask to __m256i.
19461 (_mm256_maskstore_pd): Likewise.
19462 (_mm256_maskload_ps): Likewise.
19463 (_mm256_maskstore_ps): Likewise.
19464
19465 * config/i386/i386-builtin-types.def: Updated.
19466 (ix86_expand_special_args_builtin): Likewise.
19467
19468 * config/i386/i386.c (bdesc_special_args): Update
19469 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19470 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19471 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19472 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19473
19474 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19475 Use <avxpermvecmode> on mask register.
19476 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19477
b9361af2 194782011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
19479 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19480 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
19481
19482 PR target/46655
19483 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19484 if <= USHRT_MAX in 32-bit mode.
19485
b7ae9eb5
RW
194862011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19487
19488 * doc/install.texi (Configuration, Specific): Wrap long
19489 lines in examples. Allow line wrapping in long options
19490 and URLs where beneficial for PDF output.
19491
4377fad9
RS
194922011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19493
19494 * config/mips/mips.c (mips_classify_symbol): Don't return
19495 SYMBOL_PC_RELATIVE for nonlocal labels.
19496
55959ffa 194972011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 19498
55959ffa
EB
19499 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19500
195012011-01-15 Jan Hubicka <jh@suse.cz>
19502
19503 PR tree-optimization/47276
be46831f
JH
19504 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19505 declarations as needed.
19506
05842ff5
MJ
195072011-01-15 Martin Jambor <mjambor@suse.cz>
19508
19509 * common.opt (fdevirtualize): New flag.
19510 * doc/invoke.texi (Option Summary): Document it.
19511 * opts.c (default_options_table): Add devirtualize flag.
19512 * ipa-prop.c (detect_type_change): Return immediately if
19513 devirtualize flag is not set.
19514 (detect_type_change_ssa): Likewise.
19515 (compute_known_type_jump_func): Likewise.
19516 (ipa_analyze_virtual_call_uses): Likewise.
19517
f65cf2b7
MJ
195182011-01-14 Martin Jambor <mjambor@suse.cz>
19519
19520 PR tree-optimization/45934
19521 PR tree-optimization/46302
19522 * ipa-prop.c (type_change_info): New type.
19523 (stmt_may_be_vtbl_ptr_store): New function.
19524 (check_stmt_for_type_change): Likewise.
19525 (detect_type_change): Likewise.
19526 (detect_type_change_ssa): Likewise.
19527 (compute_complex_assign_jump_func): Check for dynamic type change.
19528 (compute_complex_ancestor_jump_func): Likewise.
19529 (compute_known_type_jump_func): Likewise.
19530 (compute_scalar_jump_functions): Likewise.
19531 (ipa_analyze_virtual_call_uses): Likewise.
19532 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19533
eb5bb0fd
JM
195342011-01-14 Joseph Myers <joseph@codesourcery.com>
19535
19536 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19537 * config/i386/i386.opt (msse5): New Alias.
19538
f2060fbe
JM
195392011-01-14 Joseph Myers <joseph@codesourcery.com>
19540
19541 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19542 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19543 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19544 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19545
3a7b4385
JM
195462011-01-14 Joseph Myers <joseph@codesourcery.com>
19547
19548 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19549 -mcpu options.
19550 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19551 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19552 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19553 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19554 Likewise.
19555 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19556
a7b778f8
JM
195572011-01-14 Joseph Myers <joseph@codesourcery.com>
19558
38be4072 19559 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 19560
a7edae0a
MS
195612011-01-14 Mike Stump <mikestump@comcast.net>
19562
19563 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19564 * config/fr30/fr30.md: Likweise
19565 (movsi_push): Likewise.
19566 (movsi_pop): Likewise.
19567 (enter_func): Likewise.
19568 * config/moxie/moxie.md (movsi_push): Likewise.
19569 (movsi_pop): Likewise.
19570
cbabf03f
JM
195712011-01-14 Joseph Myers <joseph@codesourcery.com>
19572
19573 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19574 %{no_archive} %{exact_version}.
19575 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19576 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19577 %{no_archive} %{exact_version}.
19578 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19579 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19580 * config/mips/vxworks.h: Likewise.
19581
438da41a
JM
195822011-01-14 Joseph Myers <joseph@codesourcery.com>
19583
38be4072 19584 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 19585
da290a42
JM
195862011-01-14 Joseph Myers <joseph@codesourcery.com>
19587
19588 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19589 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19590
8989d00e
JM
195912011-01-14 Joseph Myers <joseph@codesourcery.com>
19592
19593 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19594 -nodefaultlib.
19595
a3010a69
JM
195962011-01-14 Joseph Myers <joseph@codesourcery.com>
19597
19598 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19599 for mcpu not cpu.
19600 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19601 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19602 not cpu.
19603 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19604 Don't handle -shlib.
19605
e7f2f537
JM
196062011-01-14 Joseph Myers <joseph@codesourcery.com>
19607
19608 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19609 (CC1_SPEC): Don't handle -profile.
19610
34830bfd
JM
196112011-01-14 Joseph Myers <joseph@codesourcery.com>
19612
19613 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19614 * config/mips/mips.h (CC1_SPEC): Likewise.
19615
b2d36e74
JM
196162011-01-14 Joseph Myers <joseph@codesourcery.com>
19617
19618 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19619 * config/mips/mips.h (CC1_SPEC): Likewise.
19620
dabadc52
JM
196212011-01-14 Joseph Myers <joseph@codesourcery.com>
19622
19623 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19624 * config/m32r/linux.h (LINK_SPEC): Likewise.
19625 * config/mips/linux.h (LINK_SPEC): Likewise.
19626 * config/mips/linux64.h (LINK_SPEC): Likewise.
19627 * config/sparc/linux.h (LINK_SPEC): Likewise.
19628 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19629 LINK_SPEC): Likewise.
19630 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19631
43ee6785
JM
196322011-01-14 Joseph Myers <joseph@codesourcery.com>
19633
19634 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19635 %{version:-v}.
19636 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19637
45e79dfd
JM
196382011-01-14 Joseph Myers <joseph@codesourcery.com>
19639
19640 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19641 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19642
37e9e71d
JM
196432011-01-14 Joseph Myers <joseph@codesourcery.com>
19644
19645 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19646
bb127cd8
RO
196472011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19648
19649 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19650 supports -Bstatic/-Bdynamic.
19651 * configure: Regenerate.
19652
89a012ea 196532011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 19654 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
19655
19656 PR target/46037
19657 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19658 when checking debug_info_level. Test write_symbols instead of
19659 debug_hooks->var_location when setting flag_var_tracking_uninit.
19660
7352c013
RG
196612011-01-14 Richard Guenther <rguenther@suse.de>
19662
19663 PR tree-optimization/47179
19664 * target.def (ref_may_alias_errno): New target hook.
19665 * targhooks.h (default_ref_may_alias_errno): Declare.
19666 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19667 (default_ref_may_alias_errno): New function.
19668 * target.h (struct ao_ref_s): Declare.
19669 * tree-ssa-alias.c: Include target.h.
19670 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19671 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19672 (targhooks.o): Likewise.
19673 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19674 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19675
9a6c9288
RG
196762011-01-14 Richard Guenther <rguenther@suse.de>
19677
19678 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19679
0fdb0d27
RG
196802011-01-14 Richard Guenther <rguenther@suse.de>
19681
19682 PR tree-optimization/47280
19683 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19684 return CFG changes.
19685 (tree_ssa_forward_propagate_single_use_vars): Deal with
19686 CFG changes from associate_plusminus.
19687
8f66db3b
RG
196882011-01-14 Richard Guenther <rguenther@suse.de>
19689
19690 PR middle-end/47281
19691 Revert
19692 2011-01-11 Richard Guenther <rguenther@suse.de>
19693
280d9630
EB
19694 PR tree-optimization/46076
19695 * tree-ssa.c (useless_type_conversion_p): Conversions from
19696 unprototyped to empty argument list function types are useless.
8f66db3b 19697
6c0c92e6
RG
196982011-01-14 Richard Guenther <rguenther@suse.de>
19699
19700 PR tree-optimization/47286
280d9630 19701 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 19702
db09f943
MJ
197032011-01-14 Martin Jambor <mjambor@suse.cz>
19704
19705 PR middle-end/46823
19706 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19707
dde8a3a4
AS
197082011-01-13 Anatoly Sokolov <aesok@post.ru>
19709
19710 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19711 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19712 * config/xtensa/xtensa.c (xtensa_libcall_value,
19713 xtensa_function_value_regno_p): New functions.
19714 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19715
a2b63a20
KT
197162011-01-13 Kai Tietz <kai.tietz@onevision.com>
19717
19718 PR c++/47213
19719 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19720 PE specific hook.
19721 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19722 New function prototype.
19723 * config/i386/winnt.c (i386_pe_assemble_visibility):
19724 Warn only if attribute was specified by user.
19725
b41f0b34
MM
197262011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19727
19728 PR target/47251
19729 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19730 floating point.
19731 (floatunsdidf2_fcfidu): Ditto.
19732
3f3c098d
AK
197332011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19734
19735 * config/s390/s390.c (print_operand_address): Replace 'error' with
19736 'output_operand_lossage'.
19737 (print_operand): Likewise.
19738
29fa95ed
JL
197392011-01-13 Jeff Law <law@redhat.com>
19740
280d9630 19741 PR rtl-optimization/39077
29fa95ed
JL
19742 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19743 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19744 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19745 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19746 * gcse.c (prune_insertions_deletions): New function.
19747 (compute_pre_data): Use it.
19748
71d12276
DS
197492011-01-13 Dodji Seketeli <dodji@redhat.com>
19750
19751 PR debug/PR46973
19752 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19753 static function.
61052244 19754 (prune_unused_types_mark): Use it.
71d12276 19755
9b0f04e7
AB
197562011-01-13 Andrey Belevantsev <abel@ispras.ru>
19757
19758 PR rtl-optimization/45352
1c3ba85b 19759 * sel-sched.c: Update copyright years.
9b0f04e7 19760 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 19761 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 19762
d6a3e264
RH
197632011-01-12 Richard Henderson <rth@redhat.com>
19764
a49b692a
RH
19765 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19766 (TARGET_MD_ASM_CLOBBERS): New.
19767
126b1483
RH
19768 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19769 (TARGET_DELEGITIMIZE_ADDRESS): New.
19770
f3d9d2e0
RH
19771 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19772 (clzsi2, *bsch): New patterns.
19773
d84760c9
RH
19774 * config/mn10300/mn10300.md (INT): New mode iterator.
19775 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19776
ec815d65
RH
19777 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19778 flag_split_wide_types.
19779
d6a3e264
RH
19780 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19781 (mn10300_trampoline_init): Rewrite without a template, an immediate
19782 load and a direct branch.
19783 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19784
0f8ab434
AS
197852011-01-12 Anatoly Sokolov <aesok@post.ru>
19786
19787 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19788 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19789 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19790 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19791
d8a24b65
KT
197922011-01-12 Kai Tietz <kai.tietz@onevision.com>
19793
19794 PR debug/47209
19795 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19796 of type.
19797
56e22cab
JH
197982011-01-12 Jan Hubicka <jh@suse.cz>
19799
19800 PR driver/47244
19801 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19802 (PLUGIN_COND_CLOSE): New macro.
19803 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19804
4b18b3c2
RG
198052011-01-12 Richard Guenther <rguenther@suse.de>
19806
19807 PR lto/47259
19808 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19809 register variables in a MEM_REF.
19810
8e38461c
JM
198112011-01-12 Joseph Myers <joseph@codesourcery.com>
19812
19813 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19814 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19815 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19816 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19817 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19818 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19819 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19820 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19821 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19822 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19823 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19824 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19825 * config/gnu-user.h: New. Copied from linux.h.
19826 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19827 GNU_USER_TARGET_STARTFILE_SPEC.
19828 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19829 GNU_USER_TARGET_ENDFILE_SPEC.
19830 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19831 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19832 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19833 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19834 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19835 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19836 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19837 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19838 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19839 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19840 * config/arm/linux-eabi.h (CC1_SPEC): Use
19841 GNU_USER_TARGET_CC1_SPEC.
19842 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19843 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19844 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19845 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19846 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19847 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19848 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19849 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19850
a570fc16
RG
198512011-01-12 Richard Guenther <rguenther@suse.de>
19852
19853 PR other/46946
19854 * doc/invoke.texi (ffast-math): Document it is turned on
19855 with -Ofast.
19856
b0223c3e
JH
198572011-01-12 Jan Hubicka <jh@suse.cz>
19858
19859 PR tree-optimization/47233
ca1e00b3
EB
19860 * opts.c (common_handle_option): Disable ipa-reference with profile
19861 feedback.
b0223c3e 19862
1c3ba85b 198632011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
19864
19865 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
19866 error message.
19867
d853ee42
NP
198682011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19869
19870 * c-parser.c (c_lex_one_token): Updated and reindented some
19871 comments. No changes in code.
19872
4053a5a0
ILT
198732011-01-11 Ian Lance Taylor <iant@google.com>
19874
19875 * godump.c (go_output_var): Don't output the variable if there is
19876 already a type with the same name.
19877
fa3e04d2
ILT
198782011-01-11 Ian Lance Taylor <iant@google.com>
19879
19880 * godump.c (go_format_type): Don't generate float80.
19881
885fe07c
RH
198822011-01-11 Richard Henderson <rth@redhat.com>
19883
72d6e3c5
RH
19884 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19885 declaration. Rewrite for both speed and size.
19886 (mn10300_address_cost_1): Remove.
19887 (mn10300_register_move_cost): New.
19888 (mn10300_memory_move_cost): New.
19889 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19890 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19891 extensions, shifts, BSWAP, CLZ.
19892 (mn10300_wide_const_load_uses_clr): Remove.
19893 (TARGET_REGISTER_MOVE_COST): New.
19894 (TARGET_MEMORY_MOVE_COST): New.
19895 * config/mn10300/mn10300-protos.h: Update.
19896 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19897
df37c023
RH
19898 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19899 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19900 * config/mn10300/mn10300-protos.h: Update.
19901 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19902 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19903 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19904 (*test_int_bitfield, *test_byte_bitfield): Remove.
19905 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 19906 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 19907
85a337b5
RH
19908 * config/mn10300/constraints.md ("c"): Rename from "A".
19909 ("A", "D"): New constraint letters.
19910 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19911 (fmssf4, fnmasf4, fnmssf4): Likewise.
19912
a5c727e3
RH
19913 * config/mn10300/mn10300.md (isa): New attribute.
19914 (enabled): New attribute.
19915
0d9e23f4
RH
19916 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19917 (abssf2, negsf2): Define only for hardware fp.
19918 (sqrtsf2): Reformat.
19919 (addsf3, subsf3, mulsf3): Merge expander and insn.
19920
c157b3f0
RH
19921 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19922 (DEBUGGER_AUTO_OFFSET): Remove.
19923 (DEBUGGER_ARG_OFFSET): Remove.
19924
cc909bba
RH
19925 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19926 Emit register stores with the same offsets as the hardware.
19927 (mn10300_store_multiple_operation): Don't check that the register
19928 save offsets are monotonic.
19929 * config/mn10300/mn10300-protos.h: Update.
19930
e3b5c2f3
RH
19931 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19932
885fe07c
RH
19933 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19934 in terms of the value on the stack, not the MDR register.
19935
6e701822
JH
199362011-01-11 Jan Hubicka <jh@suse.cz>
19937
19938 PR lto/45721
19939 PR lto/45375
19940 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19941 (symbol_alias_set_destroy, symbol_alias_set_contains,
19942 propagate_aliases_backward): Declare.
19943 * lto-streamer-out.c (struct sets): New sturcture.
19944 (trivally_defined_alias): New function.
19945 (output_alias_pair_p): Rewrite.
19946 (output_unreferenced_globals): Fix output of alias pairs.
19947 (produce_symtab): Likewise.
19948 * ipa.c (function_and_variable_visibility): Set weak alias destination
19949 as needed in lto.
19950 * varasm.c (symbol_alias_set_t): Remove.
19951 (symbol_alias_set_destroy): Export.
19952 (propagate_aliases_forward, propagate_aliases_backward): New functions
19953 based on ...
19954 (compute_visible_aliases): ... this one; remove.
19955 (trivially_visible_alias): New
19956 (trivially_defined_alias): New.
19957 (remove_unreachable_alias_pairs): Rewrite.
19958 (finish_aliases_1): Reorganize code checking if alias is defined.
19959 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19960 in LTO mode.
19961
1b248907
RG
199622011-01-11 Richard Guenther <rguenther@suse.de>
19963
19964 PR tree-optimization/46076
19965 * tree-ssa.c (useless_type_conversion_p): Conversions from
19966 unprototyped to empty argument list function types are useless.
19967
b1923f0a
RG
199682011-01-11 Richard Guenther <rguenther@suse.de>
19969
19970 PR middle-end/45235
19971 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19972 volatile MEMs as MEM_READONLY_P.
19973
e98965af
RG
199742011-01-11 Richard Guenther <rguenther@suse.de>
19975
19976 PR tree-optimization/47239
19977 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19978
9f9ca914
JL
199792011-01-11 Jeff Law <law@redhat.com>
19980
1ee3ea05 19981 PR tree-optimization/47086
9f9ca914
JL
19982 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19983 IVs from statements that might throw.
19984
345fdcb7
JH
199852011-01-10 Jan Hubicka <jh@suse.cz>
19986
19987 PR lto/45375
19988 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19989
c459c97b
JH
199902011-01-10 Jan Hubicka <jh@suse.cz>
19991
19992 PR lto/45375
19993 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19994 when correcting profile.
19995
06c9eb51
JH
199962011-01-10 Jan Hubicka <jh@suse.cz>
19997
19998 PR lto/46083
19999 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20000 DECL_FINI_PRIORITY.
20001 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20002 Restore DECL_FINI_PRIORITY.
20003
ae9fd815
RW
200042011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20005
20006 * doc/gimple.texi: Fix quoting of multi-word return values in
20007 @deftypefn statements. Ensure presence of return value. Wrap
20008 overlong @deftypefn lines.
20009 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20010 descriptions of removed functions.
20011 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20012 of multi-word return value in @deftypefn statement.
20013
0ecb4a7c
RW
200142011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20015
20016 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20017 (Conditional Expressions, Logical Operators)
20018 (Statement and operand traversals): Do not indent smallexample
20019 code. Fix duplicate function argument in example.
20020
2e5e346d
JL
200212011-01-10 Jeff Law <law@redhat.com>
20022
1ee3ea05 20023 PR tree-optimization/47141
2e5e346d
JL
20024 * ipa-split.c (split_function): Handle case where we are
20025 returning a value and the return block has a virtual operand phi.
20026
cf9712cc
JH
200272011-01-10 Jan Hubicka <jh@suse.cz>
20028
1c3ba85b 20029 PR tree-optimization/47234
cf9712cc
JH
20030 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20031 (pass_feedback_split_functions): Declare.
20032 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20033 tree-profile.
20034 * ipa-split.c (gate_split_functions): Update comments; disable
20035 split-functions for profile_arc_flag and branch_probabilities.
20036 (gate_feedback_split_functions): New function.
20037 (execute_feedback_split_functions): New function.
20038 (pass_feedback_split_functions): New global var.
20039
94cd932c
L
200402011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20041
20042 PR lto/46760
20043 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20044 calling gimple_call_set_cannot_inline.
20045
fbbfcaf1
IS
200462011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20047
20048 * config/darwin-sections.def: Remove unused section.
20049
d06865bf
DK
200502011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20051
20052 PR c++/47218
20053 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20054
96bbfbac
NP
200552011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20056
20057 PR objc/47232
20058 * c-parser.c (c_parser_declaration_or_fndef): Improved
20059 error message.
20060
1ba6516f
KT
200612011-01-09 Kai Tietz <kai.tietz@onevision.com>
20062
20063 * config/i386/winnt.c (i386_pe_start_function): Make sure
20064 to switch back to function's section.
20065
0c5d770e
IS
200662011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20067
20068 PR gcc/46902
20069 PR testsuite/46912
20070 * plugin.c: Move include of dlfcn.h from here...
20071 * system.h: ... to here.
20072
200732011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
20074
20075 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20076 file name.
20077 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20078 two extra empty pages in PDF output.
20079
046608a3
NP
200802011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20081
20082 PR objc/47078
20083 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20084 for error recovery purposes behave as if it was not specified so
20085 that the default type is usd.
20086
8cb114b9
JH
200872011-01-07 Jan Hubicka <jh@suse.cz>
20088
20089 PR tree-optmization/46469
20090 * ipa.c (function_and_variable_visibility): Clear needed flags on
20091 nodes with external decls; handle weakrefs merging correctly.
20092
b294a75e
JM
200932011-01-07 Joseph Myers <joseph@codesourcery.com>
20094
20095 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20096 not false.
20097
96bdf9b4
JH
200982011-01-07 Jan Hubicka <jh@suse.cz>
20099
f60c2554 20100 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
20101 and no longer claim that gold is required for linker plugin.
20102 * configure: Regenerate.
20103 * gcc.c (PLUGIN_COND): New macro.
20104 (LINK_COMMAND_SPEC): Use it.
20105 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20106 * config.in (HAVE_LTO_PLUGIN): New.
20107 * configure.ac (--with-lto-plugin): New parameter; autodetect
20108 HAVE_LTO_PLUGIN.
20109
17afc0fe
JH
201102011-01-07 Jan Hubicka <jh@suse.cz>
20111
20112 PR tree-optimization/46367
20113 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20114 when we can update original.
20115 (cgraph_mark_inline_edge): Sanity check.
20116 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20117
d4c48c0f
UW
201182011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20119
20120 * config/spu/spu.h (ASM_COMMENT_START): Define.
20121
96f5b137
L
201222011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20123
20124 PR driver/42445
20125 * gcc.c (%>S): New.
20126 (SWITCH_KEEP_FOR_GCC): Likewise.
20127 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20128 (do_spec_1): Handle "%>".
20129
20130 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20131
c6a8f6de
JJ
201322011-01-07 Jakub Jelinek <jakub@redhat.com>
20133
c21bbd7a
JJ
20134 PR target/47201
20135 * config/i386/i386.c (ix86_delegitimize_address): If
20136 simplify_gen_subreg fails, return orig_x.
20137
c6a8f6de
JJ
20138 PR bootstrap/47187
20139 * value-prof.c (gimple_stringop_fixed_value): Handle
20140 lhs of the call properly.
20141
fe95fbf9
JH
201422011-01-07 Jan Hubicka <jh@suse.cz>
20143
20144 PR lto/45375
20145 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20146
14d11d40
IS
201472011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20148
72e961c8
EB
20149 * target.def (function_switched_text_sections): New hook.
20150 * doc/tm.texi: Regenerated.
20151 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20152 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
20153 (final_scan_insn): Call function_switched_text_sections when a
20154 mid-function section change occurs.
14d11d40 20155 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
20156 * config/darwin-protos.h (darwin_function_switched_text_sections):
20157 Likewise.
14d11d40 20158 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 20159 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20160
0b764288
IS
201612011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20162
20163 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20164 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20165 the secondary code fragment when outputting for DWARF == 2.
20166
2ac6bb04
AS
201672011-01-07 Anatoly Sokolov <aesok@post.ru>
20168
20169 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20170 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20171 Remove.
20172 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20173 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20174
9f82de11
EB
201752011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20176
20177 PR debug/46704
280d9630
EB
20178 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20179 when it is not empty.
9f82de11
EB
20180
201812011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 20182
1ed72abf 20183 Bobcat Enablement
14b52538 20184 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 20185 (case ${target}): Add btver1.
14b52538 20186 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 20187 -march=native recognize btver1 processors.
14b52538 20188 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 20189 btver1 def_and_undef
14b52538 20190 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
20191 btver1 cost table.
20192 (m_BTVER1): New definition.
20193 (m_AMD_MULTIPLE): Includes m_BTVER1.
20194 (initial_ix86_tune_features): Add btver1 tune.
20195 (processor_target_table): Add btver1 entry.
20196 (static const char *const cpu_names): Add btver1 entry.
20197 (software_prefetching_beneficial_p): Add btver1.
20198 (ix86_option_override_internal): Add btver1 instruction sets.
20199 (ix86_issue_rate): Add btver1.
20200 (ix86_adjust_cost): Add btver1.
14b52538 20201 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
20202 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20203 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
20204 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20205
e1a973d8
RO
202062011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20207
20208 PR target/43309
20209 * config/i386/i386.c (legitimize_tls_address)
20210 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20211 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20212 (tls_initial_exec_64_sun): New pattern.
20213
c73f67c5
GP
202142011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20215
20216 * doc/invoke.texi (Overall Options): Improve wording and markup
20217 of the description of -wrapper.
20218
bc4c6f9c
JM
202192011-01-06 Joseph Myers <joseph@codesourcery.com>
20220
20221 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20222 rdynamic, threads): New Driver options.
20223
adb75db0
RO
202242011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20225
20226 PR target/38118
20227 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20228 if coming from .tdata.
20229 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20230
402c1cb4
JH
202312011-01-06 Jan Hubicka <jh@suse.cz>
20232
20233 PR lto/47188
20234 * collect2.c (main): Do not enable LTOmode when plugin is active.
20235
a4da6485
RO
202362011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20237
20238 PR other/45915
20239 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20240 --version output if supported.
20241 * configure: Regenerate.
20242
028dbdf4
JM
202432011-01-06 Joseph Myers <joseph@codesourcery.com>
20244
20245 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20246 Driver options.
20247
dfe776dd
JJ
202482011-01-06 Jakub Jelinek <jakub@redhat.com>
20249
20250 PR c/47150
20251 * c-convert.c (convert): When converting a complex expression
20252 other than COMPLEX_EXPR to a different complex type, ensure
20253 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20254 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20255 when converting COMPLEX_TYPE.
20256
210dedfe
IR
202572011-01-06 Ira Rosen <irar@il.ibm.com>
20258
20259 PR tree-optimization/47139
20260 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20261 only the last reduction value is used outside the loop. Update
20262 documentation.
20263
cd33a412
JM
202642011-01-05 Joseph Myers <joseph@codesourcery.com>
20265
20266 * config/rtems.opt: New.
20267 * config.gcc (*-*-rtems*): Use rtems.opt.
20268
819edd94
CF
202692011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20270
20271 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20272 processors do not support 3DNow instructions.
20273
dc242c4a
UW
202742011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20275
20276 * config/spu/spu.c (spu_option_override): Set parameter
20277 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20278
be286227
JH
202792011-01-05 Jan Hubicka <jh@suse.cz>
20280
20281 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20282 at the command line.
20283
644e637f
MJ
202842011-01-05 Martin Jambor <mjambor@suse.cz>
20285
20286 PR lto/47162
20287 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20288 deltas on streamed outgoing edges.
20289 (output_node_opt_summary): Output info for outgoing edges only when
20290 the node is in new parameter set.
20291 (output_cgraph_opt_summary): New parameter set, passed to the two
20292 aforementioned functions. Update its forward declaration and its
20293 callee too.
20294
7bd11157
TT
202952011-01-05 Tom Tromey <tromey@redhat.com>
20296
20297 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20298 operator to c_finish_omp_atomic.
20299 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20300 (build_unary_op): Update.
20301 (build_modify_expr): Update.
20302 (build_asm_expr): Update.
20303
f626b979
UW
203042011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20305
20306 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20307 newly inserted insns.
20308 (pad_bb): Likewise.
20309 (spu_emit_branch_hint): Likewise.
20310 (insert_hbrp_for_ilb_runout): Likewise.
20311 (spu_machine_dependent_reorg): Call df_finish_pass after
20312 schedule_insns returns.
20313
4c825c02
UW
203142011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20315
20316 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20317
5e9fba51
EB
203182011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20319
20320 PR tree-optimization/47005
20321 * tree-sra.c (struct access): Add 'non_addressable' bit.
20322 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20323 (decide_one_param_reduction): Return 0 if the parameter is passed by
20324 reference and one of the accesses in the group is non_addressable.
20325
3ebb5ca6
EB
203262011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20327
20328 PR tree-optimization/47056
20329 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20330 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20331 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20332
d5d4d14e
EB
203332011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20334
20335 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20336 initializer. Skip view conversions from aggregate types.
20337
d996ef70
KT
203382011-01-04 Kai Tietz <kai.tietz@onevision.com>
20339
20340 PR bootstrap/47055
20341 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20342
509d65dd 203432011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
20344
20345 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20346 obvious typo.
20347
55c623b5
UW
203482011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20349
20350 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20351 on empty epilogue sequences.
20352
b98d6b35
JM
203532011-01-04 Joseph Myers <joseph@codesourcery.com>
20354
20355 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20356 non-static): New Driver options.
20357
a0d43bac
JZ
203582011-01-04 Jie Zhang <jie@codesourcery.com>
20359
20360 PR driver/47137
20361 * gcc.c (default_compilers[]): Set combinable field to 0
20362 for all assembly languages.
20363
2b18eb32
MX
203642011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20365
20366 * config/mips/loongson3a.md: New file.
20367 * config/mips/mips.md: Include loongson3a.md.
20368 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20369 TUNE_LOONGSON_3A.
20370
42a48c4f
EB
203712011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20372
20373 PR middle-end/47017
20374 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20375 instead of convert_memory_address_addr_space on the base expression.
20376
9c1732c4
UW
203772011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20378
20379 * config/spu/spu.c (spu_option_override): Update error text
20380 for bad -march= / -mtune= values.
20381
aa474365
UW
203822011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20383
20384 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20385 if branch-hint optimization will be performed.
20386
9766135b
JJ
203872011-01-03 Jakub Jelinek <jakub@redhat.com>
20388
371556ee
JJ
20389 PR tree-optimization/47148
20390 * ipa-split.c (split_function): Convert arguments to
20391 DECL_ARG_TYPE if possible.
20392
1ac12fa2
JJ
20393 PR tree-optimization/47155
20394 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20395 when computing uns.
20396
9766135b
JJ
20397 PR rtl-optimization/47157
20398 * combine.c (try_combine): If undobuf.other_insn becomes
20399 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20400 and set *new_direct_jump_p too.
20401
f4a2e571
SP
204022011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20403
20404 PR tree-optimization/47021
20405 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20406
9f8e43c0
JJ
204072011-01-03 Jakub Jelinek <jakub@redhat.com>
20408
20409 * gcc.c (process_command): Update copyright notice dates.
20410 * gcov.c (print_version): Likewise.
20411 * gcov-dump.c (print_version): Likewise.
20412 * mips-tfile.c (main): Likewise.
20413 * mips-tdump.c (main): Likewise.
20414
1a2e38f3
MJ
204152011-01-03 Martin Jambor <mjambor@suse.cz>
20416
20417 PR tree-optimization/46801
20418 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20419 aggregate fields start at byte boundary instead of the bit-field flag.
20420
56b721c5
L
204212011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20422
20423 PR driver/47137
20424 * gcc.c (main): Revert revision 168407.
20425
839d549b
MJ
204262011-01-03 Martin Jambor <mjambor@suse.cz>
20427
20428 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20429
4ce99a20 204302011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
20431
20432 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20433 vector optab to expand vector/scalar shift, update gimple to vector.
20434
76df0ae6
MJ
204352011-01-03 Martin Jambor <mjambor@suse.cz>
20436
20437 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20438 a thunk.
20439
ce47fda3
MJ
204402011-01-03 Martin Jambor <mjambor@suse.cz>
20441
20442 PR tree-optimization/46984
20443 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20444 HOST_WIDE_INT.
20445 (cgraph_create_indirect_edge): Fixed line length.
20446 (cgraph_indirect_call_info): Declare.
20447 (cgraph_make_edge_direct) Update declaration.
20448 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20449 (cgraph_create_indirect_edge): Use it.
20450 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20451 callees.
20452 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20453 the new thunk_delta representation.
20454 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20455 HOST_WIDE_INT.
20456 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20457 (ipa_read_indirect_edge_info): Likewise.
20458 * lto-cgraph.c (output_edge_opt_summary): New function.
20459 (output_node_opt_summary): Call it on all outgoing edges.
20460 (input_edge_opt_summary): New function.
20461 (input_node_opt_summary): Call it on all outgoing edges.
20462
1e67fa1f
L
204632011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20464
20465 PR driver/47137
20466 * gcc.c (main): Don't check have_o when settting combine_inputs.
20467
6656b2ac
EB
204682011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20469
20470 * regrename.c: Add general comment describing the pass.
20471 (struct du_head): Remove 'length' field.
20472 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20473 (regrename_optimize): Do not sort chains. Rework comments, add others.
20474 Force renaming to the preferred class (if any) in the first pass and do
20475 not consider registers that belong to it in the second pass.
20476 (create_new_chain): Do not set 'length' field.
20477 (scan_rtx_reg): Likewise.
20478
bc470c24
JJ
204792011-01-02 Jakub Jelinek <jakub@redhat.com>
20480
4e996296
JJ
20481 PR tree-optimization/47140
20482 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20483 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20484 to bit_value_binop.
20485
bc470c24 20486 PR rtl-optimization/47028
6656b2ac
EB
20487 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20488 parm_birth_insn instead of at the beginning of first bb.
bc470c24 20489
5af62fcd 204902011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
20491
20492 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20493 Remove the word "see" before "@pxref".
20494 * doc/rtl.texi: Remove the word "see" before "@pxref".
20495
0e20c89f
JH
204962011-01-01 Jan Hubicka <jh@suse.cz>
20497
6656b2ac
EB
20498 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20499 memory.
0e20c89f 20500
220e83ca
KT
205012011-01-01 Kai Tietz <kai.tietz@onevision.com>
20502
20503 PR target/38662
6656b2ac 20504 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 20505
ad41bd84 20506\f
797103eb 20507Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
20508
20509Copying and distribution of this file, with or without modification,
20510are permitted in any medium without royalty provided the copyright
20511notice and this notice are preserved.