]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Fixed gcc.dg/binop-xor[1-5].c filenames.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2f964ad6
XDL
12011-04-26 Xinliang David Li <davidxl@google.com>
2
3 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass
4 warning code.
5 * c-family/c-opts.c (c_common_handle_option): Set
6 warn_maybe_uninitialized.
7 * opts.c (common_handle_option): Ditto.
8 * common.opt: New option.
9 * tree-ssa.c (warn_uninit): Add one more parameter.
10 (warn_uninitialized_var): Pass warning code.
11 * tree-flow.h: Interface change.
12
13
9c7bd91a
RO
142011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15
16 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test
17 TARGET_NEWABI.
18 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
19 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
20
c2f36e21
RO
212011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22
23 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
24 * config/mips/mips.opt (mmips-tfile): Remove.
25
26 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
27 mips-tdump reference to ...
28 (Specific, alpha*-dec-osf5.1): ... here.
29 Adapt for Tru64 UNIX.
30 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
31 reference by Tru64 UNIX.
32
2c9da85b
JJ
332011-04-26 Jakub Jelinek <jakub@redhat.com>
34
0c5f6539
JJ
35 PR debug/48768
36 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
37 is error_mark_node, set value to NULL.
38
2c9da85b
JJ
39 PR tree-optimization/48734
40 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
41 if return value from maybe_fold_*_comparsions isn't something
42 the code is prepared to handle.
43
77fa1d54
UB
442011-04-26 Uros Bizjak <ubizjak@gmail.com>
45
46 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
47 mode check.
48 (ext_QIreg_nomode_operands): Remove.
49 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
50 (*andsi_1): Ditto.
51 (*andhi_1): Ditto.
52
0e2a6c2b
AS
532011-04-26 Andrew Stubbs <ams@codesourcery.com>
54
55 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
56
961562d8
RB
572011-04-26 Richard Guenther <rguenther@suse.de>
58
59 * c-typeck.c (build_unary_op): Do not expand array-refs via
60 pointer arithmetic. Only adjust qualifiers for function types.
61
622011-04-26 Richard Guenther <rguenther@suse.de>
63
64 PR middle-end/48694
65 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
66 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
67 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
68 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 69
a0d260fc
PC
702011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
71
77fa1d54 72 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
a0d260fc 73 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
74e883ce 74 * doc/extend.texi: Document __underlying_type.
a0d260fc 75
4d583bb9
SB
762011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
77
78 * config/rs6000/titan.md (automata_option "progress"): Remove.
79
1f3fcdc3
JL
802011-04-25 Jeff Law <law@redhat.com>
81
82 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
83
e5b0dad8
JK
842011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
85
86 * system.h (ENUM_BITFIELD): Remove.
87
5157a881
MK
882011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
89 Eric Botcazou <ebotcazou@adacore.com>
90
91 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
92 for STORE_FLAG_VALUE==-1 case.
93
ed4c109e
RS
942011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
95
96 PR target/43804
97 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
98 LEGITIMATE_PIC_OPERAND_P.
99
f3181aa2
JH
1002011-04-24 Jan Hubicka <jh@suse.cz>
101
102 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
103 WPA hack.
77fa1d54
UB
104 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
105 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
106 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
107 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
108 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
109 Sanity check predicate length.
110 (remap_predicate): Likewise; sanity check jump functions.
111 (inline_read_section, inline_write_summary): Sanity check
112 predicate length.
113
5307cbaa
PC
1142011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
115
116 PR other/48748
117 * doc/extend.texi (Type Traits): Document __is_standard_layout,
118 __is_literal_type, and __is_trivial; update throughout about
119 possibly cv-qualified void types.
120
bebd5f99
GP
1212011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
122
123 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
124 testsuite and make it version agnostic.
125
7ee28a74
JH
1262011-04-22 Jan Hubicka <jh@suse.cz>
127
128 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
129
16997bc0
JJ
1302011-04-23 Jakub Jelinek <jakub@redhat.com>
131
132 PR c/48685
133 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
134 to VOID_TYPE even around MODIFY_EXPR.
135
f94d4ab1
MS
1362011-04-22 Mike Stump <mikestump@comcast.net>
137
1a84c183 138 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
139 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
140 comment.
141
632b4f8e
JH
1422011-04-22 Jan Hubicka <jh@suse.cz>
143
144 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
145 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
146 ipa-prop.c; update all uses.
632b4f8e 147 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
148 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
149 merge summary of inlined function into former caller.
632b4f8e
JH
150 * ipa-inline.c (max_benefit): Remove.
151 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
152 (update_caller_keys): Use
153 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
154 (update_callee_keys): Likewise.
155 (update_all_callee_keys): Likewise.
77fa1d54
UB
156 (inline_small_functions): Do not collect max_benefit; do not reset
157 estimated_growth; call free_growth_caches and initialize_growth_caches.
158 * ipa-inline.h (struct condition, type clause_t, struct predicate,
159 struct size_time_entry): New structures.
632b4f8e 160 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
161 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
162 and estimated_growth.
632b4f8e
JH
163 (edge_growth_cache_entry): New structure.
164 (node_growth_cache, edge_growth_cache): New global vars.
165 (estimate_growth): Turn into inline.
166 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
167 initialize_growth_caches, free_growth_caches): Declare.
168 (estimate_edge_growth): Rewrite.
169 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
170 (reset_node_growth_cache, reset_edge_growth_cache): New inline
171 functions.
632b4f8e
JH
172 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
173 (NUM_CONDITIONS): New constant.
174 (predicate_conditions): New enum.
175 (IS_NOT_CONSTANT): New constant.
176 (edge_removal_hook_holder): New var.
177 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
178 (true_predicate, single_cond_predicate, false_predicate,
179 not_inlined_predicate, add_condition, add_clause, and_predicates,
180 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
181 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
182 evaulate_conditions_for_edge): New functions.
183 (inline_summary_alloc): Move to heap.
184 (inline_node_removal_hook): Clear condition and entry vectors.
185 (inline_edge_removal_hook): New function.
186 (initialize_growth_caches, free_growth_caches): New function.
187 (dump_inline_summary): Update.
188 (edge_execution_predicate): New function.
189 (will_be_nonconstant_predicate): New function.
190 (estimate_function_body_sizes): Compute BB and constantness predicates.
191 (compute_inline_parameters): Do not clear estimated_growth.
192 (estimate_edge_size_and_time): New function.
193 (estimate_calls_size_and_time): New function.
194 (estimate_callee_size_and_time): New function.
195 (remap_predicate): New function.
196 (inline_merge_summary): New function.
197 (do_estimate_edge_time): New function based on...
198 (estimate_edge_time): ... this one.
199 (do_estimate_edge_growth): New function.
200 (do_estimate_growth): New function based on....
201 (estimate_growth): ... this one.
202 (inline_analyze_function): Analyze after deciding on jump functions.
203 (inline_read_section): New function.
204 (inline_read_summary): Use it.
205 (inline_write_summary): Write all the new data.
206 * ipa-prop.c (ipa_get_param_decl_index): Export.
207 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
208 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
209 Declare.
210 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
211 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
212 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
213 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
214 cgraph_edge_inlinable_p): Remove.
215 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
216 (cgraph_process_new_functions): Update call of
217 compute_inline_parameters.
632b4f8e 218
1df5b0db
RG
2192011-04-22 Richard Guenther <rguenther@suse.de>
220
221 * tree.c (build_int_cst): Properly create canonicalized integer
222 constants.
223 (build_int_cst_type): Remove scary comments.
224
ae01169c
XDL
2252011-04-22 Xinliang David Li <davidxl@google.com>
226
227 * toplev.c (process_options): Enable -Werror=coverage-mismatch
228 by default when -Wno-error is not specified.
229 * opts-global.c (decode_options): Remove call to
230 control_warning_options.
231
93dfac24
JJ
2322011-04-22 Jakub Jelinek <jakub@redhat.com>
233
234 PR tree-optimization/48717
235 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
236 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
237
1b5f5069
JM
2382011-04-22 Joseph Myers <joseph@codesourcery.com>
239
240 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
241 definition where used.
242
144f4153
JJ
2432011-04-22 Jakub Jelinek <jakub@redhat.com>
244
245 PR c/48716
246 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
247 TREE_STATIC variables declared inside of some OpenMP construct.
248
f9fd305b
MJ
2492011-04-22 Martin Jambor <mjambor@suse.cz>
250
251 PR middle-end/48585
1d284ec5 252 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 253
49819fef
AM
2542011-04-22 Alexander Monakov <amonakov@ispras.ru>
255
256 PR c/36750
257 * c-typeck.c (pop_init_level): Do not warn about initializing
258 with ` = {0}'.
259
401f6699
AM
2602011-04-22 Alan Modra <amodra@gmail.com>
261
262 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
263 when returning call_cookie.
264 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
265 pointers, to functions with no more vector args than the current
266 function, and some non-local calls for ABI_V4.
267 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
268 sibcall_nonlocal_aix64): Combine to ..
269 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
270 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
271 (sibcall_value_nonlocal_aix<mode>): ..likewise.
272 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
273 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
274 operand.
275 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
276 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
277 sibcall_value_symbolic_64): Delete.
278
903d1e67
XDL
2792011-04-21 Xinliang David Li <davidxl@google.com>
280
281 * cgraph.h: Remove pid.
282 * cgraph.c: Remove pid.
283 * value-prof.c (init_node_map): New function.
284 (del_node_map): New function.
285 (find_func_by_funcdef_no): New function.
286 (gimple_ic_transform): Call new function.
287 * cgraphunit.c (cgraph_finalize_function): Remove pid.
288 * function.c (get_last_funcdef_no): New function.
289 * function.h (get_last_funcdef_no): New function.
290 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
291 to libgcov function.
292 (tree-profiling): Call node map init and delete function.
293
7378e95f
ILT
2942011-04-21 Ian Lance Taylor <iant@google.com>
295
296 * godump.c (go_format_type): Use exported Go name for anonymous
297 field name.
298
e84a6fcf
NF
2992011-04-21 Nathan Froyd <froydnj@codesourcery.com>
300
301 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
302 Call builtin_function_type_list instead of builtin_function_type.
303 (UNARY, BINARY, TRINARY, QUAD): Likewise.
304
4fe058e2
NF
3052011-04-21 Nathan Froyd <froydnj@codesourcery.com>
306
307 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
308 build_function_type_list instead of build_function_type.
309 Delete variable `endlink'.
310
1ba0a2d2
NF
3112011-04-21 Nathan Froyd <froydnj@codesourcery.com>
312
313 * config/s390/s390.c (s390_init_builtins): Call
314 build_function_type_list instead of build_function_type.
315
c0676219
NF
3162011-04-21 Nathan Froyd <froydnj@codesourcery.com>
317
318 * config/ia64/ia64.c (ia64_init_builtins): Call
319 build_function_type_list instead of builtin_function_type.
320
6ddfda8a
ER
3212011-04-21 Easwaran Raman <eraman@google.com>
322
3a6448ea 323 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
324 (add_stack_var): ...and its reference here...
325 (expand_stack_vars): ...and here.
326 (stack_var_cmp): Sort by descending order of size.
327 (partition_stack_vars): Change heuristic.
1d284ec5 328 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
329 (dump_stack_var_partition): Add newline after each partition.
330
23756963
DA
3312011-04-21 Dimitrios Apostolou <jimis@gmx.net>
332 Jeff Law <law@redhat.com>
333
77fa1d54 334 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
335 * gengtype.c (matching_file_name_substitute): Likewise.
336
aa2a43d2
RG
3372011-04-21 Richard Guenther <rguenther@suse.de>
338
339 PR lto/48703
1d284ec5 340 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 341
4d931f41
EB
3422011-04-21 Eric Botcazou <ebotcazou@adacore.com>
343
344 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
345
f103fa7a
RG
3462011-04-21 Richard Guenther <rguenther@suse.de>
347
348 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
349 file name.
350
e19f6650
RG
3512011-04-21 Richard Guenther <rguenther@suse.de>
352
353 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
354 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
355 Use DECL_P, not SSA_VAR_P.
356 (ptr_derefs_may_alias_p): Likewise.
357 (ptr_deref_may_alias_ref_p_1): Likewise.
358 (decl_refs_may_alias_p): Likewise.
359 (refs_may_alias_p_1): Likewise.
360 (ref_maybe_used_by_call_p_1): Likewise.
361 (call_may_clobber_ref_p_1): Likewise.
362 (indirect_ref_may_alias_decl_p): Assume indirect refrences
363 are either MEM_REF or TARGET_MEM_REF.
364 (indirect_refs_may_alias_p): Likewise.
365 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
366 for MEM_EXPR of indirect calls.
367
9d1831bb
TG
3682011-04-21 Tristan Gingold <gingold@adacore.com>
369
370 * vmsdbgout.c (write_srccorr): Compute file length from the string.
371 (dst_file_info_struct): Remove flen field.
372 (lookup_filename): Remove code that set flen field.
373
f199c029
TG
3742011-04-21 Tristan Gingold <gingold@adacore.com>
375
376 * config/ia64/ia64.c (ia64_start_function): Add a guard.
377
2894086e
UB
3782011-04-21 Uros Bizjak <ubizjak@gmail.com>
379
380 PR target/48708
381 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
382 vec_extract and vec_concat for non-SSE4_1 targets.
383
53f94a5c
RG
3842011-04-21 Richard Guenther <rguenther@suse.de>
385
386 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
387 return statements.
388
f0dca5ba
JM
3892011-04-21 Joseph Myers <joseph@codesourcery.com>
390
391 * config/i386/cygming.h (union tree_node, TREE): Don't define or
392 undefine.
393 (FILE): Don't undefine.
394
984514ac
JM
3952011-04-21 Joseph Myers <joseph@codesourcery.com>
396
397 * config/alpha/alpha.c (struct machine_function): Use rtx, not
398 struct rtx_def *.
399 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
400 struct rtx_def *.
401 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 402 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
403 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
404 rtx_def *.
405 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
406 definitions where used.
407 * config/microblaze/microblaze.h (struct microblaze_args): Use
408 rtx, not struct rtx_def *.
409 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
410 rtx_def *.
2894086e
UB
411 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
412 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
413 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
414 not struct rtx_def *.
415 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
416 struct rtx_def *.
417 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
418 rtx_def *.
2894086e 419 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 420
0b5a2724
RS
4212011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
422
423 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
424 operand_equal_p to compare DR_BASE_ADDRESSes.
425 (vect_check_interleaving): Likewise.
426
4b18d683
RS
4272011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
428
429 PR target/46329
430 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
431 for all Neon struct constants.
432
1a627b35
RS
4332011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
434
435 * target.def (legitimate_constant_p): New hook.
436 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
437 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
438 * doc/tm.texi: Regenerate.
439 * hooks.h (hook_bool_mode_rtx_true): Declare.
440 * hooks.c (hook_bool_mode_rtx_true): Define.
441 * system.h (LEGITIMATE_CONSTANT_P): Poison.
442 * calls.c (precompute_register_parameters): Replace uses of
443 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
444 (emit_library_call_value_1): Likewise.
445 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
446 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
447 * ira-costs.c (scan_one_insn): Likewise.
448 * recog.c (general_operand, immediate_operand): Likewise.
449 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
450 * reload1.c (init_eliminable_invariants): Likewise.
451
452 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
453 mode argument.
454 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
455 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
456 argument.
457 (TARGET_LEGITIMATE_CONSTANT_P): Define.
458 * config/alpha/predicates.md (input_operand): Update call to
459 alpha_legitimate_constant_p.
460
461 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
462 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
463 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
464 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
465 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
466 (arm_legitimate_constant_p): New functions.
467 (arm_cannot_force_const_mem): Make static.
468
469 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
470
471 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
472 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
473 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
474 instead of bfin_legitimate_constant_p.
475 (bfin_legitimate_constant_p): Make static. Add a mode argument.
476 (TARGET_LEGITIMATE_CONSTANT_P): Define.
477
478 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
479
480 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
481
482 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
483 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
484 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
485 (frv_legitimate_constant_p): Make static. Add a mode argument.
486
487 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
488 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
489 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
490
491 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
492 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
493 * config/i386/i386.c (legitimate_constant_p): Rename to...
494 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
495 argument.
496 (ix86_cannot_force_const_mem): Update accordingly.
497 (ix86_legitimate_address_p): Likewise.
498 (TARGET_LEGITIMATE_CONSTANT_P): Define.
499 * config/i386/i386.md: Update commentary.
500
501 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
502 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
503 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
504 (ia64_legitimate_constant_p): Make static. Add a mode argument.
505
506 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
507
508 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
509 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
510 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
511 (lm32_legitimate_constant_p): Make static. Add a mode argument.
512
513 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
514 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
515 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
516
517 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
518 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
519 (m32r_legitimate_constant_p): New function.
520
521 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
522 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
523 LEGITIMATE_CONSTANT_P.
524 (LEGITIMATE_CONSTANT_P): Delete.
525 * config/m68k/m68k.c (m68k_expand_prologue): Call
526 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
527 (m68k_legitimate_constant_p): New function.
528 * config/m68k/m68k.md: Update comments.
529
530 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
531 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
532 (mcore_legitimate_constant_p): New function.
533
534 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
535 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
536 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
537 Add a mode argument.
538 (mep_legitimate_address): Update accordingly.
539 (TARGET_LEGITIMATE_CONSTANT_P): Define.
540
541 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
542 Delete.
543 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
544 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
545 static. Check OP's mode for VOIDmode.
546 (microblaze_legitimate_constant_p): New function.
547 (TARGET_LEGITIMATE_CONSTANT_P): Define.
548
549 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
550 * config/mips/mips.c (mips_legitimate_constant_p): New function.
551 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
552 (TARGET_LEGITIMATE_CONSTANT_P): Define.
553 * config/mips/predicates.md: Update comments.
554
555 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
556 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
557 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
558 (mmix_legitimate_constant_p): Make static, return a bool, and take
559 a mode argument.
560 (mmix_print_operand_address): Update accordingly.
561
562 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
563 Delete.
564 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
565 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
566 static. Add a mode argument.
1a627b35
RS
567 (TARGET_LEGITIMATE_CONSTANT_P): Define.
568
569 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
570
571 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
572 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
573 (pa_legitimate_constant_p): New function.
574
575 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
576
577 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
578 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
579 (pdp11_legitimate_constant_p): New function.
580
581 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
582 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
583 (rs6000_legitimate_constant_p): New function.
584
585 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
586 (rx_legitimate_constant_p): ...this.
587 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
588 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
589 (rx_legitimate_constant_p): ...this.
590 (TARGET_LEGITIMATE_CONSTANT_P): Define.
591 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
592
593 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
594 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
595 * config/s390/s390.c (legitimate_constant_p): Rename to...
596 (s390_legitimate_constant_p): ...this. Make static, return a bool,
597 and add a mode argument.
598 (TARGET_LEGITIMATE_CONSTANT_P): Define.
599
600 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
601
602 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
603 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
604 (sh_legitimate_constant_p): New function.
605
606 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
607 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
608 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
609 (legitimate_constant_p): Rename to...
610 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
611 argument.
612 (constant_address_p): Update accordingly.
613
614 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
615 argument and return a bool.
616 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
617 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
618 (spu_legitimate_constant_p): Add a mode argument and return a bool.
619 (spu_rtx_costs): Update accordingly.
620 * config/spu/predicates.md (vec_imm_operand): Likewise.
621
622 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
623
624 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
625 * config/v850/v850.c (v850_legitimate_constant_p): New function.
626 (TARGET_LEGITIMATE_CONSTANT_P): Define.
627
628 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
629 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
630 * config/vax/vax.c (legitimate_constant_p): Likewise.
631
632 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
633 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
634 (xtensa_legitimate_constant_p): New function.
635
fbbf66e7
RS
6362011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
637
638 * target.def (cannot_force_const_mem): Add a mode argument.
639 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
640 * doc/tm.texi: Regenerate.
641 * hooks.h (hook_bool_mode_rtx_false): Declare.
642 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
643 (hook_bool_mode_const_rtx_true): Likewise.
644 (hook_bool_mode_rtx_false): New function.
645 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
646 to be non-VOID. Update call to cannot_force_const_mem.
647 (find_reloads): Update accordingly.
648 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
649 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
650 argument.
651 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
652 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
653 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
654 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
655 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
656 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
657 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
658 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
659 (m68k_cannot_force_const_mem): ...this new function.
660 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
661 argument.
662 (mips_const_insns, mips_legitimize_const_move): Update calls.
663 (mips_secondary_reload_class): Likewise.
664 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
665 (pa_cannot_force_const_mem): ...this new function.
2894086e 666 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
667 (rs6000_cannot_force_const_mem): ...this new function.
668 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
669 argument.
670 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
671 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
672 to...
673 (xtensa_cannot_force_const_mem): ...this new function.
674
b861891b
NF
6752011-04-20 Nathan Froyd <froydnj@codesourcery.com>
676
677 * config/mips/mips.c (mips16_build_function_stub): Call
678 build_function_type_list instead of build_function_type.
679 (mips16_build_call_stub): Likewise.
680
34149ed5
NF
6812011-04-20 Nathan Froyd <froydnj@codesourcery.com>
682
683 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
684 instead of build_function_type.
685
12526412
NF
6862011-04-20 Nathan Froyd <froydnj@codesourcery.com>
687
688 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
689 instead of build_function_type.
690
3b84d61f
UB
6912011-04-20 Uros Bizjak <ubizjak@gmail.com>
692
693 PR target/48678
694 * config/i386/i386.md (insv): Change operand 0 constraint to
695 "register_operand". Change operand 1 and 2 constraint to
696 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
697 * config/i386/sse.md (sse4_1_pinsrb): Export.
698 (sse2_pinsrw): Ditto.
699 (sse4_1_pinsrd): Ditto.
700 (sse4_1_pinsrq): Ditto.
701 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
702 * config/i386/i386.c (ix86_expand_pinsr): New.
703
4a25752b
ER
7042011-04-20 Easwaran Raman <eraman@google.com>
705
706 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
707 containing union type only with -fstrict-aliasing.
708
04695783
JM
7092011-04-20 Jim Meyering <meyering@redhat.com>
710
711 Remove useless if-before-free tests.
712 * calls.c (expand_call, save_area): Likewise.
713 * cfgcleanup.c (try_forward_edges): Likewise.
714 * collect2.c (collect_execute): Likewise.
715 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
716 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
717 * coverage.c (coverage_checksum_string): Likewise.
718 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
719 * cselib.c (cselib_init): Likewise.
720 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
721 (df_set_clean_cfg): Likewise.
722 * function.c (free_after_compilation): Likewise.
723 * gcc.c (do_spec_1, main): Likewise.
724 * gcov.c (create_file_names): Likewise.
725 * gensupport.c (identify_predicable_attribute): Likewise.
726 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
727 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
728 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
729 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
730 * ipa-pure-const.c (local_pure_const): Likewise.
731 * ipa-reference.c (propagate): Likewise.
732 * ira-costs.c (free_ira_costs): Likewise.
733 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
734 * matrix-reorg.c (mat_free): Likewise.
735 * prefix.c (get_key_value): Likewise.
736 * profile.c (compute_value_histograms): Likewise.
737 * reload1.c (free_reg_equiv): Likewise.
738 * sched-deps.c (free_deps): Likewise.
739 * sel-sched-ir.c (fence_clear): Likewise.
740 * sese.c (set_rename, if_region_set_false_region): Likewise.
741 * tree-data-ref.c (free_rdg): Likewise.
742 * tree-eh.c (lower_try_finally): Likewise.
743 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
744 * tree-ssa-live.c (delete_var_map): Likewise.
745 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
746 * tree-ssa-pre.c (phi_trans_add): Likewise.
747
6788475a
JJ
7482011-04-20 Jakub Jelinek <jakub@redhat.com>
749
750 PR tree-optimization/48611
751 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
752 beyond ERT_MUST_NOT_THROW region.
753
0eda4033
CM
7542011-04-20 Catherine Moore <clm@codesourcery.com>
755
756 * config/mips/mips.opt (mfix-24k): New.
757 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
758 * config/mips/mips.md (length): Increase by 4 for stores if
759 fixing 24K errata.
760 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
761 all noreorder if fixing 24K errata.
762 * doc/invoke.texi: Document mfix-24k.
763
01475747
CLT
7642011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
765
766 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 767 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 768
bc2c1a60
AS
7692011-04-20 Andrew Stubbs <ams@codesourcery.com>
770
771 * config/arm/arm.c (arm_gen_constant): Move movw support ....
772 (const_ok_for_op): ... to here.
773
583722ee
KT
7742011-04-20 Kai Tietz <ktietz@redhat.com>
775
2894086e
UB
776 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
777 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 778
422c0989
AS
7792011-04-20 Andrew Stubbs <ams@codesourcery.com>
780
781 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
782
d7978bff
RG
7832011-04-20 Richard Guenther <rguenther@suse.de>
784
785 PR tree-optimization/47892
786 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
787 are if-convertible.
788
818412ba
EB
7892011-04-20 Eric Botcazou <ebotcazou@adacore.com>
790
791 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
792
b501ce4e
TG
7932011-04-20 Tristan Gingold <gingold@adacore.com>
794
795 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
796
516edfdd
GJL
7972011-04-20 Georg-Johann Lay <avr@gjlay.de>
798
799 PR target/18145
800
801 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
802 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
803 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
804 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
805 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
806
807 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
808 New prototype.
809
810 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
811 (avr_asm_named_section, avr_asm_output_aligned_common,
812 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
813 New functions to update...
814 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
815 (avr_asm_init_sections): Overwrite section callbacks for
816 data_section, bss_section.
817 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
818 from here to...
819 (avr_file_end): ...here.
820
dafc9511
RG
8212011-04-20 Richard Guenther <rguenther@suse.de>
822
823 PR middle-end/48695
824 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 825 objects and types here. Adjust for their offset before comparing.
dafc9511 826
1da0876c
RS
8272011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
828
829 * tree-vect-stmts.c (vectorizable_store): Only chain one related
830 statement per copy.
831
25583c4f
RS
8322011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
833
834 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
835 (GIMPLE_H): Include $(INTERNAL_FN_H).
836 (OBJS-common): Add internal-fn.o.
837 (internal-fn.o): New rule.
838 * internal-fn.def: New file.
839 * internal-fn.h: Likewise.
840 * internal-fn.c: Likewise.
841 * gimple.h: Include internal-fn.h.
842 (GF_CALL_INTERNAL): New gf_mask.
843 (gimple_statement_call): Put fntype into a union with a new
844 internal_fn field.
845 (gimple_build_call_internal): Declare.
846 (gimple_build_call_internal_vec): Likewise.
847 (gimple_call_same_target_p): Likewise.
848 (gimple_call_internal_p): New function.
849 (gimple_call_internal_fn): Likewise.
850 (gimple_call_fntype): Return null for internal calls.
851 (gimple_call_set_fntype): Assert that the function is not internal.
852 (gimple_call_set_fn): Likewise.
853 (gimple_call_set_fndecl): Likewise.
854 (gimple_call_set_internal_fn): New function.
855 (gimple_call_addr_fndecl): Handle null functions.
856 (gimple_call_return_type): Likewise null types.
857 * gimple.c (gimple_build_call_internal_1): New function.
858 (gimple_build_call_internal): Likewise.
859 (gimple_build_call_internal_vec): Likewise.
860 (gimple_call_same_target_p): Likewise.
861 (gimple_call_flags): Handle calls to internal functions.
862 (gimple_call_fnspec): New function.
863 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
864 (gimple_has_side_effects): Handle null functions.
865 (gimple_rhs_has_side_effects): Likewise.
866 (gimple_call_copy_skip_args): Handle calls to internal functions.
867 * cfgexpand.c (expand_call_stmt): Likewise.
868 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
869 * gimple-fold.c (gimple_fold_call): Handle null functions.
870 (gimple_fold_stmt_to_constant_1): Don't fold
871 calls to internal functions.
872 * gimple-low.c (gimple_check_call_args): Handle calls to internal
873 functions.
874 * gimple-pretty-print.c (dump_gimple_call): Likewise.
875 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
876 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
877 (do_warn_unused_result): Likewise.
878 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
879 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
880 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
881 the target of a call.
882 (initialize_hash_element): Update accordingly.
883 (hashable_expr_equal_p): Use gimple_call_same_target_p.
884 (iterative_hash_hashable_expr): Handle calls to internal functions.
885 (print_expr_hash_elt): Likewise.
886 * tree-ssa-pre.c (can_value_number_call): Likewise.
887 (eliminate): Handle null functions.
888 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
889 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
890 (find_func_aliases): Likewise.
891 * value-prof.c (gimple_ic_transform): Likewise.
892 (gimple_indirect_call_to_profile): Likewise.
893 * lto-streamer-in.c (input_gimple_stmt): Likewise.
894 * lto-streamer-out.c (output_gimple_stmt): Likewise.
895
1a3118e9
JH
8962011-04-19 Jan Hubicka <jh@suse.cz>
897
898 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
899 * ipa-inline.c (inline_small_functions): Compute summaries first,
900 populate heap later.
1a3118e9 901
fee8b6da
JH
9022011-04-19 Jan Hubicka <jh@suse.cz>
903
904 * cgraph.h (save_inline_function_body): Remove.
905 * ipa-inline-transform.c: New file, broke out of...
906 * ipa-inline.c: ... this one; Update toplevel comment.
907 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
908 make global.
909 (update_noncloned_frequencies): Move to ipa-inline-transform.c
910 (cgraph_mark_inline_edge): Rename to inline_call; move to
911 ipa-inline-transform.c.
912 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
913 move to ipa-inline-transform.c
914 (recursive_inlining, inline_small_functions, flatten_function,
915 ipa_inline, inline_always_inline_functions,
916 early_inline_small_functions): Update.
917 (inline_transform): Move to ipa-inline-transform.c.
918 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
919 Declare.
920 * Makefile.in (ipa-inline-transform.o): New file.
921 * cgraphunit.c (save_inline_function_body): Move to
922 ipa-inline-transform.c
923
f0679612
DD
9242011-04-19 DJ Delorie <dj@redhat.com>
925
926 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
927 registers if we already know there aren't any.
928 (m32c_emit_epilogue): Don't emit a barrier here.
929 (m32c_emit_eh_epilogue): Likewise.
930 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
931 operands at expand time.
932 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
933 int" wchar type.
934 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
935 duplicates. Provide aliases instead.
936 * config/m32c/prologue.md (eh_return): Emit a barrier here.
937 (eh_epilogue): Add a "(return)" here as a hint to other parts of
938 the compiler.
939
32257ddc
AS
9402011-04-19 Anatoly Sokolov <aesok@post.ru>
941
942 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
943 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
944 (general_or_i64_p, sparc_register_move_cost): New function.
945
60bea929
RO
9462011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
947
948 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 949 Add lynx, mipssde. Sort table.
60bea929 950
444b3995 9512011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 952
9d12f71a
EB
953 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
954 not negative.
444b3995 955
d708ce50
JJ
9562011-04-19 Jakub Jelinek <jakub@redhat.com>
957
958 PR target/48678
959 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
960 is a SUBREG with non-MODE_INT mode inside of it.
961
49c471e3
MJ
9622011-04-19 Martin Jambor <mjambor@suse.cz>
963
964 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
965 also according to actual contants.
966 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
967 (gimple_fold_call): Use it.
968 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
969
0004f992
MJ
9702011-04-19 Martin Jambor <mjambor@suse.cz>
971
972 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
973 non-pointer assignments.
974
40591473
MJ
9752011-04-19 Martin Jambor <mjambor@suse.cz>
976
977 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
978 account anc_offset and otr_type from the indirect edge info.
979 * ipa-prop.c (get_ancestor_addr_info): New function.
980 (compute_complex_ancestor_jump_func): Assignment analysis moved to
981 get_ancestor_addr_info, call it.
982 (ipa_note_param_call): Do not initialize information about polymorphic
983 calls, return the indirect call graph edge. Remove the last
984 parameter, adjust all callers.
985 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
986 parameters. Initialize polymorphic information in the indirect edge.
987
abe36b81
EB
9882011-04-19 Eric Botcazou <ebotcazou@adacore.com>
989
990 PR lto/48148
991 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
992 the types if they have different enumeration identifiers.
993
e6416b30
JH
9942011-04-19 Jan Hubicka <jh@suse.cz>
995
996 * cgraph.h (cgraph_optimize_for_size_p): Declare.
997 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
998 * predict.c (cgraph_optimize_for_size_p): Break out from ...
999 (optimize_function_for_size_p) ... here.
1000
d39132ea
RG
10012011-04-19 Richard Guenther <rguenther@suse.de>
1002
1003 PR lto/48207
1004 * tree.c (free_lang_data): Do not reset the decl-assembler-name
1005 langhook.
1006
ff7037dc
EB
10072011-04-19 Eric Botcazou <ebotcazou@adacore.com>
1008
1009 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
1010 if DECL_NO_INLINE_WARNING_P is set on the function.
1011
c1ee2892
BS
10122011-04-19 Bernd Schmidt <bernds@codesourcery.com>
1013
1014 PR fortran/47976
1015 * reload1.c (inc_for_reload): Return void. All callers changed.
1016 (emit_input_reload_insns): Don't try to delete previous output
1017 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
1018
10192011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
1020
1021 * gengtype.h: Updated copyright year.
1022 (struct input_file_st): Add inpisplugin field.
1023 (type_fileloc): New function.
1024 * gengtype.c
1025 (write_typed_struct_alloc_def): Add gcc_assert.
1026 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
1027 (write_typed_alloc_defns): Don't output for plugin files.
1028 (input_file_by_name): Clear inpisplugin field.
1029 (main): Set inpisplugin field for plugin files.
1030
897e0a89
NP
10312011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
1032
1033 * gengtype-state.c (string_eq): New.
1034 (read_state): Use string_eq instead of strcmp when creating the
1035 state_ident_tab.
1036
363ee90e
WG
10372011-04-19 Wei Guozhi <carrot@google.com>
1038
1039 PR target/47855
1040 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
1041 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
1042 linkage.
1043 * config/arm/constraints.md (Uu): New constraint.
1044 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
1045
18a24fed
TG
10462011-04-19 Tristan Gingold <gingold@adacore.com>
1047
1048 * config.gcc (-*-*-*vms): Added.
1049 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
1050 definitions moved.
1051 * config/vms/vms-ld.c: New file.
1052 * config/vms/vms-ar.c: New file.
1053 * config/vms/t-vmsnative: New file.
1054
1c13f168
XDL
10552011-04-18 Xinliang David Li <davidxl@google.com>
1056
1057 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
1058
84825707
JJ
10592011-04-18 Jakub Jelinek <jakub@redhat.com>
1060
1061 PR middle-end/48661
1062 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
1063 if TREE_TYPE (v) is non-NULL.
1064
1065 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
1066 gimple_get_virt_mehtod_for_binfo.
1067 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
1068 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
1069 callers.
1070 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1071
7d4f8d02 10722011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
1073 Steve Ellcey <sje@cup.hp.com>
1074
7d4f8d02
EB
1075 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
1076 use its mode as source mode if it isn't VOIDmode.
7254cb57 1077
474e8e70
DCR
10782011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
1079
1080 * doc/passes.texi: Fill crossref nodes.
1081
cff41484
JM
10822011-04-18 Jim Meyering <meyering@redhat.com>
1083
7d4f8d02 1084 Fix doubled-word typos in comments and strings
cff41484
JM
1085 * config/alpha/vms-unwind.h: s/for for/for/
1086 * config/arm/unwind-arm.h: Likewise.
1087 * config/microblaze/microblaze.c: Likewise.
1088 * config/sh/constraints.md: s/in in/in/
1089 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
1090
f60c2554
UB
10912011-04-18 Uros Bizjak <ubizjak@gmail.com>
1092
1093 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1094 (AVX_FLOAT_MODE_P): Ditto.
1095 (AVX128_VEC_FLOAT_MODE_P): Ditto.
1096 (AVX256_VEC_FLOAT_MODE_P): Ditto.
1097 (AVX_VEC_FLOAT_MODE_P): Ditto.
1098 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1099 (UNSPEC_MASKSTORE): Ditto.
1100 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1101 Merge from <sse>_movmsk<ssemodesuffix> and
1102 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
1103 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
1104 iterator.
1105 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1106 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1107 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1108
09a2806f
JH
11092011-04-18 Jan Hubicka <jh@suse.cz>
1110
8a8dccb2
JH
1111 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1112
09a2806f
JH
1113 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1114 (want_inline_function_called_once_p): Break out the logic from
1115 ipa_inline.
1116 (edge_badness): Ensure that profile is not misupdated.
1117 (lookup_recursive_calls): Prioritize by call frequencies.
1118 (inline_small_functions): Move program size estimates here;
1119 actually process whole queue even when unit growth has been
1120 met. (to properly compute inline_failed reasons and for the
f60c2554 1121 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
1122 (ipa_inline): Remove unit summary code; first inline hot calls
1123 of functions called once, cold calls next.
1124 (order, nnodes): Remove unused variables.
1125 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1126 (GTFILES): Remove ipa-inline.c
1127 * sel-sched.c (fill_insns): Silence uninitialized var warning.
1128
3eea52ef
EB
11292011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1130
1131 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1132
229a1c59 11332011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 1134 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
1135
1136 * arm.c (neon_builtin_type_bits): Remove.
1137 (typedef enum neon_builtin_mode): New.
1138 (T_MAX): Don't define.
1139 (typedef enum neon_builtin_datum): Remove bits, codes[],
1140 num_vars and base_fcode. Add mode, code and fcode.
1141 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1142 VAR10): Change accordingly.
1143 (neon_builtin_data[]): Change accordingly
1144 (arm_init_neon_builtins): Change accordingly.
1145 (neon_builtin_compare): Remove.
1146 (locate_neon_builtin_icode): Remove.
1147 (arm_expand_neon_builtin): Change accordingly.
1148
1149 * arm.h (enum arm_builtins): Move to ...
1150 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1151
1152 * arm.c (arm_builtin_decl): Declare.
1153 (TARGET_BUILTIN_DECL): Define.
1154 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1155 (arm_builtin_decls[]): New.
1156 (arm_init_neon_builtins): Store builtin declarations in
1157 arm_builtin_decls[].
1158 (arm_init_tls_builtins): Likewise.
1159 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
1160 (arm_builtin_decl): New.
1161
75e802cc
RG
11622011-04-18 Richard Guenther <rguenther@suse.de>
1163
1164 * tree.c (upper_bound_in_type): Build properly canonicalized
1165 INTEGER_CSTs.
1166 (lower_bound_in_type): Likewise.
1167
3b45a007
RG
11682011-04-18 Richard Guenther <rguenther@suse.de>
1169
1170 * gimple.h (gimple_call_addr_fndecl): New function.
1171 (gimple_call_fndecl): Use it.
1172 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1173 for direct calls.
1174 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1175 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1176
d25a79ea
RG
11772011-04-18 Richard Guenther <rguenther@suse.de>
1178
1179 PR middle-end/48650
1180 * tree.c (build_string): STRING_CST is now derived from tree_typed.
1181
7d5fc814
EB
11822011-04-18 Eric Botcazou <ebotcazou@adacore.com>
1183
1184 PR lto/48492
1185 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1186 DECL_IN_CONSTANT_POOL without RTL.
1187
7e7cfcf6
UW
11882011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
1189 Ira Rosen <ira.rosen@linaro.org>
1190
1191 PR target/48252
1192 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1193 to match neon_vzip/vuzp/vtrn_internal.
1194 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1195 outputs explicitly dependent on both inputs.
1196 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1197
49eab32e
JJ
11982011-04-18 Jakub Jelinek <jakub@redhat.com>
1199
1200 PR tree-optimization/48616
1201 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1202 whether the shift is by scalar or vector based on whether all SLP
1203 scalar stmts have the same rhs.
1204
e54170f4
CLT
12052011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
1206
1207 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1208 memory operands.
1209
b14ee6c9
RS
12102011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
1211
1212 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1213 registers.
1214
10158cd3
JH
12152011-04-17 Jan Hubicka <jh@suse.cz>
1216
1217 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
1218 * cgrpahunit.c (cgraph_finalize_function): Do not set
1219 finalized_by_frontend.
10158cd3
JH
1220 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1221 finalized_by_frontend.
1222
2e9bb6ba
JH
12232011-04-17 Jan Hubicka <jh@suse.cz>
1224
1225 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1226 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1227 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
1228 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1229 method.
2e9bb6ba
JH
1230 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1231 gimple-fold.c
1232 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1233
beb628e1
EB
12342011-04-17 Eric Botcazou <ebotcazou@adacore.com>
1235
1236 PR lto/48538
1237 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1238 is non-null before accessing it.
1239 (input_cgraph): Remove trailing spaces.
1240
3e2fdd24
RE
12412011-04-17 Revital Eres <revital.eres@linaro.org>
1242
1243 * params.def (sms-min-sc): New param flag.
1244 * modulo-sched.c (sms_schedule): Use it.
1245 * doc/invoke.texi (sms-min-sc): Document it.
1246
4c0f7679
JH
12472011-04-17 Jan Hubicka <jh@suse.cz>
1248
1249 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1250 present, also set gimple_call_set_cannot_inline.
1251 * ipa-inline.c: Update toplevel comment.
1252 (MAX_TIME): Remove.
1253 (cgraph_clone_inlined_nodes): Fix linebreaks.
1254 (cgraph_check_inline_limits): Restructure to ...
1255 (caller_growth_limits): ... this one; be more tolerant
1256 on growth in nested inline chains; add explanatory comment;
1257 fix stack accounting thinko introduced by previous patch.
1258 (cgraph_default_inline_p): Remove.
1259 (report_inline_failed_reason): New function.
1260 (can_inline_edge_p): New function.
1261 (can_early_inline_edge_p): New function.
1262 (leaf_node_p): Move upwards in file.
1263 (want_early_inline_function_p): New function.
1264 (want_inline_small_function_p): New function.
1265 (want_inline_self_recursive_call_p): New function.
1266 (cgraph_edge_badness): Rename to ...
1267 (edge_badness) ... this one; fix linebreaks.
1268 (update_edge_key): Update call of edge_baddness; add
1269 detailed dump about queue updates.
1270 (update_caller_keys): Use can_inline_edge_p and
1271 want_inline_small_function_p.
1272 (cgraph_decide_recursive_inlining): Rename to...
1273 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
1274 want_inline_self_recursive_call_p; simplify and remove no longer
1275 valid FIXME.
4c0f7679
JH
1276 (cgraph_set_inline_failed): Remove.
1277 (add_new_edges_to_heap): Use can_inline_edge_p and
1278 want_inline_small_function_p.
1279 (cgraph_decide_inlining_of_small_functions): Rename to ...
1280 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
1281 can/want predicates; cleanup debug ouput; work edges till fibheap
1282 is exhausted and do not stop once unit growth is reached; remove
1283 later loop processing remaining edges.
4c0f7679
JH
1284 (cgraph_flatten): Rename to ...
1285 (flatten_function): ... this one; use can_inline_edge_p
1286 and can_early_inline_edge_p predicates.
1287 (cgraph_decide_inlining): Rename to ...
1288 (ipa_inline): ... this one; remove unreachable nodes before
1289 inlining functions called once; simplify the pass.
1290 (cgraph_perform_always_inlining): Rename to ...
1291 (inline_always_inline_functions): ... this one; use
f60c2554 1292 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
1293 (cgraph_decide_inlining_incrementally): Rename to ...
1294 (early_inline_small_functions): ... this one; simplify
1295 using new predicates; cleanup; make dumps prettier.
1296 (cgraph_early_inlining): Rename to ...
1297 (early_inliner): newer inline regular functions into always-inlines;
1298 fix updating of call stmt summaries.
1299 (pass_early_inline): Update for new names.
1300 (inline_transform): Fix formating.
1301 (gate_cgraph_decide_inlining): Rename to ...
1302 (pass_ipa_inline): ... this one.
1303 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1304 * ipa-inline-analysis.c (dump_inline_summary): Update.
1305 (compute_inline_parameters): Do not compute disregard_inline_limits;
1306 look for mismatching arguments.
1307 (estimate_growth): Fix handlig of non-trivial self recursion.
1308 (inline_read_summary): Do not read info->disregard_inline_limits.
1309 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
1310 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1311 and move all checks into can_inline_edge_p predicate; re-enable code
1312 comparing optimization levels.
4c0f7679
JH
1313 (expand_call_inline): Do not test inline_forbidden_into_p.
1314 * Makefile.in (ipa-inline.o): Update arguments.
1315
54333b7c
RE
13162011-04-17 Revital Eres <revital.eres@linaro.org>
1317
1318 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1319
42c2bf92
RE
13202011-04-17 Revital Eres <revital.eres@linaro.org>
1321
1322 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1323
b183e9e0
MM
13242011-04-17 Michael Matz <matz@suse.de>
1325
1326 PR tree-optimization/48622
1327 PR lto/48645
1328 * ipa-inline-analysis.c (inline_read_summary): Read size/time
1329 in same order as they're written.
1330
b8a17fa2
JDA
13312011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1332
1333 * config/pa/predicates.md: Reorganize and simplify predicates.
1334 Eliminate duplicate code checks.
1335 (arith_operand): Rename to arith14_operand
1336 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1337 * config/pa/pa.md: Use renamed operands.
1338 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1339 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1340 arith11_operand, adddi3_operand, indexed_memory_operand,
1341 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1342 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1343 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1344 move_dest_operand, move_src_operand, prefetch_cc_operand,
1345 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1346 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1347 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1348 div_operand, int5_operand, movb_comparison_operator,
1349 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1350 arith_double_operand, ireg_operand, lhs_lshift_operand,
1351 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1352 integer_store_memory_operand): Likewise.
1353 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1354 (integer_store_memory_operand, read_only_operand,
1355 function_label_operand, borx_reg_operand,
1356 non_hard_reg_operand): Likewise.
1357 (eq_neq_comparison_operator): Delete unused operator.
1358 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1359 function_label_operand.
1360 (emit_move_sequence): Likewise.
1361
8dfb9f16
UB
13622011-04-16 Uros Bizjak <ubizjak@gmail.com>
1363
1364 * config/i386/sse.md (sseunpackmode): New mode attribute.
1365 (ssepackmode): Ditto.
1366 (vec_pack_trunc_<mode>): Macroize expander from
1367 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1368 (vec_unpacks_lo_<mode>): Macroize expander from
1369 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1370 (vec_unpacks_hi_<mode>): Macroize expander from
1371 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1372 (vec_unpacku_lo_<mode>): Macroize expander from
1373 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1374 (vec_unpacku_hi_<mode>): Macroize expander from
1375 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1376 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1377 ix86_expand_sse4_unpack.
1378 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1379
e7f23018
JH
13802011-04-16 Jan Hubicka <jh@suse.cz>
1381
1382 * cgraphbuild.c: Include ipa-inline.h.
1383 (reset_inline_failed): Use initialize_inline_failed.
1384 * cgraph.c: Include ipa-inline.h.
1385 (cgraph_create_node_1): Do not initialize estimated_growth.
1386 (initialize_inline_failed): More to ipa-inline-analysis.c
1387 (dump_cgraph_node): Do not dump inline flags.
1388 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1389 and disregard_inline_limits flags.
1390 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1391 time, size, estimated_growth.
8dfb9f16
UB
1392 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1393 Update.
e7f23018
JH
1394 * cgraphunit.c (cgraph_decide_is_function_needed): Use
1395 DECL_DISREGARD_INLINE_LIMITS.
1396 (cgraph_analyze_function): Do not initialize
1397 node->local.disregard_inline_limits.
1398 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1399 inlinable, versionable and disregard_inline_limits.
1400 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
1401 cgraph_check_inline_limits, cgraph_default_inline_p,
1402 cgraph_edge_badness, update_caller_keys, update_callee_keys,
1403 add_new_edges_to_heap): Update.
1404 (cgraph_decide_inlining_of_small_function): Update; set
1405 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
1406 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1407 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
1408 * ipa-inline.h (inline_summary): Add inlinable, versionable,
1409 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1410 time, size and estimated_growth parameters.
e7f23018
JH
1411 (estimate_edge_growth): Update.
1412 (initialize_inline_failed): Declare.
1413 * ipa-split.c: Include ipa-inline.h
1414 (execute_split_functions): Update.
1415 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1416 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1417 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1418 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1419 estimated_growth to INT_MIN.
1420 (inline_node_duplication_hook): Likewise.
1421 (dump_inline_summary): Dump new fields.
1422 (compute_inline_parameters): Update.
1423 (estimate_edge_time, estimate_time_after_inlining,
1424 estimate_size_after_inlining, estimate_growth, inline_read_summary,
1425 inline_write_summary):
1426 (initialize_inline_failed): Move here from cgraph.c.
1427 * tree-sra.c: Include ipa-inline.h.
1428 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
1429 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1430 ipa-inline.h.
e7f23018 1431
e81b8564
UB
14322011-04-16 Uros Bizjak <ubizjak@gmail.com>
1433
1434 * config/i386/sse.md (V16): New mode iterator.
1435 (VI1, VI8): Ditto.
1436 (AVXMODEQI, AVXMODEDI): Remove.
1437 (sse2, sse3): New mode attribute.
1438 (mov<mode>): Use V16 mode iterator.
1439 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1440 (push<mode>1): Use V16 mode iterator.
1441 (movmisalign<mode>): Ditto.
1442 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1443 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1444 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1445 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1446 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1447 avx_movdqu<avxmodesuffix>.
1448 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1449 *avx_movdqu<avxmodesuffix>.
1450 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1451 avx_lddqu<avxmodesuffix>.
1452 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1453 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1454 avx_movnt<AVXMODEDI:mode>.
1455 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1456 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1457
4743d438
BS
14582011-04-16 Bernd Schmidt <bernds@codesourcery.com>
1459
1460 PR target/48629
1461 * haifa-sched.c (prune_ready_list, schedule_block): Use
1462 sched_pressure_p rather than flag_sched_pressure.
1463
eb229cf4
PH
14642011-04-15 Pat Haugen <pthaugen@us.ibm.com>
1465
1466 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1467 cgraph_get_node instead of cgraph_get_create_node.
1468
2ba172e0
JJ
14692011-04-15 Jakub Jelinek <jakub@redhat.com>
1470
1471 * cfgexpand.c (expand_debug_expr): Use
1472 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1473
63d2a353
MM
14742011-04-15 Michael Matz <matz@suse.de>
1475
1476 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1477 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1478 * function.c (gimplify_parameters): Ditto.
1479 * gimplify.c (gimplify_vla_decl): Ditto.
1480
1481 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1482 (gimple_call_set_alloca_for_var): New inline function.
1483 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
1484 * gimple.c (gimple_build_call_from_tree): Remember
1485 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
1486 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1487
1488 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1489 calls if they were for VLA objects.
1490
dee74c34
MJ
14912011-04-15 Martin Jambor <mjambor@suse.cz>
1492
1493 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1494 of ADR_EXPRs.
1495
8e5837bc
MJ
14962011-04-15 Martin Jambor <mjambor@suse.cz>
1497
1498 PR middle-end/48601
1499 * tree-emutls.c (lower_emutls_function_body): Call
1500 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
1501 result is non-NULL.
1502
0dc33c3c
NP
15032011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1504
1505 * c-decl.c (detect_field_duplicates): Call
1506 objc_detect_field_duplicates instead of objc_get_interface_ivars.
1507
edcdea5b
NF
15082011-04-15 Nathan Froyd <froydnj@codesourcery.com>
1509
1510 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1511 * gimple.c (gimple_asm_clobbers_memory_p): Define.
1512 * ipa-pure-const.c (check_stmt): Call it.
1513 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1514
8456558d
RG
15152011-04-15 Richard Guenther <rguenther@suse.de>
1516
1517 PR tree-optimization/48290
1518 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1519 Properly decide inhibiting propagation based on the valueized
1520 operand. Do loop-closed SSA form preserving here ...
1521 (init_copy_prop): ... not here.
1522
266446be
L
15232011-04-15 H.J. Lu <hongjiu.lu@intel.com>
1524
1525 PR target/48612
1526 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1527 (*ieee_smax<mode>3): Likewise.
1528
17465c6e
AK
15292011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1530
1531 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1532 Replace match_operand with match_dup for the third operand in
1533 these expanders.
1534
bce204e5
MK
15352011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1536
1537 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1538 to track processing of conditionals. Update all callers.
1539 (try_combine, simplify_if_then_else): Update.
1540
3162fdf4
MK
15412011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1542
1543 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1544 -fsched-pressure.
1545
79002a57 15462011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 1547
79002a57
GJL
1548 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1549 instead of match_operand for operand 3.
1550
4fd3a105
RS
15512011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
1552
1553 * recog.h (insn_operand_data): Add an "allows_mem" field.
1554 * genoutput.c (output_operand_data): Initialize it.
1555 * optabs.c (maybe_legitimize_operand_same_code): New function.
1556 (maybe_legitimize_operand): Use it when matching the original
1557 op->value.
1558
ad19c4be
EB
15592011-04-15 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * gimplify.c: Fix issues in comments throughout.
1562 (voidify_wrapper_expr): Fix long line.
1563 (build_stack_save_restore): Likewise.
1564 (gimplify_loop_expr): Likewise.
1565 (gimplify_compound_lval): Likewise.
1566 (gimplify_init_ctor_eval): Likewise.
1567 (gimplify_modify_expr_rhs): Likewise.
1568 (omp_notice_threadprivate_variable): Likewise.
1569
b25aa0e8 15702011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 1571
b25aa0e8
EB
1572 * cfgexpand.c (expand_call_stmt): Convert the function type to the
1573 original one if this is not a builtin function.
e7925582 1574
09db7afe
JJ
15752011-04-14 Jakub Jelinek <jakub@redhat.com>
1576
1577 PR target/48605
1578 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1579 offset it as needed based on top 2 bits in operands[3], change
1580 MEM mode to SFmode and mask those 2 bits away from operands[3].
1581
c59633d9
NP
15822011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1583
1584 * c-parser.c (c_parser_objc_protocol_definition): Updated for
1585 change from objc_declare_protocols() to objc_declare_protocol().
1586
5e60198b
UB
15872011-04-14 Uros Bizjak <ubizjak@gmail.com>
1588
1589 * config/i386/sse.md (sse4_1): New mode attribute.
1590 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1591 avx_blend<ssemodesuffix><avxmodesuffix> and
1592 sse4_1_blend<ssemodesuffix> using VF mode iterator.
1593 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1594 avx_blendv<ssemodesuffix><avxmodesuffix> and
1595 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1596 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1597 avx_dp<ssemodesuffix><avxmodesuffix> and
1598 sse4_1_dp<ssemodesuffix> using VF mode iterator.
1599 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1600 (sse4_1_packusdw): Merge with *avx_packusdw.
1601 (sse4_1_pblendvb): Merge with *avx_pblendvb.
1602 (sse4_1_pblendw): Merge with *avx_pblendw.
1603 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1604 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1605 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1606 VF mode iterator.
1607 (sse4_1_round<ssescalarmodesuffix>): Merge with
1608 *avx_round<ssescalarmodesuffix>.
1609 (aesenc): Merge with *avx_aesenc.
1610 (aesenclast): Merge with *avx_aesenclast.
1611 (aesdec): Merge with *avx_aesdec.
1612 (aesdeclast): Merge with *avx_aesdeclast.
1613 (pclmulqdq): Merge with *pclmulqdq.
1614 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1615 New predicate.
1616 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1617
6f197850
L
16182011-04-14 H.J. Lu <hongjiu.lu@intel.com>
1619
1620 PR middle-end/48608
1621 * cfgexpand.c (get_decl_align_unit): Renamed to ...
1622 (align_local_variable): This. Update DECL_ALIGN.
1623 (add_stack_var): Updated.
1624 (expand_one_stack_var): Likewise.
1625
4a5ba3ed
RG
16262011-04-14 Richard Guenther <rguenther@suse.de>
1627
1628 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1629 Remove.
1630 (dse_initialize_block_local_data, dse_leave_block,
1631 record_voperand_set, get_stmt_uid): Likewise.
1632 (dse_possible_dead_store_p): Allow any kind of killing stmt.
1633 (dse_optimize_stmt): Remove voperand set handling code.
1634 Simplify and improve to handle any kind of killing stmt.
1635 (dse_record_phi): Remove.
1636 (dse_enter_block): Simplify.
1637 (tree_ssa_dse): Likewise.
1638 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1639
10a5dd5d
JH
16402011-04-14 Jan Hubicka <jh@suse.cz>
1641
1642 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1643 * cgraph.h (struct inline_summary): Move to ipa-inline.h
1644 (cgraph_local_info): Remove inline_summary.
1645 * ipa-cp.c: Include ipa-inline.h.
1646 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1647 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1648 accesor.
1649 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1650 (input_overwrite_node): Do not set inline summary.
1651 (input_node): Do not stream inline summary.
1652 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1653 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1654 growth; we do not have inline parameters computed for that anyway.
1655 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1656 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1657 (inline_summary_t): New type and VECtor.
1658 (debug_inline_summary, dump_inline_summaries): Declare.
1659 (inline_summary): Use VOCtor.
1660 (estimate_edge_growth): Kill hack computing call stmt size directly.
1661 * lto-section-in.c (lto_section_name): Add inline section.
1662 * ipa-inline-analysis.c: Include lto-streamer.h
1663 (node_removal_hook_holder, node_duplication_hook_holder): New holders
1664 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1665 (inline_summary_vec): Define.
1666 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1667 dump_inline_summaries): New functions.
5e60198b
UB
1668 (estimate_function_body_sizes): Properly compute size/time of outgoing
1669 calls.
1670 (compute_inline_parameters): Alloc inline_summary; do not compute
1671 size/time of incomming calls.
10a5dd5d
JH
1672 (estimate_edge_time): Avoid missing time summary hack.
1673 (inline_read_summary): Read inline summary info.
1674 (inline_write_summary): Write inline summary info.
1675 (inline_free_summary): Free all hooks and inline summary vector.
1676 * lto-streamer.h: Add LTO_section_inline_summary section.
1677 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1678 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1679
b602d918
RS
16802011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1681
1682 * tree-vectorizer.h (vect_strided_store_supported): Add a
1683 HOST_WIDE_INT argument.
1684 (vect_strided_load_supported): Likewise.
1685 (vect_permute_store_chain): Return void.
1686 (vect_transform_strided_load): Likewise.
1687 (vect_permute_load_chain): Delete.
1688 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1689 count argument. Check that the count is a power of two.
1690 (vect_strided_load_supported): Likewise.
1691 (vect_permute_store_chain): Return void. Update after above changes.
1692 Assert that the access is supported.
1693 (vect_permute_load_chain): Likewise.
1694 (vect_transform_strided_load): Return void.
1695 * tree-vect-stmts.c (vectorizable_store): Update calls after
1696 above interface changes.
1697 (vectorizable_load): Likewise.
1698 (vect_analyze_stmt): Don't check for strided powers of two here.
1699
ab4472fa
RG
17002011-04-14 Richard Guenther <rguenther@suse.de>
1701
1702 PR tree-optimization/48590
1703 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1704 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1705 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1706 BUILT_IN_STACK_SAVE.
1707 * tree-ssa-dce.c (propagate_necessity): Handle
1708 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1709
32dabdaf
NP
17102011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1711
1712 * c-parser.c (c_parser_objc_class_declaration): Updated call to
1713 objc_declare_class.
1714
daade206
RG
17152011-04-14 Richard Guenther <rguenther@suse.de>
1716
1717 * tree.h (get_object_alignment_1): Declare.
1718 * builtins.c (get_object_alignment_1): Split out worker from ...
1719 (get_object_alignment): ... here.
1720 * fold-const.c (get_pointer_modulus_and_residue): Use
1721 get_object_alignment_1.
1722
920e8172
RS
17232011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1724
1725 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1726 type parameter.
1727 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1728 parameter. Generalise code to handle arrays as well as vectors.
1729 (vect_setup_realignment): Update accordingly.
1730 * tree-vect-stmts.c (vectorizable_store): Likewise.
1731 (vectorizable_load): Likewise.
1732
5ce1ee7f
RS
17332011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
1734
1735 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1736 within the per-copy loop.
1737
6438fe33 17382011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
1739
1740 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1741 in the dump file.
1742
6438fe33 17432011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
1744
1745 * doc/options.texi (Negative): Explicitly mention that the
1746 Negative chain must be circular.
1747
61e46a7d
NF
17482011-04-14 Nathan Froyd <froydnj@codesourcery.com>
1749
1750 * function.h (block_chainon): Declare.
1751 * function.c (block_chainon): Define.
1752
43ea6502 17532011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b
UB
1754 Eric Weddington <eric.weddington@atmel.com>
1755 Georg-Johann Lay <avr@gjlay.de>
1756
f60c2554 1757 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
1758 New Includes
1759 (avr_init_builtins, avr_expand_builtin,
1760 avr_expand_delay_cycles, avr_expand_unop_builtin,
1761 avr_expand_binop_builtin ): New functions.
1762 (avr_builtin_id): New enum
1763 (struct avr_builtin_description): New struct
1764 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1765 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 1766
43ea6502 1767 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 1768 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
1769 UNSPECV_DELAY_CYCLES): new enumeration values
1770 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1771 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1772 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1773 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1774 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1775 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1776 "fmulsu"): New insns
5e60198b 1777
43ea6502
AS
1778 * config/avr/avr-c.c: fix line endings
1779 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1780 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1781 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1782 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1783 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 1784
43ea6502
AS
1785 * doc/extend.texi (AVR Built-in Functions): New node
1786 (Target Builtins): Add documentation of AVR
1787 built-in functions.
1788
8a9b55f3
GJL
17892011-04-14 Georg-Johann Lay <avr@gjlay.de>
1790
1791 PR target/44643
1792 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1793 alone. Error if non-const data has attribute progmem.
1794
94bd1825
NF
17952011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1796
1797 * tree.h (struct tree_constructor): Include tree_typed instead of
1798 tree_common.
1799 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1800 TS_TYPED instead of TS_COMMON.
1801
5e60198b 18022011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
1803
1804 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1805 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1806 (sse2_psadbw): Merge with *avx_psadbw.
1807 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1808 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1809 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1810 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1811 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1812 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1813 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1814 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1815 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1816 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1817 (ssse3_palignrti): Merge with *avx_palignrti.
1818
4b1a4694
NF
18192011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1820
1821 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1822 * tree-ssanames.c (fini_ssanames): VEC_free it.
1823 (make_ssa_name_fn): Update for VECness of free_ssanames.
1824 (release_ssa_name, release_dead_ssa_names): Likewise.
1825 * tree.h (struct tree_ssa_name): Include tree_typed instead of
1826 tree_common.
1827 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1828 TS_TYPED instead of TS_COMMON.
1829
4da3b811
NF
18302011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1831
1832 * postreload-gcse.c (gcse_after_reload_main): Add calls to
1833 statistics_counter_event.
1834 * tree-ssa-copyrename.c (stats): Define.
1835 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
1836 statistics_counter_event.
1837 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1838 (bswap_stats, widen_mul_stats): Define.
1839 (insert_reciprocals): Increment rdivs_inserted.
1840 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
1841 rfuncs_inserted. Add calls to statistics_counter_event.
1842 (execute_cse_sincos_1): Increment inserted.
1843 (execute_cse_sincos): Zeroize sincos_stats. Add call to
1844 statistics_counter_event.
1845 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
1846 of bswap_stats. Add calls to statistics_counter_event.
1847 (convert_mult_to_widen): Increment widen_mults_inserted.
1848 (convert_plusminus_to_widen): Increment maccs_inserted.
1849 (convert_mult_to_fma): Increment fmas_inserted.
1850 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
1851 calls to statistics_counter_event.
1852
89fa552a
VM
18532011-04-13 Vladimir Makarov <vmakarov@redhat.com>
1854
1855 PR rtl-optimization/48455
1856 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1857 `temp_costs->mem_cost'.
1858
03dfc36d
JH
18592011-04-13 Jan Hubicka <jh@suse.cz>
1860
1861 * ipa-inline.h: New file.
1862 * ipa-inline-analysis.c: New file. Broken out of ...
1863 * ipa-inline.c: ... this file; update toplevel comment;
1864 include ipa-inline.h
1865 (inline_summary): Move to ipa-inline.h
1866 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1867 ipa-inline-analysis.c.
7d4f8d02
EB
1868 (cgraph_estimate_time_after_inlining): Rename to
1869 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
1870 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1871 to estimate_edge_growth.
1872 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1873 rename to estimate_size_after_inlining.
1874 (cgraph_mark_inline_edge): Update for new naming convention.
1875 (cgraph_check_inline_limits): Likewise.
1876 (cgraph_edge_badness): Likewise.
1877 (cgraph_decide_recursive_inlining): Likewise.
1878 (cgraph_decide_inlining_of_small_functions): Likewise.
1879 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
1880 (cgraph_estimate_growth): Rename to estimate_growth; move to
1881 ipa-inline-analysis.c.
03dfc36d
JH
1882 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1883 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1884 (compute_inline_parameters): Likewise.
1885 (compute_inline_parameters_for_current): Likewise.
1886 (pass_inline_parameters): Likewise.
1887 (inline_indirect_intraprocedural_analysis): Likewise.
1888 (analyze_function): Rename to inline_analyze_function; likewise.
1889 (add_new_function): Move to ipa-inline-analysis.c.
1890 (inline_generate_summary): Likewise.
1891 (inline_read_summary): Likewise.
1892 (inline_write_summary): Likewise.
1893 * Makefile.in (ipa-inline-analysis.c): New file.
1894
7673c962
RO
18952011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1896
1897 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1898 * configure: Regenerate.
1899
9698252f
NF
19002011-04-13 Nathan Froyd <froydnj@codesourcery.com>
1901
1902 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1903 instead of tree_common.
1904 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1905 Likewise.
1906 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1907 TS_TYPED rather than TS_COMMON.
1908 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1909
3a7bfdd5
GJL
19102011-04-01 Georg-Johann Lay <avr@gjlay.de>
1911
1912 PR target/45263
86d83530
GJL
1913 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1914 r20 around calls of __tablejump_elpm__
3a7bfdd5 1915
20790697
JJ
19162011-04-13 Jakub Jelinek <jakub@redhat.com>
1917
1918 PR middle-end/48591
1919 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1920 NULL.
1921 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1922
094d7661
BS
19232011-04-13 Bernd Schmidt <bernds@codesourcery.com>
1924
1925 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1926 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1927 (cfi_vec): New typedef.
1928 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1929 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1930 (cie_cfi_vec): New static variable.
1931 (cie_cfi_head): Delete.
1932 (add_cfi): Accept a cfi_vec * as first argument. All callers and
1933 declaration changed. Use vector rather than list operations.
1934 (new_cfi): Don't initialize the dw_cfi_next field.
1935 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1936 rather than list operations.
1937 (lookup_cfa): Use vector rather than list operations.
1938 (output_cfis): New argument upto. Accept a cfi_vec rather than
1939 a dw_cfi_ref list head as argument. All callers changed.
1940 Iterate over the vector using upto as a maximum index.
1941 (output_all_cfis): New static function.
1942 (output_fde): Use vector rather than list operations. Use the
1943 new upto argument for output_cfis rather than manipulating a
1944 list.
1945 (dwarf2out_begin_prologue): Change initializations to match
1946 new struct members.
1947 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1948 from the vector length rather than searching for the end of a list.
1949 Use output_all_cfis.
1950 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1951
673a5740
NC
19522011-04-13 Nick Clifton <nickc@redhat.com>
1953
1954 * config/rx/rx.md (movmemsi): Do not use this pattern when
1955 volatile pointers are involved.
1956
1ee8b298
UB
19572011-04-13 Uros Bizjak <ubizjak@gmail.com>
1958
1959 * config/i386/sse.md (pinsrbits): Remove.
1960 (sse2_packsswb): Merge with *avx_packsswb.
1961 (sse2_packssdw): Merge with *avx_packssdw.
1962 (sse2_packuswb): Merge with *avx_packuswb.
1963 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1964 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1965 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1966 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1967 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1968 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1969 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1970 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1971 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1972 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1973 (sse2_loadld): Merge with *avx_loadld.
1974 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1975 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1976 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1977 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1978 (vec_concatv2di): Merge with *vec_concatv2di_avx.
1979
81f653d6
NF
19802011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1981
1982 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1983 calling TREE_CHAIN.
1984 * print-tree.c (print_node): Likewise.
1985 * tree-inline.c (copy_tree_r): Likewise.
1986 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1987 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1988 instead of TS_COMMON.
1989 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1990 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1991 (copy_node_stat): Zero TREE_CHAIN only if necessary.
1992 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1993 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1994 ...and these...
1995 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1996 * tree.h: ...here.
1997 (TREE_CHAIN): Check for a TS_COMMON structure.
1998 (TREE_TYPE): Check for a TS_TYPED structure.
1999
ed940a4a
PH
20002011-04-12 Pat Haugen <pthaugen@us.ibm.com>
2001
2002 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
2003 cgraph_get_create_node instead of cgraph_node.
2004
eb345401
NP
20052011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2006
2007 * c-parser.c (c_parser_initelt): Updated call to
2008 objc_build_message_expr.
2009 (c_parser_postfix_expression): Likewise.
2010
a6c46762
KT
20112011-04-12 Kai Tietz <ktietz@redhat.com>
2012
2013 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
2014 MASK_MS_BITFIELD_LAYOUT bit.
2015
b4ccfed9
JJ
20162011-04-12 Jakub Jelinek <jakub@redhat.com>
2017
2018 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
2019 assert it is always true.
2020 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
2021 moves.
2022
0d8a2528
NP
20232011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2024
2025 * c-parser.c (c_lex_one_token): Rewritten conditional used when
2026 compiling Objective-C to be more efficient.
2027
06bd234a
AF
20282011-04-12 Axel Freyn <axel-freyn@gmx.de>
2029
2030 * opts-common.c (decode_cmdline_options_to_array): Remove variable
2031 argv_copied.
2032
28569ac3
RS
20332011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2034
2035 * recog.h, genoutput.c, optabs.c: Revert last patch.
2036
ae59e00d
RR
20372011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2038
81b1e7eb
UB
2039 PR target/48090
2040 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 2041
cff1b7e0
RS
20422011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2043
2044 * recog.h (insn_operand_data): Add an "allows_mem" field.
2045 * genoutput.c (output_operand_data): Initialize it.
2046 * optabs.c (maybe_legitimize_operand_same_code): New function.
2047 (maybe_legitimize_operand): Use it when matching the original
2048 op->value.
2049
77059241
RS
20502011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2051
2052 * genpreds.c (process_define_predicate): Move most processing
2053 to gensupport.c. Continue to validate the expression.
2054 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
2055 (process_define_predicate): Move processing to gensupport.c.
2056 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
2057 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
2058 (compute_predicate_codes): Moved from genrecog.c. Add lineno
2059 argument.
2060 (valid_predicate_name_p): New function, split out from old
2061 genpreds.c:process_define_predicate.
2062 (process_define_predicate): New function, combining code from
2063 old genpreds.c and genrecog.c functions.
2064 (process_rtx): Call it for DEFINE_PREDICATE and
2065 DEFINE_SPECIAL_PREDICATE.
2066
6308e208
RS
20672011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
2068
2069 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
2070 size of a '%A' memory reference.
2071 (T_DREG, T_QREG): New neon_builtin_type_bits.
2072 (arm_init_neon_builtins): Assert that the load and store operands
2073 are neon_struct_operands.
2074 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
2075 (NEON_ARG_MEMORY): New builtin_arg.
2076 (neon_dereference_pointer): New function.
2077 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
2078 Handle NEON_ARG_MEMORY.
2079 (arm_expand_neon_builtin): Update after above interface changes.
2080 Use NEON_ARG_MEMORY for loads and stores.
2081 * config/arm/predicates.md (neon_struct_operand): New predicate.
2082 * config/arm/iterators.md (V_two_elem): Tweak formatting.
2083 (V_three_elem): Use BLKmode for accesses that have no associated mode.
2084 (V_four_elem): Tweak formatting.
2085 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
2086 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
2087 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
2088 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
2089 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
2090 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2091 (neon_vst4<mode>): Replace pointer operand with a memory operand.
2092 Use %A in the output template.
2093 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2094 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2095 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2096 the width of the memory access. Remove post-increment.
2097 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2098
e5db8f2f
NC
20992011-04-12 Nick Clifton <nickc@redhat.com>
2100
2101 * config/v850/v850.c (expand_prologue): Do not use the CALLT
2102 instruction for interrupt handlers if the target is the basic V850
2103 architecture.
2104 (expand_epilogue): Likewise.
2105
74f091d6
JJ
21062011-04-12 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR rtl-optimization/48549
2109 * combine.c (propagate_for_debug): Also stop after BB_END of
2110 this_basic_block. Process LAST and just stop processing after it.
2111 (combine_instructions): If last_combined_insn has been deleted,
2112 set last_combined_insn to its PREV_INSN.
2113
f20ca725
RG
21142011-04-12 Richard Guenther <rguenther@suse.de>
2115
2116 PR tree-optimization/46076
2117 * gimple.h (struct gimple_statement_call): Add fntype field.
2118 (gimple_call_fntype): Adjust.
2119 (gimple_call_set_fntype): New function.
2120 * gimple.c (gimple_build_call_1): Set the call function type.
2121 * gimplify.c (gimplify_call_expr): Preserve the function
2122 type the frontend used for the call.
2123 (gimplify_modify_expr): Likewise.
2124 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2125 function type.
2126 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2127 function type.
2128 * tree-ssa.c (useless_type_conversion_p): Function pointer
2129 conversions are useless.
2130
a358e188
MJ
21312011-04-12 Martin Jambor <mjambor@suse.cz>
2132
2133 * cgraph.h (cgraph_node): Remove function declaration.
2134 (cgraph_create_node): Declare.
2135 (cgraph_get_create_node): Likewise.
2136 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2137 Updated all callers.
2138 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2139 the decl does not already exist. Call cgraph_get_create_node instead
2140 of cgraph_node.
2141 (cgraph_get_create_node): New function.
2142 (cgraph_same_body_alias): Update comment.
2143 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2144 assert it does not return NULL.
2145 (cgraph_update_edges_for_call_stmt): Likewise.
2146 (cgraph_clone_edge): Likewise.
2147 (cgraph_create_virtual_clone): Likewise.
2148 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2149 instead of cgraph_node.
2150 (cgraph_add_new_function): Call cgraph_create_node or
2151 cgraph_get_create_node instead of cgraph_node.
2152 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2153 instead of cgraph_node.
2154 (record_eh_tables): Likewise.
2155 (mark_address): Likewise.
2156 (mark_load): Likewise.
2157 (build_cgraph_edges): Call cgraph_get_create_node instead
2158 of cgraph_node.
2159 (rebuild_cgraph_edges): Likewise.
2160 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2161 instead of cgraph_node.
2162 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2163 cgraph_node.
2164 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2165 cgraph_create_node instead of cgraph_node.
2166 * c-decl.c (finish_function): Call cgraph_get_create_node instead
2167 of cgraph_node.
2168 * lto-cgraph.c (input_node): Likewise.
2169 * lto-streamer-in.c (input_function): Likewise.
2170 * varasm.c (mark_decl_referenced): Likewise.
2171 (assemble_alias): Likewise.
2172
fe660d7b
MJ
21732011-04-12 Martin Jambor <mjambor@suse.cz>
2174
2175 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2176 instead of cgraph_node and assert it does not return NULL.
2177 * lto-streamer-in.c (lto_read_body): Likewise.
2178 * omp-low.c (new_omp_context): Likewise.
2179 (create_task_copyfn): Likewise.
2180 * tree-emutls.c (lower_emutls_function_body): Likewise.
2181 * matrix-reorg.c (transform_allocation_sites): Likewise.
2182
bae5cddf
JJ
21832011-04-12 Jakub Jelinek <jakub@redhat.com>
2184
2185 PR c/48552
2186 * c-typeck.c (build_asm_expr): Error out on attempts to use
2187 void type outputs or inputs for constraints that allow reg or
2188 don't allow memory.
2189
06eb52ca
CLT
21902011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
2191 Richard Earnshaw <rearnsha@arm.com>
2192
2193 PR target/48250
2194 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2195 to use sign-magnitude offsets. Reject unsupported unaligned
2196 cases. Add detailed description in comments.
2197 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2198 condition from TARGET_32BIT to TARGET_ARM.
2199
648a616b
NF
22002011-04-11 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * tree.h (struct typed_tree): New.
2203 (struct tree_common): Include it instead of tree_base.
2204 (TREE_TYPE): Update for new location of type field.
2205 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2206 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2207 (union tree_node): Add typed field.
2208 * treestruct.def (TS_TYPED): New.
2209 * lto-streamer.c (check_handled_ts_structures): Handle it.
2210 * tree.c (MARK_TS_TYPED): New macro.
2211 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2212
1e6d1da0
EB
22132011-04-11 Eric Botcazou <ebotcazou@adacore.com>
2214
2215 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2216 (force_nonfallthru): Do not alter the loop nest if no basic block
2217 was created.
2218
22192011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
2220
2221 * config/i386/sse.md (VI): New mode iterator.
2222 (SSEMODEI): Remove.
2223 (AVX256MODEI): Ditto.
2224 (AVXMODEF4P): Ditto.
2225 (avxvecpsmode): Ditto.
2226 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
2227 (sse2_andnot<mode>3): New expander.
2228 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2229 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
2230 (<any_logic:code><mode>3): Use VI mode iterator.
2231 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2232 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
2233 (*andnottf3): Handle AVX three-operand constraints.
2234 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2235
b1372d5d 22362011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 2237 Robert Millan <rmh@gnu.org>
b1372d5d
JM
2238
2239 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2240 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2241 GNU_USER_DYNAMIC_LINKER64): Define.
2242 (REG_NAME): Don't undefine.
2243 (MD_UNWIND_SUPPORT): Undefine.
2244 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2245 (REG_NAME): Don't undefine.
2246 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 2247 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 2248
761c0c6e
JM
22492011-04-11 Joseph Myers <joseph@codesourcery.com>
2250
2251 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2252 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2253
26e0228f
XDL
22542011-04-11 Xinliang David Li <davidxl@google.com>
2255
2256 * value-profile.c (check_ic_target): New function.
2257 (gimple_ic_transform): Sanity check indirect call target.
2258 * gimple-low.c (gimple_check_call_args): Interface change.
2259 (gimple_check_call_matching_types): New function.
2260 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
2261
22622011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
2263
2264 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2265 tree-pretty-print.h & realmpfr.h.
2266
a58dfa49
VM
22672011-04-11 Vladimir Makarov <vmakarov@redhat.com>
2268
2269 PR middle-end/48464
2270 * ira.c (setup_pressure_classes): Fix typo in loop condition.
2271 (setup_allocno_and_important_classes): Ditto.
2272
107fd1c1
JM
22732011-04-11 Joseph Myers <joseph@codesourcery.com>
2274
2275 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2276 GNU_USER_DYNAMIC_LINKER.
2277 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2278 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2279 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2280 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2281 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2282 GNU_USER_TARGET_OS_CPP_BUILTINS.
2283 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2285 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2287 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2288 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2289 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2290 GNU_USER_TARGET_OS_CPP_BUILTINS.
2291 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2292 GNU_USER_DYNAMIC_LINKER.
2293 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2294 GNU_USER_TARGET_OS_CPP_BUILTINS.
2295 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2296 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2297 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2298 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2299 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2300 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2301 GNU_USER_DYNAMIC_LINKER64): Remove.
2302 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2303 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2304 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2305 GNU_USER_DYNAMIC_LINKER.
2306 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2307 GNU_USER_TARGET_OS_CPP_BUILTINS.
2308 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2309 GNU_USER_TARGET_OS_CPP_BUILTINS.
2310 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2311 to GNU_USER_TARGET_OS_CPP_BUILTINS.
2312 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2313 GNU_USER_TARGET_OS_CPP_BUILTINS.
2314 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2315 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2316 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2317 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2318 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2319 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2320 GNU_USER_DYNAMIC_LINKER.
2321 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2322 GNU_USER_TARGET_OS_CPP_BUILTINS.
2323 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2324 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2325 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2326 GNU_USER_DYNAMIC_LINKER.
2327 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2328 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2329 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2330 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2331 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2332 GNU_USER_DYNAMIC_LINKER.
2333 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2334 GNU_USER_DYNAMIC_LINKERN32.
2335 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2336 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
2337 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
2338 GNU_USER_DYNAMIC_LINKER32.
2339 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2340 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2341 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2342 GNU_USER_DYNAMIC_LINKER.
2343 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2344 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2345 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2346 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 2347 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
2348 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2349 GNU_USER_DYNAMIC_LINKER32.
2350 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2351 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2352 GNU_USER_DYNAMIC_LINKER.
2353 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2354 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2355 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2356 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
2357 GNU_USER_DYNAMIC_LINKER64.
2358 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2360 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2361 GNU_USER_DYNAMIC_LINKER.
2362 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2364 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2365 GNU_USER_DYNAMIC_LINKER.
2366 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2368 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2369 GNU_USER_DYNAMIC_LINKER32.
2370 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2371 GNU_USER_DYNAMIC_LINKER64.
2372 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2373 GNU_USER_DYNAMIC_LINKER64.
2374 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2376 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2377 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 2378 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 2379
e24609cf
JM
23802011-04-11 Joseph Myers <joseph@codesourcery.com>
2381
2382 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
2383 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2384 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2385 GNU_USER_DYNAMIC_LINKER.
2386 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2387 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
2388 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2389 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2390 GNU_USER_DYNAMIC_LINKER64.
2391 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2392 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2393 GNU_USER_LINK_EMULATION.
2394 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2395 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2396 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2397 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2398 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2399 CPP_SPEC, CC1_SPEC): Remove.
2400 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2401 (GNU_USER_DYNAMIC_LINKER): Define.
2402 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2403 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2404 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2405 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2406 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2407 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2408 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2409 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2410 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2411 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2412 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2413 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2414 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2415 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2416 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2417 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2418 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2419 GNU_USER_DYNAMIC_LINKER.
2420 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2421 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2422 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2423 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2424 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2425 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
2426 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2427 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2428 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 2429 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 2430
b8ce4e94
KT
24312011-04-11 Kai Tietz <ktietz@redhat.com>
2432
2433 PR target/9601
2434 PR target/11772
2435 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2436 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2437 comment.
2438 (ix86_is_msabi_thiscall): Removed.
2439 (ix86_is_type_thiscall): Likewise.
2440 (ix86_get_callcvt): New function.
2441 (ix86_comp_type_attributes): Simplify check.
2442 (ix86_function_regparm): Use ix86_get_callcvt for calling
2443 convention attribute checks.
2444 (ix86_return_pops_args): Likewise.
2445 (ix86_static_chain): Likewise.
2446 (x86_this_parameter): Likewise.
2447 (x86_output_mi_thunk): Likewise.
2448 (ix86_function_type_abi): Optimize check for types without attributes.
2449 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2450 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2451 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2452 by flag-values.
2453 (IX86_BASE_CALLCVT): Helper macro.
2454 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2455 Use ix86_get_callcvt for calling convention attribute checks and avoid
2456 symbol-decoration for stdcall in TARGET_RTD case.
2457 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2458 Likewise.
2459 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2460 for declaration.
2461
798dd0ba
UB
24622011-04-11 Uros Bizjak <ubizjak@gmail.com>
2463
2464 * config/i386/sse.md (VI_128): New mode iterator.
2465 (VI12_128): Rename from SSEMODE12.
2466 (VI14_128): Rename from SSEMODE14.
2467 (VI124_128): New mode iterator.
2468 (VI24_128): Rename from SSEMODE248.
2469 (VI248_128): Rename from SSEMODE248.
2470 (SSEMODE124C8): Remove.
2471 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2472 (*sse2_<plusminus_insn><mode>3): Merge with
2473 *avx_<plusminus_insn><mode>3.
2474 (*mulv8hi3): Merge with *avx_mulv8hi3.
2475 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2476 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2477 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2478 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2479 (ashr<mode>3): Merge with *avx_ashr<mode>3.
2480 (lshr<mode>3): Merge with *avx_lshr<mode>3.
2481 (ashl<mode>3): Merge with *avx_ashl<mode>3.
2482 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2483 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2484 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2485 (*<smaxmin:code>v8hi3): Ditto.
2486 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2487 (*<smaxmin:code>v16qi3): Ditto.
2488 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2489 (*sse2_eq<mode>3): Ditto.
2490 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2491 (*sse2_gt<mode>3): Ditto.
2492 (vcondv2di): Split out of vcond<mode>.
2493 (vconduv2di): Split out of vcondu<mode>.
2494
956011be
RG
24952011-04-11 Richard Guenther <rguenther@suse.de>
2496
2497 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2498 before calling tree_low_cst.
2499
e6313a78
RG
25002011-04-11 Richard Guenther <rguenther@suse.de>
2501
2502 * stor-layout.c (layout_type): Compute all array index size operations
2503 in the original type.
2504 (initialize_sizetypes): Add comment.
2505 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2506
e69d7376
JM
25072011-04-11 Joseph Myers <joseph@codesourcery.com>
2508
2509 * common.opt (Tbss=, Tdata=, Ttext=): New options.
2510
9f9ebcdf
MJ
25112011-04-11 Martin Jambor <mjambor@suse.cz>
2512
2513 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2514 of cgraph_node, handle NULL return value.
2515 (cgraph_global_info): Likewise.
2516 (cgraph_rtl_info): Likewise.
2517 * tree-inline.c (estimate_num_insns): Likewise.
2518 * gimplify.c (unshare_body): Likewise.
2519 (unvisit_body): Likewise.
2520 (gimplify_body): Likewise.
2521 * predict.c (optimize_function_for_size_p): Likewise.
2522 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2523 (call_may_clobber_ref_p_1): Likewise.
2524 * varasm.c (function_section_1): Likewise.
2525 (assemble_start_function): Likewise.
2526
581985d7
MJ
25272011-04-11 Martin Jambor <mjambor@suse.cz>
2528
2529 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2530 of cgraph_node.
2531 * final.c (rest_of_clean_state): Likewise.
2532 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2533 * passes.c (pass_init_dump_file): Likewise.
2534 (execute_all_ipa_transforms): Likewise.
2535 (function_called_by_processed_nodes_p): Likewise.
2536 * predict.c (maybe_hot_frequency_p): Likewise.
2537 (probably_never_executed_bb_p): Likewise.
2538 (compute_function_frequency): Likewise.
2539 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2540 (unnest_nesting_tree_1): Likewise.
2541 (lower_nested_functions): Likewise.
2542 * tree-optimize.c (execute_fixup_cfg): Likewise.
2543 (tree_rest_of_compilation): Likewise.
2544 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2545 * tree-sra.c (ipa_early_sra): Likewise.
2546 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2547 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2548 * ipa.c (record_cdtor_fn): Likewise.
2549 * ipa-inline.c (cgraph_early_inlining): Likewise.
2550 (compute_inline_parameters_for_current): Likewise.
2551 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2552 * ipa-pure-const.c (local_pure_const): Likewise.
2553 * ipa-split.c (split_function): Likewise.
2554 (execute_split_functions): Likewise.
2555 * cgraphbuild.c (build_cgraph_edges): Likewise.
2556 (rebuild_cgraph_edges): Likewise.
2557 (cgraph_rebuild_references): Likewise.
2558 (remove_cgraph_callee_edges): Likewise.
2559 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2560 (verify_cgraph_node): Likewise.
2561 (cgraph_analyze_functions): Likewise.
2562 (cgraph_preserve_function_body_p): Likewise.
2563 (save_inline_function_body): Likewise.
2564 (save_inline_function_body): Likewise.
2565 * tree-inline.c (copy_bb): Likewise.
2566 (optimize_inline_calls): Likewise.
2567
57dbdc5a
MJ
25682011-04-11 Martin Jambor <mjambor@suse.cz>
2569
2570 PR tree-optimization/48195
2571 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2572 ipa_check_create_edge_args.
2573 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2574 ipa_check_create_edge_args.
2575 * ipa-inline.c (inline_generate_summary): Do not call
2576 ipa_check_create_node_params and ipa_check_create_edge_args.
2577 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2578 ipa_check_create_edge_args.
2579
d108e679
AS
25802011-04-09 Anatoly Sokolov <aesok@post.ru>
2581
2582 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2583 instead of loop.
2584 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2585 * function.c (record_hard_reg_sets): Likewise.
2586 * ira.c (compute_regs_asm_clobbered): Likewise.
2587 * sched-deps.c (sched_analyze_1): Likewise.
2588 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2589
3411bc59
XDL
25902011-04-09 Xinliang David Li <davidxl@google.com>
2591
2592 PR tree-optimization/PR48484
2593 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2594 has_valid_pred lazily
2595
b365495a
DS
25962011-04-09 Duncan Sands <baldrick@free.fr>
2597
2598 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2599
68bc509a
EB
26002011-04-08 Eric Botcazou <ebotcazou@adacore.com>
2601
2602 * combine.c (combine_validate_cost): Adjust comments. Set registered
2603 cost of I0 to zero at the end, if any.
2604
041e059f
XDL
26052011-04-08 Xinliang David Li <davidxl@google.com>
2606
68bc509a
EB
2607 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2608 to insane profile data.
041e059f 2609
444b3995
XDL
26102011-04-08 Xinliang David Li <davidxl@google.com>
2611
2612 * ipa-cp.c (ipcp_update_profiling): Correct
2613 negative scale factor due to insane profile data.
2614
6a801cf2
XDL
26152011-04-08 Xinliang David Li <davidxl@google.com>
2616
2617 * final.c (dump_basic_block_info): New function.
2618 (final): Dump basic block.
2619 (final_scan_insn): Remove old dump.
2620
d5f3624e
SK
26212011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
2622
68bc509a
EB
2623 PR target/47829
2624 * config.gcc (i386-*-freebsd): Disable unwind table generation for
2625 crtbegin/crtend.
d5f3624e 2626
42821aff
MM
26272011-04-08 Michael Matz <matz@suse.de>
2628
2629 PR middle-end/48389
2630 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2631 functions.
2632 (rebuild_jump_labels): Call rebuild_jump_labels_1.
2633 * rtl.h (rebuild_jump_labels_chain): Declare.
2634 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2635 insns inserted on edges.
2636
ad7be009
JM
26372011-04-08 Joseph Myers <joseph@codesourcery.com>
2638
2639 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2640 * config/arm/arm-arches.def: New.
2641 * config/arm/arm-opts.h: New.
2642 * config/arm/genopt.sh: New.
2643 * config/arm/arm-tables.opt: New (generated).
2644 * config/arm/arm.c (arm_handle_option, arm_target_help,
2645 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2646 (all_architectures): Get most table contents from arm-arches.def.
2647 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2648 arm_selected_tune here.
2649 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2650 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2651 (march=, mcpu=, mtune=): Use Enum and Var.
2652 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2653 (arm.o): Update dependencies.
ecbb6fb7 2654
42821aff 26552011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
2656
2657 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2658 of header_file.
2659 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2660 (write_typed_alloc_defns): Likewise.
2661 (main): Calls write_typed_alloc_defns with output_header.
2662
8d189b3f
VM
26632011-04-08 Vladimir Makarov <vmakarov@redhat.com>
2664
68bc509a 2665 PR inline-asm/48435
8d189b3f
VM
2666 * ira-color.c (setup_profitable_hard_regs): Add comments.
2667 Don't take prohibited hard regs into account.
2668 (setup_conflict_profitable_regs): Rename to
2669 get_conflict_profitable_regs.
2670 (check_hard_reg_p): Check prohibited hard regs.
2671
44f370bf
NF
26722011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2673
2674 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2675 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2676 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2677
483d7ad3
JDA
26782011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2679
2680 PR target/48366
2681 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 2682 move from floating point to shift amount register.
483d7ad3
JDA
2683 (emit_move_sequence): Remove secondary reload support for floating
2684 point to shift amount amount register copies.
2685 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2686 amount register copies.
2687 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2688 register, return false if mode isn't a scalar integer mode.
2689 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2690
97e03fa1
RG
26912011-04-08 Richard Guenther <rguenther@suse.de>
2692
2693 * gimple.c (gimple_call_flags): Remove kludge.
2694
9d40778b
AM
26952011-04-08 Alexander Monakov <amonakov@ispras.ru>
2696
2697 * sel-sched.c (sel_region_init): Move call to
2698 sel_setup_region_sched_flags after setup_current_loop_nest.
2699
19ac7892
AB
27002011-04-08 Andrey Belevantsev <abel@ispras.ru>
2701
2702 PR rtl-optimization/48272
19ac7892
AB
2703 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2704 init_insn_reg_pressure_info. Adjust a caller.
2705 * sched-int.h (init_insn_reg_pressure_info): Declare.
2706 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2707 when sched-pressure is enabled.
2708
0f8c63cc
RG
27092011-04-08 Richard Guenther <rguenther@suse.de>
2710
2711 * gimple.c (gimple_set_modified): Do not queue calls to
2712 MODIFIED_NORETURN_CALLS here ...
2713 * tree-ssa-operands.c (update_stmt_operands): ... but here.
2714
5e5a425e
RG
27152011-04-08 Richard Guenther <rguenther@suse.de>
2716
2717 PR lto/48467
2718 * toplev.c (lang_dependent_init): Do not open asm_out_file
2719 in WPA mode, nor perform debug machinery initialization.
2720 (finalize): Do not unlink asm_out_file in WPA mode.
2721
9bfc434b
RG
27222011-04-08 Richard Guenther <rguenther@suse.de>
2723
2724 * gimple.h (gimple_call_fntype): New function.
2725 (gimple_call_return_type): Use it.
2726 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2727 * gimple-low.c (gimple_check_call_args): Likewise.
2728 * gimple.c (gimple_call_flags): Likewise.
2729 (gimple_call_arg_flags): Likewise.
2730 (gimple_call_return_flags): Likewise.
2731 * tree-cfg.c (verify_gimple_call): Likewise.
2732 (do_warn_unused_result): Likewise.
2733 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2734 * value-prof.c (gimple_ic_transform): Fix fndecl check.
2735
7c1f0b40
DM
27362011-04-08 Dmitry Melnik <dm@ispras.ru>
2737
2738 PR rtl-optimization/48235
2739 * sel-sched.c (code_motion_process_successors): Recompute the last
2740 insn in basic block if control flow changed.
2741 (code_motion_path_driver): Ditto. Recompute the first insn as well.
2742 Update condition for ilist_remove.
2743
ea4d630f
AM
27442011-04-08 Alexander Monakov <amonakov@ispras.ru>
2745
2746 PR rtl-optimization/48302
2747 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2748 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
2749 it to record added preheader blocks.
2750 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
2751 on to sel_add_loop_preheaders.
2752 (sel_region_init): Move call to setup_current_loop_nest after
2753 sel_init_bbs.
2754
07643d76
AM
27552011-04-08 Alexander Monakov <amonakov@ispras.ru>
2756
2757 PR target/48273
2758 * cfgloop.h (loop_has_exit_edges): New helper.
2759 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2760 non-clonable.
2761 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2762 that have no exit edges.
2763
1f3b2b4e
AM
27642011-04-08 Alexander Monakov <amonakov@ispras.ru>
2765
2766 PR rtl-optimization/48442
2767 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
2768 all callers. Adjust assert.
2769
554f1948
JJ
27702011-04-08 Jakub Jelinek <jakub@redhat.com>
2771
2772 PR tree-optimization/48377
2773 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2774 is_packed to true even for types with smaller TYPE_ALIGN than
2775 TYPE_SIZE.
2776
ddf72388
RG
27772011-04-08 Richard Guenther <rguenther@suse.de>
2778
2779 PR bootstrap/48513
2780 * doc/tm.texi: Re-generate.
2781
0c27e2d8
WG
27822011-04-08 Wei Guozhi <carrot@google.com>
2783
2784 PR target/47855
2785 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2786 * config/arm/arm.c (arm_attr_length_push_multi): New function.
2787 * config/arm/arm.md (*push_multi): Change the length computation to
2788 call a C function.
2789
07c5f94e
AS
27902011-04-08 Anatoly Sokolov <aesok@post.ru>
2791
2792 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2793 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2794 * doc/tm.texi: Regenerate.
2795 * system.h (ASM_OUTPUT_BSS): Poison.
2796 * varasm.c (asm_output_bss): Remove function.
2797 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 2798
07c5f94e
AS
2799 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2800 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2801 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2802 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2803 Likewise.
2804 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2805 Likewise.
2806 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2807 Likewise.
2808 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2809
5f2c36e1
JM
28102011-04-07 Joseph Myers <joseph@codesourcery.com>
2811
2812 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2813 EnumValue lines.
2814
39e7722b
JM
28152011-04-07 Joseph Myers <joseph@codesourcery.com>
2816
2817 * config/m68k/m68k.c (m68k_handle_option): Don't handle
2818 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2819 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2820 OPT_mcpu32.
2821 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2822 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2823 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2824 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2825 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2826 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2827 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2828 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2829 options. Don't map other m68k options manually. Don't handle
2830 old-style options as canonical.
2831 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 2832 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 2833
cf103ca4
EB
28342011-04-07 Eric Botcazou <ebotcazou@adacore.com>
2835
2836 * basic-block.h (force_nonfallthru): Move to...
2837 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2838 (force_nonfallthru): ...here.
2839 * cfghooks.c (force_nonfallthru): New function.
2840 * cfgrtl.c (force_nonfallthru): Rename into...
2841 (rtl_force_nonfallthru): ...this.
2842 (commit_one_edge_insertion): Do not set AUX field.
2843 (commit_edge_insertions): Do not discover new basic blocks.
2844 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2845 (cfg_layout_rtl_cfg_hooks): Likewise.
2846 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2847 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
2848 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2849
14431f58
AS
28502011-04-07 Anatoly Sokolov <aesok@post.ru>
2851
2852 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2853 Remove macros.
2854
3729983c
UB
28552011-04-07 Uros Bizjak <ubizjak@gmail.com>
2856
2857 * config/i386/sse.md: Update copyright year.
2858 (avxcvtvecmode): Remove.
2859 (sse_movhlps): Merge with *avx_movhlps.
2860 (sse_movlhps): Merge with *avx_movlhps.
2861 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2862 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2863 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2864 (sse_loadhps): Merge with *avx_loadhps.
2865 (sse_storelps): Merge with *avx_storelps.
2866 (sse_loadlps): Merge with *avx_loadlps.
2867 (sse_movss): Merge with *avx_movss.
2868 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2869 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2870 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2871 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2872 (vec_set<mode>_0): Ditto.
2873 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2874 (sse4_1_insertps): Merge with *avx_insertps.
2875 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2876 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2877 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2878 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2879 (sse2_storehpd): Merge with *avx_storehpd.
2880 (sse2_loadhpd): Merge with *avx_loadhpd.
2881 (sse2_loadlpd): Merge with *avx_loadlpd.
2882 (sse2_movsd): Merge with *avx_movsd.
2883 (*vec_concatv2df): Merge with *vec_concatv2df.
2884
4e626909
JJ
28852011-04-07 Jakub Jelinek <jakub@redhat.com>
2886
2887 PR debug/48343
2888 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 2889 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
2890 (try_combine): Add last_combined_insn parameter, pass it instead of
2891 i3 to propagate_for_debug.
2892
3729983c 28932011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
2894
2895 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2896 to handle MDR <-> data register transfers.
2897 (movhi_internal): Likewise.
2898
20c03367
AM
28992011-04-07 Alan Modra <amodra@gmail.com>
2900
2901 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2902 previous stack info.
2903
bf22920b
TV
29042011-04-07 Tom de Vries <tom@codesourcery.com>
2905
2906 PR target/43920
2907 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
2908 flow_find_cross_jump. Swap variables to implement backward replacement.
2909 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2910
823918ae
TV
29112011-04-07 Tom de Vries <tom@codesourcery.com>
2912
2913 PR target/43920
2914 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
2915 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
2916 and bb2.
2917 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2918 src1 or src2. Redirect edges to the last basic block. Update
2919 frequency and count on multiple basic blocks in case of fallthru.
823918ae 2920
472c95f5
TV
29212011-04-07 Tom de Vries <tom@codesourcery.com>
2922
2923 PR target/43920
2924 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2925 function.
3729983c
UB
2926 (old_insns_match_p): Change return type. Replace return false/true
2927 with return dir_none/dir_both. Use can_replace_by.
2928 (flow_find_cross_jump): Add dir_p parameter. Init replacement
2929 direction from dir_p. Register replacement direction in dir, last_dir
2930 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
2931 merge_dir. Return replacement direction in dir_p.
2932 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2933 return type of old_insns_match_p.
2934 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2935 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2936 flow_find_cross_jump.
2937 * basic-block.h (enum replace_direction): New type.
2938 (flow_find_cross_jump): Add parameter to declaration.
2939
a95d4000
UB
29402011-04-06 Uros Bizjak <ubizjak@gmail.com>
2941
2942 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2943 (AVXMODEDCVTPS2DQ): Ditto.
2944 (VEC_FLOAT_MODE): Ditto.
2945 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
2946 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2947 (<any_logic:code><mode>3): Use VF mode iterator.
2948 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2949 Use VF mode iterator.
2950 (copysign<mode>3): Use VF mode iterator.
2951 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
2952 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2953 (*<any_logic:code><MODEF:mode>3): Merge with
2954 *avx_<any_logic:code><MODEF:mode>3.
2955 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2956 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2957 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2958 (avx_cvtdq2ps<avxmodesuffix>): Remove.
2959 (sse2_cvtdq2ps): Use %v modifier.
2960 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2961 (avx_cvtps2dq<avxmodesuffix>): Remove.
2962 (sse2_cvtps2dq): Use %v modifier.
2963 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2964 (avx_cvttps2dq<avxmodesuffix>): Remove.
2965 (sse2_cvttps2dq): Use %v modifier.
2966 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2967 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2968 (sse2_cvtsd2siq): Fix insn template.
2969 (sse2_cvtsd2siq_2): Ditto.
2970 (sse2_cvttsd2siq): Ditto.
2971 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2972 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2973
ad01c437
JM
29742011-04-06 Joseph Myers <joseph@codesourcery.com>
2975
2976 * gcov-io.c: Use GCC Runtime Library Exception.
2977
fe846284
JJ
29782011-04-06 Jakub Jelinek <jakub@redhat.com>
2979
2980 PR debug/48466
2981 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2982 as base_reg whatever register reg has been eliminated to, instead
2983 of hardcoding STACK_POINTER_REGNUM.
2984
acce4e77
JM
29852011-04-06 Joseph Myers <joseph@codesourcery.com>
2986
2987 * doc/tm.texi.in: Document C target hooks as separate from general
2988 target hooks.
2989 * doc/tm.texi: Regenerate.
2990 * genhooks.c (struct hook_desc): Add docname field.
2991 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
2992 docname field.
2993 (hook_array): Include c-target.def.
2994 (emit_documentation): Use docname field in output.
2995 (emit_init_macros): Take docname argument. Only emit definitions
2996 for hooks matching docname.
2997 (main): Expect additional arguments in all cases. Pass argument
2998 to emit_init_macros.
2999 * target.def: Move initial macro definitions and comments to
3000 target-hooks-macros.h.
3001 (gcc_targetcm): Move to c-family/c-target.def.
3002 * target.h (targetcm): Move declaration to c-family/c-target.h.
3003 * targhooks.c (default_handle_c_option): Move to
3004 c-family/c-opts.c.
3005 * targhooks.h (default_handle_c_option): Move declaration to
3006 c-family/c-common.h.
3007 * target-hooks-macros.h: New file.
3008 * config.gcc (target_has_targetcm): Define and use to add to
3009 c_target_objs and cxx_target_objs.
3010 * config/default-c.c: New file.
3011 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
3012 of target.h and target-def.h.
3013 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
3014 (darwin_objc_construct_string, darwin_cfstring_ref_p,
3015 darwin_check_cfstring_format_arg): Make static.
3016 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3017 TARGET_STRING_OBJECT_REF_TYPE_P,
3018 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
3019 * config/darwin-protos.h (darwin_objc_construct_string,
3020 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
3021 declare.
3022 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
3023 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 3024 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
3025 * config/t-darwin (darwin-c.o): Update dependencies.
3026 * system.h (TARGET_HAS_TARGETCM): Poison.
3027 * Makefile.in (TARGET_H): Update.
3028 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
3029 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
3030 (default-c.o): New target.
3031 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 3032 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
3033 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
3034 c-target.def.
3035 (build/genhooks.o): Update dependencies.
3036
275b4baa 30372011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 3038
275b4baa
RG
3039 * ipa-inline.c (enum inlining_mode): Remove.
3040 (cgraph_flatten): Use some other token.
3041 (cgraph_edge_early_inlinable_p): New function, split out from ...
3042 (cgraph_perform_always_inlining): New function, split out from ...
3043 (cgraph_decide_inlining_incrementally): ... here.
3044 (cgraph_mark_inline_edge): Adjust.
3045 (cgraph_early_inlining): Re-structure.
3046 (pass_early_inline): Require SSA form.
3047
f15b8bdf 30482011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
3049 Julian Brown <julian@codesourcery.com>
3050 Mark Shinwell <shinwell@codesourcery.com>
3051
3052 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
3053 LO_REGS only for Thumb-1.
3054 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
3055 be used in short instructions when optimising for size on Thumb-2.
3056
516426da
EB
30572011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3058
3059 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
3060 associated with user returns to be preserved.
3061
96621ebf
TG
30622011-04-06 Tristan Gingold <gingold@adacore.com>
3063
f15b8bdf
EB
3064 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
3065 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
3066 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
3067 if XCOFF_DEBUGGING_INFO.
3068
07c0852e
UB
30692011-04-06 Uros Bizjak <ubizjak@gmail.com>
3070
3071 * config/i386/i386.md (attribute isa): New.
3072 (attribute enabled): New.
3073 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
3074 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
3075 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
3076 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
3077 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
3078 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3079 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
3080 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
3081
3082 * config/i386/sse.md (VF): New mode iterator.
3083 (VF1): Ditto.
3084 (VF2): Ditto.
3085 (VF_128): Ditto.
3086 (SSEMODEF4): Remove.
3087 (attribute sse): Handle V8SF and V4DF modes.
3088 (<absneg:code><mode>2): Use VF mode iterator.
3089 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
3090 mode iterator.
3091 (<plusminus_insn><mode>3): Use VF mode iterator.
3092 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3093 Use VF mode iterator.
3094 (<sse>_vm<plusminus_insn><mode>3): Merge with
3095 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
3096 (mul<mode>3): Use VF mode iterator.
3097 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
3098 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
3099 mode iterator.
3100 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3101 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3102 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
3103 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
3104 mode iterator.
3105 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3106 Use VF1 mode iterator.
3107 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3108 (sqrt<VF2:mode>2): New expander.
3109 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3110 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3111 and sqrtv2df2. Use VF mode iterator.
3112 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
3113 mode iterator.
3114 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3115 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3116 Use VF1 mode iterator.
3117 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3118 (<smaxmin:code><mode>3): Use VF mode iterator.
3119 (*<smaxmin:code><mode>3_finite): Merge with
3120 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
3121 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3122 (<sse>_vm<smaxmin:code><mode>2): Merge with
3123 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
3124 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
3125 mode iterator.
3126 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
3127 mode iterator.
3128 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3129 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3130 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3131 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3132 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
3133 VF mode iterator.
3134 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3135 Use VF_128 mode iterator.
3136 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
3137 mode iterator.
3138 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
3139 VF_128 mode iterator.
3140 (vcond<mode>): Use VF mode iterator.
3141 * config/i386/predicates.md (sse_comparison_operator): Merge with
3142 avx_comparison_float_operator. Do not declare as special_predicate.
3143 * config/i386/i386.c (struct builtin_description): Update for renamed
3144 compare patterns.
3145 (ix86_expand_args_builtin): Ditto.
3146 (ix86_expand_sse_compare_mask): Ditto.
3147
ff5d142c
RG
31482011-04-06 Richard Guenther <rguenther@suse.de>
3149
3150 * tree-inline.c (estimate_num_insns): For calls simply account
3151 for all passed arguments and a used return value.
3152
d7d1d041 31532011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 3154
d7d1d041
RG
3155 PR tree-optimization/47663
3156 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3157 call_stmt_time fields.
3158 (cgraph_edge_inlinable_p): Declare.
3159 (cgraph_edge_recursive_p): New inline function.
3160 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3161 (cgraph_clone_edge): Copy it.
3162 * ipa-inline.c (cgraph_estimate_edge_time): New function.
3163 Account for call stmt time.
3164 (cgraph_estimate_time_after_inlining): Take edge argument.
3165 (cgraph_estimate_edge_growth): Account call stmt size.
3166 (cgraph_estimate_size_after_inlining): Take edge argument.
3167 (cgraph_mark_inline_edge): Adjust.
3168 (cgraph_check_inline_limits): Likewise.
3169 (cgraph_recursive_inlining_p): Remove.
3170 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3171 (cgraph_decide_recursive_inlining): Take edge argument and
3172 adjust.
3173 (cgraph_decide_inlining_of_small_functions): Do not avoid
3174 diags for recursive inlining here.
3175 (cgraph_flatten): Adjust.
3176 (cgraph_decide_inlining_incrementally): Likewise.
3177 (estimate_function_body_sizes): Remove call cost handling.
3178 (compute_inline_parameters): Initialize caller edge call costs.
3179 (cgraph_estimate_edge_growth): New function.
3180 (cgraph_estimate_growth): Use it.
3181 (cgraph_edge_badness): Likewise.
3182 (cgraph_check_inline_limits): Take an edge argument.
3183 (cgraph_decide_inlining_of_small_functions): Adjust.
3184 (cgraph_decide_inlining): Likewise.
3185 * tree-inline.c (estimate_num_insns): Only account for call
3186 return value if it is used.
3187 (expand_call_inline): Avoid diagnostics on recursive inline
3188 functions here.
3189 * lto-cgraph.c (lto_output_edge): Output edge call costs.
3190 (input_edge): Input edge call costs.
3191
2feb95f7
RO
31922011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3193
3194 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3195
26fbd9c2
JW
31962011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3197
3198 * doc/invoke.texi (Spec Files): Fix typo.
3199
694dc0ca
EB
32002011-04-06 Eric Botcazou <ebotcazou@adacore.com>
3201
3202 * profile.c (branch_prob): Move declaration of local variable. Remove
3203 obsolete ??? comment. Expand the location explicitly instead of using
3204 the LOCATION_FILE and LOCATION_LINE macros.
3205
4925d0d5
WG
32062011-04-06 Wei Guozhi <carrot@google.com>
3207
3208 PR target/47855
3209 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3210 (arm_cond_branch): Likewise.
3211 (arm_cond_branch_reversed): Likewise.
3212 (arm_jump): Likewise.
3213 (push_multi): Likewise.
3214 * config/arm/constraints.md (Py): New constraint.
3215
f55dfa2f
NF
32162011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3217
3218 PR bootstrap/48471
3219 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3220 Move these...
3221 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3222 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3223 #ifdef DBX_DEBUGGING_INFO.
3224
fca96842
BS
32252011-04-05 Bernd Schmidt <bernds@codesourcery.com>
3226
3227 PR bootstrap/48403
3228 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3229 if old and new states differ.
3230
30b83e38
JM
32312011-04-05 Joseph Myers <joseph@codesourcery.com>
3232
3233 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3234 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3235 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3236 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3237 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3238 mcfv4e): Use Alias.
3239 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3240 ColdFire options to -mcpu= options.
3241
277a9aa5
JL
32422011-04-05 Jeff Law <law@redhat.com>
3243
3244 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3245 check if BB is a successor of LOOP->header and return
3246 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3247
c1e2610e
SB
32482011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3249
3250 * cprop.c (struct reg_use): Remove.
3251 (reg_use_table): Make an array of RTX.
3252 (find_used_regs, constprop_register, local_cprop_pass,
3253 bypass_block): Simplify users of reg_use_table.
3254 (cprop_insn): Likewise. Iterate if copy propagation succeeded
3255 on one of the uses found by find_used_regs.
3256
e532f586
NF
32572011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3258
3259 PR bootstrap/48469
3260 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3261 declaration.
3262
3fb7c055
NF
32632011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3264
3265 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3266 as an rtx.
3267 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3268
b71b43d9
SB
32692011-04-05 Steven Bosscher <steven@gcc.gnu.org>
3270
3271 PR middle-end/48441
3272 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3273
b405b274
NF
32742011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3275
3276 * combine.c: Include obstack.h.
3277 (struct insn_link): Define.
3278 (uid_log_links): Adjust type.
3279 (FOR_EACH_LOG_LINK): New macro.
3280 (insn_link_obstack): Declare.
3281 (alloc_insn_link): Define.
3282 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
3283 type of link variables.
3284 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3285 (try_combine, record_promoted_values, distribute_notes): Likewise.
3286 (distribute_links): Likewise. Tweak prototype.
3287 (clear_log_links): Delete.
3288 (adjust_for_new_dest): Call alloc_insn_link.
3289 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3290
6409abe3
NF
32912011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3292
3293 * gcse.c (modify_mem_list): Convert to an array of VECs.
3294 (canon_modify_mem_list, compute_transp): Tweak formatting.
3295 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
3296 (load_killed_in_block_p): Likewise.
3297 (record_last_mem_set_info): Likewise.
3298 (clear_modify_mem_tables): Likewise.
3299
170d8157
TV
33002011-04-05 Tom de Vries <tom@codesourcery.com>
3301
3302 PR middle-end/48461
3303 * function.c (emit_use_return_register_into_block): Only define if
3304 HAVE_return.
3305
c5911a55
EB
33062011-04-05 Eric Botcazou <ebotcazou@adacore.com>
3307
3308 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3309
abd016e6
JM
33102011-04-05 Joseph Myers <joseph@codesourcery.com>
3311
3312 * config/rx/rx-opts.h: New.
3313 * config/rx/rx.c (rx_cpu_type): Remove.
3314 (rx_handle_option): Don't assert that global structures are in
3315 use. Access variables via opts pointer. Defer most handling of
3316 OPT_mint_register_. Use error_at.
3317 (rx_option_override): Handle deferred OPT_mint_register_ here.
3318 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3319 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3320 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3321 (rx_cpu_types): New Enum and EnumValue entries.
3322 (mint-register=): Use Defer and use Var accordingly.
3323
1ed13f83
NF
33242011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3325
3326 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3327 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3328 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3329 Move these...
3330 (debug_free_queue, debug_nesting, symbol_queue_index):
3331 ...and these...
3332 * dbxout.c: ...to here. Make static.
3333
6ce1edcf
NF
33342011-04-05 Nathan Froyd <froydnj@codesourcery.com>
3335
3336 * gcse.c (modify_pair): Define. Define a VEC of it.
3337 (canon_modify_mem_list): Convert to an array of VECs.
3338 (free_insn_expr_list_list): Delete.
3339 (clear_modify_mem_tables): Call VEC_free instead.
3340 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3341 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3342 (canon_list_insert, compute_transp): Likewise.
3343
c201ac94
TV
33442011-04-05 Tom de Vries <tom@codesourcery.com>
3345
3346 PR target/43920
3347 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3348 for size.
3349
4c029f40
TV
33502011-04-05 Tom de Vries <tom@codesourcery.com>
3351
3352 PR target/43920
3353 * function.c (emit_use_return_register_into_block): New function.
3354 (thread_prologue_and_epilogue_insns): Use
3355 emit_use_return_register_into_block.
3356
2a562b0a
TV
33572011-04-05 Tom de Vries <tom@codesourcery.com>
3358
3359 PR target/43920
3360 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3361 insn.
3362
0248bceb
TV
33632011-04-05 Tom de Vries <tom@codesourcery.com>
3364
3365 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3366
ffa94123
YZ
33672011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
3368
798dd0ba
UB
3369 * config/arm/arm.md (define_constants for unspec): Replace with
3370 define_c_enum.
3371 (define_constants for unspecv): Replace with define_c_enum.
3372 * config/arm/neon.md (define_constants for unspec): Replace with
3373 define_c_enum.
ffa94123 3374
3b8f9b46
RH
33752011-04-04 Richard Henderson <rth@redhat.com>
3376
720cf80f 3377 PR bootstrap/48400
3b8f9b46
RH
3378 * dwarf2out.c (output_line_info): Always emit line info from
3379 at least one section.
3380 (dwarf2out_init): Create text_section_line_info here ...
3381 (set_cur_line_info_table): ... not here.
3382
720cf80f 33832011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
3384
3385 PR target/48380
3386 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 3387 not called.
e5b0e1ca 3388
720cf80f 3389 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 3390
196565d4
SB
33912011-04-04 Steven Bosscher <steven@gcc.gnu.org>
3392
b77f9eab
SB
3393 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3394 (expr_equiv_p): Remove.
3395 (insert_set_in_table): Look at <dest, src> pair instead of expr.
3396 (hash_scan_set): Update call to insert_set_in_table.
3397 (dump_hash_table): Dump <dest, src> pair.
3398 (lookup_set): Simplify. Lookup <dest, src> pair.
3399 (compute_transp): Remove, fold heavily simplified code into...
3400 (compute_local_properties): ...here. Expect COMP and TRANSP
3401 unconditionally.
3402 (find_avail_set): Take set directly from struct expr.
3403 (find_bypass-set): Likewise.
3404 (bypass_block): Likewise.
3405 (cprop_insn): Likewise. Remove redundant INSN_P test.
3406
384d7a55
SB
3407 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3408 checks on form of COND from find_implicit_sets to here.
3409 (find_implicit_sets): Cleanup control flow. Split critical edges
3410 if it exposes implicit sets. Allocate/resize implicit_sets as
3411 necessary.
3412 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3413 changed something. Run df_analyze after find_implicit_sets if any
3414 edges were split. Do not allocate implicit_sets here.
3415
3084ce69
SB
3416 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3417 (gcse_obstack): Renamed to cprop_obstack.
3418 (GNEW, GNEWVEC, GNEWVAR): Remove.
3419 (gmalloc): Remove.
3420 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3421 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3422 (gcse_alloc): Likewise, and rename to cprop_alloc.
3423 (alloc_gcse_men, free_gcse_mem): Remove.
3424 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3425 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3426 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3427
196565d4
SB
3428 * cprop.c (oprs_not_set_p): Remove.
3429 (mark_set, mark_clobber): Remove.
3430 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3431 (reg_not_set_p): New function.
3432 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3433 (cprop_insn): Likewise.
3434 (cprop_jump): Use FOR_EACH_EDGE.
3435
9b69cf83
BS
34362011-04-04 Bernd Schmidt <bernds@codesourcery.com>
3437
3438 PR bootstrap/48403
3439 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3440 (rank_for_schedule): Use scheduled_insns vector instead of
3441 last_scheduled_insn.
3442 (ok_for_early_queue_removal): Likewise.
3443 (queue_to_ready): Search forward in nonscheduled_insns_begin if
3444 we have a dbg_cnt.
3445 (choose_ready): Likewise.
3446 (commit_schedule): Use VEC_iterate.
3447 (schedule_block): Initialize nonscheduled_insns_begin. If we have
3448 a dbg_cnt, use it and ensure the first insn is in the ready list.
3449 (haifa_sched_init): Allocate scheduled_insns.
3450 (sched_extend_ready_list): Don't allocate it; reserve space.
3451 (haifa_sched_finish): Free it.
3452
24f48c2f
JM
34532011-04-04 Joseph Myers <joseph@codesourcery.com>
3454
3455 * optc-gen.awk: Always remove type from Variable entry before
3456 recording in var_seen.
3457
8effe856
EB
34582011-04-04 Eric Botcazou <ebotcazou@adacore.com>
3459
3460 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3461 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3462 call to tidy_fallthru_edges.
3463
413519ae
JM
34642011-04-04 Joseph Myers <joseph@codesourcery.com>
3465
3466 * doc/options.texi (ToLower): Document.
3729983c 3467 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
3468 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3469 * opts.h (cl_option): Add cl_tolower field.
3470 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3471 arguments with lowercase strings.
3472 * config/rx/rx.opt (mcpu=): Add ToLower.
3473 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3474 argument.
3475
7d34a1b0
RS
34762011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3477
3478 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3479
c30e7434
RS
34802011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
3481
3482 * config/vax/vax.c: Include reload.h.
3483
112a861d
AS
34842011-04-04 Anatoly Sokolov <aesok@post.ru>
3485
3486 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3487 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3488 (sparc_preferred_reload_class): New function.
3489
e8c6bb74
JJ
34902011-04-04 Jakub Jelinek <jakub@redhat.com>
3491
2aeaa366 3492 PR debug/48401
e8c6bb74
JJ
3493 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3494 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3495
2c081caf
NF
34962011-04-03 Nathan Froyd <froydnj@codesourcery.com>
3497
3498 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3499 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3500
53802f27
AS
35012011-04-03 Anatoly Sokolov <aesok@post.ru>
3502
3503 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3504 (ASM_OUTPUT_ALIGNED_BSS): Define.
3505
e89964e3
MM
35062011-04-03 Michael Matz <matz@suse.de>
3507
3508 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3509 and next_slot members.
3510 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3511 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3512 (lto_streamer_cache_append): Declare.
3513 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3514 unsigned index, remove offset parameter, ensure that we append
3515 or update existing entries.
3516 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3517 parameter, update next_slot for append.
3518 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3519 parameter.
3520 (lto_streamer_cache_insert_at): Likewise.
3521 (lto_streamer_cache_append): New function.
3522 (lto_streamer_cache_lookup): Use unsigned index.
3523 (lto_streamer_cache_get): Likewise.
3524 (lto_record_common_node): Don't test tree_node_can_be_shared.
3525 (preload_common_node): Adjust call to lto_streamer_cache_insert.
3526 (lto_streamer_cache_delete): Don't free offsets member.
3527 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3528 (lto_output_string_with_length): Use lto_output_data_stream.
3529 (lto_output_tree_header): Remove ix parameter, don't write it.
3530 (lto_output_builtin_tree): Likewise.
3531 (lto_write_tree): Adjust callers to above, don't track and write
3532 offset, write unsigned index.
3533 (output_unreferenced_globals): Don't emit all global vars.
3534 (write_global_references): Use unsigned indices.
3535 (lto_output_decl_state_refs): Likewise.
3536 (write_symbol): Likewise.
3537 * lto-streamer-in.c (lto_input_chain): Move earlier.
3538 (input_function): Use unsigned index.
3539 (input_alias_pairs): Don't read and then ignore all global vars.
3540 (lto_materialize_tree): Remove ix_p parameter, don't read index,
3541 don't pass it back, use lto_streamer_cache_append.
3542 (lto_register_var_decl_in_symtab): Use unsigned index.
3543 (lto_register_function_decl_in_symtab): Likewise.
3544 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3545 index.
3546 (lto_get_builtin_tree): Don't read index, use
3547 lto_streamer_cache_append.
3548 (lto_read_tree): Adjust call to lto_materialize_tree.
3549
3550 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3551 don't use function calls in arguments to MIN.
3552
3553 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3554 twice.
3555
3556 * gimple.c (gimple_type_leader_entry): Mark deletable.
3557
b9a5b5b2
AM
35582011-04-03 Alan Modra <amodra@gmail.com>
3559
3560 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3561
ac6a641b
MM
35622011-04-03 Michael Matz <matz@suse.de>
3563
3564 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3565 an integer.
3566 * tree.h (tree_decl_non_common.vindex): Adjust comment.
3567
0038d4e0
MM
35682011-04-03 Michael Matz <matz@suse.de>
3569
e9c18386 3570 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
3571 * gimple-fold.c (canonicalize_constructor_val): Accept being called
3572 without function context.
3573 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3574 current_function_decl and cfun.
3575
91f2fae8
MM
35762011-04-03 Michael Matz <matz@suse.de>
3577
3578 * tree.c (decl_init_priority_insert): Don't create entry for
3579 default priority.
3580 (decl_fini_priority_insert): Ditto.
3581 (fields_compatible_p, find_compatible_field): Remove.
3582 * tree.h (fields_compatible_p, find_compatible_field): Remove.
3583 * gimple.c (gimple_compare_field_offset): Adjust block comment.
3584
da29e070
EB
35852011-04-03 Eric Botcazou <ebotcazou@adacore.com>
3586
3587 * combine.c (try_combine): Remove useless local variable.
3588
4979c28b 35892011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 3590 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
3591
3592 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3593 non-variable offsets and compare the remaining bases of the two
3594 accesses instead of looking for exact same data-ref.
3595
b4ddcaee
KT
35962011-04-02 Kai Tietz <ktietz@redhat.com>
3597
f90298e1
KT
3598 PR target/48416
3599 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3600
b4ddcaee
KT
3601 * i386.c (ix86_is_msabi_thiscall): New helper function.
3602 (ix86_is_type_thiscall): New helper function.
3603 (ix86_comp_type_attributes): Handle thiscall for method-functions
3604 special.
3605 (init_cumulative_args): Likewise.
3606 (find_drap_reg): Likewise.
3607 (ix86_static_chain): Likewise.
3608 (x86_this_parameter): Likewise.
3609 (x86_output_mi_thunk): Likewise.
3610
2a9d769a 36112011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
3612 Nicolas Setton <setton@adacore.com>
3613 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
3614
3615 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3616 (add_gnat_descriptive_type_attribute): New function.
3617 (gen_array_type_die): Call it.
3618 (gen_enumeration_type_die): Likewise.
3619 (gen_struct_or_union_type_die): Likewise.
3620 (modified_type_die): Likewise.
3621 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3622 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3623 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3624
15a03a11
JJ
36252011-04-01 Jakub Jelinek <jakub@redhat.com>
3626
3627 PR bootstrap/48148
3628 * dwarf2out.c (resolve_addr): Don't call force_decl_die
3629 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3630
3631 Revert:
3632 2011-03-17 Richard Guenther <rguenther@suse.de>
3633
3634 PR bootstrap/48148
3635 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3636 origin for decls in other ltrans units.
3637 (input_varpool_node): Likewise.
3638
19228b93
JJ
36392011-04-01 Jakub Jelinek <jakub@redhat.com>
3640
3641 PR middle-end/48335
3642 * expr.c (expand_assignment): Handle all possibilities
3643 if TO_RTX is CONCAT.
e9c18386 3644 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
3645 (store_split_bit_field): If SUBREG_REG (op0) or
3646 op0 itself has smaller mode than word, return it
3647 for offset 0 and const0_rtx for out-of-bounds stores.
3648 If word is const0_rtx, skip it.
3649
88cb339e
N
36502011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
3651
3652 * config/h8300/h8300.c (print_operand_address): Rename to...
3653 (h8300_print_operand_address): ...this. Make static. Adjust comments.
3654 Call h8300_print_operand and h8300_print_operand_address instead of
3655 print_operand and print_operand_address. Declare.
3656 (print_operand): Renake to...
3657 (h8300_print_operand): ...this. Make static. Adjust comments.
3658 Call h8300_print_operand instead of print_operand. Declare.
3659 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3660 (h8300_register_move_cost): Likewise.
3661 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3662 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3663 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3664 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3665 * config/h8300/h8300-protos.h (print_operand): Delete.
3666 (print_operand_address): Delete.
3667
756d6ee9
RH
36682011-04-01 Richard Henderson <rth@redhat.com>
3669
3670 PR 48400
3671 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3672 in strict mode before dwarf4. Re-order tests to early out
3673 before switching sections.
3674
ceaaaeab
NF
36752011-04-01 Nathan Froyd <froydnj@codesourcery.com>
3676
3677 * config/h8300/constraints.md: New file.
3678 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
3679 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3680 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3681 * config/h8300/predicates.md (bit_operand): Likewise.
3682 (incdec_operand): Use satisfies_constraint_M and
3683 satisfies_constraint_O. Don't use C code block.
3684 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3685 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3686 (compute_mov_length): Use satisfies_constraint_G.
3687 (fix_bit_operand): Use satisfies_constraint_U.
3688 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3689 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3690 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3691 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3692 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3693 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3694 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3695 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3696 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3697 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3698 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3699 (EXTRA_MEMORY_CONSTRAINT): Delete.
3700
08ae38e0
AP
37012011-04-01 Andrew Pinski <pinskia@gmail.com>
3702 Michael Meissner <meissner@linux.vnet.ibm.com>
3703
3704 PR target/48262
3705 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3706 operands, as per the specifications.
3707
3708 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3709 (vec_extract_evenv4sf): Ditto.
3710 (vec_extract_evenv8hi): Ditto.
3711 (vec_extract_evenv16qi): Ditto.
3712 (vec_extract_oddv4si): Ditto.
3713
bdb0b0f6
MW
37142011-03-31 Mark Wielaard <mjw@redhat.com>
3715
3716 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3717 high_pc attribute if the CU has no associated code. Only output
3718 DW_AT_entry_pc for CU if not generating strict dwarf and
3719 dwarf_version < 4.
3720
722279e4
BS
37212011-04-01 Bernd Schmidt <bernds@codesourcery.com>
3722
3723 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3724 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3725 out of ...
3726 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3727 * final.c (final_start_function): Call the new function rather
3728 than using a NULL argument for dwarf2out_frame_debug.
3729
c5dd277d
BS
3730 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3731 that contains the prologue.
3732
ec4efea9
BS
3733 * haifa-sched.c (queue_insn): New arg REASON. All callers
3734 changed. Print it in debugging output.
3735
2a6a0d80
BS
3736 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3737
86014d07
BS
3738 * sched-ebb.c (begin_schedule_ready): Remove second argument.
3739 Split most of the code into...
3740 (begin_move_insn): ... here. New function.
3741 (ebb_sched_info): Add a pointer to it.
3742 * haifa-sched.c (scheduled_insns): New static variable.
3743 (sched_extend_ready_list): Allocate it.
3744 (schedule_block): Use it to record the order of scheduled insns.
3745 Perform RTL changes to move insns only after all scheduling
3746 decisions have been made.
3747 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3748 begin_move_insn field.
3749 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3750 * sched-int.h (struct haifa_sched_info): Remove second argument
3751 from begin_schedule_ready hook. Add new member begin_move_insn.
3752 * sched-rgn.c (begin_schedule_ready): Remove second argument.
3753 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3754
9d701248
BS
3755 * haifa-sched.c (prune_ready_list): New function, broken out of
3756 schedule_block.
3757 (schedule_block): Use it.
3758
1ca1dad5
UW
37592011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3760
3761 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3762
49568e45
KT
37632011-04-01 Kai Tietz <ktietz@redhat.com>
3764
3765 * config.gcc (*-*-mingw*): Allow as option the
3766 posix threading model.
07c0852e 3767 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
3768 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3769 definition.
3770 (CPP_SPEC): Add pthread/no-pthread handling.
3771 (LIB_SPEC): Likewise.
3772 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3773 (LIB_SPEC): Likewise.
3774 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3775 flag to pass -pthread option for shared libgcc build.
3776 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3777 for shared libgcc build.
3778 * config/i386/t-mingw-pthread: New file.
3779 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3780 New define to enable use of library pthread by default.
3781 * config/i386/mingw.opt (pthread): New driver option.
3782 (no-pthread): New driver option.
e9c18386 3783 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
3784 * config/i386/mingw-w64.opt: Likewise.
3785
636b4106
GF
37862011-04-01 Gary Funck <gary@intrepid.com>
3787
3788 * c-decl.c (grokdeclarator): Fix formatting.
3789
f04713ee
RS
37902011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3791
3792 * expr.c (emit_block_move_via_movmem): Use n_generator_args
3793 instead of n_operands.
3794 (set_storage_via_setmem): Likewise.
3795 * optabs.c (maybe_gen_insn): Likewise.
3796 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3797 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3798 (mips_expand_builtin_direct): Likewise.
3799 * config/spu/spu.c (expand_builtin_args): Likewise.
3800
b29387ee
RS
38012011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3802
3803 * recog.h (insn_data_d): Add n_generator_args.
3804 * genoutput.c (data): Likewise.
3805 (output_insn_data): Print it.
3806 (max_opno, num_dups): Delete.
3807 (scan_operands): Just fill in "d->operand[...]".
3808 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3809
e792559a
RS
38102011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
3811
3812 * gensupport.h (pattern_stats): New structure.
3813 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3814 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3815 (max_operand_1, max_operand_vec): Delete.
3816 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3817
e8110d6f
NF
38182011-03-31 Nathan Froyd <froydnj@codesourcery.com>
3819
3820 * emit-rtl.c (emit_pattern_after_setloc): New function.
3821 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3822 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3823 (emit_pattern_after): New function.
3824 (emit_insn_after, emit_jump_insn_after): Call it.
3825 (emit_call_insn_after, emit_debug_insn_after): Likewise.
3826 (emit_pattern_before_setloc): New function.
3827 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3828 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3829 Likewise.
3830 (emit_pattern_before): New function.
3831 (emit_insn_before, emit_jump_insn_before): Call it.
3832 (emit_call_insn_before, emit_debug_insn_before): Likewise.
3833
576f85f1
RH
38342011-03-31 Richard Henderson <rth@redhat.com>
3835
3836 * dwarf2out.c (dw_separate_line_info_ref): Remove.
3837 (dw_separate_line_info_entry): Remove.
3838 (enum dw_line_info_opcode): New.
3839 (dw_line_info_entry): Use it.
3840 (dw_line_info_table, dw_line_info_table_p): New.
3841 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3842 (line_info_table, line_info_label_num): Remove.
3843 (line_info_table_in_use): Remove.
3844 (separate_line_info_table): Remove.
3845 (separate_line_info_table_allocated): Remove.
3846 (separate_line_info_table_in_use): Remove.
3847 (LINE_INFO_TABLE_INCREMENT): Remove.
3848 (line_info_label_num): New.
3849 (cur_line_info_table): New.
3850 (text_section_line_info, cold_text_section_line_info): New.
3851 (separate_line_info): New.
3852 (SEPARATE_LINE_CODE_LABEL): Remove.
3853 (print_dwarf_line_table): Remove.
3854 (debug_dwarf): Don't dump it.
3855 (output_one_line_info_table): New.
3856 (output_line_info): Use it.
3857 (new_line_info_table): New.
3858 (set_cur_line_info_table): New.
3859 (dwarf2out_switch_text_section): Use it.
3860 (dwarf2out_begin_function): Likewise.
3861 (push_dw_line_info_entry): New.
3862 (dwarf2out_source_line): Rewrite for new line info tables.
3863 (dwarf2out_init): Remove dead initailizations.
3864
300d83d9
JM
38652011-03-31 Joseph Myers <joseph@codesourcery.com>
3866
3867 * opts.h (cl_option): Add comments to fields. Add bit-fields for
3868 various flags.
3869 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3870 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3871 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3872 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3873 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3874 * opt-functions.awk (flag_init, switch_bit_fields): New.
3875 (switch_flags): Don't handle flags moved to bit-fields. Don't
3876 generate CL_MISSING_OK or CL_SAVE.
3877 * optc-gen.awk: Update to generate bit-field output as well as
3878 flags field.
3879 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3880 bit-field instead of CL_REJECT_DRIVER flag.
3881 * opts-common.c (generate_canonical_option,
3882 decode_cmdline_option): Use bit-fields instead of CL_* flags.
3883 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3884 instead of CL_REJECT_NEGATIVE flag.
3885 * toplev.c (print_switch_values): Use cl_report bit-field instead
3886 of CL_REPORT flag.
3887
d4d73ce2
EB
38882011-03-31 Eric Botcazou <ebotcazou@adacore.com>
3889
3890 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3891 a zero minimum index only if it is redundant.
3892
b8faca75
VM
38932011-03-31 Vladimir Makarov <vmakarov@redhat.com>
3894
3895 PR rtl-optimization/48381
3896 * ira-color.c (assign_hard_reg): Use hard reg set intersection
3897 instead of ira_class_hard_reg_index for calculating conflicting
3898 hard registers.
3899
7d11cebe
SB
39002011-03-31 Steven Bosscher <steven@gcc.gnu.org>
3901
3902 * cprop.c: Clean up hash table building.
3903 (reg_avail_info): Remove.
3904 (oprs_available_p): Remove.
3905 (record_last_reg_set_info): Remove.
3906 (record_last_set_info): Remove.
3907 (reg_available_p): New function.
3908 (gcse_constant_p): Do not treat unfolded conditions as constants.
3909 (make_set_regs_unavailable): New function.
3910 (hash_scan_set): Simplify with new reg_available_p.
3911 (compute_hash_table_work): Traverse insns stream only once.
3912 Do not compute reg_avail_info. Traverse insns in reverse order.
3913 Record implicit sets after recording explicit sets from the block.
3914
98faf84f
MM
39152011-03-31 Michael Matz <matz@suse.de>
3916
e9c18386 3917 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 3918
f52d97da
AS
39192011-03-31 Anatoly Sokolov <aesok@post.ru>
3920
3921 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3922 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3923 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3924 (h8300_mode_dependent_address_p): New function.
3925 (h8300_get_index): Make static.
3926
e16b6fd0
JL
39272011-03-31 Jeff Law <law@redhat.com>
3928
10c51983
JL
3929 * reload1.c (elimination_effects): Fix typo in recent change.
3930
e9c18386 3931 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
3932 typo potentially leading to null pointer dereference.
3933
3934 * caller-save.c (new_saved_hard_reg): Eliminate return value.
3935 (setup_save_areas): Corresponding changes to avoid useless
3936 assignments.
3937
3938 * jump.c (reversed_comparison_code_parts): Avoid successive return
3939 statements when REVERSE_CONDITION is defined.
3940
3941 * expr.c (expand_assignment): Avoid useless assignments.
3942 (expand_expr_real_1): Likewise.
3943 (expand_expr_real_2): Avoid useless statements.
3944
3945 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3946
3947 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3948
3949 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3950 statements.
3951
3952 * stmt.c (expand_expr_stmt): Avoid useless assignment.
3953
eb1eb914
JM
39542011-03-31 Joseph Myers <joseph@codesourcery.com>
3955
3956 PR target/47109
3957 * doc/tm.texi.in (TARGET_VERSION): Remove.
3958 * doc/tm.texi: Regenerate.
3959 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3960 * collect2.c (main): Don't use TARGET_VERSION.
3961 * mips-tdump.c (main): Don't use TARGET_VERSION.
3962 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 3963 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
3964 * config/rs6000/vxworksae.h: Remove.
3965 * config/alpha/alpha.h (TARGET_VERSION): Remove.
3966 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3967 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3968 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3969 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3970 * config/arm/arm.h (TARGET_VERSION): Remove.
3971 * config/arm/coff.h (TARGET_VERSION): Remove.
3972 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3973 * config/arm/elf.h (TARGET_VERSION): Remove.
3974 * config/arm/freebsd.h (TARGET_VERSION): Remove.
3975 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3976 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3977 * config/arm/pe.h (TARGET_VERSION): Remove.
3978 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3979 * config/arm/semi.h (TARGET_VERSION): Remove.
3980 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3981 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3982 * config/arm/vxworks.h (TARGET_VERSION): Remove.
3983 * config/avr/avr.h (TARGET_VERSION): Remove.
3984 * config/bfin/bfin.h (TARGET_VERSION): Remove.
3985 * config/fr30/fr30.h (TARGET_VERSION): Remove.
3986 * config/frv/frv.h (TARGET_VERSION): Remove.
3987 * config/h8300/h8300.h (TARGET_VERSION): Remove.
3988 * config/i386/cygwin.h (TARGET_VERSION): Remove.
3989 * config/i386/darwin.h (TARGET_VERSION): Remove.
3990 * config/i386/darwin64.h (TARGET_VERSION): Remove.
3991 * config/i386/djgpp.h (TARGET_VERSION): Remove.
3992 * config/i386/freebsd.h (TARGET_VERSION): Remove.
3993 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3994 * config/i386/gnu.h (TARGET_VERSION): Remove.
3995 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3996 * config/i386/i386elf.h (TARGET_VERSION): Remove.
3997 * config/i386/linux.h (TARGET_VERSION): Remove.
3998 * config/i386/linux64.h (TARGET_VERSION): Remove.
3999 * config/i386/lynx.h (TARGET_VERSION): Remove.
4000 * config/i386/mingw32.h (TARGET_VERSION): Remove.
4001 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
4002 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
4003 * config/i386/netware.h (TARGET_VERSION): Remove.
4004 * config/i386/nto.h (TARGET_VERSION): Remove.
4005 * config/i386/openbsd.h (TARGET_VERSION): Remove.
4006 * config/i386/vxworks.h (TARGET_VERSION): Remove.
4007 * config/ia64/elf.h (TARGET_VERSION): Remove.
4008 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
4009 * config/ia64/hpux.h (TARGET_VERSION): Remove.
4010 * config/ia64/linux.h (TARGET_VERSION): Remove.
4011 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
4012 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
4013 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4014 * config/lm32/lm32.h (TARGET_VERSION): Remove.
4015 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
4016 * config/m32c/m32c.h (TARGET_VERSION): Remove.
4017 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
4018 * config/m32r/m32r.h (TARGET_VERSION): Remove.
4019 * config/m68k/linux.h (TARGET_VERSION): Remove.
4020 * config/m68k/m68k.h (TARGET_VERSION): Remove.
4021 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
4022 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
4023 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
4024 * config/mep/mep.h (TARGET_VERSION): Remove.
4025 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
4026 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4027 * config/mips/iris6.h (MACHINE_TYPE): Remove.
4028 * config/mips/linux.h (TARGET_VERSION): Remove.
4029 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
4030 * config/mips/vxworks.h (TARGET_VERSION): Remove.
4031 * config/mmix/mmix.h (TARGET_VERSION): Remove.
4032 * config/mn10300/linux.h (TARGET_VERSION): Remove.
4033 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
4034 * config/pa/pa.h (TARGET_VERSION): Remove.
4035 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
4036 * config/picochip/picochip.h (TARGET_VERSION): Remove.
4037 * config/rs6000/aix.h (TARGET_VERSION): Remove.
4038 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
4039 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
4040 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
4041 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
4042 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
4043 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
4044 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
4045 * config/rs6000/linux.h (TARGET_VERSION): Remove.
4046 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
4047 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
4048 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
4049 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
4050 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
4051 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
4052 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
4053 * config/s390/linux.h (TARGET_VERSION): Remove.
4054 * config/s390/s390.h (TARGET_VERSION): Remove.
4055 * config/s390/tpf.h (TARGET_VERSION): Remove.
4056 * config/score/score.h (TARGET_VERSION): Remove.
4057 * config/sh/linux.h (TARGET_VERSION): Remove.
4058 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
4059 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
4060 * config/sh/sh.h (TARGET_VERSION): Remove.
4061 * config/sh/sh64.h (TARGET_VERSION): Remove.
4062 * config/sh/superh.h (TARGET_VERSION): Remove.
4063 * config/sh/vxworks.h (TARGET_VERSION): Remove.
4064 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
4065 * config/sparc/linux.h (TARGET_VERSION): Remove.
4066 * config/sparc/linux64.h (TARGET_VERSION): Remove.
4067 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
4068 TARGET_NAME32, TARGET_NAME): Remove.
4069 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
4070 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
4071 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
4072 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
4073 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
4074 * config/spu/spu.h (TARGET_VERSION): Remove.
4075 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
4076 * config/v850/v850.h (TARGET_VERSION): Remove.
4077 * config/vax/linux.h (TARGET_VERSION): Remove.
4078 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
4079 * config/xtensa/elf.h (TARGET_VERSION): Remove.
4080 * config/xtensa/linux.h (TARGET_VERSION): Remove.
4081
ace31bca
EB
40822011-03-31 Eric Botcazou <ebotcazou@adacore.com>
4083
4084 PR target/48142
4085 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
4086 frame-related from frame-unrelated adjustments to the stack pointer.
4087
76f9db36
JJ
40882011-03-31 Jakub Jelinek <jakub@redhat.com>
4089
4090 * common.opt (fdebug-types-section): Move earlier.
4091 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4092
b7826465
AT
40932011-03-31 Andreas Tobler <andreast@fgznet.ch>
4094
4095 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4096 var.
4097
1290e54c
NF
40982011-03-30 Nathan Froyd <froydnj@codesourcery.com>
4099
4100 * tree.h (CASE_CHAIN): Define.
4101 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4102 (gimple_redirect_edge_and_branch): Likewise.
4103
bddc98e1
VM
41042011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4105
4106 PR middle-end/48367
4107 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4108 calculation.
4109
c865e437
JL
41102011-03-30 Jeff Law <law@redhat.com>
4111
b3750213 4112 * PR bootstrap/48371
c865e437
JL
4113 * reload1.c (reload): Fix botch in last change.
4114
4115 * reload.h (struct reload): Fix typo introduced in last change.
4116
2cdf9574
JM
41172011-03-30 Joseph Myers <joseph@codesourcery.com>
4118
4119 * config/arm/arm.opt (mhard-float, msoft-float): Mark
4120 Undocumented. Remove help text.
4121 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4122 -mhard-float.
4123
666a21a2
JM
41242011-03-30 Joseph Myers <joseph@codesourcery.com>
4125
4126 * doc/options.texi (NegativeAlias): Document.
4127 (Alias): Mention NegativeAlias.
4128 * opt-functions.awk: Handle NegativeAlias.
e9c18386 4129 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
4130 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4131 * opts.h (CL_NEGATIVE_ALIAS): Define.
4132 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4133 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4134 OPT_mspe_.
4135 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4136 Alias entries.
4137 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4138 mno-spe and mno-isel instead of mspe=no and -misel=no.
4139
0fa4e351
MW
41402011-03-29 Mark Wielaard <mjw@redhat.com>
4141
4142 * common.opt (fdebug-types-section): New flag.
4143 * doc/invoke.texi: Document new -fno-debug-types-section flag.
4144 * dwarf2out.c (use_debug_types): New define.
4145 (struct die_struct): Mark die_id with GTY desc use_debug_types.
4146 (print_die): Guard output of type unit signatures using
4147 use_debug_types.
4148 (build_abbrev_table): Replace assert of dwarf_version >= 4
4149 with assert on use_debug_types.
4150 (size_of_die): Likewise.
4151 (unmark_dies): Likewise.
4152 (value_format): Decide AT_ref_external form on use_debug_types.
4153 (output_die): Replace dwarf_version version check guard with
4154 use_debug_types where appropriate.
4155 (modified_type_die): Likewise.
4156 (gen_reference_type_die): Likewise.
4157 (dwarf2out_start_source_file): Likewise.
4158 (dwarf2out_end_source_file): Likewise.
4159 (prune_unused_types_walk_attribs): Likewise.
4160 (dwarf2out_finish): Likewise.
4161
4648deb4
VM
41622011-03-30 Vladimir Makarov <vmakarov@redhat.com>
4163
4164 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4165
4f431835
RS
41662011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4167
4168 PR rtl-optimization/48332
4169 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4170 mode of input operand N and modeN to its actual mode.
4171
f2034d06
JL
41722011-03-30 Jeff Law <law@redhat.com>
4173
4174 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4175 define accessor macro.
4176 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4177 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4178 (reg_equiv_init): Likewise.
4179 (reg_equivs_size): New variable.
4180 (reg_equiv_init_size): Remove.
4181 (allocate_initial_values): Move prototype to here from....
4182 * integrate.h (allocate_initial_values): Remove prototype.
4183 * integrate.c: Include reload.h.
4184 (allocate_initial_values): Corresponding changes.
4185 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4186 (fix_reg_equiv_init, no_equiv): Corresponding changes.
4187 (update_equiv_regs): Corresponding changes.
4188 (ira): Corresponding changes.
4189 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4190 (push_secondary_reload): Corresponding changes.
4191 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4192 (make_memloc, find_reloads_address): Corresponding changes.
4193 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4194 (find_reloads_address_1): Corresponding changes.
4195 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4196 (refers_to_regno_for_reload_p): Corresponding changes.
4197 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4198 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4199 * reload1.c: Include ggc.h.
4200 (grow_reg_equivs): New function.
4201 (replace_pseudos_in, reload): Corresponding changes.
4202 (calculate_needs_all_insns, alter_regs): Corresponding changes.
4203 (eliminate_regs_1, elimination_effects): Corresponding changes.
4204 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4205 (delete_output_reload): Likewise.
4206 * caller-save.c (mark_referenced_regs): Corresponding changes.
4207 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4208 * frv/predicates.md (frv_load_operand): Corresponding changes.
4209 * microblaze/microblaze.c (double_memory_operand): Corresponding
4210 changes.
4211 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4212 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 4213 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
4214 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4215 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4216 changes.
4217 * pa/pa.c (emit_move_sequence): Corresponding changes.
4218 * vax/vax.c (nonindexed_address_p): Corresponding changes.
4219
159b81b0
RS
42202011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4221
4222 PR target/47551
4223 * config/arm/arm.c (coproc_secondary_reload_class): Handle
4224 structure modes. Don't check neon_vector_mem_operand for
4225 vector or structure modes.
4226
a6217191
RS
42272011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
4228 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4229
4230 PR target/43590
4231 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4232 operand 1 and reshuffle the operands to match.
4233 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4234
bd837408
CS
42352011-03-30 Christian Schüler <cschueler@gmx.de>
4236
6955d771 4237 PR driver/48208
bd837408 4238 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 4239
6955d771 4240 PR driver/48260
bd837408
CS
4241 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4242 handler function.
4243 * config/darwin.opt: Added '-arch' option.
4244
e9c0470a
NC
42452011-03-30 Nick Clifton <nickc@redhat.com>
4246
4247 * config/rx/rx.md: Add peepholes and patterns to combine
4248 extending loads and simple arithmetic instructions.
4249 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
4250 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4251 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 4252 modes to use pre-decrement and post-increment addressing.
e9c18386 4253 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 4254 addresses.
e9c18386
UB
4255 (rx_print_operand): Add support for %Q. Fix handling of %Q.
4256 (rx_memory_move_cost): Adjust cost of stores.
4257 (rx_adjust_insn_length): New function.
e9c0470a 4258
8a87e7ab
JJ
42592011-03-30 Jakub Jelinek <jakub@redhat.com>
4260
4261 PR c/48305
4262 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4263 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4264 matching arg00/arg01 types.
4265
12486e03
EB
42662011-03-30 Eric Botcazou <ebotcazou@adacore.com>
4267
4268 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4269 last_location to UNKNOWN_LOCATION.
4270
0b99eef6
L
42712011-03-30 H.J. Lu <hongjiu.lu@intel.com>
4272
4273 PR target/48349
4274 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4275 FLOAT_SSE_REGS.
4276
023592aa
JM
42772011-03-30 Joseph Myers <joseph@codesourcery.com>
4278 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4279
4280 PR bootstrap/48337
4281 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4282 Init(PROCESSOR_V7).
4283 (sparc_cpu): Likewise.
4284 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4285 PROCESSOR_V7.
4286
ad3b266b
VM
42872011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4288
4289 PR target/48336
4290 PR middle-end/48342
4291 PR rtl-optimization/48345
4292 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4293 hard regs for given mode from profitable regs when doing secondary
4294 allocation.
4295
633c9126
JL
42962011-03-29 Jeff Law <law@redhat.com>
4297
4298 PR bootstrap/48327
4299 * tree-ssa-threadupdate.c (struct redirection_data): Remove
4300 do_not_duplicate field.
4301 (lookup_redirection_data): Corresponding changes.
4302 (create_duplicates): Always create a template block.
4303 (redirect_edges): Remove code which reused the original block
4304 when it was going to become unreachable code.
4305 (thread_block): Don't set do_not_duplicate field.
4306
eb50f63a
JM
43072011-03-29 Joseph Myers <joseph@codesourcery.com>
4308
4309 * lto-opts.c (register_user_option_p, lto_register_user_option):
4310 Make type argument unsigned.
4311 * lto-streamer.h (lto_register_user_option): Make type argument
4312 unsigned.
4313 * opth-gen.awk: Make CL_* macros unsigned.
4314 * opts-common.c (find_opt): Make lang_mask argument unsigned.
4315 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4316 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4317 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4318 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4319 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4320 (find_opt): Make lang_mask argument unsigned.
4321
76763a6d
VM
43222011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4323
4324 PR rtl-optimization/48331
4325 PR rtl-optimization/48334
4326 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4327 for any used algorithm.
4328
5c82436e
VM
43292011-03-29 Vladimir Makarov <vmakarov@redhat.com>
4330
4331 * ira-conflicts.c (build_object_conflicts): Add unused attribute
4332 to parent_max.
4333
7a81008b
UB
43342011-03-29 Uros Bizjak <ubizjak@gmail.com>
4335
4336 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4337 (alpha_option_override): Don't set alpha_sr_alias_set.
4338 (emit_frame_store_1): Use gen_frame_mem rather than calling
4339 set_mem_alias_set.
4340 (alpha_expand_epilogue): Ditto.
4341
86c8d1f6
IR
43422011-03-29 Ira Rosen <ira.rosen@linaro.org>
4343
4344 PR tree-optimization/48290
4345 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4346 vectorization, check that relevant phis in the basic block after
4347 the inner loop are really inner loop's exit phis.
4348
0d12220f
RS
43492011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
4350
e8cf17e7 4351 PR debug/48190
0d12220f
RS
4352 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4353 (cached_dw_loc_list_def): New structure.
4354 (cached_dw_loc_list): New typedef.
4355 (cached_dw_loc_list_table): New variable.
4356 (cached_dw_loc_list_table_hash): New function.
4357 (cached_dw_loc_list_table_eq): Likewise.
4358 (add_location_or_const_value_attribute): Take a bool cache_p.
4359 Cache the list when the parameter is true.
4360 (gen_formal_parameter_die): Update caller.
4361 (gen_variable_die): Likewise.
4362 (dwarf2out_finish): Likewise.
4363 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4364 while generating debug info for the decl.
4365 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4366 (dwarf2out_init): Initialize cached_dw_loc_list_table.
4367 (resolve_addr): Cache the result of resolving a chain of
4368 location lists.
4369
1756cb66
VM
43702011-03-28 Vladimir Makarov <vmakarov@redhat.com>
4371
4372 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4373 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 4374
1756cb66
VM
4375 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4376 after regstat_init_n_sets_and_refs.
4377
4378 * ira.c: Add more comments at the top.
4379 (setup_stack_reg_pressure_class, setup_pressure_classes):
4380 Add comments how we compute the register pressure classes.
4381 (setup_allocno_and_important_classes): Add more comments.
4382 (setup_class_translate_array, reorder_important_classes)
4383 (setup_reg_class_relations): Add comments.
4384
4385 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
4386 start of the file.
4387
4388 * ira-color.c: Add 2011 to the Copyright line.
4389 (assign_hard_reg): Add more comments.
4390 (improve_allocation): Ditto.
4391
4392 * ira-costs.c: Add 2011 to the Copyright line.
4393 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4394 comments.
4395 (setup_regno_cost_classes_by_mode): Ditto.
4396
4397 Initial patches from ira-improv branch:
4398
4399 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4400
f60c2554 4401 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
4402 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
4403 (ira_create_allocno): Remove initialization of
4404 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4405 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4406 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4407 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4408 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4409 Initialize ALLOCNO_ADD_DATA.
4410 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4411 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4412 ALLOCNO_REG.
4413 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
4414 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4415
4416 * ira.c (ira_reallocate): Remove.
4417 (setup_pressure_classes): Call
4418 ira_init_register_move_cost_if_necessary. Use
4419 ira_register_move_cost instead of ira_get_register_move_cost.
4420 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4421 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4422
4423 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4424 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4425 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4426 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4427 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4428 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4429 Fix formatting.
7a81008b 4430 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
4431 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4432 (struct allocno_color_data): New.
4433 (allocno_color_data_t): New typedef.
4434 (allocno_color_data): New definition.
4435 (ALLOCNO_COLOR_DATA): New macro.
4436 (struct object_color_data): New.
4437 (object_color_data_t): New typedef.
4438 (object_color_data): New definition.
4439 (OBJECT_COLOR_DATA): New macro.
4440 (update_copy_costs, calculate_allocno_spill_cost): Call
4441 ira_init_register_move_cost_if_necessary. Use
4442 ira_register_move_cost instead of ira_get_register_move_cost.
4443 (move_spill_restore, update_curr_costs): Ditto.
4444 (allocno_spill_priority): Make it inline.
7a81008b 4445 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
4446 (struct coalesce_data, coalesce_data_t): New.
4447 (allocno_coalesce_data): New definition.
4448 (ALLOCNO_COALESCE_DATA): New macro.
4449 (merge_allocnos, coalesced_allocno_conflict_p): Use
4450 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4451 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4452 (coalesce_allocnos): Ditto.
4453 (setup_coalesced_allocno_costs_and_nums): Ditto.
4454 (collect_spilled_coalesced_allocnos): Ditto.
4455 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4456 (setup_slot_coalesced_allocno_live_ranges): Ditto.
4457 (coalesce_spill_slots): Ditto.
4458 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
4459 free allocno_coalesce_data.
4460
4461 * ira-conflicts.c: Fix formatting.
4462 (process_regs_for_copy): Call
4463 ira_init_register_move_cost_if_necessary. Use
4464 ira_register_move_cost instead of ira_get_register_move_cost.
4465 (build_object_conflicts): Optimize.
4466
4467 * ira-costs.c (record_reg_classes): Optimize. Call
4468 ira_init_register_move_cost_if_necessary. Use
4469 ira_register_move_cost, ira_may_move_in_cost, and
4470 ira_may_move_out_cost instead of ira_get_register_move_cost and
4471 ira_get_may_move_cost.
4472 (record_address_regs): Ditto.
4473 (scan_one_insn): Optimize.
4474 (find_costs_and_classes): Optimize.
4475 (process_bb_node_for_hard_reg_moves): Call
4476 ira_init_register_move_cost_if_necessary. Use
4477 ira_register_move_cost instead of ira_get_register_move_cost.
4478
4479 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4480 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4481 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4482 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4483 definitions.
4484 (ira_initiate_emit_data, ira_finish_emit_data)
4485 (create_new_allocno): New functions.
7a81008b 4486 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
4487 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4488 Use ira_register_move_cost instead of ira_get_register_move_cost.
4489
4490 * ira-int.h: Fix some comments.
7a81008b
UB
4491 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4492 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
4493 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4494 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
4495 add_data.
4496 (struct ira_allocno): Make mode and aclass a bitfield. Move other
4497 bitfield after mode. Make hard_regno a short int. Make
4498 hard_regno short. Remove first_coalesced_allocno and
4499 next_coalesced_allocno. Move mem_optimized_dest_p,
4500 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4501 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
4502 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4503 temp, colorable_p. Add new member add_data.
4504 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4505 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4506 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4507 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4508 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4509 (ALLOCNO_ADD_DATA): New macro.
4510 (ira_emit_data_t): New typedef.
4511 (struct ira_emit_data): New. Move mem_optimized_dest_p,
4512 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4513 from struct ira_allocno.
4514 (ALLOCNO_EMIT_DATA): New macro.
4515 (ira_allocno_emit_data, allocno_emit_reg): New.
4516 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 4517 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
4518 (OBJECT_ADD_DATA): New macro.
4519 (ira_reallocate): Remove.
4520 (ira_initiate_emit_data, ira_finish_emit_data): New.
4521 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4522 (ira_init_register_move_cost_if_necessary): New.
4523 (ira_object_conflict_iter_next): Merge into
4524 ira_object_conflict_iter_cond.
7a81008b 4525 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 4526
f60c2554 4527 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
4528 ira_init_register_move_cost_if_necessary. Use
4529 ira_register_move_cost instead of ira_get_register_move_cost.
4530
4531 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
4532
4533 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4534
4535 * ira-costs.c: Fix formatting.
4536 (cost_classes, cost_classes_num): Remove.
4537 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4538 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4539 (cost_classes_del, cost_classes_htab): New.
4540 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4541 (initiate_regno_cost_classes, setup_cost_classes): New.
4542 (setup_regno_cost_classes_by_aclass): New.
7a81008b 4543 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
4544 (record_reg_classes): Use regno_cost_classes instead of
4545 cost_classes. Move checking opposite operand up.
4546 (record_address_regs): Use regno_cost_classes
4547 instead of cost_classes.
4548 (scan_one_insn): Ditto. Use always general register.
4549 (print_allocno_costs): Use regno_cost_classes instead of
4550 cost_classes.
4551 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
4552 (find_costs_and_classes): Set up cost classes for each registers.
4553 Use also their mode for this. Use regno_cost_classes instead of
4554 cost_classes.
4555 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4556 cost_classes.
4557 (free_ira_costs, ira_init_costs): Don't use cost_classes.
4558 (ira_costs, ira_set_pseudo_classes): Call
4559 initiate_regno_cost_classes and finish_regno_cost_classes.
4560
4561 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4562
4563 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4564
4565 * target.def (ira_cover_classes): Remove.
4566
7a81008b 4567 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
4568
4569 * doc/tm.texi.in: Ditto.
4570
4571 * ira-conflicts.c: Remove mentioning cover classes from the file.
4572 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 4573 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
4574
4575 * targhooks.c (default_ira_cover_classes): Remove.
4576
4577 * targhooks.h (default_ira_cover_classes): Ditto.
4578
4579 * haifa-sched.c: Remove mentioning cover classes from the file.
4580 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4581 ira_pressure_classes and ira_pressure_classes_num instead of
4582 ira_reg_class_cover_size and ira_reg_class_cover. Use
4583 sched_regno_pressure_class instead of sched_regno_cover_class.
4584 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4585 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4586
4587 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
4588 classes from the file.
4589 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4590 (struct object_hard_regs, struct object_hard_regs_node): New.
4591 (struct ira_object): New members profitable_hard_regs,
4592 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4593 (struct ira_allocno): Rename cover_class to aclass. Rename
4594 cover_class_cost and updated_cover_class_cost to class_cost and
4595 updated_class_cost. Remove splay_removed_p and
4596 left_conflict_size. Add new members colorable_p.
4597 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4598 (ALLOCNO_COLORABLE_P): New macro.
4599 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4600 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4601 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4602 (OBJECT_...): Rename parameter C to O.
4603 (OBJECT_PROFITABLE_HARD_REGS): New macro.
4604 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4605 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4606 (struct target_ira_int): New members x_ira_max_memory_move_cost,
4607 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4608 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4609 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4610 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
4611 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
4612 x_ira_reg_class_subunion.
4613 (ira_max_memory_move_cost, ira_max_register_move_cost)
4614 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4615 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4616 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 4617 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
4618 (ira_reg_class_union): Rename to ira_reg_class_subunion.
4619 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4620 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4621 (ira_tune_allocno_costs_and_cover_classes): Rename to
4622 ira_tune_allocno_costs.
4623 (ira_debug_hard_regs_forest): New.
4624 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4625 (ira_object_conflict_iter_next): Fix comments.
7a81008b 4626 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
4627 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4628 cover_class to aclass.
4629 (ira_allocate_and_accumulate_costs): Ditto.
4630 (ira_allocate_and_set_or_copy_costs): Ditto.
4631
4632 * opts.c (decode_options): Remove ira_cover_class check.
4633
4634 * ira-color.c: Remove mentioning cover classes from the file. Use
4635 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4636 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4637 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4638 (splay-tree.h): Remove include.
4639 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4640 before copy_freq_compare_func.
4641 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4642 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4643 New definitions.
4644 (hard_regs_roots, hard_regs_node_vec): Ditto.
4645 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4646 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4647 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4648 (create_new_object_hard_regs_node): Ditto.
4649 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 4650 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
4651 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4652 Ditto.
4653 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4654 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4655 (remove_unused_object_hard_regs_nodes): Ditto.
4656 (enumerate_object_hard_regs_nodes): Ditto.
4657 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4658 (object_hard_regs_subnode_t): Ditto.
4659 (struct object_hard_regs_subnode): Ditto.
4660 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4661 (setup_object_hard_regs_subnode_index): Ditto.
4662 (get_object_hard_regs_subnodes_num): Ditto.
4663 (form_object_hard_regs_nodes_forest): Ditto.
4664 (finish_object_hard_regs_nodes_tree): Ditto.
4665 (finish_object_hard_regs_nodes_forest): Ditto.
4666 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 4667 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
4668 (pseudos_have_intersected_live_ranges_p): Rename to
4669 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
4670 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4671 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4672 (update_copy_costs): Remove assert. Skip cost update if the hard
4673 reg does not belong the class.
4674 (assign_hard_reg): Process only profitable hard regs.
4675 (uncolorable_allocnos_num): Make it scalar.
4676 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4677 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4678 and ira_reg_class_max_nregs.
4679 (bucket_allocno_compare_func): Check frequency first.
4680 (sort_bucket): Add compare function as a parameter.
4681 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4682 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4683 (push_allocno_to_stack): Rewrite for checking new allocno
4684 colorability.
7a81008b 4685 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
4686 (push_only_colorable): Pass new parameter to sort_bucket.
4687 (push_allocno_to_spill): Remove.
4688 (allocno_spill_priority_compare): Make it inline and rewrite.
4689 (splay_tree_allocate, splay_tree_free): Remove.
4690 (allocno_spill_sort_compare): New function.
4691 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
4692 build and use splay tree. Choose first allocno in uncolorable
4693 allocno bucket to spill. Remove setting spill cost.
4694 (all_conflicting_hard_regs): Remove.
4695 (setup_allocno_available_regs_num): Check only profitable hard
4696 regs. Print info about hard regs nodes.
4697 (setup_allocno_left_conflicts_size): Remove.
4698 (put_allocno_into_bucket): Don't call
7a81008b 4699 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
4700 (improve_allocation): New.
4701 (color_allocnos): Call setup_profitable_hard_regs,
4702 form_object_hard_regs_nodes_forest, improve_allocation,
4703 finish_object_hard_regs_nodes_forest. Setup spill cost.
4704 (print_loop_title): Use pressure classes.
4705 (color_allocnso): Ditto.
4706 (do_coloring): Remove allocation and freeing splay_tree_node_pool
4707 and allocnos_for_spilling.
4708 (ira_sort_regnos_for_alter_reg): Don't setup members
4709 {first,next}_coalesced_allocno.
4710 (color): Remove allocating and freeing removed_splay_allocno_vec.
4711 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4712 prohibited_class_mode_regs.
4713
4714 * ira-lives.c: Remove mentioning cover classes from the file. Fix
4715 formatting.
4716 (update_allocno_pressure_excess_length): Use pressure classes.
4717 (inc_register_pressure, dec_register_pressure): Check for pressure
4718 class.
4719 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4720 pressure class. Use ira_reg_class_nregs instead of
4721 ira_reg_class_max_nregs.
4722 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4723 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4724 (single_reg_class): Use ira_reg_class_nregs instead of
4725 ira_reg_class_max_nregs.
4726 (process_bb_node_lives): Use pressure classes.
4727
4728 * ira-emit.c: Remove mentioning cover classes from the file. Use
4729 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
4730 (change_loop): Use pressure classes.
4731 (modify_move_list): Call ira_set_allocno_class instead of
4732 ira_set_allocno_cover_class.
4733
4734 * ira-build.c: Remove mentioning cover classes from the file. Use
4735 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4736 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
4737 ALLOCNO_UPDATED_CLASS_COST instead of
4738 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
4739 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4740 (ira_create_allocno): Remove initialization of
4741 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
4742 ALLOCNO_COLORABLE_P.
4743 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4744 Update conflict regs for the objects.
4745 (create_cap_allocno): Remove assert. Don't propagate
4746 ALLOCNO_AVAILABLE_REGS_NUM.
4747 (ira_free_allocno_costs): New function.
4748 (finish_allocno): Change a part of code into call of
4749 ira_free_allocno_costs.
4750 (low_pressure_loop_node_p): Use pressure classes.
4751 (object_range_compare_func): Don't compare classes.
4752 (setup_min_max_conflict_allocno_ids): Ditto.
4753
4754 * loop-invariant.c: Remove mentioning cover classes from the file.
4755 Use ira_pressure_classes and ira_pressure_classes_num instead of
4756 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
4757 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4758 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4759 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
4760 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4761 STACK_REG_COVER_CLASS.
4762 (get_regno_cover_class): Rename to get_regno_pressure_class.
4763 (move_loop_invariants): Initialize and finalize regstat.
4764
4765 * ira.c: Remove mentioning cover classes from the file. Add
4766 comments about coloring without cover classes. Use ALLOCNO_CLASS
4767 instead of ALLOCNO_COVER_CLASS. Fix formatting.
4768 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4769 setup_class_subset_and_memory_move_costs.
4770 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4771 (setup_cover_and_important_classes): Rename to
4772 setup_allocno_and_important_classes.
4773 (setup_class_translate_array): New.
4774 (setup_class_translate): Call it for allocno and pressure classes.
4775 (cover_class_order): Rename to allocno_class_order.
4776 (comp_reg_classes_func): Use ira_allocno_class_translate instead
4777 of ira_class_translate.
4778 (reorder_important_classes): Set up ira_important_class_nums.
4779 (setup_reg_class_relations): Set up ira_reg_class_superunion.
4780 (print_class_cover): Rename to print_classes. Add parameter.
4781 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4782 Print pressure classes too.
4783 (find_reg_class_closure): Rename to find_reg_classes. Don't call
4784 setup_reg_subclasses.
7a81008b 4785 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
4786 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4787 (setup_prohibited_class_mode_regs): Use
7a81008b 4788 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
4789 (clarify_prohibited_class_mode_regs): New function.
4790 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4791 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4792 (ira_init_once): Initialize them.
4793 (free_register_move_costs): Process them.
4794 (ira_init): Move calls of find_reg_classes and
4795 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4796 Call clarify_prohibited_class_mode_regs.
4797 (ira_no_alloc_reg): Remove.
4798 (too_high_register_pressure_p): Use pressure classes.
4799
4800 * sched-deps.c: Remove mentioning cover classes from the file.
4801 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
4802 ira_pressure_classes and ira_pressure_classes_num instead of
4803 ira_reg_class_cover_size and ira_reg_class_cover.
4804 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4805 sched_regno_pressure_class instead of sched_regno_cover_class.
4806 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
4807 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4808
4809 * ira.h: Add 2010 to Copyright.
4810 (ira_no_alloc_reg): Remove external.
4811 (struct target_ira): Rename x_ira_hard_regno_cover_class,
4812 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4813 x_ira_class_translate to x_ira_hard_regno_allocno_class,
4814 x_ira_allocno_classes_num, x_ira_allocno_classes, and
4815 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
4816 x_ira_pressure_classes, x_ira_pressure_class_translate, and
4817 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
4818 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
4819 x_ira_no_alloc_regs.
7a81008b 4820 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
4821 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4822 ira_allocno_classes_num and ira_allocno_classes.
4823 (ira_class_translate): Rename to ira_allocno_class_translate.
4824 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4825 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4826 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4827 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4828 (ira_no_alloc_regs): New.
4829
4830 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
4831 classes from the file. Use ALLOCNO_CLASS instead of
4832 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
4833 ALLOCNO_COVER_CLASS_COST.
4834 (regno_cover_class): Rename to regno_aclass.
4835 (record_reg_classes): Use ira_reg_class_subunion instead of
4836 ira_reg_class_union.
4837 (record_address_regs): Check overflow.
4838 (scan_one_insn): Ditto.
7a81008b 4839 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
4840 (print_pseudo_costs): Use REG_N_REFS.
4841 (find_costs_and_classes): Use classes intersected with them on the
4842 1st pass. Check overflow. Use ira_reg_class_subunion instead of
4843 ira_reg_class_union. Use ira_allocno_class_translate and
4844 regno_aclass instead of ira_class_translate and regno_cover_class.
4845 Modify code for finding regno_aclass. Setup preferred classes for
4846 the next pass.
4847 (setup_allocno_cover_class_and_costs): Rename to
4848 setup_allocno_class_and_costs. Use regno_aclass instead of
4849 regno_cover_class. Use ira_set_allocno_class instead of
4850 ira_set_allocno_cover_class.
4851 (init_costs, finish_costs): Use regno_aclass instead of
4852 regno_cover_class.
4853 (ira_costs): Use setup_allocno_class_and_costs instead of
4854 setup_allocno_cover_class_and_costs.
4855 (ira_tune_allocno_costs_and_cover_classes): Rename to
4856 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
4857 by processing objects. Use ira_reg_class_max_nregs instead of
4858 ira_reg_class_nregs.
4859
4860 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4861
4862 * sched-int.h: Remove mentioning cover classes from the file.
4863 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4864
4865 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
4866 classes from the file.
4867 (struct reg_pref): Rename coverclass into allocnoclass.
4868 (reg_cover_class): Rename to reg_allocno_class.
4869
7a81008b 4870 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
4871
4872 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4873
4874 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4875
4876 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4877
4878 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4879
4880 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4881
4882 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4883
4884 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4885
4886 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4887
4888 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4889
4890 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4891 (i386_ira_cover_classes): Ditto.
4892
4893 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4894
4895 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4896
4897 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4898
4899 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4900
4901 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4902
4903 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4904
4905 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4906 (mips_ira_cover_classes): Ditto.
4907
4908 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4909
4910 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4911
4912 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4913
4914 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4915
4916 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4917
4918 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4919 (IRA_COVER_CLASSES_VSX): Ditto.
4920
4921 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4922 (rs6000_ira_cover_classes): Ditto.
4923
4924 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4925
4926 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4927
4928 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4929
4930 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4931
4932 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4933
4934 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4935
4936 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4937
4938 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4939
4940 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4941
4942 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4943
2b80199f
JJ
49442011-03-29 Jakub Jelinek <jakub@redhat.com>
4945
71dae1fe
JJ
4946 PR debug/48253
4947 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4948 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4949 dw_fde_unlikely_section_end_label, cold_in_std_section,
4950 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4951 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4952 fields.
4953 (output_fde): Use dw_fde_second_{begin,end} if second is
4954 true, otherwise dw_fde_{begin,end}.
4955 (output_call_frame_info): Test dw_fde_second_begin != NULL
4956 instead of dw_fde_switched_sections.
4957 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4958 fields, initialize new fields. Initialize in_std_section
4959 unconditionally from the first partition.
4960 (dwarf2out_end_epilogue): Don't override dw_fde_end when
4961 dw_fde_second_begin is non-NULL.
4962 (dwarf2out_switch_text_section): Stop initializing removed
4963 dw_fde_struct fields, initialize new fields, initialize
4964 also dw_fde_end here. Set dw_fde_switch_cfi even when
4965 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
4966 (struct var_loc_list_def): Add last_before_switch field.
4967 (arange_table, arange_table_allocated, arange_table_in_use,
4968 ARANGE_TABLE_INCREMENT, add_arange): Removed.
4969 (size_of_aranges): Count !in_std_section and !second_in_std_section
4970 hunks in fdes, instead of looking at arange_table_in_use.
4971 (output_aranges): Add aranges_length argument, don't call
4972 size_of_aranges here. Instead of using aranges_table*
4973 emit ranges for fdes when !in_std_section resp.
4974 !second_in_std_section.
4975 (dw_loc_list): Break ranges crossing section switch.
4976 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 4977 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
4978 (gen_subprogram_die): Don't call add_arange. Use
4979 dw_fde_{begin,end} for first partition and if switched
4980 section dw_fde_second_{begin,end} for the second.
4981 (var_location_switch_text_section_1,
4982 var_location_switch_text_section): New functions.
4983 (dwarf2out_begin_function): Initialize cold_text_section even
4984 when function_section () isn't text_section.
4985 (prune_unused_types): Don't walk arange_table.
4986 (dwarf2out_finish): Don't needlessly test
4987 flag_reorder_blocks_and_partition when testing cold_text_section_used.
4988 If info_section_emitted, call size_of_aranges and if it indicates
4989 non-empty .debug_aranges, call output_aranges with the computed
4990 size. Stop using removed dw_fde_struct fields, use
4991 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4992 for second.
4993
2b80199f
JJ
4994 PR debug/48203
4995 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4996 create ENTRY_VALUE if incoming or address of incoming's MEM
4997 is a hard REG.
4998 * dwarf2out.c (mem_loc_descriptor): Don't emit
4999 DW_OP_GNU_entry_value of DW_OP_fbreg.
5000 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
5001 on ENTRY_VALUE is able to find the canonical parameter VALUE.
5002 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
5003 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
5004 ENTRY_VALUE_EXPs.
5005 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
5006 is a REG_P or MEM_P with REG_P address, compute hash directly
5007 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
5008 (preserve_only_constants): Don't clear VALUES forwaring
5009 ENTRY_VALUE to some other VALUE.
5010
8a445129
RS
50112011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
5012
5013 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
5014 instead of GEN_INT.
5015
c82fee88
EB
50162011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5017
5018 * cfgexpand.c (expand_gimple_cond): Always set the source location and
5019 block before expanding the statement.
5020 (expand_gimple_stmt_1): Likewise. Set them here...
5021 (expand_gimple_stmt): ...and not here. Tidy.
5022 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
5023 unknown.
5024
e45425ec
SB
50252011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5026
5027 * Makefile.in: New rule for cprop.o.
5028 * gcse.c: Move constant/copy propagation to cprop.c.
5029 (compute_local_properties): Only handle expression tables.
5030 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
5031 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
5032 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
5033 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 5034 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
5035 compute_cprop_data, find_used_regs, try_replace_reg,
5036 find_avail_set, cprop_jump, constprop_register, cprop_insn,
5037 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
5038 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
5039 find_bypass_set, reg_killed_on_edge, bypass_block,
5040 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
5041 execute_rtl_cprop, pass_rtl_cprop): Move to...
5042 * cprop.c: ...here. New file, constant/copy propagation for RTL
5043 moved from gcse.c to here with minor cleanups in duplicated code.
5044
c09d5426
L
50452011-03-28 H.J. Lu <hongjiu.lu@intel.com>
5046
5047 * config/i386/i386.c (flag_opts): Fix a typo in
5048 -mavx256-split-unaligned-store.
5049
9eaa7740
AS
50502011-03-28 Anatoly Sokolov <aesok@post.ru>
5051
5052 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5053 LIBCALL_VALUE): Remove macros.
5054 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5055 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5056 (h8300_function_value, h8300_libcall_value,
5057 h8300_function_value_regno_p): New functions.
5058
dcec2be2
AS
50592011-03-28 Anatoly Sokolov <aesok@post.ru>
5060
5061 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
5062
520af9ec
JL
50632011-03-28 Jeff Law <law@redhat.com>
5064
5065 * tree-ssa-threadupdate.c (redirect_edges): Call
5066 create_edge_and_update_destination_phis as needed.
5067 (create_edge_and_update_destination_phis): Accept new BB argument.
5068 All callers updated.
5069 (thread_block): Do not update the profile when threading around
5070 intermediate blocks.
5071 (thread_single_edge): Likewise.
5072 (determine_bb_domination_status): If BB is not a successor of the
5073 loop header, return NONDOMINATING.
5074 (register_jump_thread): Note when we register a jump thread around
5075 an intermediate block.
5076 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
5077 (thread_across_edge): Use it.
5078
7450b54f
TG
50792011-03-28 Tristan Gingold <gingold@adacore.com>
5080
5081 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
5082 when for_return is 2.
5083
649beb33
JL
50842011-03-28 Jeff Law <law@redhat.com>
5085
5086 * var-tracking.c (canonicalize_values_mark): Delete unused
5087 lhs assignment.
5088 (canonicalize_values_star, set_variable_part): Likewise.
5089 (clobber_variable_part, delete_variable_part): Likewise.
5090
d5b8da97
SB
50912011-03-28 Steven Bosscher <steven@gcc.gnu.org>
5092
5093 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5094
322dd859
MJ
50952011-03-28 Martin Jambor <mjambor@suse.cz>
5096
5097 * tree-inline.c (expand_call_inline): Do not check that destination
5098 node is analyzed.
5099 (optimize_inline_calls): Assert that destination node is analyzed.
5100 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5101 not call tree_lowering_passes.
5102 * cgraph.h (cgraph_analyze_function): Declare.
5103 * cgraphunit.c (cgraph_analyze_function): Make public.
5104
aa53e58b
JM
51052011-03-28 Joseph Myers <joseph@codesourcery.com>
5106
5107 * config/sparc/sparc-opts.h: New.
5108 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5109 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5110 (sparc_option_override): Store processor_type enumeration rather
5111 than string in cpu_default. Remove name and enumeration from
5112 cpu_table. Directly default -mcpu then default -mtune from -mcpu
5113 without using sparc_select. Use target_flags_explicit instead of
5114 fpu_option_set.
5115 * config/sparc/sparc.h (enum processor_type): Move to
5116 sparc-opts.h.
5117 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5118 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5119 HeaderInclude entry.
5120 (mcpu=, mtune=): Use Var and Enum.
5121 (sparc_processor_type): New Enum and EnumValue entries.
5122
dd350eba
RO
51232011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5124 Iain Sandoe <iains@gcc.gnu.org>
5125
5126 PR target/48245
5127 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5128
1b29f05e
EB
51292011-03-28 Eric Botcazou <ebotcazou@adacore.com>
5130
5131 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5132 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5133 Insert new statements at it in lieu of STMT.
5134 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5135 * tree-vect-stmts.c (vectorizable_store): Likewise.
5136 (vectorizable_load): Likewise.
5137
506e6808
UB
51382011-03-28 Uros Bizjak <ubizjak@gmail.com>
5139
5140 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5141 (divtf3): Ditto.
5142 (multf3): Ditto.
5143 (subtf3): Ditto.
5144
2e939ee9
L
51452011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5146
5147 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5148 unaligned 256bit load/store.
5149 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5150 (*avx_movdqu<avxmodesuffix>): Likewise.
5151
5e85ab88
JDA
51522011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5153
5154 PR target/48288
5155 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5156 * config/pa/pa.md (iordi3): Use new predicate in expander.
5157 (iorsi3): Likewise.
5158
47be3d6d
AS
51592011-03-27 Anatoly Sokolov <aesok@post.ru>
5160
506e6808 5161 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 5162 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
5163 * config/mips/mips-protos.h (mips_function_value): Remove.
5164 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
5165 (mips_function_value_1): ... this. Make static. Handle receiving
5166 the function type in 'fn_decl_or_type' argument.
5167 (mips_function_value, mips_libcall_value,
5168 mips_function_value_regno_p): New function.
5169 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5170 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5171
d253656a
L
51722011-03-27 H.J. Lu <hongjiu.lu@intel.com>
5173
5174 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5175 and -mavx256-split-unaligned-store.
5176 (ix86_option_override_internal): Split 32-byte AVX unaligned
5177 load/store by default.
5178 (ix86_avx256_split_vector_move_misalign): New.
5179 (ix86_expand_vector_move_misalign): Use it.
5180
5181 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5182 -mavx256-split-unaligned-store.
5183
5184 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5185 256bit load/store. Generate unaligned store on misaligned memory
5186 operand.
5187 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5188 256bit load/store.
5189 (*avx_movdqu<avxmodesuffix>): Likewise.
5190
5191 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5192 -mavx256-split-unaligned-store.
5193
1ea9206a
RS
51942011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5195
5196 PR target/38598
5197 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5198 Update commentary.
5199
b99ce2a8
RS
52002011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
5201
5202 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5203 opno arguments with an expand_operand. Use create_input_operand.
5204 (mips_prepare_builtin_target): Delete.
5205 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5206 functions.
5207 (mips_expand_builtin_direct): Use create_output_operand and
5208 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
5209 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
5210 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5211
69d52339
IR
52122011-03-27 Ira Rosen <ira.rosen@linaro.org>
5213
5214 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5215 function.
5216 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5217
ba5e9aca
EB
52182011-03-26 Eric Botcazou <ebotcazou@adacore.com>
5219
5220 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5221 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
5222 basic blocks and call commit_edge_insertions directly.
5223 (fixup_abnormal_edges): Move from here to...
5224 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
5225 on the edges and return whether some have actually been inserted.
5226 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5227 compensation code.
5228
5d369d58
AB
52292011-03-26 Andrey Belevantsev <abel@ispras.ru>
5230
5231 PR rtl-optimization/48144
5232 * sel-sched-ir.c (merge_history_vect): Factor out from ...
5233 (merge_expr_data): ... here.
5234 (av_set_intersect): Rename to av_set_code_motion_filter.
5235 Update all callers. Call merge_history_vect when an expression
5236 is found in both sets.
5237 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5238
f082c000
AM
52392011-03-26 Alan Modra <amodra@gmail.com>
5240
5241 * config/rs6000/predicates.md (word_offset_memref_op): Handle
5242 cmodel medium addresses.
5243 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5244 64-bit gpr loads and stores.
5245 (rs6000_secondary_reload_ppc64): New function.
5246 * config/rs6000/rs6000-protos.h: Declare it.
5247 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5248
8ac5e12e
AM
52492011-03-26 Alan Modra <amodra@gmail.com>
5250
5251 PR target/47487
5252 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5253 GNU Go in traceback table.
5254
c2654ded
RH
52552011-03-25 Richard Henderson <rth@redhat.com>
5256
5257 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5258 if there are exactly 6 operands.
5259 (set_storage_via_setmem): Similarly.
5260
ba78087b
KT
52612011-03-25 Kai Tietz <ktietz@redhat.com>
5262
5263 * collect2.c (write_c_file_stat): Handle backslash
5264 as right-hand directory separator.
5265 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5266 checking just for slash.
5267 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5268 instead of checking for trailing slash.
5269 * gcc.c (record_temp_file): Use filename_cmp instead
5270 of strcmp.
5271 (do_spec_1): Likewise.
5272 (replace_outfile_spec_function): Likewise.
5273 (is_directory): Use filename_ncmp instead of strncmp.
5274 (print_multilib_info): Likewise.
5275 * gcov.c (find_source): Use filename_cmp instead
5276 instead of strcmp.
5277 (make_gcov_file_name): Fix order of slash/backslash
5278 checks.
5279 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5280 (add_standard_paths): Likewise.
5281 * mips-tfile.c (saber_stop): Handle backslash.
5282 * prefix.c (update_path): Use filename_ncmp instead of
5283 strncmp.
5284 * profile.c (output_location): Use filename_cmp instead
5285 of strcmp.
5286 * read-md.c (handle_toplevel_file): Handle backslash.
5287 * tlink.c (frob_extension): Likewise.
5288 * tree-cfg.c (same_line_p): Use filename_cmp instead of
5289 strcmp.
5290 * tree-dump.c (dequeue_and_dump): Handle backslash.
5291 * tree.c (get_file_function_name): Likewise.
5292 * gengtype.c (read_input_list): Likewise.
5293 (get_file_realbasename): Likewise.
5294 (get_output_file_with_visibility): Use filename_cmp
5295 instead of strcmp.
5296
75f6ec9a
RS
52972011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
5298
5299 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5300 case to VFPv1.
5301
6c4e2997
NF
53022011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5303
5304 * fold-const.c (expr_location_or): New function.
5305 (fold_truth_not_expr): Call it.
5306
0edf1bb2
JL
53072011-03-25 Jeff Law <law@redhat.com>
5308
5309 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5310 va_end.
5311 * c-family/c-common.c (def_fn_type): Likewise.
5312 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5313 * emit-rtl.c (gen_rtvec): Likewise.
5314 * lto/lto-lang.c (def_fn_type): Likewise.
5315
fdc2de95
RG
53162011-03-25 Richard Guenther <rguenther@suse.de>
5317
5318 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5319 also generate copies.
5320 (fini_copy_prop): Handle constant values properly.
5321
21385db0
JJ
53222011-03-25 Jakub Jelinek <jakub@redhat.com>
5323
5324 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5325 mode size instead of bitsize with DWARF2_ADDR_SIZE.
5326 (hash_loc_operands, compare_loc_operands): Handle
5327 DW_OP_GNU_entry_value.
5328
6510e8bb
KT
53292011-03-25 Kai Tietz <ktietz@redhat.com>
5330
5331 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5332 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5333 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5334 comment and use macro TARGET_64BIT_MS_ABI instead.
5335 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5336 and change default behavior for 32-bit MS_ABI.
5337 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5338 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5339 32-bit, too.
5340 (ix86_cfun_abi): Likewise.
5341 (ix86_maybe_switch_abi): Adjust comment.
5342 (init_cumulative_args): Check for bit-ness in MS_ABI case.
5343 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5344 instead of checking for SYSV_ABI.
5345 (ix86_nsaved_sseregs): Likewise.
5346 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5347 to 16 bytes.
5348 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5349 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5350 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5351 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5352 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5353
34019e28
RG
53542011-03-25 Richard Guenther <rguenther@suse.de>
5355
5356 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5357 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5358 (verify_gimple): Remove.
5359 * tree-cfg.c (verify_gimple_call): Merge verification
5360 from verify_stmts.
5361 (verify_gimple_phi): Merge verification from verify_stmts.
5362 (verify_gimple_label): New function.
5363 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5364 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5365 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5366 (verify_stmts): Rename to verify_gimple_in_cfg.
5367 (verify_gimple_in_cfg): New function.
5368 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5369 * tree-ssa.c (verify_ssa): Likewise.
5370 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5371
605896f5
RG
53722011-03-25 Richard Guenther <rguenther@suse.de>
5373
5374 * passes.c (init_optimization_passes): Add FRE pass after
5375 early SRA.
5376
7baa7c13
BS
53772011-03-25 Bernd Schmidt <bernds@codesourcery.com>
5378 Andrew Stubbs <ams@codesourcery.com>
5379
5380 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5381 for Cortex-A8.
5382 (arm_movdi_vfp_cortexa8): New pattern.
5383 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5384 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5385 instructions when tuning for Cortex-A8. Set attribute "arch".
5386 * config/arm/arm.md: Move include arm-tune.md up a bit.
5387 (define_attr "arch"): Add "onlya8" and "nota8" values.
5388 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5389
45dbce1b
NF
53902011-03-25 Nathan Froyd <froydnj@codesourcery.com>
5391
4ff08abf 5392 PR bootstrap/48282
45dbce1b
NF
5393 Revert:
5394 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5395
5396 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5397 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5398 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5399 * passes.c (init_optimization_passes): Move
5400 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5401
ac9a30ae
KT
54022011-03-25 Kai Tietz <ktietz@redhat.com>
5403
5404 * c-typeck.c (comptypes_internal): Replace target
5405 hook call of comp_type_attributes by version in tree.c file.
5406 * gimple.c (gimple_types_compatible_p_1): Likewise.
5407 * tree-ssa.c (useless_type_conversion_p): Likewise.
5408 * tree.c (build_type_attribute_qual_variant): Likewise.
5409 (attribute_value_equal): New static helper function.
5410 (comp_type_attributes): New function.
5411 (merge_attributes): Use attribute_value_equal for comparison.
5412 (attribute_list_contained): Likewise.
5413 * tree.h (comp_type_attributes): New prototype.
5414
afdac116
RG
54152011-03-25 Richard Guenther <rguenther@suse.de>
5416
5417 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5418 of complex types at -O0.
5419 (verify_gimple_assign_binary): Likewise.
5420 (verify_gimple_assign_ternary): Likewise.
5421
ec6165f8
MW
54222011-03-24 Mark Wielaard <mjw@redhat.com>
5423
5424 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5425 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5426
2a5ac39a
MW
54272011-03-24 Mark Wielaard <mjw@redhat.com>
5428
5429 PR debug/48041
5430 * dwarf2out.c (output_abbrev_section): Only write table when
5431 abbrev_die_table_in_use > 1.
5432
e533b2a4
RH
54332011-02-24 Richard Henderson <rth@redhat.com>
5434
5435 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5436 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5437 (alpha_expand_unaligned_load_words): Use extql.
5438 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5439 (emit_insxl): Handle all modes for consistency.
5440
0b2a7367
RH
54412011-02-24 Richard Henderson <rth@redhat.com>
5442
5443 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5444 (alpha_expand_unaligned_load): Likewise.
5445 (alpha_expand_unaligned_store): Likewise.
5446 (alpha_expand_unaligned_load_words): Likewise.
5447 (alpha_expand_unaligned_store_words): Likewise.
5448 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5449 (alpha_split_lock_test_and_set_12): Likewise.
5450 (print_operand, alpha_fold_builtin_extxx): Likewise.
5451 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5452 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5453 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5454 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5455 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5456 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5457 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5458 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5459 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5460 (extwl, extll, extql): Similarly.
5461 (inswh, inslh, insqh): Similarly.
5462 (mskbl, mskwl, mskll, mskql): Similarly.
5463 (mskwh, msklh, mskqh): Similarly.
5464
315b2bef
RH
54652011-02-24 Richard Henderson <rth@redhat.com>
5466
5467 * config/alpha/alpha.md (attribute isa): Add er, ner.
5468 (attribute enabled): Handle them.
5469 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5470
67102517
RH
54712011-02-24 Richard Henderson <rth@redhat.com>
5472
5473 * config/alpha/alpha.md (attribute isa): Add vms.
5474 (attribute enabled): Handle it.
5475 (*movsf): Merge *movsf_{nofix,fix,nofp}.
5476 (*movdf): Merge *movdf_{nofix,fix,nofp}.
5477 (*movtf): Rename from *movtf_internal for consistency.
5478 (*movsi): Merge with *movsi_nt_vms.
5479 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5480 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5481 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5482 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5483
6aba5cb4
RH
54842011-02-24 Richard Henderson <rth@redhat.com>
5485
5486 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5487 (extendqisi2, extendhisi2): Likewise.
5488 (extendqidi2): Simplify BWX/non-BWX expansions.
5489 (extendhidi2): Similarly.
5490
bdfb351b
RH
54912011-02-24 Richard Henderson <rth@redhat.com>
5492
5493 * config/alpha/alpha.md (attribute isa): New.
5494 (attribute enabled): New.
5495 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5496 (zero_extendqisi2, zero_extendqidi2): Similarly.
5497 (zero_extendhisi2, zero_extendhidi2): Similarly.
5498 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5499
6abe71eb
RH
55002011-02-24 Richard Henderson <rth@redhat.com>
5501
5502 * config/alpha/predicates.md (input_operand): Revert last change;
5503 update comment to mention 32-bit VMS rather than Windows.
5504
7114321e
NF
55052011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5506
5507 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5508 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
5509 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5510 * passes.c (init_optimization_passes): Move
5511 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5512
c8679567
EB
55132011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5514
5515 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5516
27173058
UB
55172011-03-24 Uros Bizjak <ubizjak@gmail.com>
5518
5519 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5520 correctly.
5521
6f0c9f06
JJ
55222011-03-24 Jakub Jelinek <jakub@redhat.com>
5523
5524 PR debug/48204
5525 * simplify-rtx.c (simplify_const_unary_operation): Call
5526 real_convert when changing mode class with FLOAT_EXTEND.
5527
662666e5
NC
55282011-03-24 Nick Clifton <nickc@redhat.com>
5529
5530 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5531 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5532 * config/rx/rx.c (rx_option_override): Set align_jumps,
5533 align_loops and align_labels if not set by the user.
5534 (rx_align_for_label): New function.
5535 (rx_max_skip_for_label): New function.
5536 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5537 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5538 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5539 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5540 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5541
2b99b2b8
RS
55422011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5543
5544 PR rtl-optimization/48263
5545 * optabs.c (expand_binop_directly): Reinstate convert_modes code
5546 and original commutative_p handling. Use maybe_gen_insn.
5547
ccecd6ea
AK
55482011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5549
5550 * reload.c (find_reloads_subreg_address): Add address_reloaded
5551 parameter and return true there if the full address has been
5552 reloaded.
5553 (find_reloads_toplev): Pass address_reloaded flag.
5554 (find_reloads_address_1): Don't use address_reloaded parameter.
5555
67295642
JL
55562011-03-24 Jeff Law <law@redhat.com>
5557
5558 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5559 unused variable "ann".
5560 (remove_unused_locals): Likewise.
5561
5562 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5563 statement.
5564
5565 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5566 after it is freed.
5567
212aa74f
AK
55682011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5569
5570 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5571 for invalid symbolic addresses.
5572 (s390_secondary_reload): Don't use s390_check_symref_alignment for
5573 larl operands.
5574
fe784e0d
EB
55752011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5576
5577 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5578 the argument in calls to fold_truth_not_expr.
5579
63ee8641
NF
55802011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5581
5582 * tree.c (record_node_allocation_statistics): New function.
5583 (make_node_stat, copy_node_stat, build_string): Call it.
5584 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5585 (build1_stat, build_omp_clause): Likewise.
5586
61be2a1c
RS
55872011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5588
5589 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5590 last commit.
5591
a881aaa7
RG
55922011-03-24 Richard Guenther <rguenther@suse.de>
5593
5594 PR tree-optimization/48271
5595 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5596 blocks that still exist.
5597
dbaa912c
RG
55982011-03-24 Richard Guenther <rguenther@suse.de>
5599
5600 PR tree-optimization/48270
5601 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5602 not free datarefs before ddrs.
5603
1d60cc55
EB
56042011-03-24 Eric Botcazou <ebotcazou@adacore.com>
5605
5606 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5607 from the address built for a reference with variable offset.
5608
c78dd519
UB
56092011-03-24 Uros Bizjak <ubizjak@gmail.com>
5610
5611 PR target/48237
5612 * config/i386/i386.md (*movdf_internal_rex64): Do not split
5613 alternatives that can be handled with movq or movabsq insn.
5614 (*movdf_internal): Disable for !TARGET_64BIT.
5615 (*movdf_internal_nointeger): Ditto.
5616 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5617
b25b9e8f
NF
56182011-03-24 Nathan Froyd <froydnj@codesourcery.com>
5619
5620 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5621 (FUNCTION_ARG_ADVANCE): Likewise.
5622 * tm.texi.in: Change references to them to hook references.
5623 * tm.texi: Regenerate.
c78dd519 5624 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
5625 (default_function_incoming_arg): Likewise.
5626 (default_function_arg_advance): Likewise.
c78dd519 5627 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
5628 (function_arg_advance): Likewise.
5629 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5630
190b2187
RG
56312011-03-24 Richard Guenther <rguenther@suse.de>
5632
5633 PR middle-end/48269
5634 * tree-object-size.c (addr_object_size): Do not double-account
5635 for MEM_REF offsets.
5636
a183b5c7
DN
56372011-03-24 Diego Novillo <dnovillo@google.com>
5638
5639 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 5640 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
5641 (lto_input_data_block): Move from lto-opts.c. Make extern.
5642 Update all users.
5643 (lto_input_string): Rename from input_string. Make extern.
5644 Update all users.
5645 * lto-streamer-out.c (lto_output_string_with_length): Rename from
5646 output_string_with_length.
5647 Output 0 to indicate a non-NULL string. Update all callers to
5648 not emit 0.
5649 (lto_output_string): Rename from output_string. Make extern.
5650 Update all users.
5651 (lto_output_decl_state_streams): Make extern.
5652 (lto_output_decl_state_refs): Make extern.
5653 * lto-streamer.h (lto_input_string): Declare.
5654 (lto_input_data_block): Declare.
5655 (lto_output_string): Declare.
5656 (lto_output_string_with_length): Declare.
5657 (lto_output_decl_state_streams): Declare.
5658 (lto_output_decl_state_refs): Declare.
5659
cfef45c8
RG
56602011-03-24 Richard Guenther <rguenther@suse.de>
5661
5662 PR tree-optimization/46562
5663 * tree.c (build_invariant_address): New function.
5664 * tree.h (build_invariant_address): Declare.
5665 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5666 a renamed function moved ...
5667 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5668 Take valueization callback parameter.
5669 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5670 * gimple-fold.h: New file.
5671 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5672 (ccp_fold, fold_const_aggregate_ref,
5673 fold_ctor_reference, fold_nonarray_ctor_reference,
5674 fold_array_ctor_reference, fold_string_cst_ctor_reference,
5675 get_base_constructor): Move ...
5676 * gimple-fold.c: ... here.
5677 (gimple_fold_stmt_to_constant_1): New function
5678 split out from ccp_fold. Take a valueization callback parameter.
5679 Valueize all operands.
5680 (gimple_fold_stmt_to_constant): New wrapper function.
5681 (fold_const_aggregate_ref_1): New function split out from
5682 fold_const_aggregate_ref. Take a valueization callback parameter.
5683 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5684 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5685 invariant POINTER_PLUS_EXPRs to invariant form.
5686 (vn_valueize): New function.
5687 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5688 * tree-vrp.c (vrp_valueize): New function.
5689 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5690 to fold statements to constants.
5691 * tree-ssa-pre.c (eliminate): Properly guard propagation of
5692 function declarations.
5693 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5694 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5695
5e0a7e40
RS
56962011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
5697
5698 * config/h8300/predicates.md (jump_address_operand): Fix register
5699 mode check.
5700
bfe068c3
IR
57012011-03-24 Ira Rosen <ira.rosen@linaro.org>
5702
5703 * doc/invoke.texi (max-stores-to-sink): Document.
5704 * params.h (MAX_STORES_TO_SINK): Define.
5705 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5706 if either vectorization or if-conversion is disabled.
5707 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5708 tree-vect-data-refs.c vect_equal_offsets.
5709 (dr_equal_offsets_p): New function.
5710 (find_data_references_in_bb): Remove static.
5711 * tree-data-ref.h (find_data_references_in_bb): Declare.
5712 (dr_equal_offsets_p): Likewise.
5713 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5714 (vect_drs_dependent_in_basic_block): Update calls to
5715 vect_equal_offsets.
5716 (vect_check_interleaving): Likewise.
5717 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5718 (cond_if_else_store_replacement): Rename to...
5719 (cond_if_else_store_replacement_1): ... this. Change arguments and
5720 documentation.
5721 (cond_if_else_store_replacement): New function.
5722 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5723 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5724
4908b0bf
CLT
57252011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
5726
5727 PR target/46934
5728 * config/arm/arm.md (casesi): Use the gen_int_mode() function
5729 to subtract lower bound instead of GEN_INT().
5730
2be478a2
JW
57312011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
5732
5733 PR other/48179
5734 PR other/48221
5735 PR other/48234
5736 * doc/extend.texi (Alignment): Move section to match order in TOC.
5737 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5738 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5739
0c617be4
JL
57402011-03-23 Jeff Law <law@redhat.com>
5741
5742 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5743 before removing the edge.
5744
5745 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5746 it may have been freed by redirect_branch_edge or
5747 redirect_edge_succ_nodup.
5748
58da96fe
RG
57492011-03-23 Richard Guenther <rguenther@suse.de>
5750
c78dd519 5751 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
5752 (check_va_list_escapes): Likewise.
5753 (check_all_va_list_escapes): Likewise.
5754
b8beb4d1
RG
57552011-03-23 Richard Guenther <rguenther@suse.de>
5756
5757 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5758 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5759 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5760 (alias.o): Likewise.
5761 (ipa-type-escape.o): Remove.
5762 (ipa-struct-reorg.o): Likewise.
5763 (GTFILES): Remove ipa-struct-reorg.c.
5764 * alias.c: Do not include ipa-type-escape.h.
5765 * tree-ssa-alias.c: Likewise.
5766 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5767 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5768 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5769 and ipa-type-escape passes.
5770 * tree-pass.h (pass_ipa_type_escape): Remove.
5771 (pass_ipa_struct_reorg): Likewise.
5772 * ipa-struct-reorg.h: Remove.
5773 * ipa-struct-reorg.c: Likewise.
5774 * ipa-type-escape.h: Likewise.
5775 * ipa-type-escape.c: Likewise.
5776 * doc/invoke.texi (-fipa-struct-reorg): Remove.
5777 (--param struct-reorg-cold-struct-ratio): Likewise.
5778 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5779 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5780 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5781
f137aa63
AK
57822011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5783
5784 * config/s390/2084.md: Enable all insn reservations also for z9_ec
5785 cpu attribute value.
5786 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5787 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5788 * config/s390/s390.c (processor_flags_table): New constant array.
5789 (s390_handle_arch_option): Remove.
5790 (s390_handle_option): Remove s390_handle_arch_option invocations
5791 and OPT_mwarn_framesize_ handling.
5792 (s390_option_override): Remove s390_handle_arch_option invocation.
5793 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5794 warnings.
5795 * config/s390/s390.md (cpu attribute): Add z9_ec value.
5796 * config/s390/s390.opt (s390_tune, s390_arch)
5797 (march=): Replace s390_arch_option enum and values with
5798 processor_type. Set variable name to s390_arch. Set
5799 initialization value.
5800 (mtune=): Replace s390_arch_option with processor_type. Set
5801 variable name to s390_tune. Set initialization value.
5802
bf90208f
JB
58032011-03-23 Julian Brown <julian@codesourcery.com>
5804
5805 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5806 accesses which are not naturally aligned.
5807
3460fdf3
RS
58082011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5809
5810 PR target/47553
5811 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5812
a5c7d693
RS
58132011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
5814
5815 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5816 parameter from "int" to "enum insn_code".
5817 (expand_operand_type): New enum.
5818 (expand_operand): New structure.
5819 (create_expand_operand): New function.
5820 (create_fixed_operand, create_output_operand): Likewise
5821 (create_input_operand, create_convert_operand_to): Likewise.
5822 (create_convert_operand_from, create_address_operand): Likewise.
5823 (create_integer_operand): Likewise.
5824 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5825 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5826 (expand_insn, expand_jump_insn): Likewise.
5827 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5828 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5829 (expand_movstr, expand_builtin___clear_cache): Likewise.
5830 (expand_builtin_lock_release): Likewise.
5831 * explow.c (allocate_dynamic_stack_space): Likewise.
5832 (probe_stack_range): Likewise. Allow check_stack to FAIL,
5833 and use the default handling in that case.
5834 * expmed.c (check_predicate_volatile_ok): Delete.
5835 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5836 (emit_cstore): Likewise.
5837 * expr.c (emit_block_move_via_movmem): Likewise.
5838 (set_storage_via_setmem, expand_assignment): Likewise.
5839 (emit_storent_insn, try_casesi): Likewise.
5840 (emit_single_push_insn): Likewise. Allow the expansion to fail.
5841 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5842 (expand_vec_shift_expr, expand_binop_directly): Likewise.
5843 (expand_twoval_unop, expand_twoval_binop): Likewise.
5844 (expand_unop_direct, emit_indirect_jump): Likewise.
5845 (emit_conditional_move, vector_compare_rtx): Likewise.
5846 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5847 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5848 (expand_sync_lock_test_and_set): Likewise.
5849 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
5850 (emit_unop_insn): Likewise.
5851 (expand_copysign_absneg): Change icode to an insn_code.
5852 (create_convert_operand_from_type): New function.
5853 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5854 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5855 (expand_insn, expand_jump_insn): Likewise.
5856 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5857 than const_int_operand for operand 2.
5858
78fadbab
AK
58592011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5860
5861 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5862 if possible.
5863
5f02387d
NF
58642011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5865
5866 * emit-rtl.c (emit_pattern_before_noloc): New function.
5867 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5868 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5869 (emit_pattern_after_noloc): New function.
5870 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5871 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5872
fdf3e18a
NF
58732011-03-22 Nathan Froyd <froydnj@codesourcery.com>
5874
5875 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5876 (__ffsDI2): Likewise.
5877
42d085c1
RH
58782011-03-22 Richard Henderson <rth@redhat.com>
5879
5880 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5881 of !TARGET_ABI_OPEN_VMS.
5882 (alpha_trampoline_init, alpha_start_function): Likewise.
5883 (alpha_expand_epilogue, alpha_file_start): Likewise.
5884 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5885 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5886 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5887 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5888 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5889
cabbe12a
JM
58902011-03-22 Joseph Myers <joseph@codesourcery.com>
5891
5892 * config/s390/s390-opts.h: New.
5893 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5894 s390_arch_flags, s390_warn_framesize, s390_stack_size,
5895 s390_stack_guard): Remove.
5896 (s390_handle_arch_option): Return void. Take enum
5897 s390_arch_option value instead of string and searching array.
5898 (s390_handle_option): Don't assert that global structures are in
5899 use. Access variables via opts pointer. Use error_at. Don't use
5900 sscanf for -mstack-guard= or -mstack-size=. Update call to
5901 s390_handle_arch_option.
5902 (s390_option_override): Update call to s390_handle_arch_option.
5903 (s390_emit_prologue): Use %d format for s390_stack_size in
5904 diagnostic. Use %wd for HOST_WIDE_INT.
5905 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5906 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5907 * config/s390/s390.opt (config/s390/s390-opts.h): New
5908 HeaderInclude entry.
5909 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5910 s390_arch_flags, s390_warn_framesize): New Variable entries.
5911 (s390_arch_option): New Enum and EnumValue entries.
5912 (march=): Use Enum instead of Var.
5913 (mstack-guard=, mstack-size=): Use UInteger and Var.
5914 (mtune=): Use Enum.
5915
05b12036
JM
59162011-03-22 Joseph Myers <joseph@codesourcery.com>
5917
5918 * config/score/score.c (score_handle_option): Don't assert that
5919 global structures are in use. Access target_flags via opts
5920 pointer. Use value of -march= option to determine target_flags
5921 settings.
5922 * config/score/score.opt (march=): Use Enum.
5923 (score_arch): New Enum and EnumValue entries.
5924
dd51e35a
JM
59252011-03-22 Joseph Myers <joseph@codesourcery.com>
5926
5927 * config/mep/mep.c (option_mtiny_specified): Remove.
5928 (mep_option_override): Move register handling for -mivc2 from
5929 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
5930 instead of option_mtiny_specified.
5931 (mep_handle_option): Access target_flags via opts pointer. Don't
5932 assert that global structures are in use. Defer part of -mivc2
5933 handling and move it to mep_option_override.
5934 * config/mep/mep.opt (IVC2): New Mask entry.
5935 (mivc2): Use Var and Defer instead of Mask.
5936
4a8d3d91
JM
59372011-03-22 Joseph Myers <joseph@codesourcery.com>
5938
5939 * config/v850/v850-opts.h: New.
5940 * config/v850/v850.c (small_memory): Replace with
5941 small_memory_physical_max array. Make that array static const.
5942 (v850_handle_memory_option): Take integer value of argument. Take
5943 gcc_options pointer, option text and location. Return void.
5944 Update for changes to small memory structures.
5945 (v850_handle_option): Access target_flags via opts pointer. Don't
5946 assert that global structures are in use. Update calls to
5947 v850_handle_memory_option.
c78dd519
UB
5948 (v850_encode_data_area): Update references to small memory settings.
5949 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
5950 (enum small_memory_type): Move to v850-opts.h.
5951 * config/v850/v850.opt (config/v850/v850-opts.h): New
5952 HeaderInclude entry.
5953 (small_memory_max): New Variable entry.
5954 (msda): Replace by pair of options msda= and msda-. Use UInteger.
5955 (mtda, mzda): Likewise.
5956
117fdbfa
JM
59572011-03-22 Joseph Myers <joseph@codesourcery.com>
5958
5959 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5960 pointer. Don't assert that global structures are in use.
5961
d715091c
JM
59622011-03-22 Joseph Myers <joseph@codesourcery.com>
5963
5964 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5965 via opts pointer. Don't assert that global structures are in use.
5966
1bb721dc
JM
59672011-03-22 Joseph Myers <joseph@codesourcery.com>
5968
5969 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5970 (munix=93): Use Var.
5971 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5972 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5973 * config/pa/pa-opts.h: New.
5974 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5975 (pa_handle_option): Don't assert that global structures are in
5976 use. Access target_flags via opts pointer. Don't handle
5977 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5978 OPT_munix_98 here.
5979 (pa_option_override): Handle deferred OPT_mfixed_range_.
5980
cd8d8754
JM
59812011-03-22 Joseph Myers <joseph@codesourcery.com>
5982
5983 * config/mn10300/mn10300-opts.h: New.
5984 * config/mn10300/mn10300.c (mn10300_processor,
5985 mn10300_tune_string): Remove.
5986 (mn10300_handle_option): Don't assert that global structures are
5987 in use. Access mn10300_processor via opts pointer. Don't handle
5988 OPT_mtune_ here.
5989 * config/mn10300/mn10300.h (enum processor_type): Move to
5990 mn10300-opts.h.
5991 (mn10300_processor): Remove.
5992 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5993 HeaderInclude entry.
5994 (mn10300_processor): New Variable entry.
5995 (mtune=): Use Var.
5996
24e6e6b1
JM
59972011-03-22 Joseph Myers <joseph@codesourcery.com>
5998
5999 * config/microblaze/microblaze.c: Don't include opts.h.
6000 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
6001 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
6002 (mno-clearbss): Use Var and Warn.
6003
8a784afb
JM
60042011-03-22 Joseph Myers <joseph@codesourcery.com>
6005
6006 * config/m32r/m32r-opts.h: New.
6007 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
6008 (m32r_handle_option): Don't assert that global structures are in
6009 use. Access target_flags and m32r_cache_flush_func via opts
6010 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
6011 OPT_mno_flush_trap here.
6012 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
6013 include of m32r-opts.h.
6014 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
6015 HeaderInclude entry.
6016 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
6017 (mmodel=): Use Enum and Var.
6018 (m32r_model): New Enum and EnumValue entries.
6019 (mno-flush-trap): Use Var.
6020 (msdata=): Use Enum and Var.
6021 (m32r_sdata): New Enum and EnumValue entries.
6022
bbfc9a8c
JM
60232011-03-22 Joseph Myers <joseph@codesourcery.com>
6024
6025 * config/m32c/m32c.c: Don't include opts.h.
6026 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
6027 m32c_handle_option): Remove.
6028 (m32c_option_override): Check global_options_set.x_target_memregs
6029 instead of target_memregs_set.
6030 * config/m32c/m32c.h (target_memregs): Remove.
6031 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
6032 variable.
6033
e24b8335
JM
60342011-03-22 Joseph Myers <joseph@codesourcery.com>
6035
6036 * config/iq2000/iq2000-opts.h: New.
6037 * config/iq2000/iq2000.c: Don't include opts.h.
6038 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 6039 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
6040 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
6041 HeaderInclude entry.
6042 (iq2000_tune): New Variable entry.
6043 (march=): Add comment. Use Enum.
6044 (iq2000_arch): New Enum and EnumValue entries.
6045 (mcpu=): Use Enum and Var.
6046 (iq2000_tune): New Enum and EnumValue entries.
6047
e6cc0c98
JM
60482011-03-22 Joseph Myers <joseph@codesourcery.com>
6049
6050 * config/ia64/ia64-opts.h: New.
6051 * config/ia64/ia64.c (ia64_tune): Remove.
6052 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
6053 here. Use error_at.
6054 (ia64_option_override): Handle deferred OPT_mfixed_range_.
6055 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
6056 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
6057 HeaderInclude entry.
6058 (ia64_tune): New Variable entry.
6059 (mfixed-range=): Use Defer and Var.
6060 (mtune=): Use Enum and Var.
6061 (ia64_tune): New Enum and EnumValue entries.
6062
db25893c
JM
60632011-03-22 Joseph Myers <joseph@codesourcery.com>
6064
6065 * config/frv/frv-opts.h: New.
6066 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
6067 frv-opts.h.
6068 (frv_cpu_type): Remove.
6069 * config/frv/frv.c: Don't include opts.h.
6070 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 6071 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
6072 (frv_cpu_type): New Variable entry.
6073 (frv_cpu): New Enum and EnumValue entries.
6074
6c223f5d
JM
60752011-03-22 Joseph Myers <joseph@codesourcery.com>
6076
6077 * config/cris/cris.c (cris_handle_option): Access target_flags via
6078 opts pointer. Don't assert that global structures are in use.
6079 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
6080 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
6081
bbd399cf
JM
60822011-03-22 Joseph Myers <joseph@codesourcery.com>
6083
6084 * config/bfin/bfin-opts.h: New.
6085 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
6086 bfin_si_revision, bfin_workarounds): Remove.
6087 (bfin_cpus): Make static const.
6088 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
6089 not bfin_lib_id_given.
6090 (bfin_handle_option): Don't set bfin_lib_id_given. Access
6091 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 6092 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
6093 * config/bfin/bfin.h: Include bfin-opts.h.
6094 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6095 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6096 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6097 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6098 entries.
6099
5e1b4d5a
JM
61002011-03-22 Joseph Myers <joseph@codesourcery.com>
6101
6102 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6103 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6104 or -msoft-float here.
6105 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6106 -msoft-float and -mhard-float.
c78dd519 6107 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
6108 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6109 msoft-float.
6110 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6111 -msoft-float.
6112 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6113 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6114 not mhard-float.
6115 (LIBGCC_SPEC): Don't handle -msoft-float.
6116 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6117 -mhard-float.
6118 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6119 msoft-float.
6120 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6121 -mfloat-abi=*, not -msoft-float and -mhard-float.
6122 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6123 -msoft-float.
6124 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6125 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6126 mhard-float and msoft-float.
6127 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6128 mfloat-abi=soft in comments, not mhard-float and msoft-float.
6129 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6130 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6131 mhard-float.
6132 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6133 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6134 msoft-float.
6135 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6136 not mhard-float.
6137 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6138 not msoft-float.
6139
800d1de1
RH
61402011-03-22 Richard Henderson <rth@redhat.com>
6141
6142 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6143 TARGET_ABI_WINDOWS_NT.
6144 (alpha_output_function_end_prologue): Likewise.
6145 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6146 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6147 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6148 (trap, *movsi_nt_vms): Likewise.
6149 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6150 (*tablejump_osf_nt_internal): Remove.
6151 * config/alpha/predicates.md (input_operand): Only test Pmode.
6152
c59ddd2b
JM
61532011-03-22 Joseph Myers <joseph@codesourcery.com>
6154
6155 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6156 via opts pointer. Use error_at. Don't assert that global
6157 structures are in use.
6158
1333f97f
JM
61592011-03-22 Joseph Myers <joseph@codesourcery.com>
6160
6161 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6162 (ix86_handle_option): Access ix86_isa_flags and
6163 ix86_isa_flags_explicit via opts pointer. Don't assert that
6164 global structures are in use.
6165 (ix86_function_specific_save, ix86_function_specific_restore):
6166 Update ix86_isa_flags_explicit field name.
c78dd519 6167 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
6168 (ix86_isa_flags_explicit): Rename TargetSave entry to
6169 x_ix86_isa_flags_explicit.
6170
75db85d8
RH
61712011-03-22 Richard Henderson <rth@redhat.com>
6172
6173 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6174 (alpha_option_override, direct_return): Likewise.
6175 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6176 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6177 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6178 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6179 (alpha_expand_epilogue, alpha_end_function): Likewise.
6180 (alpha_init_libfuncs): Likewise.
6181 (struct machine_function): Remove unicosmk members.
6182 (print_operand) ['t']: Remove.
6183 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6184 unicosmk_output_module_name, unicosmk_output_common,
6185 current_section_align, unicosmk_output_text_section_asm_op,
6186 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6187 unicosmk_section_type_flags, unicosmk_unique_section,
6188 unicosmk_asm_named_section, unicosmk_insert_attributes,
6189 unicosmk_output_align, unicosmk_defer_case_vector,
6190 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6191 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6192 unicosmk_output_ssib, unicosmk_add_call_info_word,
6193 unicosmk_extern_head, unicosmk_output_default_externs,
6194 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6195 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6196 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6197 * config/alpha/alpha-protos.h: Update.
6198 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6199 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6200 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6201 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6202 (*mulsi_se, mulvsi3): Likewise.
6203 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6204 (*divmodsi_internal, call, call_value, realign): Likewise.
6205 (moddi3, umoddi3): Likewise; remove duplicate expander.
6206 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6207 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6208 (*movdi_nofix): Remove r/U alternative.
6209 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6210 * config/alpha/constraints.md ("U"): Remove.
6211 * config/alpha/predicates.md (call_operand"): Don't test
6212 TARGET_ABI_UNICOSMK.
6213
96e45421
JM
62142011-03-22 Joseph Myers <joseph@codesourcery.com>
6215
6216 * target.def (handle_option): Take gcc_options and
6217 cl_decoded_option pointers and location_t.
6218 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6219 * doc/tm.texi: Regenerate.
6220 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6221 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6222 * lto-opts.c (lto_reissue_options): Generate option structure for
6223 targetm.handle_option call.
6224 * opts.c (target_handle_option): Update call to
6225 targetm.handle_option. Remove assertions about values now passed
6226 down to hook.
6227 * targhooks.c (default_target_handle_option): New.
6228 * targhooks.h (default_target_handle_option): Declare.
6229 * config/alpha/alpha.c: Include opts.h.
6230 (alpha_handle_option): Update to new hook interface.
6231 * config/arm/arm.c: Include opts.h.
6232 (arm_handle_option): Update to new hook interface.
6233 * config/arm/t-arm (arm.o): Update dependencies.
6234 * config/bfin/bfin.c: Include opts.h.
6235 (bfin_handle_option): Update to new hook interface.
6236 * config/cris/cris.c: Include opts.h.
6237 (cris_handle_option): Update to new hook interface.
6238 * config/frv/frv.c: Include opts.h.
6239 (frv_handle_option): Update to new hook interface.
6240 * config/i386/i386.c: Include opts.h.
6241 (ix86_handle_option): Update to new hook interface.
6242 (ix86_valid_target_attribute_inner_p): Generate option structure
6243 for call to ix86_handle_option.
6244 * config/i386/t-i386 (i386.o): Update dependencies.
6245 * config/ia64/ia64.c: Include opts.h.
6246 (ia64_handle_option): Update to new hook interface.
6247 * config/ia64/t-ia64 (ia64.o): Update dependencies.
6248 * config/iq2000/iq2000.c: Include opts.h.
6249 (iq2000_handle_option): Update to new hook interface.
6250 * config/m32c/m32c.c: Include opts.h.
6251 (m32c_handle_option): Update to new hook interface.
6252 * config/m32r/m32r.c: Include opts.h.
6253 (m32r_handle_option): Update to new hook interface.
6254 * config/m68k/m68k.c: Include opts.h.
6255 (m68k_handle_option): Update to new hook interface.
6256 * config/mep/mep.c: Include opts.h.
6257 (mep_handle_option): Update to new hook interface.
6258 * config/microblaze/microblaze.c: Include opts.h.
6259 (microblaze_handle_option): Update to new hook interface.
6260 * config/mips/mips.c: Include opts.h.
6261 (mips_handle_option): Update to new hook interface.
6262 * config/mn10300/mn10300.c: Include opts.h.
6263 (mn10300_handle_option): Update to new hook interface.
6264 * config/pa/pa.c: Include opts.h.
6265 (pa_handle_option): Update to new hook interface.
6266 * config/pdp11/pdp11.c: Include opts.h.
6267 (pdp11_handle_option): Update to new hook interface.
6268 * config/rs6000/rs6000.c: Include opts.h.
6269 (rs6000_handle_option): Update to new hook interface.
6270 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6271 * config/rx/rx.c: Include opts.h.
6272 (rx_handle_option): Update to new hook interface.
6273 * config/s390/s390.c: Include opts.h.
6274 (s390_handle_option): Update to new hook interface.
6275 * config/score/score.c: Include opts.h.
6276 (score_handle_option): Update to new hook interface.
6277 * config/sh/sh.c: Include opts.h.
6278 (sh_handle_option): Update to new hook interface.
6279 * config/sparc/sparc.c: Include opts.h.
6280 (sparc_handle_option): Update to new hook interface.
6281 * config/v850/v850.c: Include opts.h.
6282 (v850_handle_option): Update to new hook interface.
6283
66017846
JM
62842011-03-22 Joseph Myers <joseph@codesourcery.com>
6285
6286 * gcc.c (driver_unknown_option_callback): Only permit and save
6287 unknown -Wno- options.
6288 (driver_wrong_lang_callback): Save options directly instead of via
6289 driver_unknown_option_callback.
6290
e8b97ccd
EB
62912011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6292
6293 * combine.c (simplify_set): Try harder to find the best CC mode when
6294 simplifying a nested COMPARE on the RHS.
6295
ebb9f8b0
JM
62962011-03-22 Joseph Myers <joseph@codesourcery.com>
6297
6298 * config/alpha/gnu.h: Remove.
6299 * config/arc: Remove directory.
6300 * config/arm/netbsd.h: Remove.
6301 * config/arm/t-pe: Remove.
6302 * config/crx: Remove directory.
6303 * config/i386/netbsd.h: Remove.
6304 * config/m68hc11: Remove directory.
6305 * config/m68k/uclinux-oldabi.h: Remove.
6306 * config/mcore/mcore-pe.h: Remove.
6307 * config/mcore/t-mcore-pe: Remove.
6308 * config/netbsd-aout.h: Remove.
6309 * config/rs6000/gnu.h: Remove.
6310 * config/sh/sh-symbian.h: Remove.
6311 * config/sh/symbian-base.c: Remove.
6312 * config/sh/symbian-c.c: Remove.
6313 * config/sh/symbian-cxx.c: Remove.
6314 * config/sh/symbian-post.h: Remove.
6315 * config/sh/symbian-pre.h: Remove.
6316 * config/sh/t-symbian: Remove.
6317 * config/svr3.h: Remove.
6318 * config/vax/netbsd.h: Remove.
6319 * config.build: Don't handle i[34567]86-*-pe.
6320 * config.gcc: Remove handling of deprecations for most deprecated
6321 targets.
6322 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6323 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6324 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6325 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6326 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6327 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6328 Remove cases.
6329 * config.host: Don't handle i[34567]86-*-pe.
6330 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6331 (ASM_SPEC32): Don't handle -mcall-gnu.
6332 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6333 -mcall-gnu.
6334 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6335 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6336 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6337 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6338 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6339 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6340 conditional on SYMBIAN.
6341 * configure.ac: Don't handle powerpc*-*-gnu*.
6342 * configure: Regenerate.
6343 * doc/extend.texi (interrupt attribute): Don't mention CRX.
6344 * doc/install-old.texi (m6811, m6812): Don't mention.
6345 * doc/install.texi (arc-*-elf*): Don't document multilib option.
6346 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6347 (m68k-uclinuxoldabi): Don't mention.
6348 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6349 Remove.
6350 (-mcall-gnu): Remove.
6351 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6352 families): Remove constraint documentation.
6353
999a7d80
MS
63542011-03-22 Marius Strobl <marius@FreeBSD.org>
6355
6356 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6357 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6358 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6359
980a0ff4
GJL
63602011-03-21 Georg-Johann Lay <avr@gjlay.de>
6361
6362 * config/avr/avr-protos.h (expand_epilogue): Change prototype
6363 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6364 * config/avr/avr.c (init_cumulative_args)
6365 (avr_function_arg_advance): Use it.
6366 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6367 sibcall epilogues.
6368 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6369 (avr_function_ok_for_sibcall): ...this new function.
6370 (avr_lookup_function_attribute1): New static Function.
6371 (avr_naked_function_p, interrupt_function_p)
6372 (signal_function_p, avr_OS_task_function_p)
6373 (avr_OS_main_function_p): Use it.
6374 * config/avr/avr.md ("sibcall", "sibcall_value")
6375 ("sibcall_epilogue"): New expander.
6376 ("*call_insn", "*call_value_insn"): New insn.
6377 ("call_insn", "call_value_insn"): Remove
6378 ("call", "call_value", "epilogue"): Change expander to handle
6379 sibling calls.
6380
49168734
NC
63812011-03-21 Nick Clifton <nickc@redhat.com>
6382
6383 * doc/invoke.texi (Overall Options): Move closing brace to end of
6384 options list.
6385 (Optimization Options): Add missing @gol.
6386 (Directory Options): Likewise.
6387 (i386 and x86-64 Options): Likewise.
6388 (RS6000 and PowerPC Options): Likewise.
6389 (i386 and x86-64 Windows Options): Likewise.
6390 (V850 Options): Add text missing from descriptions.
6391
bdfe906f
RH
63922011-03-22 Richard Henderson <rth@redhat.com>
6393
6394 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6395 (avr_incoming_return_addr_rtx): New.
6396 (emit_push_byte): New.
6397 (expand_prologue): Use it. Remove incorrect dwarf annotation for
6398 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
6399 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
6400 (emit_pop_byte): New.
6401 (expand_epilogue): Use it. Pop frame pointer by bytes.
6402 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6403 (INCOMING_RETURN_ADDR_RTX): New.
6404 (INCOMING_FRAME_SP_OFFSET): New.
6405 (ARG_POINTER_CFA_OFFSET): New.
6406 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6407 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6408 (pophi): Remove.
6409
d090a5aa
RH
6410 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6411
fdf3e18a
NF
64122011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6413
6414 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6415 (FUNCTION_ARG_ADVANCE): Likewise.
6416 * tm.texi.in: Change references to them to hook references.
6417 * tm.texi: Regenerate.
6418 * targhooks.c (default_function_arg): Eliminate check for target
6419 macro.
6420 (default_function_incoming_arg): Likewise.
6421 (default_function_arg_advance): Likewise.
c78dd519 6422 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
6423 (function_arg_advance): Likewise.
6424 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6425
009d3fcf
NF
64262011-03-22 Nathan Froyd <froydnj@codesourcery.com>
6427
6428 * tree.c (build_call_1): New function.
6429 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6430
7bec30e1
RG
64312011-03-22 Richard Guenther <rguenther@suse.de>
6432
6433 PR tree-optimization/48228
6434 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6435 for single-arg PHIs.
6436
0b7e851b
AB
64372011-03-22 Andrey Belevantsev <abel@ispras.ru>
6438
6439 PR rtl-optimization/48143
6440 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6441 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6442 sse2_cvtps2pd): Likewise.
6443
d89afca5
AK
64442011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6445
6446 * recog.c (canonicalize_change_group): Use validate_unshare_change.
6447
f471fe72
RG
64482011-03-22 Richard Guenther <rguenther@suse.de>
6449
6450 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6451 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6452 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6453 and REALIGN_LOAD_EXPR.
6454 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6455 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6456 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6457 DOT_PROD_EXPR case ...
6458 (expand_expr_real_2): ... here.
6459 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6460 and REALIGN_LOAD_EXPR.
6461 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6462 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6463 (vect_create_epilog_for_reduction): Likewise.
6464 (vectorizable_reduction): Likewise.
6465 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6466 * tree-vect-stmts.c (vectorizable_load): Likewise.
6467
f2f81d57
EB
64682011-03-22 Eric Botcazou <ebotcazou@adacore.com>
6469
6470 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6471
ab081dd6
AK
64722011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6473
6474 * config/s390/s390.c (s390_delegitimize_address): Fix offset
6475 handling for PLTOFF/GOTOFF.
6476
6fd5332b
NC
64772011-03-22 Nick Clifton <nickc@redhat.com>
6478
6479 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6480 trailing backslash from the end of the macro definition.
6481
01841ac0
AK
64822011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6483
6484 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6485 and PLT unspecs.
6486
2ef6ce06
RS
64872011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
6488
6489 * expr.h (prepare_operand): Move to...
6490 * optabs.h (prepare_operand): ...here and change the insn code
6491 parameter from "int" to "enum insn_code".
6492 (insn_operand_matches): Declare.
6493 * expr.c (init_expr_target): Use insn_operand_matches.
6494 (compress_float_constant): Likewise.
6495 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6496 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6497 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
6498 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6499 Likewise.
2ef6ce06
RS
6500 (gen_cond_trap): Likewise.
6501 (prepare_operand): Likewise. Change icode to an insn_code.
6502 (insn_operand_matches): New function.
6503 * reload.c (find_reloads_address_1): Use insn_operand_matches.
6504 * reload1.c (gen_reload): Likewise.
6505 * targhooks.c (default_secondary_reload): Likewise.
6506
9e43ad68
UB
65072011-03-21 Uros Bizjak <ubizjak@gmail.com>
6508
9a96da32
UB
6509 * config/alpha/alpha.md (unspec): New define_c_enum.
6510 (unspecv): Ditto.
6511
65122011-03-21 Uros Bizjak <ubizjak@gmail.com>
6513
6514 PR debug/48214
9e43ad68
UB
6515 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6516 between a call and its CALL_ARG_LOCATION note.
6517
31408f60
EB
65182011-03-21 Eric Botcazou <ebotcazou@adacore.com>
6519
6520 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6521
65222011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
6523
6524 PR c/42544
6525 PR c/48197
6526 * c-common.c (shorten_compare): If primopN is first sign-extended
6527 to opN and then zero-extended to result type, set primopN to opN.
6528
9dfd55f5
DJ
65292011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
6530
6531 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6532 for barrier handlers.
6533
f3c33d9d
MM
65342011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
6535
6536 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6537 UNSPEC constants to be in the unspec enumeration, and redefine
6538 all UNSPECV constants to be in the unspecv enumeration, so that
6539 dumps print which unspec/unspec_volatile this is.
6540 * config/rs6000/vector.md (UNSPEC_*): Ditto.
6541 * config/rs6000/paired.md (UNSPEC_*): Ditto.
6542 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6543 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6544 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6545
6546 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6547 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6548 UNSPECV_LWSYNC, since these are used as unspec_volatile.
6549 * config/rs6000/sync.md (isync, lwsync): Ditto.
6550
ac43f774
RG
65512011-03-21 Richard Guenther <rguenther@suse.de>
6552
6553 * params.def (lto-min-partition): Fix typo.
6554
411cdbd8
RG
65552011-03-21 Richard Guenther <rguenther@suse.de>
6556
6557 PR c/47939
6558 * c-decl.c (grokdeclarator): Drop to the main variant only
6559 for array types. Drop flag_gen_aux_info check.
6560
1cd9e416
RG
65612011-03-21 Richard Guenther <rguenther@suse.de>
6562
6563 PR translation/47911
6564 * params.def (lto-partitions): Fix typo.
6565 (lto-min-partition): Fix wording.
6566
ada5ad67
AT
65672011-03-21 Andreas Tobler <andreast@fgznet.ch>
6568
6569 * config/rs6000/t-freebsd: Remove duplication from file.
6570
f9613c9a
RG
65712011-03-21 Richard Guenther <rguenther@suse.de>
6572
6573 PR middle-end/47661
6574 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6575
9bfbc1eb
RG
65762011-03-21 Richard Guenther <rguenther@suse.de>
6577
6578 PR lto/48210
6579 * params.def (lto-partitions): Require at least 1 partition.
6580
a2268084
RO
65812011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6582
6583 * gthr-solaris.h: Remove.
6584 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6585 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6586 (LIB_SPEC): Likewise.
6587 * config/sol2.opt (threads): Remove.
9e43ad68 6588 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
6589 (sparc*-*-solaris2*): Likewise.
6590 * configure.ac (enable_threads): Enable solaris support.
6591 * configure: Regenerate.
9e43ad68 6592 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
6593 * doc/install.texi (Configuration, --enable-threads=lib): Remove
6594 solaris.
6595
c43d9a1b
RO
65962011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6597
6598 * config.gcc: Obsolete *-*-solaris2.8*.
6599 * doc/install.texi (Specific, *-*-solaris2*): Document it.
6600
084239f4
RO
66012011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6602
6603 PR bootstrap/48135
6604 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6605 reference. Solaris 8 perl works.
6606
64cadbe7
RO
66072011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6608
6609 PR bootstrap/48135
6610 * doc/install.texi (Prerequisites): Move jar etc. up.
6611 Explain support library version requirements.
6612
eb975109
RO
66132011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6614
6615 PR bootstrap/48135
6616 * doc/install.texi (Prerequisites): Move Perl to build
6617 requirements. Always necessary on Solaris 2 with Sun ld.
6618
8a509ffd
RO
66192011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6620
6621 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6622 binutils 2.21.
6623 (Specific, i?86-*-solaris2.[89]): Likewise.
6624 (Specific, i?86-*-solaris2.10): Likewise.
6625 (Specific, mips-sgi-irix6): Likewise.
6626 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6627 Update for binutils 2.21.
6628
8fbc58a1
RO
66292011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6630
6631 * configure.ac (gcc_cv_lto_plugin): Fix typo.
6632 Allow -fuse-linker-plugin for non-default plugin linker.
6633 * configure: Regenerate.
6634
7e84ad0b
NP
66352011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
6636
6637 PR bootstrap/48167
6638 * gengtype.c (files_rules): Added rule for cp/parser.h.
6639
2f36e14b
JJ
66402011-03-21 Jakub Jelinek <jakub@redhat.com>
6641
6642 PR target/48213
6643 * config/s390/s390.c (s390_delegitimize_address): Don't call
6644 lowpart_subreg if orig_x has BLKmode.
6645
62d784f7
KT
66462011-03-21 Kai Tietz <ktietz@redhat.com>
6647
6648 PR target/12171
9e43ad68
UB
6649 * doc/plugins.texi: Adjust documentation for plugin register_callback.
6650 * tree.h (attribute_spec): Add new member affects_type_identity.
6651 * attribs.c (empty_attribute_table): Adjust attribute_spec
6652 initializers.
62d784f7
KT
6653 * config/alpha/alpha.c: Likewise.
6654 * config/arc/arc.c: Likewise.
6655 * config/arm/arm.c: Likewise.
6656 * config/avr/avr.c: Likewise.
6657 * config/bfin/bfin.c: Likewise.
6658 * config/crx/crx.c: Likewise.
6659 * config/darwin.h: Likewise.
6660 * config/h8300/h8300.c: Likewise.
6661 * config/i386/cygming.h: Likewise.
6662 * config/i386/i386.c: Likewise.
6663 * config/ia64/ia64.c: Likewise.
6664 * config/m32c/m32c.c: Likewise.
6665 * config/m32r/m32r.c: Likewise.
6666 * config/m68hc11/m68hc11.c: Likewise.
6667 * config/m68k/m68k.c: Likewise.
6668 * config/mcore/mcore.c: Likewise.
6669 * config/mep/mep.c: Likewise.
6670 * config/microblaze/microblaze.c: Likewise.
6671 * config/mips/mips.c: Likewise.
6672 * config/rs6000/rs6000.c: Likewise.
6673 * config/rx/rx.c: Likewise.
6674 * config/sh/sh.c: Likewise.
6675 * config/sol2.h: Likewise.
6676 * config/sparc/sparc.c: Likewise.
6677 * config/spu/spu.c: Likewise.
6678 * config/stormy16/stormy16.c: Likewise.
6679 * config/v850/v850.c: Likewise.
6680
54833ec0
CLT
66812011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6682
6683 * simplify-rtx.c (simplify_binary_operation_1): Handle
6684 (xor (and A B) C) case when B and C are both constants.
6685
14a41392
MX
66862011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
6687
6688 * tree-dfa.c (add_referenced_var): Fix typo in comment.
6689
806c3492
EB
66902011-03-20 Eric Botcazou <ebotcazou@adacore.com>
6691
6692 PR bootstrap/48168
6693 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6694
65e0a0f3
JJ
66952011-03-20 Jakub Jelinek <jakub@redhat.com>
6696
6697 PR rtl-optimization/48156
6698 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6699 assume df and df_lr are not NULL.
6700
b6a75dda
RR
67012011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6702
6703 PR debug/48023
6704 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6705 between a call and its CALL_ARG_LOCATION note.
6706
5969b52d
KK
67072011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
6708
6709 PR debug/48178
6710 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6711 between a call and its corresponding CALL_ARG_LOCATION note.
6712
f773c2bd
AS
67132011-03-19 Anatoly Sokolov <aesok@post.ru>
6714
6715 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6716 instead of loop. Use HARD_REGISTER_NUM_P predicate.
6717 * haifa-sched.c (setup_ref_regs): Ditto.
6718 * caller-save.c (add_used_regs_1): Ditto.
6719 * dse.c (look_for_hardregs): Ditto.
6720 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6721 * sched-rgn.c (check_live_1): Ditto.
6722
8bf872f9
JM
67232011-03-18 Joseph Myers <joseph@codesourcery.com>
6724
6725 * c-decl.c (diagnose_mismatched_decls): Give an error for
6726 redefining a typedef with variably modified type.
6727
ff8e2159
JM
67282011-03-18 Joseph Myers <joseph@codesourcery.com>
6729
6730 * c-decl.c (grokfield): Don't allow typedefs for structures or
6731 unions with no tag by default.
6732 * doc/extend.texi (Unnamed Fields): Update.
6733
16cc4440
UB
67342011-03-18 Uros Bizjak <ubizjak@gmail.com>
6735
6736 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6737 Rewrite using indirect functions.
6738 (lwp_slwpcb): Ditto.
6739 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6740 (avx_vinsertf128<mode>): Ditto.
6741
e101e12e
AK
67422011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6743
6744 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6745 unspecs.
6746
4627c7fb
AK
67472011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6748
6749 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 6750 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 6751
2d36b47f
MK
67522011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
6753
6754 PR rtl-optimization/48170
6755 * gcse.c (hoist_code): Remove bogus asserts.
6756
2a3d7659
JL
67572011-03-18 Georg-Johann Lay <avr@gjlay.de>
6758
6759 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6760 computation for prologue/epilogue.
6761
34c3ef05
RO
67622011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6763
6764 * Makefile.in (check-consistency): Remove.
6765
81f2b976
JJ
67662011-03-18 Jakub Jelinek <jakub@redhat.com>
6767
6768 PR debug/48176
6769 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6770 arange_table_in_use is 0, but either text_section_used or
6771 cold_text_section_used is true. Don't call it if
6772 !info_section_emitted.
6773
68fd7765
AS
67742011-03-18 Anatoly Sokolov <aesok@post.ru>
6775
6776 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6777 FUNCTION_VALUE_REGNO_P): Remove.
6778 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6779 Remove.
6780 * config/avr/avr.c (avr_ret_register): Make static inline.
6781 (avr_function_value_regno_p): New function.
6782 (avr_libcall_value): Make static. Add 'func' argument.
6783 (avr_function_value): Make static. Rename 'func' argument to
6784 'fn_decl_or_type', forward it to avr_libcall_value. Call
6785 avr_ret_register function instead of RET_REGISTER macro.
6786 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6787
b4ef8aac
JM
67882011-03-18 Jason Merrill <jason@redhat.com>
6789
6790 PR c++/23372
6791 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6792
09a52fc3
RG
67932011-03-18 Richard Guenther <rguenther@suse.de>
6794
6795 * doc/install.texi (--enable-gold): Remove.
6796 (--with-plugin-ld): Document.
6797 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6798
2a3d7659 67992011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
6800
6801 PR middle-end/47790
6802 * expr.c (optimize_bitfield_assignment_op): Revamp to work
6803 again after expansion changes.
6804
2abbb0fe
CLT
68052011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
6806
6807 * combine.c (try_combine): Do simplification only call of
6808 subst() on i2 even when i1 is present. Update comments.
6809
2efd0aa6
KK
68102011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
6811
6812 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6813 and UNSPEC_PCREL_SYMOFF.
6814
30a49b23
AK
68152011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6816
6817 * config/s390/s390.md: Use define_c_enum for the unspec constant
6818 definitions.
6819
419e1853
JJ
68202011-03-18 Richard Henderson <rth@redhat.com>
6821 Jakub Jelinek <jakub@redhat.com>
6822
6823 PR bootstrap/48161
6824 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6825 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6826
37875856
L
68272011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6828
6829 PR middle-end/47725
6830 * combine.c (cant_combine_insn_p): Don't check zero/sign
6831 extended hard registers.
6832
76069764
L
68332011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6834
6835 PR middle-end/47725
6836 * combine.c (cant_combine_insn_p): Check zero/sign extended
6837 hard registers.
6838
24da2019
AS
68392011-03-17 Anatoly Sokolov <aesok@post.ru>
6840
6841 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6842 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6843 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6844 Change return type to bool.
6845 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6846
a82ff31f
JJ
68472011-03-17 Jakub Jelinek <jakub@redhat.com>
6848
8b29c87a
JJ
6849 PR debug/48163
6850 * var-tracking.c (prepare_call_arguments): If CALL target
6851 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6852 pc instead of looking it up using cselib_lookup and use
6853 Pmode for it if x has VOIDmode.
6854 * dwarf2out.c (gen_subprogram_die): If also both first and
6855 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6856
a82ff31f
JJ
6857 PR debug/48163
6858 * function.c (assign_parms): For data.passed_pointer parms
6859 use MEM of data.entry_parm instead of data.entry_parm itself
6860 as DECL_INCOMING_RTL.
6861 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6862 also when passed and declared mode is the same, DECL_RTL
6863 is a MEM with pseudo as address and DECL_INCOMING_RTL is
6864 a MEM too.
6865
82ce305c
JL
68662011-03-16 Jeff Law <law@redhat.com>
6867
6868 PR rtl-optimization/37273
6869 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6870 handle them like argument loads from stack slots. Do not double
6871 count memory for memory constants and argument loads from stack slots.
6872
fe58e02b
L
68732011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6874
6875 PR debug/48160
6876 * var-tracking.c (prepare_call_arguments): Check SUBREG.
6877
6fc4dbc7
L
68782011-03-17 H.J. Lu <hongjiu.lu@intel.com>
6879
6880 PR target/48171
6881 * config/i386/i386.opt: Add Save to -mavx and -mfma.
6882
db3ed0b3
JJ
68832011-03-17 Jakub Jelinek <jakub@redhat.com>
6884
8054a389
JJ
6885 PR bootstrap/48153
6886 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6887 if dwarf_strict.
6888 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6889 Clear call_arg_locations and call_arg_loc_last always.
6890
db3ed0b3
JJ
6891 PR middle-end/48152
6892 * var-tracking.c (prepare_call_arguments): If argument needs to be
6893 passed by reference, adjust argtype and mode.
6894
1bce4ff3
RG
68952011-03-17 Richard Guenther <rguenther@suse.de>
6896
6897 PR middle-end/48134
6898 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6899 a value make sure to fold the statement.
6900
7c71147d
CLT
69012011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
6902
6903 PR target/43872
6904 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6905 return condition with !cfun->calls_alloca.
6906
0e1ee172
RG
69072011-03-17 Richard Guenther <rguenther@suse.de>
6908
6909 PR bootstrap/48148
6910 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6911 origin for decls in other ltrans units.
6912 (input_varpool_node): Likewise.
6913
f8bce518
RG
69142011-03-17 Richard Guenther <rguenther@suse.de>
6915
6916 PR middle-end/48165
6917 * tree-object-size.c (compute_object_offset): Properly return
6918 the offset operand of MEM_REFs as sizetype.
6919
1b6fa860
JJ
69202011-03-17 Jakub Jelinek <jakub@redhat.com>
6921
dabd47e7
JJ
6922 PR rtl-optimization/48141
6923 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6924 * dse.c: Include params.h.
6925 (active_local_stores_len): New variable.
6926 (add_wild_read, dse_step1): Clear it when setting active_local_stores
6927 to NULL.
6928 (record_store, check_mem_read_rtx): Decrease it when removing
6929 from the chain.
6930 (scan_insn): Likewise. Increase it when adding to chain, if it
6931 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6932 set active_local_stores to NULL before the addition.
6933 * Makefile.in (dse.o): Depend on $(PARAMS_H).
6934
1b6fa860
JJ
6935 PR rtl-optimization/48141
6936 * dse.c (record_store): If no positions are needed in an insn
6937 that cannot be deleted, at least unchain it from active_local_stores.
6938
7b5cb7d6
DS
69392011-03-16 Dodji Seketeli <dodji@redhat.com>
6940
6941 PR debug/47510
6942 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6943 (lookup_type_die_strip_naming_typedef): ... here.
6944 (get_context_die): Use it.
6945 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6946 the anonymous struct named by the naming typedef.
6947
585e9d9d
L
69482011-03-16 H.J. Lu <hongjiu.lu@intel.com>
6949
6950 PR target/48154
6951 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6952 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6953
6261ab0e
JL
69542011-03-16 Jeff Law <law@redhat.com>
6955
6956 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 6957 check for operands of conditional. Allow type to be a pointer.
6261ab0e 6958
0b0081ec
RG
69592011-03-16 Richard Guenther <rguenther@suse.de>
6960
6961 PR tree-optimization/48149
6962 * fold-const.c (fold_binary_loc): Fold
6963 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6964
64a3d647
RG
69652011-03-16 Richard Guenther <rguenther@suse.de>
6966
6967 PR tree-optimization/26134
6968 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6969 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6970 (non_rewritable_mem_ref_base): Handle complex type component
6971 accesses, constrain offsets for vector and complex extracts
6972 more properly.
6973
ef13324e
RG
69742011-03-16 Richard Guenther <rguenther@suse.de>
6975
6976 PR tree-optimization/48146
6977 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6978 operands avoiding the need for renaming.
6979
f0eddb90
RG
69802011-03-16 Richard Guenther <rguenther@suse.de>
6981
6982 * gimple-fold.c (maybe_fold_reference): Open-code relevant
6983 constant folding. Move MEM_REF canonicalization first.
6984 Rely on fold_const_aggregate_ref for initializer folding.
6985 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6986
e42348b8
JJ
69872011-03-16 Jakub Jelinek <jakub@redhat.com>
6988
29f10e71
JJ
6989 PR middle-end/48136
6990 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6991 arg0/arg1 or their arguments are always fold converted to matching
6992 types.
6993
e42348b8
JJ
6994 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6995 to nargs.
6996
55b46574
RO
69972011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6998
6999 PR lto/46944
7000 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
7001 Handle in-tree gold.
7002 (ld_vers): Extract binutils version for gold.
7003 (gcc_cv_ld_hidden): Handle gold here.
7004 (gcc_cv_lto_plugin): Determine level of linker plugin support.
7005 * configure: Regenerate.
7006 * config.in: Regenerate.
7007 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
7008 -fuse-linker-plugin otherwise.
7009 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
7010 (LINK_COMMAND_SPEC): Use it.
7011 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
7012
2b1c5433
JJ
70132011-03-16 Jakub Jelinek <jakub@redhat.com>
7014
c2969d8e
JJ
7015 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
7016 * calls.c: Remove debug.h include.
7017 (emit_call_1): Don't call virtual_call_token debug hook.
7018 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
7019 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
7020 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
7021 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
7022 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
7023 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
7024 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
7025 dwarf2out_virtual_call): Remove.
7026 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
7027 copy_call_info and virtual_call hooks.
7028 (dwarf2out_init): Don't initialize vcall_insn_table,
7029 debug_dcall_section and debug_vcall_section.
7030 (prune_unused_types): Don't mark nodes from dcall_table.
7031 (dwarf2out_finish): Don't output dcall or vcall tables.
7032 * final.c (final_scan_insn): Don't call direct_call or
7033 virtual_call debug hooks.
7034 * debug.h (struct gcc_debug_hooks): Remove direct_call,
7035 virtual_call_token, copy_call_info and virtual_call hooks.
7036 (debug_nothing_uid): Remove prototype.
7037 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
7038 copy_call_info and virtual_call hooks.
7039 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7040 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
7041 * debug.c (do_nothing_debug_hooks): Likewise.
7042 (debug_nothing_uid): Remove.
7043 * doc/invoke.texi (-fenable-icf-debug): Remove.
7044 * common.opt (-fenable-icf-debug): Likewise.
7045
325f5379
JJ
7046 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
7047 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
7048 call's MEM. Handle functions returning aggregate through a hidden
7049 first pointer. For virtual calls add clobbered pc to call arguments
7050 chain.
7051 * dwarf2out.c (gen_subprogram_die): Emit
7052 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
7053 can't be emitted.
7054
a58a8e4b
JJ
7055 PR debug/45882
7056 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
7057 * rtl.h (ENTRY_VALUE_EXP): Define.
7058 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
7059 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7060 * print-rtl.c (print_rtx): Likewise.
7061 * gengtype.c (adjust_field_rtx_def): Likewise.
7062 * var-tracking.c (vt_add_function_parameter): Adjust
7063 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
7064 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
7065 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
7066 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
7067 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
7068
2b1c5433
JJ
7069 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
7070 Call var_location debug hook even on CALL_INSNs.
7071 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
7072 * rtl.def (ENTRY_VALUE): New.
7073 * dwarf2out.c: Include cfglayout.h.
7074 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7075 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
7076 (struct call_arg_loc_node): New type.
7077 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
7078 tail_call_site_count): New variables.
7079 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
7080 DW_TAG_GNU_call_site_parameter.
7081 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
7082 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
7083 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
7084 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
7085 and DW_AT_GNU_all_source_call_sites.
7086 (mem_loc_descriptor): Handle ENTRY_VALUE.
7087 (add_src_coords_attributes): Don't add enything if
7088 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
7089 (dwarf2out_abstract_function): Save and clear call_arg_location,
7090 call_site_count and tail_call_site_count around dwarf2out_decl call.
7091 (gen_call_site_die): New function.
7092 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7093 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7094 (dwarf2out_function_decl): Clear call_arg_locations,
7095 call_arg_loc_last, set call_site_count and tail_call_site_count
7096 to -1 and free block_map.
7097 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7098 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
7099 followed by any real instructions.
7100 (dwarf2out_begin_function): Set call_site_count and
7101 tail_call_site_count to 0.
7102 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7103 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7104 attempt to force a DIE for it and worst case remove the attribute.
7105 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7106 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7107 the decl itself.
7108 * var-tracking.c: Include tm_p.h.
7109 (vt_stack_adjustments): For calls call note_register_arguments.
7110 (argument_reg_set): New variable.
7111 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7112 ensure the VALUE is resolved.
7113 (call_arguments): New variable.
7114 (prepare_call_arguments): New function.
7115 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7116 (struct expand_loc_callback_data): Add ignore_cur_loc field.
7117 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7118 always use the best expression.
7119 (vt_expand_loc): Add ignore_cur_loc argument.
7120 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7121 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7122 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7123 note for all calls.
7124 (vt_add_function_parameter): Use cselib_lookup_from_insn.
7125 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7126 argument. Don't call cselib_preserve_only_values and
7127 cselib_reset_table.
7128 (note_register_arguments): New function.
7129 (vt_initialize): Compute argument_reg_set. Call
7130 vt_add_function_parameters before processing basic blocks instead of
7131 afterwards. For calls call prepare_call_arguments before calling
7132 cselib_process_insn.
7133 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7134 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7135 (var-tracking.o): Depend on $(TM_P_H).
7136 * cfglayout.h (insn_scope): New prototype.
7137 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7138 * cfglayout.c (insn_scope): No longer static.
7139 * insn-notes.def (CALL_ARG_LOCATION): New.
7140 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7141 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7142 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7143 nothing for DECL_EXTERNAL BLOCK_VARS.
7144
9ef13bd0
AM
71452011-03-16 Alan Modra <amodra@gmail.com>
7146
7147 PR target/45844
7148 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7149 create invalid offset address for vsx splat insn.
7150 * config/rs6000/predicates.md (splat_input_operand): New.
7151 * config/rs6000/vsx.md (vsx_splat_*): Use it.
7152
56b67510
XDL
71532011-03-15 Xinliang David Li <davidxl@google.com>
7154
7155 PR c/47837
7156 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7157 (normalize_preds): New function.
7158 (is_use_properly_guarded): Normalize def predicates.
7159
80fffdef
RR
71602011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7161
732f37c6 7162 PR target/46788
80fffdef
RR
7163 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7164 in the output template.
7165
930672ad
RG
71662011-03-15 Richard Guenther <rguenther@suse.de>
7167
7168 PR middle-end/47650
7169 * tree-pretty-print.c (dump_function_declaration): Properly
7170 dump unprototyped and varargs function types.
7171
c7ee7b45
RG
71722011-03-15 Richard Guenther <rguenther@suse.de>
7173
7174 PR tree-optimization/13954
7175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7176 and friends.
7177
b2ad5e37
RG
71782011-03-15 Richard Guenther <rguenther@suse.de>
7179
7180 PR tree-optimization/48037
7181 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7182 selects into BIT_FIELD_REFs.
7183 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7184 vector select.
7185
7ee93d4e
JJ
71862011-03-15 Jakub Jelinek <jakub@redhat.com>
7187
7188 PR tree-optimization/48129
7189 * builtins.c (fold_builtin_snprintf): Convert to type of
7190 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7191 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7192
e106efc7
RG
71932011-03-15 Richard Guenther <rguenther@suse.de>
7194
7195 PR tree-optimization/41490
7196 * tree-ssa-dce.c (propagate_necessity): Handle returns without
7197 value but with VUSE.
7198 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7199 return statements.
7200 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7201 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7202 * tree-tailcall.c (find_tail_calls): Ignore returns.
7203
17dea42f
RG
72042011-03-15 Richard Guenther <rguenther@suse.de>
7205
7206 PR middle-end/48031
7207 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7208 or variable-indexed array accesses when in gimple form.
7209
01c77a60
RG
72102011-03-15 Richard Guenther <rguenther@suse.de>
7211
16cc4440 7212 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 7213
77b0791e
AM
72142011-03-15 Alan Modra <amodra@gmail.com>
7215
7216 PR target/48032
7217 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7218 presume symbol_refs without a symbol_ref_decl are suitably
7219 aligned, nor other trees we may see here. Handle anchor symbols.
7220 (legitimate_constant_pool_address_p): Comment. Add mode param.
7221 Check cmodel=medium addresses. Adjust all calls.
7222 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7223 creating cmodel=medium optimized access to locals.
7224 * config/rs6000/constraints.md (R): Pass QImode to
7225 legitimate_constant_pool_address_p.
7226 * config/rs6000/predicates.md (input_operand): Pass mode to
7227 legitimate_constant_pool_address_p.
7228 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7229 Update prototype.
7230
35f61ba4
MM
72312011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
7232
7233 PR target/48053
7234 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7235 64-bit constants being loaded into registers other than GPRs such
7236 as loading 0 into a VSX register.
7237
07332e6d
RO
72382011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7239
16cc4440 7240 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 7241
de888d90
JJ
72422011-03-14 Jakub Jelinek <jakub@redhat.com>
7243
ba3ceb2d
JJ
7244 PR middle-end/47917
7245 * builtins.c (fold_builtin_snprintf): New function.
7246 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7247 (fold_builtin_4): Likewise.
7248
2e64f8b8
JJ
7249 PR middle-end/38878
7250 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7251 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
7252 and C - X == X also strip nops from +/-/p+ operand.
7253 When optimizing -X == C, fold C to arg0's type.
7254
de888d90
JJ
7255 PR debug/47946
7256 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7257 emit it as add_AT_int instead of add_AT_unsigned.
7258
72592011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
7260
7261 * unwind-dw2.c: Include sys/sdt.h if it exists.
7262 (_Unwind_DebugHook): Use STAP_PROBE2.
7263 * config.in, configure: Rebuild.
7264 * configure.ac: Check for sys/sdt.h.
7265
d34abfd2
UB
72662011-03-14 Uros Bizjak <ubizjak@gmail.com>
7267
7268 * config/i386/i386.md (ROUND_FLOOR): New constant.
7269 (ROUND_CEIL): Ditto.
7270 (ROUND_TRUNC): Ditto.
7271 (ROUND_MXCSR): Ditto.
7272 (ROUND_NO_EXC): Ditto.
7273 (rint<mode>2): Use new defines instead of numerical constants.
7274 (floor<mode>2): Ditto.
7275 (ceil<mode>2): Ditto.
7276 (btrunc<mode>2): Ditto.
7277 * config/i386/i386-builtin-types.def: Define ROUND function type
7278 aliases.
7279 * config/i386/i386.c (enum ix86_builtins): Add
7280 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7281 (struct builtin_description): Add
7282 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7283 (ix86_expand_sse_round): New static function.
7284 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7285 function types.
7286 (ix86_builtin_vectorized_function): Handle
7287 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7288
87f9e23d
TT
72892011-03-14 Tom Tromey <tromey@redhat.com>
7290
7291 * c-parser.c (c_parser_asm_string_literal): Clear
7292 warn_overlength_strings.
7293
b3ab9ea2
TT
72942011-03-14 Tom Tromey <tromey@redhat.com>
7295
7296 * c-parser.c (disable_extension_diagnostics): Save
7297 warn_overlength_strings.
7298 (restore_extension_diagnostics): Restore warn_overlength_strings.
7299
6bd73dd8
JJ
73002011-03-14 Jakub Jelinek <jakub@redhat.com>
7301
7302 * BASE-VER: Change to 4.7.0.
7303
7f4d6e1b
RG
73042011-03-14 Richard Guenther <rguenther@suse.de>
7305
7306 PR middle-end/48098
7307 * tree.c (build_vector_from_val): Adjust assert to requirements
7308 and reality.
7309
c6104ef1
JJ
73102011-03-14 Jakub Jelinek <jakub@redhat.com>
7311
7312 PR bootstrap/48102
d34abfd2 7313 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 7314
dfa95e19
AT
73152011-03-14 Andreas Tobler <andreast@fgznet.ch>
7316
f60c2554 7317 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
7318 terms of target_flags_explicit. Adjust copyright year.
7319
7320 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7321 * config/rs6000/t-freebsd: New file. Add override for
7322 LIB2FUNCS_EXTRA.
7323
bb322018
CD
73242011-03-13 Chris Demetriou <cgd@google.com>
7325
7326 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7327 (-fno-diagnostics-show-option): this, to reflect current default.
7328 (-Werror=): Update text about -fno-diagnostics-show-option.
7329
12b1c80b
PB
73302011-03-12 Peter Bergner <bergner@vnet.ibm.com>
7331
7332 PR target/48053
7333 * config/rs6000/predicates.md (easy_vector_constant_add_self,
7334 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7335 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7336 mode is not V2DImode or V2DFmode.
7337 (vspltis_constant): Do not handle V2DImode and V2DFmode.
7338 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7339 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7340 registers to 0.
7341 (movdi_internal64): Likewise.
7342
57d598f7
SP
73432011-03-12 Sebastian Pop <sebastian.pop@amd.com>
7344
7345 PR tree-optimization/47127
7346 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7347 parameter.
7348 (set_cloog_options): Same.
7349 (scop_to_clast): Same.
7350 (print_clast_stmt): Do not call cloog_state_malloc and
7351 cloog_state_free.
7352 (print_generated_program): Same.
7353 (gloog): Same.
7354 * graphite-clast-to-gimple.h (cloog_state): Declared.
7355 (scop_to_clast): Adjust declaration.
7356 * graphite.c (cloog_state): Defined here.
7357 (graphite_initialize): Call cloog_state_malloc.
7358 (graphite_finalize): Call cloog_state_free.
7359
f231b5ff
JM
73602011-03-11 Jason Merrill <jason@redhat.com>
7361
7362 * attribs.c (lookup_attribute_spec): Take const_tree.
7363 * tree.h: Adjust.
7364
6a4e2bd5
JM
73652011-03-11 Joseph Myers <joseph@codesourcery.com>
7366
7367 * config/sparc/sparc.c (sparc_option_override): Use
7368 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7369
a758fd67
RG
73702011-03-11 Richard Guenther <rguenther@suse.de>
7371
7372 PR tree-optimization/48067
7373 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7374 multiplication result will be only used once on the target
7375 stmt.
7376
03dfda54
RG
73772011-03-11 Richard Guenther <rguenther@suse.de>
7378
7379 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7380
5f11a50a
RG
73812011-03-11 Richard Guenther <rguenther@suse.de>
7382
7383 PR lto/48073
7384 * tree.c (find_decls_types_r): Do not walk types only reachable
7385 from IDENTIFIER_NODEs.
7386
4074f163
JJ
73872011-03-11 Jakub Jelinek <jakub@redhat.com>
7388
7389 PR middle-end/48044
7390 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7391 all vnode->force_output nodes as needed.
7392
30f7cdcd
JM
73932011-03-11 Jason Merrill <jason@redhat.com>
7394
7395 PR c++/48069
7396 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7397 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7398
62ecfeb8
MJ
73992011-03-11 Martin Jambor <mjambor@suse.cz>
7400
7401 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7402 cgraph_node.
7403
e89e03ab
JJ
74042011-03-11 Jakub Jelinek <jakub@redhat.com>
7405
7406 PR tree-optimization/48063
7407 * ipa-inline.c (cgraph_decide_inlining): Don't try to
7408 inline functions called once if !tree_can_inline_p (node->callers).
7409
efbe978b 74102011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 7411
efbe978b
EB
7412 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7413 extra_objs.
9d6193a7
CL
7414 * config/score/score3.c: Delete.
7415 * config/score/score3.h: Delete.
7416 * config/score/mul-div.S: Delete.
7417 * config/score/sfp-machine.h: Add new file.
7418 * config/score/constraints.md: Add new file.
7419 * config/score/t-score-softfp: Add new file.
efbe978b 7420 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
7421 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7422 (score7_extra_constraint): Delete.
efbe978b 7423 (score7_option_override): Remove unused code.
9d6193a7
CL
7424 * config/score/score.c: Remove score3 and score5 define and code.
7425 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 7426 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
7427 * config/score/score.opt: Remove score3 and score5 options.
7428
5de27cca
JDA
74292011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7430
7431 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7432 when _HPUX_SOURCE is defined.
7433 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7434
18d92053
JM
74352011-03-10 Jason Merrill <jason@redhat.com>
7436
7437 PR c++/48029
7438 * stor-layout.c (layout_type): Don't set structural equality
7439 on arrays of incomplete type.
7440 * tree.c (type_hash_eq): Handle comparing them properly.
7441
67a2f76d
JJ
74422011-03-10 Jakub Jelinek <jakub@redhat.com>
7443
7444 PR debug/48043
18d92053 7445 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
7446 result mode matches original rtl mode.
7447
d845b2f9
NC
74482011-03-10 Nick Clifton <nickc@redhat.com>
7449
7450 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 7451 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 7452
db7ec035
JJ
74532011-03-09 Jakub Jelinek <jakub@redhat.com>
7454
7455 PR rtl-optimization/47866
7456 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7457 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7458 if target wasn't scalar.
7459 * function.c (assign_stack_temp_for_type): Assert that neither
7460 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7461 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7462 macro.
7463 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7464
5d304e47
AK
74652011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7466
7467 * config/s390/s390-protos.h (s390_label_align): New prototype.
7468 * config/s390/s390.c (s390_label_align): New function.
7469 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7470
93b826f0
MM
74712011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7472
7473 PR target/47755
7474 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7475 V2DI/V2DF constants. Only all 0's or all 1's are easy.
7476 (output_vec_const_move): Ditto.
7477
ef78aed6
AS
74782011-03-08 Anatoly Sokolov <aesok@post.ru>
7479
7480 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7481 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7482 * config/mips/mips.c (mips_preferred_reload_class): Make static.
7483 Change 'rclass' argument and result type to reg_class_t.
7484 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7485
5f892aa0
GJL
74862011-03-08 Georg-Johann Lay <avr@gjlay.de>
7487
9e43ad68
UB
7488 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7489 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7490 (TARGET_MEMORY_MOVE_COST): Define.
7491 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 7492
32bd2409
JJ
74932011-03-08 Jakub Jelinek <jakub@redhat.com>
7494
530a4800
JJ
7495 PR debug/47881
7496 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7497 removed anything.
7498
32bd2409
JJ
7499 PR tree-optimization/48022
7500 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7501 for EQ/NE_EXPR.
7502
c7148991
JJ
75032011-03-07 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR debug/47991
7506 * var-tracking.c (find_use_val): Return NULL for
7507 cui->sets && cui->store_p BLKmode MEMs.
7508
43070a6e
AS
75092011-03-07 Anatoly Sokolov <aesok@post.ru>
7510
7511 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7512 Remove.
7513 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7514 xstormy16_print_operand_address): Remove.
7515 * config/stormy16/stormy16.c (xstormy16_print_operand,
7516 xstormy16_print_operand_address): Make static.
7517 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7518
efbe978b 75192011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
7520
7521 PR target/47862
7522 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7523 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7524 before definition.
7525
cec8ac0b
ZD
75262011-03-07 Zdenek Dvorak <ook@ucw.cz>
7527
7528 PR bootstrap/48000
7529 * cfgloopmanip.c (fix_bb_placements): Return immediately
7530 if FROM is BASE_LOOP's header.
7531
59527282
PW
75322011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
7533
7534 * gimplify.c (gimplify_function_tree): Fix building calls
7535 to __builtin_return_address.
7536
617718f7
AM
75372011-03-07 Alan Modra <amodra@gmail.com>
7538
7539 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7540 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7541 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7542 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7543 return_mode args.
7544 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7545 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7546 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7547 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7548 * config/rs6000/rs6000.c
7549 (rs6000_elf_end_indicate_exec_stack): Rename to..
7550 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
7551 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
7552 (rs6000_file_start): ..here.
7553 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7554 file scope variables.
7555 (call_ABI_of_interest): New function.
7556 (init_cumulative_args): Set above vars when function return value
7557 is a float, vector, or small struct.
7558 (rs6000_function_arg_advance_1): Likewise for function args.
7559 (rs6000_va_start): Set rs6000_passes_float if variable arg function
7560 references float args.
7561
38528d50
MX
75622011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
7563
7564 * doc/cfg.texi: Remove "See" before @ref.
7565 * doc/invoke.texi: Likewise.
7566
f42cf4f4
JM
75672011-03-05 Jason Merrill <jason@redhat.com>
7568
7569 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7570
804a304d
AG
75712011-03-05 Anthony Green <green@moxielogic.com>
7572
7573 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7574
634ee309
ZD
75752011-03-05 Zdenek Dvorak <ook@ucw.cz>
7576
7577 PR rtl-optimization/47899
7578 * cfgloopmanip.c (fix_bb_placements): Fix first argument
7579 to flow_loop_nested_p when moving the loop upward.
7580
6fe471c8
RE
75812011-03-05 Richard Earnshaw <rearnsha@arm.com>
7582
7583 PR target/47719
7584 * arm.md (movhi_insn_arch4): Accept any immediate constant.
7585
cc58ceee
JJ
75862011-03-05 Jakub Jelinek <jakub@redhat.com>
7587
7588 PR tree-optimization/47967
7589 * ipa-cp.c (build_const_val): Return NULL instead of creating
7590 VIEW_CONVERT_EXPR for mismatching sizes.
7591 (ipcp_create_replace_map): Return NULL if build_const_val failed.
7592 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7593 give up on versioning.
7594
ea868305
AM
75952011-03-05 Alan Modra <amodra@gmail.com>
7596
7597 PR target/47986
7598 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7599 full cmodel medium/large lo_sum + high addresses.
7600
bc6ce334
AK
76012011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7602
7603 * config/s390/s390.c (s390_decompose_address): Reject non-literal
7604 pool references in UNSPEC_LTREL_OFFSET.
7605
87e7b310
JH
76062011-03-04 Jan Hubicka <jh@suse.cz>
7607
7608 PR lto/47497
7609 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7610 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
7611 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7612 Add node pointers.
87e7b310
JH
7613 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7614 cgraph_add_thunk): Add node pointers.
7615 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7616 associated to right node.
7617 (input_node): Update use of cgraph_same_body_alias
7618 and cgraph_add_thunk.
7619
d9c64246
CF
76202011-03-04 Changpeng Fang <changpeng.fang@amd.com>
7621
7622 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
7623 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7624 modes when the flag -mprefer-avx128 is on.
d9c64246 7625
08707076
RS
76262011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
7627
7628 * dwarf2out.c (compare_loc_operands): Fix address handling.
7629
52517c81
AM
76302011-03-04 Alan Modra <amodra@gmail.com>
7631
7632 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7633
b147c5b9
RG
76342011-03-04 Richard Guenther <rguenther@suse.de>
7635
7636 PR middle-end/47968
7637 * expmed.c (extract_bit_field_1): Prefer vector modes that
7638 vec_extract patterns can handle.
7639
8750672f
RG
76402011-03-04 Richard Guenther <rguenther@suse.de>
7641
7642 PR middle-end/47975
7643 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7644
9eac0f2a
RH
76452011-03-04 Richard Henderson <rth@redhat.com>
7646
7647 * explow.c (emit_stack_save): Remove 'after' parameter.
7648 (emit_stack_restore): Likewise.
7649 * expr.h: Update to match.
7650 * builtins.c, calls.c, stmt.c: Likewise.
7651 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7652 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7653 * function.c (expand_function_end): Insert the emit_stack_save
7654 sequence before parm_birth_insn instead of after.
7655
dfee1406
UB
76562011-03-03 Uros Bizjak <ubizjak@gmail.com>
7657
7658 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7659 (ssse3_pmaddubsw128): Ditto.
7660 (ssse3_pmaddubsw): Ditto.
7661
f1d4c3de
SE
76622011-03-03 Steve Ellcey <sje@cup.hp.com>
7663
7664 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7665
71f3a3f5
JJ
76662011-03-03 Jakub Jelinek <jakub@redhat.com>
7667
423ed416
JJ
7668 PR c/47963
7669 * gimplify.c (omp_add_variable): Only call omp_notice_variable
7670 on TYPE_SIZE_UNIT if it is a DECL.
7671
71f3a3f5
JJ
7672 PR debug/47283
7673 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7674 first operand is not is_gimple_mem_ref_addr, try to fold it.
7675 If the operand still isn't is_gimple_mem_ref_addr, clear
7676 MEM_EXPR on op0.
7677
4b1a5c0d
RG
76782011-03-03 Richard Guenther <rguenther@suse.de>
7679
7680 PR middle-end/47283
7681 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7682 match comment.
7683 (refs_may_alias_p_1): For release branches return true if
7684 we are confused by our input.
7685
b46616fd
AK
76862011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7687
7688 * config/s390/s390.c (s390_function_value): Rename to ...
7689 (s390_function_and_libcall_value): ... this.
7690 (s390_function_value): New function.
7691 (s390_libcall_value): New function.
dfee1406 7692 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
7693 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7694 target macro definitions.
7695 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7696
46d8fabb
JM
76972011-03-02 Joseph Myers <joseph@codesourcery.com>
7698
7699 * config/i386/freebsd64.h (CC1_SPEC): Define.
7700 * config/i386/linux64.h (CC1_SPEC): Define.
7701 * config/i386/x86-64.h (CC1_SPEC): Don't define.
7702
6b1ce545
AS
77032011-03-02 Anatoly Sokolov <aesok@post.ru>
7704
7705 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7706 Remove.
7707 * config/stormy16/stormy16.c: Include reload.h.
7708 (xstormy16_memory_move_cost): New function.
7709 (TARGET_MEMORY_MOVE_COST): Define.
7710
34161e98
RS
77112011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
7712
7713 PR rtl-optimization/47925
7714 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7715 with side effects. Remove the more-specific check for volatile asms.
7716
f60a97cf
AM
77172011-03-02 Alan Modra <amodra@gmail.com>
7718
7719 PR target/47935
7720 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7721 toc relative addresses for valid offsets.
7722
f2ca11ca
RG
77232011-03-01 Richard Guenther <rguenther@suse.de>
7724
7725 PR tree-optimization/47890
7726 * tree-vect-loop.c (get_initial_def_for_induction): Set
7727 related stmt properly.
7728
7a00d9ea
RG
77292011-03-01 Richard Guenther <rguenther@suse.de>
7730
7731 PR lto/47924
7732 * lto-streamer.c (lto_record_common_node): Also register
7733 the canonical type.
7734
06c7edcc
RG
77352011-03-01 Richard Guenther <rguenther@suse.de>
7736
7737 PR lto/46911
7738 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7739 Do not stream DECL_ABSTRACT_ORIGIN.
7740 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7741 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7742 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7743 Do not stream DECL_ABSTRACT_ORIGIN.
7744 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7745 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7746
998871e9
AS
77472011-02-28 Anatoly Sokolov <aesok@post.ru>
7748
7749 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7750 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 7751 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
7752 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7753 Add 'outgoing' argument.
7754 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7755 function.
7756 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7757 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7758
94369251
KT
77592011-02-28 Kai Tietz <kai.tietz@onevision.com>
7760
7761 PR debug/28047
7762 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7763 (lookup_filename): Likewise.
b2e2ea67 7764 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 7765
80a832cd
JJ
77662011-02-28 Bernd Schmidt <bernds@codesourcery.com>
7767 Jakub Jelinek <jakub@redhat.com>
7768
7769 PR middle-end/47893
7770 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7771 (assign_stack_local_1): Change last argument type to int.
7772 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7773 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 7774 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
7775 (assign_stack_local): Adjust caller.
7776 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7777 of assign_stack_local, pass 0 as last argument.
7778 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7779 callers.
7780
1b500976
JJ
77812011-02-28 Jakub Jelinek <jakub@redhat.com>
7782
f61c6f34
JJ
7783 PR debug/47283
7784 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7785 Use target address_mode and pointer_mode hooks instead of hardcoded
7786 Pmode and ptr_mode. Handle some simple cases of extending if
7787 POINTERS_EXTEND_UNSIGNED < 0.
7788 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7789 Call convert_debug_memory_address.
7790 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7791 convert_debug_memory_address.
7792
1b500976
JJ
7793 PR middle-end/46790
7794 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7795 * configure: Regenerated.
7796 * config.in: Regenerated.
7797 * varasm.c (default_function_section): Return NULL
b2e2ea67 7798 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 7799
2f2935b6
MJ
78002011-02-28 Martin Jambor <mjambor@suse.cz>
7801
7802 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7803 the description to match the printed values.
7804
474086eb
RG
78052011-02-28 Richard Guenther <rguenther@suse.de>
7806
7807 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7808 of the copied scope tree.
7809
15bf6f3a
RW
78102011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7811
7812 * doc/extend.texi (Function Attributes): Avoid deeply (and
7813 wrongly) nested tables.
7814
f6b439c9
JJ
78152011-02-27 Jakub Jelinek <jakub@redhat.com>
7816
7817 PR middle-end/47903
7818 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7819 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7820 r isn't op0 nor op1.
7821
1d8ca2c7
GJL
78222011-02-23 Georg-Johann Lay <avr@gjlay.de>
7823
7824 * config/avr/avr.md: Remove magic comment for emacs.
7825
593fca4b
GJL
78262011-02-23 Georg-Johann Lay <avr@gjlay.de>
7827
7828 PR target/45261
7829 * config/avr/avr.c (avr_option_override): Use error on bad options.
7830 (avr_help): New function.
7831 (TARGET_HELP): Define.
7832
6609216e
GJL
78332011-02-22 Georg-Johann Lay <avr@gjlay.de>
7834
7835 PR target/42240
7836 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7837 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7838
03d458af
GP
78392011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
7840
7841 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7842 (ARM Options): Ditto.
7843 (i386 and x86-64 Options): Ditto.
7844 (RX Options): Ditto.
7845 (SPARC Options): Ditto.
7846
1c379b78
TC
78472011-02-26 Tijl Coosemans <tijl@coosemans.org>
7848
7849 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7850 FreeBSD 6 and later. Generally use cpu generic.
7851
d5ed058c 78522011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 7853
d5ed058c
GP
7854 * doc/cpp.texi: Update copyright years.
7855
509d65dd 78562011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 7857
509d65dd 7858 PR target/46898
308d39cd
SB
7859 * config/lm32/lm32.md (ashrsi3): Added needed variable.
7860
509d65dd 78612011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 7862
509d65dd 7863 PR target/46898
308d39cd
SB
7864 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7865 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7866 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7867 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 7868 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
7869 (gen_int_relational): Move declarations to start of function.
7870
822ba6d7
EB
78712011-02-25 Eric Botcazou <ebotcazou@adacore.com>
7872
7873 PR tree-optimization/45470
7874 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7875 can throw internally only.
7876 * tree-vect-stmts.c (vectorizable_call): Likewise.
7877
ef795fc2
AS
78782011-02-24 Anatoly Sokolov <aesok@post.ru>
7879
7880 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7881 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7882 * config/stormy16/stormy16-protos.h
7883 (xstormy16_preferred_reload_class): Remove.
7884 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7885 static. Change 'rclass' argument and return type to reg_class_t.
7886 (TARGET_PREFERRED_RELOAD_CLASS,
7887 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7888
1c3277ee
RG
78892011-02-24 Richard Guenther <rguenther@suse.de>
7890
7891 * lto-streamer-in.c (input_bb): Do not find referenced vars
7892 in debug statements.
7893
67e18edb
JM
78942011-02-23 Jason Merrill <jason@redhat.com>
7895
7896 * common.opt (fabi-version): Document v5 and v6.
7897
b14fad9d
RG
78982011-02-23 Richard Guenther <rguenther@suse.de>
7899
7900 PR tree-optimization/47849
7901 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7902
7fcf46f5
JZ
79032011-02-23 Jie Zhang <jie@codesourcery.com>
7904
7905 * opts-common.c (decode_cmdline_option): Print empty string
7906 argument as "" in decoded->orig_option_with_args_text.
7907 * gcc.c (execute): Print empty string argument as ""
7908 in the verbose output.
7909 (do_spec_1): Keep empty string argument.
7910
f85b70fd
NF
79112011-02-23 Nathan Froyd <froydnj@codesourcery.com>
7912
7913 * config.gcc: Declare score-* and crx-* obsolete.
7914
b152a615
JZ
79152011-02-23 Jie Zhang <jie@codesourcery.com>
7916
7917 PR rtl-optimization/47763
7918 * web.c (web_main): Ignore naked clobber when replacing register.
7919
bb6e77bc
AS
79202011-02-22 Anatoly Sokolov <aesok@post.ru>
7921
7922 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7923 Remove.
7924
68bf6491
SP
79252011-02-22 Sebastian Pop <sebastian.pop@amd.com>
7926
7927 PR doc/47848
7928 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7929
88ee1fc7
MS
79302011-02-22 Mike Stump <mikestump@comcast.net>
7931
7932 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7933 assembler.
7934 * configure: Regenerate.
7935
6042d1dd
CLT
79362011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
7937
7938 PR rtl-optimization/46002
7939 * ira-color.c (update_copy_costs): Change class intersection
7940 test to reg_class_contents[] test of 'hard_regno'.
7941
7de97f9e
JM
79422011-02-21 Joseph Myers <joseph@codesourcery.com>
7943
7944 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7945 than Driver option.
7946 * config/hpux11.opt (mt): Likewise.
7947 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7948 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7949 * config/vax/elf.opt (mno-asm-pic): Likewise.
7950 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7951
d1d46f9f
MS
79522011-02-21 Mike Stump <mikestump@comcast.net>
7953
7954 PR target/47822
7955 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7956 tree so we can get save the type.
7957 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7958 for CFString instead of trying to use past the end of the builtins.
7959 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7960 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7961 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7962 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7963 Rename to darwin_builtin_cfstring.
7964 (darwin_init_cfstring_builtins): Return the built type.
7965
23e0d930
UB
79662011-02-21 Uros Bizjak <ubizjak@gmail.com>
7967
7968 PR target/47840
7969 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7970 (_mm256_insert_epi64): Use _mm_insert_epi64.
7971
192997cf
AS
79722011-02-21 Anatoly Sokolov <aesok@post.ru>
7973
7974 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7975 * config/stormy16/stormy16-protos.h
7976 (xstormy16_mode_dependent_address_p): Remove.
7977 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7978 Make static. Change return type to bool. Change argument type to
7979 const_rtx. Remove dead code.
7980 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7981
e292d003
RG
79822011-02-21 Richard Guenther <rguenther@suse.de>
7983
7984 PR lto/47820
7985 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7986 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7987 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7988 TUs context.
23e0d930 7989 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
7990 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7991
77f846e9
RG
79922011-02-20 Richard Guenther <rguenther@suse.de>
7993
7994 PR lto/47822
7995 * tree.c (free_lang_data_in_decl): Clean builtins from
7996 the TU decl BLOCK_VARS.
23e0d930 7997
b2cddfc8
AO
79982011-02-19 Alexandre Oliva <aoliva@redhat.com>
7999
8000 PR debug/47620
8001 PR debug/47630
8002 * haifa-sched.c (fix_tick_ready): Skip tick computation
8003 for debug insns.
8004
becf4c11
RG
80052011-02-19 Richard Guenther <rguenther@suse.de>
8006
8007 PR lto/47647
8008 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8009 Remove lazy BLOCK_VARS streaming.
8010 (lto_input_ts_block_tree_pointers): Likewise.
8011 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8012
27f98305
JM
80132011-02-19 Joseph Myers <joseph@codesourcery.com>
8014
8015 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
8016
064bf3f4
JM
80172011-02-19 Joseph Myers <joseph@codesourcery.com>
8018
8019 * config/i386/biarch32.h, config/i386/mach.h,
8020 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
8021
9215ddc3
JJ
80222011-02-19 Jakub Jelinek <jakub@redhat.com>
8023
8024 PR target/47800
8025 * config/i386/i386.md (peephole2 for shift and plus): Use
8026 operands[1] original mode in the first insn.
8027
8b021004
MS
80282011-02-18 Mike Stump <mikestump@comcast.net>
8029
65ded153 8030 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 8031
f84ae14c
JH
80322011-02-18 Jan Hubicka <jh@suse.cz>
8033
8034 PR middle-end/47788
65ded153
EB
8035 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
8036 to zero when the function is not inlinable at all.
f84ae14c 8037
eddabc80
JDA
80382011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8039
8040 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
8041 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8042 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
8043 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
8044 * config/pa/t-pa64: Likewise.
8045 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
8046
ca3da783
JJ
80472011-02-18 Jakub Jelinek <jakub@redhat.com>
8048
8049 PR driver/47787
8050 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
8051
430aa868
JDA
80522011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8053
8054 PR target/47792
8055 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
8056
4bf7ff7e
AS
80572011-02-18 Anatoly Sokolov <aesok@post.ru>
8058
8059 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8060 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
8061 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
8062 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8063 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
8064 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
8065 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
8066 m32r_load_postinc_p, m32r_store_preinc_predec_p,
8067 m32r_legitimate_address_p): New functions.
8068 * config/m32r/constraints.md (constraint "S"): Don't use
8069 STORE_PREINC_PREDEC_P.
8070 (constraint "U"): Don't use LOAD_POSTINC_P.
8071
7efcf910
CLT
80722011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
8073
8074 PR rtl-optimization/46178
8075 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
8076 compute ira_hard_regno_cover_class[].
8077
237d6259
RG
80782011-02-18 Richard Guenther <rguenther@suse.de>
8079
8080 PR lto/47798
8081 * lto-streamer.h (lto_global_var_decls): Declare.
8082 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
8083 statics for global var processing.
8084
12d80acc
RG
80852011-02-18 Richard Guenther <rguenther@suse.de>
8086
8087 PR tree-optimization/47737
8088 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
8089 edge dominance check.
8090
abfea58d
JJ
80912011-02-18 Jakub Jelinek <jakub@redhat.com>
8092
8093 PR debug/47780
8094 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8095 avoid invalid rtx sharing.
8096
f73c8882
GP
80972011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
8098
8099 * doc/cpp.texi (Obsolete Features): Add background on the
8100 origin of assertions.
8101
d764a8e6
IS
81022011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8103
8104 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 8105 objc_abi == 2.
d764a8e6
IS
8106 * config/darwin.c (output_objc_section_asm_op): Added support for
8107 ABI v1 and v2.
8108 (is_objc_metadata): New.
8109 (darwin_objc2_section): New.
8110 (darwin_objc1_section): New.
8111 (machopic_select_section): Added support for ABI v1 and v2.
8112 (darwin_emit_objc_zeroed): New.
8113 (darwin_output_aligned_bss): Detect objc metadata and treat it
8114 appropriately.
8115 (darwin_asm_output_aligned_decl_common): Same.
8116 (darwin_asm_output_aligned_decl_local): Same.
8117 * config/darwin-sections.def: Updated for ABI v1 and v2.
8118 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8119 compiling Objective-C code for the NeXT runtime, default to using
8120 ABI version 0 for 32-bit, and version 2 for 64-bit.
8121
0a8134ca
JM
81222011-02-17 Joseph Myers <joseph@codesourcery.com>
8123
8124 * common.opt (optimize_fast): New Variable.
8125 * opts.c (default_options_optimization): Use opts->x_optimize_fast
8126 instead of local variable ofast.
8127
0a256240
NP
81282011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
8129
8130 * doc/invoke.texi (fobjc-abi-version): Documented.
8131 (fobjc-nilcheck): Documented.
8132 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8133 version.
8134
fa381cb2
JM
81352011-02-17 Joseph Myers <joseph@codesourcery.com>
8136
8137 PR driver/47390
8138 * common.opt (export-dynamic): New Driver option.
8139 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8140
5437eaa6
JM
81412011-02-17 Joseph Myers <joseph@codesourcery.com>
8142
8143 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8144
bb7e6d55
AO
81452011-02-17 Alexandre Oliva <aoliva@redhat.com>
8146 Jan Hubicka <jh@suse.cz>
8147
8148 PR debug/47106
8149 PR debug/47402
8150 * cfgexpand.c (account_used_vars_for_block): Remove.
8151 (estimated_stack_frame_size): Use referenced vars.
8152 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8153 that were referenced in the original function. Test src_fn
8154 rather than cfun. Drop redundant get_var_ann.
8155 (setup_one_parameter): Drop redundant get_var_ann.
8156 (declare_return_variable): Likewise.
8157 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8158 (copy_arguments_for_versioning): Drop redundant get_var_ann.
8159 * ipa-inline.c (compute_inline_parameters): Do not compute
8160 disregard_inline_limits here.
bb7e6d55
AO
8161 (compute_inlinable_for_current, pass_inlinable): New.
8162 (pass_inline_parameters): Require PROP_referenced_vars.
8163 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 8164 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
8165 (cgraph_analyze_function): Set .disregard_inline_limits.
8166 * tree-sra.c (convert_callers): Compute inliner parameters
8167 only for functions already in SSA form.
8168
f181a8a7
JM
81692011-02-17 Joseph Myers <joseph@codesourcery.com>
8170
8171 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8172 -mlittle-endian-data.
8173
c6869789
JM
81742011-02-17 Joseph Myers <joseph@codesourcery.com>
8175
8176 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8177 -mno-fpu, not -fpu and -no-fpu.
8178 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8179 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8180
fbf4bfd3
UB
81812011-02-17 Uros Bizjak <ubizjak@gmail.com>
8182
8183 PR target/43653
8184 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8185 input reload with PLUS RTX.
8186
70be5dc7
JM
81872011-02-16 Joseph Myers <joseph@codesourcery.com>
8188
8189 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8190 of InverseVar(MDMX).
8191
30b1646e
JM
81922011-02-16 Joseph Myers <joseph@codesourcery.com>
8193
8194 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8195 --m4-340.
8196
ab7b71e9
JM
81972011-02-16 Joseph Myers <joseph@codesourcery.com>
8198
8199 * config/mn10300/mn10300.opt (mno-crt0): New.
8200
466f3f08
JM
82012011-02-16 Joseph Myers <joseph@codesourcery.com>
8202
8203 * config/m68k/uclinux.opt (static-libc): New Driver option.
8204
8226cd7b
JM
82052011-02-16 Joseph Myers <joseph@codesourcery.com>
8206
8207 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8208
45cab1d7
JM
82092011-02-16 Joseph Myers <joseph@codesourcery.com>
8210
8211 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8212 %{muser-extend-enabled}.
8213
65aab64f
RG
82142011-02-16 Richard Guenther <rguenther@suse.de>
8215
8216 PR tree-optimization/47738
8217 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8218 the TODO from tree_predictive_commoning.
8219
fc2fa4fb
JL
82202011-02-15 Jeff Law <law@redhat.com>
8221
8222 Revert
8223 2011-01-25 Jeff Law <law@redhat.com>
8224
8225 PR rtl-optimization/37273
8226 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8227 handle them like argument loads from stack slots. Do not double
8228 count memory for memory constants and argument loads from stack slots.
8229
4e380b8e
L
82302011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8231
8232 PR middle-end/47725
8233 * combine.c (cant_combine_insn_p): Revert the last change.
8234
e3a69bb4
MM
82352011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8236
8237 PR target/47755
8238 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8239 mode for vector constants. Remove code that checks for TImode.
8240
de650422
AO
82412011-02-15 Alexandre Oliva <aoliva@redhat.com>
8242
8243 PR debug/47106
8244 PR debug/47402
8245 * cgraph.h (compute_inline_parameters): Return void.
8246 * ipa-inline.c (compute_inline_parameters): Adjust.
8247
30925d94
AO
82482011-02-15 Alexandre Oliva <aoliva@redhat.com>
8249
8250 PR debug/47106
8251 PR debug/47402
8252 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8253 rather than decl.
8254 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8255 * ipa-inline.c (compute_inline_parameters): Adjust.
8256
1b9a784a
AO
82572011-02-15 Alexandre Oliva <aoliva@redhat.com>
8258
8259 PR debug/47106
8260 PR debug/47402
8261 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8262 Adjust all users. Pass FN to...
8263 * tree-flow-inline.h (first_referenced_var): ... this. Add
8264 fn argument.
8265 * ipa-struct-reorg.c: Adjust.
8266 * tree-dfa.c: Adjust.
8267 * tree-into-ssa.c: Adjust.
8268 * tree-sra.c: Adjust.
8269 * tree-ssa-alias.c: Adjust.
8270 * tree-ssa-live.c: Adjust.
8271 * tree-ssa.c: Adjust.
8272 * tree-ssanames.c: Adjust.
8273 * tree-tailcall.c: Adjust.
8274
27c6b086
AO
82752011-02-15 Alexandre Oliva <aoliva@redhat.com>
8276
8277 PR debug/47106
8278 PR debug/47402
8279 * tree-flow.h (referenced_var_lookup): Add fn parameter.
8280 Adjust all callers.
8281 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8282 * tree-flow-inline.h: Adjust.
8283 * gimple-pretty-print.c: Adjust.
8284 * tree-into-ssa.c: Adjust.
8285 * tree-ssa.c: Adjust.
8286 * cfgexpand.c: Adjust.
8287
679e8183
NF
82882011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8289
fbf4bfd3
UB
8290 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8291 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8292 (EXTRA_CONSTRAINT): Delete.
8293 * config/iq2000/constraints.md: New file.
8294 * config/iq2000/iq2000.md: Include it.
679e8183
NF
8295 (define_insn ""): Delete.
8296 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8297 unsupported constraint letters from patterns.
8298 (call_value, call_value_internal1): Likewise.
8299 (call_value_multiple_internal1): Likewise.
8300
a45d420a
NC
83012011-02-15 Nick Clifton <nickc@redhat.com>
8302
8303 * config/mn10300/mn10300.c: Include tm-constrs.h.
8304 (struct liw_data): New data structure describing an LIW candidate
8305 instruction.
8306 (extract_bundle): Use struct liw_data. Allow small integer
8307 operands for some instructions.
8308 (check_liw_constraints): Use struct liw_data. Remove swapped
8309 parameter. Add comments describing the checks. Fix bug when
8310 assigning the source of liw1 to the source of liw2.
8311 (liw_candidate): Delete. Code moved into extract_bundle.
8312 (mn10300_bundle_liw): Use struct liw_data. Check constraints
8313 before swapping.
8314 * config/mn10300/predicates.md (liw_operand): New predicate.
8315 Allows registers and small integer constants.
8316 * config/mn10300/constraints.md (O): New constraint. Accetps
8317 integers in the range -8 to +7 inclusive.
8318 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8319 for moving a small integer into a register. Give this alternative
8320 LIW attributes.
8321 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8322 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8323 using the J,K,L and M constraints,
8324 (liw): Remove SI mode on second operands to allow for HI and QI
8325 mode values.
8326 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
8327 instruction.
8328
8a73faf1
L
83292011-02-15 H.J. Lu <hongjiu.lu@intel.com>
8330
8331 PR middle-end/47725
8332 * combine.c (cant_combine_insn_p): Check zero/sign extended
8333 hard registers.
8334
48feba28
RG
83352011-02-15 Richard Guenther <rguenther@suse.de>
8336
8337 PR tree-optimization/47743
8338 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8339 for a non-type-compatible VN lookup bail out.
8340
ad1c1eeb
NF
83412011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8342
8343 * config/fr30/constraints.md: New file.
8344 * config/fr30/fr30.md: Include it.
8345 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8346 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8347 (EXTRA_CONSTRAINT): Delete.
8348
49ac143d
NF
83492011-02-15 Nathan Froyd <froydnj@codesourcery.com>
8350
8351 * config/frv/constraints.md: New file.
8352 * config/frv/predicates.md: Include it.
8353 * config/frv/frv.c (reg_class_from_letter): Delete.
8354 (frv_option_override): Don't initialize it.
8355 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8356 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8357 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8358 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8359 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8360 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8361 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8362 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8363 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8364 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8365 (REG_CLASS_FROM_CONSTRAINT): Delete.
8366
c95f9494
JJ
83672011-02-15 Jakub Jelinek <jakub@redhat.com>
8368
8369 PR middle-end/47581
8370 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8371 if frame size is 0 in a leaf function.
8372
13aed611
RO
83732011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8374
8375 PR pch/14940
8376 * config/alpha/host-osf.c: New file.
8377 * config/alpha/x-osf: New file.
8378 * config.host (alpha*-dec-osf*): Use it.
8379
b09c3081
AS
83802011-02-14 Anatoly Sokolov <aesok@post.ru>
8381
8382 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8383 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8384 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8385 (rx_mode_dependent_address_p): ...this. Make static. Change argument
8386 type to const_rtx.
8387 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8388
d634083b
NF
83892011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8390
8391 * config/stormy16/constraints.md: New file.
8392 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8393 Use satisfies_constraint_Q and satisfies_constraint_R.
8394 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8395 Delete.
8396 (xstormy16_legitiamte_address_p): Declare.
8397 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8398 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8399 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 8400 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
8401 Un-staticize.
8402 (xstormy16_extra_constraint_p): Delete.
8403
c7dd803e
EB
84042011-02-14 Eric Botcazou <ebotcazou@adacore.com>
8405
8406 PR tree-optimization/46494
8407 * loop-unroll.c (split_edge_and_insert): Adjust comment.
8408 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8409 (pass_rtl_loop_done): Add TODO_verify_flow.
8410 * fwprop.c (pass_rtl_fwprop): Likewise.
8411 * modulo-sched.c (pass_sms): Likewise.
8412 * tree-ssa-dom.c (pass_dominator): Likewise.
8413 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8414 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8415 (pass_tree_loop_done): Likewise.
8416 * tree-ssa-pre.c (execute_pre): Likewise.
8417 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8418 * tree-ssa-sink.c (pass_sink_code): Likewise.
8419 * tree-vrp.c (pass_vrp): Likewise.
8420
c6150df6
NF
84212011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8422
c7dd803e
EB
8423 * config/v850/constraints.md: New file.
8424 * config/v850/v850.md: Include it.
8425 * config/v850/predicates.md (reg_or_0_operand): Use
8426 satisfies_constraint_G.
8427 (special_symbolref_operand): Use satisfies_constraint_K.
8428 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8429 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8430 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8431 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8432 (EXTRA_CONSTRAINT): Delete.
8433 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8434 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8435 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 8436
30dd1ea3
AS
84372011-02-14 Anatoly Sokolov <aesok@post.ru>
8438
8439 PR target/47696
8440 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8441 description.
8442
944f4bb3
NF
84432011-02-14 Nathan Froyd <froydnj@codesourcery.com>
8444
8445 * config/mcore/constraints.md: New file.
8446 * config/mcore/mcore.md: Include it.
8447 * config/mcore/mcore.c (reg_class_from_letter): Delete.
8448 * config/mcore/mcore.h (reg_class_from_letter): Delete.
8449 (REG_CLASS_FROM_LETTER): Delete.
8450 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8451 insn_const_int_ok_for_constraint.
8452 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8453 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8454 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8455 (EXTRA_CONSTRAINT): Delete.
8456
ad56a54c
RO
84572011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8458
8459 PR ada/41929
8460 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8461 (IS_SIGHANDLER): Define.
8462 (sparc64_is_sighandler): New function, split off from
8463 sparc64_fallback_frame_state.
8464 (sparc_is_sighandler): New function, split off from
8465 sparc_fallback_frame_state.
8466 (sparc64_fallback_frame_state): Merge with ...
8467 (sparc_fallback_frame_state): ... this into ...
8468 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
8469 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
8470 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
8471 stack instead of hardcoded offsets.
ad56a54c 8472
fbf4bfd3 84732011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
8474
8475 PR target/45808
8476 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8477
029c8f3e
RW
84782011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8479
8480 * configure: Regenerate.
8481
a016dc83
JM
84822011-02-12 Joseph Myers <joseph@codesourcery.com>
8483
8484 PR driver/45731
8485 * gcc.c (asm_options): Correct spec matching --target-help.
8486
8957a0ec
MJ
84872011-02-12 Martin Jambor <mjambor@suse.cz>
8488
8489 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8490 to gimple call error.
8491
6ef828bc
MS
84922011-02-12 Mike Stump <mikestump@comcast.net>
8493
8494 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8495 comments in backslash regions.
8496
a4015be5
MS
84972011-02-12 Mike Stump <mikestump@comcast.net>
8498 Jakub Jelinek <jakub@redhat.com>
8499 Iain Sandoe <iains@gcc.gnu.org>
8500
8501 PR target/47324
8502 * dwarf2out.c (output_cfa_loc): When required, apply the
8503 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8504 (output_loc_sequence): Likewise.
8505 (output_loc_operands_raw): Likewise.
8506 (output_loc_sequence_raw): Likewise.
8507 (output_cfa_loc): Likewise.
8508 (output_loc_list): Suppress register number adjustment when
8509 calling output_loc_sequence()
8510 (output_die): Likewise.
8511
5378dda2
AS
85122011-02-12 Anatoly Sokolov <aesok@post.ru>
8513
8514 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8515 Remove macros.
8516 * config/xtensa/xtensa.c (xtensa_register_move_cost,
8517 xtensa_memory_move_cost): New functions.
8518 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8519
f3d533d3
AO
85202011-02-12 Alexandre Oliva <aoliva@redhat.com>
8521
8522 PR lto/47225
8523 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8524 in the current directory.
8525 * configure: Rebuilt.
8526
9d53403c
IS
85272011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8528
8529 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 8530 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
8531 correct indents of the preceding block.
8532
a350a6c8
IS
85332011-02-12 Iain Sandoe <iains@gcc.gnu.org>
8534
8535 * gcc.c (driver_handle_option): Concatenate the argument to -F with
8536 the switch.
8537
bab79a40
JM
85382011-02-11 Joseph Myers <joseph@codesourcery.com>
8539
8540 * common.opt (nostartfiles): New Driver option.
8541
1bbc6693
XDL
85422011-02-11 Xinliang David Li <davidxl@google.com>
8543
8544 PR tree-optimization/47707
8545 * tree-chrec.c (convert_affine_scev): Keep type precision.
8546
1da7d8c0
EB
85472011-02-11 Eric Botcazou <ebotcazou@adacore.com>
8548
8549 PR tree-optimization/47420
8550 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8551
85522011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
8553
8554 PR rtl-optimization/47614
8555 * rtl.h (check_for_inc_dec): Declare.
8556 * dse.c (check_for_inc_dec): Externalize...
8557 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8558 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8559
4df47bca
JM
85602011-02-11 Joseph Myers <joseph@codesourcery.com>
8561
8562 PR driver/47678
8563 * gcc.c (main): Do not compile inputs if there were errors in
8564 option handling.
8565 * opts-common.c (read_cmdline_option): Check for wrong language
8566 after other error checks.
8567
61502ca8
NF
85682011-02-11 Nathan Froyd <froydnj@codesourcery.com>
8569
8570 * cgraph.c: Fix comment typos.
8571 * cgraph.h: Likewise.
8572 * cgraphunit.c: Likewise.
8573 * ipa-cp.c: Likewise.
8574 * ipa-inline.c: Likewise.
8575 * ipa-prop.c: Likewise.
8576 * ipa-pure-const.c: Likewise.
8577 * ipa-ref.c: Likewise.
8578 * ipa-reference.c: Likewise.
8579
b63f974e
JJ
85802011-02-11 Jakub Jelinek <jakub@redhat.com>
8581
d50c5e0c
JJ
8582 PR debug/47684
8583 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 8584
6dd2a13c
RO
85852011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8586
8587 PR testsuite/47400
8588 * doc/sourcebuild.texi (Require Support): Document
8589 dg-require-ascii-locale.
8590
4a087ccf
MX
85912011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
8592
8593 * doc/lto.texi (Write summary): Fix missing parentheses.
8594
a4403164
DD
85952011-02-10 DJ Delorie <dj@redhat.com>
8596
8597 * config/m32c/m32c.c (m32c_option_override): Disable
8598 -fcombine-stack-adjustments until flag value tracking and compare
8599 optimization can be rewritten.
8600
4fac45bd
PB
86012011-02-10 Peter Bergner <bergner@vnet.ibm.com>
8602
8603 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8604 PROCESSOR_POWER7.
8605 (PROCESSOR_DEFAULT64): Likewise.
8606
72602cd1
RH
86072011-02-10 Richard Henderson <rth@redhat.com>
8608
8609 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8610 change from 2011-02-03.
8611 * config/rx/rx.c (flags_from_code): Likewise.
8612 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8613 is valid, n/pz otherwise.
8614 (rx_select_cc_mode): Return CCmode if Y is not zero.
8615
ea57f573
RG
86162011-02-10 Richard Guenther <rguenther@suse.de>
8617
ea4c3e65 8618 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 8619
92b1d23b
RG
86202011-02-10 Richard Guenther <rguenther@suse.de>
8621
8622 PR tree-optimization/47677
8623 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8624
525a2d06
JJ
86252011-02-10 Jakub Jelinek <jakub@redhat.com>
8626
8627 PR target/47665
8628 * combine.c (make_compound_operation): Only change shifts into
8629 multiplication for SCALAR_INT_MODE_P.
8630
06c969bd
JZ
86312011-02-10 Jie Zhang <jie@codesourcery.com>
8632
8633 PR testsuite/47622
8634 Revert
8635 2011-02-05 Jie Zhang <jie@codesourcery.com>
8636 PR debug/42631
8637 * web.c (entry_register): Don't clobber the number of the
8638 first uninitialized reference in used[].
8639
282ec48e
RG
86402011-02-09 Richard Guenther <rguenther@suse.de>
8641
8642 PR tree-optimization/47664
8643 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8644 all edges again.
8645
df98c3e8
DE
86462011-02-09 David Edelsohn <dje.gcc@gmail.com>
8647
d0f21cd6
DE
8648 PR target/46481
8649 PR target/47032
df98c3e8
DE
8650 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8651 PROCESSOR_POWER7.
8652 (PROCESSOR_DEFAULT64): Same.
8653 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8654
67b6839f
RO
86552011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8656
8657 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8658
4fd73214
MJ
86592011-02-09 Martin Jambor <mjambor@suse.cz>
8660
8661 PR middle-end/45505
8662 * tree-sra.c (struct access): New flags grp_scalar_read and
8663 grp_scalar_write. Changed description of assignment read and write
8664 flags.
8665 (dump_access): Dump new flags, reorder all of them.
8666 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8667 to detect multiple scalar reads.
8668 (analyze_access_subtree): Use the new scalar read write flags instead
8669 of the old flags. Adjusted comments.
8670
91140cd3
DD
86712011-02-08 DJ Delorie <dj@redhat.com>
8672
8673 PR target/47548
8674 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8675 patterns.
8676
4254bbfe
JM
86772011-02-08 Joseph Myers <joseph@codesourcery.com>
8678
8679 * config/m68k/uclinux.opt: New.
8680 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8681
f1fda84e
JM
86822011-02-08 Joseph Myers <joseph@codesourcery.com>
8683
8684 * config/cris/elf.opt (sim): New Driver option.
8685
4933ae74
JM
86862011-02-08 Joseph Myers <joseph@codesourcery.com>
8687
8688 * config/xtensa/elf.opt: New.
8689 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8690
4ad70280
JM
86912011-02-08 Joseph Myers <joseph@codesourcery.com>
8692
8693 * config/vax/elf.opt: New.
8694 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8695
20893707
JM
86962011-02-08 Joseph Myers <joseph@codesourcery.com>
8697
8698 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8699
b8e7038e
JM
87002011-02-08 Joseph Myers <joseph@codesourcery.com>
8701
8702 * config/gnu-user.opt: New.
8703 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8704 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8705 *-*-uclinux*): Use gnu-user.opt.
8706
e1c5225a
TS
87072011-02-08 Thomas Schwinge <thomas@schwinge.name>
8708
8709 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8710 * config/i386/gnu.h (CPP_SPEC): Likewise.
8711
5e46b0c6
ILT
87122011-02-08 Ian Lance Taylor <iant@google.com>
8713
8714 * common.opt (fcx-limited-range): Add SetByCombined flag.
8715 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8716 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8717 (fassociative-math, freciprocal-math): Likewise.
8718 (funsafe-math-optimizations): Likewise.
8719 * opth-gen.awk: Handle SetByCombined.
8720 * optc-gen.awk: Likewise.
ea4c3e65 8721 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
8722 (set_unsafe_math_optimizations_flags): Likewise.
8723 * doc/options.texi (Option properties): Document SetByCombined.
8724
32243d46
JM
87252011-02-08 Joseph Myers <joseph@codesourcery.com>
8726
8727 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8728 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8729 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8730 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8731 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8732
479c1fb3
SP
87332011-02-08 Sebastian Pop <sebastian.pop@amd.com>
8734
8735 PR tree-optimization/46834
8736 PR tree-optimization/46994
8737 PR tree-optimization/46995
8738 * graphite-sese-to-poly.c (used_outside_reduction): New.
8739 (detect_commutative_reduction): Call used_outside_reduction.
8740 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8741 translate_scalar_reduction_to_array only when at least one
8742 loop-phi/close-phi tuple has been detected.
8743
3865a06f
RG
87442011-02-08 Richard Guenther <rguenther@suse.de>
8745
8746 PR middle-end/47639
8747 * tree-vect-generic.c (expand_vector_operations_1): Update
8748 stmts here ...
8749 (expand_vector_operations): ... not here. Cleanup EH info
8750 and the CFG if required.
8751
62902f3f
RG
87522011-02-08 Richard Guenther <rguenther@suse.de>
8753
8754 PR tree-optimization/47641
8755 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8756 require type compatibility.
8757
0efb9d64
AK
87582011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8759
8760 * gimple-low.c (lower_function_body): Don't remove the location of
8761 the return statement here.
8762 (lower_gimple_return): Do it here instead but only if the return
8763 statement is actually used twice.
8764
034b8ae4
RG
87652011-02-08 Richard Guenther <rguenther@suse.de>
8766
8767 PR tree-optimization/47632
8768 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8769 unused up_to_stmt parameter, return whether cfg-cleanup is
8770 necessary, remove EH info properly.
8771 (forward_propagate_into_gimple_cond): Adjust caller.
8772 (forward_propagate_into_cond): Likewise.
8773 (forward_propagate_comparison): Likewise.
8774 (tree_ssa_forward_propagate_single_use_vars): Make
8775 forward_propagate_comparison case similar to the two others.
8776
298362c8
NC
87772011-02-08 Nick Clifton <nickc@redhat.com>
8778
8779 * config/mn10300/mn10300.opt (mliw): New command line option.
8780 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8781 (liw_bundling): New automaton.
8782 (liw): New attribute.
8783 (liw_op): New attribute.
8784 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8785 (movsi_internal): Add LIW attributes.
8786 (andsi3): Likewise.
8787 (iorsi3): Likewise.
8788 (xorsi3): Likewise.
8789 (addsi3): Separate register and immediate alternatives.
8790 Add LIW attributes.
8791 (subsi3): Likewise.
8792 (cmpsi): Likewise.
8793 (aslsi3): Likewise.
8794 (lshrsi3): Likewise.
8795 (ashrsi3): Likewise.
8796 (liw): New pattern.
8797 * config/mn10300/mn10300.c (liw_op_names): New
8798 (mn10300_print_operand): Handle 'W' operand descriptor.
8799 (extract_bundle): New function.
8800 (check_liw_constraints): New function.
8801 (liw_candidate): New function.
8802 (mn10300_bundle_liw): New function.
8803 (mn10300_reorg): New function.
8804 (TARGET_MACHINE_DEPENDENT_REORG): Define.
8805 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8806 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8807 __LIW__ or __NO_LIW__.
8808 * doc/invoke.texi: Describe the -mliw command line option.
8809
90488014
JDA
88102011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8811
8812 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8813 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8814 pthread_mutex_unlock): Remove.
8815 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8816 * config/pa/t-pa64: Likewise.
8817 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8818 shared libc if not linking against libpthread.
8819 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8820
689ff841
IS
88212011-02-07 Iain Sandoe <iains@gcc.gnu.org>
8822
8823 PR target/47558
8824 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8825 on 10.6 and later to ensure that we always use the unwinder from
8826 the system. Only add -no_compact_unwind when tarteting darwin
8827 10.6 or later.
8828
821014aa
SE
88292011-02-07 Steve Ellcey <sje@cup.hp.com>
8830
8831 PR target/46997
8832 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8833 (vec_interleave_lowv2sf): Ditto.
8834 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8835 (vec_extract_oddv2sf): Ditto.
8836
41cf94fb
MS
88372011-02-07 Mike Stump <mikestump@comcast.net>
8838
62dea57d 8839 PR target/42333
41cf94fb
MS
8840 Add __ieee_divdc3 entry point.
8841 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8842 entry point.
8843 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8844 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8845 * config/darwin.c (darwin_rename_builtins): Add.
8846 * config/darwin-protos.h (darwin_rename_builtins): Add.
8847
ee09a3dd
MM
88482011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8849
8850 PR target/47636
8851 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8852 for the condition.
8853
83296cd0
MS
88542011-02-07 Mike Stump <mikestump@comcast.net>
8855
ea4c3e65 8856 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 8857
0f4e946f
DC
88582011-02-07 Denis Chertykov <chertykov@gmail.com>
8859
8860 PR target/47534
8861 * config/avr/libgcc.S (exit): Move .endfunc
8862
1ec87690
RG
88632011-02-07 Richard Guenther <rguenther@suse.de>
8864
8865 PR tree-optimization/47615
8866 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8867 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8868 (run_scc_vn): Initialize it.
8869 (visit_reference_op_load): Use it.
8870 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8871
b46ae6da
UW
88722011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8873
8874 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8875 DImode trapping arithmetic libfuncs.
8876
c0aae19c
RG
88772011-02-07 Richard Guenther <rguenther@suse.de>
8878
8879 PR tree-optimization/47621
8880 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8881 two duplicates ...
8882 (execute_update_addresses_taken): ... here. Make it more
8883 conservative in what we accept.
8884
295d926b
JM
88852011-02-06 Joseph Myers <joseph@codesourcery.com>
8886
8887 * config/sparc/freebsd.h (ASM_SPEC): Define.
8888 * config/sparc/vxworks.h (ASM_SPEC): Define.
8889
bdeb2471
JM
88902011-02-06 Joseph Myers <joseph@codesourcery.com>
8891
8892 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8893
d5d3781a
SB
88942011-02-06 Steven Bosscher <steven@gcc.gnu.org>
8895
8896 * doc/invoke.texi: Remove reference to compiler internals from
8897 user documentation.
8898
8899 * reg-notes.def: Remove REG_VALUE_PROFILE.
8900 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8901
c42c09fc
JJ
89022011-02-05 Jakub Jelinek <jakub@redhat.com>
8903
8904 PR middle-end/47610
8905 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 8906 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 8907
beea2755
JZ
89082011-02-05 Jie Zhang <jie@codesourcery.com>
8909
8910 PR debug/42631
8911 * web.c (entry_register): Don't clobber the number of the
8912 first uninitialized reference in used[].
8913
a130584a
SP
89142011-02-04 Sebastian Pop <sebastian.pop@amd.com>
8915
8916 PR tree-optimization/46194
8917 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8918 (build_classic_dist_vector_1): Do not represent classic distance
8919 vectors when the access functions are variating in different loops.
8920
962101ac
JM
89212011-02-04 Joseph Myers <joseph@codesourcery.com>
8922
8923 * config/mips/iris6.opt: New.
8924 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8925
55eaaa5b
RH
89262011-02-04 Richard Henderson <rth@redhat.com>
8927 Steve Ellcey <sje@cup.hp.com>
8928
8929 PR target/46997
8930 * config/ia64/predicates.md (mux1_brcst_element): New.
8931 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8932 * config/ia64/ia64.c (ia64_unpack_assemble): New.
8933 (ia64_unpack_sign): New.
8934 (ia64_expand_unpack): Rewrite using new routines.
8935 (ia64_expand_widen_sum): Ditto.
8936 (ia64_expand_dot_prod_v8qi): Ditto.
8937 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8938 routines, add endian check.
8939 (pmpy2_even): Rename from pmpy2_r, add endian check.
8940 (pmpy2_odd): Rename from pmpy2_l, add endian check.
8941 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8942 (vec_widen_smult_hi_v4hi): Ditto.
8943 (vec_widen_umult_lo_v4hi): Ditto.
8944 (vec_widen_umult_hi_v4hi): Ditto.
8945 (mulv2si3): Change endian checks.
8946 (sdot_prodv4hi): Rewrite with new calls.
8947 (udot_prodv4hi): New.
8948 (vec_pack_ssat_v4hi): Add endian check.
8949 (vec_pack_usat_v4hi): Ditto.
8950 (vec_pack_ssat_v2si): Ditto.
8951 (max1_even): Rename from max1_r, add endian check.
8952 (max1_odd): Rename from max1_l, add endian check.
8953 (*mux1_rev): Format change.
8954 (*mux1_mix): Ditto.
8955 (*mux1_shuf): Ditto.
8956 (*mux1_alt): Ditto.
8957 (*mux1_brcst_v8qi): Use new predicate.
8958 (vec_extract_evenv8qi): Remove endian check.
8959 (vec_extract_oddv8qi): Ditto.
8960 (vec_interleave_lowv4hi): Format change.
8961 (vec_interleave_highv4hi): Ditto.
8962 (mix2_even): Rename from mix2_r, add endian check.
8963 (mix2_odd): Rename from mux2_l, add endian check.
8964 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8965 (vec_extract_evenodd_helper): Format change.
8966 (vec_extract_evenv4hi): Remove endian check.
8967 (vec_extract_oddv4hi): Remove endian check.
8968 (vec_interleave_lowv2si): Format change.
8969 (vec_interleave_highv2si): Format change.
8970 (vec_initv2si): Remove endian check.
8971 (vecinit_v2si): Add endian check.
8972 (reduc_splus_v2sf): Add endian check.
8973 (reduc_smax_v2sf): Ditto.
8974 (reduc_smin_v2sf): Ditto.
8975 (vec_initv2sf): Remove endian check.
8976 (fpack): Add endian check.
8977 (fswap): Add endian check.
8978 (vec_interleave_highv2sf): Add endian check.
8979 (vec_interleave_lowv2sf): Add endian check.
8980 (fmix_lr): Add endian check.
8981 (vec_setv2sf): Format change.
8982 (*vec_extractv2sf_0_be): Use shift to extract operand.
8983 (*vec_extractv2sf_1_be): New.
8984 (vec_pack_trunc_v4hi): Add endian check.
8985 (vec_pack_trunc_v2si): Format change.
8986
dcde5957
JJ
89872011-02-04 Jakub Jelinek <jakub@redhat.com>
8988
8989 PR inline-asm/23200
8990 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 8991 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
8992 (stmt_is_replaceable_p): New function.
8993 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8994 callers.
8995 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8996 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8997 SSA_NAME_DEF_STMT.
8998 * tree-flow.h (stmt_is_replaceable_p): New prototype.
8999
a64a8e5a
JM
90002011-02-04 Joseph Myers <joseph@codesourcery.com>
9001
9002 * config/rs6000/xilinx.opt: New.
9003 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
9004
4da2ed2f
JM
90052011-02-04 Joseph Myers <joseph@codesourcery.com>
9006
9007 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
9008
a6e508f9
AS
90092011-02-03 Anatoly Sokolov <aesok@post.ru>
9010
9011 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
9012 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9013 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
9014 secondary_reload_info, xtensa_secondary_reload): Remove.
9015 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
9016 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9017 (xtensa_preferred_reload_class): Make static. Change return and
9018 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
9019 Use CONST_DOUBLE_P predicate.
9020 (xtensa_preferred_output_reload_class): New function.
9021 (xtensa_secondary_reload): Make static.
9022
82dc0de3
JM
90232011-02-03 Joseph Myers <joseph@codesourcery.com>
9024
9025 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
9026 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
9027 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
9028
7fece979
JJ
90292011-02-03 Jakub Jelinek <jakub@redhat.com>
9030
9031 PR middle-end/31490
9032 * output.h (SECTION_RELRO): Define.
9033 (SECTION_MACH_DEP): Adjust.
9034 (get_variable_section): New prototype.
9035 * varpool.c (varpool_finalize_named_section_flags): New function.
9036 (varpool_assemble_pending_decls): Call it.
9037 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
9038 * cgraphunit.c (cgraph_output_in_order): Call
9039 varpool_finalize_named_section_flags.
9040 * varasm.c (get_section): Allow section flags conflicts between
9041 relro and read-only sections if the section hasn't been declared yet.
9042 Set SECTION_OVERRIDE after diagnosing section type conflict.
9043 (get_variable_section): No longer static.
9044 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
9045 readonly sections that need relocations.
9046 (decl_readonly_section_1): New function.
9047 (decl_readonly_section): Use it.
9048
9049 Revert:
509d65dd 9050 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
9051 Steve Ellcey <sje@cup.hp.com>
9052
9053 PR middle-end/31490
9054 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
9055 if section attribute used.
9056
d18d5478
JJ
90572011-02-03 Jakub Jelinek <jakub@redhat.com>
9058
9059 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
9060 * config/darwin.c (SECTION_NO_ANCHOR): Define.
9061 (darwin_init_sections): Remove assertion.
9062
6479ed4b
NC
90632011-02-03 Nick Clifton <nickc@redhat.com>
9064
9065 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
9066 lt and ge.
38be4072 9067 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
9068 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
9069 instead of "n" and "pz".
9070 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
9071 CC_FLAG_S.
9072
89843f5d
JJ
90732011-02-03 Jakub Jelinek <jakub@redhat.com>
9074
65450d64
JJ
9075 PR target/47312
9076 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
9077 fma, expand FMA_EXPR as fma{,f,l} call.
9078
7d58701c
JJ
9079 PR lto/47274
9080 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
9081 copy them into a unsigned char variable and pass address of it to
9082 lto_output_data_stream.
9083
89843f5d
JJ
9084 PR target/47564
9085 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
9086 around backend_init_target and lang_dependent_init_target calls.
9087 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
9088 (verify_cgraph_node): Don't call set_cfun here. Use
9089 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
9090 Set error_found for incorrectly represented calls to thunks.
9091
4deef538
AO
90922011-02-03 Alexandre Oliva <aoliva@redhat.com>
9093
9094 PR debug/43092
9095 PR rtl-optimization/43494
9096 * rtl.h (for_each_inc_dec_fn): New type.
9097 (for_each_inc_dec): Declare.
9098 * rtlanal.c (struct for_each_inc_dec_ops): New type.
9099 (for_each_inc_dec_find_inc_dec): New fn.
9100 (for_each_inc_dec_find_mem): New fn.
9101 (for_each_inc_dec): New fn.
9102 * dse.c (struct insn_size): Remove.
9103 (replace_inc_dec, replace_inc_dec_mem): Remove.
9104 (emit_inc_dec_insn_before): New fn.
9105 (check_for_inc_dec): Use it, along with for_each_inc_dec.
9106 (canon_address): Pass mem modes to cselib_lookup.
9107 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
9108 (cselib_lookup_from_insn): Likewise.
9109 (cselib_subst_to_values): Likewise.
9110 * cselib.c (find_slot_memmode): New var.
9111 (cselib_find_slot): New fn. Use it instead of
9112 htab_find_slot_with_hash everywhere.
9113 (entry_and_rtx_equal_p): Use find_slot_memmode.
9114 (autoinc_split): New fn.
9115 (rtx_equal_for_cselib_p): Rename and implement in terms of...
9116 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
9117 Deal with autoinc. Special-case recursion into MEMs.
9118 (cselib_hash_rtx): Likewise.
9119 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
9120 address and MEM modes.
9121 (cselib_subst_to_values): Add memmode, pass it on.
9122 Deal with autoinc.
9123 (cselib_lookup): Add memmode argument, pass it on.
9124 (cselib_lookup_from_insn): Add memmode.
9125 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9126 (struct cselib_record_autoinc_data): New.
9127 (cselib_record_autoinc_cb): New fn.
9128 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
9129 mode to cselib_lookup. Reset autoinced REGs here instead of...
9130 (cselib_process_insn): ... here.
9131 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9132 to cselib_lookup.
9133 (add_uses): Likewise, also to cselib_subst_to_values.
9134 (add_stores): Likewise.
9135 * sched-deps.c (add_insn_mem_dependence): Pass mode to
9136 cselib_subst_to_values.
9137 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
9138 * gcse.c (do_local_cprop): Adjusted.
9139 * postreload.c (reload_cse_simplify_set): Adjusted.
9140 (reload_cse_simplify_operands): Adjusted.
9141 * sel-sched-dump (debug_mem_addr_value): Pass mode.
9142
1551d44a
AO
91432011-02-03 Alexandre Oliva <aoliva@redhat.com>
9144
9145 PR tree-optimization/45122
9146 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9147 unsafe assumptions when there's more than one loop exit.
9148
c9485473
MM
91492011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9150
9151 PR target/47272
9152 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9153 Document using vector double with the load/store builtins, and
9154 that the load/store builtins always use Altivec instructions.
9155
9156 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9157 to use altivec memory instructions, even on VSX.
9158 (vector_altivec_store_<mode>): Ditto.
9159
9160 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9161 function.
9162
9163 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9164 V2DF, V2DI support to load/store overloaded builtins.
9165
9166 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9167 altivec load/store builtins for V2DF/V2DI types.
9168
9169 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9170 set avoid indexed addresses on power6 if -maltivec.
9171 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9172 vector_altivec_load/vector_altivec_store builtins.
9173 (altivec_expand_st_builtin): Ditto.
9174 (altivec_expand_builtin): Add VSX memory builtins.
9175 (rs6000_init_builtins): Add V2DI types to internal types.
9176 (altivec_init_builtins): Add support for V2DF/V2DI altivec
9177 load/store builtins.
9178 (rs6000_address_for_altivec): Insure memory address is appropriate
9179 for Altivec.
9180
9181 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9182 vec_vsx_ld and vec_vsx_st.
9183 (vsx_store_<mode>): Ditto.
9184
9185 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9186 variables to hold long long types for VSX vector memory builtins.
9187 (RS6000_BTI_unsigned_long_long): Ditto.
9188 (long_long_integer_type_internal_node): Ditti.
9189 (long_long_unsigned_type_internal_node): Ditti.
9190
9191 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9192 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9193 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9194
9195 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9196 short cuts.
9197 (vec_vsx_st): Ditto.
9198
b24d1acf
JM
91992011-02-02 Joseph Myers <joseph@codesourcery.com>
9200
9201 * config/pa/pa-hpux10.opt: New.
9202 * config/hpux11.opt (pthread): New Driver option.
9203 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9204 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9205
aa18dd0f
JM
92062011-02-02 Joseph Myers <joseph@codesourcery.com>
9207
9208 * config/ia64/vms.opt: New.
9209 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9210
28fc3eee
MM
92112011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9212
9213 PR target/47580
9214 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9215 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9216 generator functions.
9217 (vsx_floatuns<VSi><mode>2): Ditto.
9218 (vsx_fix_trunc<mode><VSi>2): Ditto.
9219 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9220
b5838b1f
JM
92212011-02-02 Joseph Myers <joseph@codesourcery.com>
9222
9223 * config/i386/djgpp.opt (posix): New Driver option.
9224
0db8fa89
GP
92252011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
9226
9227 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9228 Move to the unsupported targets list.
9229
9cd4f22a
PB
92302011-02-02 Peter Bergner <bergner@vnet.ibm.com>
9231
9232 PR rtl-optimization/47525
9233 * df-scan.c: Update copyright years.
9234 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9235 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9236
9ed8059c
RO
92372011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9238
9239 * config/i386/sysv4.h (TARGET_VERSION): Remove.
9240 (SUBTARGET_RETURN_IN_MEMORY): Remove.
9241 (ASM_OUTPUT_ASCII): Remove.
9242 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9243
2a737389
JL
92442011-02-02 Jeff Law <law@redhat.com>
9245
9246 PR middle-end/47543
9247 * reload.c (find_reloads_address): Handle reg+d address where both
9248 components are invalid by reloading the entire address.
9249
9dac82c4
SP
92502011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9251 Richard Guenther <rguenther@suse.de>
9252
9253 PR tree-optimization/40979
9254 PR bootstrap/47044
9255 * passes.c (init_optimization_passes): After LIM call copy_prop
9256 and DCE to clean up.
9257 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9258
14dd9aab
SP
92592011-02-02 Sebastian Pop <sebastian.pop@amd.com>
9260
9261 PR tree-optimization/47576
9262 PR tree-optimization/47555
9263 * doc/invoke.texi (scev-max-expr-complexity): Documented.
9264 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9265 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9266 * tree-scalar-evolution.c (follow_ssa_edge): Use
9267 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9268
5cbf5c20
RG
92692011-02-02 Richard Guenther <rguenther@suse.de>
9270
9271 PR tree-optimization/47566
9272 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9273
83d70792
AO
92742011-02-02 Alexandre Oliva <aoliva@redhat.com>
9275
e829c321
AO
9276 PR debug/47106
9277 PR debug/47402
9278 * tree-inline.c (declare_return_variable): Remove unused caller
9279 variable.
9280
83d70792
AO
9281 PR debug/47106
9282 PR debug/47402
9283 * tree-flow-inline.h (clear_is_used, is_used_p): New.
9284 * cfgexpand.c (account_used_vars_for_block): Use them.
9285 * tree-nrv.c (tree_nrv): Likewise.
9286 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9287 (dump_scope_block): Likewise.
9288 (remove_unused_locals): Likewise.
9289
aaa2ac93
AO
9290 PR debug/47106
9291 PR debug/47402
9292 * tree-inline.c (declare_return_variable): Add result decl to
9293 local decls only once.
9294 * gimple-low.c (record_vars_into): Mark newly-created variables
9295 as referenced.
9296
a59d15cf
AO
92972011-02-02 Alexandre Oliva <aoliva@redhat.com>
9298
9299 PR debug/47498
9300 PR debug/47501
9301 PR debug/45136
9302 PR debug/45130
9303 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9304 debug insns.
9305 (no_real_insns_p, schedule_block, set_priorities): Drop special
9306 treatment of boundary debug insns.
38be4072 9307 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
9308 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9309 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9310 (BOUNDARY_DEBUG_INSN_P): Likewise.
9311 (SCHEDULE_DEBUG_INSN_P): Likewise.
9312 * sched-rgn.c (init_ready_list): Drop special treatment of
9313 boundary debug insns.
9314 * final.c (rest_of_clean_state): Clear notes' BB.
9315
6fc2f091
JM
93162011-02-01 Joseph Myers <joseph@codesourcery.com>
9317
9318 * config/openbsd.opt (assert=): New Driver option.
9319
fc523387
JM
93202011-02-01 Joseph Myers <joseph@codesourcery.com>
9321
9322 * config/i386/nto.opt: New.
9323 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9324
6d9821e5
JM
93252011-02-01 Joseph Myers <joseph@codesourcery.com>
9326
9327 * config/i386/netware.opt: New.
9328 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9329
cef932d4
JM
93302011-02-01 Joseph Myers <joseph@codesourcery.com>
9331
9332 * config/interix.opt (posix): New Driver option.
9333
22843acd
DD
93342011-02-01 DJ Delorie <dj@redhat.com>
9335
56490b74
DD
9336 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9337
22843acd
DD
9338 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9339 class for A0/A1.
9340
199c8f2f
SP
93412011-02-01 Sebastian Pop <sebastian.pop@amd.com>
9342
9343 PR tree-optimization/47561
9344 * toplev.c (process_options): Print the Graphite flags. Add
9345 flag_loop_flatten to the list of options requiring Graphite.
9346
926bcf22
JM
93472011-02-01 Joseph Myers <joseph@codesourcery.com>
9348
9349 * config/i386/cygming.opt (posix): New Driver option.
9350
59793c51
JM
93512011-02-01 Joseph Myers <joseph@codesourcery.com>
9352
9353 * config/arm/vxworks.opt: New.
9354 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9355
183c38a4
JM
93562011-02-01 Joseph Myers <joseph@codesourcery.com>
9357
9358 * config/alpha/elf.opt: New.
9359 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9360 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9361
9939e416
RG
93622011-02-01 Richard Guenther <rguenther@suse.de>
9363
9364 PR tree-optimization/47559
9365 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9366 store-motion on references that can throw.
9367
4a3c9687
BS
93682011-02-01 Bernd Schmidt <bernds@codesourcery.com>
9369
9370 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9371 * tree-pass.h (TDF_CSELIB): New macro.
9372 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9373 cselib_lookup): Check for it rather than for TDF_DETAILS.
9374
dd3b31fb
L
93752011-02-01 H.J. Lu <hongjiu.lu@intel.com>
9376
9377 PR driver/47547
9378 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9379 is HOST_BIT_BUCKET.
9380
9381 * opts.c (finish_options): Don't add x_aux_base_name if it is
9382 HOST_BIT_BUCKET.
9383
34c1de79
RG
93842011-02-01 Richard Guenther <rguenther@suse.de>
9385
9386 PR tree-optimization/47555
9387 Revert
9388 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
9389
9390 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9391
dd2804d2
SB
93922011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
9393
9394 PR gcc/46692
9395 * config/lm32/t-lm32: Add multilib for all CPU options.
9396
3fd3b156
RG
93972011-02-01 Richard Guenther <rguenther@suse.de>
9398
9399 PR tree-optimization/47541
9400 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9401 sure to have a field at offset zero.
9402
f16072b6
JM
94032011-01-31 Joseph Myers <joseph@codesourcery.com>
9404
9405 * config/arc/arc.opt (EB, EL): New Driver options.
9406
6456cf2e
JM
94072011-01-31 Joseph Myers <joseph@codesourcery.com>
9408
9409 * config/alpha/osf5.opt: New.
9410 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9411
cdde6ab4
JM
94122011-01-31 Joseph Myers <joseph@codesourcery.com>
9413
9414 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9415
7633415c
SP
94162011-01-31 Sebastian Pop <sebastian.pop@amd.com>
9417
9418 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9419 -floop-interchange.
9420 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9421 is an alias of -floop-interchange and that it requires the
9422 Graphite infrastructure.
9423 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9424 flag_loop_interchange based on the value of flag_tree_loop_linear.
9425
0425d6f5
JJ
94262011-01-31 Jakub Jelinek <jakub@redhat.com>
9427 Richard Guenther <rguenther@suse.de>
9428
9429 PR tree-optimization/47538
9430 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9431 type instead of r1type, except for comparisons. For right
9432 shifts and comparisons punt if there are mismatches in
9433 sizetype vs. non-sizetype types.
9434
500b16c3
RO
94352011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9436
9437 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9438 avx_runtime.
9439
e279edb0
RO
94402011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9441
9442 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9443 version number.
9444 * configure: Regenerate.
9445
c6092243
RO
94462011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9447
9448 * configure.ac (gcc_cv_ld_static_option): Define.
9449 (gcc_cv_ld_dynamic_option): Define.
9450 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9451 instead.
9452 (HAVE_LD_STATIC_DYNAMIC): Update message.
9453 (LD_STATIC_OPTION): Define.
9454 (LD_DYNAMIC_OPTION): Define.
9455 * configure: Regenerate.
9456 * config.in: Regenerate.
9457 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9458 HAVE_LD_STATIC_DYNAMIC]: Use them.
9459
d7862be3
NC
94602011-01-31 Nick Clifton <nickc@redhat.com>
9461
9462 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9463 registers inside interrupt handlers if the handler is not a leaf
9464 function.
9465
ba4ec0e0
NC
94662011-01-31 Nick Clifton <nickc@redhat.com>
9467
9468 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9469 reg_renumber returning an INVALID_REGNUM.
9470
29a63921
AO
94712011-01-31 Alexandre Oliva <aoliva@redhat.com>
9472
9473 PR libgcj/44341
9474 * doc/install.texi: Document host options discarded when cross
9475 configuring target libraries.
9476
ef591d3f
AO
94772011-01-31 Alexandre Oliva <aoliva@redhat.com>
9478
9479 Reverted:
9480 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
9481 PR debug/45136
9482 PR debug/45130
9483 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9484 debug insns.
9485 (no_real_insns_p, schedule_block, set_priorities): Drop special
9486 treatment of boundary debug insns.
38be4072 9487 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
9488 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9489 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9490 (BOUNDARY_DEBUG_INSN_P): Likewise.
9491 (SCHEDULE_DEBUG_INSN_P): Likewise.
9492 * sched-rgn.c (init_ready_list): Drop special treatment of
9493 boundary debug insns.
9494 * final.c (rest_of_clean-state): Clear notes' BB.
9495
61052244
AM
94962011-01-31 Alan Modra <amodra@gmail.com>
9497
9498 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9499 toc relative expressions as we do in print_operand_address.
9500
c4c8962b
KH
95012011-01-30 Kazu Hirata <kazu@codesourcery.com>
9502
9503 * doc/extend.texi: Follow spelling conventions.
9504 * doc/invoke.texi: Fix a typo.
9505
e543b94c
JM
95062011-01-30 Joseph Myers <joseph@codesourcery.com>
9507
9508 * config/hpux11.opt: New.
9509 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9510 ia64*-*-hpux*): Use hpux11.opt.
9511
509d65dd 95122011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
9513
9514 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9515 to tmake_file.
9516
7be03a0e
GP
95172011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9518
9519 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9520 support sites.
9521
419d1d37
GP
95222011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
9523
b596ed64
GP
9524 * doc/install.texi (Binaries): Remove outdated reference for
9525 Motorola 68HC11/68HC12 downloads.
9526
95272011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 9528
419d1d37
GP
9529 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9530 Drepper's paper.
9531
4406d0e9
JW
95322011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
9533
9534 PR bootstrap/47147
9535 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9536 used by NetBSD.
9537
38be4072 95382011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
9539
9540 * value-prof.c (check_counter): Corrected error message.
9541
0cd98787
JZ
95422011-01-29 Jie Zhang <jie@codesourcery.com>
9543
9544 * config/arm/arm.c (arm_legitimize_reload_address): New.
9545 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9546 arm_legitimize_reload_address.
38be4072 9547 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 9548
9b798ac5
ILT
95492011-01-28 Ian Lance Taylor <iant@google.com>
9550
9551 * godump.c (go_define): Ignore macros whose definitions include
9552 two adjacent operands.
9553
591e29d9
JJ
95542011-01-28 Jakub Jelinek <jakub@redhat.com>
9555
9556 PR target/42894
9557 * varasm.c (force_const_mem): Store copy of x in desc->constant
9558 instead of x itself.
9559 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9560 itself into REG_EQUAL note.
9561
62dcc44a
JM
95622011-01-28 Joseph Myers <joseph@codesourcery.com>
9563
9564 * config/freebsd.opt (posix, rdynamic): New Driver options.
9565
c9f58b9a
RO
95662011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9567
9568 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9569 -Bstatic/-Bdynamic.
9570 * configure: Regenerate.
9571
5f02b9db
JM
95722011-01-27 Joseph Myers <joseph@codesourcery.com>
9573
9574 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9575 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9576
5df97412
AS
95772011-01-27 Anatoly Sokolov <aesok@post.ru>
9578
9579 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9580 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9581 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9582 (s390_preferred_reload_class): Make static. Change return and
9583 'rclass' argument type to reg_class_t.
9584
779d4b91
JH
95852011-01-27 Jan Hubicka <jh@suse.cz>
9586
9587 PR middle-end/46949
9588 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9589 (process_function_and_variable_attributes): Check defined weakrefs.
9590
e80b21ed
MJ
95912011-01-27 Martin Jambor <mjambor@suse.cz>
9592
9593 PR tree-optimization/47228
9594 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9595 build_ref_for_offset.
9596
6dcc4f31
UW
95972011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9598
9599 * config/spu/spu-elf.h (ASM_SPEC): Remove.
9600
509d65dd 96012011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
9602
9603 PR rtl-optimization/46856
9604 * postreload.c (reload_combine_recognize_const_pattern): Do not
9605 separate cc0 setter and user on cc0 targets.
9606
04af8788
NP
96072011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
9608
9609 PR c/43082
9610 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9611 passed a VOID_TYPE expression, immediately emit an error and
9612 return error_mark_node.
9613
f7a60085
JL
96142011-01-26 Jeff Law <law@redhat.com>
9615
9616 PR rtl-optimization/47464
9617 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9618 rather than may_trap_p as needed.
9619
5c2917ec
DD
96202011-01-26 DJ Delorie <dj@redhat.com>
9621
9622 PR rtl-optimization/46878
9623 * combine.c (insn_a_feeds_b): Check for the implicit cc0
9624 setter/user dependency as well.
9625
bef16e87
EB
96262011-01-26 Eric Botcazou <ebotcazou@adacore.com>
9627
9628 PR rtl-optimization/44469
9629 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9630 after removing trivially dead basic blocks.
9631
c75d884b
JM
96322011-01-26 Joseph Myers <joseph@codesourcery.com>
9633
9634 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9635 * config/frv/frv.h (LINK_SPEC): Likewise.
9636 * config/i386/netware.h (LINK_SPEC): Likewise.
9637 * config/m68k/linux.h (ASM_SPEC): Likewise.
9638 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9639 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9640 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9641 * config/sparc/linux.h (ASM_SPEC): Likewise.
9642 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9643 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9644
d3153553
JM
96452011-01-26 Joseph Myers <joseph@codesourcery.com>
9646
9647 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9648 * config/frv/frv.h (ASM_SPEC): Likewise.
9649 * config/m68k/linux.h (ASM_SPEC): Likewise.
9650 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9651 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9652 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9653 * config/sparc/linux.h (ASM_SPEC): Likewise.
9654 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9655 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9656
b89b1e9d
JM
96572011-01-26 Joseph Myers <joseph@codesourcery.com>
9658
9659 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9660 * config/frv/frv.h (LINK_SPEC): Likewise.
9661 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9662
12eb1a9c
JM
96632011-01-26 Joseph Myers <joseph@codesourcery.com>
9664
9665 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9666 * config/frv/frv.h (ASM_SPEC): Likewise.
9667 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9668 * config/m68k/linux.h (ASM_SPEC): Likewise.
9669 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9670 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9671 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9672 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9673 * config/sparc/linux.h (ASM_SPEC): Likewise.
9674 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9675 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9676 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9677
e435f098
SE
96782011-01-26 Steve Ellcey <sje@cup.hp.com>
9679
9680 PR target/46997
9681 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9682 (*mux2): Ditto.
9683 (vec_extract_evenodd_help): Ditto.
9684 (vec_extract_evenv4hi): Ditto.
9685 (vec_extract_oddv4hi): Ditto.
9686 (vec_interleave_lowv2si): Ditto.
9687 (vec_interleave_highv2si): Ditto.
9688 (vec_extract_evenv2si): Ditto.
9689 (vec_extract_oddv2si: Ditto.
9690 (vec_pack_trunc_v2si): Ditto.
9691
34f0eee0
JH
96922011-01-22 Jan Hubicka <jh@suse.cz>
9693
9694 PR target/47237
9695 * cgraph.h (cgraph_local_info): New field can_change_signature.
9696 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9697 signature can change.
9698 (ipcp_estimate_growth): Call sequence simplify only if calle signature
9699 can change.
9700 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9701 (cgraph_function_versioning): We can not change signature of functions
9702 that don't allow that.
9703 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9704 (lto_input_node): Likewise.
38be4072
UB
9705 * ipa-inline.c (compute_inline_parameters): Compute
9706 local.can_change_signature.
34f0eee0 9707 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
9708 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9709 functions that can not change signature.
34f0eee0 9710 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
9711 init_cumulative_args): Do not use local calling conventions
9712 for functions that can not change signature.
34f0eee0 9713
980ca891
JH
97142011-01-22 Jan Hubicka <jh@suse.cz>
9715
9716 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9717
768e3c60
RG
97182011-01-26 Richard Guenther <rguenther@suse.de>
9719
9720 PR tree-optimization/47190
61052244
AM
9721 * cgraphunit.c (process_common_attributes): New function.
9722 (process_function_and_variable_attributes): Use it.
768e3c60 9723
21d6a1c7
RG
97242011-01-26 Richard Guenther <rguenther@suse.de>
9725
9726 PR lto/47423
9727 * cgraphbuild.c (record_eh_tables): Record reference to personality
9728 function.
9729
48bb58b1
AO
97302011-01-26 Alexandre Oliva <aoliva@redhat.com>
9731
9732 PR debug/45454
9733 * sel-sched.c (moveup_expr): Don't let debug insns prevent
9734 non-debug insns from moving up.
9735
58c741a6
DK
97362011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9737
9738 PR target/40125
9739 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9740 t-dlldir{,-x} fragment for build and add it to tmake_file.
9741 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9742 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9743 * config/i386/t-dlldir: New file.
9744 (SHLIB_DLLDIR): Define.
9745 * config/i386/t-dlldir-x: New file.
9746 (SHLIB_DLLDIR): Define.
9747 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9748 (SHLIB_INSTALL): Use it.
9749
bff99262
CLT
97502011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
9751
9752 PR target/47246
9753 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9754 lower bound of the allowed Thumb-2 coprocessor load/store
9755 index range to -256. Add explaining comment.
9756
82c03907
ILT
97572011-01-25 Ian Lance Taylor <iant@google.com>
9758
9759 * godump.c (go_define): Improve lexing of macro expansion to only
9760 accept expressions which match Go spec.
9761
47ea1edf
DK
97622011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
9763
d4dba752 9764 PR c++/43601
47ea1edf
DK
9765 * tree.c (handle_dll_attribute): Handle it.
9766 * doc/extend.texi (@item dllexport): Mention it.
9767 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9768
744f0946
ILT
97692011-01-25 Ian Lance Taylor <iant@google.com>
9770
9771 PR tree-optimization/26854
9772 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9773 (decl_jump_unsafe): Move higher in file, with no other change.
9774 (bind): Set has_jump_unsafe_decl if appropriate.
9775 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9776 (check_earlier_gotos): Likewise.
9777 (c_check_switch_jump_warnings): Likewise.
9778
5734f2b3
JW
97792011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
9780
9781 * doc/invoke.texi (Warning Options): Add missing hyphen.
9782 (-fprofile-dir): Minor grammatical fixes.
9783 (-fbranch-probabilities): Likewise.
9784
9bdbdcef
AO
97852011-01-25 Alexandre Oliva <aoliva@redhat.com>
9786
9787 PR debug/45136
9788 PR debug/45130
9789 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9790 debug insns.
9791 (no_real_insns_p, schedule_block, set_priorities): Drop special
9792 treatment of boundary debug insns.
38be4072 9793 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
9794 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9795 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9796 (BOUNDARY_DEBUG_INSN_P): Likewise.
9797 (SCHEDULE_DEBUG_INSN_P): Likewise.
9798 * sched-rgn.c (init_ready_list): Drop special treatment of
9799 boundary debug insns.
9800 * final.c (rest_of_clean-state): Clear notes' BB.
9801
b305e3da
SP
98022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9803
9804 * Makefile.in (LAMBDA_H): Removed.
9805 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9806 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9807 lambda-trans.o, and tree-loop-linear.o.
9808 (lto-symtab.o): Remove dependence on LAMBDA_H.
9809 (tree-loop-linear.o): Remove rule.
9810 (lambda-mat.o): Same.
9811 (lambda-trans.o): Same.
9812 (lambda-code.o): Same.
9813 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9814 (tree-vect-slp.o): Same.
9815 * hwint.h (gcd): Moved here.
9816 (least_common_multiple): Same.
9817 * lambda-code.c: Removed.
9818 * lambda-mat.c: Removed.
9819 * lambda-trans.c: Removed.
9820 * lambda.h: Removed.
9821 * tree-loop-linear.c: Removed.
9822 * lto-symtab.c: Do not include lambda.h.
9823 * omega.c (gcd): Removed.
9824 * passes.c (init_optimization_passes): Remove pass_linear_transform.
9825 * tree-data-ref.c (print_lambda_vector): Moved here.
9826 (lambda_vector_copy): Same.
9827 (lambda_matrix_copy): Same.
9828 (lambda_matrix_id): Same.
9829 (lambda_vector_first_nz): Same.
9830 (lambda_matrix_row_add): Same.
9831 (lambda_matrix_row_exchange): Same.
9832 (lambda_vector_mult_const): Same.
9833 (lambda_vector_negate): Same.
9834 (lambda_matrix_row_negate): Same.
9835 (lambda_vector_equal): Same.
9836 (lambda_matrix_right_hermite): Same.
9837 * tree-data-ref.h: Do not include lambda.h.
9838 (lambda_vector): Moved here.
9839 (lambda_matrix): Same.
9840 (dependence_level): Same.
9841 (lambda_transform_legal_p): Removed declaration.
9842 (lambda_collect_parameters): Same.
9843 (lambda_compute_access_matrices): Same.
9844 (lambda_vector_gcd): Same.
9845 (lambda_vector_new): Same.
9846 (lambda_vector_clear): Same.
9847 (lambda_vector_lexico_pos): Same.
9848 (lambda_vector_zerop): Same.
9849 (lambda_matrix_new): Same.
9850 * tree-flow.h (least_common_multiple): Removed declaration.
9851 * tree-parloops.c (lambda_trans_matrix): Moved here.
9852 (LTM_MATRIX): Same.
9853 (LTM_ROWSIZE): Same.
9854 (LTM_COLSIZE): Same.
9855 (LTM_DENOMINATOR): Same.
9856 (lambda_trans_matrix_new): Same.
9857 (lambda_matrix_vector_mult): Same.
9858 (lambda_transform_legal_p): Same.
9859 * tree-pass.h (pass_linear_transform): Removed declaration.
9860 * tree-ssa-loop.c (tree_linear_transform): Removed.
9861 (gate_tree_linear_transform): Removed.
9862 (pass_linear_transform): Removed.
9863 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9864 flag_loop_interchange.
9865
6bdfdb96
JJ
98662011-01-25 Jakub Jelinek <jakub@redhat.com>
9867
9868 PR tree-optimization/47265
9869 PR tree-optimization/47443
9870 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9871 if name still has some uses.
9872
e4cba915
MJ
98732011-01-25 Martin Jambor <mjambor@suse.cz>
9874
9875 PR tree-optimization/47382
9876 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9877 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9878
509d65dd 98792011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
9880
9881 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9882 sjlj_except_unwind_info.
9883
194313e2
RG
98842011-01-25 Richard Guenther <rguenther@suse.de>
9885
9886 PR tree-optimization/47426
9887 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9888 visible functions results escape.
9889
147a0bcf
JJ
98902011-01-25 Jakub Jelinek <jakub@redhat.com>
9891
9892 PR target/45701
9893 * config/arm/arm.c (any_sibcall_uses_r3): New function.
9894 (arm_get_frame_offsets): Use it.
9895
db963b52
SP
98962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9897 Jakub Jelinek <jakub@redhat.com>
9898
9899 PR tree-optimization/47271
9900 * tree-if-conv.c (bb_postdominates_preds): New.
9901 (if_convertible_bb_p): Call bb_postdominates_preds.
9902 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9903 (predicate_scalar_phi): Call bb_postdominates_preds.
9904
bcddd3b9
NC
99052011-01-25 Nick Clifton <nickc@redhat.com>
9906
9907 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9908 * config/rx/rx.c (rx_function_value): Likewise.
9909 (rx_promote_function_mode): Likewise.
9910 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9911 in order to make it legitimate.
38be4072
UB
9912 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9913 make sure that the first operand is the same as the result register.
bcddd3b9
NC
9914 (addsi3_unspec): Delete.
9915 (subdi3): Do not accept immediate operands.
9916 (subdi3_internal): Likewise.
9917
7e6cb022
JL
99182011-01-25 Jeff Law <law@redhat.com>
9919
9920 PR rtl-optimization/37273
9921 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9922 handle them like argument loads from stack slots. Do not double
9923 count memory for memory constants and argument loads from stack slots.
9924
9ffa621e
JJ
99252011-01-25 Jakub Jelinek <jakub@redhat.com>
9926
9927 PR tree-optimization/47427
9928 PR tree-optimization/47428
9929 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9930 coalesce if the new root var would be TREE_READONLY.
9931
5bd6e652
RG
99322011-01-25 Richard Guenther <rguenther@suse.de>
9933
9934 PR middle-end/47414
9935 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9936 correct type for TBAA.
9937
7c48ea69
SP
99382011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9939
9940 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9941 (close_phi_written_to_memory): Call for_each_index with
9942 dr_indices_valid_in_loop.
9943
38013f25
SP
99442011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9945
9946 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9947 when it is initialized.
9948
5c640e29
SP
99492011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9950
9951 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9952 call to graphite_find_data_references_in_stmt.
9953 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9954 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
9955 call to graphite_find_data_references_in_stmt.
9956 (analyze_drs_in_stmts): Same.
9957 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9958 in which the scalar analysis of indices is performed.
9959 (create_data_ref): Same. Update call to dr_analyze_indices.
9960 (find_data_references_in_stmt): Update call to create_data_ref.
9961 (graphite_find_data_references_in_stmt): Same.
9962 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9963 declaration.
9964 (create_data_ref): Same.
9965 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9966 call to create_data_ref.
9967
ac53c069
SP
99682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9969
9970 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 9971 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 9972
3d17df15
SP
99732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9974
9975 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9976 VAR_DECL, PARM_DECL, and RESULT_DECL.
9977
c513da01
SP
99782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9979
9980 * graphite-dependences.c (reduction_dr_1): Allow several reductions
9981 in a reduction PBB.
9982 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9983 that have already been marked as PBB_IS_REDUCTION.
9984
3a292d59
SP
99852011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9986
9987 * graphite-scop-detection.c (same_close_phi_node): New.
9988 (remove_duplicate_close_phi): New.
9989 (make_close_phi_nodes_unique): New.
9990 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9991
ba858447
SP
99922011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9993
9994 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9995 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9996 of both data references to be the same.
9997
8d865c56
SP
99982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
9999
38be4072
UB
10000 * graphite-dependences.c (build_lexicographical_constraint): Remove
10001 the gdim parameter.
10002 (build_lexicographical_constraint): Adjust call to
10003 ppl_powerset_is_empty.
8d865c56
SP
10004 (dependence_polyhedron): Same.
10005 (graphite_legal_transform_dr): Same.
10006 (graphite_carried_dependence_level_k): Same.
38be4072
UB
10007 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
10008 parameter.
8d865c56
SP
10009 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
10010
50034a36
SP
100112011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10012
10013 * graphite-sese-to-poly.c
10014 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
10015 (close_phi_written_to_memory): New.
10016 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
10017 and unshare_expr.
10018
0deada9e
SP
100192011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10020
10021 * doc/install.texi: Update the expected version number of PPL to 0.11.
10022 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
10023 #if PPL_VERSION_MINOR < 11.
10024
d7d3d6af
SP
100252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10026
10027 * graphite-dependences.c: Include graphite-cloog-util.h.
10028 (new_poly_ddr): Inlined into dependence_polyhedron.
10029 (free_poly_ddr): Moved close by new_poly_ddr.
10030 (dependence_polyhedron_1): Renamed dependence_polyhedron.
10031 Early return NULL when ppl_powerset_is_empty returns true.
10032 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
10033 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10034 (graphite_legal_transform_dr): Call new_poly_ddr.
10035 (graphite_carried_dependence_level_k): Same.
10036 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
10037 (dot_transformed_deps_stmt_1): Removed.
10038 (dot_deps_stmt_1): Call dot_deps_stmt_2.
10039 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
10040 (dot_deps_1): Call dot_deps_2.
10041 * Makefile.in (graphite-dependences.o): Add missing dependence on
10042 graphite-cloog-util.h.
10043
28c5db57
SP
100442011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10045
10046 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
10047 (build_lexicographical_constraint): Same.
10048 (dependence_polyhedron_1): Same.
10049 (graphite_legal_transform_dr): Same.
10050 (graphite_carried_dependence_level_k): Same.
10051 * graphite-ppl.c (ppl_powerset_is_empty): New.
10052 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
10053 * tree-data-ref.c (dump_data_reference): Print the basic block index.
10054
5168d98f
SP
100552011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10056
10057 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
10058 the "a followed by b" relation and document it.
10059
4a40293a
SP
100602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10061
10062 * graphite-dependences.c (build_lexicographical_constraint): Stop the
10063 iteration when the bag of constraints is empty.
10064
271fb6fa
SP
100652011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10066
10067 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
10068
92d23680
SP
100692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10070
10071 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
10072 nest and two loop depths as parameters.
10073 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
10074 lst_perfect_nestify.
10075
2f51deff
SP
100762011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10077
10078 * graphite-dependences.c (print_pddr): Call
10079 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
10080
07f3593c
SP
100812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
10082
10083 * graphite-ppl.c (debug_gmp_value): New.
10084 * graphite-ppl.h (debug_gmp_value): Declared.
10085
3fae6099
TG
100862011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
10087
10088 * doc/install.texi: Document availability of cloog-0.16.
10089
1c3ba85b
SP
100902011-01-25 Vladimir Kargov <kargov@gmail.com>
10091
10092 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10093 invalid postdominance info.
10094
e8ba94fc
JH
100952011-01-24 Jan Hubicka <jh@suse.cz>
10096
10097 PR c/21659
10098 * doc/extend.texi (weak pragma): Drop claim that it must
10099 appear before definition.
10100 * varasm.c (merge_weak, declare_weak): Only sanity check
10101 that DECL is not output at a time it is declared weak.
10102
2b6e2d13
KZ
101032011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
10104
10105 * machmode.def: Fixed comments.
1c3ba85b 10106
9841210f
KT
101072011-01-24 Kai Tietz <kai.tietz@onevision.com>
10108
10109 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10110
101112011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
10112
10113 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 10114 WORDS_BIG_ENDIAN.
e046112d 10115
a6c5070a
L
101162011-01-24 H.J. Lu <hongjiu.lu@intel.com>
10117
10118 PR target/46519
10119 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10120 (block_info): Add scanned and prev.
10121 (move_or_delete_vzeroupper_2): Return if the basic block
10122 has been scanned and the upper 128bit state is unchanged
10123 from the last scan.
10124 (move_or_delete_vzeroupper_1): Return true if the exit
10125 state is changed.
10126 (move_or_delete_vzeroupper): Visit basic blocks using the
10127 work-list based algorithm based on vt_find_locations in
10128 var-tracking.c.
10129
10130 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10131
a40d79d7
NC
101322011-01-24 Nick Clifton <nickc@redhat.com>
10133
10134 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10135 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10136 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
10137 then define __v850e1__.
10138 * doc/invoke.texi: Document -mv850es.
10139
440eb8de
RH
101402011-01-24 Richard Henderson <rth@redhat.com>
10141
10142 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10143 compound unordered comparisons.
10144 * config/rx/rx.c (rx_split_fp_compare): Remove.
10145 * config/rx/rx-protos.h: Update.
10146 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10147 (cbranchsf4): Don't call rx_split_fp_compare.
10148 (*cbranchsf4): Use rx_split_cbranch.
10149 (*cmpsf): Don't accept "i" constraint.
10150 (*conditional_branch): Only valid after reload.
10151 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
10152
3ff79f99
MM
101532011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
10154
10155 PR target/47385
10156 * config/rs6000/altivec.md (vector constant splitters): Add
10157 support for creating vector single precision constants if -mvsx is
10158 used and we would create the constant using Altivec primitives.
10159
ff3d9d08
BS
101602011-01-23 Bernd Schmidt <bernds@codesourcery.com>
10161 Richard Sandiford <rdsandiford@googlemail.com>
10162
10163 PR rtl-optimization/47166
10164 * reload1.c (emit_reload_insns): Disable the spill_reg_store
10165 mechanism for PRE_MODIFY and POST_MODIFY.
10166 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10167 reloadreg.
10168
7fcaf152
AS
101692011-01-23 Andreas Schwab <schwab@linux-m68k.org>
10170
8788adb6 10171 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 10172
d09b58c4
JH
101732011-01-22 Jan Hubicka <jh@suse.cz>
10174
10175 PR lto/47333
10176 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10177
e8ff8c5a
JH
101782011-01-22 Jan Hubicka <jh@suse.cz>
10179
10180 PR tree-optimization/43884
10181 PR lto/44334
8788adb6 10182 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
10183 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10184
ccaed3ba
AS
101852011-01-22 Anatoly Sokolov <aesok@post.ru>
10186
10187 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10188 * config/s390/s390.c (s390_register_move_cost,
10189 s390_memory_move_cost): New.
10190 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10191
0cecee06
UW
101922011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10193
10194 PR middle-end/47401
10195 * except.c (sjlj_assign_call_site_values): Move setting the
10196 crtl->uses_eh_lsda flag to ...
10197 (sjlj_mark_call_sites): ... here.
10198 (sjlj_emit_function_enter): Support NULL dispatch label.
10199 (sjlj_build_landing_pads): In a function with no landing pads
10200 that still has must-not-throw regions, generate code to register
10201 a personality function with empty LSDA.
10202
e692f276
RH
102032011-01-21 Richard Henderson <rth@redhat.com>
10204
1b7ae0b7
RH
10205 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10206
3843787f
RH
10207 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10208
e692f276
RH
10209 * compare-elim.c: New file.
10210 * Makefile.in (OBJS-common): Add it.
10211 (compare-elim.o): New.
10212 * common.opt (fcompare-elim): New.
10213 * opts.c (default_options_table): Add OPT_fcompare_elim.
10214 * tree-pass.h (pass_compare_elim_after_reload): New.
10215 * passes.c (init_optimization_passes): Add it.
10216 * recog.h: Protect against re-inclusion.
10217 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10218 * doc/invoke.texi (-fcompare-elim): Document it.
10219 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10220 * doc/tm.texi: Rebuild.
10221
9a7c2050
NC
102222011-01-22 Nick Clifton <nickc@redhat.com>
10223
10224 * config/rx/rx.md (cstoresf4): Pass comparison operator to
10225 rx_split_fp_compare.
10226
15ba5696
NC
102272011-01-22 Nick Clifton <nickc@redhat.com>
10228
10229 * config/rx/rx.md (UNSPEC_CONST): New.
10230 (deallocate_and_return): Wrap the amount popped off the stack in
10231 an UNSPEC_CONST in order to stop it being rejected by
10232 -mmax-constant-size.
10233 (pop_and_return): Add a "(return)" rtx.
10234 (call): Drop the immediate operand.
10235 (call_internal): Likewise.
10236 (call_value): Likewise.
10237 (call_value_internal): Likewise.
10238 (sibcall_internal): Likewise.
10239 (sibcall_value_internal): Likewise.
10240 (sibcall): Likewise. Generate an explicit call using
10241 sibcall_internal.
10242 (sibcall_value): Likewise.
10243 (mov<>): FAIL if a constant operand is not legitimate.
10244 (addsi3_unpsec): New pattern.
9a7c2050 10245
38be4072 10246 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
10247 (ok_for_max_constant): New function.
10248 (gen_safe_add): New function.
10249 (rx_expand_prologue): Use gen_safe_add.
10250 (rx_expand_epilogue): Likewise.
10251 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
10252 UNSPEC CONSTs.
10253
caaf13d3
JL
102542011-01-21 Jeff Law <law@redhat.com>
10255
10256 PR tree-optimization/47053
10257 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10258 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10259 statements are deleted.
10260 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
10261 is nonempty, then purge dead edges and cleanup the CFG.
10262
12c30f2f
AO
102632011-01-21 Alexandre Oliva <aoliva@redhat.com>
10264
10265 PR debug/47402
10266 Temporarily revert:
10267 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
10268 PR debug/47106
10269 * tree-dfa.c (create_var_ann): Mark variable as used.
10270
7360d2ac
JJ
102712011-01-21 Jakub Jelinek <jakub@redhat.com>
10272
aaa52a96
JJ
10273 PR middle-end/45566
10274 * except.c (convert_to_eh_region_ranges): Emit queued no-region
10275 notes from other section in hot/cold partitioning even if
10276 last_action is -3. Increment call_site_base.
10277
7360d2ac
JJ
10278 PR rtl-optimization/47366
10279 * fwprop.c (forward_propagate_into): Return bool. If
10280 any changes are made, -fnon-call-exceptions is used and
10281 REG_EH_REGION note is present, call purge_dead_edges
10282 and return true if it purged anything.
10283 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10284 any EH edges were purged.
10285
e90b336f
JL
102862011-01-21 Jeff Law <law@redhat.com>
10287
10288 PR rtl-optimization/41619
10289 * caller-save.c (setup_save_areas): Break out code to determine
10290 which hard regs are live across calls by examining the reload chains
10291 so that it is always used.
10292 Eliminate code which checked REG_N_CALLS_CROSSED.
10293
3ffe07e1
JJ
102942011-01-21 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR tree-optimization/47355
10297 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10298 NOP has non-debug uses beyond PHIs in new_bb.
10299
1c7d0b34
AO
103002011-01-21 Alexandre Oliva <aoliva@redhat.com>
10301
10302 PR debug/47106
10303 * cfgexpand.c (account_used_vars_for_block): Only account vars
10304 that are annotated as used.
10305 (estimated_stack_frame_size): Don't set TREE_USED.
10306 * tree-dfa.c (create_var_ann): Mark variable as used.
10307
f99cc488
RG
103082011-01-21 Richard Guenther <rguenther@suse.de>
10309
10310 PR middle-end/47395
10311 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10312
3bc27de7
RG
103132011-01-21 Richard Guenther <rguenther@suse.de>
10314
10315 PR tree-optimization/47365
10316 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10317 (vn_reference_lookup_pieces): Adjust.
10318 (vn_reference_lookup): Likewise.
10319 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10320 (vn_reference_lookup_3): Only look through kills if in
10321 VN_WALKREWRITE mode.
10322 (vn_reference_lookup_pieces): Adjust.
10323 (vn_reference_lookup): Likewise.
10324 (visit_reference_op_load): Likewise.
10325 (visit_reference_op_store): Likewise.
10326 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10327 (compute_avail): Likewise.
10328 (eliminate): Likewise.
10329
d8debb1d
JJ
103302011-01-21 Jakub Jelinek <jakub@redhat.com>
10331
10332 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10333 DECL_IGNORED_P non-reg vars if they are used.
10334
3a2df831
JJ
10335 PR tree-optimization/47391
10336 * varpool.c (const_value_known_p): Return false if
10337 decl is volatile.
10338
1dd584a2
KT
103392011-01-21 Kai Tietz <kai.tietz@onevision.com>
10340
10341 PR bootstrap/47215
10342 * config/i386/i386.c (ix86_local_alignment): Handle
10343 case for va_list_type_node is nil.
10344 (ix86_canonical_va_list_type): Likewise.
10345
7f9f095e
AM
103462011-01-21 Alan Modra <amodra@gmail.com>
10347
10348 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10349 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10350
837b01f6
RR
103512011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10352
10353 * config/arm/arm.md (define_attr type): Rename f_load
10354 and f_store to f_fpa_load and f_fpa_store. Update.
10355 (write_conflict): Deal with rename fallout.
10356 (*push_fp_multi): Likewise.
10357 * config/arm/fpa.md (f_load): Use f_fpa_load.
10358 (f_store): Use f_fpa_store.
10359 (*movsf_fpa): Likewise.
10360 (*movdf_fpa): Likewise.
10361 (*movxf_fpa): Likewise.
10362 (*thumb2_movsf_fpa): Likewise.
10363 (*thumb2_movdf_fpa): Likewise.
10364 (*thumb2_movxf_fpa): Likewise.
10365 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10366 f_loadd and f_stored.
10367 (*thumb2_movdi_vfp): Likewise.
10368 (*thumb2_movsf_vfp): Fix attribute to f_loads.
10369 (*thumb2_movsi_vfp): Likewise.
10370 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10371 Use f_loads instead of f_load.
10372 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10373
a1a79768
AS
103742011-01-20 Anatoly Sokolov <aesok@post.ru>
10375
10376 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10377 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10378 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10379 (xtensa_mode_dependent_address_p): New function.
10380 (constantpool_address_p): Make static. Change return type to bool.
10381 Change argument type to const_rtx. Use CONST_INT_P predicate.
10382
427f6cec
AO
103832011-01-20 Alexandre Oliva <aoliva@redhat.com>
10384
10385 PR debug/46583
10386 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10387
583ac69c
JJ
103882011-01-20 Jakub Jelinek <jakub@redhat.com>
10389
10390 PR debug/47283
10391 * cfgexpand.c (expand_debug_expr): Instead of generating
10392 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10393 etc. handling.
10394
93e452ed
RG
103952011-01-20 Richard Guenther <rguenther@suse.de>
10396
10397 PR middle-end/47370
10398 * tree-inline.c (remap_gimple_op_r): Recurse manually for
10399 the pointer operand of MEM_REFs.
10400
28fc44f3
JJ
104012011-01-20 Jakub Jelinek <jakub@redhat.com>
10402
10403 PR tree-optimization/46130
10404 * ipa-split.c (consider_split): If return_bb contains non-virtual
10405 PHIs other than for retval or if split_function would not adjust it,
10406 refuse to split.
10407
ddd268f2
RG
104082011-01-20 Richard Guenther <rguenther@suse.de>
10409
10410 PR tree-optimization/47167
10411 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10412 Revert previous change, only avoid enumeral type changes.
10413
882020aa
MS
104142011-01-19 Mike Stump <mikestump@comcast.net>
10415
10416 * doc/tm.texi.in (BRANCH_COST): Englishify.
10417 * doc/tm.texi (BRANCH_COST): Likewise.
10418
7edb6247
DS
104192011-01-19 Dodji Seketeli <dodji@redhat.com>
10420
10421 PR c++/47291
10422 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
10423 (gen_scheduled_generic_parms_dies): New functions.
10424 (gen_struct_or_union_type_die): Schedule template parameters DIEs
10425 generation for the end of CU compilation.
10426 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 10427
23d5ed5d
AO
104282011-01-19 Alexandre Oliva <aoliva@redhat.com>
10429
10430 PR debug/46240
10431 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10432 debug bind stmt on merge edges.
10433
37d6a488
AO
104342011-01-19 Alexandre Oliva <aoliva@redhat.com>
10435
10436 PR debug/47079
10437 PR debug/46724
10438 * function.c (instantiate_expr): Instantiate incoming rtl of
10439 implicit arguments, and recurse on VALUE_EXPRs.
10440 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10441 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10442
689f2c82
AO
104432011-01-19 Alexandre Oliva <aoliva@redhat.com>
10444
10445 * c-parser.c (c_parser_for_statement): Initialize
10446 collection_expression.
10447
03029de4
JM
104482011-01-19 Joseph Myers <joseph@codesourcery.com>
10449
10450 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10451
3e03217e
JM
104522011-01-19 Joseph Myers <joseph@codesourcery.com>
10453
10454 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10455 (LINK_SHLIB_SPEC): Don't use %(link_path).
10456 (SUBTARGET_EXTRA_SPECS): Remove link_path.
10457
5bbe9b3f
JM
104582011-01-19 Joseph Myers <joseph@codesourcery.com>
10459
10460 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10461 (NO_SHARED_LIB_SUPPORT): Remove.
10462 (LINK_SHLIB_SPEC): Remove one conditional definition.
10463
368e0b39
JM
104642011-01-19 Joseph Myers <joseph@codesourcery.com>
10465
10466 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10467 %{call_shared}.
10468 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10469 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10470 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10471 %{call_shared} and conditionals on these options not being passed.
10472 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10473 %{call_shared}.
10474
ed7656f6
JJ
104752011-01-19 Jakub Jelinek <jakub@redhat.com>
10476
68457901
JJ
10477 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10478 simplify.
10479
ed7656f6
JJ
10480 * ipa-split.c: Spelling fixes.
10481
e0d1958f
RH
104822011-01-19 Richard Henderson <rth@redhat.com>
10483
10484 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10485 (*mulsi3): Likewise.
10486
27098b6b
RH
10487 * longlong.h [__mn10300__] (count_leading_zeros): New.
10488 [__mn10300__] (umul_ppmm, smul_ppmm): New.
10489 [__mn10300__] (add_ssaaaa, subddmmss): New.
10490 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10491 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10492
d6be7c36
UW
104932011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10494
10495 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10496
b1efde2a
RH
104972011-01-19 Richard Henderson <rth@redhat.com>
10498
44217823
RH
10499 * config/mn10300/mn10300.md (addsi3_flags): New.
10500 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10501 (subsi3_flags, subc_internal, subdi3): New.
10502 (subdi3_internal, *subdi3_degenerate): New.
10503 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10504
37a185d7
RH
10505 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10506 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10507 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
10508 * config/mn10300/mn10300-protos.h: Update.
10509 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10510 (return_ret): Likewise. Rename from return_internal_regs.
10511 (return_internal): Remove.
10512
040c5757
RH
10513 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10514 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10515 (mn10300_legitimate_constant_p): Likewise.
10516 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10517 (mn10300_frame_size): New.
10518 (mn10300_expand_prologue): Use it.
10519 (mn10300_expand_epilogue): Likewise.
10520 (mn10300_initial_offset): Likewise.
10521 * config/mn10300/mn10300-protos.h: Update.
10522 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10523 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10524 (prologue, epilogue, return_internal): Tidy output code.
10525 (mn10300_store_multiple_operation, return): Likewise.
10526 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10527 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10528 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10529 (load_pic, am33_load_pic): New.
10530 (mn10300_load_pic0, mn10300_load_pic1): New.
10531
bad41521
RH
10532 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10533 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10534 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10535 (cc_flags_for_mode, cc_flags_for_code): New.
10536 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10537 overflow flag is not valid. Validate that the flags we need
10538 for the comparison are valid.
10539 (mn10300_output_cmp): Remove.
10540 (mn10300_output_add): New.
10541 (mn10300_select_cc_mode): Use cc_flags_for_code.
10542 (mn10300_split_cbranch): New.
10543 (mn10300_match_ccmode): New.
10544 (mn10300_split_and_operand_count): New.
10545 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10546 to the function.
10547 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10548 (addsi3): ... here. Use mn10300_output_add.
10549 (*addsi3_flags): New.
10550 (*am33_subsi3, *mn10300_subsi3): Merge...
10551 (subsi3): ... here. Use attribute isa.
10552 (*subsi3_flags): New.
10553 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
10554 when possible.
10555 (*am33_andsi3, *mn10300_andsi3): Merge...
10556 (andsi3): ... here.
10557 (*andsi3_flags): New.
10558 (andsi3 splitters): New.
10559 (*am33_iorsi3, *mn10300_iorsi3): Merge...
10560 (iorsi3): ... here.
10561 (*iorsi3_flags): New.
10562 (*am33_xorsi3, *mn10300_xorsi3): Merge...
10563 (xorsi3): ... here.
10564 (*xorsi3_flags): New.
10565 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10566 (one_cmplsi2): ... here.
10567 (*one_cmplsi2_flags): New.
10568 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
10569 instead of "dax" in constraints. Use mn10300_split_cbranch.
10570 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
10571 use matching constraints to eliminate a self-comparison.
10572 (*integer_conditional_branch): Rename from integer_conditional_branch.
10573 Use int_mode_flags to match CC_REG.
10574 (*cbranchsi4_btst, *btstsi): New.
10575 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
10576 mn10300_split_cbranch.
10577 (*am33_cmpsf): Rename from am33_cmpsf.
10578 (*float_conditional_branch): Rename from float_conditional_branch.
10579 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10580 (zero_extendqisi2): ... here.
10581 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10582 (zero_extendhisi2): ... here.
10583 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10584 (extendqisi2): ... here.
10585 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10586 (extendhisi2): ... here.
10587 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10588 (ashlsi3): ... here.
10589 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10590 (lshrsi3): ... here.
10591 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10592 (ashrsi3): ... here.
10593 (consecutive add peephole): Remove.
10594 * config/mn10300/predicates.md (label_ref_operand): New.
10595 (int_mode_flags): New.
10596 (CCZN_comparison_operator): New.
10597
9efb4993
RH
10598 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10599 (throughput_42_latency_43): New reservation.
10600 (mulsidi3, umulsidi3): New expanders.
10601 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
10602 the MDR register to allocation; separately allocate the low and
10603 high parts of the DImode result.
10604 (umulsidi3_internal): Similarly.
10605 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10606 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
10607 (udivsi3, umodsi3): Remove.
10608 (udivmodsi4, divmodsi4): New expanders.
10609 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
10610 (*divmodsi4): Simiarly.
10611 (ext_internal): New.
10612
c25a21f5
RH
10613 * config/mn10300/constraints.md ("z"): New constraint.
10614 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10615 (FIXED_REGISTERS): Don't fix MDR.
10616 (CALL_USED_REGSITERS): Reformat nicely.
10617 (REG_ALLOC_ORDER): Add MDR.
10618 (enum regclass): Add MDR_REGS.
10619 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10620 (IRA_COVER_CLASSES): Add MDR_REGS.
10621 (REGNO_REG_CLASS): Handle MDR_REG.
10622 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10623 (mn10300_register_move_cost): Likewise.
10624 * config/mn10300/mn10300.md (MDR_REG): New.
10625 (*movsi_internal): Handle moves to/from MDR_REGS.
10626
36846b26
RH
10627 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10628 POST_MODIFY.
10629 (mn10300_secondary_reload): Tidy combination reload classes.
10630 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10631 addresses for AM33. Allow symbolic offsets for reg+imm.
10632 (mn10300_regno_in_class_p): New.
10633 (mn10300_legitimize_reload_address): New.
10634 * config/mn10300/mn10300.h (enum reg_class): Remove
10635 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10636 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
10637 SP_OR_GENERAL_REGS.
10638 (REG_CLASS_NAMES): Update to match.
10639 (REG_CLASS_CONTENTS): Likewise.
10640 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10641 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10642 (REGNO_IN_RANGE_P): Remove.
10643 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10644 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10645 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10646 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10647 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10648 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10649 (REGNO_GENERAL_P): New.
10650 (HAVE_POST_MODIFY_DISP): New.
10651 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10652 (LEGITIMIZE_RELOAD_ADDRESS): New.
10653 * config/mn10300/mn10300-protos.h: Update.
10654
8b119bb6
RH
10655 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10656 DATA_REGS for AM33 stack-pointer destination.
10657 (mn10300_preferred_output_reload_class): Likewise.
10658 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10659 into a form appropriate for ...
10660 (TARGET_SECONDARY_RELOAD): New.
10661 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10662 * config/mn10300/mn10300-protos.h: Update.
10663 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10664 reload_insi; use the "A" constraint for the scratch; handle AM33
10665 moves of sp to non-address registers.
10666
b1efde2a
RH
10667 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10668 (*movqi_internal): ... here.
10669 (*am33_movhi, *mn10300_movhi): Merge into...
10670 (*movhi_internal): ... here.
10671 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
10672 as the source/destination of moves from/to SP.
10673 (movsf): Only allow for AM33-2.
1c3ba85b 10674 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
10675 any integer constant constraint. Only allow for AM33-2. Tidy
10676 all of the alternative outputs.
10677 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10678 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
10679 for MN103.
10680 (udivsi3, umodsi3): New patterns for MN103 only.
10681
b899fd78
JR
106822011-01-19 Joern Rennecke <amylaar@spamcop.net>
10683
10684 * doc/tm.texi.in: Spell out that a lack of register class unions
10685 can lead to ICEs.
10686 * doc/tm.texi: Regenerate.
10687
afaaa67d
JJ
106882011-01-19 Jakub Jelinek <jakub@redhat.com>
10689
2e0642cd
JJ
10690 PR rtl-optimization/47337
10691 * dce.c (check_argument_store): New function.
10692 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
10693
afaaa67d
JJ
10694 PR tree-optimization/47290
10695 * tree-eh.c (infinite_empty_loop_p): New function.
10696 (cleanup_empty_eh): Use it.
10697
d2cd871f
SE
106982011-01-18 Steve Ellcey <sje@cup.hp.com>
10699
10700 PR target/46997
10701 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10702 (a64_expand_widen_sum): Ditto.
10703 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10704 (vec_extract_evenodd_help): Ditto.
10705 (vec_extract_evenv4hi): Ditto.
10706 (vec_extract_oddv4hi): Ditto.
10707 (vec_extract_evenv2si): Ditto.
10708 (vec_extract_oddv2si): Ditto.
10709 (vec_extract_evenv2sf): Ditto.
10710 (vec_extract_oddv2sf): Ditto.
10711 (vec_pack_trunc_v4hi: Ditto.
10712 (vec_pack_trunc_v2si): Ditto.
10713 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10714 (vec_interleave_highv8qi): Ditto.
10715 (mix1_r): Ditto.
10716 (vec_extract_oddv8qi): Ditto.
10717 (vec_interleave_lowv4hi): Ditto.
10718 (vec_interleave_highv4hi): Ditto.
10719 (vec_interleave_lowv2si): Ditto.
10720 (vec_interleave_highv2si): Ditto.
10721
41a1208a
JDA
107222011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10723
10724 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10725 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10726 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
10727 (pa_c_mode_for_suffix): New.
10728 (TARGET_EXPAND_BUILTIN): Define.
10729 (TARGET_C_MODE_FOR_SUFFIX): Define.
10730 (pa_builtins): Define.
10731 (pa_init_builtins): Register __float128 type and init new support
10732 builtins.
10733 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10734 * config/pa/quadlib.c (_U_Qfcopysign): New.
10735
1ecad98e
EB
107362011-01-18 Eric Botcazou <ebotcazou@adacore.com>
10737
10738 PR middle-end/46894
10739 * explow.c (allocate_dynamic_stack_space): Do not assume more than
10740 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10741 are defined.
10742
d4f2460a
UW
107432011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10744
10745 PR tree-optimization/47179
10746 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10747 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10748
4994da65
RG
107492011-01-18 Richard Guenther <rguenther@suse.de>
10750
10751 PR rtl-optimization/47216
10752 * emit-rtl.c: Include tree-flow.h.
10753 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10754 of replicating it with different semantics.
10755 * Makefile.in (emit-rtl.o): Adjust.
10756
1eb458d1
RR
107572011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10758
38be4072 10759 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 10760 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 10761
e7ef91dc
JJ
107622011-01-18 Jakub Jelinek <jakub@redhat.com>
10763
10764 PR rtl-optimization/47299
10765 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 10766 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
10767 * expmed.c (expand_widening_mult): Don't try to optimize constant
10768 multiplication if op0 has VOIDmode. Convert op1 constant to mode
10769 before using it.
10770
535b7874
RW
107712011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10772
10773 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
10774 spacing after 'e.g.', typos, comma, hyphenation.
10775
27bf36f3
RH
107762011-01-17 Richard Henderson <rth@redhat.com>
10777
8a5b5449
RH
10778 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10779 (rx_restricted_mem_operand): New.
10780 (rx_shift_operand): Use register_operand.
10781 (rx_source_operand, rx_compare_operand): Likewise.
10782 * config/rx/rx.md (addsi3_flags): New expander.
10783 (adddi3): Rewrite as expander.
10784 (adc_internal, *adc_flags, adddi3_internal): New patterns.
10785 (subsi3_flags): New expander.
10786 (subdi3): Rewrite as expander.
10787 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10788
784f69be
RH
10789 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10790 (rx_init_builtins): Remove sat builtin.
10791 (rx_expand_builtin): Likewise.
10792 * config/rx/rx.md (ssaddsi3): New.
10793 (*sat): Rename from sat. Represent the CC_REG input.
10794
f033541c
RH
10795 * config/rx/predicates.md (rshift_operator): New.
10796 * config/rx/rx.c (rx_expand_insv): Remove.
10797 * config/rx/rx-protos.h: Update.
10798 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
10799 operand to the canonical position.
10800 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10801 (*bitclr, *bitclr_in_memory): Similarly.
10802 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10803 (insv): Retain the zero_extract in the expansion.
10804
34fee389
RH
10805 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10806 (bswaphi2, bitinvert, revw): Likewise.
10807
265c835f
RH
10808 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10809 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10810 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10811 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10812 (bitset, bitset_in_memory): Likewise.
10813 (bitinvert, bitinvert_in_memory): Likewise.
10814 (bitclr, bitclr_in_memory): Likewise.
10815 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10816 (rx_strend, rx_cmpstrn): Likewise.
10817 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
10818 (bitop peep2 patterns): Remove.
10819
b4d83be3
RH
10820 * config/rx/rx.c (rx_match_ccmode): New.
10821 * config/rx/rx-protos.h: Update.
10822 * config/rx/rx.md (abssi2): Clobber, don't set flags.
10823 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10824 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10825 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10826 (fix_truncsfsi2, floatsisf2): Likewise.
10827 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10828 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10829 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10830 (*subsi3_flags, *xorsi3_flags): New.
10831
d0acb939
RH
10832 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10833
c06fc3d9
RH
10834 * config/rx/rx.c (rx_print_operand): Remove workaround for
10835 unsplit comparison operations.
10836
2882702b
RH
10837 * config/rx/rx.md (movsicc): Split after reload.
10838 (*movsicc): Merge *movsieq and *movsine via match_operator.
10839 (*stcc): New pattern.
10840
6f7310f2
RH
10841 * config/rx/rx.c (rx_float_compare_mode): Remove.
10842 * config/rx/rx.h (rx_float_compare_mode): Remove.
10843 * config/rx/rx.md (cstoresi4): Split after reload.
10844 (*sccc): New pattern.
10845
e963cb1a
RH
10846 * config/rx/predicates.md (label_ref_operand): New.
10847 (rx_z_comparison_operator): New.
10848 (rx_zs_comparison_operator): New.
10849 (rx_fp_comparison_operator): New.
10850 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10851 Validate that the flags are set properly for the comparison.
10852 (rx_gen_cond_branch_template): Remove.
10853 (rx_cc_modes_compatible): Remove.
10854 (mode_from_flags): New.
10855 (flags_from_code): Rename from flags_needed_for_conditional.
10856 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10857 (rx_select_cc_mode): Likewise.
10858 (rx_split_fp_compare): New.
10859 (rx_split_cbranch): New.
10860 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10861 (*cbranchsi4): Use match_operator and rx_split_cbranch.
10862 (*cbranchsf4): Similarly.
10863 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
10864 match_operator and rx_split_cbranch.
10865 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10866 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
10867 (*cmpsi): Rename from cmpsi.
10868 (*tstsi): Rename from tstsi.
10869 (*cmpsf): Rename from cmpsf; use CC_Fmode.
10870 (*conditional_branch): Rename from conditional_branch.
10871 (*reveresed_conditional_branch): Remove.
10872 (b<code>): Remove expander.
10873 * config/rx/rx-protos.h: Update.
10874
af530bb4
RH
10875 * config/rx/rx.c (rx_compare_redundant): Remove.
10876 * config/rx/rx.md (cmpsi): Don't use it.
10877 * config/rx/rx-protos.h: Update.
10878
27bf36f3
RH
10879 * config/rx/rx-modes.def (CC_F): New mode.
10880 * config/rx/rx.c (rx_select_cc_mode): New.
10881 * config/rx/rx.h (SELECT_CC_MODE): Use it.
10882 * config/rx/rx-protos.h: Update.
10883
d7fde127
RH
108842011-01-17 Richard Henderson <rth@redhat.com>
10885
10886 * except.c (dump_eh_tree): Fix stray ; after for statement.
10887
6ff38230
RG
108882011-01-17 Richard Guenther <rguenther@suse.de>
10889
10890 PR tree-optimization/47313
10891 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10892 handling before copying the body. Properly deal with
10893 by-reference result in SSA form.
10894
114ce554
ILT
108952011-01-17 Ian Lance Taylor <iant@google.com>
10896
bf5cd92b 10897 PR target/47219
114ce554
ILT
10898 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10899 (struct_value_alias_set): Don't define.
10900 (sparc_option_override): Don't set sparc_sr_alias_set and
10901 struct_value_alias_set.
10902 (save_or_restore_regs): Use gen_frame_mem rather than calling
10903 set_mem_alias_set.
10904 (sparc_struct_value_rtx): Likewise.
10905
98c6d93c
L
109062011-01-17 H.J. Lu <hongjiu.lu@intel.com>
10907
10908 PR target/47318
7a81008b 10909 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
10910 (_mm_maskstore_pd): Likewise.
10911 (_mm_maskload_ps): Likewise.
10912 (_mm_maskstore_ps): Likewise.
10913 (_mm256_maskload_pd): Change mask to __m256i.
10914 (_mm256_maskstore_pd): Likewise.
10915 (_mm256_maskload_ps): Likewise.
10916 (_mm256_maskstore_ps): Likewise.
10917
10918 * config/i386/i386-builtin-types.def: Updated.
10919 (ix86_expand_special_args_builtin): Likewise.
10920
10921 * config/i386/i386.c (bdesc_special_args): Update
10922 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10923 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10924 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10925 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10926
10927 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10928 Use <avxpermvecmode> on mask register.
10929 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10930
b9361af2 109312011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
10932 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10933 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
10934
10935 PR target/46655
10936 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10937 if <= USHRT_MAX in 32-bit mode.
10938
b7ae9eb5
RW
109392011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10940
10941 * doc/install.texi (Configuration, Specific): Wrap long
10942 lines in examples. Allow line wrapping in long options
10943 and URLs where beneficial for PDF output.
10944
4377fad9
RS
109452011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
10946
10947 * config/mips/mips.c (mips_classify_symbol): Don't return
10948 SYMBOL_PC_RELATIVE for nonlocal labels.
10949
55959ffa 109502011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 10951
55959ffa
EB
10952 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10953
109542011-01-15 Jan Hubicka <jh@suse.cz>
10955
10956 PR tree-optimization/47276
be46831f
JH
10957 * ipa.c (function_and_variable_visibility): Do not try to mark alias
10958 declarations as needed.
10959
05842ff5
MJ
109602011-01-15 Martin Jambor <mjambor@suse.cz>
10961
10962 * common.opt (fdevirtualize): New flag.
10963 * doc/invoke.texi (Option Summary): Document it.
10964 * opts.c (default_options_table): Add devirtualize flag.
10965 * ipa-prop.c (detect_type_change): Return immediately if
10966 devirtualize flag is not set.
10967 (detect_type_change_ssa): Likewise.
10968 (compute_known_type_jump_func): Likewise.
10969 (ipa_analyze_virtual_call_uses): Likewise.
10970
f65cf2b7
MJ
109712011-01-14 Martin Jambor <mjambor@suse.cz>
10972
10973 PR tree-optimization/45934
10974 PR tree-optimization/46302
10975 * ipa-prop.c (type_change_info): New type.
10976 (stmt_may_be_vtbl_ptr_store): New function.
10977 (check_stmt_for_type_change): Likewise.
10978 (detect_type_change): Likewise.
10979 (detect_type_change_ssa): Likewise.
10980 (compute_complex_assign_jump_func): Check for dynamic type change.
10981 (compute_complex_ancestor_jump_func): Likewise.
10982 (compute_known_type_jump_func): Likewise.
10983 (compute_scalar_jump_functions): Likewise.
10984 (ipa_analyze_virtual_call_uses): Likewise.
10985 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10986
eb5bb0fd
JM
109872011-01-14 Joseph Myers <joseph@codesourcery.com>
10988
10989 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10990 * config/i386/i386.opt (msse5): New Alias.
10991
f2060fbe
JM
109922011-01-14 Joseph Myers <joseph@codesourcery.com>
10993
10994 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10995 * config/sparc/linux64.h (CC1_SPEC): Likewise.
10996 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10997 * config/sparc/sparc.h (CC1_SPEC): Likewise.
10998
3a7b4385
JM
109992011-01-14 Joseph Myers <joseph@codesourcery.com>
11000
11001 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
11002 -mcpu options.
11003 * config/sparc/linux64.h (CC1_SPEC): Likewise.
11004 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
11005 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
11006 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
11007 Likewise.
11008 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
11009
a7b778f8
JM
110102011-01-14 Joseph Myers <joseph@codesourcery.com>
11011
38be4072 11012 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 11013
a7edae0a
MS
110142011-01-14 Mike Stump <mikestump@comcast.net>
11015
11016 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
11017 * config/fr30/fr30.md: Likweise
11018 (movsi_push): Likewise.
11019 (movsi_pop): Likewise.
11020 (enter_func): Likewise.
11021 * config/moxie/moxie.md (movsi_push): Likewise.
11022 (movsi_pop): Likewise.
11023
cbabf03f
JM
110242011-01-14 Joseph Myers <joseph@codesourcery.com>
11025
11026 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
11027 %{no_archive} %{exact_version}.
11028 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
11029 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
11030 %{no_archive} %{exact_version}.
11031 * config/mips/openbsd.h (LINK_SPEC): Likewise.
11032 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
11033 * config/mips/vxworks.h: Likewise.
11034
438da41a
JM
110352011-01-14 Joseph Myers <joseph@codesourcery.com>
11036
38be4072 11037 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 11038
da290a42
JM
110392011-01-14 Joseph Myers <joseph@codesourcery.com>
11040
11041 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
11042 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
11043
8989d00e
JM
110442011-01-14 Joseph Myers <joseph@codesourcery.com>
11045
11046 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
11047 -nodefaultlib.
11048
a3010a69
JM
110492011-01-14 Joseph Myers <joseph@codesourcery.com>
11050
11051 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
11052 for mcpu not cpu.
11053 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
11054 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
11055 not cpu.
11056 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
11057 Don't handle -shlib.
11058
e7f2f537
JM
110592011-01-14 Joseph Myers <joseph@codesourcery.com>
11060
11061 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
11062 (CC1_SPEC): Don't handle -profile.
11063
34830bfd
JM
110642011-01-14 Joseph Myers <joseph@codesourcery.com>
11065
11066 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
11067 * config/mips/mips.h (CC1_SPEC): Likewise.
11068
b2d36e74
JM
110692011-01-14 Joseph Myers <joseph@codesourcery.com>
11070
11071 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
11072 * config/mips/mips.h (CC1_SPEC): Likewise.
11073
dabadc52
JM
110742011-01-14 Joseph Myers <joseph@codesourcery.com>
11075
11076 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
11077 * config/m32r/linux.h (LINK_SPEC): Likewise.
11078 * config/mips/linux.h (LINK_SPEC): Likewise.
11079 * config/mips/linux64.h (LINK_SPEC): Likewise.
11080 * config/sparc/linux.h (LINK_SPEC): Likewise.
11081 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11082 LINK_SPEC): Likewise.
11083 * config/xtensa/linux.h (LINK_SPEC): Likewise.
11084
43ee6785
JM
110852011-01-14 Joseph Myers <joseph@codesourcery.com>
11086
11087 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
11088 %{version:-v}.
11089 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
11090
45e79dfd
JM
110912011-01-14 Joseph Myers <joseph@codesourcery.com>
11092
11093 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11094 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11095
37e9e71d
JM
110962011-01-14 Joseph Myers <joseph@codesourcery.com>
11097
11098 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11099
bb127cd8
RO
111002011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11101
11102 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11103 supports -Bstatic/-Bdynamic.
11104 * configure: Regenerate.
11105
89a012ea 111062011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 11107 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
11108
11109 PR target/46037
11110 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11111 when checking debug_info_level. Test write_symbols instead of
11112 debug_hooks->var_location when setting flag_var_tracking_uninit.
11113
7352c013
RG
111142011-01-14 Richard Guenther <rguenther@suse.de>
11115
11116 PR tree-optimization/47179
11117 * target.def (ref_may_alias_errno): New target hook.
11118 * targhooks.h (default_ref_may_alias_errno): Declare.
11119 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11120 (default_ref_may_alias_errno): New function.
11121 * target.h (struct ao_ref_s): Declare.
11122 * tree-ssa-alias.c: Include target.h.
11123 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11124 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11125 (targhooks.o): Likewise.
11126 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11127 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11128
9a6c9288
RG
111292011-01-14 Richard Guenther <rguenther@suse.de>
11130
11131 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
11132
0fdb0d27
RG
111332011-01-14 Richard Guenther <rguenther@suse.de>
11134
11135 PR tree-optimization/47280
11136 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11137 return CFG changes.
11138 (tree_ssa_forward_propagate_single_use_vars): Deal with
11139 CFG changes from associate_plusminus.
11140
8f66db3b
RG
111412011-01-14 Richard Guenther <rguenther@suse.de>
11142
11143 PR middle-end/47281
11144 Revert
11145 2011-01-11 Richard Guenther <rguenther@suse.de>
11146
280d9630
EB
11147 PR tree-optimization/46076
11148 * tree-ssa.c (useless_type_conversion_p): Conversions from
11149 unprototyped to empty argument list function types are useless.
8f66db3b 11150
6c0c92e6
RG
111512011-01-14 Richard Guenther <rguenther@suse.de>
11152
11153 PR tree-optimization/47286
280d9630 11154 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 11155
db09f943
MJ
111562011-01-14 Martin Jambor <mjambor@suse.cz>
11157
11158 PR middle-end/46823
11159 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11160
dde8a3a4
AS
111612011-01-13 Anatoly Sokolov <aesok@post.ru>
11162
11163 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11164 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11165 * config/xtensa/xtensa.c (xtensa_libcall_value,
11166 xtensa_function_value_regno_p): New functions.
11167 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11168
a2b63a20
KT
111692011-01-13 Kai Tietz <kai.tietz@onevision.com>
11170
11171 PR c++/47213
11172 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11173 PE specific hook.
11174 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11175 New function prototype.
11176 * config/i386/winnt.c (i386_pe_assemble_visibility):
11177 Warn only if attribute was specified by user.
11178
b41f0b34
MM
111792011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11180
11181 PR target/47251
11182 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11183 floating point.
11184 (floatunsdidf2_fcfidu): Ditto.
11185
3f3c098d
AK
111862011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11187
11188 * config/s390/s390.c (print_operand_address): Replace 'error' with
11189 'output_operand_lossage'.
11190 (print_operand): Likewise.
11191
29fa95ed
JL
111922011-01-13 Jeff Law <law@redhat.com>
11193
280d9630 11194 PR rtl-optimization/39077
29fa95ed
JL
11195 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11196 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11197 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11198 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11199 * gcse.c (prune_insertions_deletions): New function.
11200 (compute_pre_data): Use it.
11201
71d12276
DS
112022011-01-13 Dodji Seketeli <dodji@redhat.com>
11203
11204 PR debug/PR46973
11205 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11206 static function.
61052244 11207 (prune_unused_types_mark): Use it.
71d12276 11208
9b0f04e7
AB
112092011-01-13 Andrey Belevantsev <abel@ispras.ru>
11210
11211 PR rtl-optimization/45352
1c3ba85b 11212 * sel-sched.c: Update copyright years.
9b0f04e7 11213 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 11214 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 11215
d6a3e264
RH
112162011-01-12 Richard Henderson <rth@redhat.com>
11217
a49b692a
RH
11218 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11219 (TARGET_MD_ASM_CLOBBERS): New.
11220
126b1483
RH
11221 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11222 (TARGET_DELEGITIMIZE_ADDRESS): New.
11223
f3d9d2e0
RH
11224 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11225 (clzsi2, *bsch): New patterns.
11226
d84760c9
RH
11227 * config/mn10300/mn10300.md (INT): New mode iterator.
11228 (*mov<INT>_clr): New pattern, and peep2 to generate it.
11229
ec815d65
RH
11230 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11231 flag_split_wide_types.
11232
d6a3e264
RH
11233 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11234 (mn10300_trampoline_init): Rewrite without a template, an immediate
11235 load and a direct branch.
11236 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11237
0f8ab434
AS
112382011-01-12 Anatoly Sokolov <aesok@post.ru>
11239
11240 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11241 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11242 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11243 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11244
d8a24b65
KT
112452011-01-12 Kai Tietz <kai.tietz@onevision.com>
11246
11247 PR debug/47209
11248 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11249 of type.
11250
56e22cab
JH
112512011-01-12 Jan Hubicka <jh@suse.cz>
11252
11253 PR driver/47244
11254 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11255 (PLUGIN_COND_CLOSE): New macro.
11256 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11257
4b18b3c2
RG
112582011-01-12 Richard Guenther <rguenther@suse.de>
11259
11260 PR lto/47259
11261 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11262 register variables in a MEM_REF.
11263
8e38461c
JM
112642011-01-12 Joseph Myers <joseph@codesourcery.com>
11265
11266 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11267 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11268 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11269 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11270 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11271 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11272 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11273 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11274 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11275 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11276 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11277 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11278 * config/gnu-user.h: New. Copied from linux.h.
11279 (LINUX_TARGET_STARTFILE_SPEC): Rename to
11280 GNU_USER_TARGET_STARTFILE_SPEC.
11281 (LINUX_TARGET_ENDFILE_SPEC): Rename to
11282 GNU_USER_TARGET_ENDFILE_SPEC.
11283 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11284 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11285 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11286 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11287 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11288 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11289 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11290 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11291 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11292 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11293 * config/arm/linux-eabi.h (CC1_SPEC): Use
11294 GNU_USER_TARGET_CC1_SPEC.
11295 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11296 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11297 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11298 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11299 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11300 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11301 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11302 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11303
a570fc16
RG
113042011-01-12 Richard Guenther <rguenther@suse.de>
11305
11306 PR other/46946
11307 * doc/invoke.texi (ffast-math): Document it is turned on
11308 with -Ofast.
11309
b0223c3e
JH
113102011-01-12 Jan Hubicka <jh@suse.cz>
11311
11312 PR tree-optimization/47233
ca1e00b3
EB
11313 * opts.c (common_handle_option): Disable ipa-reference with profile
11314 feedback.
b0223c3e 11315
1c3ba85b 113162011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
11317
11318 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
11319 error message.
11320
d853ee42
NP
113212011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
11322
11323 * c-parser.c (c_lex_one_token): Updated and reindented some
11324 comments. No changes in code.
11325
4053a5a0
ILT
113262011-01-11 Ian Lance Taylor <iant@google.com>
11327
11328 * godump.c (go_output_var): Don't output the variable if there is
11329 already a type with the same name.
11330
fa3e04d2
ILT
113312011-01-11 Ian Lance Taylor <iant@google.com>
11332
11333 * godump.c (go_format_type): Don't generate float80.
11334
885fe07c
RH
113352011-01-11 Richard Henderson <rth@redhat.com>
11336
72d6e3c5
RH
11337 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11338 declaration. Rewrite for both speed and size.
11339 (mn10300_address_cost_1): Remove.
11340 (mn10300_register_move_cost): New.
11341 (mn10300_memory_move_cost): New.
11342 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
11343 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
11344 extensions, shifts, BSWAP, CLZ.
11345 (mn10300_wide_const_load_uses_clr): Remove.
11346 (TARGET_REGISTER_MOVE_COST): New.
11347 (TARGET_MEMORY_MOVE_COST): New.
11348 * config/mn10300/mn10300-protos.h: Update.
11349 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11350
df37c023
RH
11351 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11352 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11353 * config/mn10300/mn10300-protos.h: Update.
11354 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11355 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11356 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11357 (*test_int_bitfield, *test_byte_bitfield): Remove.
11358 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 11359 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 11360
85a337b5
RH
11361 * config/mn10300/constraints.md ("c"): Rename from "A".
11362 ("A", "D"): New constraint letters.
11363 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11364 (fmssf4, fnmasf4, fnmssf4): Likewise.
11365
a5c727e3
RH
11366 * config/mn10300/mn10300.md (isa): New attribute.
11367 (enabled): New attribute.
11368
0d9e23f4
RH
11369 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11370 (abssf2, negsf2): Define only for hardware fp.
11371 (sqrtsf2): Reformat.
11372 (addsf3, subsf3, mulsf3): Merge expander and insn.
11373
c157b3f0
RH
11374 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11375 (DEBUGGER_AUTO_OFFSET): Remove.
11376 (DEBUGGER_ARG_OFFSET): Remove.
11377
cc909bba
RH
11378 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11379 Emit register stores with the same offsets as the hardware.
11380 (mn10300_store_multiple_operation): Don't check that the register
11381 save offsets are monotonic.
11382 * config/mn10300/mn10300-protos.h: Update.
11383
e3b5c2f3
RH
11384 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11385
885fe07c
RH
11386 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11387 in terms of the value on the stack, not the MDR register.
11388
6e701822
JH
113892011-01-11 Jan Hubicka <jh@suse.cz>
11390
11391 PR lto/45721
11392 PR lto/45375
11393 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11394 (symbol_alias_set_destroy, symbol_alias_set_contains,
11395 propagate_aliases_backward): Declare.
11396 * lto-streamer-out.c (struct sets): New sturcture.
11397 (trivally_defined_alias): New function.
11398 (output_alias_pair_p): Rewrite.
11399 (output_unreferenced_globals): Fix output of alias pairs.
11400 (produce_symtab): Likewise.
11401 * ipa.c (function_and_variable_visibility): Set weak alias destination
11402 as needed in lto.
11403 * varasm.c (symbol_alias_set_t): Remove.
11404 (symbol_alias_set_destroy): Export.
11405 (propagate_aliases_forward, propagate_aliases_backward): New functions
11406 based on ...
11407 (compute_visible_aliases): ... this one; remove.
11408 (trivially_visible_alias): New
11409 (trivially_defined_alias): New.
11410 (remove_unreachable_alias_pairs): Rewrite.
11411 (finish_aliases_1): Reorganize code checking if alias is defined.
11412 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11413 in LTO mode.
11414
1b248907
RG
114152011-01-11 Richard Guenther <rguenther@suse.de>
11416
11417 PR tree-optimization/46076
11418 * tree-ssa.c (useless_type_conversion_p): Conversions from
11419 unprototyped to empty argument list function types are useless.
11420
b1923f0a
RG
114212011-01-11 Richard Guenther <rguenther@suse.de>
11422
11423 PR middle-end/45235
11424 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11425 volatile MEMs as MEM_READONLY_P.
11426
e98965af
RG
114272011-01-11 Richard Guenther <rguenther@suse.de>
11428
11429 PR tree-optimization/47239
11430 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11431
9f9ca914
JL
114322011-01-11 Jeff Law <law@redhat.com>
11433
1ee3ea05 11434 PR tree-optimization/47086
9f9ca914
JL
11435 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11436 IVs from statements that might throw.
11437
345fdcb7
JH
114382011-01-10 Jan Hubicka <jh@suse.cz>
11439
11440 PR lto/45375
11441 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11442
c459c97b
JH
114432011-01-10 Jan Hubicka <jh@suse.cz>
11444
11445 PR lto/45375
11446 * profile.c (read_profile_edge_counts): Ignore profile inconistency
11447 when correcting profile.
11448
06c9eb51
JH
114492011-01-10 Jan Hubicka <jh@suse.cz>
11450
11451 PR lto/46083
11452 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11453 DECL_FINI_PRIORITY.
11454 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11455 Restore DECL_FINI_PRIORITY.
11456
ae9fd815
RW
114572011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11458
11459 * doc/gimple.texi: Fix quoting of multi-word return values in
11460 @deftypefn statements. Ensure presence of return value. Wrap
11461 overlong @deftypefn lines.
11462 (is_gimple_operand, is_gimple_min_invariant_address): Remove
11463 descriptions of removed functions.
11464 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11465 of multi-word return value in @deftypefn statement.
11466
0ecb4a7c
RW
114672011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11468
11469 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11470 (Conditional Expressions, Logical Operators)
11471 (Statement and operand traversals): Do not indent smallexample
11472 code. Fix duplicate function argument in example.
11473
2e5e346d
JL
114742011-01-10 Jeff Law <law@redhat.com>
11475
1ee3ea05 11476 PR tree-optimization/47141
2e5e346d
JL
11477 * ipa-split.c (split_function): Handle case where we are
11478 returning a value and the return block has a virtual operand phi.
11479
cf9712cc
JH
114802011-01-10 Jan Hubicka <jh@suse.cz>
11481
1c3ba85b 11482 PR tree-optimization/47234
cf9712cc
JH
11483 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11484 (pass_feedback_split_functions): Declare.
11485 * passes.c (init_optimization_passes): Add ipa-split as subpass of
11486 tree-profile.
11487 * ipa-split.c (gate_split_functions): Update comments; disable
11488 split-functions for profile_arc_flag and branch_probabilities.
11489 (gate_feedback_split_functions): New function.
11490 (execute_feedback_split_functions): New function.
11491 (pass_feedback_split_functions): New global var.
11492
94cd932c
L
114932011-01-10 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 PR lto/46760
11496 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11497 calling gimple_call_set_cannot_inline.
11498
fbbfcaf1
IS
114992011-01-10 Iain Sandoe <iains@gcc.gnu.org>
11500
11501 * config/darwin-sections.def: Remove unused section.
11502
d06865bf
DK
115032011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
11504
11505 PR c++/47218
11506 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11507
96bbfbac
NP
115082011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
11509
11510 PR objc/47232
11511 * c-parser.c (c_parser_declaration_or_fndef): Improved
11512 error message.
11513
1ba6516f
KT
115142011-01-09 Kai Tietz <kai.tietz@onevision.com>
11515
11516 * config/i386/winnt.c (i386_pe_start_function): Make sure
11517 to switch back to function's section.
11518
0c5d770e
IS
115192011-01-09 Iain Sandoe <iains@gcc.gnu.org>
11520
11521 PR gcc/46902
11522 PR testsuite/46912
11523 * plugin.c: Move include of dlfcn.h from here...
11524 * system.h: ... to here.
11525
115262011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
11527
11528 * doc/cpp.texi (C++ Named Operators): Fix markup for header
11529 file name.
11530 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11531 two extra empty pages in PDF output.
11532
046608a3
NP
115332011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
11534
11535 PR objc/47078
11536 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11537 for error recovery purposes behave as if it was not specified so
11538 that the default type is usd.
11539
8cb114b9
JH
115402011-01-07 Jan Hubicka <jh@suse.cz>
11541
11542 PR tree-optmization/46469
11543 * ipa.c (function_and_variable_visibility): Clear needed flags on
11544 nodes with external decls; handle weakrefs merging correctly.
11545
b294a75e
JM
115462011-01-07 Joseph Myers <joseph@codesourcery.com>
11547
11548 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11549 not false.
11550
96bdf9b4
JH
115512011-01-07 Jan Hubicka <jh@suse.cz>
11552
f60c2554 11553 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
11554 and no longer claim that gold is required for linker plugin.
11555 * configure: Regenerate.
11556 * gcc.c (PLUGIN_COND): New macro.
11557 (LINK_COMMAND_SPEC): Use it.
11558 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11559 * config.in (HAVE_LTO_PLUGIN): New.
11560 * configure.ac (--with-lto-plugin): New parameter; autodetect
11561 HAVE_LTO_PLUGIN.
11562
17afc0fe
JH
115632011-01-07 Jan Hubicka <jh@suse.cz>
11564
11565 PR tree-optimization/46367
11566 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11567 when we can update original.
11568 (cgraph_mark_inline_edge): Sanity check.
11569 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11570
d4c48c0f
UW
115712011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11572
11573 * config/spu/spu.h (ASM_COMMENT_START): Define.
11574
96f5b137
L
115752011-01-07 H.J. Lu <hongjiu.lu@intel.com>
11576
11577 PR driver/42445
11578 * gcc.c (%>S): New.
11579 (SWITCH_KEEP_FOR_GCC): Likewise.
11580 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11581 (do_spec_1): Handle "%>".
11582
11583 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11584
c6a8f6de
JJ
115852011-01-07 Jakub Jelinek <jakub@redhat.com>
11586
c21bbd7a
JJ
11587 PR target/47201
11588 * config/i386/i386.c (ix86_delegitimize_address): If
11589 simplify_gen_subreg fails, return orig_x.
11590
c6a8f6de
JJ
11591 PR bootstrap/47187
11592 * value-prof.c (gimple_stringop_fixed_value): Handle
11593 lhs of the call properly.
11594
fe95fbf9
JH
115952011-01-07 Jan Hubicka <jh@suse.cz>
11596
11597 PR lto/45375
11598 * lto-opt.c (lto_reissue_options): Set flag_shlib.
11599
14d11d40
IS
116002011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11601
72e961c8
EB
11602 * target.def (function_switched_text_sections): New hook.
11603 * doc/tm.texi: Regenerated.
11604 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 11605 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
11606 (final_scan_insn): Call function_switched_text_sections when a
11607 mid-function section change occurs.
14d11d40 11608 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
11609 * config/darwin-protos.h (darwin_function_switched_text_sections):
11610 Likewise.
14d11d40 11611 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 11612 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 11613
0b764288
IS
116142011-01-07 Iain Sandoe <iains@gcc.gnu.org>
11615
11616 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
11617 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
11618 the secondary code fragment when outputting for DWARF == 2.
11619
2ac6bb04
AS
116202011-01-07 Anatoly Sokolov <aesok@post.ru>
11621
11622 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11623 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11624 Remove.
11625 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11626 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11627
9f82de11
EB
116282011-01-06 Eric Botcazou <ebotcazou@adacore.com>
11629
11630 PR debug/46704
280d9630
EB
11631 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11632 when it is not empty.
9f82de11
EB
11633
116342011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 11635
1ed72abf 11636 Bobcat Enablement
14b52538 11637 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 11638 (case ${target}): Add btver1.
14b52538 11639 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 11640 -march=native recognize btver1 processors.
14b52538 11641 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 11642 btver1 def_and_undef
14b52538 11643 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
11644 btver1 cost table.
11645 (m_BTVER1): New definition.
11646 (m_AMD_MULTIPLE): Includes m_BTVER1.
11647 (initial_ix86_tune_features): Add btver1 tune.
11648 (processor_target_table): Add btver1 entry.
11649 (static const char *const cpu_names): Add btver1 entry.
11650 (software_prefetching_beneficial_p): Add btver1.
11651 (ix86_option_override_internal): Add btver1 instruction sets.
11652 (ix86_issue_rate): Add btver1.
11653 (ix86_adjust_cost): Add btver1.
14b52538 11654 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
11655 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11656 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
11657 * config/i386/i386.md (define_attr "cpu"): Add btver1.
11658
e1a973d8
RO
116592011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11660
11661 PR target/43309
11662 * config/i386/i386.c (legitimize_tls_address)
11663 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11664 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11665 (tls_initial_exec_64_sun): New pattern.
11666
c73f67c5
GP
116672011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11668
11669 * doc/invoke.texi (Overall Options): Improve wording and markup
11670 of the description of -wrapper.
11671
bc4c6f9c
JM
116722011-01-06 Joseph Myers <joseph@codesourcery.com>
11673
11674 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11675 rdynamic, threads): New Driver options.
11676
adb75db0
RO
116772011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11678
11679 PR target/38118
11680 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11681 if coming from .tdata.
11682 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11683
402c1cb4
JH
116842011-01-06 Jan Hubicka <jh@suse.cz>
11685
11686 PR lto/47188
11687 * collect2.c (main): Do not enable LTOmode when plugin is active.
11688
a4da6485
RO
116892011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11690
11691 PR other/45915
11692 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11693 --version output if supported.
11694 * configure: Regenerate.
11695
028dbdf4
JM
116962011-01-06 Joseph Myers <joseph@codesourcery.com>
11697
11698 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11699 Driver options.
11700
dfe776dd
JJ
117012011-01-06 Jakub Jelinek <jakub@redhat.com>
11702
11703 PR c/47150
11704 * c-convert.c (convert): When converting a complex expression
11705 other than COMPLEX_EXPR to a different complex type, ensure
11706 c_save_expr is called instead of save_expr, unless in_late_binary_op.
11707 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11708 when converting COMPLEX_TYPE.
11709
210dedfe
IR
117102011-01-06 Ira Rosen <irar@il.ibm.com>
11711
11712 PR tree-optimization/47139
11713 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11714 only the last reduction value is used outside the loop. Update
11715 documentation.
11716
cd33a412
JM
117172011-01-05 Joseph Myers <joseph@codesourcery.com>
11718
11719 * config/rtems.opt: New.
11720 * config.gcc (*-*-rtems*): Use rtems.opt.
11721
819edd94
CF
117222011-01-05 Changpeng Fang <changpeng.fang@amd.com>
11723
11724 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11725 processors do not support 3DNow instructions.
11726
dc242c4a
UW
117272011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11728
11729 * config/spu/spu.c (spu_option_override): Set parameter
11730 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11731
be286227
JH
117322011-01-05 Jan Hubicka <jh@suse.cz>
11733
11734 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11735 at the command line.
11736
644e637f
MJ
117372011-01-05 Martin Jambor <mjambor@suse.cz>
11738
11739 PR lto/47162
11740 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11741 deltas on streamed outgoing edges.
11742 (output_node_opt_summary): Output info for outgoing edges only when
11743 the node is in new parameter set.
11744 (output_cgraph_opt_summary): New parameter set, passed to the two
11745 aforementioned functions. Update its forward declaration and its
11746 callee too.
11747
7bd11157
TT
117482011-01-05 Tom Tromey <tromey@redhat.com>
11749
11750 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11751 operator to c_finish_omp_atomic.
11752 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11753 (build_unary_op): Update.
11754 (build_modify_expr): Update.
11755 (build_asm_expr): Update.
11756
f626b979
UW
117572011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11758
11759 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11760 newly inserted insns.
11761 (pad_bb): Likewise.
11762 (spu_emit_branch_hint): Likewise.
11763 (insert_hbrp_for_ilb_runout): Likewise.
11764 (spu_machine_dependent_reorg): Call df_finish_pass after
11765 schedule_insns returns.
11766
4c825c02
UW
117672011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11768
11769 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11770
5e9fba51
EB
117712011-01-05 Eric Botcazou <ebotcazou@adacore.com>
11772
11773 PR tree-optimization/47005
11774 * tree-sra.c (struct access): Add 'non_addressable' bit.
11775 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11776 (decide_one_param_reduction): Return 0 if the parameter is passed by
11777 reference and one of the accesses in the group is non_addressable.
11778
3ebb5ca6
EB
117792011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11780
11781 PR tree-optimization/47056
11782 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11783 (mark_load): Likewise. Handle FUNCTION_DECL specially.
11784 (mark_store): Likewise. Pass STMT to ipa_record_reference.
11785
d5d4d14e
EB
117862011-01-04 Eric Botcazou <ebotcazou@adacore.com>
11787
11788 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11789 initializer. Skip view conversions from aggregate types.
11790
d996ef70
KT
117912011-01-04 Kai Tietz <kai.tietz@onevision.com>
11792
11793 PR bootstrap/47055
11794 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11795
509d65dd 117962011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
11797
11798 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11799 obvious typo.
11800
55c623b5
UW
118012011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11802
11803 * function.c (thread_prologue_and_epilogue_insns): Do not crash
11804 on empty epilogue sequences.
11805
b98d6b35
JM
118062011-01-04 Joseph Myers <joseph@codesourcery.com>
11807
11808 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11809 non-static): New Driver options.
11810
a0d43bac
JZ
118112011-01-04 Jie Zhang <jie@codesourcery.com>
11812
11813 PR driver/47137
11814 * gcc.c (default_compilers[]): Set combinable field to 0
11815 for all assembly languages.
11816
2b18eb32
MX
118172011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
11818
11819 * config/mips/loongson3a.md: New file.
11820 * config/mips/mips.md: Include loongson3a.md.
11821 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11822 TUNE_LOONGSON_3A.
11823
42a48c4f
EB
118242011-01-03 Eric Botcazou <ebotcazou@adacore.com>
11825
11826 PR middle-end/47017
11827 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11828 instead of convert_memory_address_addr_space on the base expression.
11829
9c1732c4
UW
118302011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11831
11832 * config/spu/spu.c (spu_option_override): Update error text
11833 for bad -march= / -mtune= values.
11834
aa474365
UW
118352011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11836
11837 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11838 if branch-hint optimization will be performed.
11839
9766135b
JJ
118402011-01-03 Jakub Jelinek <jakub@redhat.com>
11841
371556ee
JJ
11842 PR tree-optimization/47148
11843 * ipa-split.c (split_function): Convert arguments to
11844 DECL_ARG_TYPE if possible.
11845
1ac12fa2
JJ
11846 PR tree-optimization/47155
11847 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11848 when computing uns.
11849
9766135b
JJ
11850 PR rtl-optimization/47157
11851 * combine.c (try_combine): If undobuf.other_insn becomes
11852 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11853 and set *new_direct_jump_p too.
11854
f4a2e571
SP
118552011-01-03 Sebastian Pop <sebastian.pop@amd.com>
11856
11857 PR tree-optimization/47021
11858 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11859
9f8e43c0
JJ
118602011-01-03 Jakub Jelinek <jakub@redhat.com>
11861
11862 * gcc.c (process_command): Update copyright notice dates.
11863 * gcov.c (print_version): Likewise.
11864 * gcov-dump.c (print_version): Likewise.
11865 * mips-tfile.c (main): Likewise.
11866 * mips-tdump.c (main): Likewise.
11867
1a2e38f3
MJ
118682011-01-03 Martin Jambor <mjambor@suse.cz>
11869
11870 PR tree-optimization/46801
11871 * tree-sra.c (type_internals_preclude_sra_p): Check whether
11872 aggregate fields start at byte boundary instead of the bit-field flag.
11873
56b721c5
L
118742011-01-03 H.J. Lu <hongjiu.lu@intel.com>
11875
11876 PR driver/47137
11877 * gcc.c (main): Revert revision 168407.
11878
839d549b
MJ
118792011-01-03 Martin Jambor <mjambor@suse.cz>
11880
11881 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11882
4ce99a20 118832011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
11884
11885 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11886 vector optab to expand vector/scalar shift, update gimple to vector.
11887
76df0ae6
MJ
118882011-01-03 Martin Jambor <mjambor@suse.cz>
11889
11890 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11891 a thunk.
11892
ce47fda3
MJ
118932011-01-03 Martin Jambor <mjambor@suse.cz>
11894
11895 PR tree-optimization/46984
11896 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11897 HOST_WIDE_INT.
11898 (cgraph_create_indirect_edge): Fixed line length.
11899 (cgraph_indirect_call_info): Declare.
11900 (cgraph_make_edge_direct) Update declaration.
11901 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11902 (cgraph_create_indirect_edge): Use it.
11903 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
11904 callees.
11905 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11906 the new thunk_delta representation.
11907 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11908 HOST_WIDE_INT.
11909 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11910 (ipa_read_indirect_edge_info): Likewise.
11911 * lto-cgraph.c (output_edge_opt_summary): New function.
11912 (output_node_opt_summary): Call it on all outgoing edges.
11913 (input_edge_opt_summary): New function.
11914 (input_node_opt_summary): Call it on all outgoing edges.
11915
1e67fa1f
L
119162011-01-02 H.J. Lu <hongjiu.lu@intel.com>
11917
11918 PR driver/47137
11919 * gcc.c (main): Don't check have_o when settting combine_inputs.
11920
6656b2ac
EB
119212011-01-02 Eric Botcazou <ebotcazou@adacore.com>
11922
11923 * regrename.c: Add general comment describing the pass.
11924 (struct du_head): Remove 'length' field.
11925 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11926 (regrename_optimize): Do not sort chains. Rework comments, add others.
11927 Force renaming to the preferred class (if any) in the first pass and do
11928 not consider registers that belong to it in the second pass.
11929 (create_new_chain): Do not set 'length' field.
11930 (scan_rtx_reg): Likewise.
11931
bc470c24
JJ
119322011-01-02 Jakub Jelinek <jakub@redhat.com>
11933
4e996296
JJ
11934 PR tree-optimization/47140
11935 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11936 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11937 to bit_value_binop.
11938
bc470c24 11939 PR rtl-optimization/47028
6656b2ac
EB
11940 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11941 parm_birth_insn instead of at the beginning of first bb.
bc470c24 11942
5af62fcd 119432011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
11944
11945 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11946 Remove the word "see" before "@pxref".
11947 * doc/rtl.texi: Remove the word "see" before "@pxref".
11948
0e20c89f
JH
119492011-01-01 Jan Hubicka <jh@suse.cz>
11950
6656b2ac
EB
11951 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11952 memory.
0e20c89f 11953
220e83ca
KT
119542011-01-01 Kai Tietz <kai.tietz@onevision.com>
11955
11956 PR target/38662
6656b2ac 11957 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 11958
ad41bd84 11959\f
797103eb 11960Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
11961
11962Copying and distribution of this file, with or without modification,
11963are permitted in any medium without royalty provided the copyright
11964notice and this notice are preserved.